Status: done (2026-11-25) Priority: 3 Size: M Arch: debt Phase: implement Design ref: The player, commands and views (Store views: resource stores can be inspected for every level and dimension of entity; Decided); Claims, ownership and territory, One scope model for overlays, stores and trees (Agreed, 30 Oct). Goal: Stores can be seen only one household at a time, in the household panel. The design wants them for any level of entity, through the same scope model as the ownership overlay (VB-043). Build the first version: households and villages. Depends on VB-043; if it is not done, mark this blocked. Acceptance criteria:
Sim.storesOf(st, scope) returns, for the households in a scope (inScope, VB-043) with dim “owns”, one row per household and a total row. The columns are the stores that exist when it runs: grain, meals (hh.meals, VB-259), the larder’s foods (hh.larder, by FOODS), seed set aside, unthreshed sheaves, firewood, stones (hh.stone, VB-010, done), and, once their tasks are done, flour (VB-009) and shares owed. A village scope adds the village store (v.grain, VB-039) as its own row.node tools/same.js --base REF prints same.
Notes / questions:hh.meals, VB-259, the rations of VB-022) and the larder’s foods (FOODS), and the design ref points at v0.4’s section 15, The player, commands and views.QUESTION_ARCHIVE.md).docs/slices.md, section 3.5; the slices Decided by Kim): moved to slice 5, arch debt (from claims).Notes (VB-092, 25 Nov):
storesOf lives in sim/scopes beside inScope (a scope’s view, read-only); Sim.storesOf and Sim.inScope join the facade. Rows hold raw units and the row’s need (rations a day); the page divides, so the sim stays free of presentation.held: 'larder'), sheaves, firewood, peat, stone (loads over rocks), shares owed (owed, debtor the household, kind share). Fresh food (hh.fresh) is not a store column: the criterion names the larder. The panel hides a column at zero in every row, grain always shown.page/storeview), rebuilt once a game day; from a household it shows that household’s row, with a button to its whole village.storesOf is a view’s read on a click and once a game day while open, not recurring simulation work.