village-builder

VB-1684: Invariant: every good’s account closes, not only food and grain

Status: done (2026-11-25) Priority: 2 Size: M Design ref: docs/review-principles-2026-11-24/synthesis.md (Invariant catalogue, M2); tests/accounts.js; Sim –report accounts (VB-403); src/sim/stores.js; design.md, Principles for decisions (Nothing teleports) Touches: tools/accounts.js; tests/accounts.js Goal: For every good in Stores and every year, made + brought in - used - spoiled - taken out equals the change in stock, with unexplained within rounding, as food and grain already close. Acceptance criteria:

Notes