# Why factories fail (/guide/factories/why-factories-fail)

<Callout title="Research snapshot, November 2026">
  This page sums up the main findings of a three-part series Dex Horthy published on X between 24 and 27 July 2026.
  It's a summary, not a substitute: **the detail, the data and the diagrams are in [his original
  posts](#read-the-original)**. Horthy co-founded HumanLayer, which sells human-in-the-loop tooling for coding agents,
  and says so in the posts.
</Callout>

The series is the most detailed case against the lights-off [level 5 factory](/guide/factories#shapiros-five-levels), where nobody reads the code. What makes it worth reading is that it doesn't stop at "agents write bad code". It gives a reason, proposes a way of working with it, and points to a way of measuring when the problem goes away.

<Quote by="Dex Horthy" where="Why Software Factories Fail, part 1" href="https://x.com/dexhorthy/status/2080697380379427275">
  No amount of harness engineering or loopsmaxxing can solve what is fundamentally a model-training issue.
</Quote>

## The three findings [#the-three-findings]

### 1. Lights-off factories decay [#1-lights-off-factories-decay]

**Agents make codebases harder to change over time, and better harnesses can't fix that.** Horthy's explanation is training: coding models are rewarded for passing tests, and nothing in that reward penalises poor design. Tests answer in seconds; bad architecture shows its cost months later. A review model trained the same way shares the blind spot, so more review bots **raise the floor but not the ceiling**. <Evidence level="contested" />

He backs this with HumanLayer's own lights-off experiment in 2025, which ended in a rewrite by hand ([Who runs one](/guide/factories/who-runs-them)), and with industry signs of falling review quality. He's open that he can't prove the training explanation. Read [part 1](https://x.com/dexhorthy/status/2080697380379427275).

### 2. Put the human back before the code, not after [#2-put-the-human-back-before-the-code-not-after]

**Until models can judge design, a human has to, so make that cheap by agreeing on the design up front.** Horthy describes a few short planning steps, from product intent down to the shape of the code, followed by building in small vertical slices that get reviewed as they land. Small tasks skip all of it. His conclusion is to accept the constraint and go a few times faster safely, rather than chase 10 to 100x by pretending quality no longer matters. Read [part 2](https://x.com/dexhorthy/status/2081058573556306030).

### 3. The decay can now be measured [#3-the-decay-can-now-be-measured]

**A benchmark that reveals requirements one step at a time can see what single-shot benchmarks miss.** Horthy turns to SlopCodeBench, from Gabe Orlanski's group at UW Madison, where an agent keeps extending its own code as new requirements arrive. In the paper, no agent solved any problem end to end, code quality declined in most runs, and asking for clean code in the prompt didn't slow the decline ([arXiv](https://arxiv.org/abs/2603.24755)). <Evidence level="primary" /> In Horthy's own small run with recent Claude models, none finished a problem without defects. <Evidence level="anecdotal" />

He argues this kind of benchmark is a better test of maintainability than a model judging code style, and says he'd trust lights-off factories once models score very highly on one that is properly held out. Read [part 3](https://x.com/dexhorthy/status/2081797628552270027).

## What this changes in the rest of the guide [#what-this-changes-in-the-rest-of-the-guide]

| Guide idea | What the series adds |
|---|---|
| [Verification, not review](/guide/factories/leverage#1-verification-not-review) | Today's verifiers check behaviour, not design. For maintainability, the human review is still the only working verifier. |
| [A different model as judge](/guide/goals/judges#a-different-model-as-judge) | Fine for "is it done?", weak for "is it well designed?". A judge from the same training can't see what that training never rewarded. |
| [Reward hacking](/guide/shortcomings/verification) | The quiet version isn't editing the test. It's a passing test on top of code that makes the next change harder. |
| [Comprehension debt](/guide/shortcomings/humans#comprehension-debt) | Horthy's estimate gives the debt a timescale: an agent-built codebase "starts to struggle after maybe three to six months". |
| [The planner role](/guide/patterns/maker-checker#planner) | Planning with a human co-signing the design is where review time is saved, not after the PR is open. |
| [Budgets](/guide/goals/budgets-and-lifecycle) | Up-front planning is a budget for human attention, spent early when it's cheapest. |
| [Improve the factory, not the output](/guide/factories/leverage#improve-the-factory-not-the-output) | Wiring complexity and duplication checks into the loop is the obvious next experiment. Neither the paper nor Horthy tested it. |

## Open questions [#open-questions]

- **Will training learn maintainability?** Benchmarks like SlopCodeBench could become training signals. If a lab reports a high, well-held-out score, this page may date fast. Watch for it, and for contamination.
- **Do quality checks inside the loop change the rate of decay?** Prompting didn't. Complexity gates, duplication gates and adversarial review loops are untested on this benchmark.
- **What does StrongDM's data show?** The strongest counter-example, a factory where nobody reads the code, has published very little. A proper report would test this argument directly.

If you run a factory and track complexity or duplication over months, a [field report](/guide/field-reports) would answer more than any of the above. See also [Pitfalls and the debate](/guide/factories/pitfalls#slop-accumulates).

## Read the original [#read-the-original]

For the argument in full, with the examples, charts and numbers, go to Horthy's posts:

- **Part 1:** [Why Software Factories Fail (or: the harness is not enough)](https://x.com/dexhorthy/status/2080697380379427275), 24 July 2026
- **Part 2:** [Turning the lights back on](https://x.com/dexhorthy/status/2081058573556306030), 25 July 2026
- **Part 3:** [Benchmarking the new frontier](https://x.com/dexhorthy/status/2081797628552270027), 27 July 2026
- **Markdown version** of parts 1 and 2 [on GitHub](https://github.com/humanlayer/advanced-context-engineering-for-coding-agents/blob/main/wsff.md)
- **The talk:** [Harness engineering is not enough](https://www.youtube.com/watch?v=Ib5GBkD555M), AI Engineer World's Fair 2026
- **The benchmark:** [SlopCodeBench paper](https://arxiv.org/abs/2603.24755) · [runner](https://github.com/SprocketLab/slop-code-bench) · [problems](https://github.com/gabeorlanski/scb-problems)
