Commit Graph
1215 Commits
Author SHA1 Message Date
bchanot c0fdbec3c1 fix(guardrails): probe map and fields verdicts fail closed, console rule sees public/, raw escape WARN, argv silent, plan validation 2026-10-19 11:56:25 +02:00
bchanot 6c0006bce3 fix(guardrails,a11y): CLOSED fields probe assertion, drop floor suppressions 2026-10-19 10:52:27 +02:00
bchanot 91b988b3a5 docs(a11y): STEP 3 names the real false-positive classes 2026-10-19 01:19:41 +02:00
bchanot 5643e9dbd4 fix(guardrails): bound DATA_ATTR, SCRIPT_SRC, TRACE_MARKERS and the comment blankers, SENSITIVE_KEY aligned with the spec, 5xx map SKIPPED, base64 inline maps only, RecursionError and supabase shape guarded, large .map head read 2026-10-19 01:19:40 +02:00
bchanot 0de2e8a48a docs: /a11y and the injection and exposure domains in README, USAGE, CHANGELOG; routing boundaries (web-validate, seo, harden, global line, interviewer) 2026-10-19 00:52:23 +02:00
bchanot fe0b229efc docs(guardrails): injection and exposure in the skill, the rule catalogue, the probe plan and secure-by-default; a11y handed to /a11y 2026-10-19 00:50:34 +02:00
bchanot 60d447e544 feat(a11y): skill (scan, keyboard walk, report, fix loop on the bugfix circuit), lazy rules/a11y.md, profiles, locks 2026-10-19 00:48:09 +02:00
bchanot 45e3454b99 chore(model-router): a11y skill row (reflect) 2026-10-19 00:47:59 +02:00
bchanot 811077da2b fix(guardrails): probe reads inline maps anywhere in the body, SKIPPED on an oversize map, validation never raises, bounded trace marker, .map guess from the path 2026-10-19 00:45:25 +02:00
bchanot 8b6472b8c4 feat(guardrails): exposure probe (source maps served or inline, error bodies, sensitive keys) that fails closed; every plan path validated; fetch keeps error bodies 2026-10-19 00:42:13 +02:00
bchanot 6e79d182e3 feat(a11y): standalone scanner on the shared engine (A11Y-CLEAR / A11Y-NO-NEW); guardrails drops the a11y domain 2026-10-19 00:40:26 +02:00
bchanot b4ef6ae359 fix(guardrails): bounded comment/env patterns, multi-line errorhandler guard, WIDE mutants 2026-10-19 00:38:21 +02:00
bchanot d46201c561 feat(guardrails): exposure domain (EXP-*): console data, source maps (config, public dir, large files), hydrated state, shipped comments, data attributes, error bodies in routes, debug mode, wide responses 2026-10-19 00:34:57 +02:00
bchanot 7500a618fe feat(guardrails): injection domain (INJ-*): per-language SQL concat and raw escapes, dynamic EXECUTE, PostgREST, NoSQL, shell into DB tools; shared code_files/hits/dedupe helpers 2026-10-19 00:32:06 +02:00
bchanot 988038cce3 refactor(guardrails): extract the scan engine into scanner.py, scan.py keeps the catalogue 2026-10-19 00:30:03 +02:00
bchanot ed06e8cc1d docs(ship-feature): plan revision 3 and spec amendments after the confirmation pass (fail-closed sourcemap, quote-matched concat, scoped dev-env lock) 2026-10-19 00:19:18 +02:00
bchanot 6eba3248b0 docs(ship-feature): plan revision 2 after the three-lens challenge (per-language injection, fail-closed probe, scoped exposure rules) 2026-10-18 23:51:57 +02:00
bchanot fa20562cac docs(ship-feature): spec and plan for the a11y split, injection and exposure domains 2026-10-18 22:59:12 +02:00
bchanot bee377af1a Merge feature/secure-by-default into develop 2026-10-18 19:13:55 +02:00
bchanot abe2ca3b60 chore(memory): BDR-121 guardrails fix loop 2026-10-18 19:13:42 +02:00
bchanot 794e720658 chore(memory): guardrails fix loop, TODO T10-T14, journal 2026-10-18 19:04:14 +02:00
bchanot 73c25d759e feat(guardrails): propose, apply accepted fixes, re-pass to prove them
After the report the skill proposes fixes (plan phase), stops for the
user's acceptance, applies accepted ones via bugfixer and the
verify-secure gates, then re-scans. scan.py gains --assert-absent
(contract oracle, positive control) and --baseline (no new hit).
2026-10-18 19:04:13 +02:00
bchanot b17de15c22 chore(memory): guardrails live probe, TODO T9, journal 2026-10-18 18:49:51 +02:00
bchanot f0bcbfef46 feat(guardrails): read-only live probe to confirm a hole from outside
probe.py observes a running target the user owns and names, driven by a
plan built from the static findings. Five probes: anon-read, cross-user,
no-auth route, CORS reflection, capped rate-limit burst. GET/HEAD/OPTIONS
only, --authorized gate, secrets from the environment, same-host redirect
only, bounded request budget. SKILL STEP 5, checks.md reference, docs.
Suite guardrails-probe.test.sh (16 checks) against a localhost fixture.
2026-10-18 18:49:51 +02:00
bchanot dbf409f6e6 chore(memory): BDR-120 guardrails, TODO T1-T8, journal 2026-10-18 18:10:21 +02:00
bchanot 558c49e1a1 feat(guardrails): secure-by-default rule and /guardrails scanner
Always-on rules/secure-by-default.md: hosting, a11y, Supabase RLS,
SMS/email consent, cloud functions, API hygiene incl. password storage.
Stdlib scanner (FAIL/WARN/MANUAL) + skill, 89-check suite, auditor
gate wiring, profiles, routing row (plus Explore rows confirmed
through the router dialog).
2026-10-18 18:10:20 +02:00
bchanot c5fad5ee8f Merge feature/explain-diff into develop 2026-10-17 18:24:27 +02:00
bchanot e21cd23bf5 chore(memory): explain-diff iteration 1 — TODO, journal 2026-10-17 13:12:55 +02:00
bchanot faedb98699 fix(explain-diff): arrow class no longer collides with edge callout; bundle fill_template.py
Eval iteration 1: the callout 'edge' variant picked up the diagram connector styles, and all three skill runs hand-wrote a template filler. fill_template.py takes values.json with @fragment files, escapes </ in the quiz; suite 21 checks.
2026-10-17 13:10:37 +02:00
bchanot b353fac2ba feat(explain-diff): explain a diff as one self-contained HTML page
Adapted from Geoffrey Litt's explain-diff gist: background, intuition, grouped code walkthrough, 5-question quiz, saved outside the repo. Bundled template, components catalog and checker with its test suite. Row reflect; profiles full, max, dev.
2026-10-17 13:05:01 +02:00
bchanot 6f0deb489d Merge bugfix/router-probe-session-model into develop 2026-10-16 19:11:06 +02:00
bchanot 0da0617ea8 docs(model-router): probe covers the kept session model 2026-10-16 19:11:05 +02:00
bchanot b1287097fb chore(memory): BLK-031 router probe skipped kept session model 2026-10-16 19:10:46 +02:00
bchanot eb6a45b1a6 chore(memory): router probe session-model fix — contract, journal, TODO residual closed 2026-10-16 19:07:09 +02:00
bchanot c11cd3b53b fix(model-router): probe the kept session model, not only a move target
A session on Fable without credits kept Fable unprobed and lost its first turn, and each hold lapse, to the 429. The probe now covers the model the decision lands on, moved or kept.
2026-10-16 19:06:43 +02:00
bchanot a8eb3f2e90 Merge chore/router-confirmed-rows into develop 2026-10-16 18:36:54 +02:00
bchanot f8665b292b chore(model-router): routing.json — confirm 7 agent rows, reflect/plan/apply phases, gitflow + ship-feature skills 2026-10-16 18:36:36 +02:00
bchanot 28993c15e0 Merge chore/impeccable-build-path into develop 2026-10-16 18:20:05 +02:00
bchanot f08efa3b9a chore(design): impeccable is the Build path, gate blocks on it instead of frontend-design
GATE-BLOCK swaps frontend-design for impeccable; Build line, gate prose, advisor rows follow. Detector rule count 45 to 61. BDR-119.
2026-10-16 18:19:29 +02:00
bchanot 218fc86494 Merge feature/short-commit-messages into develop 2026-10-16 11:49:28 +02:00
bchanot e91dcb3f12 feat(commits): follow project convention, else short messages
New lib/commit-message.md looks for a documented convention first. Without one, messages stay under 50 words at medium technical level.
2026-10-16 11:49:26 +02:00
bchanot eb1cfe55a9 Merge branch 'develop' of ssh://git.bchanot.fr:49222/bchanot/claude into develop 2026-10-15 00:12:57 +02:00
bchanot 84e3511b30 Merge bugfix/router-probe-before-route into develop 2026-10-15 00:12:23 +02:00
bchanot 304270fe5b chore(memory): BLK-030, LRN-218, TODO + journal, router-probe-before-route contract + plan 2026-10-15 00:12:18 +02:00
bchanot da0b4a65ba docs: model-router move-target probe, probe key, stand-in effort — bugfix router-probe-before-route 2026-10-15 00:12:10 +02:00
bchanot 2cccc43d37 fix(model-router): probe a move target before routing main to it
The breaker learned availability only from a failed request: with
Fable out of usage credits, every new session and every hold lapse
routed main to Fable and lost the turn to a 429
(model_requires_usage_credits, typed rate_limit).

decideFor now probes the model a decision moves main to, once per
session, with a 1-call $.model.complete raced against 8 s: a timeout
or rejection marks it down (reason "probe") and re-decides once. The
current model and held ids are never probed; `probe: false` in
~/.claude/model-router.json turns it off. When a model ranked below
its tier head stands in where the head would have run, the phase's
own effort goes one notch up (reflect xhigh, plan max on Opus).
2026-10-15 00:07:10 +02:00
bchanot dc6507dc86 Merge chore/self-explanatory-code into develop 2026-10-14 12:51:40 +02:00
bchanot 3065f08328 chore(rules): self-explanatory code, literal-scope guideline 2026-10-14 12:51:39 +02:00
bchanot fce24644b4 Merge feature/router-downgrade-cap into develop 2026-10-13 21:59:39 +02:00
bchanot aaeb125490 docs: model-router general-purpose pin, prompt estimate, engine cache TTL — feat router-cap-residuals 2026-10-13 21:37:52 +02:00