Test inventory reservation when checkout is abandoned
Reservations survive failed checkout and make available stock look sold out.
- Focused work estimate
- 3h 30m + prerequisites
- Priority in the scenario
- High
- Engineering practice
- State transitions · Concurrency
Estimated field mix
- Quality engineering60%
- Backend40%
Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.
Review it, then add it to your workspace.
The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.
Project context
A fictional retailer is changing delivery options. Its regression suite is large, but no one can explain whether inventory, totals, or recovery behavior is covered.
Setup prerequisites
- Build a minimal local checkout fixture with synthetic prices, inventory, and a mock delivery provider.
Preceding work
Complete these dependencies, or supply their agreed outputs before taking this ticket.
Acceptance criteria
- Expire abandoned reservations by the declared deadline.
- Preserve completed-order reservations.
- Make repeated expiry processing idempotent.
Implementation constraints
- Control time and use only synthetic inventory.
Verification to include
- Expire an abandoned reservation.
- Race completion with expiry and verify the chosen invariant.
Deliverables
- Reservation lifecycle tests.
Rollout and recovery
Keep expiry processing observable; pause the changed flow if stock reconciliation fails.
Value of the work
For the engineer: Practice risk analysis, exploratory testing, and evidence-based release decisions.
For the team: Provide a reviewable release assessment tied to customer-impacting invariants.
Evidence boundaries
Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.
Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.