Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Forma Orchestrator: the operational cycle

One cycle is the whole mechanism in motion. This chapter follows a single level-triggered pass from the desired artifact to the admitted receipt, naming the law that governs each transition — because the transitions, not the data structures, are where the guarantees live.

Activation before anything

Nothing runs until an activation law is satisfied. A deployment’s control state is born from an owner provisioning act that designates exactly one control-state root and one authoritative roster record; the first instance opens that state and establishes the first writer-fence generation, publishing the initial durable registration (checkpoint, fence, roster, rollout) so that a provisioned state is complete from birth. Every later activation is a recovery: reopen the designated state, restore the exact request/operation/attempt identities from the durable snapshot, claim the current fence generation by CAS, hydrate the coalescing checkpoint and the uncertain set. Empty storage where the roster designates an existing state is a typed ControlStateLost refusal — never a silent fresh start; unreadable records are typed ControlStateCorrupt — never an empty operational state. An instance that cannot open the designated state does not become coordinator.

The five phases of a cycle

EVALUATE → COALESCE → WIRE → SETTLE → CHECKPOINT

Evaluate. The cycle checks and runs the desired .fsl artifact through the engine, inside the deployment’s declared evaluation budget (evaluation_gas — explicit, versioned configuration, never a mechanism default). The engine’s run outcome carries the semantic work: each recorded execution request is a lane with an action and a serial. A desired state that does not check fails closed for that artifact — no dispatch. An evaluation that exhausts its budget yields EvaluationNotEstablished: the decision is not established, recorded with its budget attribution, never consumed as established, never a trigger for effects. Incomplete data behaves as epistemic insufficiency, never as negative fact.

Coalesce. The mechanism never depends on perfect event delivery. Each lane’s checkpoint key is (desired artifact, action); if the checkpoint already holds a revision at or above the current desired revision, the lane is Coalesced — one dispatch per revision per deployment generation, duplicate wakeups collapse, and a missed notification is covered by the next periodic rescan. Coalescing also holds for uncertain lanes: an operation whose outcome is uncertain keeps its checkpoint entry, so re-evaluation coalesces rather than re-drives.

Wire. A lane dispatches only under an exact-coordinate owner authority whose currentness equals the designation’s basis revision. No authority for the exact coordinates: PendingNoAuthority, with zero wire contact — the mechanism auto-authorizes nothing. Before any dispatch, the lane passes the HWR admission gate: a designation carrying an application closure dispatches only under Satisfied; NotSatisfied and Unresolved both block with their classes preserved, and nothing dispatches that cycle. Before wiring, housekeeping cancels staged pre-exposure operations whose action the desired state no longer requests. And the WINDOW LAW guards the whole ordering: a lane whose prior decision’s outcome is still uncertain cannot be re-bound to a new desired state — after exposure authorization is frozen, a desired-state change can no longer revalidate; the only lawful paths are pre-exposure cancellation or reconciliation of the open resolution. A new dispatch for such a lane is the forbidden re-drive, typed as WindowLawResolutionOpen.

Settle. The dispatch crosses C1 with the operation’s declared payload identity as the transport body — canonical bytes cross verbatim; an owner-verified content reference crosses with an empty body for the node to resolve. When the executor’s ack returns and the attempt’s C1-owned outcome is accepted-pending, the coordinator admits the provider receipt under the exact attempt coordinates. A dispatch that never crossed the exposure boundary (no route, node unreachable) stays staged — cancellable while the desired state still requests it. A dispatch that crossed but came back without a usable answer is DispatchedUncertain: possible exposure, no recollection mechanism, reconciliation-gated forever. The coordinator never settles uncertainty by itself — not by timeout, not by silence, not by repetition.

Checkpoint. The cycle publishes its operational state durably: the C1 snapshot first (its error propagates), then the staged records, then a writer-token CAS that mints the next fence generation, then the renames, then a currency re-check. A publication that loses the fence — before, during or after the CAS window — is refused, typed, and reported; the cycle never claims success over a state another generation owns.

The causal chain, end to end

Read as one sentence: a checked .fsl revision is evaluated within a declared budget; the engine records execution requests; an owner-produced authority exists for the request’s exact coordinates; the HWR admission verdict admits the physical realization; the mechanism stages and dispatches the operation through C1 over the declared transport; the executor performs a real effect and returns a receipt; the receipt is admitted under the exact attempt; and the checkpoint records that the lane converged. Every arrow in that sentence is a boundary with its own law — and none of them is an assertion of truth about the world. Settled means the dispatch settled; what the effect made true is a matter for observation, through C2, with standing.

Convergence, staleness and the budget

The loop is level-triggered: correctness never depends on events arriving; it depends on the next cycle seeing the current desired revision. Work always targets the current revision, so a decision derived over a superseded state does not authorize an effect on the current state — the decision-staleness law. Revalidation before any effect covers every materially relevant revision, authority and realization dependency. And when evaluation cannot complete, the honest outcome is recorded and the loop keeps acting only on what is established. A cycle therefore ends in one of the typed dispositions — settled, uncertain, coalesced, pending-no-authority, admission-blocked, window-law-open, or evaluation-not-established — and the API chapter enumerates exactly what each class promises.