Forma-Continuum, the durable execution engine
A program that steers the real world does not end in the request that spawned it. It waits on a clock, reacts to a signal, awaits an external worker that may never answer. The Forma-Continuum is the part of the platform where that waiting becomes durable: an execution engine that keeps a workflow alive across crashes, restarts and absences, because every decision it makes is already recorded before it is needed again.
The language executes; the journal decides
The engine carries no runtime of its own. It receives a .fsl program, elaborates it through the platform’s own compiler, and evaluates it with the language’s evaluation engine, in process. The Continuum adds the record around that evaluation: an append-only journal where every transition appends its events under contiguous ordinals and a monotonic generation, and a carrier state that advances with the journal. Ordering is not convention. Transition validation rejects an ordinal that skips and a generation that does not advance, and that validation is a single path shared by every backend that wants to keep a journal.
This splits authority without splitting the language. The carrier decides; the journal decides who may decide; and semantics remain the program’s own, because the payload that seeds each execution carries the exact bytes of the source, identified by the same hash the compiler computes.
Replay is not re-execution with fresh data
When the engine reopens an execution it need not re-evaluate everything: it must confirm
that every closed segment of the journal reproduces the same decisions. The evaluation
window therefore contains only what the original evaluation saw. The Scheduled/Started
pair the engine records alongside the result, and the completion marker written after the
decision, never entered the evaluation and so never enter the window. A carrier that
decides by the shape of the batch sees the same shape it saw the first time, and a journal
tamper surfaces as a divergence between the recorded command and the re-derived one, which
the engine seals as NonDeterministic and terminates.
Replay’s initial state deserves separate notice: it is the state seeded in the first event’s envelope, not the latest one. A carrier with private memory does not diverge for having slept.
The activity is the contract with the outside world
Pure workflow is deterministic by construction. The activity is what brings the world inside: the engine schedules, hands the task to a worker, and waits for a result that may arrive late, twice, or from someone who never received the task. The Continuum treats each of those arrivals as suspect until proven otherwise. A delivery carries the generation of its scheduling; an outcome validates the execution, the generation, the openness of the attempt and the actual delivery, in that order, before any transition. A late reply from an expired attempt, a duplicate for the same generation, and a result for a task that was never delivered fall into distinct typed errors, and none of them writes a line to the journal.
Time is a contract too. Each attempt has its own execution deadline; the activity has a total scheduling window and a ceiling on attempts. Expiration records the contracted timeout event, not a feigned worker failure; when the total window runs out, the event carries the discriminated cause, and the window holds even while the open attempt’s own deadline still lies in the future.
The crash is the experiment, not the exception
The conformance suite kills the engine for real. A subprocess runs the scenario to a deterministic frontier and calls abort; what survives is what SQLite committed under WAL with synchronous FULL. The scenarios all show the same shape: a crash between a recorded start and its outcome takes only the outcome away, and recovery reschedules the attempt kept by generation, so no poll reopens what was already delivered and no deadline is left unowned. The engine treats interruption as the normal regime, and the battery proving it runs identically over both journal backends.
Two backends, one law
The journal is a trait, and two keepers implement it: SQLite in durable mode and the FormaKV, the platform’s persistence engine. The conformance battery is the proof that the abstraction exists: same scenarios, same guarantees, different backends. And the layer is disciplined in the language’s direction: the Continuum’s substrates do not depend on the compiler; only the host references it, because semantics are decided by the host, not the record.
The journal speaks to the reactive world
A durable journal nobody can observe serves only the executed program itself. The reactive feed declares a source name and publishes every journal event as an occurrence: the position is the ordinal, the identity is the occurrence’s durable id, and reading checks contiguity against the consumer’s position, so a journal corrupted outside the API fails closed instead of continuing from the hole. A foreign execution’s event is never published under another’s name. On the consumer side a notification becomes an activation candidate only for whoever declared a dependency on that source, and activation passes a policy gate before it becomes an order. The cycle closes: journal, emission, declaration, candidate, gate, order.
What execution costs
The engine is embedded: it links as a library and inherits the durability of the chosen backend, with no second process. The visible cost is the journal, which grows with every decision and exists precisely to not be discarded; recovery reads closed prefixes and checks the past in windows.
A workflow that must survive asks nothing more of the infrastructure. It asks a journal that does not lie, a replay that does not invent, a delivery that accepts no stranger, and a clock that expires when the contract says. That is what the Continuum executes.