Commit Graph
316 Commits
Author SHA1 Message Date
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 6509ab2958 feat(hooks,doctor): statusline and banner read profile.sh current --plain once; doctor runs the pack census and checks cc.sh sourcing, user-scope residue and the opus default 2026-11-02 01:34:50 +01:00
bchanot 58958229d9 docs(plugin-gate): probe reads current --plain, advisor emits profile.sh set/enable, /profile rewritten for packs 2026-11-02 01:31:35 +01:00
bchanot 350e658b60 feat(design-gate): the gate reads profile.sh current --plain; remedy is set web / enable design + reload, or a relaunch under --settings 2026-11-02 01:29:42 +01:00
bchanot ddd2cdb3ac feat(cc): cc <name> [profile] runs claude --settings lib/profiles/<profile>.json and exports CLAUDE_PROFILE* 2026-11-02 01:27:36 +01:00
bchanot babf232594 feat(packs): nine skills-dir packs, profiles as settings fragments, profile.sh on one jq pass; symlink toggling and toggle-external retired 2026-11-02 01:25:36 +01:00
bchanot dfbc8a7e4e docs(memory): § WRITE says -C cds first and --body-file is absolute; tour/deploy/audit-delta point at § WRITE; evals template Later status line
Phase 4a parked minors, doc half.
2026-11-01 12:08:48 +01:00
bchanot 18e63705c5 docs: memory-v2-minors — add refusal, rc 6 causes and partial stages, negated status words 2026-11-01 11:45:50 +01:00
bchanot 48ade8f405 style(lib): reflow reconcile.sh and memory-commit.sh under 80 bytes
Comment reflow and line breaks only; `declare -f` output identical
except two hand-reviewed string splits with identical output. Also
refreshes two stale reconcile.sh comments (status source on v1 vs v2,
`## ID` headings only).
2026-11-01 11:39:58 +01:00
bchanot e4fb8f7670 fix(memory): phase 4a minors — negated status words, dead empty steal, body heading, blob errors, dropped partial stages
- status parser: a word negated in its clause (not|no|never|pas, at most
  one word between, no `, ; . : ( ) -> → —`) is not a status; shared by
  the v2 parser and the v1 legacy word reader, so `upgrade` refuses a
  "not resolved yet" instead of writing resolved
- lock: an empty memory.lock.steal older than 60 s is a dead stealer
- add: refuse an unfenced `## ` body line (rc 2, line named)
- _mem_blob: rc 1 absent, rc 2 read error; check --staged refuses rc 2
- memory-commit rc 6 names each dropped partial stage with its blob id
  and a `git update-index --cacheinfo` restore line
