Status: done (2026-11-19)
Priority: 3
Size: S
Arch: life
Phase: implement
Design ref: Commands, time steps and views (Saving: revised 7 Nov by Kim: “build now, round later”); Performance budget (save and load under 0.5 s each at medium-ref).
Goal: Autosave at each moving round was decided on 30 October, but a save took 1.09 s at medium-y5 on 5 November, so each round would freeze the page for over a second. Kim chose on 7 November to build saves first (VB-214) and to autosave at the round once a save is under budget. VB-199 (bounded history) and VB-204 (ledgers folded) aim at that budget, on VB-202’s medium-ref.
Acceptance criteria:
medium-ref measured in Chromium (VB-214’s stages), target under 0.5 s, residual reported. (VB-226 measured encode + stringify at 133 + 145 = 278 ms, backlog/VB-226.md, Validation: the gate is met; measure again at the commit built on.) If it is out, report the numbers here, leave this box unticked, and raise it in QUESTIONS.md with the options (a worker from a structured clone, cost section 1.5; or the round spread so the save falls on a quiet step).roundPhase, src/sim/clock.js; VB-277 will spread it a village a step), into the archipelago’s auto slot (src/page/saves.js: one auto slot, written today when the page is hidden, and three by hand); the step that carries the save is reported against the 60 ms step target plus the save’s time, with its residual.node tools/same.js --base REF prints same.
Notes:medium-ref in Chromium); the save goes to the auto slot, and after the round’s last phase, since the round has run in phases since VB-201.autosaveRound(before) in src/page/saves.js, called at the end of advanceSimulation: the run crossing the end of the round’s last step (autumn sday ASK.day+passes-1, 12:00 + ROUND_STEPS ticks) writes auto; a skip, the demo and a save in flight do not.medium-ref, with the step carrying the save against 60 ms plus the save’s time. Criterion 1 left unticked for that reason. tools/same.js not run: page-only change, no src/sim edit.