docs: slim CLAUDE.md below 30k characters, move details to docs/ #68

Merged
maximus merged 2 commits from issue-67-slim-claude-md into main 2026-10-21 01:05:00 +00:00

2 commits

Author SHA1 Message Date
le king fu
01ed243003 docs: apply the four review suggestions on PR #68 (#67)
All checks were successful
CI / verification (pull_request) Successful in 34s
CI / verification (push) Successful in 35s
- CLAUDE.md Config lists HEALTH_TOKEN, which the README now points to.
- CLAUDE.md says three 404 (not 401) tests, as auth.test.js has.
- REVIEW.md cites docs/endpoints.md "Tokens" for the isolation rule.
- README lists /claude-usage/history next to the other Claude usage routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 21:02:43 -04:00
le king fu
9fd43c0d5a docs: slim CLAUDE.md below 30k characters, move details to docs/ (#67)
All checks were successful
CI / verification (pull_request) Successful in 37s
CLAUDE.md went from 50 987 to about 16 100 characters, under Claude Code's
40 000-character warning. The detail moves to three docs that are not
imported, so they cost no context at session start:

- docs/endpoints.md: the full contract of every route, merged with the
  README examples (body shapes, JSON samples, curl), plus the write
  mechanics that were in Gotchas (write surfaces, atomic writes,
  whitelist rebuild, body cap).
- docs/mounts.md: the Coolify mounts, the two protection layers, the
  three-view check and the mount modification procedure.
- docs/tests.md: the per-file test detail and the two CI scripts, minus
  the case counters, which npm test reports and which went stale with
  every PR (Max's choice of 2026-10-20).

Text moved by script, word for word. A line-by-line check finds every
removed line in docs/, apart from the counters and one fix: POST /hosts
is the first of three write surfaces, not two.

CLAUDE.md keeps "Routage et auth", Deploy and the config variables as
they were, one line per route, a short mounts table, the three test
guards and every gotcha in a line or two.

README.md drops its stale per-route, config and mounts detail, which
lacked /claude-usage/history and files[], and links to docs/ instead.
REVIEW.md now cites the file that holds each rule. docs/** joins
NEVER_LOW in review-levels.py and the never-low list of REVIEW.md, since
it now carries the route contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:30:39 -04:00