Status: done (2026-11-13)
Priority: 2
Size: S
Arch: yardstick
Phase: implement
Design ref: none (code structure). backlog/VB-055.md (why not a cap on length); backlog/VB-381.md (the measures that replace it)
Goal: The cap of 400 lines a module packs the modules that reach it: lines grow dense, and code goes where there is room, not where its concern lives (the numbers are in the notes). Until VB-380 and VB-381 replace it, tests/lint.js reports a module over 400 lines and does not fail; the task that takes a module over the line opens a task to split it by concern and names it in its PR. No hard limit on length.
Acceptance criteria:
tests/lint.js fails no module for its length; it prints one line for each module over 400 lines (its length and that it needs an open split task). The column limit and its falling baseline stay as they are.tests/lint-baseline.json holds only what the lint still reads (the long lines of each file).AGENTS.md (Conventions), BACKLOG.md’s refactor rules, docs/gates.md (row 3) and docs/architecture/modules.md (Adding things) say the same: 400 lines is a trigger; the task that crosses it opens a split task (“Refactor:”, checked with tools/same.js) and does not pack lines or move code to make room.backlog/VB-055.md).wc -l, 107 source files): 10 files within 10 lines of 400 (culture, sim/heirs, sim/relations, sim/stores at 400; sim/plans, sim/records 399; sim/kinds 398; sim/commands 396; sim/lifecycle, sim/rules 390). In those, 5 to 10% of lines hold three or more statements and up to 15% are 140 columns or wider; VB-380 measured sim/relations at 691 lines formatted. Placement by room: VB-359 and VB-328 (sim/kinds full), VB-123 (sim/plans), VB-175 (sim/heirs).tests/lint.js: MAX_LINES became SPLIT_LINES, a note and no error; the baseline’s lines went, and --update writes only files that have long lines (none today, so the file is {}). The lint on this tree prints one line, src/gen.js: 545 lines, over 400, and lint ok. No source under src/ changed, so index.html is as it was.src/gen.js (545 lines) has no split task; it was over the line before this rule. The ten modules at the line are not unpacked here: each is split when a task next takes it over.