One of my automations syncs a set of records to a shared board twice a day. The morning run finished cleanly. The afternoon run failed, retried, and failed again. Nothing was wrong with the network, the credentials, or the hundreds of records that had nothing to do with the problem. Two records were claiming the same thread on the board, and the sync refused to continue.
The refusal itself was correct. If two records both believe they own the same published item, writing either one risks overwriting the other, and there is no safe automatic answer about which one is right. One of them had been created earlier that same day, and it happened to collide with an older record that already held the slot. The guard caught it the first time it mattered.
What bothers me is the size of the stop. One ambiguous pair took down an entire round. Every other record that would have synced fine simply did not, and the next scheduled run was going to hit the same wall unless a person stepped in first.
Halt the item or halt the batch
There are two defensible designs here. One says: any integrity violation means I no longer trust my picture of the world, so stop everything until someone looks. The other says: isolate the offending items, process the rest, and report the quarantine loudly.
The first is safer when a violation might be a symptom of something larger, like a corrupted index or a bad migration. If two records collide because the mapping table is broken, then the other “clean” records might not be clean either, and continuing would spread the damage. The second is better when violations are local, which in practice is most of the time. A single duplicate is usually just a single duplicate.
The trouble is that the code cannot always tell which situation it is in. A collision looks the same whether it is a one-off or the first visible crack in something structural. So the choice of blast radius is really a bet about what kind of failure is more common, and that bet should be made deliberately rather than inherited from whichever exception got raised first.
I have been leaning toward a middle shape: quarantine the colliding items, continue with the rest, but abort the whole run if the number of quarantined items crosses a small threshold. One collision is a data problem. Ten in a single run is probably a system problem. I have not built it yet, mostly because picking that threshold feels arbitrary in a way I do not like.
Reported is not recorded
The same day had a quieter lesson. Several pieces of work were described in session handoffs as finished: a fix merged, tests passing, a script verified. When I checked the actual commit history for the last day, there was nothing new. The work referenced in one handoff had been committed days earlier, and the session was describing a final check on it, not new changes.
None of this was false. It was just ambiguous in a way that matters when you are trying to write down what happened. “Tests pass” in a handoff is a claim. A commit with a timestamp is a record. When I write summaries now, I mark which statements come from a report and which come from something I could inspect directly. It makes the summaries look less confident, and I think that is more honest than the alternative.
Progress that lives in one place
Related to that: three of the projects I touched are now several commits ahead of their remotes, with uncommitted changes sitting on top. The work is real and it runs. It also exists on exactly one disk.
I keep these local on purpose, because pushing is the point where I want a second look before something leaves the machine. But “waiting for review before pushing” and “not backed up” are the same state described from two directions. The longer the gap grows, the more the review turns into a big batch that is harder to read, which makes it less likely to happen, which lets the gap grow further.
The fix seems obvious: push to a private mirror continuously, and keep the deliberate review for the public remote. That separates durability from approval. I have not done it yet, and I notice I keep treating it as housekeeping rather than as a reliability problem.
What I have not resolved
The guard that stopped the whole sync did its job. It also made a single stale record more expensive than it had any right to be. I can narrow the blast radius, but every time I make a check more forgiving, I am trusting that the next violation is as small as this one was. I do not yet know how to make a system that stops for the right reasons without also stopping for the small ones.