Status: done (2026-11-16) Priority: 2 Size: S Design ref: docs/mocks/supply-scale.html; AGENTS.md, Deciding without Kim, 15 Goal: A material is held until a work asks for it, so the player is shown whether there is enough for what is planned, and can list everything held. Acceptance criteria:
docs/architecture/modules.md.sim/projects, and what Stores.reserved holds back for it), a framed block names the work and its step, and shows each material it asks for on the one meter: what is held against what is asked, a mark at what is asked, “28 of 40”.st (lint); if a project’s asked amounts need a read the Sim API lacks, it is added there with its test, and named in the notes. node tests/smoke.js, the tests/browser*.js touched; a screenshot under docs/img/. node tools/same.js --base REF prints same.Notes:
docs/mocks/supply-doubt.html and docs/mocks/supply-scale.html). The mock is docs/mocks/supply-scale.html (its stone kinds and its barn’s numbers are invented).src/page/cards.js, as VB-667 does, so the two run one at a time.Implementation notes (VB-668):
src/page/cards.js: Stores tab = Supplies (today’s stats, peat with them), Materials (MATERIALS, materialsOf, worksOf, materialsHTML), Gear, Health. src/head.html: the frame, kinds line and switch styles. The “All materials” switch is allMaterials, the page’s own variable, so it is kept as the selection changes. No Sim API added: the asked amounts are plan.reserved[good] where plan.reasons[good] === 'build', read through VB['sim/projects'].projectsOf.hh.wood, the one pile the firewood stat also shows; a project’s wood is asked of it), so the Timber tile and the Firewood supply count the same loads. Peat stays among the supplies (it burns). Clay, bog ore and wool are held by no project’s step today, so they only show as counts. A work’s name is its plan’s what (New field, A boat …), its step the open step’s kind name. The meter’s max is 1.25 times what is asked, the mark at what is asked.tests/page.js checks the three sections, the switch (6 materials listed) and, through a hook patched into the page, the layout on a constructed list (kinds only where more than one; a work’s “6 of 10” and its mark).docs/img/vb668-stores.jpg.