docs: slim CLAUDE.md and split long-form rationale into .claude - #174
Merged
Merged
Conversation
CLAUDE.md is auto-loaded into every request, so a 12,524-word changelog in it is a tax on every task. It carried a single 21,263-character bullet and a 14,025-character lint-rule catalogue. Split by purpose rather than trimming uniformly: - CLAUDE.md (12,524 -> ~2,600 words) keeps the working reference: layout, the criteria table, evaluation flow, dev commands, the lint rules that constrain routine edits, and the doc-SSOT rules. - .claude/architecture-notes.md (new) takes the long-form design rationale verbatim, under headings. It is git-tracked but not auto-loaded, so the knowledge survives without the per-request cost. The CE rule catalogue is now a pointer: every rule already carries its full rationale in its own module docstring, and a prose copy of a registry with no sensor decays silently -- which is what test_claude_md_names_every_registered_model already exists to catch. Also adds verified documentation links: every one of the 15 criteria table rows deep-links to its section in the Task Definition Guide, plus pointers to the report schema, dataset, dialog-mode, docker-isolation, CI-gate, plugin and per-agent docs. All 52 links and 25 anchors were resolved against the tree, and every anchored heading is punctuation-free so GitHub, Starlight and python-markdown agree. No docs index table was added: CE028 does not scan CLAUDE.md, so a copy here would be an unguarded fourth index. Constraints preserved deliberately: the CE030 model list stays on one physical line (the test is line-based), all six /coder-eval:* skill names, and the "six skills" count phrasing. make lint: 635 passed. make test: 5678 passed, 2 skipped. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015qJBGVKjSeTucaw5h36Pt6
uipreliga
requested review from
CarlesUIPath,
akshaylive,
bai-uipath and
tmatup
as code owners
September 14, 2026 22:39
|
Claude finished @uipreliga's task in 1m 36s —— View job Review in Progress
|
bai-uipath
approved these changes
Sep 14, 2026
`.claude/architecture-notes.md` names SKILL_SOURCE_PATH, but no CE045 glob reached it, so the coverage test failed the build. Add `.claude/**/*.md`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SB97HMVXU1NMpQcDhbYkPz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
CLAUDE.mdis auto-loaded into every request, so a 12,524-word changelog in it is a tax on every task. It carried a single 21,263-character bullet and a 14,025-character lint-rule catalogue.The prose quality was never the problem — the location was.
What
Split by purpose rather than trimming uniformly:
CLAUDE.md(12,524 → ~2,600 words).claude/architecture-notes.md(new)The CE rule catalogue is now a pointer. Every rule already carries its full rationale in its own module docstring, and a prose copy of a registry with no sensor decays silently — which is exactly what
test_claude_md_names_every_registered_modelalready exists to catch.Documentation links
Every one of the 15 criteria table rows now deep-links to its section in the Task Definition Guide, plus pointers to the report schema, dataset, dialog-mode, docker-isolation, CI-gate, plugin and per-agent docs.
stop_early,API Routing & Benchmarking) are deliberately linked at file level.CLAUDE.md, so a copy here would be an unguarded fourth index that decays.Constraints preserved deliberately
/coder-eval:*skill names (SKILL_DOC_SURFACES).setting_sources: []guidance, which a line-by-line diff caught as landing in neither file on the first pass.Verification
make lint— 635 passedmake test— 5,678 passed, 2 skipped (both environmental: needs a realANTHROPIC_API_KEY; Windows-only)Not in this PR
A proposal to replace the Design Principles values (DRY/YAGNI/KISS) with seven checkable "Never ship" rules, three
PreToolUse/Stophooks, and an Opus-in-tests lint rule. Discussed but not applied.🤖 Generated with Claude Code
https://claude.ai/code/session_015qJBGVKjSeTucaw5h36Pt6