Loops - The Atomic Unit
A loop is a state machine that tracks one business process from open to terminal state, with transition-level evidence.What Is A Loop?
Loop opens
An initiating event starts the loop instance (for example, PO created or order confirmed).
Transitions execute
Domain events move the instance through allowed states with guard and side-effect handling.
Loop closes
A terminal state is reached (such as CLOSED, CREDITED, or CANCELLED based on loop design).
Loop Anatomy
Six First-Party Loop Types
| Loop ID | Description | Typical aggregate | Terminal states |
|---|---|---|---|
scm.procurement | PO lifecycle orchestration | Purchase Order | CLOSED, DISPUTED |
scm.fulfillment | Outbound fulfillment execution | Shipment | CLOSED |
scm.quality | Quality assessment and disposition | Lot / Return lot | CLOSED |
scm.replenishment | Reorder orchestration from demand signal | SKU-location | CLOSED |
dcm.order | Customer order lifecycle | Order | CLOSED, CANCELLED |
dcm.returns | RMA and return lifecycle | RMA | CLOSED |
Monitoring Loops
- Record-level loop status is visible in SCM workflows tied to that aggregate.
- Admin-facing loop monitor surfaces cross-loop diagnostics for platform operators.
- API consumers can query transition streams for custom observability and analytics.
Loop Completion And Billing
Loop completions are measured when an instance reaches a terminal state.See platform pricing for committed volume details.