docs(state): STATE.md under 60 lines and 20 000 characters, with a vitest guard #530

Merged
maximus merged 3 commits from issue-508-state-md-slim into main 2026-11-05 01:28:25 +00:00

3 commits

Author SHA1 Message Date
le king fu
1ed78d97b4 docs(state): apply review 31439: level checks already proven, BMO trace, page count
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m16s
Two of the three review-level controls listed as due were already proven:
PR #450 and PR #503 touched only .claude/** and ran check-frontend (runs 567
and 641), and PR #503, release SKILL.md only, got « Niveau : normal » in
review 28394. The BMO line now points to the « Ce que change cette PR »
section of PR #489, which lists what to check in the app, and the page count
is 24 (20 at the root of src/pages/, 4 under settings/).

Refs #508

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:17:19 -05:00
le king fu
1709144031 test: guard the caps of STATE.md (lines, decisions, characters)
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m34s
state-sync.sh checks the lines and decisions of a direct commit on main and
never sees a PR, while /autopilot workers add release checks to STATE.md in
their own PRs. The guard mirrors the script's counts (wc -l, decision_count),
adds the 20 000-character cap, pins the unaccented headings that the
mawk-based count needs, and checks each count on its boundary.

Refs #508

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 22:07:24 -05:00
le king fu
ec17f1eda8 docs(state): restructure STATE.md under 60 lines and 20 000 characters
STATE.md is imported by CLAUDE.md and loaded in every session; it had grown
to 214 lines and 67 779 characters. It now holds 50 lines and 9 434
characters: a short position, ten one-line decisions (the four syncs waiting
in comments 29533, 29927, 30933 and 31093 of #508, then the six most recent),
and one line per release check pointing to its trace. The removed history
stays readable with `git show 52eee59:STATE.md`.

Refs #508

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 22:07:24 -05:00