From 691ff6b44f5bbe05ee981afdff8e912b3ca340d5 Mon Sep 17 00:00:00 2001 From: bchanot Date: Mon, 2 Nov 2026 20:32:21 +0100 Subject: [PATCH] chore(contract): criterion 13 counts the T15 regression case --- .claude/tasks/contracts/2026-11-02-phase2-guards-1545.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.claude/tasks/contracts/2026-11-02-phase2-guards-1545.md b/.claude/tasks/contracts/2026-11-02-phase2-guards-1545.md index 101d720..90acea1 100644 --- a/.claude/tasks/contracts/2026-11-02-phase2-guards-1545.md +++ b/.claude/tasks/contracts/2026-11-02-phase2-guards-1545.md @@ -69,10 +69,10 @@ Merge-gate review `[gated 2026-11-02]` (user answers after GATE 1 ECARTS(6)): cr CHECK: cd /home/bchanot/Documents/claude && [ "$(/usr/bin/grep -c "^test('GUARD:\|^ test(\`GUARD:" mods/model-router/hooks/register.test.ts)" -ge 14 ] && a=$(make test suite=lib/tests/mods.test.sh 2>&1) && printf '%s\n' "$a" | grep -q 'all suites green' && echo GUARD-OK EXPECT: GUARD-OK EVIDENCE: MET exit=0 marker-found :: GUARD-OK -13. `[gated 2026-11-02]` Hooks: the rtk suite holds T11-T13 and the pin matches; the code-limits suite passes 14 checks; both hooks shellcheck clean and ≤ 80 columns. - CHECK: cd /home/bchanot/Documents/claude && (cd hooks && sha256sum -c .rtk-hook.sha256 >/dev/null) && a=$(make test suite=lib/tests/rtk-rewrite.test.sh 2>&1) && printf '%s\n' "$a" | grep -q 'all suites green' && b=$(make test suite=lib/tests/code-limits.test.sh 2>&1) && printf '%s\n' "$b" | grep -q 'PASS=14 FAIL=0' && shellcheck hooks/rtk-rewrite.sh hooks/code-limits.sh && [ "$(awk 'length($0) > 80' hooks/code-limits.sh | wc -l)" = 0 ] && echo HOOKS-OK +13. `[gated 2026-11-02]` Hooks: the rtk suite holds T11-T13 and the pin matches; the code-limits suite passes 15 checks (T15, the symlinked-path case, added by the final-review fix wave db2937d; count updated by the controller, intent unchanged); both hooks shellcheck clean and ≤ 80 columns. + CHECK: cd /home/bchanot/Documents/claude && (cd hooks && sha256sum -c .rtk-hook.sha256 >/dev/null) && a=$(make test suite=lib/tests/rtk-rewrite.test.sh 2>&1) && printf '%s\n' "$a" | grep -q 'all suites green' && b=$(make test suite=lib/tests/code-limits.test.sh 2>&1) && printf '%s\n' "$b" | grep -q 'PASS=15 FAIL=0' && shellcheck hooks/rtk-rewrite.sh hooks/code-limits.sh && [ "$(awk 'length($0) > 80' hooks/code-limits.sh | wc -l)" = 0 ] && echo HOOKS-OK EXPECT: HOOKS-OK - EVIDENCE: NOT-MET exit=1 (nonzero) :: + EVIDENCE: MET exit=0 marker-found :: HOOKS-OK 14. `[gated 2026-11-02]` Settings: every approved rule and every rtk read twin is present (push-guard T62, T63 green), no old entry left any permissions or autoMode list (set check against develop), `hooks.PostToolUse` registers code-limits, the branch diff of settings.json carries no `theme`, `model` or `switchModelsOnFlag` change. CHECK: cd /home/bchanot/Documents/claude && a=$(make test suite=lib/tests/push-guard.test.sh 2>&1) && printf '%s\n' "$a" | grep -q 'all suites green' && [ "$(jq -n --slurpfile o <(git show develop:settings.json) --slurpfile n <(git show HEAD:settings.json) '[["permissions","allow"],["permissions","ask"],["permissions","deny"],["autoMode","allow"],["autoMode","soft_deny"],["autoMode","hard_deny"]] | map(. as $p | ($o[0] | getpath($p)) - ($n[0] | getpath($p))) | add | length')" = 0 ] && git show HEAD:settings.json | jq -e '.hooks.PostToolUse[] | select(.hooks[0].command == "bash ~/.claude/hooks/code-limits.sh")' >/dev/null && ! git diff develop..HEAD -- settings.json | grep -qE '^[-+] *"(theme|model|switchModelsOnFlag)"' && echo SETTINGS-OK EXPECT: SETTINGS-OK