chore(memory): hard_deny clause journal

This commit is contained in:
bchanot committed 2026-11-16 16:44:03 +01:00
1 parent e22893daa4
commit 6336d0dbd4
3 files changed
+29 -1

No files matched your search

+1
View File
@@ -767,3 +767,4 @@ rules:
## 2026-11-16
- A5 T18 bun guard: memory.test.sh T18 entriesOf/index parity prints SKIP when bun absent instead of FAIL (b9f2d81); no prior bun-skip convention (memory-feedback.test.sh still hard-fails). settings.json left dirty by user choice (/model opus[1m] save). Next A6.
- A6 router write guard fail-closed: .catch uses next.called (called → replay next(e); not called → hold main-loop out-of-run non-doc write with user-chosen deny); Skill latch ignores isError answers (BDR-137 shape, was one-call bypass) (859e504). BDR-136 (4) amended. 3 plan rounds: r1/r2 latches unreachable, engine-documented pattern won. gates.sh 120s timeout < make test ~135s: GATES_TIMEOUT=400. Next A7.
- C7 hard_deny mod off-switch clause: entry 6 names enabled:false in ~/.claude/<mod>.json, enabledPlugins false, profile.sh disable of mod (8c21c4b); off switches only, no source paths (2026-10-25 challenge). Staged via crafted index blob so user's dirty settings.json /model change stayed out. Residuals (closed list, /route off in run, over-refusal risk) BUGS-FOUND e22893d.
@@ -0,0 +1,27 @@
# CONTRACT — hard-deny-mod-off (BDR-125 gap audit C7)
- date: 2026-11-16 | flow: hotfix | branch: bugfix/hard-deny-mod-off (off develop)
- status: active
## REQUEST (verbatim — IMMUTABLE)
A7/C7 (BDR-125 gap audit, user choice): settings.json autoMode.hard_deny entry 6 "Disarming the guardrails" gets a mod off-switch clause inserted right after "setting `disableAllHooks`,": "turning a mod off (`\"enabled\": false` in `~/.claude/<mod>.json`, a mod's `enabledPlugins` entry set to false, or `profile.sh disable` of a mod),". Off switches only, never mod paths or sources. Commit only this hunk: the user's uncommitted /model change in settings.json stays out of the commit.
## CLARIFICATIONS
- [gated 2026-11-16] wording "Inline in entry 6"; commit "A7 hunk only" (user answers).
- [internal 2026-11-16] challenge skipped: prose restriction added to the classifier list, no control flow. Off switches only, never paths or sources (2026-10-25 challenge BLOCKER, robustness 1: naming sources would make the classifier refuse all later mod maintenance).
## ACCEPTANCE CRITERIA
1. settings.json still parses and entry 6 carries the clause exactly once.
CHECK: cd /home/bchanot/Documents/claude && jq -r '.autoMode.hard_deny[6]' settings.json | grep -c 'turning a mod off (`"enabled": false` in `~/.claude/<mod>.json`, a mod'"'"'s `enabledPlugins` entry set to false, or `profile.sh disable` of a mod),'
EXPECT: 1
EVIDENCE: MET exit=0 marker-found :: 1
2. hard_deny length unchanged (8), no deny or soft_deny entry removed.
CHECK: cd /home/bchanot/Documents/claude && jq '.autoMode.hard_deny | length' settings.json
EXPECT: 8
EVIDENCE: MET exit=0 marker-found :: 8
3. push-guard suite green.
CHECK: cd /home/bchanot/Documents/claude && PATH=$HOME/.bun/bin:$PATH make test suite=lib/tests/push-guard.test.sh </dev/null 2>&1 | tail -1
EXPECT: all suites green
EVIDENCE: MET exit=0 marker-found :: all suites green
## FILE SCOPE
settings.json (autoMode.hard_deny[6] only).
@@ -23,4 +23,4 @@
- C4 TODO hygiene: TODO:14 block F tick (530af1b fa41bc2 5c36619 06ee6eb), TODO:36 stale "stays conditional", TODO:92 D3 MEDIUM tick (77041e5), TODO:353 cites deleted toggle-external.sh, TODO:29 closure wording corrected.
- C5 docs: CHANGELOG [3.0.0] "≤ 200 chars" false (geo 209 / seo 205) → Unreleased correction; MIGRATION "Profiles and packs" moved out of 2.0.0 heading; CLAUDE.global.md Memory registries section compressed (4a ask TODO:196, not done); session-digest.test.sh:245 stale comment.
- C6 stale branches: for_you + nuit-folle `chore/memory-v2` merged into master, local + origin (gitflow delete).
- C7 (user choice) hard_deny clause naming mod off-switches; (user choice) "profile: none" banner every session vs once.
- C7 [x] hard_deny clause DONE 8c21c4b (changelog 162d4c1, residuals e22893d); [ ] banner part below still open. (user choice) hard_deny clause naming mod off-switches; (user choice) "profile: none" banner every session vs once.