Platform
Loops are the atomic unit of the Better Data platform: governed operational loops with actor attribution, guard enforcement, evidence, and an audit trail.
A loop is a finite state machine with governed transitions. Every transition:
human | automation | ai-agent)Guards are enforced in the runtime and policy layer — not by prompt instructions alone.
Agents (in the commerce sense) are not a separate product or autonomous AI platform. They use Loop Engine to govern decisions after Registry discovery and Gateway execution — the same governed decision path as human and automation actors.
Better Data operates a hosted loop runtime at loops.betterdata.co. Compared to self-hosting @loop-engine/sdk, hosted adds:
OSS: loopengine.io · @loop-engine/sdk
Hosted: Hosted Loop Engine · hello@betterdata.co
| Loop ID | Module | What it governs |
| ------- | ------ | ---------------- |
| scm.procurement | SCM | PO lifecycle, receipts, invoice alignment |
| scm.fulfillment | SCM | Reservation → pick/pack/ship |
| scm.quality | SCM | Inspection, deviation, disposition |
| scm.replenishment | SCM | Demand-driven reorder |
| dcm.demand | DCM | Demand signals and replenishment triggers |
| dcm.order | DCM | Order confirmation, allocation, shipment |
| dcm.returns | DCM | RMA, receipt, credit, restock |
Canonical IDs and events ship in @betterdata/loop-definitions.
Each transition declares:
When a guard fails, the loop does not advance; the runtime records the denial for audit.
Each transition emits a LoopTransitionedEvent-shaped record: actor, signal, from/to state, evidence payload, timestamp, correlationId.
The hosted platform aggregates these into operational dashboards and compliance exports.
| | OSS | Hosted |
| - | --- | ------ |
| Runtime | @loop-engine/sdk | loops.betterdata.co |
| Contact | loopengine.io | hello@betterdata.co |
