Skip to main content

What a Run Does

A coding run is a governed loop, not a chat that happens to write code. It moves through six phases, ends in exactly one of three terminal states, and leaves behind a signed receipt for every diff it applied. The property that makes it trustworthy is simple to state and unusual in practice: the model is never asked whether its own edit worked, the loop reads the compiler and the test suite instead.

This page is the mechanism. For the developer consoles, the coding crews, the pre-commit scan, and the disconnected edge surface, see Software engineering.

The six phases​

Figure D3: a coding run. Bootstrap opens one bounded egress window for dependency install (cyan); after it the network is sealed and the run is offline (amber). Verify is deterministic (green), parsed compiler and test output, never the model's opinion. The repair loop returns to Edit until both diagnostics are clean and the suite is green, and the run ends in exactly one of three terminal states.

Table equivalent

#PhaseWhat it doesThe honesty property
1ProvisionClone the bound repository into a fresh per-run workspaceA clone that fails, fails the run with the real error: no repair over a tree never checked out
2BootstrapInstall dependencies once, before the first verify, across 7 language families with a monorepo walkRuns in one bounded egress window authorised by the egress broker; an off-allowlist registry is refused, then the network is sealed
3NavigateRepo map (content-hash cached), root-confined code search, compartment-scoped semantic retrievalA language outside the supported set is omitted, never faked; retrieval cannot reach another workspace's code
4Editstr_replace (refuses an absent or ambiguous target) and a hunk-verified diff applier, run as an atomic changesetA failed edit leaves the file byte-for-byte untouched; .. and absolute paths are rejected
5Verify8 test frameworks parsed into a structured verdict; 7 diagnostics tools in machine-readable modeThe model is never asked whether its edit worked; a framework outside the matrix is an explicit unsupported error, never faked as passed
6RepairFeed the structured failures (files, lines, messages, test names) back and iterateClean diagnostics and a green suite are both required for success

Verify, deterministically​

The eight test frameworks, pytest, cargo, Jest, go test, Maven Surefire, Gradle, dotnet test, and CTest, are each parsed from that framework's real console shape into a structured verdict, and each parser is exercised on both a passing and a failing run. The seven diagnostics tools, pyright, tsc, cargo check, Clippy, go vet, ESLint, and Ruff, run in their machine-readable modes, so ok is derived purely from parsed diagnostics and a broken build cannot be mis-read as clean. A non-zero exit always yields a failure.

Three terminal states​

A run ends in exactly one of these, never in a fabricated success:

Terminal stateMeaning
SucceededClean diagnostics and a green suite: both required. Clean diagnostics with a failing suite is not success
FailedA clean give-up carrying the last real failures, never a made-up pass
Halted by the gateThe net-potential-gain governor evaluated the aggregate (value against tokens, wall-clock, fan-out, and churn) and refused the next iteration's spend, marking the run requeue-recommended

Throughout, the run keeps a durable plan rather than holding it in the conversation. Because the plan is persisted and replicates, a run that restarts, or is picked up by a peer cell, reconstructs its plan rather than starting over. Runs can be cancelled and resumed.

The signed receipt chain: "the 16th chain"​

Every applied diff produces a signed, chained receipt, one more hash-linked chain alongside the platform's other tamper-evident ledgers.

Figure D5: the signed diff receipt chain. Each receipt carries the diff's SHA-256, the who/what/why/as-of-when, a real Ed25519 detached signature over the canonical receipt bytes, and a link to the previous receipt's hash. Verification is stateless and offline, a third party needs only the receipt, the diff text, and the signer's raw public key. A changed diff or any changed metadata field is rejected, and because receipts are chained per run, removing one is detectable.

Table equivalent

ElementWhat it carriesProperty
ReceiptDiff SHA-256, actor, reason, as-of-when, previous receipt hashSigned with a real Ed25519 detached signature over canonical bytes
ChainReceipts linked per runRemoving a receipt breaks the hash link and is detectable
VerificationReceipt + diff text + signer's raw public keyStateless and offline: no database, service, or account
TamperAny change to the diff or a metadata fieldRejected on verification