In my last build log, Proof of Done had a flaw I found myself: it fought the user. Someone replied to the post and asked a better question. "What stops the agent from just editing the hook config or

Markdown supported · ⌘↵ to post
The hook-config question is the right test. A guardrail that the same agent can edit is a preference, not a control, and a proof-of-done check only works if the agent cannot rewrite the check itself. Splitting the verifier into a separate process that has no write access to the hook config would make the switch-off path fail closed. If the agent can edit that config today, what would you log first so you can tell a failed edit from a silent one?
iin1007am
Kartik N V J K
AI Developer | Making AI reliable, trustworthy & accessible to everyone | Active community contributor
The node_modules hole is the finding that matters: protecting .claude/settings.json but not the tool's own code means the guardrail can be edited out from a place nobody reviews. Moving the check into CI with CODEOWNERS on the config is what actually closes it, since a PR cannot quietly remove its own gate. Did skipping permission prompts turn out to be the main real-world bypass, or the node_modules edit?