Skip to content

Instruction audit, part 1: root and nested CLAUDE.md to a standard and a word budget; compact guidance shortened - #641

Merged
SSFSKIM merged 7 commits into
mainfrom
lean-claudemd
Nov 28, 2026
Merged

SSFSKIM merged 7 commits into
mainfrom
lean-claudemd

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 28, 2026

Copy link
Copy Markdown
Owner

First branch of the harness instruction rewrite (audit of 2026-11-27, findings area doperpowers-hooks-claudemd).

  • Root CLAUDE.md: 2,111 → 1,390 words. Repo map rows back to a sentence or two; the upstream cherry-pick procedure moved to docs/upstream-sync.md (the never-merge rule and its reason stay); "Skill Changes Require Evaluation" restated as testing by stakes (the owner's ruling, 2026-11-28); the board section keeps the dormancy as a fact and drops the mandated route; "Testing & validation" made true (gates run through ci-kit).
  • The rule that grew the nested files is replaced. "A feature's detail goes in the nested CLAUDE.md nearest its code" becomes the standard: a CLAUDE.md holds what a session needs before reading the code and cannot get from it.
  • claudemd-budget gate: scripts/check-claudemd-budget.py fails a tracked CLAUDE.md over 1,500 words. Four files carry a dated allowance at their current counts until their own branches land (sminos/ ×3, to-human/).
  • Nested files: hooks/mods/CLAUDE.md 2,265 → 444 (the README stays the manual), hooks/, archive/, tests/ trimmed.
  • Compact server instructions (hooks/mods/compact.tsx, read by every session and subagent): 364 → 272 words, every evidenced sentence's content kept; tests/mods/compact.test.ts pins moved with the text.
  • doperpowers 7.226.0.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)

… kept

Every loop reads this text, subagents included, so its length is paid
everywhere. Every evidenced sentence keeps its content: what the tool is
and where it works, the work deciding over size, the tested "nothing
needs saving beforehand" wording (605-call census and the Opus 5.5 /
Fable 5.2 wording test), the cost reasons (ae84851), tokens not percent
(ef55e89), the thresholds with the backstop line (7.136.2), when the
size is told, and not during a design discussion or while something is
pending. "Above 450k: the same" folds into one band from 300k; the
ban-worded "never as a percentage" keeps its reason.

The README gains the rejected $.turn.abort variant, whose only copy was
hooks/mods/CLAUDE.md.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…EADME

hooks/mods/CLAUDE.md (2,265 words to 444) restated hooks/mods/README.md,
the mods' manual, mod by mod; it keeps a map, the engine traps a session
needs before it edits a mod, and the tests. The one fact it alone held,
the rejected $.turn.abort variant, moved to the README in the commit
before. hooks/CLAUDE.md (346 to 221) drops the torn-out bootstrap's
history and the summary census, which its commit message holds.
tests/CLAUDE.md (119 to 111) loses the orphaned harnesses that no longer
exist and points at ci-kit.yml for what CI runs. archive/CLAUDE.md
(245 to 165) becomes a list without the version history.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
- "Skill Changes Require Evaluation" becomes "Changing agent-facing
  text", test-by-stakes as the owner ruled on 2026-11-28; its duplicate in
  the conventions goes.
- The upstream procedure moves to docs/upstream-sync.md; the never-merge
  rule and its reason stay.
- The board keeps the dormancy ruling as a fact; the mandated route and
  the note on a future design go, and a ticket changes nothing about how
  work is designed, built or reviewed. The qa-loop note is archive/'s.
- Repo map rows back to a sentence or two. The agent rulings (pins, the
  executors' escalation, disallowedTools, the reviewers' Agent/Skill block)
  and the prependPlugins hook order move to Working conventions, since
  agents/ can hold no CLAUDE.md and both bind work anywhere; model values,
  incident counts and version history are the definitions', the specs'
  and git's. Rows for infra/, devenv/ and teaching/ added.
- Testing & validation says what is true: ci-kit's gates run on Actions,
  live-model tests by hand, and the eval harness is present only once
  cloned.
- The conventions state the CLAUDE.md standard in place of the rule that
  sent each feature's detail to the nearest nested file, with the
  1,500-word budget and its gate.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
…ords

scripts/check-claudemd-budget.py fails on a tracked CLAUDE.md over the
owner's proposed budget, naming the file, its count and where its detail
belongs instead. The four files still over budget on this branch
(sminos/hooks/mods, sminos/skills/manager/scripts,
sminos/skills/sminos/scripts, to-human), which other branches of the
rewrite bring under, carry a 2026-11-28 allowance at their current count,
so they cannot grow meanwhile; the check notes an allowance its file no
longer needs. Wired in .github/ci-kit.yml as the claudemd-budget gate.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
The output-styles row said 5 and 7 were MAWS's own; 6 is the message-tool
shape and 7 MAWS's own, as the row said before the rewrite.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T03:03:43.469600Z 5baadc9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…d, CI coverage stated correctly

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
@SSFSKIM
SSFSKIM enabled auto-merge November 28, 2026 03:08
…p list; allowances for what main grew

main added the task plugin (its CLAUDE.md is 1,628 words) and 1,058 words to
sminos's scripts CLAUDE.md while this branch was open. Both get a dated
allowance at their current counts until their owners bring them under budget.

Sminos-Session: agent-instruction-leanness-audit#4af78b4b (doperpowers on macbook)
@SSFSKIM
SSFSKIM disabled auto-merge November 28, 2026 03:40
@SSFSKIM
SSFSKIM enabled auto-merge November 28, 2026 03:40
@SSFSKIM
SSFSKIM merged commit e68f675 into main Nov 28, 2026
29 checks passed
@SSFSKIM
SSFSKIM deleted the lean-claudemd branch November 28, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant