Skip to content
1 min read · 140 words

@nhtio/adk/batteries/orchestration/ops

The op-log fold and the branch-key renderer for orchestration.

Remarks

This module owns two things:

  1. foldOps — the DETERMINISTIC fold that turns a plan's op log into a RawPlanView. 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 surfaces PlanIssues instead.
  2. branchKey — the canonical, INJECTIVE string form of a BranchId route, used to key OutputTable, identify NodeRef.branchId, order join contributors, and make duplicate arrivals idempotent.

Functions

FunctionDescription
branchKeyThe canonical, INJECTIVE string form of a BranchId route.
foldOpsFold an op log into a RawPlanView, deterministically and convergently.