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: overview

A semantic program can state what a deployment should look like. It cannot, by itself, keep looking: somebody has to notice that the world moved, evaluate the program against the current revision, decide what work that implies, and drive the authorized part of that work to the nodes that execute it — without inventing any of the meaning involved. The Forma Orchestrator is the platform component that runs that loop. It is an operational mechanism, not a second semantics: every decision it acts on was evaluated by the FormaSL engine, every authority it forwards was produced by an owner, every observation it consumes entered through the governed acquisition chain.

The component exists as the bounded host service formasl-orchestrator (the formasl-orchestrator crate), specified by the ratified Forma Orchestrator v0.1 contract and its traceability record.

The problem it solves

A desired-state program declares a target situation and the rules that derive work from the gap between target and reality. Between that declaration and a real effect on a real node there is a chain with many failure points: the evaluation can exhaust its budget; the decision can be stale by the time an effect would run; the admission of a physical realization can be refused; the dispatch can lose its acknowledgement; the coordinator itself can crash between authorizing and recording. Each of those failures has a different lawful outcome, and conflating them — retrying what may already have happened, treating a lost acknowledgement as “not applied”, reusing an admission that belonged to another context — is exactly the class of error the orchestrator is built to make impossible.

The orchestrator therefore owns one thing: the level-triggered operational cycle — activation over a designated control state, bounded evaluation of the desired artifact, coalescing of repeated wakeups, wiring of already-authorized dispatches through the execution plane, settlement of receipts, and durable checkpoint publication. It paces and forwards; it never decides meaning.

What it is made of

The v0.1 architecture, ratified as Candidate B — Hybrid Minimal Orchestrator, comprises four parts with deliberately different authorities:

  1. an orchestrator application authored in .fsl — the desired-state model, reconciliation rules, rollout and governance policy live in the semantic plane;
  2. .fsp realization plans carrying authored placement preferences — physical selection authority belongs to the realization plane, not to the mechanism;
  3. one bounded host service (formasl-orchestrator) — activation, queueing, coalescing, bounded evaluation scheduling, dispatch wiring, operational persistence, recovery, roster handling;
  4. per-node execution through existing carriers — dispatch crosses the C1 execution plane over declared transports to executor nodes; observation returns through C2.

The host implements no domain rules in Rust. That is a ratified boundary, not a style preference: an automatic transcription of .fsl logic into Rust as a performance fallback is explicitly forbidden, and no scheduling policy exists in the mechanism — placement selection only executes what the closed selection set of the provider law admits.

Orchestration is not semantic computation

The loop the orchestrator runs is operational: it moves work across boundaries and records what happened at each boundary. It does not assert truth. When a cycle reports DispatchedAndSettled, that is a statement about a settled dispatch under an admitted receipt — not a claim that the intended semantic effect is now true in the world. When it reports DispatchedUncertain, the uncertainty is preserved and handed to reconciliation; no amount of retrying by the mechanism may resolve it. Claim, truth, evaluation and observation remain distinct carriers owned by their respective authorities; the orchestrator is a consumer of all four and a producer of none.

This also separates the orchestrator from the Forma-Continuum. The Continuum is the durable execution engine: it keeps a workflow alive across crashes with its own journal and replay laws. The orchestrator is a coordinator: it drives a reconciliation loop over a deployment’s control state, consuming the execution plane for every external crossing. The two can be composed — an orchestrator application may dispatch to a Continuum-hosted activity — but they are different mechanisms with different contracts, and neither substitutes for the other.

What v0.1 does not do

The contract’s horizon excludes, by owner decision: consensus-replicated control state, automatic coordinator failover, dynamic membership and discovery, preemption of running work, generalized adjudication of conflicting observations (CL4), and multi-tenancy. Nothing in the component may be read as providing them. Two ceilings deserve their own words because they are easy to over-read:

  • Fencing is write exclusivity, not global execution exclusivity. Holding the current fence generation over the designated control state establishes that this instance’s publications win; it proves no process death, no cessation of in-flight external effects, and never re-authorizes an uncertain operation.
  • Multinode is single-host, cross-process. The demonstrated reference class is one host with independent executor processes over real sockets. No cross-host duplicate-designation detection or prevention exists or is claimed (BOOT-N4); the exclusion of simultaneous provisionings is procedural — one owner act.

Architecture opens the mechanism plane and its six-plane separation. The operational cycle follows one cycle end-to-end, from .fsl evaluation to admitted receipt. CLI and operations shows the working binary with verified output; durability and recovery is the chapter to read before an incident. Verification and limits closes with the acceptance matrix, the measured performance method, and the exact guarantee ceiling.