From 953b5f1600bb779d1dd244ca1964bab074c03277 Mon Sep 17 00:00:00 2001 From: bchanot Date: Sat, 21 Nov 2026 20:07:13 +0100 Subject: [PATCH] =?UTF-8?q?chore(memory):=20BDR-125=20amended=20=E2=80=94?= =?UTF-8?q?=20hotfix=20doctor=20model=20default=20=C2=B7=20TODO=20+0=20/?= =?UTF-8?q?=20-0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/memory/decisions.md | 1 + .claude/memory/journal.md | 1 + .../2026-11-21-doctor-model-default-2004.md | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 .claude/tasks/contracts/2026-11-21-doctor-model-default-2004.md diff --git a/.claude/memory/decisions.md b/.claude/memory/decisions.md index 92eabae..5dfba45 100644 --- a/.claude/memory/decisions.md +++ b/.claude/memory/decisions.md @@ -1414,6 +1414,7 @@ Branch feature/user-writing-web-rules, UNMERGED (human gate). - **Amendment 8 (2026-10-25, model per project and per conversation)**: user ask (one Claude Code conversation per project, often concurrent: Fable on one, opus on another). Measured headless (scratchpad modeltest): project `.claude/settings.local.json` `"model"` wins over user settings, `--settings '{"model":…}'` wins over both; same scopes as packs. `/model` writes the TRACKED user settings.json (fable landed there 2026-10-25): never the per-project route. Applied: tracked default `opus`, this repo local `claude-fable-5-1[1m]`. Phase 5 profile = `enabledPlugins` + `model`; doctor warns when tracked `model` ≠ `opus`. Residuals accepted by the user: interpreters (`python3 -c`, `node -e`) rest on prose + classifier (491/661 calls from sub-agents, an ask rule would fail executors); Bash write forms out of the routing guard until a measured evasion. - **Status (2026-10-29)**: accepted, phase 1 shipped 2026-10-29 (BDR-130): next phase 5 - **Status (2026-11-16)**: accepted, all phases shipped: 0 925dafa, 0b 06012ea, 4a 017a28b, 1 9a20ca7, 5 3cc4e0d, 2 29624d7, 4b dfadf8a, 4c ddb04f4, 4d dcb593a. Phase 3 closed unbuilt 2026-11-03 (60f28a6). Per-phase /context delta unrecorded for 4a 5 2 4b-4d; headless 26.2k (10-29) to 27.1k (11-12), interactive 40k (11-03), gap LRN-270, synced skills cut BDR-141 +- **Status (2026-11-21)**: accepted, amended 2026-11-21 (user): tracked default model opus[1m] (2bcb75b), doctor checks it (bugfix/doctor-model-default) ## BDR-126 — model-router `/model ` scope dialog: project / conversation / everywhere [accepted] (2026-10-25) diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index 650e6ce..9549317 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -796,3 +796,4 @@ rules: - /hotfix gates-abandon-id (5bba6ce, bugfix/gates-abandon-id UNMERGED): ABANDON regex anchored to numeric id, catch-all malformed ERROR, leading whitespace accepted (robustness challenger: game ledger indented handoff silently MET). 3 lenses + 1 confirmation, security PASS. - /hotfix challenge-cutoff (343ccc2): confirmation BLOCKER/MAJOR on revised point not revised again, [deferred] for human; memory commit carries · TODO +n/-m. Rule applied to own run: r2 additions (stop-before-dispatch, hotfix escape) deferred to user. TODO triage: 28 dropped (no evidence/date/user ask), 51 → 24 open, list in .claude/tasks/plans/2026-11-21-todo-triage.md. MEASURE re-anchored 343ccc2. - BDR-125 phases audit 2026-11-21: all phases shipped, residual blocks done, F faunosteo verified done on its develop (530af1b, fa41bc2e); TODO F closed. Only open phase-adjacent: release (develop 235 ahead of main v3.0.0). +- /hotfix doctor-model-default: doctor passes on opus[1m], tracked default per user 2026-11-21 (BDR-125 status amended). diff --git a/.claude/tasks/contracts/2026-11-21-doctor-model-default-2004.md b/.claude/tasks/contracts/2026-11-21-doctor-model-default-2004.md new file mode 100644 index 0000000..5f3c3f0 --- /dev/null +++ b/.claude/tasks/contracts/2026-11-21-doctor-model-default-2004.md @@ -0,0 +1,24 @@ +# CONTRACT — doctor-model-default +- date: 2026-11-21 | flow: hotfix | branch: bugfix/doctor-model-default +- status: active +- run-base: 0d0ba78484e3356b661f3bc8577ed970c9036974 + +## REQUEST (verbatim — IMMUTABLE) +doctor.sh:155-156 warns "settings.json model is opus[1m] (tracked default is opus)" on every run, but the user decided 2026-11-21 to keep `opus[1m]` as the tracked default ("laisse le opus 1m"; committed 2bcb75b 2026-11-16). Fix: doctor passes on `opus[1m]` (the tracked default) and warns on anything else, naming opus[1m] as the default. + +## CLARIFICATIONS +none — request complete + +## ACCEPTANCE CRITERIA +1. Symptom gone: doctor.sh passes on `opus[1m]` with "settings.json model is opus[1m]" and its warn branch names `opus[1m]` as the tracked default; no "tracked default is opus)" text left. + CHECK: grep -q '^if \[ "$_m" = "opus\[1m\]" \]; then pass "settings.json model is opus\[1m\]"$' doctor.sh && grep -q '(tracked default is opus\[1m\])"; fi$' doctor.sh && [ "$(grep -c 'tracked default is opus)' doctor.sh)" -eq 0 ] && bash doctor.sh 2>&1 | grep -q 'settings.json model is opus\[1m\]$' && echo DOCTOR_OK + EXPECT: DOCTOR_OK + EVIDENCE: MET exit=0 marker-found :: DOCTOR_OK +2. Shell lint stays clean on doctor.sh. + CHECK: shellcheck doctor.sh && echo LINT_OK + EXPECT: LINT_OK + EVIDENCE: MET exit=0 marker-found :: LINT_OK + +## FILE SCOPE +- doctor.sh +- this contract (run artifact)