Skip to content

Agents and LLMsMethods and reviewreference

A sensor-gated coding-agent loop compared with 2026 harnesses

For an unattended coding agent, the deciding question is who declares the work done. This page is a reference for that decision: what a sensor-gated loop with a governor adds to a plain agent loop, where graph frameworks fit (at the outer layer, ordering loops and deterministic steps), and what the primary sources from 2026 say. It is the sibling of Benchmarking local models for agent work, which picks the model that sits in the loop, and of Scheduling one GPU (graphics processing unit) between LLM (large language model), image and training work, which owns the hardware the loop runs on. Process rules enforced at the tool call are covered separately in the guard-extension page.

The journal numbers were measured from the run journal on 2026-10-14, filtering out bench and trial runs and counting only runs with a recorded result. The 2026-11-21 additions (stuck-sensor escalation, sensor discrimination, scoped checkpoints, compaction end, prompt caching for local runs, and the independent-oracle rule) come from further live runs, cited by the feature they added. The loop’s mechanisms are read from its own docs and test suite; a mechanism that only a scripted agent exercises is marked design-only, and a mechanism exercised by a live run is marked tested. The gap-to-commit mapping and the suite counts come from the implementation plan, cited as text. The discourse section is asserted - read from the primary sources it links - not re-measured. Anything the research left unverified is named as unverified.

  • For unattended changes, the load-bearing part is one fixed inner loop gated by objective sensors (exit codes), with a governor outside it that can roll back, fence the write scope, and climb a model ladder when the loop stalls. Graphs do not replace this; they sit one layer up, ordering several loops and the deterministic steps between them.
  • The 2026 discourse converges on that split once you read the primary sources. Böckeler’s guides-and-sensors vocabulary and OpenAI’s “Harness engineering” post both put steering and feedback loops at the centre of a trustworthy agent12. Stripe’s minions are a blueprint graph of deterministic and agent nodes, but the deterministic nodes are exactly the sensors a loop runs3.
  • The plain Ralph loop has no objective gate: a hook re-feeds the prompt until the agent emits a completion promise45. That is fine when a human reviews the diff anyway and wrong when “done” must be decided by something other than the model’s self-report.
  • Seven weeks of live runs (100 with a result) came out 84 pass, 65 of them on iteration 1, with 6 model-ladder climbs across 5 runs. Agent turns took 15.0 h against 1.23 h of sensors, so the place to spend effort is the agent turn, not the sensors.
  • The loop’s governor does five things the surveyed tools do not document: an escalation ladder keyed to stalls, a negative-knowledge history of rolled-back attempts, a write-scope fence with ref/index guards, process-group reaping, and signed governor receipts. That holds for the tools surveyed, not the whole field.

One loop run:

once, before iteration 1each iterationdiscriminate check(sensor red on known-bad,green on known-good)baseline sensors+ checkpoint (whole tree)context commands+ upstream summariesfresh agent turn (pi -p)stable prompt head,lean on local modelswriteScope fence+ ref/index guardssensor fix commandssensors(build, lint, test, judge,metric-assert, hardware)decide: keep / rollbackescalate on stall or stuck sensorsensor feedback+ handoff notescheckpoint(writeScope paths only)keep

The same thing as text:

  1. Before iteration 1: each sensor with a discriminate block runs against a known-bad and a known-good tree and the run is refused unless it tells them apart; the baseline sensors run and the first checkpoint snapshots the whole tree, including the operator’s uncommitted work; context commands and upstream summaries are gathered once, outside the jail.
  2. Each iteration is a fresh agent turn (a fresh pi -p) on the current ladder rung. The run-constant part of the prompt comes first and byte-identical, so a local engine’s prefix cache reuses it; local rungs run lean (no skills, guide excerpts).
  3. The write-scope fence reverts out-of-scope edits and saves what it reverted, new files included, as a patch; ref/index guards stop the agent from moving the checkpoint with its own git commands.
  4. Sensor fix commands (formatters, autofix) run after the fence, before the sensor pass.
  5. Sensors gate on exit codes; the decide step keeps (checkpointing only write-scope paths) or rolls back after saving the iteration’s changes as a patch, and climbs the model ladder after stallPatience no-progress iterations or when one sensor stays red for stuckPatience iterations. The next turn gets the sensor feedback and the previous turn’s handoff notes.
  6. The governor - checkpoint/rollback, jail, budgets, the ladder, signed receipts - owns git and the process tree throughout; on a local rung a context compaction ends the turn early.

