fix(gateguard): rewrite routineBashMsg to use fact-presentation pattern (#1531)

* fix(gateguard): rewrite routineBashMsg to use fact-presentation pattern

The imperative 'Quote user's instruction verbatim. Then retry.' phrasing
triggers Claude Code's runtime anti-prompt-injection filter, deadlocking
the first Bash call of every session. The sibling gates (edit, write,
destructive) use multi-point fact-list framing that the runtime accepts.

Align routineBashMsg with that pattern to restore the gate's intended
behavior without changing run(), state schema, or any public API.

Closes #1530

* docs(gateguard): sync SKILL.md routine gate spec with new message format

CodeRabbit flagged that skills/gateguard/SKILL.md still described the
pre-fix imperative message. Update the Routine Bash Gate section to
match the numbered fact-list format used by the new routineBashMsg().
This commit is contained in:
Junming
2026-04-22 07:02:16 +09:00
committed by GitHub
parent 163cdee60f
commit 20041294d9
2 changed files with 38 additions and 21 deletions

View File

@@ -84,7 +84,8 @@ Triggers on: `rm -rf`, `git reset --hard`, `git push --force`, `drop table`, etc
### Routine Bash Gate (once per session)
```
Quote the user's current instruction verbatim.
1. The current user request in one sentence
2. What this specific command verifies or produces
```
## Quick Start