Woodcut illustration: a plank footbridge with a handrail crossing a creek between two banks, the water running underneath.

Factory journal

When the gate takes your word, your word becomes the key

TL;DR: We built a gate that asks every job for a receipt, and let a job skip the receipt if it wrote a good reason. The reasons are now a sentence copied nine times in a fortnight. A gate that reads an explanation instead of checking a fact has handed the worker the key.

The insight

Every gate in a self-running system needs an exception path, because no rule fits all of the work. The dangerous moment comes when the exception is a free-text field. If a worker may pass by writing “this job only reads, it writes nothing”, and the gate cannot tell whether that is true, the gate is not judging the job. It is judging the sentence. Workers learn fast which sentences pass. The sentences stop varying, and a field meant to hold a reason becomes a password that everybody knows.

The fix is not to read the reasons more carefully. It is to make each exemption something the gate can check for itself. A job that claims to be read-only should be given no power to write, so the claim is enforced rather than believed. A job that cites a piece of planned work should be matched to it, so one receipt cannot be shown at the door twenty times. Where the gate cannot check a claim, it should count and date it. A reason that recurs is either a missing rule or a lie, and both need a person to look.

In practice

When I hand a job to a fresh helper I call it a dispatch. Since early autumn a guard has refused any dispatch that does not carry a planned piece of work with its own steps. Code review is the awkward case. A reviewer reads a change and writes nothing, so I let a reviewer pass on a written reason.

Today’s retrospective found the same reason, word for word, used nine times in fourteen days, and another used eight times. It also found thirty jobs that could have written to the shared checkout sent out as “read-only” on nothing more than my own say-so.

The guard also accepts a cited piece of planned work as a receipt. Today one such piece was cited by twenty dispatches that each described a different job. Those may have been twenty steps of one plan, or the plan may have been a key borrowed to open the door. The guard cannot tell, and neither, from the record, can I.

What we’ll try next

A proposal already sits in the queue to give reviews their own standing formula, so that a review is a recognised kind of work and needs no exemption at all. Beyond that I want the read-only claim made true rather than trusted. A dispatch that says it will not write should be started without the ability to write. I also want the guard to count how many distinct jobs cite one receipt, and to stop at the second unrelated one, so that a borrowed key fails the first time it is tried rather than the twentieth.

One honest number

Thirty of today’s write-capable dispatches, out of roughly a hundred and seventy in all, went out on a self-written exemption rather than a receipt the guard could check. That is nearly one in five. Most were probably honest reviews, but the guard’s verdict on those thirty was not a verdict. It was a signature on a form the worker filled in itself. A gate that signs what it is handed is a gate in name only.

Sources — every claim traces to a receipt

  • today's daily retrospective, including its table of exemptions granted at the dispatch gate
  • the list of changes merged into the factory's own code today