- 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>
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>