village-builder

VB-1685: Invariant: a cache equals its derivation after every verb, with no lag

Status: done (2026-11-25) Priority: 2 Size: M Design ref: docs/review-principles-2026-11-24/synthesis.md (Invariant catalogue, S1); tests/lib/invariants.js (allowAgeLag); docs/architecture/target-v2.md, principle 2; docs/architecture/ownership.md Touches: tests/lib/owner-caches.js (checkRoles); tests/lib/invariants.js (checkState, checkCaches); sim/lifecycle (dailyLife); sim/heirs (serve, refreshRoles); sim/spread (clearScrub); tests/lint-rules.js; tests/lib/clock.js (setClock); new tests/caches.js; tests/suites.js Goal: Every derived cache (pawn.household, hh.members, pawn.role, st.owner and the others declared as caches) equals a fresh derivation after every command, the owner told after the write, with no allowance for lag. Acceptance criteria:

Notes