86 Commits
Author SHA1 Message Date
bchanot 24b0f35960 feat(model-router): Fable leaves auto-routing, Opus heads best and big
Fable is the advisor now: the best and big tiers default to opus then sonnet, the row dialog drops it, and the ask-before-Fable dialog runs only when an override heads best with fable. Fable stays ranked and hand-pickable.
2026-11-16 20:31:06 +01:00
bchanot 859e5040b6 feat(model-router): write guard fails closed, refused Skill no longer latches
When the guard itself fails, a main-loop code write outside a skill run is held (next.called split); tool errors replay as before. A Skill answer carrying isError no longer opens the guard.
2026-11-16 01:16:56 +01:00
bchanot 21ef47fd81 fix(style): wrap 4 lines over 80 columns in register.ts and transcripts.ts 2026-11-15 15:56:40 +01:00
bchanot 9f9412aaba fix(memory-feedback): post-fix precision split, 3rd pick retired, bounded transcript cache, strict labels
Precision, triggers and the miss share count only rows after the gate-1
fix merge (d3d5e6c, 2026-11-12T19:53:59Z); their actions wait for 20
post-fix asks, a one-off NEW line marks the sample and the reminder
keeps prompting until then. The 3rd-pick signal is gone. The reader
holds one parsed transcript at a time. labels.tsv rows and state.json
are validated on read. Exact key sets of log records pinned.
2026-11-13 19:47:37 +01:00
bchanot ca1dc9f2bc feat(model-router): Fable tier resolves to claude-fable-5-2
The fable alias (head of the best tier, every best-tier phase, row and
pin that names fable) now resolves to claude-fable-5-2. Rename prepared
by another session, split from the BLK-049 diff; id probed live (claude
-p --model claude-fable-5-2 answers). Kit 640/0, validate --strict ok.
2026-11-13 17:28:47 +01:00
bchanot 6433e4d32a fix(mods): type narrowings for plugin validate --strict (BLK-049)
Claude Code 2.1.323 type-checks mods in validate --strict: three TS2339
in the memory kit, the Bash hook return type, thirteen sites in the
model-router kit and the agent.spawn deny arm. Type-only or
behaviour-equivalent changes; kits 288/640 unchanged; guards stay
fail-open (BDR-136).
2026-11-13 17:27:25 +01:00
bchanot 7e87d7722d feat(memory): idle recall needs 8 content words, recall keeps 2 picks
Gate 1 (EVAL-058): idle 44 %, 3rd pick 35 %.
2026-11-12 20:30:45 +01:00
bchanot a2f352e7bb chore(model-router): memory-feedback route confirmed (reflect); TODO close-out plan 2026-11-12 18:01:29 +01:00
bchanot 027e5b3c21 fix(memory-feedback): gate 2 hardening, commit within 5 locals 2026-11-08 18:04:01 +01:00
bchanot 271172564c fix(memory-feedback): final review: locals, per-trigger n, write order 2026-11-08 17:55:08 +01:00
bchanot c00649f516 feat(memory-feedback): /memory-feedback skill and router row 2026-11-08 17:38:58 +01:00
bchanot efe7f78d49 feat(memory): log cands and rerank ms on prompt recall 2026-11-08 17:22:51 +01:00
bchanot 0da14d8bd8 chore(model-router): capitalize route confirmed (apply) 2026-11-06 14:38:49 +01:00
bchanot fb2a4ff5ba fix(memory): sweep before save, retry on a rejected set, foreign repos get no recall 2026-11-05 19:14:26 +01:00
bchanot 2397c36f06 fix(memory): final review — 2-letter stop words, log keys in the sweep, trigger and outcome in the log 2026-11-05 18:19:22 +01:00
bchanot 2a0d73da12 docs: memory recall, known-error line and session digest 2026-11-05 17:51:19 +01:00
bchanot 3261a919c2 feat(memory): rerank bound 5 s (measurement gate) 2026-11-05 17:47:33 +01:00
bchanot debdead5e0 feat(memory): recall needs five content words (measurement gate) 2026-11-05 17:43:25 +01:00
bchanot 8778c9d920 fix(memory): known line rematches on live entries after the status read 2026-11-05 17:02:16 +01:00
bchanot 78eff1cf34 feat(memory): memory_pending lists earlier-session milestones 2026-11-05 16:59:25 +01:00
bchanot 66696e9a3e feat(memory): known-error line on failing commands 2026-11-05 16:52:21 +01:00
bchanot 3bb2eafb0c feat(memory): intent recall at the prompt, once per context 2026-11-05 16:41:34 +01:00
bchanot acbfd71327 feat(memory): recall switch, injection log and per-context ledger 2026-11-05 16:28:54 +01:00
bchanot a75efabbf1 feat(memory): bm25 ranking and the rerank prompt 2026-11-05 16:18:39 +01:00
bchanot 6adb05ce1e fix(memory): errno phrases never make an error known 2026-11-05 16:12:22 +01:00
bchanot 38afa9325d feat(memory): status reader through memory.sh, entries with lessons 2026-11-05 16:06:09 +01:00
bchanot 5d55585ea5 fix(memory): Set-Cookie header, curl segment prefixes
Header rule names Set-Cookie again behind the lookbehind. The curl
segment test admits sudo, rtk, NAME=value, NAME=$( and $( prefixes.
2026-11-04 15:33:33 +01:00
bchanot 181bcfc7f2 fix(memory): hyphenated api-key, URL scheme bound, cookie flag scoped to curl
api[_-]?key in JSON, pair and header rules. URL scheme bound 200 behind a
lookbehind. -b redacted only in a curl segment (quote-aware cut); --cookie
stays global. Timing test slack for load.
2026-11-04 15:25:25 +01:00
bchanot f80b00a997 fix(memory): security re-scan — header tail, cookie flags, JSON key affixes, URL lookbehind
Header rule redacts to end of line. -b/--cookie values redacted before
pattern 1. JSON keys take affixes. URL rules get a lookbehind. A switch
file with no boolean enabled logs one line. Probe skips logging without
CLAUDE_JOB_DIR.
2026-11-04 14:55:08 +01:00
bchanot d5dd34fc68 fix(memory): security gate — redaction shapes 6-bis, off switch log, span cap, line flatten
Vendor prefixes, --token flags, API-key headers, JSON and key: value
pairs, hex URL user redacted; quoted values redacted to the closing
quote. Unreadable ~/.claude/memory.json logs one line. Registry spans
capped at 300. Stored line gets the newline flatten.
2026-11-04 14:39:50 +01:00
bchanot c6a5fcea9e fix(memory): linear JWT regex, whole-token credential redaction 2026-11-04 14:14:05 +01:00
bchanot c81a7a2132 fix(memory): final review — placeholder grams, redaction shapes, letter rule, success fast path 2026-11-04 14:02:42 +01:00
bchanot 1ad53eff40 test(memory): errorish edge cases, letterless rule folded into the filter 2026-11-04 13:10:26 +01:00
bchanot 2674bbd997 fix(memory): error-shaped line filter (noise gate option A) 2026-11-04 13:04:45 +01:00
bchanot 01eac15367 fix(memory): heredoc commit form, per-segment milestone matching 2026-11-04 12:38:37 +01:00
bchanot 86fac26390 feat(memory): milestones and one note at the next prompt 2026-11-04 12:28:54 +01:00
bchanot 929c5dc50c fix(memory): fail-open exists probe, drop dead readRegistry 2026-11-04 12:20:03 +01:00
bchanot 0478061457 fix(memory): bound index regexes, skip unreadable registries and malformed entries 2026-11-04 12:14:58 +01:00
bchanot e31baf669c feat(memory): memory_pending tool with the registry error index 2026-11-04 12:07:20 +01:00
bchanot 51828461fd fix(memory): bound redaction pattern 1, adversarial timing cases 2026-11-04 11:55:04 +01:00
bchanot 6072522558 feat(memory): capture Bash failures, redacted and bounded, per project and session 2026-11-04 11:51:28 +01:00
bchanot cc1da66fd4 feat(memory): redaction and normalization 2026-11-04 11:39:43 +01:00
bchanot f1d4f9de0a feat(memory): mod skeleton with off switch and fail-open hooks 2026-11-04 11:35:29 +01:00
bchanot 867a34c326 docs: phase 2 doc sync (static rule limits, release prep span, code-limits hook, merge tier, .env denies, guard in the mod manifest) — ship-feature phase2-guards 2026-11-02 22:50:48 +01:00
bchanot 63f4628452 test(model-router): a denied Skill answer keeps the write guard closed 2026-11-02 19:57:49 +01:00
bchanot 9bbd1d5baa fix(model-router): a non-object Skill answer counts as no deny for the guard latch 2026-11-02 18:41:58 +01:00
bchanot 22ff57b57b feat(model-router): redirect main-loop code writes until a skill ran in the session 2026-11-02 18:37:29 +01:00
bchanot 9a24a6229a feat(model-router): ask before a route lifts main or a rowed spawn onto Fable
routing.json askTier (best | false), /route ask-tier on|off, one question per span with origin, phase, about, model and effort: Fable, Opus instead (big tier), stop for the session. The choice is a tier name stamped on the turn and run slots, inherited by same-tier helper routes only; spawns remember one answer per agent type per session; never headless or inside an agent. 28 TIER tests.
2026-11-02 15:59:24 +01:00
bchanot 1fb07050da chore(routing): skill census globs pack skills; long-name rows for pack skills; every row resolves to a skill 2026-11-02 01:38:59 +01:00
bchanot 657e5cb55b feat(router): a bare /model opens the router's model, variant and scope dialog
Picking the session's current model in the native picker fires no PreModelSwitch, so the scope question never came and the project pin stayed. The bare /model now asks model (fable/opus/sonnet or the native picker), Standard or [1m], then the scope.
2026-10-29 17:25:36 +01:00