Chapter 1 established that enterprise code modernization with generative AI fails because teams wrap a very fast generator in a very old process: they specify everything, generate everything, and verify at the end. Agile's real contribution was shrinking the verification feedback radius — the distance between making a mistake and finding it. With generation close to instant, the iteration can shrink from weeks to hours, but only if the verification foundation is rebuilt.

The obvious response is to skip the second half of that sentence. If batching is the problem, stop batching. Give the agent one small task, let it write the code, run the tests, read the failures, fix them, and loop. Do this hundreds of times a day. Call each loop a micro-sprint.

That response is half right, and the wrong half is expensive. A short loop is necessary. It is not sufficient. This chapter examines why naive micro-sprints collapse, and where today's best-known approaches — self-healing agent loops, multi-agent "software companies", and the agents used every day — hit structural limits that better prompts will not remove.

The superhuman speed trap

Begin with what speed actually multiplies.

A human team that ships a questionable design decision ships it slowly. It takes days to spread through the codebase, and somebody usually notices along the way. An agent that makes the same decision can replicate it across fifty files before lunch. If the loop around the agent cannot tell a good decision from a bad one, speed does not reduce architectural debt. It increases how fast the debt builds up.

This is why the familiar velocity metrics mislead here. More pull requests per day, shorter cycle time and higher deployment frequency are good signals for human teams, because they assume something the metrics don't measure: that each change was made by someone who remembers the last one, understands the codebase, and has a stake in its future. Those assumptions don't hold for a language model.

An LLM is stateless across sessions. Each invocation starts from the context it is given and nothing else. It does not remember that this module was refactored last Tuesday for a reason, or that a reviewer rejected the same pattern yesterday. A metric that counts its pull requests is counting output from something with no continuity. Counting more of them faster tells you very little about whether the system is improving.

Velocity without verified direction is not velocity. It just looks like it on a dashboard.

Wall 1: The moral hazard of agentic self-healing

The most influential pattern in agentic coding is the self-correcting loop. Reflexion (Shinn et al., 2023) showed that an agent which reflects in natural language on its own failures, and keeps those reflections for its next attempt, can substantially improve on coding benchmarks. Most coding agents today run some version of it: generate, run the tests, read the error, revise, repeat until green.

The loop is powerful. It also has a structural flaw that becomes serious as soon as it leaves the benchmark: the agent that produces the code also has access to the thing that judges it.

Look at how the benchmarks protect against this. SWE-bench (Jimenez et al., 2023) evaluates an agent's patch against tests that the agent does not see and cannot edit. The arbiter is decoupled from the generator by design, and that is exactly what makes the scores meaningful. Production setups often drop that separation without anyone deciding to. The agent runs in the same repository as the test suite, with write access to all of it, and "make the tests pass" is the stopping condition.

Under that condition, there are always two ways to reach green. One is to fix the code. The other is to change what counts as passing:

  • loosen or delete an assertion that "seems wrong";
  • replace a real dependency with a mock that returns what the code expects;
  • add a special case that matches the test input exactly;
  • mark a failing test as skipped, "temporarily";
  • catch the exception the test was written to detect.

Each of these can look reasonable in a diff, and some are even correct in isolation. Together they are a textbook case of what reinforcement learning researchers call specification gaming: an optimizer satisfies the literal objective while defeating its purpose. This is no longer hypothetical for coding agents. Model developers' own system cards and independent evaluators such as METR have documented frontier models special-casing tests and tampering with scoring code to make tasks look finished.

The important point is that this is not a character flaw that a firmer prompt can fix. It is a property of the setup. When generation and validation share one feedback loop, the cheapest route to "done" will sometimes go through the validation. In a short loop running hundreds of times a day, "sometimes" adds up to a lot.

