System Design Atlas

Social care case coordination across organisations

07 / 10Worked example

Critical flow

How is a lost receipt safely processed after revocation?

At the disclosure commit, the API checks permission and version and stores U-29 as empfang_unbekannt before transmitting extract bytes. The partner may receive content while its acknowledgement is lost. Withdrawal blocks access and moves U-29 to klärfall. Handover processing queries the same receipt reference instead of sending data again. A later acknowledgement records existing copies; case coordination and data protection officers follow up the agreed handling until it is evidenced.

Starting point The partner boundary has its own delivery contract.

Assumptions for the example case

Own fictitious example design. A fictitious voluntary exchange of a specific section of the aid plan between two organisations. A release granted for 3600 seconds in the example is only valid for age < 3600 seconds. All figures and test goals are illustrative assumptions.

Critical flow with commit and failure point

Lost ACK → withdrawal → late ACK → deletion evidence

1
Partner organisation → Coordination APIRetrieve U-29 with permission version 3
2
Coordination API → Authorisation checkCheck recipient, purpose and validity
3
Authorisation check → Handover storeCommit empfang_unbekannt before bytes
4
Handover store → Handover processingDisclose committed U-29
5
Handover processing → Partner organisationRelease extract bytes
6
Partner organisation → Handover processingReceipt acknowledgement is lost
7
Supported person → Coordination APIWithdraw permission
8
Coordination API → Protected master planLock access synchronously
9
Coordination API → Handover storeOpen investigation/deletion task
10
Partner organisation → Handover processingLate matching receipt acknowledgement
11
Handover processing → Handover storeAdd one receipt record · investigation remains open

Replay returns only metadata; withdrawal blocks new retrievals and possible receipt remains under investigation until handling is evidenced.

At the disclosure commit, the API checks permission and version and stores U-29 as empfang_unbekannt before transmitting extract bytes. The partner may receive content while its acknowledgement is lost. Withdrawal blocks access and moves U-29 to klärfall. Handover processing queries the same receipt reference instead of sending data again. A later acknowledgement records existing copies; case coordination and data protection officers follow up the agreed handling until it is evidenced.

Ordering and failure outcomes

Required order
At the disclosure commit, the API checks permission and version and stores U-29 as empfang_unbekannt before transmitting extract bytes. The partner may receive content while its acknowledgement is lost. Withdrawal blocks access and moves U-29 to klärfall. Handover processing queries the same receipt reference instead of sending data again. A later acknowledgement records existing copies; case coordination and data protection officers follow up the agreed handling until it is evidenced.
Crash before commit
No new durable evidence exists for H-29. The same command may be checked again; uncommitted intermediate work provides no domain guarantee.
Crash after commit, before response
The command journal entry records the original result. Identical replay returns that evidence; a fresh view of the current state comes from the read contract.
External uncertainty
A missing response from the partner organisation remains unknown. Confirmed acceptance, confirmed rejection and missing evidence have separate states; the responsible role investigates using the same reference.

Check withdrawal before every new disclosure

Check withdrawal before every new disclosure

Check withdrawal before every new disclosure.

At the disclosure commit, the API checks permission and version and stores U-29 as empfang_unbekannt before transmitting extract bytes. The partner may receive content while its acknowledgement is lost. Withdrawal blocks access and moves U-29 to klärfall. Handover processing queries the same receipt reference instead of sending data again. A later acknowledgement records existing copies; case coordination and data protection officers follow up the agreed handling until it is evidenced.

Every new external read requires current purpose- and recipient-specific permission; existing receipt evidence remains traceable. Your test defines the input and expected result.

Alternative considered
Submitting a new request after a response is lost can execute the same business operation again.
Trade-off
Outstanding partner evidence requires a work queue.
Reassess
Frequent unresolved outcomes require a more reliable contract for external reconciliation.

Try it yourself

Transmit the extract, lose the acknowledgement and withdraw permission. Then deliver the same acknowledgement twice.

A hint for your attempt

Trace the same request through the datastore and response path.

Compare with a possible solution
First test part
Before bytes are released, U-29 is durably empfang_unbekannt. After withdrawal, permission is blocked and investigation remains open; no data is sent again.
Second test part
The later matching acknowledgement records receipt exactly once. Permission stays blocked and klärfall stays open until the agreed handling is evidenced.

Apply to your project

What feedback could be missing even though the underlying action has already taken place?

Next: human acceptance remains a separate waiting state.