Interfaces
A location change expresses new intent. Which conditions distinguish it from a retry?
Z-45 may require a corrected destination while the unit is en route.
Starting point Test the projection and assignment paths separately.
Assumptions for the example case
A fictional command exercise with no connection to real response units. Dispatch makes the decisions, supported by suggestions and maps. Availability and an accepted assignment remain separate facts. All quantities, thresholds and operational targets in this design are illustrative assumptions.
Assignment revisions
Assignment revisions
Z-45 carries situation and unit revisions outbound; only an acknowledgement for the same assignment revision may change state.
Proposed domain contracts
- POST
/einheiten/U-45/zuteilungenAssign a unit in the training system.
- Input
- commandKey, incident=E-45, unitRevision, incidentRevision, destination, dispatcher
- Result
- Z-45 pending, or a version/allocation conflict.
- Retry behaviour
- The same key returns the same assignment; a changed destination produces a conflict.
- POST
/zuteilungen/Z-45/quittungenAccept an acknowledgement durably.
- Input
- eventKey, unit=U-45, outcome=accepted|declined|completed, assignmentRevision, occurredAt
- Result
- Acceptance, rejection or completion after a valid transition.
- Retry behaviour
- Duplicate acknowledgement takes effect once; an old assignment revision cannot change a newer assignment.
A location change expresses a new intent.
A change receives a new assignment revision and its own acknowledgement.
Z-45 may require a corrected destination while the unit is en route.
Read the existing assignment. Changed content under the same key produces a conflict; a new change command uses a new revision.
- Alternative considered
- A different destination under the same key conceals a change.
- Trade-off
- Additional confirmation is required.
- Reassess
- Frequent corrections require better validation during incident intake.
Try it yourself
Evaluate identical replay and changed destination.
A hint for your attempt
Z-45 may require a corrected destination while the unit is en route.
Compare with a possible solution
- Replay
- Read the existing assignment.
- Change
- Changed content under the same key produces a conflict; a new change command uses a new revision.
Apply to your project
What is the equivalent of treating a location change as new intent in your project?