This is a fictional booking service. The changes, checks and results below are illustrative.
The request
Customers should be able to cancel new bookings until 24 hours before the booking starts. The service stores the start time as an instant. The cutoff is inclusive and uses 24 elapsed hours. Confirmed bookings made under the previous policy retain the terms they were given. The change leaves existing payment and refund behaviour in place.
The task
Update how the service records cancellation terms for new bookings and applies those terms when a customer asks to cancel. Keep the existing authorisation checks and use a controllable clock in the tests. Review how old bookings are represented before choosing how to handle them. If a record gives you no way to determine the applicable terms, bring that question back to the owner.
| Check | Case | Expected result |
|---|---|---|
| C01 | A new booking starts in exactly 24 hours | The customer can cancel. |
| C02 | A new booking starts in 23 hours and 59 minutes | The service refuses cancellation under the new policy. |
| C03 | The customer booked before the change | The service applies the previous terms, including on records that predate the new policy field. |
| C04 | Two requests target the same successful cancellation | The customer sees one cancellation and the service applies its side effects once. |
The owner approves revision 2 of the brief and asks the build to check C01–C04. The owner records the walkthrough as V01. The timing cases use a fixed clock. The legacy case uses an agreed fixture. The repeated request needs an integration test that can count the cancellation events. Those checks go in the work record before implementation. If a fixture turns out to be wrong, the owner reviews the proposed correction before the build uses it.
What comes back for review
On build 41 (revision a69dc31), C01–C04 pass. Then the reviewer tries to cancel just inside the cutoff. The service correctly refuses, but the message still says 48 hours. V01 fails. The owner confirms the agreed 24-hour wording and sends the change back.
The worker corrects the message. Build 42 checks the new revision, b82f615, against the same brief and fixtures. The four automated checks run again, and the reviewer repeats the walkthrough on that build. Here’s what the maintainer gets back.
| Item | Illustrative record |
|---|---|
| Approved brief | Booking cancellations, revision 2 |
| Verification rules | Team policy, revision 3. C01–C04 and V01 required. |
| Code and build checked | Example revision b82f615, test build 42 |
| C01–C03 | Passed. Includes a booking created before the policy field existed. |
| C04 | Passed in an integration test. One cancellation event was recorded. |
| V01, customer journey | Passed on build 42. The confirmation, displayed deadline and refusal message all describe the agreed cutoff. |
| Live payment integration | Unchanged. No live payment check was run for this example. |
| Decision | Maintainer to confirm that the brief still reflects the agreed policy and review the diff before merging. |
If the review discovers old records whose applicable terms can’t be determined, bring that case back to the owner. The result above only covers the records represented in the checks.
If someone pushes another revision after build 42, the reviewer waits for the required evidence for that revision. The worker’s account of what changed still helps with the review.