Software design review worksheet Updated 4 December 2026 Document owner / version / status / reviewers: Goal / scope / exclusions: Requirement ID / acceptance evidence: Component responsibilities and trust boundaries: Data entities / currency representation / invariants: State / allowed transitions / terminal conditions: Interface inputs / authentication / errors / compatibility: Idempotency key scope / payload conflict / retention: Concurrency boundary / reservation rule: Timeout / uncertainty / reconciliation / retry limits: Logs / alerts / privacy / emergency operations: Rollout / rollback / data compatibility: Open question / owner / due date: Illustrative refund invariant: completed + reserved refunds <= captured amount. A provider timeout leaves an uncertain outcome; reconcile before treating it as confirmed failure. Source article: Software Design Specification: What to Include, With a Worked Example Examples are illustrative. Replace assumptions with verified records. ADDITIONAL WORKED EXERCISE AND CHECKS Trace one competing request through the design Use a concrete trace to make the invariant reviewable. In this fictional USD example, a payment has 10,000 captured cents and 2,000 cents of completed refunds. Request A asks for 6,000 cents while request B asks for 4,000. Both use different idempotency keys. Assume A obtains the reservation first. Step Completed / reserved / available, cents Expected decision Before either request 2,000 / 0 / 8,000 Both callers must still pass tenant and permission checks A reserves 6,000 2,000 / 6,000 / 2,000 Commit request and reservation atomically B attempts 4,000 2,000 / 6,000 / 2,000 Reject insufficient refundable balance A provider request times out 2,000 / 6,000 / 2,000 Keep reservation; reconcile the uncertain outcome Provider confirms A succeeded 8,000 / 0 / 2,000 Move reserved to completed exactly once Illustrative acceptance trace. If B wins the reservation first, A cannot reserve its full requested amount. No provider call is executed here. Add the recovery counterexample: if the provider confirms a permanent failure for A, completed refunds remain 2,000 cents, its 6,000-cent reservation is released, and 8,000 cents becomes available. That does not automatically authorise retrying B. Preserve the rejected request and require a deliberate new action under the agreed business rules. A real provider contract can differ by API generation. For example, Stripe’s idempotent-request documentation says API v1 retries replay the saved response, including a 500 response, after endpoint execution begins. It also describes key pruning after at least 24 hours and different v2 retry behaviour. Record the exact API version and guarantees you integrate with; do not infer permanent duplicate protection from the word “idempotent”. Full guide (available after publication): https://dudelemon.com/blog/software-design-specification