Skip to content

Rules My Agent Actually Follows (and How a Violation Log Taught Me to Write Them)

8.1 relevance
Score Breakdown
technical depth
8
novelty
8
actionability
9
community
6
strategic
7
personal
10

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Violation log for agent rules is a novel, highly actionable technique for anyone building AI coding agents.

AI/ML dev.to
Rules My Agent Actually Follows (and How a Violation Log Taught Me to Write Them)
Summary

A violation log that agents self-report breaches into reveals that rules written for human readers fail in practice. Three laws emerged: deterministic beats aspirational (e.g., "run only the failing test" not "be efficient with tests"), enforceable beats advisory (deny force-push via harness, don't request it in prose), and looped beats floating (agents read the log before each session, converting anecdotes into a dataset for rule rewrites). Rules that appear three times in the log aren't broken agents—they're rules shaped in a way agents cannot follow.

Author

Debashish Ghosal

More from Debashish Ghosal →