- upgrade header: a non-table `## Index` is refused (rc 2)
Tests: memory.test.sh T17 block, run-deterministic rc 6 partial-stage case.
2026-11-01 11:39:51 +01:00
bchanot 5bd0de4498 test(citers): census reads nested lib paths, home prefixes, project rules and templates
A bare .claude/rules/ citation resolves by citer (this repo's own rules, else templates/project-rules); T3 keeps its roots, T6 also scans templates/ and .claude/rules/.
2026-10-31 16:08:00 +01:00
bchanot 2dae5282f6 fix(memory): upgrade refuses a prose or mixed v1 closure instead of writing resolved
The repair copied the v1 reader's lexical verdict, read the verdict diff while rewriting the file, and listed same-ID sub-headings twice. It now writes only a single closed word from a Status label, names and refuses the rest, and asserts one upgrade line per entry.
2026-10-30 20:23:40 +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
bchanot 789a2b2027 fix(doctrine): final-review wave — Supabase/functions pointers say Read before a new file, graphify/API/ship-feature wording 2026-10-29 13:51:53 +01:00
bchanot c4f3f0b17b feat(memory): autoMemoryEnabled false; doctor warns on leftover auto-memory files 2026-10-29 13:10:44 +01:00
bchanot 363fa90f8f test(census): resolve rules/ and lib/ § citations against their file 2026-10-29 13:08:36 +01:00
bchanot 6a642956d8 test(rules): user-rules suite locks the always-on set; engine matching documented 2026-10-29 13:05:17 +01:00
bchanot 2fe5291a13 feat(doctrine): architecture defaults move to lib/architecture-defaults.md, Web APIs to rules/rest-api.md 2026-10-29 13:00:58 +01:00
bchanot de6e51ce7a feat(graphify): usage rules print from session-start only where a graph exists 2026-10-29 12:58:53 +01:00
bchanot 4bbb3c58d4 feat(design): Design work moves to rules/web-building.md, hook points there and skips sub-agent hand-backs 2026-10-29 12:56:58 +01:00
bchanot aab9e4d9a0 fix(memory): bounded lock loop, entry-ID validation, refuse a non-table Index, check refuses nothing-to-check, Date label spacing 2026-10-28 18:28:54 +01:00
bchanot 28c5a4209b fix(memory): resolve the lib dir before -C so upgrade finds the templates from a relative path 2026-10-28 17:53:48 +01:00
bchanot 7806ab426b fix(memory): upgrade keeps an EVAL Index action the body lacks; lib lines ≤ 80 2026-10-28 17:25:36 +01:00
bchanot c742b1f322 fix(memory): upgrade-side v1 reader skips status lines inside code fences 2026-10-28 16:23:33 +01:00
bchanot 197b899c3f fix(memory): upgrade-side v1 range ignores headings inside code fences 2026-10-28 16:01:22 +01:00
bchanot 7b26000f48 fix(memory): upgrade reads each entry's v1 status within its own range 2026-10-28 15:16:31 +01:00
bchanot fdba49d6a8 fix(memory): upgrade never repairs an entry the v1 reader could not see; RECONCILE_GREP honoured 2026-10-28 14:57:05 +01:00
bchanot 18d1c0b6bc feat(memory): upgrade migrates every v1 dialect — headings normalized, frontmatter added, verdict oracle 2026-10-28 14:34:48 +01:00
bchanot f15c360b95 docs(memory): one WRITE section in capitalize-commit.md, every flow cites it; Index steps removed; doctrine names the single writer 2026-10-28 14:19:21 +01:00
bchanot 6c9bb7c58b feat(memory): templates born v2 (format: 2, no Index); session banner names a v1 registry 2026-10-28 14:16:50 +01:00
bchanot f6d29bae93 feat(memory): memory-commit refuses a staged in-place edit or new culprit in a v2 registry (rc 6, unstaged); rc 5/6 documented 2026-10-28 14:09:58 +01:00
bchanot 803a34b89a test(reconcile): T8d reads a lib-shaped v1 fixture instead of a temp registry 2026-10-28 14:08:03 +01:00
bchanot 27643a4429 fix(reconcile): v2 blocker status through the shared memory.sh parser and classifier — BLK-032..034 no longer false-open; v1 reader unchanged 2026-10-28 14:07:08 +01:00
bchanot a423594ee0 feat(memory): lib/memory.sh single registry writer — add/status/journal/index/check/upgrade, shared status parser, noclobber lock 2026-10-28 14:05:18 +01:00
bchanot 14a93e3f19 feat(rules): extract refuses an absolute, .. or existing out path and checks the mkdir and rule-write rc before rewriting the source
A failed rule write used to remove the section with rc 0. Split S0.3 prose follows the lib's heading case order.
2026-10-27 20:03:28 +01:00
bchanot ab5049e5b1 feat(rules): extract accepts a ### heading, sections --depth 3 lists subsections, split mode names the ### row
A ### section ends at the next heading of level <= 3 outside a fence; a last ### gives its parent's trailing --- back. Bare headings stay ##.
2026-10-27 14:38:57 +01:00
bchanot 0b59687e1e fix(rules): extract rc 2 on a failed rewrite, H1 ends a section, split S0 ordered with row allowlist, stage per row 2026-10-26 21:53:49 +01:00
bchanot 89334f2901 fix(rules): named dep-dir globs match, inline-paths error names the form, gitignore newline guard, no | in globs 2026-10-26 18:04:15 +01:00
bchanot dbd20dd575 feat(generators): onboarder and scaffolder emit docker/testing/ci path rules from templates/project-rules 2026-10-26 17:55:01 +01:00
bchanot 433c10d78f refactor(claude-md): four sections become .claude/rules path rules (phase 0) 2026-10-26 17:47:53 +01:00
bchanot ce8e60ee7c chore(gitignore): un-ignore .claude/rules/ here and in the gitflow socle 2026-10-26 17:46:24 +01:00
bchanot e7d800f053 feat(hooks): InstructionsLoaded logger, the proof channel for path rules 2026-10-26 17:44:17 +01:00
bchanot abfa4167ea feat(rules): lib/project-rules.sh check/matches/sections/extract + suite 2026-10-26 17:41:07 +01:00
bchanot 8e93507b19 fix(router): only Haiku 4.x takes no effort; Haiku 5.x gets its route's
The no-effort rule was keyed on every claude-haiku id, so Haiku 5.5 ran at the engine default instead of its phase effort (mechanical: low). The guard now names Haiku 4.x; status-reporter pins effort: low.
2026-10-25 22:19:55 +01:00
bchanot 2202964d02 feat(router): the /model picker asks its scope; a hand pick always switches
A pick in the picker is held (PreModelSwitch deny), then the same project / conversation / everywhere question runs; only Everywhere reaches the native write to user settings.json. A model chosen in that dialog bypasses the cold-read caps but waits while held down.
2026-10-25 20:36:49 +01:00
bchanot 1fde5bbc76 feat(router): /model <name> asks its scope: project, conversation, everywhere
This project writes model into .claude/settings.local.json and sets a sticky route; This conversation sets the sticky route only; Everywhere runs the native write. Links refused in the project tree, native never runs after an answer.
2026-10-25 16:21:39 +01:00
bchanot 34c6534620 Merge feature/router-keyword-cap into develop 2026-10-23 17:40:14 +02:00
bchanot 5c6e368937 test(gitflow): start outside a git repo exits non-zero 2026-10-23 17:09:56 +02:00
bchanot 70e0f9ac41 feat(lib): code-origin.sh tells our code from foreign code 2026-10-23 16:54:15 +02:00
bchanot 786ee13c24 feat(router): keyword rules, ultrathink and dispatches set effort only
Prompt rules and the derived orchestrate route write effort-only routes, so
they never lift main above the session model; a held run keeps its model.
Fable on main comes from skill rows, the route tool or /route (BDR-123).
2026-10-23 01:24:16 +02:00