Several runs as a graph:

cmd node(make generate)loop node Alocks: boardloop node Blocks: boardupstream summarycommit node(its own paths)

As text: a cmd node runs a deterministic step; loop nodes run in dependency order and hand each later node a summary of what the earlier one did; nodes that share something outside their repo (a test board, a scratch directory, the one local-model lane) name it in locks and never overlap; a commit node commits only its own paths and never pushes. A loop node that fails keeps its worktree and leaves a patch of its work, plus one patch per rolled-back iteration, in the graph’s log directory, so removing the worktree loses nothing; a node in a shared stacked worktree saves its patch, then resets to its start commit for the next node. Stopping the graph signals only its runner, which leaves trees and indexes as they were. Running such a graph over a batch of board cards, with a judge who reviews and lands each result, is covered in Running board cards through agent loops as waves with foreman.

OptionWhat it isWhen it fitsWhen it does not
Plain agent loop (Ralph)A Stop hook re-feeds the same prompt when the agent tries to exit; completion is a text promise the agent emits. No objective gate45.Interactive or lightly supervised work where a human reviews the diff; prototyping.Unattended changes, where “done” has to be decided by something other than the model’s self-report.
Sensor-gated loop with a governor (this one)Objective exit-code sensors decide completion; the governor adds checkpoint/rollback, a write-scope fence, and a model escalation ladder.Unattended, test-fenced changes; greenfield modules; doc and lint conformance.Unfenced blast radius; tasks with no spec to gate on.
Graph / workflow engine (LangGraph, ADK graphs, Archon YAML (YAML Ain’t Markup Language) DAGs (directed acyclic graphs), Stripe blueprints)A fixed graph of deterministic and agent nodes, with ordering, parallel fan-out, and per-node model routing6783.Several independent tasks, or mixing deterministic steps (codegen, migration) with agent steps, when you know the shape up front.One tightly-coupled task, where the graph is coordination overhead on top of the loop.
Durable agent framework (Vercel eve on the Workflow SDK, Temporal-style)Filesystem-first durable agents whose turns checkpoint so they survive crash and redeploy; the sandbox sits outside the credential-holding loop9.Long-running multi-step agents that must park for hours (approvals, sign-ins) and resume; credential isolation matters.It has no objective done-check, so it does not by itself tell you the work is correct.

In its original form Ralph is a Bash loop: while :; do cat PROMPT.md | <agent>; done pipes the same prompt file into a new agent process, again and again4. Anthropic’s Claude Code ships a plugin version that runs inside one session: a Stop hook intercepts the exit attempt and feeds the same prompt back until the agent emits a completion promise5. The loop never judges the work - the agent decides it is done by saying so. That is the gap every later system in this page closes, one way or another: move the completion decision out of the model and into something the operator controls.

Böckeler’s framing is the vocabulary this loop uses. A harness is everything in a coding agent except the model; its outer layer serves two goals - raise the probability the agent gets it right first time, and provide a feedback loop that self-corrects before the result reaches human eyes1. The controls split two ways:

  • Guides (feedforward) anticipate behaviour and steer before the agent acts.
  • Sensors (feedback) observe after the agent acts and let it self-correct, and are most powerful when their output is optimised for LLM consumption - her example is a custom linter whose message embeds the remediation, “a positive kind of prompt injection”.

Each control is computational (deterministic, run by the CPU (central processing unit): tests, linters, type checkers) or inferential (semantic, run by a model: AI (artificial intelligence) review, LLM-as-judge). Computational sensors are cheap enough to run on every change; inferential ones add judgement at higher cost and non-determinism. The split matters for this loop because its keep/rollback decision is a computed comparison of failing counts, with the inferential judge feeding a SCORE only as a tie-break - the deterministic signal dominates.

OpenAI’s harness engineering in practice

Section titled “OpenAI’s harness engineering in practice”

