Final design
The end-to-end path ends after remedial work. What conditions ensure the result?
A pure booking flow shows no repair success.
Starting point Only the assigned technician receives the necessary data.
Assumptions for the example case
Fictional repair of a dripping faucet in an apartment. The order contains a fixed scope of work and a confirmed access appointment. All quantities, thresholds and operational objectives of this design are illustrative assumptions.
Repair architecture with test cases
Authoritative appointment data
The API writes the internal schedule; the calendar worker synchronizes downstream to the external calendar.
Test plan with expected outcomes
| Input and initial state | Expected result | Return to an earlier step |
|---|---|---|
| F-44 available → Confirm two appointments for 09:00–10:00 in either arrival order | Exactly one confirmed; another conflict. | Step 5 |
| T-44 Confirmed → Repeat Identical, then Change Start | Same appointment; changed replay conflict. | Step 4 |
| Booked interval ends 10:30 → Follow-up appointment 10:29:59 /10:30:00 /10:30:01 | Only the first collides; half-open interval boundary allows the others. | Step 2 |
| Work reported → Reject acceptance, submit new report, accept | Remedial work → Work reported → Accepted; acceptance is never automatic. | Step 5 |
F-44 available → Confirm two appointments for 09:00–10:00 in either arrival order
- Expected result
- Exactly one confirmed; another conflict.
- Return to an earlier step
- Step 5
T-44 Confirmed → Repeat Identical, then Change Start
- Expected result
- Same appointment; changed replay conflict.
- Return to an earlier step
- Step 4
Booked interval ends 10:30 → Follow-up appointment 10:29:59 /10:30:00 /10:30:01
- Expected result
- Only the first collides; half-open interval boundary allows the others.
- Return to an earlier step
- Step 2
Work reported → Reject acceptance, submit new report, accept
- Expected result
- Remedial work → Work reported → Accepted; acceptance is never automatic.
- Return to an earlier step
- Step 5
End-to-end test and unresolved agreements
- First end-to-end path
- Book an appointment with a travel buffer, test concurrent scheduling conflicts and follow the repair through remedial work to acceptance.
- Clarify before real use
- Allocation, cost releases, access protection and real cancellation consequences require concrete organizational rules.
The end-to-end test finishes after remedial work.
Test scheduling collisions and acceptance together.
A pure booking flow shows no repair success.
Test the 10:30 boundary against the authoritative data store; revisit steps 2 and 5 on failure. Remedial work stays open until acceptance; revisit steps 5 and 9 on failure.
- Alternative considered
- Happy Path leaves deficiency processing open.
- Trade-off
- The test requires two reports.
- Reassess
- Further trades follow after proof.
Try it yourself
Assign interval and acceptance tests to the design steps to revisit on failure.
A hint for your attempt
A pure booking flow shows no repair success.
Compare with a possible solution
- Appointment
- Test the 10:30 boundary against the authoritative data store; revisit steps 2 and 5 on failure.
- Performance
- Remedial work stays open until acceptance; revisit steps 5 and 9 on failure.
Apply to your project
What is the equivalent of “The end-to-end path ends after remedial work” in your own project?
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
What is the equivalent of “Completion report opens acceptance” in your own project?
In the example: Property management reviews the work report.
Requirements
What is the equivalent of “travel time belongs to the occupancy.” in your own project?
In the example: The appointment blocks an additional 30 minutes.
Scale estimates
What is the equivalent of “appointment load and contention differ.” in your own project?
In the example: Run peak-load and single-worker contention tests separately.
Interfaces
What is the equivalent of “A replay does not postpone an appointment.” in your own project?
In the example: The key binds the time and technician.
Data and states
What is the equivalent of “Remedial work remains open” in your own project?
In the example: A new report starts another acceptance review.
Overall architecture
What is the equivalent of “The calendar is a projection.” in your own project?
In the example: The internal appointment datastore determines occupancy.
Critical flow
Where does your project need to commit a check and its allocation atomically?
In the example: The check and insertion are atomic.
Bottlenecks and trade-offs
Which equivalent has “delay needs a concrete reason.” in your own project?
In the example: Record waiting reasons separately.
Operations and security
How does your project restrict access to sensitive details to the relevant work order?
In the example: Only the assigned technician receives the necessary data.
Final design
What is the equivalent of “The end-to-end path ends after remedial work” in your own project?
In the example: Test scheduling collisions and acceptance together.