roadmap BUILT

118. CLAUDE.md has a budget, and the rules that get violated move up the ladder

Minted 2026-08-05 by calef, who noticed the file had gotten huge and asked what that costs. Re-checked against the tree on 2026-10-03 (UTC): the audit (#309), the cut and the split are done. AGENTS.md fell from 942 to 573 lines (calef's seven cuts of 2026-09-25, #1189's split into imperatives plus appendices): the reasons moved to design/tenets/, the procedures to briefs/, and §212 (a prose budget) caps that core. All four budget rules have a mechanism; ## Follow-on names each.

The size measurement is no longer hand-entered. Until 2026-08-22 it was wc -lwc AGENTS.md, run by nobody, which was the milestone's own budget argument for itself: this block carried three different sizes in thirteen days, each hand-entered by whoever last looked. script/lint derived it from then until 2026-10-06; see "The size gate and the ledger, 2026-08-22".

This block is the summary. The working moved on 2026-10-12 (UTC) to 0118-constitution-budget/ under §212 (a prose budget):

What it costs, measured 2026-08-05

738 lines, 8,306 words, roughly 11,000 tokens, loaded into every session and into every lane brief, because every brief says "read CLAUDE.md first, in full". About a dozen lanes ran on 2026-08-04 alone.

Re-measured 2026-08-17: 868 lines, 10,001 words (wc -lw AGENTS.md), so it has grown another 130 lines and 1,695 words in the twelve days this milestone has been open. The premise got stronger, not weaker, which is the argument for the budget rather than against it. The 2026-08-05 figures above are left as the measurement calef acted on.

It grew 336 lines in one day, across 11 commits. Two sections are 46% of it: the roles section at 224 lines and the naming section at 118.

And the cost that matters is not tokens. CLAUDE.md warns against pkill-ing QEMU and against git reset --hard to take a measurement, once each. In one day one lane killed another lane's emulator mid-test with pkill -f, and four agents clobbered work with reset --hard, checkout or stash. Every one of them had been told to read the file in full.

So the warnings are present and were skipped. Length is already costing compliance, which is a measurement rather than an aesthetic complaint.

The diagnosis: not too long, wrongly stratified

Everything loads at once with equal weight, so "never pkill QEMU" competes for attention with the snake_case conventions table. A reader skimming it cannot tell which three rules will bite them this hour, and there are 130 more lines of it than when that was written.

The reasoning is why the rules stick. "The sed that rewrote the very row recording that the name had been refused" is what makes that rule memorable, and compressing it to a bullet would produce a style guide nobody obeys. So this milestone stratifies rather than compresses, and a lane that finds itself deleting arguments has taken the wrong turn.

There is also an uncomfortable connection to the third principle: a stranger's first encounter with this project is a document of this length addressed to an agent. Milestone 117 (the stranger test) found that independently, in both of its runs.

The audit, 2026-08-18

calef asked for the count: the rules, how many have a mechanism behind them, and the rest as the budget. The file then held 868 lines, 10,001 words, 16 sections and roughly 33 rules. script/lint alone ran 32 named checks, and six other gate scripts ran more. So the file is not mostly unmechanised prose, which is not what "the file has gotten huge" implies.

The audit sorted the rules three ways (audit.md has each):

Everything else unmechanised is judgment and stays prose. calef, the same day: prefer gates over prose in this file, but a gate is only better when it can be right about the tree, so record what it measured when you built it.

The applicable cut, 2026-08-18

A second lane checked each of the eight claims by reading the gate's body, and four of the eight did not survive. A banner in script/lint names a check's subject, not its coverage. applicable-cut.md has the line-by-line working.

The verified cut is about 1.7% of the file, against the audit's estimate of a tenth. So the growth problem is real and the duplication problem is mostly not. The budget and the split are where the value is, and this lane and #309 have covered the re-audit ground.

Three pieces

The plan as written, with its reasoning, is in plan.md.

The size gate and the ledger, 2026-08-22

A third lane built both, and neither could be a mechanical extension of the earlier work. The split that would produce a "core" had not happened, and neither the cut nor the budget rules bear on what a size gate or a ledger need.

The size gate

script/lint gained an agents-md-lines ceiling, built on the count-at-most relation of milestone 134 (the register of measures). It sat at the tree's exact value with zero headroom, so every line added had to replace one removed or be a raise with its reason written in this block. It moved from 942 up to 1048 by 2026-09-05. Milestone 262 (the naming rule is written twice) lowered it to 988, and it peaked again at 1009. After §155 (the naming conventions move out of the constitution) it fell to 922. It then rose to 949 and was lowered to 935, and #1189's split took it to 584 on 2026-09-24. That day it became a ratchet that also fails when the file shrinks, and calef's seven cuts took it to 573 on 2026-09-25. On 2026-10-06 (UTC) calef dropped it: "drop 118's limit and rely on §212's cap". One budget in one unit, because words track context cost and lines track wrapping. size-gate.md and size-gate-september.md record every move and its reason.

The violation ledger

notes/rule-violations.md and script/rule-violations (both provisional names). One row per incident, with an instances count per row. A source that reports an aggregate without naming individual incidents gets one row with that count, honestly, rather than invented distinct rows. A status keeps a row from re-triggering once a rule has already been addressed. --check fails when an open rule reaches three strikes.

It was seeded from the incidents this milestone and AGENTS.md already recorded against themselves, not invented for the occasion. They are the squash-against-origin/main scar (AGENTS.md, "Commits"), and the pkill/mid-test-emulator incident and the reset---hard/checkout/stash clobbers that "What it costs, measured 2026-08-05" quotes. The git-clobber rule crossed the threshold at four open strikes, one past three, exactly the finding this ledger exists to surface. DECISIONS §128 (what enforces the git-clobber rule) priced the real enforcement options. calef's own call, on the evidence of zero repeats in the three weeks since, was to accept rather than add a mechanism: the existing AGENTS.md prose already appears to be doing the job. The ledger row is marked resolved on that basis. See notes/rule-violations.md, including its own honest limits (self-reporting only, exact-text matching, not wired into any mandatory gate).

Deliberately not wired into script/lint or CI. The git-clobber rule's threshold was already crossed by history this lane did not create. Wiring --check into the mandatory suite would fail every lane's pull request over a decision that is not a lane's to make, the same restraint DECISIONS §61 (a lint is adopted on evidence) already states for an ordinary lint. Whether and when to wire it in is left as an open question in the note rather than answered here.

What was left on 2026-08-22

The split was then the only untouched piece. It requires editing AGENTS.md, so no developer lane could start it; it waited on calef or the integrator, as the proposed cut and the ceiling raises did. It has since been done (## Follow-on).

Scope note

Not a rewrite, and not a trim. No argument in that file is deleted; the reasoning is the asset. Text moves, and only the rules that need to change rung change form.

The budget number is provisional and belongs to whoever builds this, informed by what the core actually needs rather than chosen first and filled to.

The honest limit: a size gate measures the wrong thing on purpose. It cannot tell a rule that earns its lines from one that does not, and a lane that games it by moving text into a linked file nobody reads has satisfied the gate and defeated the milestone. The ledger is the counterweight and it is weaker than a gate, because it depends on lanes continuing to report their own mistakes honestly, which is a culture rather than a mechanism. Say so where the reader meets it.

Follow-on

Index row

AGENTS.md (942 lines today) warns against pkill and git reset --hard once each, and both had already been violated when that was written. One lane killed another's emulator mid-test, and four agents clobbered work with a destructive git operation in one day. All had been told to read it in full. Audited (#309), and the cut and the split applied (the file is 573 lines, 2026-09-25). A size gate (script/lint's agents-md-lines ceiling) plus a violation ledger were built (2026-08-22). The ledger's first run found the git-clobber rule already four strikes over the three-strike threshold, a decision for calef or the integrator. Budget rules 2 (pruning at merge) and 3 (never rewrite a pushed commit, never git stash) are mechanized by an hourly worktree prune, a ref that blocks git stash and a pre-push refusal.