medium-ref at the year populous medium reaches 1,000, all remade on mainStatus: done (2026-11-08)
Priority: 1
Size: M
Arch: yardstick
Phase: implement
Design ref: none (measurement). docs/roadmap.md, sections 5.2 and 6 (late fixtures); Kim’s decision of 7 November 2026 (QUESTION_ARCHIVE.md): the late reference is the year populous medium reaches 1,000 living; Kim’s answers of 8 November (QUESTION_ARCHIVE.md, “VB-202”): medium-y60 dropped, the fixtures stored as release assets and remade by a nightly workflow (VB-223).
Goal: The late reference was populous medium at year 60, chosen on 3 November as “about 1,000 living”. The fixture holds 2,492 living (VB-193): populous medium grows about 1.9% a year, and no balance loop holds it yet. Every budget line since 5 November has been judged against a state 2.5 times the decided size. Kim, 7 November: the reference becomes the year populous medium reaches 1,000 living. Balance work goes on, so that year will move, and the fixture must follow it. The fixtures are also stale: all four were made at 4df5766 (5 November), the golden file has changed three times since (VB-159, VB-198, VB-174), nothing has remade them, and docs/bench/history.jsonl holds a single run.
Acceptance criteria:
tools/fixtures.js knows a fixture medium-ref: populous medium at seed 7, advanced a year at a time and saved at the first new year with at least 1,000 living. It stops at year 60 at the latest; if it never gets there, the stamp and the PR say so. The stamp records the year it stopped at, beside the fields it has today.medium-y60 leaves the fixture set, the bench and the budget table (Kim, 8 November, replacing the stress role of 7 November); the tools that named it take medium-ref instead.tools/bench.js measures medium-y5 and medium-ref as the budget’s two references, with the lines decided on 7 November as numbers in its budget column (Kim, 8 November): 200 ms a game day at medium-ref, 60 ms steps, save and load 0.5 s each. The header of budget.md names each fixture’s year and living.small-y5, small-y40, medium-y5, medium-ref) remade at this branch’s head, their golden hashes current. The bench run on them, its line appended to docs/bench/history.jsonl, and docs/bench/budget.md regenerated. Publishing waits for VB-223 (Kim, 8 November: release assets, not the orphan branch).AGENTS.md (Commands, Fixtures) says which fixtures there are, and until VB-223 lands, that the worker’s nightly remakes them.tests/history.js, tests/bench.js and tests/fixture-tools.js updated for the new fixture; npm run verify passes.
Cost: medium-ref takes about 3 minutes to make; dropping medium-y60 saves 59 minutes a remake and about 24 MB (gzipped) a publish.
Notes:7 Nov 2026 (review of the work since 3 November): written. Populous medium at seed 7 from seeding, on 6eaa6bc (node tools/sim.js --scenario populous --seed 7 --map medium --years 16, 2 min 37 s, Node 22, 4-core Xeon at 2.1 GHz):
| Year | 1 | 5 | 12 | 13 | 14 | 16 |
|---|---|---|---|---|---|---|
| Living at the year’s end | 807 | 871 | 982 | 1,005 | 1,023 | 1,063 |
| ms a game day (whole year, round and meetings included) | 131 | 229 | 237 | 256 | 276 |
So medium-ref is the start of year 14 today. The cost per living pawn-day rises from 0.16 ms in year 1 to 0.23 in year 12 and 0.26 in year 16.
medium-ref.QUESTION_ARCHIVE.md, “VB-202”). medium-y60 is dropped altogether; the decided budget lines go into the bench now; storage as release assets and the nightly remake move to a new task, VB-223, so this task remakes the four fixtures locally and publishes nothing.npm run nightly (VB-193) remakes every stale fixture and publishes them, but only the scheduled nightly task ran it, and that task has been disabled since 2 November (docs/review-agent-workflow.md, section 5). The sessions that changed the golden file were interactive; “Taking a task” in AGENTS.md never asks for a remake, and the tests load a stale fixture with only a notice, so nothing failed. VB-223 makes the remake a nightly GitHub workflow; until then AGENTS.md names the worker’s wrap-up.tests/lib/fixtures.js defines medium-ref as {cols: 280, rows: 200, living: 1000, maxYear: 60} and drops medium-y60; a stamp of a fixture by population carries year, target and reached, checked against each other, and loadFixture checks the time against the stamp’s year. tools/fixtures.js advances a year at a time (advanceYears, tested with a stand-in Sim) and says NOT REACHED if year 60 comes first. fetch keeps the local saves, with a notice, when the remote set lacks a current fixture, as when offline: until VB-223 publishes the new set, a fresh clone skips the fixture checks instead of failing. tools/bench.js measures medium-y5 and medium-ref, its budget column the lines of 7 November as numbers, the header naming each fixture’s year and living; the ratio to medium-y5 is reported only. tools/route-bench.js, tools/moving-bench.js and tools/moving-profile.js default to medium-ref. tests/history.js needed no change: it reads small-y5 and small-y40, the pair of the history line.The four fixtures, made at 75c34ec in 2.9 minutes on four lanes (Node 22, 4-core Xeon), all fresh; no simulation change since:
| Fixture | Year | Living | Pawn records | Events | Minutes | JSON, MB | Gzip, MB |
|---|---|---|---|---|---|---|---|
small-y5 |
5 | 396 | 431 | 13,663 | 0.34 | 11.3 | 1.91 |
small-y40 |
40 | 695 | 1,257 | 104,874 | 2.93 | 36.2 | 6.12 |
medium-y5 |
5 | 873 | 977 | 32,860 | 0.72 | 26.9 | 4.74 |
medium-ref |
12 (reached) | 1,026 | 1,275 | 70,125 | 1.79 | 37.8 | 6.64 |
medium-ref is the end of year 12 at main today, against year 13 on 6eaa6bc (7 November): the work since (VB-217, VB-222) moved it a year earlier.
dfca4fd (docs/bench/budget.md; the second line of docs/bench/history.jsonl), against Kim’s lines at medium-ref: 218 ms a game day (line 200, 9% over); the longest 6-minute step 86 ms (60, over); the moving round 57 ms and the meetings 38 ms (60, within); save 1,623 ms (500, 3.2 times over); load 471 ms (500, within); 7.1 MB gzipped (10, within). At medium-y5: 180 ms, 81 ms, 43, 30, 1,229 and 380 ms. Cost per living pawn-day 0.212 ms at medium-ref against 0.204 at medium-y5 (1.04). VB-203 writes the closure table from these.tests/history.js found heir-ranking work 1.66 times (limit 1.25, recorded 1.35) at small-y40 against small-y5; the stale fixtures had hidden it. Kim chose to fix it first: VB-224, in this branch. With it, npm run verify passes.