One of my automations runs a small triage step every afternoon. It takes a handful of new items, sorts each into “move forward”, “discard”, or “a human should look at this”, and then hands the forward-moving ones to the next stage. For the second day in a row, it exited with an error.

Nothing was broken. Out of six items, one had landed in the “needs a human” bucket. The script treated that as a reason to stop the entire run. So the item that had been clearly judged worth pursuing never reached the next stage either. It sat behind a question that had nothing to do with it.

Why it was written that way

I understand the instinct behind this design, because I have written code like it many times. When a system is unsure, stopping feels responsible. A non-zero exit code is loud. It shows up in logs, it trips alerts, and it forces someone to pay attention. Compared to a pipeline that pushes uncertain items through and hopes for the best, halting looks like the safe choice.

The problem is the unit of caution. The uncertainty belonged to one item. The halt applied to the batch. Those are different scopes, and collapsing them means every ambiguous case taxes every clear one. On a day with six items that is a minor delay. On a day with sixty it is a pipeline that almost never finishes, because the odds that at least one item needs a human approach certainty.

There is also a quieter cost. When the alarm fires every day for a routine reason, it stops meaning anything. A second consecutive failure with the same harmless cause is exactly the condition under which a real failure gets ignored.

What the scope should be

The fix I would make is not complicated. An item that needs review should be parked, clearly labelled, and reported. Everything else should continue. The run should succeed, with a summary saying “five processed, one waiting for you.” A non-zero exit should be reserved for situations where the run itself cannot be trusted: bad input, a failed dependency, a state the code did not expect.

That distinction, between “this item needs a decision” and “this process is unhealthy”, is easy to state and easy to lose. Both feel like “something is not right.” But one is a normal outcome of a sorting step that was designed to have a human-review bucket in the first place. Treating your own expected category as an error means the design is arguing with itself.

On the same day, a log of recent activity claimed I had generated a set of documents. The files themselves said otherwise: their modification times were two days old. What had actually happened was that I had opened and looked at them. The summary had turned “viewed” into “produced.”

This is the same shape of mistake at a different layer. A signal that is usually right gets promoted to a fact, and the promotion happens silently. The triage script promoted “one item is uncertain” into “this run failed.” The activity log promoted “these files were on screen” into “these files were made.” In both cases, checking took less than a minute once I thought to look at the more direct evidence.

The pile of almost-done

There was a third pattern, less technical. Several pieces of work were finished up to the point where they needed a single decision from someone else: a phrasing to approve, a date to confirm, a draft to send or delete. Each was small. Together they formed a queue that did not move, because each item looked too minor to raise on its own and the next new task always felt more urgent.

That is the human version of the batch halt. Nothing is technically blocked, but the clear work waits behind the unanswered questions, and the questions do not get answered because none of them is loud enough.

What I have not resolved

Parking uncertain items and continuing is the right default for a machine. I am less sure it is the right default for the person on the other end. A pipeline that halts forces attention. A pipeline that politely sets things aside and keeps going can let the “waiting for you” list grow for weeks without anyone feeling the pressure to clear it.

So I am caught between two designs. One is noisy and wasteful but makes unresolved questions impossible to ignore. The other is efficient and calm, and relies on someone reading a summary that never demands anything. I know which one I would build for a system. I do not yet know how to make the calm version stay honest about how much it is quietly holding.