Authoritycompiled graph
Boundarystage contracts
Resultterminal markers
Controlruntime transitions
Architecture

Workflow specs compile into governed loops.

Millrace turns a workflow definition into graph authority the runtime can execute repeatedly: stage contracts define legal work, agents emit predefined terminal status markers, and the runtime alone chooses the next deterministic transition.

Compilesworkflow specification
Boundsvalid configuration complexity
Routesdeterministic transitions
Completesper workflow contract
Compiled graph authority 01

The graph is the operating authority.

Millrace does not hardcode one universal agent ladder. A workflow specification declares stages, transitions, recovery paths, terminal markers, evidence expectations, and completion behavior. The runtime compiles that into graph authority before dispatch.

The customization ceiling is therefore the set of valid configurations the compiler accepts, not a fixed number of built-in stages. LAD can have builder, checker, fixer, integrator, and arbiter-style stages; another workflow can expose a different graph while still using the same runtime discipline.

Stage contracts 02

Stages are contracts, not vibes.

A stage contract tells the runner what work is legal, what evidence matters, and which terminal markers are allowed. The agent can reason inside that boundary, but it cannot invent a new state machine by writing persuasive prose.

Inputs and scope

The handoff carries the stage assignment, relevant artifacts, and workflow-specific constraints needed to perform one bounded unit of work.

Predefined terminal markers

Results resolve through known markers such as completed, blocked, needs recovery, or workflow-specific closure states.

Evidence surface

Stage outputs leave artifacts and receipts the runtime and operator can inspect before treating a transition as authoritative.

Deterministic transitions 03

The runtime decides the next valid move.

Agent-owned
Work
Execute the assigned stage, produce artifacts, and return one allowed terminal marker.
Limits
Cannot choose an arbitrary downstream stage, rewrite graph rules, or mark completion outside the workflow contract.
Runtime-owned
Transition
Map the marker and evidence to the next legal node according to compiled configuration.
Recovery
Retry, route repair, pause, mark blocked, or escalate through configured recovery paths when evidence is weak or work cannot proceed.
Completion model 04

Done is workflow-specific.

Recovery is part of the loop

Failures, blocked states, weak evidence, and missing prerequisites route through configured recovery rather than falling out of the system as chat residue.

Completion is not backlog drain

Some workflows finish when required stages and evidence are satisfied. Others require closure review, release gates, or a domain-specific acceptance state.

Evidence follows the graph

Receipts are attached to the stage and run history, so a later operator or daemon can reconstruct why the runtime moved forward, recovered, or stopped.

Next 05

From architecture to operation.

The runtime architecture explains why governed loops can be inspected and repeated. Millrace OS is the planned command center for watching those loops, daemons, queues, evidence, and completion states across active work.