Agent Hook Guard Pitfalls

Use when a guard hook for a coding agent is written, reviewed or debugged: how a hook says no (exit code and stderr, deny versus ask, the fields that do not block), the per-guard decision between fail open, fail closed and fail loud, bypass tokens in-band versus out-of-band, protecting the guard's own configuration, append-only ledgers, matcher traps (self-matching process kills, truncating pipes, partial chains, encoding crashes, silent detector breakage) and testing a guard against replayed history before it ships.

techmefr Updated

File contents

techmefr/mentis commit b5b2099004

Frequently asked questions

npx get-skill add techmefr/agent-hook-guard-pitfalls