OpenAI’s team built and shipped an internal product with zero lines of human-written code, on the order of a million lines across roughly 1,500 merged pull requests at 3.5 PRs (pull requests) per engineer per day2. The mechanisms they describe are the same family as this loop’s:

  • Lint messages that teach the fix. Custom linters are written so the error message injects the remediation into agent context - Böckeler’s “positive prompt injection” in production.
  • A bootable app per worktree, driven over CDP (Chrome DevTools Protocol). One app instance per change, with DOM (Document Object Model) snapshots and screenshots, so the agent can reproduce a bug and validate a fix directly.
  • Observability as agent context. Logs and metrics exposed to the agent via LogQL and PromQL on an ephemeral per-worktree stack, so prompts like “startup completes in under 800 ms” are checkable.
  • Doc-gardening agents. A recurring background agent scans for stale documentation and opens fix-up pull requests.
  • Ralph-style review loops. An engineer describes a task, the agent reviews its own change locally, requests further agent reviews, and iterates until all reviewers are satisfied - “effectively this is a Ralph Wiggum Loop”. Their stated conclusion: the hardest problems are “designing environments, feedback loops, and control systems”.

Two of those - the observability sensors and the doc-gardening loop - map directly onto this loop’s metric-assert sensor and its weekly garden job, described below.

Graph engineering, and the counter-evidence

Section titled “Graph engineering, and the counter-evidence”

The graph camp puts the structure first: a directed graph whose nodes are agents or plain functions, with parallel fan-out, routers, shared state and checkpointing, as in Google’s ADK (Agent Development Kit) graph workflows and LangGraph76. The underlying distinction is Anthropic’s workflows-vs-agents split: a workflow is a fixed graph of steps, an agent is a loop with tools that the model directs10. Read from the primary sources, the two camps agree on the constraint and differ only on the default:

  • LangChain’s Open Deep Research dropped parallel section-writing and keeps multi-agent orchestration only for research11.
  • Cognition’s “Don’t build multi-agents” argues multi-agent systems are fragile - decision-making too dispersed, context not shared thoroughly enough12.
  • Anthropic’s own multi-agent research post, the strongest graph result, says the pattern excels at “breadth-first queries that involve pursuing multiple independent directions simultaneously”, and that “most coding tasks involve fewer truly parallelizable tasks than research”13.

That is the boundary this page draws: graphs at the outer layer, where work is genuinely several independent loops or deterministic steps, and one fixed inner loop where it is not. The unverified claim that a LangGraph workflow fails 24% of tasks against 11.5% for a loop harness, and the “scaffold moves scores 48 points vs 5 for a model change” claim, both come from a single untranscribed video and have no primary source; they are left out except as this note.

Stripe minions: blueprints are graphs with deterministic sensors

Section titled “Stripe minions: blueprints are graphs with deterministic sensors”

Stripe’s unattended minions produce more than a thousand merged pull requests a week, human-reviewed but containing no human-written code3. Their orchestration primitive, the blueprint, is a graph that interleaves deterministic code nodes (“Run configured linters”, “Push changes”) with agent nodes (“Implement task”, “Fix CI failures”). The deterministic nodes guarantee a subtask runs, and they save tokens and CI (continuous integration) cost by not letting the model decide whether to lint. Stripe runs a subset of linters as a deterministic node in the local loop before pushing, then one round of full CI with autofix, then one more agent fix round, then the branch goes to a human. The “one or two CI rounds, then a human” cap is the same budget reasoning as this loop’s maxIterations and model ladder - diminishing returns on indefinitely many rounds.

Vercel eve: durability and credential isolation, not completion

Section titled “Vercel eve: durability and credential isolation, not completion”

