@nhtio/adk/batteries/orchestration/ops
The op-log fold and the branch-key renderer for orchestration.
Remarks
This module owns two things:
foldOps— the DETERMINISTIC fold that turns a plan's op log into aRawPlanView. The plan IS the fold of its op log: two actors folding the same op set must reach the same state, and ops may arrive out of order or twice. The fold never throws on a malformed-but-well-typed log; it surfacesPlanIssues instead.branchKey— the canonical, INJECTIVE string form of aBranchIdroute, used to keyOutputTable, identifyNodeRef.branchId, order join contributors, and make duplicate arrivals idempotent.
Functions
| Function | Description |
|---|---|
| branchKey | The canonical, INJECTIVE string form of a BranchId route. |
| foldOps | Fold an op log into a RawPlanView, deterministically and convergently. |