Status: done (2026-11-21) Priority: 3 Size: M Design ref: none (code structure). backlog/VB-413.md; docs/architecture/target-v2.md section 4.3 (goods) Goal: sim/stores is 718 formatted lines (400 packed, before the cap went) and exports 42 names. Split it by concern, each move checked with tools/same.js: the registry of goods and Culture’s two rules on them (VB-299; reads no store), the reservations (VB-248: reserve, release, reserved, follow, short), and ale (VB-305: brew, pour, spoilAle, aleStanding) are the candidates; the store operations, grain by crop and the ledger stay. Before giving any of them an owner, find it in target-v2 section 4. Acceptance criteria:
sim/stores is under 700 lines, or what is left is one concern and the task says why it stays whole; each new module has its @sys line, its place in src/manifest.json and its owners in src/owners.json.node tools/same.js --base REF prints same for each move; its line is in the PR.sim/stores exports fewer names than its 42 in tests/width-baseline.json, and the baseline falls with it.
Notes / questions:src/sim/stores.js went from 400 lines to 537 with no token changed but two pairs of braces: the syntax trees before and after are equal (acorn, a block of one statement unwrapped), and so are the comments. Before: 67 lines of several statements, 18 function bodies on their header’s line, 28 lines over 130 columns; after: 0, 0 and 16 (comments and the goods’ declarations).for ... if ... chains without braces, the long const a = ..., b = ... lists, the one-line arrow setters the ownership scan reads.src/ was formatted by Prettier the same day (VB-380’s note), which took over from the hand pass; the module is 718 lines, in tests/lint-baseline.json at that length, and the trigger is 700.impossible and dropWords went back from sim/projects to sim/plans, their one user (VB-123 had moved them out for room); oldProjects, moved to sim/saves by the same task, stays there, beside oldGrain: sim/saves is where the other migrations of old saves are, and it reaches the plans through makeProject.brew kind goes with the ale, whichever lands first).