Retries are creating duplicate invoices. How will you keep existing consumers compatible?
Candidate review
Discuss a pilot ↗Illustrative evidence · independent of your workspace edits
Example file
# Keep one record per event, even after a retry.def process(event, store):return store.insert_once(event_id=event.id,payload=event.payload,)def test_duplicate_delivery(store):process(event, store)process(event, store)assert store.count(event.id) == 1
OUTPUT
Code execution is disabled in this preview.
You can browse and edit the example files. Changes stay in this tab until you reset or leave.Scenario context
Stabilize a failing event processor
Patch + regression test
Candidate outcome
Fixed the duplicate write; 8 of 8 task checks passed.
Delivered An idempotent write, a regression test, and a handoff note.
Demonstrated strengths
- Reproduced duplicate delivery before changing the persistence boundary.
- Verified the supplied cases, including repeated delivery and timeouts.
Work risks
- Production alert thresholds are still unspecified.
Evidence limits
Concurrency and long-running behavior need further testing.
All findings and sources
Diagnoses faults systematically
Strong evidence
Verifies the fix against regressions
Strong evidence
Explains operational trade-offs
Partial evidence
Optional follow-up
How would you choose and monitor the retry threshold in production?
Want an actual recorded result?Inspect a saved grading example ↗