bchanot
54bdfebd06
fix(memory): partial-stage check sorts and compares in the C locale
...
uutils sort collates by locale while uutils comm expects byte order: comm warned and could miss a dropped partial stage. Both now run with LC_ALL=C.
2026-11-08 19:49:26 +01:00
bchanot
9ec5617725
fix(memory-feedback): worksheet prints only a shell-safe repo path
2026-11-08 18:09:14 +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
fcebe19951
feat(hooks): memory feedback reminder in the banner
2026-11-08 17:37:19 +01:00
bchanot
1c53aa05b3
feat(memory-feedback): worksheet, apply and sample reader
2026-11-08 17:34:57 +01:00
bchanot
b127b2859b
feat(memory-feedback): join log records to transcript turns
2026-11-08 17:33:20 +01:00
bchanot
ac477077fe
feat(memory-feedback): thresholds, metrics and gate verdicts
2026-11-08 17:27:10 +01:00
bchanot
f624ce101c
feat(memory-feedback): append-only labels, draft and state
2026-11-08 17:25:07 +01:00
bchanot
7ca6b18f08
fix(tests): gate round, fail-closed sources and gitflow-test mktemp
...
gitflow-test aborts on a failed mktemp or newrepo before its reset --hard; helper sources exit on failure; no lint suppression left; T19c reads a real registry; doctrine rewrapped.
2026-11-06 17:27:44 +01:00
bchanot
c5bd0f8312
fix(gitflow): pre-commit exempts only .claude memory, tasks, audits, deploy
...
Any .claude/** set passed on main/develop, rules and settings included, and a git mv hid its source. The hook now allowlists the side-car dirs and lists with --no-renames; both hook copies regenerated, citers reworded.
2026-11-06 17:13:58 +01:00
bchanot
97c6afcbc8
fix(settings): deny rtk read with a flag before a root .env
...
rtk read -n .env matched no deny and rtk passed it through. Bench R3-R7 prove the two new rules and that the */ twins already cover flagged forms. Bench hardened: checked mktemp, mandatory dir.
2026-11-06 16:43:45 +01:00
bchanot
dc5f127ea5
fix(tests): hook-running suites stub the claude CLI fail-closed
...
Inline stubs ran claude probe before checking the stub won PATH, and three suites ran the hook with no stub. A shared helper checks resolution, controls from another cwd and exits on any miss (BLK-043 family).
2026-11-06 16:39:38 +01:00
bchanot
d93f06cb9b
fix(hooks): session-start memory.sh check bounded by timeout 2
...
An unbounded registry check could stall every session start; it now uses the digest's timeout shape. SD16 proves a hung check returns under 3.5 s.
2026-11-06 16:36:16 +01:00
bchanot
9b3961e622
fix(memory): an assignment-shaped path is read as a file by awk
...
awk took --body-file x=1.md or a check/upgrade dir like a=b for a var=value operand and read stdin: checks passed vacuously and the entry got stdin. _mem_path_safe prefixes ./ to that shape only.
2026-11-06 16:34:25 +01:00
bchanot
2f45452ce1
test(hooks): session-digest suite stubs the claude CLI (BLK-043 Part B)
2026-11-06 14:42:38 +01:00
bchanot
4a7ce37018
fix(memory): enabled:false in memory.json and foreign repos cut the session digest
...
The digest now honours the mod's switch (boolean false only) and skips repositories with gitflow.protect false, like the recall channels. SD13/SD14 cover both.
2026-11-06 13:15:28 +01:00
bchanot
3564e3ee77
Merge branch 'develop' into feature/memory-recall
...
# Conflicts:
# hooks/session-start.sh
2026-11-06 12:48:17 +01:00
bchanot
7e47bead88
Merge hotfix/detect-plan-fork-bomb into develop
2026-11-06 12:06:38 +01:00
bchanot
49aa2fff78
fix(hooks): detect_plan no longer calls the claude CLI (fork bomb)
...
`claude config get planType` started a full session whose SessionStart
hook called detect_plan again: unbounded recursion, OOM, reboot
(BLK-043). detect_plan now reads ~/.claude.json only and defaults to
pro; the hook gets an env recursion guard.
2026-11-06 11:38:13 +01:00
bchanot
f9787044ff
test(hooks): SD12 timing bound with sub-second precision
2026-11-05 17:19:38 +01:00
bchanot
d0d119fe30
fix(hooks): digest bash 3.2 safe and time-bounded
2026-11-05 17:17:31 +01:00
bchanot
177502139d
fix(hooks): digest keeps the journal line under the cap
2026-11-05 17:11:45 +01:00
bchanot
4928c0e5e7
feat(hooks): memory digest at session start
2026-11-05 17:03:23 +01:00
bchanot
38afa9325d
feat(memory): status reader through memory.sh, entries with lessons
2026-11-05 16:06:09 +01:00
bchanot
0ca453f044
fix(hooks): extract-guard keeps <name> placeholders as words
2026-11-05 14:43:48 +01:00
bchanot
f02fd8a5db
fix(hooks): extract-guard 64 KiB cap, $"…" quotes, expansion-built names in MISSES
2026-11-05 14:33:01 +01:00
bchanot
cf9a3b8ea7
fix(hooks): extract-guard gate findings (size cap, control bytes, obfuscated names, globs, cpio -p, subshell cd)
2026-11-05 09:51:53 +01:00
bchanot
5507972d3a
feat(hooks): extract-guard refuses package/archive extraction into system dirs
...
PreToolUse Bash|Monitor hook: dpkg/dpkg-deb -x, tar x, unzip, cpio -i and cp -r
into /, /usr, /etc or another system root, including inside quoted ssh,
vaas-cli ssh and bash -c scripts; doctrine bullet in Destructive tools.
2026-11-05 00:24:45 +01:00
bchanot
a403df2472
docs: security gate — data rule in § WRITE, spike probe header, redaction set
...
capitalize-commit § WRITE: captured text only via a quoted heredoc body
file. Spike probe flagged do-not-load, job path generic. noise.py port
scope stated. README, USAGE, CHANGELOG list the 6-bis redaction shapes.
2026-11-04 14:42:15 +01:00
bchanot
db2937d8b7
fix(code-limits): resolve physical path so symlinked dirs see tracked files
2026-11-02 19:56:11 +01:00
bchanot
c58b3e7a58
fix(test): rtk pin check falls back to shasum on macOS
2026-11-02 19:50:42 +01:00
bchanot
9887c146a3
test(push-guard): T62 rtk read twins census, T63 phase 2 rule lock (red until settings land)
2026-11-02 18:43:23 +01:00
bchanot
f21e2655ab
feat(hooks): code-limits PostToolUse reports added lines over 80 columns in our code, once per file per session
2026-11-02 18:38:38 +01:00
bchanot
60ee4a996e
fix(rtk-hook): rtk ask (rc 3) passes the original command to the native rules; re-pin
2026-11-02 18:33:55 +01:00
bchanot
789fd00b23
docs: README ask-before-Fable bullet, /route list and config keys; CHANGELOG Unreleased; effort-shift toggle list — feat router-ask-tier
2026-11-02 16:06:40 +01:00
bchanot
04635833a2
fix(migration,profile): recipe resolves the clone root and fails closed before cp; find -mindepth 1; grep -F id match; local JSON on stdin; -L guard before the impeccable refresh
2026-11-02 12:21:10 +01:00
bchanot
94ce345aa2
docs(phase5): higgsfield citers, MIGRATION fenced steps + real-dir impeccable, gate header, /profile allowed-tools, wording
2026-11-02 11:48:46 +01:00
bchanot
9327b4fcd0
fix(census,install): moved dirs scanned, real-dir remedy, impeccable adoption, retired list carries its rationale
...
Census scans the four moved dirs and bare skills/<n>/ citers, warns on
a pack id with no manifest, refuses equal fragments. Installers adopt a
real skills/impeccable with mv, never rm.
2026-11-02 11:48:46 +01:00
bchanot
9baba8a88a
fix(profile): root follows the git common dir, managed-connector match, name allowlist, nine profiles
...
backend and web-full were identical to dev and full: removed. Root =
parent of the git common dir (worktree-safe, stops at HOME); shared
settings read from the -C dir. diff and unset skip no-op output/writes;
flag note says the write applies to other sessions only.
2026-11-02 11:48:36 +01:00
bchanot
cfdbf228ca
fix(phase5): routing test: 21st parked rows resolve on a fresh clone
2026-11-02 09:48:05 +01:00
bchanot
04b9b865f8
fix(phase5): final review wave: cc.sh width, design-gate remedy + resolve check, routing test on a fresh clone, doctor fail-closed, dead column
2026-11-02 09:47:13 +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
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