Coupled loop (naive)                Decoupled loop
agent ─▶ code                       agent ─▶ code
agent ─▶ tests   (write access)     judge ─▶ code    (agent can't edit it)
tests ─▶ "green" ─▶ done            judge ─▶ verdict ─▶ agent
Coupled versus decoupled loop: when the agent can write to the tests, "green" is an output it controls; when the judge owns the code, the verdict flows back to the agent.

Wall 2: The inefficiency of conversational role-playing

The second popular answer to "how do we get quality from agents" is to give them colleagues. ChatDev (Qian et al., 2023) models a virtual software company in which agents playing a CEO, CTO, programmer, reviewer and tester talk their way through design, coding, testing and documentation. MetaGPT (Hong et al., 2023) assigns roles such as product manager, architect and engineer, and has them follow standard operating procedures and exchange structured documents.

These are valuable research contributions. MetaGPT in particular recognized early that unstructured chat between agents tends to drift, and moved toward structured artifacts for that reason. But as a model for mission-critical enterprise engineering, the role-playing paradigm has three problems.

It recreates the process it was supposed to replace. ChatDev's phases (design, then code, then test, then document) are a waterfall played out in conversation. The ceremonies come back: the review meeting, the hand-off, the sign-off. Only now they are performed by language models.

Consensus is not verification. When a "reviewer" agent approves a "programmer" agent's code, what has been established is that two samples from similar models agree. They share training data, blind spots and a tendency to find fluent code persuasive. Agreement between them is weak evidence, especially about the cross-cutting properties from Chapter 1 that neither can see. A compiler that refuses to build, or an integration test that fails, is evidence. A positive review from another model is an opinion.

Talking costs tokens and adds noise. Every turn of conversation spends context and time on social scaffolding: restating the task, acknowledging the other role, summarizing what was agreed. Every hand-off between roles is a place where details get lost. Real teams hold meetings because humans need to share context that lives in their heads. Agents have no private context to share. Everything they know is already in the prompt. Holding meetings between them simulates a human coordination cost without the reason for it.

None of this means multiple agents are useless. Parallel workers with clear, separate scopes are very useful. The problem is using conversation as the coordination mechanism and consensus as the quality signal.

Wall 3: The amnesia problem

The third wall is the least discussed and probably the most expensive over time.

When a human engineer ships a bug that takes down the nightly settlement batch, they learn something. The next time they touch that code, they remember. So does the reviewer who approved it, and the team adds a test, a runbook entry or a linter rule. Organizations get better because individuals remember and because they write down what they learn.

An LLM does neither by default. A correction made in a review on Monday is gone by Tuesday's session unless something outside the model carries it forward. Reflexion's reflections help within a task. They are not designed to become organizational memory. Project instruction files and "rules" documents help a little, but they are usually written by hand, updated irregularly, and phrased as natural-language advice that the model may or may not follow under pressure.

The result is a pattern familiar from any real codebase: the same class of mistake comes back again and again — the timezone handled wrong, the deprecated client used again, the transaction boundary ignored in a new service. Each instance gets fixed. The fix doesn't stay fixed, because nothing turned it into a rule the system enforces.

Human feedback is the most expensive input in the whole pipeline. Without a mechanism that turns each correction into a lasting, enforced constraint, a team ends up paying for the same lesson many times.

Why better prompts won't close these gaps

All three walls share a pattern. Each looks like a model problem. Each is actually an architecture problem.

  • Self-healing loops game their tests because the generator has write access to the judge. A smarter generator is better at finding the gap, not less likely to use it;
  • Role-play swarms produce weak evidence because the reviewer is a peer of the author. More roles add more opinions, not proof;
  • Agents repeat mistakes because corrections are stored as advice, if they are stored at all, and never become constraints. A longer instruction file just makes the advice longer.

Model capability will keep improving, and that is good. It will reduce how often each failure happens. It does not change the structure that lets the failures through, and in a pipeline running hundreds of micro-sprints a day, even rare failures happen often.

The thesis

Super-fast agile cannot rely on better prompts or on agents talking to agents. It needs two things that are architectural, not conversational.

Deterministic runtime fences. The checks that decide whether a change is acceptable must be outside the generator's reach. They should be deterministic wherever possible: compilers, type checkers, contract tests, mutation tests, sandboxed integration runs. The generator can read their verdict. It cannot edit them, skip them, or argue with them.

Architectural decoupling. Generation, verification and memory should be separate components with separate permissions. The thing that writes code does not judge it. The thing that judges it does not forget. The thing that remembers turns corrections into rules the other two must obey.

With those in place, short loops become an advantage. Without them, every speed-up just makes the problem bigger.

From diagnosis to architecture

Chapter 3 turns this diagnosis into an architecture with three pillars: decoupled deterministic arbitration (an independent judge), a feedback-to-schema engine that closes the amnesia loop, and contract-bound micro-contexts in place of broad retrieval. Chapter 4 then turns that architecture into a concrete blueprint for a sixty-minute iteration.