chore(memory): BLK-022 superseded, Blocked block removed

This commit is contained in:
bchanot committed 2026-11-13 00:37:04 +01:00
1 parent 248000afb1
commit ce62d2b301
4 files changed
+23 -1

No files matched your search

+1
View File
@@ -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.
+3
View File
@@ -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 `<redacted>`, 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).
-1
View File
@@ -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)
@@ -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