Status: done (2026-11-17) Priority: 3 Size: M Design ref: backlog/VB-927.md; backlog/VB-667.md; backlog/VB-666.md Goal: The village card shows its store as VB-667’s supply cells against its target Acceptance criteria:
Sim.supplyOutlook): how long its grain lasts, against its target (VB-457), by the estimate of a named pawn (the alderman, or the viewer’s), kept or computed when asked, with no loop over every record.showVillage) shows the store as a supply row by VB-667’s cells (suppliesHTML), and says whose estimate it is.node tests/smoke.js checks the row; a screenshot under docs/img/.Noted by VB-927, 17 November 2026.
Implementation (17 Nov 2026):
Sim.villageOutlook(st, vid, viewer) (sim/overview’s villageOutlookOf, over sim/outlook’s villageOutlook): computed when asked and stored nowhere, shaped as a household’s outlook (food; fuel and hay none), village: true, no loop over records (one pass over the village’s farmsteads). Grain less the seed reserved, walked a day at a time with ECON.villageStoreLoss; need is the households’ daily need; no intake is reckoned (VB-849: what is promised is not yet there), so own equals with. parts.target is HELP.storeTarget years of need (VB-457), told in the numbers under the row (“The store’s target”).head is the viewer (the played pawn) or else the village’s eldest holder, as the overview’s warnings (viewerOf); the card says “By X’s reckoning, today”. Decision: a village never estimates (16), so the pawn named is the viewer’s or the eldest holder’s, who speaks for it until an alderman exists.showVillage) has a Store section with suppliesHTML(..., ['food']); the i opens the numbers (the numbers click redraws a village card, which draws on a timer).tests/outlook.js (the store’s outlook), tests/smoke.js (the row, its four cells, whose estimate, the target). Screenshot: docs/img/vb966-store.png (populous tiny seed 7, year 3, Sandsta).tools/same.js against 984607d (see the result).