Confirm a push on the remote, never by an exit code or a hook message.
A retry loop around a push exited 0 while all three attempts were rejected. A pre-push hook printed that all checks passed while nothing was pushed.

Rule 2.2, from Rules for my AI agents
14 rules, 13 essential
A retry loop around a push exited 0 while all three attempts were rejected. A pre-push hook printed that all checks passed while nothing was pushed.

Two opposite fixes to the same component shipped one day apart. Net result: zero.
The old fix branch's proposed diff removed 102 files and 30,000 lines.
One PR's title claimed an improvement the main branch already had, while its diff reverted it.
An empty PR number made a merge command merge the branch's other open PR. An empty list of test files ran the whole suite.
The best 100 are yours now, no email: download them as AGENTS.md. All 527 come by email, as one file you can drop straight into your repo as AGENTS.md or CLAUDE.md, so your agents follow them from the next session. Plus the occasional email when I learn a new one. Free.
One click to unsubscribe.