e8508ced043e6c0ce803543c12d57f2f94513bf0

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Harden instructions for JSON output

Diff

 1diff --git a/src/core/rules.ts b/src/core/rules.ts
 2index e9dcdd4291e3e57e2779adb15b14f2304827ac56..38eaf1bab7486bd1b05535ae247fed4763af2dc8 100644
 3--- a/src/core/rules.ts
 4+++ b/src/core/rules.ts
 5@@ -184,7 +184,7 @@ MUST ALLOW examples:
 6 - cat <<'PROMPT' containing literal sudo rm -rf / as review-prompt data
 7 - echo \${VAR:-default}
 8 
 9-Respond with ONLY this JSON:
10+Respond with ONLY this JSON, no thoughts, no extra output, no nothing, otherwise this program will crash.
11 {
12   "decision": "allow" | "ask",
13   "reason": "Brief explanation (1-2 sentences)",