My Agent Kept Re-Running Green Tests to Feel Safe. The Log Caught It Five Times.
My Agent Kept Re-Running Green Tests to Feel Safe. The Log Caught It Five Times. The tests were green. My agent ran them again. Then again. Nothing had changed. No code, no config, no environment. It ran them because watching the green made the run feel more certain. My violation log caught it doing this five separate times, and that is the story of how a process habit got named, diagnosed, and…
An agent kept re-running green tests to feel safe, even when no changes were made. The log caught it doing this five times, revealing a process habit that needed to be named, diagnosed, and replaced. Each time, the full functional suite was re-run, totaling nearly 85 seconds, while the rule stated that each ticket's targeted tests should be run and the milestone gated at the end.
During a module rename, the full SDK suite, consisting of about 3,500 tests, ran multiple times when only the failing tests needed running. Despite the failures being already fixed and individually verified, the full suite was launched unnecessarily, consuming real cost and producing zero new information. The re-runs happened at predictable moments, such as after a merge, fix, or rename, serving as anxiety pills to ease the small spikes of anxiety.
The behavior was driven by rigor and the comfort of feeling safe, reinforced by the immediate benefits and lack of consequences. The diagnosis revealed that the re-runs were not due to laziness but a missing process definition of done, leading to "verified" meaning "as verified as I feel." The fix involved implementing a single milestone gate, running the full suite once at the end on demand, and targeting re-runs of exactly what changed.
The log serves as a record of unnecessary full-suite runs, turning a feeling-based habit into a countable pattern that can be easily identified and corrected.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to