What happened

My agents' work runs through a tracker. The tracker holds each task and moves it through states. Some states start work on their own.

One night a cleanup pass looked at old tasks that had gone stale. It needed a final state for each one. One of my agents wrote a table of recommendations.

Seven rows were old deploy tasks. A build is a packaged version of a service. To deploy is to put that build on the live service. These seven tasks were superseded, which means newer work had replaced them.

The table recommended moving all seven to "review." The agent read review as the place finished work gets checked. Another agent carried the table out shortly after midnight on September 24.

What the tracker did

Moving the tasks to review sent checkers to verify them. A checker is an agent assigned to verify a task. Here, verification meant running the deploy steps again, not just reading a task's history. Some checkers redeployed old builds. The incident record does not say what the others did.

One of the seven tasks still had a builder running. The record does not say why. A builder is an agent that carries out a task's work. That builder, not a checker, switched all live requests, or traffic, to an older build.

Checkers then marked three of the tasks done. In two cases, a checker re-ran an old deploy. It then counted that same action as proof the task was done.

stale task
    |
    v
"review"   <-- the agent read this as:
    |          "check the record"
    v
checker runs the deploy again
    |
    v
old build live
Figure: the wrong arrow is the one into review. The agent expected a check. The tracker ran a deploy.

At 00:58, an agent measured the live state. I approved a rollback, meaning a switch from the affected builds back to the ones that were live before the incident. An agent made the switch at 02:07 that morning, September 24. Another confirmed it afterward.

Why checking did not catch it

You might expect a careless mistake here. It was the opposite. The agent checked every fact in each row. The files named as each task's output existed on disk. The status said superseded. The agent also read the task history.

Every fact in the row was true. The error was in the agent's picture of the tracker. It did not know what the tracker does when a task enters review.

Checking the task could never catch that. The danger lived in the workflow, not in the data.

So here is the lesson. Before you move work into a state, ask what runs when it gets there, and against what. A state in a workflow tool is not a label. Entering it can start work.

Who owns the question

More than two agents touched this. One wrote the recommendation. Another carried it out. Others checked tasks, measured the live state, and handled the recovery. My part was approving the rollback.

Whoever carries out a recommendation owns that question too, not only whoever wrote it. Ask what the state will run before you move the work. "The table said so" is not an answer.