ADR-01
Explicit shipment state machine
- Decision
- Shipments move through defined states (booked, picked up, in transit, at hub, out for delivery, delivered, exception) with allowed transitions. Invalid transitions are rejected and logged.
- Trade-off
- More upfront modeling than storing the latest carrier status, but impossible states can't occur and every transition is explainable.
- Alternatives considered
- Storing the last carrier status string, which makes reporting and automation unreliable.