village-builder

VB-1934: Refactor: a work counter is declared by the module whose loop it counts

Status: ready Priority: 2 Size: M Design ref: docs/plans/VB-1406-overlap.md, sections 1, 3 and 5; docs/architecture/target-v2.md, principle 20; docs/architecture/modules.md, Adding things Touches: vb (COUNTERS, counter); tests/counters.js; tools/lib/symbols.js (IGNORED); AGENTS.md; docs/architecture/modules.md Goal: A new loop declares its counter beside itself, and no task appends to VB.COUNTERS in src/vb.js Acceptance criteria:

Noted by VB-1406, 27 November 2026.