docs(claude-md): relocate the narrative to documentation/agent-notes.md - #34
Merged
Conversation
CLAUDE.md was 51,276 bytes and is always-read by every worker that enters this repo. The per-incident write-ups, the shipped-phase histories and the long rationales move to documentation/agent-notes.md verbatim, under headings that name where they came from. Nothing is deleted. What stays in CLAUDE.md is the cursor, the rules, and every trap, each compressed to a one-line imperative with a link to the section that proves it. 51,276 -> 29,451 bytes. Two things recorded rather than silently changed, both in the new file's "Corrections made during the relocation" section: - The Tech Stack runtime-deps bullet was pre-swap and contradicted Status (it listed @cosyte/fhir and @cosyte/transform as hard vendored deps). It now states the shipped shape, verified against package.json; the stale wording is quoted in agent-notes.md rather than dropped. - The "FIXED at 0.0.3" version literal is not carried across: the registry and package.json both read 0.0.4 on 2026-08-04. The trap itself is live and unchanged and is stated without a number, per ADR 0023. Per the 2026-08-04 amendment to the meta-repo's ADR 0023, which bounds <submodule>/CLAUDE.md and names <repo>/documentation/agent-notes.md as the relocation target. The bound itself is deliberately not quoted anywhere in either file: it is a per-repo ratchet in REPO_CLAUDE in doc-budget.mjs that is lowered as relocations land, and the first number quoted for it went stale within a day. documentation/agent-notes.md is deliberately outside the format:check glob. Prettier renormalises list indentation and would rewrite the archive whose verbatim preservation this slice rests on. Do not add it. Docs only: no published surface changes, so no changeset and no version bump.
NSchatz
force-pushed
the
chore/claude-md-audit
branch
from
August 4, 2026 22:20
fb1c4d7 to
81ea7b9
Compare
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.
CLAUDE.mdwas 51,276 bytes and is always-read by every worker that enters this repo, so its cost is paid per worker before a line of code is read. This relocates the narrative and keeps the rules.Governed by the 2026-08-04 amendment to the meta-repo's ADR 0023, which bounds
<submodule>/CLAUDE.mdand names<repo>/documentation/agent-notes.mdas the relocation target. The bound itself is deliberately not quoted in either file: it is a per-repo ratchet (REPO_CLAUDEindoc-budget.mjs) that is lowered as relocations land, and the first number quoted for it went stale within a day. This repo was never near it anyway; the per-worker token cost is the forcing function.What moved
documentation/agent-notes.md(new, 50,216 B) receives the per-incident write-ups, the shipped-phase histories and the long rationales verbatim, under headings that name where they came from:R100/C100hole, the three unclosed escapes, the vacuity trapsERESOLVE, the static guard, thenpxfaultagent-notes.mdis deliberately outside theformat:checkglob. Prettier renormalises list indentation and would rewrite the archive whose verbatim preservation this slice rests on. The file says so, in itself. Do not add it.What stayed
The cursor (what this package is, its status, its stack), the rules, and every trap, each compressed to a one-line imperative with a link to the section that proves it. Nothing was deleted to hit a number.
51,276 -> 29,451 bytes (-43%).
Checks run
##heading in the original exists in one of the two files. None lost.agent-notes.md.agent-notes.mdunder "Corrections made during the relocation".attwholes, the un-truncated CR-frame hit, the two diagnostics that deliberately do not say "install it", theclibin alias that is deliberately not added, the MCP tools not yet exposed,redactnever being a partial scrub, and archived doc versions reporting atinfo. All carried.format:check,check:no-emdash(11 binary files excluded, the tell still reads 11),check:no-internal-refs: green.Two claims changed rather than moved, both recorded
Status(it listed@cosyte/fhirand@cosyte/transformas hard vendored deps). It now states the shipped shape, verified againstpackage.json; the stale wording is quoted inagent-notes.mdrather than dropped.FIXED at 0.0.3version literal is not carried across: the registry andpackage.jsonboth read0.0.4. The trap itself is live and unchanged and is now stated without a number, per ADR 0023's own reason for deleting the umbrella's version list.@cosyte/fhiris still absent from the manifest becausefhircannot publish, and the manifest was not touched.Gate
gate-refuter, three passes (ADR 0016 cap), all NOT REFUTED. Pass 1 cleared the relocation and raised four minor findings; pass 2 cleared the remedy and raised three more; pass 3 cleared that remedy and found nothing blocking. Every finding was fixed rather than argued away.Docs only: no published surface changes, so no changeset and no version bump.