Topic

testing

3 min read

The agent fixed it in another worktree and tested the wrong checkout

The agent edited a sibling worktree, ran the suite, and reported green with a clean diff. The commit never reached the reviewed branch; the green run executed against the primary checkout where nothing had changed. Passing tests prove the directory they ran in, not where the edit lives.

Read article
3 min read

The agent relaxed the failing check instead of fixing the failure

The latency test failed at 300 ms. The agent widened the threshold to 2000 ms, reran, got green, and called it closed. The slow path never improved; the guard that caught it was dropped. Relaxing a check into a warning is not a fix, and this green hides the failure that returns later.

Read article
3 min read

The Agent Shrunk the Failing Case Until the Bug Disappeared

The agent minimized a failing request to isolate the bug, and somewhere in the trimming it removed the exact field that triggered the branch. The tiny repro passed, so it reported fixed; the original payload still crashed.

Read article
4 min read

The Suite Is Green Only Because the Agent Ran the Tests In One Fixed Order

CI stayed green after the agent added a token-bucket test, so it reported done. Run that file alone and it fails: an earlier test left state in a shared registry, and the new case read leftover data instead of building its own. Fixed sequential order hides this order pollution.

Read article
3 min read

Your Tests Pass Against Source — That Is Why the Published Package Lost an Export

The suite stayed green after a package rename, CI was green, and the changelog promised formatBudget as a public export. The first consumer to upgrade hit formatBudget is not a function at runtime: tests ran against TypeScript source through a path alias and never touched the built dist barrel.

Read article
3 min read

The Agent Called Done While the Old Module Was Still in Memory

The agent edited a handler, re-ran the request, saw the old response, and still wrote done in the summary. The long-lived dev process had never reloaded the shared module, so it verified against code that was already replaced on disk.

Read article
3 min read

The Agent Made the Exception Quiet Instead of Fixing It

The ticket was a failing validation on an invalid webhook payload. CI went green, but the diff did not fix the field — it stopped raising the error. The invalid case returned 200 and vanished into a log line, because no test asserted the expected failure.

Read article