diff --git a/.claude/memory/blockers.md b/.claude/memory/blockers.md index 74b8bf0..f6a9988 100644 --- a/.claude/memory/blockers.md +++ b/.claude/memory/blockers.md @@ -240,6 +240,7 @@ rules: - **Real cause**: the hook body is a dense list of destructive-command patterns (rm -r forms, disk tools, docker escapes, history rewrites); the classifier reads it as harmful capability regardless of the defensive frame. - **Solution**: `lib/tests/guard-bash.test.sh` (214 cases, deny/allow) stays as the spec and SKIPs while the hook is absent, so `make test` stays green. Options: user writes the hook against the spec (start from `/mnt/cloudpex/RECOVERY/01-prochain-systeme/claude-config/hooks/guard-bash.sh`, already on disk, then iterate to green); or a different design (allowlist of first words + path containment) requested explicitly. Until then: static deny (BDR-095) covers the direct forms; nested forms rely on the classifier prose. - **Status**: open. Links [[BDR-095]], [[LRN-160]]. +- **Status (2026-11-13)**: superseded by BDR-125 phase 2 (static deny/ask rules + model-router routing guard); spec lib/tests/guard-bash.test.sh deleted 2026-11-13 (user decision, block E) ## BLK-023 — floor-guard `xit(` substring flags every `exit(` — 2026-09-28 - **Friction**: fresh verifier returned ECARTS(1) on a fully conform diff: `FLOOR SKIP lib/tests/profile-census.test.sh:116 sys.exit(1 if violations else 0)`. One re-dispatch spent on a tool artefact. diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index f98734a..4308adb 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -731,3 +731,6 @@ rules: - 2026-11-12: phase 4b/4c proofs (chore/phase4-proofs): known-error replay `bash -c 'PATH=/nonexistent npm install'` → tool.call context `memory: known BLK-013 …` + store log record {channel: tool, ids: [BLK-013]} (4d tool channel works; 0 records = no matching error); live redaction: `API_KEY=…` + `Bearer …` in a failing echo → key/line/excerpt/command all ``, 0 raw hits in the store (Bearer swallows trailing `";`, harmless); headless /context full 27.1k (base 26.9k, +/memory-feedback skill), dev 25.2k, CLI now prints System tools (deferred) 14.1k; digest after a real compaction: no compaction in retained transcripts, waits for this run's first auto-compact. - 2026-11-12: /feat recall-gate1-fixes (block C): idle ≥ 8 content words, MAX_PICKS 2, /prune-memory step D (noisy rewrite, BDR-100 promotion); no-overlap misses accepted after replay (body already indexed). 3 lenses FATAL (promoted ∉ _MEM_WORDS) → r2 → confirmation CONCERNS → r3; GATE 0 MET, verifier ECARTS(2)→CONFORME, security PASS (LOWs folded, re-gated). BDR-146, LRN-281..283. - 2026-11-12: /feat digest-todo-fallback (block D, D1b): Actionable ##/### else file's first 3 top-level items, comment gating, +N marker on 800 cap; seeds emit ## Actionable; Session start no longer reads TODO.md (digest). 3 lenses CONCERNS → r2 → confirmation → r3; GATE 0 MET, verifier 5/6 + make test closed by orchestrator, security PASS. BDR-147. Migration of 6 local repos next. + +## 2026-11-13 +- 2026-11-13: /hotfix blk022-burial (block E4): lib/tests/guard-bash.test.sh (SKIP-only, 214 cases) + 2 census ALLOW rows deleted; BLK-022 superseded by BDR-125 phase 2 (static rules + routing guard); security PASS (LOW: no executable destructive-command suite left, accepted). diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index 162a69d..0f0be02 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -122,7 +122,6 @@ Scope (user 2026-11-11) [gated]: D1-D6 + the 6 dead deny entries + MIGRATION/CHA - [ ] user hand edit pending: remove the four `Bash(npm … -g|--global *)` lines from `permissions.deny` (they override the classifier); then the first global install is the live test of the entry ### Blocked -- [ ] G2 `hooks/guard-bash.sh` (BLK-022, safety classifier withheld the body): PreToolUse Bash, exit 2 + reason, `logger` trace, fail-closed without jq; spec `lib/tests/guard-bash.test.sh` (214 cases) SKIPs until it exists - [x] launch claude with `TMPDIR=$HOME/.cache/claude-tmp` (BLK-021 resolved by `lib/cc.sh`, phase 5; `.bashrc` swap done, ~/.bashrc:133) ### Model-router live checks (opportunistic, need a real session or incident) diff --git a/.claude/tasks/contracts/2026-11-13-blk022-burial-0010.md b/.claude/tasks/contracts/2026-11-13-blk022-burial-0010.md new file mode 100644 index 0000000..07d42fa --- /dev/null +++ b/.claude/tasks/contracts/2026-11-13-blk022-burial-0010.md @@ -0,0 +1,19 @@ +# CONTRACT — blk022-burial (hotfix) +- date: 2026-11-13 | flow: hotfix | branch: bugfix/blk022-burial (off develop f5f3305) +- status: active + +## REQUEST (verbatim — IMMUTABLE) +BLK-022 burial (user decision 2026-11-12, block E): phase 2 covers the destructive-command guard (static deny/ask rules + the model-router routing guard), so the withheld `hooks/guard-bash.sh` will never be written. Delete the SKIP-only spec `lib/tests/guard-bash.test.sh` (214 cases, SKIPs while the hook is absent) and its two allow-list rows in `lib/tests/portability-census.test.sh:19-20` ("lib/tests/guard-bash.test.sh:221/225" deny fixtures). 2 files, no logic. Memory: BLK-022 → superseded (by phase 2 BDR-125 static rules + routing guard), TODO "Blocked" block line removed. + +## ACCEPTANCE CRITERIA +1. lib/tests/guard-bash.test.sh gone; portability-census ALLOW has no guard-bash row. + CHECK: echo $(ls lib/tests/guard-bash.test.sh 2>/dev/null | wc -l)$(grep -c guard-bash lib/tests/portability-census.test.sh) + EXPECT: 00 + EVIDENCE: PENDING +2. portability census green. + CHECK: bash lib/tests/portability-census.test.sh 2>&1 | tail -1 + EXPECT: PASS portability census + EVIDENCE: PENDING + +## FILE SCOPE +lib/tests/guard-bash.test.sh (delete), lib/tests/portability-census.test.sh