issue reaches a module loaded later, and a checkStatus: done
Priority: 2
Size: S
Arch: ownership
Phase: implement
Design ref: none (code structure). VB-172’s map, section 4; Kim’s answer 6 of 3 November (QUESTION_ARCHIVE.md, “VB-172: the ownership map”).
Goal: Modules import only modules loaded before them, but lookups inside functions reach later ones and make cycles. Kim’s rule: the only lookup into a later module is issue (and the verbs’ own later() in sim/commands). After VB-175, one such lookup is left besides issue: expansion.js:17, where plots are started only for those with no farm to claim, while sim/farmclaims asks sim/expansion who has a plot. Remove it, and check the rule. Depends on VB-175.
Acceptance criteria:
sim/lifecycle, which imports both): it passes startPlots who may claim a farm, or the filter. The lookup at expansion.js:17 is gone.npm test (from tools/writes.js’s dependency list) fails on any lookup into a later module other than issue and the verbs’ later(), naming the file, line and module.tools/writes.js reports no cycle except through issue; docs/architecture/ownership.md, section 4, updated with its output.BACKLOG.md: behaviour unchanged, tests/golden.json unchanged, npm run verify passes.
Notes:docs/roadmap.md places this task in slice 5.Implementation (7 November 2026):
startPlots; the predicate stays at the same point in its existing filter,
after village/alive checks and before plot checks. No new simulation pass, state, counter or random draw.claimableFarm).tools/dependencies.js extracts edges from the writes scanner’s existing AST, with a separate order policy. Diagnostics name file,
line and target. tests/dependencies.js covers direct, deferred, computed and dynamic lookups, permitted dispatch and forbidden
methods in the command module. The suite invokes it in npm test and verify.later() targets, previously invisible. All 14 cycle witnesses pass through commands;
the sole direct non-command cycle is removed. The current dependency table is in the ownership document, section 4.Validation:
VB_TEST_JOBS=4 npm test: 72 scripts passed (240.0 s).VB_TEST_JOBS=4 VB_CHROMIUM=/usr/bin/chromium VB_SOFTWARE_RENDER=1 npm run verify:
85 scripts passed (376.8 s), including golden states, all three Chromium checks, save/load equivalence,
five invariant runs, four late fixtures and the history-cost gates (existing excesses unchanged).tests/golden.json and tests/counters.json unchanged; build and whitespace checks pass.