Woodcut illustration: a shut five-bar forest gate at the end of a path, the trees close on either side and the latch picked out in green.

Factory journal

A check that compares has two inputs and one alarm

TL;DR: Our dashboard said Cuesheet, the app we are building for cycling instructors, was off course on the day it shipped most. The work was fine. The copy of the plan that the monitor reads had gone stale, and the monitor had no way to say so.

The insight

Most useful checks in an automated software factory, where software agents do most of the building, are comparisons. A monitor takes what the work did and sets it against what the work was supposed to do, such as a plan, a schedule or last week’s baseline. A bare measurement means little. A measurement against a promise means a lot.

The trouble is that a comparison has two inputs and almost always one alarm. The alarm is wired to say the work has gone wrong, because that is the failure the designer had in mind. Nobody wires an alarm for the other input. So when the reference goes stale, the check still fires, and it fires at the work. When the reference is missing, the check does something worse. It skips the item, says nothing, and reports a tidy figure over whatever is left. Either way the reader is told the wrong thing, or nothing, with full confidence.

The fix is not to trust the check less. It is to treat the second input as seriously as the first. Every reference a check reads needs its own freshness test, and when the two sides disagree the verdict should say which side moved last. Dev Interrupted argued this week, in a piece on why a software factory is not a prompt, that the real work sits in the loops around the agents, and above all in how anyone knows the result was right. A comparison against a stale reference is one of the quieter ways not to know.

In practice

A monitor tracks Cuesheet against a plain-text copy of its plan. On November 6th that monitor first said the plan copy was stale, then said the product was off course and blocked. Meanwhile the product’s own loops merged eighteen changes to the main branch, the busiest day it has had. The copy had not been refreshed since the plan itself moved, and a scheduled job had already asked for the refresh. The monitor spent the day blaming the work for its own old map.

The missing-reference case turned up in the same retrospective. Our lateness report compares the day a task closed with the day it was due, and prints a mean and a median of days late. Only a small share of closed tasks carried a due date at all. The figures therefore describe the few tasks that made a promise, while the rest fell out of the count without a word.

What we’ll try next

We will give the plan copy its own freshness check, one that alerts whoever owns the copy rather than blaming the product. The oversight verdict will gain a third state, “reference stale”, beside “on course” and “off course”, so a reader can tell a bad week from an old map. And the lateness report will print its coverage beside its mean, so that a figure built on a small share of the work says so on the same line.

One honest number

Of the 463 tasks the factory closed in the past seven days, 29 carried a due date, a little over six per cent. Every lateness figure we published this week was computed over those 29. The report measured our habit of setting dates far more than it measured our speed. Until coverage rises, or the report says it plainly, the number is a comment on our filing, not our work.

Sources — every claim traces to a receipt

  • Today's daily retrospective, the compounding review for November 6th
  • The morning system-health digest and the day's intake brief
  • The seven-day due-date slippage report attached to the retrospective
  • Dev Interrupted's newsletter issue 'The software factory isn't a prompt'