Commit Graph
100 Commits
Author SHA1 Message Date
bchanot 6336d0dbd4 chore(memory): hard_deny clause journal 2026-11-16 16:44:03 +01:00
bchanot e22893daa4 chore(audits): log guard fail-closed and hard_deny clause residuals 2026-11-16 16:43:55 +01:00
bchanot 162d4c1263 docs: changelog for the hard_deny mod off-switch clause 2026-11-16 16:43:54 +01:00
bchanot 8c21c4bc47 fix(settings): hard_deny names the mod off switches as guardrail disarming 2026-11-16 15:42:44 +01:00
bchanot a4b09cd2a3 Merge feature/guard-fail-closed into develop 2026-11-16 14:37:30 +01:00
bchanot 1ddc2445ef chore(memory): LRN engine API first, TODO gates timeout 2026-11-16 14:33:32 +01:00
bchanot 1a96fca750 chore(memory): guard fail-closed journal, BDR-136 amended 2026-11-16 14:30:36 +01:00
bchanot e8598dfee5 docs: write guard fails closed, refused Skill does not latch; changelog 2026-11-16 14:30:29 +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 2a27032ac4 Merge bugfix/t18-bun-skip into develop 2026-11-16 00:21:18 +01:00
bchanot 38456680c2 chore(memory): T18 bun guard journal 2026-11-16 00:15:51 +01:00
bchanot b9f2d819b7 fix(tests): memory T18 prints SKIP instead of failing when bun is absent 2026-11-16 00:15:44 +01:00
bchanot b140c98d1c Merge feature/staged-next-id into develop 2026-11-16 00:01:28 +01:00
bchanot 6b3395d247 chore(memory): LRN validator replays allocator 2026-11-15 23:54:32 +01:00
bchanot 9a8d4ae0ef chore(memory): staged next-ID journal 2026-11-15 22:15:58 +01:00
bchanot eb801b7620 docs: changelog for the check --staged next-ID rule 2026-11-15 22:15:49 +01:00
bchanot 9e52f69c8f chore(audits): regroup two bugs-found-scripts items under their header 2026-11-15 21:59:32 +01:00
bchanot 074cdde409 chore(audits): log staged next-ID residuals 2026-11-15 21:59:21 +01:00
bchanot e0311f4d4f feat(memory): check --staged refuses a new entry that skips or reuses an ID
A new ## entry must carry the next free ID, replayed in line order the way add allocates it. The rule runs only on a v2 HEAD with entries, so upgrade, first commits and template imports pass.
2026-11-15 21:59:04 +01:00
bchanot 411d22ff92 chore(memory): BLK index fail-open resolved 2026-11-15 21:04:50 +01:00
bchanot b8eba88d3c Merge bugfix/index-fail-closed into develop 2026-11-15 21:01:20 +01:00
bchanot 1a4759d752 chore(memory): index fail-closed journal 2026-11-15 20:40:53 +01:00
bchanot 038670e4e8 docs: digest unknown line also covers an unparsable BLK row; changelog for index fail-closed 2026-11-15 20:40:28 +01:00
bchanot 07f9a7feb7 chore(audits): mark memory_index fail-open fixed, log its residuals 2026-11-15 19:35:34 +01:00
bchanot 87aecc1212 fix(memory): index fails closed on an unreadable registry
memory_index skipped a non-regular blockers.md and dropped the awk rc, so the digest printed a false '- open: none'. With a kind it now returns 2; without, it skips the bad registry with a stderr line. The digest prints unknown on a malformed row.
2026-11-15 19:35:15 +01:00
bchanot 2315a0b33a Merge bugfix/line-width-80 into develop 2026-11-15 16:40:19 +01:00
bchanot e5b521251f chore(memory): line width journal 2026-11-15 15:56:41 +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 b03aced358 Merge bugfix/docker-mount-deny into develop 2026-11-15 15:36:13 +01:00
bchanot e45bd5dd80 chore(memory): docker deny journal 2026-11-15 15:33:25 +01:00
bchanot a308a022b7 docs: docker host-root mount deny in CHANGELOG and SETTINGS 2026-11-15 15:33:24 +01:00
bchanot 0f73d7ee01 fix(settings): deny docker mounts of the host root in 7 spellings
The single legacy row matched no real spelling (bench M5). 28 rows (7 shapes x 4 prefixes, bench-proven with an echo analogue) now deny them; soft_deny covers create, container run and compose up; T41 locks the rows.
2026-11-15 15:22:34 +01:00
bchanot 1943e4a561 chore(memory): live proofs oom 500 and npm -g 2026-11-14 18:53:33 +01:00
bchanot d11b048a4d Merge bugfix/mods-test-tty-hang into develop 2026-11-14 18:48:51 +01:00
bchanot adc0dff72d chore(memory): mods tty hang journal, LRN 2026-11-14 18:48:43 +01:00
bchanot 87b3530b29 fix(tests): mods suite hung in a terminal, CLI under timeout now reads /dev/null 2026-11-14 18:48:41 +01:00
bchanot 8db4a52d72 chore(memory): E3 merged, journal 2026-11-14 18:32:04 +01:00
bchanot 98e1800baa Merge bugfix/npm-global-deny into develop 2026-11-14 18:31:56 +01:00
bchanot 692e4a5a24 fix(settings): npm -g left to the auto-mode soft_deny 2026-11-14 18:31:44 +01:00
bchanot e78872e8a8 chore(tasks): E3 line, removed_ok_until stays 3.0.0 2026-11-14 13:11:38 +01:00
bchanot f8d493507a Merge chore/bdr125-close into develop 2026-11-14 13:07:49 +01:00
bchanot 4f33f38d25 chore(memory): EVAL-059, J closed — close ritual 2026-11-14 12:54:47 +01:00
bchanot 69eb53f374 docs: changelog, BDR-125 delivered, H6a and BLK-049 lines 2026-11-14 12:54:33 +01:00
bchanot 2bef08a6f8 chore(audits): D4 dialect and drift-check items closed with justification (BDR-125 close-out) 2026-11-14 12:52:42 +01:00
bchanot 173e1f97bf Merge bugfix/perl-timeout-group into develop 2026-11-14 12:24:43 +01:00
bchanot f7a6598518 chore(memory): perl runner journal, LRN-290, phase 4b-4d closed 2026-11-14 11:28:07 +01:00
bchanot 721a2ca2bc chore(audits): perl runner KILL-without-grace finding logged 2026-11-14 11:28:06 +01:00
bchanot e40811ef52 docs: changelog, perl runner kills the process group 2026-11-14 11:28:06 +01:00
bchanot 490ad8353d fix(session-start): perl fallback runner kills the command's process group
alarm then exec killed one process: a child holding the captured pipe kept the 2 s bound open. perl now leads its own group, kills it at the deadline and TERMs leftovers; SD19/SD19b assert the bound and that the command ran.
2026-11-14 11:27:15 +01:00
bchanot cce1a1304c Merge bugfix/doctor-skilloverrides-residue into develop 2026-11-14 11:06:16 +01:00
bchanot d6010062cd chore(memory): H7 journal, H/I TODO closed, bisect files 2026-11-14 10:40:56 +01:00
bchanot 8dcee03e47 docs: doctor residue check covers skillOverrides, MIGRATION step 1 restores both keys (H7) 2026-11-14 10:40:51 +01:00
bchanot 313b1573bb chore(audits): doctor echo -e escape finding logged (H7) 2026-11-14 10:38:58 +01:00
bchanot 9c9a0240f7 fix(doctor): residue check covers skillOverrides, not only enabledPlugins 2026-11-14 10:38:57 +01:00
bchanot 457fa33aaa Merge bugfix/bugs-found-scripts into develop 2026-11-14 10:33:23 +01:00
bchanot d1b9e9df06 chore(memory): H6b journal, LRN-289 2026-11-13 23:01:49 +01:00
bchanot 599684c2c5 docs: digest open none/unknown lines, profile-state sanitizing (H6b) 2026-11-13 23:01:33 +01:00
bchanot 7c8726b5a0 chore(audits): 7 BUGS-FOUND script items closed (H6b), 3 new low findings logged 2026-11-13 23:01:06 +01:00
bchanot 9045a60f11 fix(scripts): close the BUGS-FOUND script items, fail closed on bad reads
profile-state.jq sanitizes printed values and shape-checks plugin ids (no forged plugin: line); the digest prints open: none or unknown instead of nothing; push-guard deny_lost checks every pipe stage, T63 split into ask and deny lists; prune-memory mktemp guarded.
2026-11-13 22:59:50 +01:00
bchanot 4900ca54a3 Merge bugfix/bugs-found-prose into develop 2026-11-13 20:45:09 +01:00
bchanot 20448395f3 chore(memory): H6a journal, LRN-154 correction 2026-11-13 20:45:08 +01:00
bchanot 55574edc2a chore(audits): 12 BUGS-FOUND items closed (H6a), 5 new pre-existing findings logged 2026-11-13 20:45:07 +01:00
bchanot 77041e5360 fix(agents): close the 10 prose BUGS-FOUND items, root quoting and $HOME refusal
Handover: rooted reads, whole-line PROJECT_ROOT read with a one-line
pre-paste rule, BDR status filter. plugin-gate: single-quoted templates,
unsafe roots printed never run, apply check against the git common dir,
$HOME refused (and in profile.sh). Advisor: minimal only from project
signals, no extras token, ctx7 wording, print-only plugin remedy. Packs
vocabulary in onboard/tour; graphify labels match the trap.
2026-11-13 20:43:59 +01:00
bchanot a967fd93dc Merge bugfix/feedback-followups into develop 2026-11-13 19:51:17 +01:00
bchanot c8528a7bfc chore(memory): LRN-288, BDR-146 residual closed, 4d TODO lines closed (H5) 2026-11-13 19:51:16 +01:00
bchanot 7f5995b08c docs: memory feedback post-fix sample, reminder, 3rd pick retired 2026-11-13 19:51:15 +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 e132488aef Merge bugfix/safety-lows into develop 2026-11-13 18:27:29 +01:00
bchanot f0908e74ea chore(memory): H4b journal, safety LOWs closed 2026-11-13 18:27:28 +01:00
bchanot 189c1f916b docs(changelog): hooks safety LOWs (code-limits dir, bounded session start, pre-commit fail-closed) 2026-11-13 18:27:27 +01:00
bchanot 1f107c3c45 fix(hooks): private code-limits state dir, bounded session start without timeout, pre-commit fails closed
code-limits: mkdir -m 700 without -p as the atomic proof, else one
find test (ours, dir, 700). session-start: one runner, timeout then
gtimeout then perl alarm (exec, no shell). pre-commit (generator +
both copies): a git diff or grep error blocks. memory.sh line rewrap;
claude-stub reads its log path from the env. Tests T16, SD19, PC1-4.
2026-11-13 18:25:33 +01:00
bchanot 27946d5280 Merge feature/fable-5-2 into develop 2026-11-13 17:30:04 +01:00
bchanot 70c93c5546 chore(memory): journal, Fable 5.2 2026-11-13 17:30:03 +01:00
bchanot 0a0eafa41c docs(changelog): fable alias resolves to claude-fable-5-2 2026-11-13 17:30:02 +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 30cf107b2b Merge bugfix/mods-strict-types into develop 2026-11-13 17:27:27 +01:00
bchanot 08308a60a6 chore(memory): BLK-049 resolved, journal 2026-11-13 17:27:26 +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 9ee3fdad23 Merge bugfix/phase2-deny-lows into develop 2026-11-13 16:49:50 +01:00
bchanot 2041ee668c chore(memory): journal ID correction (BLK-049) 2026-11-13 16:49:49 +01:00
bchanot d637b2a399 chore(memory): BLK-046 (CLI 2.1.323 validator), H4a journal, phase 2 lines closed 2026-11-13 16:47:17 +01:00
bchanot bc90b88b7d docs(changelog): 28 deny rows, doctor jq message 2026-11-13 16:47:01 +01:00
bchanot a43ba1b763 fix(settings): close the awk and key-file deny gaps, doctor names every jq consumer
28 deny rows: awk/gawk/mawk 'system (' spacing, -f programs, getline and
pipe-to-command exec primitives; cat and rtk read on .key, .pem, id_rsa
and id_ed25519 without a dir prefix (plus */rtk twins). All rows locked
in push-guard T63; T62 twins hold. doctor.sh jq message names
code-limits and push-guard.
2026-11-13 16:46:06 +01:00
bchanot 07c2c8db65 Merge bugfix/pack-census-followups into develop 2026-11-13 16:26:39 +01:00
bchanot c782237d7e chore(memory): H3 journal, phase 5 line closed 2026-11-13 16:23:37 +01:00
bchanot 061a7cbe61 docs: pack-census fragment key allowlist (profiles README, CHANGELOG) 2026-11-13 16:23:36 +01:00
bchanot 2fb9a2f4c1 fix(pack-census): fixed-string retired match, fragment top-level key allowlist
grep -qxF on gstack-removed.list; a fragment carrying a top-level key
other than enabledPlugins, deniedMcpServers, disableClaudeAiConnectors
or model is RED. T13-unknown-key.
2026-11-13 16:22:39 +01:00
bchanot 84463e130a Merge bugfix/memory-sh-residuals into develop 2026-11-13 14:55:48 +01:00
bchanot d310f0224d chore(audits): 4 memory.sh BUGS-FOUND items fixed in H2 (d8e62c1) 2026-11-13 14:49:39 +01:00
bchanot f27b24233d chore(memory): LRN-287, BLK-038 resolved, phase 4a + 1 lines closed, 4 BUGS-FOUND fixed (H2) 2026-11-13 14:49:29 +01:00
bchanot 5e7a2679c0 docs: memory.sh legacy reader and upgrade semantics (CHANGELOG, MIGRATION, usage comment) 2026-11-13 14:48:13 +01:00
bchanot d8e62c1420 fix(memory): one lexical status reader, body label beats a stale Index, clean stderr
memory_legacy_status is one fence-aware awk program (selector as a
positional, end derived from the ID prefix, stops at another entry or
## Index; no MEM_LEGACY_RE env read). upgrade computes one effective
status (strict word, else the v1 body label) for flush, Index-stated and
the oracle: a **Statut** : line is written as the dated upgrade status
instead of losing to the Index cell. Control chars become ? on stderr
and in written cells; journal keeps exactly one blank line.
2026-11-13 14:45:15 +01:00
bchanot e6e8241863 Merge bugfix/project-rules-residuals into develop 2026-11-13 13:43:33 +01:00
bchanot 8d4cc6716a chore(memory): LRN-286, phase 0 leftovers closed (H1) 2026-11-13 13:16:29 +01:00
bchanot cd90080f6f docs(changelog): project-rules physical check, emit guard, extract keeps both copies 2026-11-13 13:15:55 +01:00
bchanot 9d5530af89 fix(project-rules): physical parent check, emit write guard, extract keeps both copies
_rules_out_path_ok resolves the first existing ancestor with cd -P and
refuses an out that escapes the project; emit goes through it and checks
mkdir and the write; an extract rewrite failure keeps tmp and out and
names both. Callers (onboarder, scaffolder) stop on any rc 2 but exists.
2026-11-13 13:14:24 +01:00
bchanot 4e71b1af64 Merge bugfix/cc-oom-score-adj into develop 2026-11-13 12:49:12 +01:00
bchanot 8bc48db196 chore(memory): BLK-044 resolved, LRN-285, block G ticked 2026-11-13 12:42:58 +01:00
bchanot f5ce4ae5ba docs(changelog): cc raises oom_score_adj to 500 (BLK-044) 2026-11-13 12:42:14 +01:00
bchanot 6c10d3a220 fix(cc): raise oom_score_adj to 500 inside the session (BLK-044)
sshd's systemd override (OOMScoreAdjust=-1000) is inherited by tmux,
dtach and every claude started via cc, so the OOM killer never picks a
runaway claude; systemd-run --scope rejects the property. The inner bash
raises /proc/self/oom_score_adj to 500 (raise-only) before exec claude.
T7-oom asserts it through the stubbed chain.
2026-11-13 12:40:54 +01:00