System Design Atlas

Household services, appointments and proof of completion

10 / 10Worked example

Final design

The end-to-end test includes an objection. Which conditions ensure this outcome?

The happy path does not demonstrate dispute resolution.

Starting point Only the assigned worker receives the necessary instructions.

Assumptions for the example case

A fictional placement service for household help in fixed two-hour sessions. Service workers confirm appointments themselves; disputed work remains under review. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Household service with completion evidence

Domain records and notifications

Household and worker interfaceTwo roles
Household services APIScope + appointment
Relational datastoreOrder + Consent
Evidence storeReports + Objections
Notification workerCommunications
Notification serviceExternal
Clarification viewMediation team
Household and Service Interface → Service APIAuthenticated Commands
Service API → Relational data storeA-48 + T-48 + approval
Service API → Evidence storeL-48 + objection
Relational data store → Notification workercommitted notification
Notification Worker → Notification ServiceNotification
Dispute view → Service APIAuthorised review

The API and data store own consent; delivery status does not change the domain agreement.

Topology from step 6 with scope limits, worker contention and objection resolution; links back to 2, 5, 9.

Test plan with expected outcomes

Input and initial stateExpected resultReturn to an earlier step
D-48 available → Confirm two overlapping appointments with both parties, in both arrival ordersOne appointment agreed, the other conflicts.Step 5
Consent stored → Replay identical consent, then use a different scopeHashOne consent record; the changed replay conflicts.Step 4
Additional approval missing → Confirm 119/120/121 minutes119 and 120 allowed; 121 requires new consent, remains open.Step 2
Work disputed → Let the timer expire, then document an agreementThe timer closes nothing; an agreement produces Resolved and completed while preserving the objection.Step 9

D-48 available → Confirm two overlapping appointments with both parties, in both arrival orders

Expected result
One appointment agreed, the other conflicts.
Return to an earlier step
Step 5

Consent stored → Replay identical consent, then use a different scopeHash

Expected result
One consent record; the changed replay conflicts.
Return to an earlier step
Step 4

Additional approval missing → Confirm 119/120/121 minutes

Expected result
119 and 120 allowed; 121 requires new consent, remains open.
Return to an earlier step
Step 2

Work disputed → Let the timer expire, then document an agreement

Expected result
The timer closes nothing; an agreement produces Resolved and completed while preserving the objection.
Return to an earlier step
Step 9

End-to-end test and unresolved agreements

First end-to-end path
Agree appointments with both parties, check for overlaps, dispute a 120-minute work report and close it through a documented mediation process.
Clarify before real use
Employment status, remuneration, real working conditions, consents and protection requirements must be clarified in the specific offer.

The end-to-end test includes an objection.

The end-to-end test includes an objection.

Test scheduling collisions and disputed work.

The happy path does not demonstrate dispute resolution.

121 minutes remains open; failures lead back to 2 and 4. The timer does not close the case; agreement does; failures lead back to 5 and 9.

Alternative considered
A calendar display alone does not prove agreement.
Trade-off
Test needs both parties.
Reassess
Payment remains a separate extension.

Try it yourself

Map scope and objection tests to earlier design steps.

A hint for your attempt

The happy path does not demonstrate dispute resolution.

Compare with a possible solution
Scope
121 minutes remains open; failures lead back to 2 and 4.
Objection
The timer does not close the case; agreement does; failures lead back to 5 and 9.

Apply to your project

How does “The end-to-end test includes an objection” apply to your own project?

Transfer the decisions and their counterexamples to the editable design template.

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
  1. Purpose and boundary

    How does “Both parties agree to the same scope” apply to your own project?

    In the example: Scope and duration are confirmed together.

  2. Requirements

    What is the equivalent of “additional work needs new approval” in your own project?

    In the example: The agreed scope applies up to 120 minutes.

  3. Scale estimates

    How does “Total working hours do not prove availability” apply to your own project?

    In the example: Check capacity per person and time interval.

  4. Interfaces

    What is the equivalent of “delivery is not consent” in your own project?

    In the example: Consent has its own domain command.

  5. Data and states

    How does “An objection remains on record” apply to your own project?

    In the example: Investigation ends with a documented agreement.

  6. Overall architecture

    How does “Notifications follow the domain commit” apply to your own project?

    In the example: The worker sends committed notifications.

  7. Critical flow

    How does “Allocating the worker resolves contention” apply to your own project?

    In the example: Check the allocation atomically.

  8. Bottlenecks and trade-offs

    What is the equivalent of “Open reports are not a capacity problem” in your own project?

    In the example: Count staffing and evidence review separately.

  9. Operations and security

    What is the equivalent of "Private access data follow the assignment." in your own project?

    In the example: Only the assigned worker receives the necessary instructions.

  10. Final design

    How does “The end-to-end test includes an objection” apply to your own project?

    In the example: Test scheduling collisions and disputed work.