Design and evidence
Which tests protect the path from document version to a single payout?
The final design reuses the complete runtime topology from step 6. Test markers connect key decisions to expected results and earlier steps to revisit. The following items form a test plan; measured evidence is still outstanding.
Starting point Payment operations reconcile the same instruction and record the evidence.
Assumptions for the example case
Fictitious example design: a simple property claim under one policy; manual coverage decision based on a fixed document version; one full payout in EUR; reasoned rejection and a later reassessment as a separate process. Figures and quality targets are illustrative test assumptions. Automatic claim rejection by AI, fraud investigation, partial payments and comprehensive statutory deadline calculation are outside scope.
Overall architecture with evidence
Runtime architecture · separate file storage and payout processing
- 1 · Report
- 2 · Checking files
- 3 · Decide
- 4 · Payouts
Claims platform
The case datastore owns decision records; object storage holds verified files; the payment service remains external.
Test plan with review loops
| Validation | Expected result | Return to an earlier step |
|---|---|---|
| Concurrency in both orders | Payout initiation races with withdrawal of approval before a payout command is persisted. Withdrawal first: no Z-31. Payout initiation first: withdrawal conflicts; Z-31 remains open until its outcome is evidenced. | Steps 3 and 5 |
| Identical and changed retries | Send Z-31 with the same decision reference twice: one payout. The same key with a different recipient or 45,001 cents conflicts. Resubmitting an identical document file with the same hash creates no new review version. | Step 4 |
| Exact value or time limit | Approval amounts of 49,999, 50,000 and 50,001 cents: the first amount requires one authorised person; the other two amounts each require two distinct authorised people. All figures are illustrative internal case rules, not legal requirements. | Steps 2 and 5 |
| Lost response and restart | The payment service pays 45,000 cents, but its response is lost. The claim remains auszahlung_offen; payment operations queries Z-31. A new document version cannot retroactively erase this already-started effect. | Steps 7 and 9 |
Concurrency in both orders
- Expected result
- Payout initiation races with withdrawal of approval before a payout command is persisted. Withdrawal first: no Z-31. Payout initiation first: withdrawal conflicts; Z-31 remains open until its outcome is evidenced.
- Return to an earlier step
- Steps 3 and 5
Identical and changed retries
- Expected result
- Send Z-31 with the same decision reference twice: one payout. The same key with a different recipient or 45,001 cents conflicts. Resubmitting an identical document file with the same hash creates no new review version.
- Return to an earlier step
- Step 4
Exact value or time limit
- Expected result
- Approval amounts of 49,999, 50,000 and 50,001 cents: the first amount requires one authorised person; the other two amounts each require two distinct authorised people. All figures are illustrative internal case rules, not legal requirements.
- Return to an earlier step
- Steps 2 and 5
Lost response and restart
- Expected result
- The payment service pays 45,000 cents, but its response is lost. The claim remains auszahlung_offen; payment operations queries Z-31. A new document version cannot retroactively erase this already-started effect.
- Return to an earlier step
- Steps 7 and 9
First end-to-end validation
- End-to-end path
- Test three documents, E-31 and response loss for Z-31 together. Every visible payout remains bound to the version actually approved.
- Open decision
- Add reassessments and partial payments after validating this path. Automatic claim rejection by AI, fraud investigation, partial payments and comprehensive statutory deadline calculation need separate follow-up designs.
Test the decision through payment
Test three documents, E-31 and response loss for Z-31 together.
File version, release, and effect can diverge.
Every visible payout remains bound to the version actually approved.
- Alternative considered
- An isolated upload test does not prove this connection.
- Trade-off
- A payment test double is needed in the first end-to-end path.
- Reassess
- Add reassessments and partial payments after validating this path.
Terms in this step
- Test the decision through payment
- Every visible payout remains bound to the version actually approved.
Try it yourself
Assign a test and review loop to document changes and lost payment responses.
A hint for your attempt
Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.
Compare with a possible solution
- First part of the solution
- New file after E-31: the old decision stays bound to D-3; the new version requires reassessment. Failures return to step 5.
- Second part of the solution
- Lost response for Z-31: exactly one payout; state stays open until matching evidence arrives. Failures return to steps 4 and 7.
Apply to your project
Which corresponding assumption would you check first in your project when reassessments and partial payments are added?
Start your own design
Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.
Download design template (.md)Compare the ten tasks with the example case
Purpose and boundary
Which corresponding assumption would you check first in your project when a narrowly defined automatable subcase receives separate approval?
In the example: Claims handlers decide coverage against an explicit document version. Policyholders receive a reasoned status and a responsible contact.
Requirements
Which corresponding assumption would you check first in your project when the internal approval policy changes?
In the example: Require two distinct approvals at or above the threshold. Boundary tests prevent unintended payouts under an outdated approval state.
Scale estimates
Which corresponding assumption would you check first in your project when measured file sizes or retention periods differ?
In the example: Size metadata throughput and document volume separately. 14.0625 GiB/day determines upload and retention tests more strongly than notifications/s.
Interfaces
Which corresponding assumption would you check first in your project when partial payments require separately identifiable entitlements?
In the example: Persist the key and content with E-31 and Z-31. Changed recipient details are recognised as new intent requiring review.
Data and states
Which corresponding assumption would you check first in your project when deletion deadlines require an archiving and evidence strategy?
In the example: Track immutable document versions and the decisions based on them. The earlier rationale remains reconstructable; a new review is explicitly started.
Overall architecture
Which corresponding assumption would you check first in your project when files remain consistently very small?
In the example: Store document objects separately and keep only verified references in the case. Quarantine failures leave the evidence request open and block approval on an unchecked version.
Critical flow
Which corresponding assumption would you check first in your project when the provider offers evidenced cancellation before execution?
In the example: Serialise the transition to stored Z-31 against withdrawal. Both winning orders of execution have explicit states and prevent hidden payouts.
Bottlenecks and trade-offs
Which corresponding assumption would you check first in your project when document verification itself becomes the measured bottleneck?
In the example: Separate waiting time for each missing document from technical processing time. Claims handlers can identify the actual reason for long lead times.
Operations and security
Which corresponding assumption would you check first in your project when a provider change alters the evidence interface?
In the example: Payment operations reconcile the same instruction and record the evidence. Elapsed time alone confirms neither payment nor rejection.
Final design
Which corresponding assumption would you check first in your project when reassessments and partial payments are added?
In the example: Test three documents, E-31 and response loss for Z-31 together. Every visible payout remains bound to the version actually approved.