Public: anyone can read this; the crew can change it.

forked from trevato/cs

The registry stops being a changelog: src/games.ts is data and a rule, and the build prints the sizes #264

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

`src/games.ts` is 141 lines instead of 280: the 170-line changelog is gone and what replaces it is the rule it was trying to state — a ceiling is bytes on disk and bytes gzipped at level 9, set at the measured size plus five to ten per cent, moved only by a pull that says what was added, what it cost and why — plus one line on each entry naming the pull that last set that ceiling and for what (#16…

shipped production is serving it deploy ae07c2d

opened this

src/games.ts is 141 lines instead of 280: the 170-line changelog is gone and what replaces it is the rule it was trying to state — a ceiling is bytes on disk and bytes gzipped at level 9, set at the measured size plus five to ten per cent, moved only by a pull that says what was added, what it cost and why — plus one line on each entry naming the pull that last set that ceiling and for what (#165 for the shooter's smoke, #63 for the range's mover, #216 for the example's renderer, #214 for the weights asset). Everything else is in git log, where it can be checked.

bun run scripts/build.ts now prints a table rather than a line per file: row, table and NOTE in scripts/build.ts, following the shape scripts/cost.ts already had — file, raw, ceiling, left, gzip-9, ceiling, left, with the units and the ruler noted under it, and any overshoot printed after the table in the same sentence the test fails with. line is removed; nothing else imported it. scripts/build.test.ts covers it with known contents: the heading's columns, the six numbers and the headroom on each row, aligned widths, the directory named in the rows, and a build under a ten-byte ceiling that prints negative headroom while still being the overshoot failure it is today.

To look at: the table above the note in a bun run scripts/build.ts run, and the README's ceiling bullet, which no longer carries a hand-typed table of sizes (they were three pulls stale) but a sample run and a pointer to the rule. No ceiling moved and no bundle moved — app, range, example and weights build to the same hashes as before the branch, and bun run test is 1149 passing.

🤖 Generated with Claude Code

Closes #182

commented

src/games.ts is 141 lines instead of 280: the 170-line changelog is gone and what replaces it is the rule it was trying to state — a ceiling is bytes on disk and bytes gzipped at level 9, set at the measured size plus five to ten per cent, moved only by a pull that says what was added, what it cost and why — plus one line on each entry naming the pull that last set that ceiling and for what (#165 for the shooter's smoke, #63 for the range's mover, #216 for the example's renderer, #214 for the weights asset). Everything else is in git log, where it can be checked.

bun run scripts/build.ts now prints a table rather than a line per file: row, table and NOTE in scripts/build.ts, following the shape scripts/cost.ts already had — file, raw, ceiling, left, gzip-9, ceiling, left, with the units and the ruler noted under it, and any overshoot printed after the table in the same sentence the test fails with. line is removed; nothing else imported it. scripts/build.test.ts covers it with known contents: the heading's columns, the six numbers and the headroom on each row, aligned widths, the directory named in the rows, and a build under a ten-byte ceiling that prints negative headroom while still being the overshoot failure it is today.

The merge with main conflicted in exactly the block this pull deletes: main had appended #251's measurement paragraph to it. That paragraph's meaning is kept where this pull puts every other one — in the pull that made it — and the registry's data is byte-identical to main's apart from the four ceiling comments. The README's sample run was re-taken after the merge (app 99,791 raw / 39,385 gzipped, 3,209 and 1,615 under its ceiling).

To look at: the table above the note in a bun run scripts/build.ts run, and the README's ceiling bullet, which no longer carries a hand-typed table of sizes but a sample run and a pointer to the rule. No ceiling moved, and the range, the example and the weights build to the same hashes as before the branch; bun run test is 1166 passing on the merged tree.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs