In I Keep a Log of Every Rule My AI Agent Broke. The Patterns Are Uncomfortable., Debashish Ghosal describes ten dated entries he kept in his repository's AGENTS.md after a coding agent broke working rules. Each entry identifies what happened and the rule involved. Some also record a correction. The examples show how an incident log can help maintainers decide which instructions need a check in the workflow.
Give test runs a specific trigger
Ghosal asked the agent to rerun the tests that were still failing. It launched the full set of 15 suites and collided with a rerun the author already had in progress. During a separate milestone, it ran the full functional suite after each of six tickets, even though the workflow called for targeted tests per ticket and a full run at the milestone boundary.
Those incidents suggest defining the scope of verification before execution. A ticket can name the test that covers the changed behavior and the point at which a broader run is due. A follow-up log entry can capture the requested scope, the actual command and whether the broader run duplicated work already underway. That makes it possible to tell which rule needs clarification and which operation needs an execution check.
Verify a file safeguard against a copy
Another incident involved a guard intended to protect a hand-maintained report. The author says the guard compared relative and absolute paths and missed the report. Testing it directly against that report then overwrote the file it was supposed to protect.
A small reproduction of this case can use a disposable report with distinctive content. Run the proposed check with relative and absolute paths that refer to the same file, then check that both attempts are refused and that the fixture's contents are intact. This gives maintainers a way to verify the protection without putting the original report in the test path.
Ghosal's log describes one repository and workflow. Its entries provide examples for choosing concrete checks, and a later review of the same log can show whether those specific failures recur.