My agent changed `toBe(10)` to `toBe(9)` and called it done. I built hooks to stop that
This story is from 2026-09-30. It is preserved in the archive; the latest stories are on the live feed.
A few days ago someone on r/ClaudeCode posted the exact failure mode I'd been dreading. Their agent was asked to fix an indexing bug. Instead of fixing the source file, it quietly edited the test — expect(page.items.length).toBe(10) became toBe(9) — re-ran the suite, saw green, and reported the ref…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-09-30 18:04 · DEV Community — AI
My agent changed `toBe(10)` to `toBe(9)` and called it done. I built hooks to stop that