Source: Part One of a practitioner guide on organising coding-agent work as a pipeline of bounded loops, published as a written article and as a 12:28 video walkthrough with a full transcript. The framework below is the author's. The verification section checks the empirical claim his argument opens with against the primary research, which turns out to have retracted its own usability.
The premise, and why it is worth taking seriously
The argument starts from an asymmetry rather than from a tool. Generating code got cheap. Deciding what to build, checking the result, and approving a change did not. So the binding constraint moves: a fixed human verification budget now has far more candidate work arriving at it, and throughput at the generation step tells you nothing about whether delivery improved.
The framing claim is that engineers feel faster while delivery measures stay flat. That claim deserves its own scrutiny and gets it below — it is half right, and the half that fails is instructive. But the design response does not depend on the claim being precisely true, which is the strongest thing about the piece.
Five eras, nested rather than sequential
The organising idea is that five engineering approaches nest, each keeping the useful work of the ones inside it:
| Layer | What it adds | The limit that forces the next layer |
|---|---|---|
| Prompt | One request and its answer format | "the answer cannot independently establish its own correctness" |
| Context | The relevant facts, access rules, accepted scope | A larger pile of documents distracts, and "written guidance still cannot enforce a boundary" |
| Harness | Tools, hooks, a sandbox, enforced boundaries | A person may still babysit each run |
| Loop | A trigger, an outcome, verification, memory, a stopping rule | No coordination with other work |
| Factory | Coordination through durable artifacts and gates | — |
The human approval gate is explicitly not a sixth era: it is "a control around the system". That is a sharper distinction than it looks, and it is what keeps the model from collapsing into a maturity ladder where the top rung is "no humans".
The sharpest line in this section is the harness/loop boundary: "a check asks whether the result is right; a boundary limits what actions can happen." Those are different mechanisms with different failure modes, and conflating them is how teams end up with a reviewer and no sandbox, or a sandbox and no reviewer.
What makes a loop safe to repeat
Five parts, and the claim is that all five are load-bearing:
Trigger — an event, not a prompt. If the event is "a ticket becomes ready", then readiness must already mean something precise, which pushes the design problem upstream where it belongs.
Work — implemented and tested inside an allowed sandbox, scoped to the accepted task and nothing adjacent.
Independent check — "looks for evidence the author might miss". Tests plus a fresh reviewer, on a different basis of judgment. A person retains approval authority.
Memory — outside the run. Recall related failures first, then record what changed and why.
Stop condition — bounds retries, time or money. On hitting a limit the loop asks for help.
The guidance for adopting this is the most directly usable thing in the source: take one agent task you already run, and write down all five. "A blank field is a design question."
A pause is a successful outcome
The best-argued point concerns stopping. If an agent discovers mid-task that large exports need design work nobody approved, the useful result is a recorded question and a pause at the boundary — not a workaround. "Repeatedly patching around the problem can consume the budget without resolving the design."
And the corollary, which is worth copying verbatim into any agent design review: "A missing limit never grants unlimited permission."
Ten stages, and the return arrows
The stages split into four groups — decide (Shape, Plan, Dispatch, Schedule), deliver (Build, Review, Release), operate (Respond), improve (Refine) — with three concerns crossing all of them rather than sitting as further stages: evaluation, memory, and deployment (harness, sandbox, identity).
Two separations in here earn their keep:
Plan, Dispatch and Schedule are three decisions, not one. "A well-written ticket can still be waiting for a prerequisite, a budget, or a safe place in the schedule." Teams that merge these discover the distinction as a queue.
Merge and exposure are separate gates. Merged code may sit behind a rollout control, "lets the team evaluate different evidence at each gate".
The return paths are treated as doing real work rather than decorating the diagram: a repeated review comment becomes a candidate lint rule with a test of whether it catches the intended mistake; an incident becomes evidence plus a refinement ticket routed back to a stage that can decide. "Closing a ticket without preserving the lesson loses much of that value."
Three coordination rules
Artifact contracts must be exact
The worked failure is deliberately mundane and all the better for it: a ticket's state field is written READY by the producing loop and expected as Ready by the consumer. "Those strings differ. The transition does not match, even though a person reads the same word."
This is the whole case for validating a contract before admitting work, and it generalises: wherever two loops hand off, the handoff has a schema whether or not anyone wrote one down.
Information does not grant permission
A correct artifact still transfers no authority. A ticket can describe the work and carry evidence — and can also contain untrusted text. "A sentence inside the ticket cannot grant that authority to itself. The gate requires an explicit decision. Silence leaves the work waiting."
That is a prompt-injection boundary stated as an organisational rule rather than a security control, which is the right altitude for it. People own intent and the merge; agents draft, check, comment and propose.
Memory must survive the conversation
"A fresh agent should not need the original conversation" to understand an accepted boundary or a prior failure. Storage is deliberately left open — a ticket log, a knowledge graph — with one requirement: pick something "your team and agents can both inspect".
The anchor example, and why a working button is not a correct one
One fictional feature carries the whole piece: a user downloads data from the workspace they are in, and every other workspace's data must stay out. That boundary is part of correctness.
"The download button works, and a file appears. That proves part of the behavior." An independent reviewer notices the data selection lacks the workspace filter. A happy-path demo never established isolation. The corrected change needs evidence in both directions: the authorised workspace's data included, another workspace's excluded.
This is the most transferable idea here. A great many agent-produced changes are accepted on evidence that the feature happened, not evidence that the constraint held — and the constraint is usually the part a generated implementation gets wrong, because nothing in the prompt made it visible.
Light and dark factories
A light factory keeps a person at the approval gates and lets agents do the work between them: it costs review time and keeps an accountable decision. A dark factory removes human code review and leans on specifications and checking systems.
The recommendation is to stay light for most organisations, and the reasoning is appropriately narrow: the evidence for removing gates comes from low-risk automation and is "not proof that all gates can disappear". Any darker step should qualify one change class at a time, using measured outcomes.
That is a materially more conservative position than the louder versions of this argument, and it is stated with its own evidence limits attached.
Verification: the premise rests on research that has withdrawn itself
This is where a reader should slow down, because the empirical backdrop is weaker than almost anyone citing it realises — including, in a different direction, the source.
The perception gap is real and well quantified. A randomised trial of 16 experienced developers across 246 real issues, on repositories they had contributed to for years (averaging "22k+ stars and 1M+ lines of code"), randomised per issue, found that developers "take 19% longer to complete issues" with AI tools allowed. They had forecast a 24% speedup, and afterwards still believed they had been sped up by 20%. The researchers call the gap "striking". So "engineers feel faster" is documented, with a number.
But the publishers have since marked that figure historical. Their own banner now reads that these results "no longer reflect the current impact of AI models on open-source developer productivity".
And the replication does not replace it. A later study — 57 developers, 800+ tasks, 143 repositories including "smaller, more greenfield, and less mature" ones, agentic tools, and pay cut from $150/hr to $50/hr — reports a −18% speedup with a confidence interval from −38% to +9% for the returning developers and −4%, interval −15% to +9% for newly recruited ones (negative meaning faster). Both intervals include zero. The authors describe their own data as "only very weak evidence for the size of this increase" and "likely a bad proxy for the real productivity impact", citing selection effects: a significant number of developers now decline to participate rather than work without AI, and 30–50% reported withholding some tasks.
"Delivery dashboards barely move" is not what either study measured. Neither reports defect rates, review time, rework or post-merge incidents. The first study's only quality statement is unquantified; the second's is a developer report, not a measurement.
The part worth carrying away
The stated reason for abandoning the experimental design is the exact workflow this guide exists to organise. Developers "would often work an unrelated task while waiting for the agent to complete its work", which makes task-level time measurement unreliable for anyone running several agents at once. The guide's own opening line is that your agent finishes three changes while you are still reviewing the first.
So the measurement method broke down because of the phenomenon the factory is designed around. Which means the source's prescription — measure accepted delivery and stability, because more generated code cannot tell you whether the team improved — is the right conclusion from that collapse, reached for a reason it does not state. The argument is better supported than its cited premise, not worse.
What the source does not claim, and should be read as not claiming
There is no evidence anywhere in the source that a team organised this way delivers more, faster or more safely. The framework is a set of design commitments with a fictional worked example, and the author says so repeatedly and consistently — the example is "not a report of a tested application", the control is "an illustrative control, not a live tool demonstration", the storage choices are "examples the guide discusses, not mandatory products". That hedging is unusually scrupulous and should be preserved when the ideas are repeated.
Its own advice names the test it has not run: walk a small feature through the handoffs and measure where it actually waits.
Failure modes to watch for
| Failure | How it shows up | Guard |
|---|---|---|
| Happy-path acceptance | Feature demonstrably works; constraint silently violated | Require evidence in both directions — included and excluded |
| Case-sensitive handoff | Two loops read "the same word" and the transition never fires | Validate the artifact contract before admitting work |
| Authority read out of content | A ticket's own text is treated as approval | Authority comes from named people and system rules only |
| Missing stop condition | Budget consumed patching around an unapproved design | A blank stop field is a design question, not a default of "unlimited" |
| Forward-only pipeline | The same failure recurs, faster | Return paths that change what the next run knows or checks |
| Merge treated as release | Exposure decided on merge-time evidence | Separate gates, separate evidence |
| Lesson lost at ticket close | Memory lives in a chat that ended | Durable store both team and agents can inspect |
| Citing a withdrawn figure | A number repeated long after its publisher retired it | Check the source page for a status banner before quoting |
Review checklist
For any loop you are about to let run unattended:
Can you state the trigger as an event with a precise readiness definition, not as a prompt?
Is the independent check performed on a different basis than the work — a fresh reviewer or an executable test, not the same model re-reading itself?
Is there a boundary (what can happen) as well as a check (whether the result is right)?
Is the stop condition written down in retries, time or money — and does hitting it escalate rather than continue?
Does the handoff artifact have exact field values, and have you read it from the next stage's fresh context?
Is approval authority held by a named person, and is silence a block rather than a pass?
Does a failure produce a return path that changes a future check, or only a closed ticket?
Are merge and exposure separate decisions with separate evidence?
For the specific change: what evidence shows the constraint held, not just that the feature works?
Where this stops being useful
The model is a vocabulary, not a result. Its value is in making handoffs and gates explicit enough to argue about, and it will reward a team that already feels the queue. A team with one agent and one reviewer will find the ten stages heavier than the problem.
The guide also assumes the verification budget is genuinely fixed. Where review itself can be partly automated with evidence that the automation catches what it claims to, the arithmetic changes — and that is exactly the territory the light/dark distinction defers rather than settles.
Related
R387 — the same author's walkthrough of stopping at the plan and committing a specification, which is the Shape and Plan stages of this pipeline in practice.
R381 — the same author's bounded loop designed around an undocumented lossy step, a worked instance of the trigger/work/check/memory/stop structure.
R310 — a solo developer's claim of a large multiple with no human code review and automated checks instead: the dark-factory pattern this source recommends against adopting wholesale.
R213 — reviewing the agent thread rather than the pull request, an alternative answer to the same verification-budget problem.
R266 — letting a build-owned check lighten code review, the incremental form of qualifying one change class at a time.
R372 — reading a widely cited capability trend properly, including its intervals.