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
The API and data store own consent; delivery status does not change the domain agreement.
Test plan with expected outcomes
| Input and initial state | Expected result | Return to an earlier step |
|---|---|---|
| D-48 available → Confirm two overlapping appointments with both parties, in both arrival orders | One appointment agreed, the other conflicts. | Step 5 |
| Consent stored → Replay identical consent, then use a different scopeHash | One consent record; the changed replay conflicts. | Step 4 |
| Additional approval missing → Confirm 119/120/121 minutes | 119 and 120 allowed; 121 requires new consent, remains open. | Step 2 |
| Work disputed → Let the timer expire, then document an agreement | The 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.
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?
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
How does “Both parties agree to the same scope” apply to your own project?
In the example: Scope and duration are confirmed together.
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.
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.
Interfaces
What is the equivalent of “delivery is not consent” in your own project?
In the example: Consent has its own domain command.
Data and states
How does “An objection remains on record” apply to your own project?
In the example: Investigation ends with a documented agreement.
Overall architecture
How does “Notifications follow the domain commit” apply to your own project?
In the example: The worker sends committed notifications.
Critical flow
How does “Allocating the worker resolves contention” apply to your own project?
In the example: Check the allocation atomically.
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.
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.
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.