eve is a filesystem-first durable agent framework: an agent is a directory of markdown and TypeScript, and each turn runs as a durable workflow on the Workflow SDK (software development kit), so a session survives crash, timeout and redeploy by checkpointing at each step9. It splits execution into an app runtime that holds the model, the loop and the credentials, and a sandbox that runs the bash and file tools - so the sandbox never sees the provider key. This loop does not isolate the provider key from the sandbox (see Limits). But eve has no objective done-check: completion is the agent’s own stop condition, not a sensor. Its in-flight refactor (issue #512) is to decouple the loop from durable execution behind a pluggable Loop interface - evidence that the loop itself is the part being isolated and made testable, not replaced by a graph.

What this loop has that the surveyed tools do not document

Section titled “What this loop has that the surveyed tools do not document”

Scoped to the tools the research covered (Ralph, Claude Code, Codex, ADK, LangGraph, Archon, Mastra, CrewAI, Goose and Stripe’s fork of it, eve, OpenHands, SWE-agent (software engineering), Aider, smolagents, DSPy (Declarative Self-improving Python), Copilot agent mode). Per-node or per-recipe model routing is common; the following are not documented in any of them:

  • Escalation ladder keyed to stalls. The loop climbs to the next model rung after stallPatience no-progress iterations, not on a fixed schedule. The surveyed tools let you assign a model per node or per recipe; none documents climbing in response to a detected stall.
  • Negative-knowledge history. A rolled-back attempt is injected into later prompts naming what it broke, so a fresh iteration cannot repeat a proven dead end. Without it, feedback is built from the best-known-good state and the next iteration cannot see the failure that caused the rollback - a recorded run walked into the same gofmt failure again on the next iteration for exactly that reason.
  • Write-scope fence plus ref/index guards. Out-of-scope edits are reverted each iteration, and agent-run git commit / reset / stash / skip-worktree cannot move or destroy the checkpoint. Stripe solves isolation with a quarantined devbox; this loop solves it per-iteration inside one repo.
  • Process-group reaping. A wall-clock budget per sensor, per agent turn and per agent shell command, with the process group killed past budget, so nothing a sensor or agent backgrounds survives it.
  • Signed governor receipts. Each governor step (sense, checkpoint, rollback, scope-check) can emit a signed JSON (JavaScript Object Notation) receipt against a nonce, which an outside driver verifies with verify-receipt. It exists so a separate orchestrator (the bundled Workflow driver) can drive the loop and still prove each governor decision was the loop’s, not an edit.

The 2026-10-13 review measured the loop against the field above and produced eight gaps, shipped in value order, without turning the loop into a workflow engine. The commits are cited by feature name, not hash.

GapSource of the ideaWhat shippedHow it was checked
G1 sensor fix commandStripe autofix / local lint nodethe sensor fix commandlive run (a local-model run on a test repo: the formatter ran after the agent turn)
G2 zero-change iteration = forced stall, sensors skippedjournal: zero-edit iterations read as progresszero-change forced stallscripted agent (loop-zero-change.integration.test.ts)
G3 manifest context commands + --context-fileStripe pre-hydration; OpenAI context legibilitymanifest context commands and --context-filelive run (the same test-repo run: context injected before iteration 1)
G4 scored sensors (SCORE:, judge emits it)SKILL.md limit: a binary judge has no gradientSCORE: scored sensorslive run (garden e2e: judge SCORE 15 -> 25 -> 75 kept each iteration at an equal failing count)
G5 graph cmd nodes + upstream summariesArchon / Stripe blueprints mix deterministic and agent nodesgraph cmd nodes and upstream summariesscripted agent (graph-cmd.integration.test.ts)
G6 metric-assert PromQL/LogQL sensorOpenAI per-worktree observabilitythe metric-assert sensorstub tests, then a live check against the real Prometheus and Loki (2026-10-14)
G7 garden: weekly checks-only timer + garden --fix on demandOpenAI doc-gardening; the local LLM is often not runningthe weekly timer, garden --fix, a health-check fix, and an e2e diff checklive run (third e2e passed on iteration 1)
G8 best-of-N on cloud rungsno measured needdeferredn/a - revisit when needed-escalation or thrash exceeds 10% of runs
G9 stuck-sensor escalation (stuckPatience)a hardware timing proxy kept one sensor red for ten iterations; the stall counter never fired because other sensors moved, so the stronger rung never ranstuckPatiencelive run (a keyboard-firmware graph: one red sensor for ten iterations across two runs, zero escalations; it went green on the same local model once the operator fixed the sensor)
G10 sensor discrimination check (discriminate)an operator-written hardware sensor was correctly red at baseline but measured a proxy that moved with the wrong quantity; running it against a known-bad and a known-good tree before the run catches thatdiscriminatelive run (keyboard firmware: the sensor read report freshness from a stream endpoint’s completion count, not the keyboard endpoint’s, so it tracked 1 minus the stream rate rather than actual report age)
G11 scope-limited checkpoints + commit graph node + named locksa post-iteration checkpoint (git add -A) staged a copied third-party tree that the agent brought in to run its tests, and a hand-written commit step committed it; nodes sharing a board or a scratch directory outside the repo had no lock beyond the existing per-repo onescope-limited checkpoints, a commit node and named lockslive run (keyboard-firmware graph: a commit node shipped a GPL (GNU General Public License) test harness into the repo)
G12 compaction ends a local-model iteration (endOnCompaction)a compaction summary written by a weak local model poisons the rest of the turn; a fresh iteration with the handoff notes is betterendOnCompactionlive run (keyboard-firmware graph, local rungs)
G13 cache-friendly prompt order, lean agent mode, and handoff notesa local engine re-reads the full prompt per iteration, and its prefix cache hits only when the head is byte-identical; the agent had no way to hand findings across iterations except in the failing-sensor outputcache-friendly prompt order, lean agent mode and handoff notesunit and integration tests (byte-identical prompt head across iterations; notes from iteration 1 reach iteration 2’s prompt); the prefill saving on the local engine is not measured yet
G14 engine-phase status on bg_loop rowa loop stuck on a tool call (no generation) looked the same as one generating at 0 tok/s, and a find / parked an iteration for 16 minutes before the operator noticedthe engine-phase status on the bg_loop rowlive run (keyboard-firmware graph: the prefill/decode rate in the agent view row made phases visible in real time)
G15 sensor pass cache (cache: true)agent waves: sensors took more wall time than the agents (about 3,800 against 3,460 minutes from 24 to 26 November 2026, preflight checks included), and gates re-ran on unchanged trees at every baseline, retried baseline and rolled-back iterationa sensor that declares cache: true and passed on a tree is not run again on the same tree; the key is the command, the directory, the commit, the working-tree content, the build environment and the toolchain versions; only passes are stored, and only when the sensor left the tree unchangedscripted (loop-sensor-cache.integration.test.ts)
G16 low CPU weight for loop workwaves of agents and sensors pushed the shared development machine to a load average near 75 on 16 hardware threads while its owner worked on itloop run and loop graph run move themselves into a transient systemd user scope with a low CPU weight (20 against the default 100) and wait until the move lands before starting anything, so every agent and sensor yields to interactive work under contention and still gets idle CPU; the run journal records the share of each run’s wall time in which tasks waited for a CPUscripted (cpu.test.ts) and probed (a sensor reads its own control group)

The bugs the live runs found, which the gaps did not predict:

BugWhat it looked likeFix
Untracked .pi/ read as a dirty treeevery run refused to start in a repo with no tracked .pi/: the loop writes its run log there before the clean-tree check, and git reports the new directory as one entry the loop did not recognisethe clean-tree check ignores the loop’s own .pi/ run log
Bare --context-file dropped contexta trailing --context-file with no path overwrote the paths collected so far, and the run went ahead without contexta bare --context-file is now a usage error
The write-scope fence exempted all of .pi/an agent edited the lint config to waive its own warningsnarrowed the fence to the loop’s own harness files plus ! exclusions
A timed-out judge read as lateral progressthe partial output of a killed judge differed every time, so an equal failing count with a “new” fingerprint was kept as progressa timed-out sensor fingerprints as a constant
The local-model health check never matchedthe garden precheck grepped for Health: ok against a status line padded with spaces, so every run fell back to the cloud modelthe garden precheck matches the padded status line
A proxy hardware sensor went undetected for ten iterationsthe sensor measured report age at “next USB IN completion”, which was the stream endpoint’s, so it tracked 1 minus the stream rate instead of keyboard report freshness; the agent likely had a working fix by iteration 1-4 and spent ten iterations chasing the metricG10 (discriminate) catches these at baseline now
A checkpoint shipped a third-party tree into a committhe agent copied a GPL test harness into the repo to run it; git add -A staged it and the graph’s commit node committed itG11 (scope-limited checkpoints, per-commit paths) closes this
Shared build caches contaminated images across branchesbuilding a worktree with CARGO_TARGET_DIR pointed at another checkout’s target dir made cargo reuse that tree’s artifacts (git archive mtimes older); images silently carried another branch’s codeone build dir per tree; diff the binaries before theorising when a result splits by build location

When the deliverable is bytes a spec defines (a USB (Universal Serial Bus) descriptor, a wire format, a file header), the agent’s own tests are not a gate: it writes the code and the tests from the same reading of the spec, and a misreading passes both. On 2026-11-21 a keyboard-firmware run produced a USB MS (Microsoft) OS (operating system) 2.0 descriptor set that passed its own tests twice while getting the type codes, subset lengths and field widths wrong. Rule: for spec-defined output, at least one feature sensor is an oracle the agent cannot edit - outside writeScope, written from the spec’s field tables by the operator, or a reference vector from a known-good implementation. The agent’s tests can stay, but they do not count as gates.

Measured 2026-10-14 from the run journal, non-bench and non-trial runs with a recorded result, spanning 2026-08-24 to 2026-10-13:

  • 100 runs: 84 pass, 12 interrupted, 3 fail, 1 crashed. 65 of the 84 passes finished on iteration 1 (77%).
  • 164 iterations, 37 of them zero-change (22.6%). A zero-change iteration is an agent that read for minutes and wrote nothing; before G2 it read as progress, now it is a stall that skips the sensor pass. One exception (added 2026-11-24): a changed iteration runs its sensors before the loop stages the work, so a sensor that reads the git index saw the old one. When the kept result came from such a pass, the next zero-change iteration re-runs only the red sensors, once per state. Without it, a red caused by a stale staged file was reused until the run ended.
  • Agent 15.0 h vs sensors 1.23 h. The agent turn is where the time goes; the sensors are already cheap. Effort belongs on the model and its context, not on speeding up the gates - which is why the bench page picks a fast local model for loops on the grounds that failure is cheap.
  • 5 runs climbed the model ladder (6 climbs total). The needed-escalation failure mode appears on 3 runs. The low rate is the recorded justification for deferring best-of-N: parallel worktree attempts are a large change with no measured need.
  • Failure modes: scope-fighting 6, agent-silent 4, budget-exhausted 3, thrash 3, needed-escalation 3, sensor-timeout 1, agent-error 1 (labels on the 19 runs that did not pass cleanly; a run can carry several). Scope-fighting - at least one iteration touched a path outside the write scope - is the most common; each instance is the fence reverting an edit the agent should not have made.

The journal holds one zero-change iteration that was read as progress: a 5 -> 4 move from a flaky sensor with no edit behind it. Since G2 such an iteration is a stall by definition, its sensors are skipped, and the report marks it noChange.

  • The jail holds the model credentials. pi -p both calls the model and runs the tools inside the jail, so the provider key is readable by any command the agent runs there. eve keeps the loop and the key outside and hands only tool calls to a sandbox; matching that needs a tool-only sandbox inside the harness, not a loop change. Masked secret dirs cover everything else.
  • Binary sensors have no gradient. A binary sensor contributes a pass/fail but no direction; the keep/rollback decision uses the failing count, and the SCORE tie-break only exists when a sensor (the judge, since 2026-10-13) prints one. An iteration that resolves five of the judge’s seven objections is still indistinguishable from one that resolves none on a binary judge.
  • Green computational sensors prove the checks pass, not that the code is right. If the model wrote the tests too, that is a closed loop. The inferential judge and pixel-diff raise confidence; they do not remove the need for a clear spec, and a vague task converges on green-but-wrong.
  • Not for unfenced blast radius. This is a greenfield-module and test-fenced tool, not “loop on the payments service unattended”.
  • Escalation can be triggered by a harness defect, and then it is the wrong remedy. If the loop never told the agent what it was being judged on, a stall reads as “the model is too weak”. loop report --prompt N shows the exact text an iteration saw, which is the fastest way to tell the two apart.
  • The governor’s later rungs are design-only. Beyond the first escalation and the negative-knowledge history, the ladder and receipts are exercised only by scripted agents in the integration suite - designed and unit-tested, not field-proven.
  • A single tool call is capped only inside the Linux sandbox. A find / parked an agent iteration for 16 minutes before the operator noticed (2026-11-21), bounded only by the per-iteration agentTimeoutMs. Since then each shell command the agent runs is killed after toolTimeoutSec (300 seconds by default; the wave tool sets 600) when the loop runs in its bwrap jail. A bare run or the macOS sandbox has no per-command cap; there the engine-phase display (G14) is the only sign: a run that shows no prefill/decode rate for minutes is stuck in a command, not generating.
  • Green feature sensors that the agent wrote are not review. When the deliverable is bytes a spec defines, agent-authored tests and sensors form a sealed loop: the same misreading of the spec passes both. The independent-oracle rule (above) is the defence, but the loop itself has no mechanism to tell an agent-authored sensor from an operator-reviewed one.
unattended code change?human reviews the diffanyway?yesobjective gates exist(build, lint, test, spec)?noplain agent loop(Ralph)yesnosensor-gated loopwith a governoryesseveral independent tasksor deterministic steps between?no clear specouter graph(cmd + loop nodes)yesmust park for hoursor isolate credentials?nono - tighten the specdurable agent(eve / Workflow SDK)yes

The same decision as text:

  1. Is the change unattended? No - a human reviews the diff, so a plain Ralph loop is enough.
  2. Do objective gates exist (build, lint, test, a spec you can assert)? Yes - a sensor-gated loop with a governor.
  3. No clear spec - is the work several independent tasks or deterministic steps between them? Yes - an outer graph of cmd and loop nodes.
  4. Not several tasks, but the run must park for hours or isolate credentials from the sandbox - a durable agent framework (eve).
  5. None of the above - the work is one task with no gate, and the fix is to tighten the spec, not to add a graph.
ClaimHow it was checkedTested vs design-only
100 runs, 84 pass, 65 first-try, 164 iterations, 37 zero-change, 15.0 h agent vs 1.23 h sensors, 6 ladder climbsmeasured from the run journal, 2026-10-14measured
The loop reverts out-of-scope edits and blocks agent git mutations of the checkpointread from governor docs; loop.integration.test.tstested
Zero-change iterations are stalls and skip the sensor pass, except a one-time re-run of red sensors measured against another git indexloop-zero-change.integration.test.ts, loop-resense.integration.test.ts (scripted agents)tested
A sensor fix command runs after the fence, before the sensor passloop-fix.integration.test.ts; also a live local-model runtested
SCORE: breaks the keep/rollback tieloop-score.integration.test.ts; garden e2e observed 15 -> 25 -> 75tested
Graph cmd nodes and upstream summaries reach a dependent loop’s promptgraph-cmd.integration.test.ts (scripted agent)design-only
metric-assert gates a PromQL query or a LogQL line countstub tests; live check against the real Prometheus and Loki, 2026-10-14 (a true and a false PromQL assertion, a LogQL round trip)tested
The escalation ladder and negative-knowledge history work beyond the first rungloop.integration.test.ts (scripted agent)design-only
A cached sensor pass is reused only on the same tree, never for a failure or for a sensor that changed the treeloop-sensor-cache.integration.test.tstested
Signed governor receipts verify a step against a noncereceipt.test.tsdesign-only
The surveyed tools do not document the five governor mechanismsread from the primary sources of each surveyed tool, 2026-10-13asserted, scoped to those tools
Stripe blueprints, OpenAI’s per-worktree observability, and eve’s credential splitread from the linked primary sourcesasserted
  1. Birgitta Böckeler, “Harness engineering for coding agent users,” martinfowler.com, 2 April 2026. https://martinfowler.com/articles/harness-engineering.html ↩ ↩2

  2. Ryan Lopopolo, “Harness engineering: leveraging Codex in an agent-first world,” OpenAI, 11 February 2026. https://openai.com/index/harness-engineering/ ↩ ↩2

  3. Alistair Gray, “Minions: Stripe’s one-shot, end-to-end coding agents - Part 2,” Stripe, 19 February 2026. https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents-part-2 ↩ ↩2 ↩3

  4. Geoffrey Huntley, “Ralph Wiggum as a ‘software engineer’.” https://ghuntley.com/ralph/ ↩ ↩2 ↩3

  5. Anthropic, “Ralph Wiggum plugin,” claude-code repository. https://github.com/anthropics/claude-code/tree/main/plugins/ralph-wiggum ↩ ↩2 ↩3

  6. LangChain, “LangGraph.” https://github.com/langchain-ai/langgraph ↩ ↩2

  7. Google, “Agent Development Kit (ADK).” https://github.com/google/adk-python ↩ ↩2

  8. Cole Medin, “Archon.” https://github.com/coleam00/Archon ↩

  9. Vercel, “eve” (README and “Execution model and durability”). https://github.com/vercel/eve and https://github.com/vercel/eve/blob/main/docs/concepts/execution-model-and-durability.mdx ↩ ↩2

  10. Anthropic, “Building effective agents.” https://www.anthropic.com/engineering/building-effective-agents ↩

  11. LangChain, “Open Deep Research.” https://www.langchain.com/blog/open-deep-research ↩

  12. Walden Yan, “Don’t build multi-agents,” Cognition, 12 June 2025. https://cognition.ai/blog/dont-build-multi-agents ↩

  13. Anthropic, “How we built our multi-agent research system,” 13 June 2025. https://www.anthropic.com/engineering/multi-agent-research-system ↩