Repository navigation
Conversation
CLAUDE.md had grown from 9,570 B in early October to 12,236 B, and every agent session loads it whole. Most of it restated package.json, the tree, or rules a contract test, lint or hook already enforces. A blinded ablation on 2026-12-04 ran 3 Opus sessions per condition on two reverted fixes (#2002, #2006), on history-free snapshots that differed only in the text: the full file plus the conflict-triage skill, a 5.3 KB domain-only cut, and a 301 B stub. Summed medians were 18, 18 and 19 of 20, so under the pre-registered rule (a larger set must win by 2) neither extra layer earned its place. On #2006, 6 of 6 runs with the longer text appended a gotcha, and none made a missing readOnlyHint a compile error; 2 of 3 stub runs did. What stays is the judgment no check holds, one line each. The two checks that read CLAUDE.md as data (the prerequisite census and the Workers issue routine) now read docs/MAINTENANCE.md, the runbook they meant. A byte budget keeps the file from regrowing: it fails on the old 12,236 B file and passes on the new 1,490 B one.
Wire-size diff vs merge base
Brotli q11, the quality the edge serves. Every number here is deterministic: Client assetsNo change. 42 files, 203.00 KiB Brotli total. PagesNo change. 74 files, 902.00 KiB Brotli total. Worker bundleNo change. 318.71 KiB gzip. Dictionary transportFamily dictionary acquisition: no change, 16.24 KiB q11.
Head tags vs merge baseNo change. 74 documents, every title, description, canonical, robots, |
First paint, layout shift and first byte vs merge baseNo page serves a different document, so no changed page was read. Pages that serve the same document3 sampled page(s) with identical bytes on both sides read flat, alone and pooled.
How a change is called moved, and the controls (230 s)Each change is the median of HEAD minus base over the 9 pairs. It is moved when a sign test puts the split under p 0.05 and the median is at least 16 ms of FCP, 0.005 of CLS or 5 ms of TTFB (tools/lib/paint-diff.ts). TTFB is how long the Worker takes to send a document's headers, timed from Node before each load, since Chrome's emulated latency hides anything under it. Advisory: nothing here fails the PR. The same-document pages are a slice of the unchanged ones, turned by the HEAD commit so each push reads different ones. Identical bytes make them a placebo: a move there is the runner or the serving path, never the document. Controls on
|
CLAUDE.md said new photos come from ~/Downloads/to post (from ssd)/ and nowhere else, and nothing checked it: `bun run photos` would encode and upload a file from anywhere on disk. photoInputs takes a sourceRoot and refuses any resolved file, companion JPEGs included, whose path relative to it climbs out. It compares with path.relative because a prefix test lets a sibling like source-old pass, and a control plants that prefix test. Remote ingest re-renders what R2 already holds from a download folder, so only local ingest is held to it. PHOTO_SOURCE_DIR overrides the folder for the fixtures, the way their other tool paths are injected. The folder's path now lives in one constant; three probes that spelled it out import it. The CLAUDE.md line goes, since the check holds the rule.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
aadhar-sh | 185aef3 | Commit Preview URL Branch Preview URL |
Dec 04 2026, 10:39 PM |
What changed
CLAUDE.md drops from 12,236 B to 1,399 B. It keeps the identity line, the gate, and 5 judgment calls no check holds (multi-agent tree hygiene, the Luna look, canary pins on purpose, agent surfaces for readers who show up, the owner's calls). Layout, Commands, Release path, Invariants, Observability and the reading list are gone: each either restated the tree or
package.json, or named a rule a contract test, lint or hook already enforces.Two checks read CLAUDE.md as data. The prerequisite census (
tools/check-tools.ts) and the Workers issue routine test now readdocs/MAINTENANCE.md, which gains the one sentence namingexif-soocandcjpeg. A new contract test holds CLAUDE.md to 2,048 B and pins theAGENTS.mdsymlink.One rule that was only prose is now a check.
bun run photoswould encode and upload a file from anywhere on disk; local ingest now refuses any photo (companion JPEGs included) outside the source folder, throughphotoInputsintools/photos/photo-inputs.ts. Remote ingest re-renders from a download folder and stays exempt. The folder path lives in one constant that three probes now import.Why
Every agent session loads CLAUDE.md whole, and it had crept from 9,570 B (early October, after the gotchas moved out) back to 12,236 B. I ran a blinded ablation on 2026-12-04 to see what the text bought.
Two reverted fixes, #2002 (SSRF floor refusing
fdic.gov) and #2006 (MCP tools defaulting to read-only), each ran 3 times per condition with Opus on history-free snapshots that differed only in one commit of text: A, the full file plus the conflict-triage skill; B, a 5.3 KB domain-only cut; C, a 301 B stub. Summed medians were 18, 18 and 19 of 20. The pre-registered rule needed a larger set to win by 2, so neither extra layer stayed.The longer text did change behavior, just not the score. On #2006, 6 of 6 A and B runs appended a gotcha and 3 of 3 A runs added a control, which the merged fix did neither of. 0 of those 6 made a missing
readOnlyHinta compile error; 2 of 3 C runs did.Understanding check
validateuntil the budget is raised in the same diff.contract-photo-pipeline-failuresfailed until its tool list moved to MAINTENANCE.md, so the census now reads the runbook. The source-folder tests fail with the guard removed (2 tests), and a control intools/lib/controls/photo-source-check-reads-a-prefix.tsplants astartsWithprefix check, which lets a siblingsource-oldfolder through;bun run controlsreports it CAUGHT.Validation
bun run check:fastpasses on the branch head (2,065 tests, 0 fail).pages:checkandderive:checkare clean. The pre-registration, transcripts, diffs, scores and judge output stay outside the repo; happy to fold the harness in as abun runcommand in a separate PR.Ablation scores, 18 runs: A 18, B 18, C 19 (summed medians of 20)
Each run scored out of 10: the merged PR's hidden test (3), stress probes (2), typecheck, lint, format and the suite against the same condition's baseline (2), a red-green check on the run's own test (1), and a blinded judge (2). Grader controls: an unchanged base scores 2.5 and 4.5 of the 8 automated points, the merged fixes 8 of 8. No run touched git history past the base,
ghor the web. The skill was invoked in 0 of 18 runs, since neither task makes a merge conflict.