Skip to Content
loop.fun
Software factories

Why factories fail

The high-level findings of Dex Horthy's three-part critique of lights-off factories, and what they mean for loops.

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. Horthy co-founded HumanLayer, which sells human-in-the-loop tooling for coding agents, and says so in the posts.

The series is the most detailed case against the lights-off level 5 factory, 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.

No amount of harness engineering or loopsmaxxing can solve what is fundamentally a model-training issue.

Dex Horthy, Why Software Factories Fail, part 1

The three findings

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. contested

He backs this with HumanLayer's own lights-off experiment in 2025, which ended in a rewrite by hand (Who runs one), and with industry signs of falling review quality. He's open that he can't prove the training explanation. Read part 1.

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.

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). primary source In Horthy's own small run with recent Claude models, none finished a problem without defects. 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.

What this changes in the rest of the guide

Guide ideaWhat the series adds
Verification, not reviewToday's verifiers check behaviour, not design. For maintainability, the human review is still the only working verifier.
A different model as judgeFine 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 hackingThe quiet version isn't editing the test. It's a passing test on top of code that makes the next change harder.
Comprehension debtHorthy's estimate gives the debt a timescale: an agent-built codebase "starts to struggle after maybe three to six months".
The planner rolePlanning with a human co-signing the design is where review time is saved, not after the PR is open.
BudgetsUp-front planning is a budget for human attention, spent early when it's cheapest.
Improve the factory, not the outputWiring complexity and duplication checks into the loop is the obvious next experiment. Neither the paper nor Horthy tested it.

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 would answer more than any of the above. See also Pitfalls and the debate.

Read the original

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

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0

On this page