village-builder

VB-230: The dependency check by layer, with a baseline that only falls

Status: done (2026-11-11) Priority: 3 Size: S Design ref: none (code structure). docs/architecture/target-v2.md, sections 3.1 and 3.2; VB-176. Goal: VB-176’s check enforces the load order: no lookup into a later module but issue. The target’s rule is by layer (target-v2 3.1): calls go downward, reads are free, and influence goes upward only by a command, an event or a declared hook. Give each module its layer and report the calls that break the rule, against a baseline that only falls, so new code cannot add one. Acceptance criteria:

Implementation notes (11 Nov 2026):

Validation: tests/dependencies.js passes; golden and the whole of npm test run once after the last edit (see the commit).

Orchestrator’s decisions for Kim to overturn: