Development record
17-guard.md says a broken guard never bricks a session, but hooks/pre-tool-use.sh exits 2 (blocking) on every shell and question call while a legacy ~/.abcd folder exists, until it is moved.
issueopenminoriss-2610230851446558
17-guard.md says a broken guard never bricks a session, but hooks/pre-tool-use.sh exits 2 (blocking) on every shell and question call while a legacy ~/.abcd folder exists, until it is moved.
Frontmatter
| id | iss-2610230851446558 |
|---|---|
| type | issue |
| lifecycle | open |
| severity | minor |
.abcd/work/issues/open/iss-2610230851446558-17-guard-md-says-a-broken-guard-never.md
open on GitHub ↗ · commit history ↗
mentions1
- iss-2611060809582940Beyond `iss-2610230851446558`, which records the blocking exit while the old `.abcd` folder stands: `17-guard.md:455`, with lines 54-58 and 75-77, gives the hook's exits as 0 and 1, and line 456 speaks of the binary's three statuses without defining the third on the hook. `abcd guard hook` itself exits 2 here (`internal/surface/cli/homestop.go`), and only the rename command passes (`admitsRename`). With the plugin binary also absent, `hooks/pre-tool-use.sh` exits 2 even for the rename, so the rename that clears the stop has to be run outside the agent.