AI-assisted engineering/Legacy comprehension + AI

Pin award_points before the loyalty port

Legacy comprehension + AIHard50 min

The loyalty service is being ported off a 2013 codebase. Members keep screenshots of their balances, so the port has to match to the point.

Your task

Pin what award_points does today. Not what the terms say. What the code does.

  • fill REGRESSION_TESTS with cases: the arguments in, the value it returns today
  • a test that expects the RIGHT answer instead of the CURRENT one fails the clean run
  • at submit each test runs again against versions of the function with one line changed
  • a change your tests do not notice is behavior you left unpinned
  • the walk-through is read by the critique, not by the suite. Write it for the next engineer

The suite runs your tests against the untouched code, then against mutations you have not seen.