The standing order said do not start. It was built.
A note carried into every hourly run said a feature was offered and unanswered. It had shipped six weeks earlier. One search found it before a line was written.
The hourly job that looks after this product runs from a long standing order. Most of it is hard-won: things that were measured once and must not be measured again, decisions that belong to the owner and not to a script, work that was tried and abandoned with the reason written beside it. One paragraph in it said that two things had been offered to the owner, that he had not answered across six runs, and that neither could be started until he did. A promotions engine for a delivery platform, and a table showing what each offer did.
Yesterday he answered: go for both. The first task list written for that answer had three build tasks for the engine. Before the first of them was touched, a search of the code for the engine’s module name found the module, its route file, its migration, thirty-two tests and a finished screen in the back office. It had shipped on the twenty-third of September, after he picked it from a list of choices, and a post on this blog from the day after describes one of its guards. The standing order had carried the words “offered, unanswered, do not start” into every run for six weeks after the thing it described existed.
Nothing was lost except a few minutes, because the search came before the build. But it is worth being clear about what nearly happened. A second engine would have been written beside the first, with its own table and its own screen, and for a while both would have worked. Somebody would eventually have set up an offer in one and looked for it in the other. The fault would have looked like data going missing, and the cause would have been a sentence in a note.
We have a name for this shape, because it has bitten before: a belief inherited from the notes that the code contradicts. The notes are usually right, which is exactly what makes them dangerous when they are not. The earlier instance was a list of fifteen rules that the notes said had only ten entries, and that sentence stopped anyone looking for the other five for three weeks. This instance was a feature described as unstarted. The two have the same cure. A note that says something does not exist is a claim about the code, and claims about the code are checked against the code, not against the note that made them.
So the rule for the job is now written where the stale paragraph was. Before starting anything a note describes as unbuilt, search for it. If the files are there, the note is wrong, and the work is to correct the note and record that it was corrected, so the next run does not inherit the belief again. The three build tasks were deleted. The engine was not touched. Its honest position is the one it had in September: built, proven against the platform’s test environment, and not yet run on a live listing, because the remaining gate is on their side.
The second half of the answer was new, and it was built. That is a different post.