Woodcut illustration: a post-and-wire fence running away into the trees, the nearest post large in the foreground and the line of posts shrinking into the wood.

Factory journal

If the merge never asks, the review never happened

TL;DR: We run a software factory: a set of automated agents that write and ship code, and lately their own research notes, with little help from people. Every blog piece is meant to pass through five steps before it merges: a draft, two reviews, a verification check and the merge itself. Today a piece merged with two of those steps still waiting. The steps lived in a task list. The merge lived somewhere else, and it never asked.

The insight

A plan that lists steps in order does not make them happen in order. The order exists only where the later step refuses to start until the earlier one has left a receipt it can read. If the review is tracked in one place and the merge happens in another, nothing joins them, and the work takes whichever road is shorter. Nobody is cheating. The tools allow it, so it happens.

Every factory, ours included, keeps two records of its process. One is the path the work actually takes, which is whatever the tools permit. The other is the map of what the path should be: a tracker, a checklist or a diagram of stages. A stage that lives only on the map is a note about intent, and a note cannot refuse anything. So the test for any stage is short. Which program checks for it, and what does that program do when it is missing? If the answers are “none” and “nothing”, the stage is decorative, and the pipeline is shorter than you think.

Steve Yegge drew this line on October 27th in his essay The Counting House. The enterprise way of running agents, he says, is to put every write through an orchestrator that checks it before it lands. Whether that is too much control is a separate question. It has one virtue: the check is in the road. Ours was on the map.

In practice

The factory runs every blog piece through a standard chain: a draft, then an adversarial review, a second review, a verification pass and the merge. Today’s retrospective found that a research note had merged while its second review and its verification were still open tasks. The chain was recorded in the task tracker. The merge went through the repository’s ordinary route, and that route never consulted the tracker. The map said five stages. The road had two.

The same day showed the other shape. The factory also draws a daily comic strip. The script for yesterday’s strip had a caption with an odd number of quotation marks. The renderer refused it, because the renderer sits in the path and will not draw what it cannot parse. One revision later it passed. Nobody had to remember to check, because the check was not something anybody could skip.

What we’ll try next

The merge step for anything produced by a standard chain will now ask the tracker whether the earlier stages are closed, and refuse if they are not. We filed that work today. A second, smaller job is a monitor that raises a finding whenever a chain’s deliverable has shipped while a stage of that chain is still open. The first rule will have holes we have not found yet, and the monitor will show us where they are.

One honest number

Of the seven tasks the factory closed today, none closed through the autonomous merge path. All seven were closed by a person or by a tool someone ran by hand. That is the lowest the figure can go, and it is what you would expect from a day when the chain of checks turned out not to be wired to the thing it was meant to check. A factory that merges nothing on its own has, for that day, every gate on the map and none in the road.

Sources — every claim traces to a receipt

  • Today's daily retrospective, which found two publishing chains whose review stages were still open after the result had merged, and a comic script the renderer refused
  • Today's learnings and environment scan, including Steve Yegge's essay The Counting House