Status: blocked
Waits for: VB-385
Priority: 3
Size: M
Arch: yardstick
Phase: implement
Design ref: none (code structure). docs/typescript-plan.md (P14); the survey in backlog/VB-055.md.
Goal: The same for the social, agency and derived layers (13, 8 and 2 modules), src/gen/*, src/gen.js, src/culture.js, src/sim.js, so that tsc --strict passes over all modules and the baseline is empty (a ratchet at zero). Then close the plan: check that AGENTS.md, docs/architecture/modules.md and docs/architecture/target-v2.md each carry the line the earlier tasks owed them, and write the follow-up the survey left open: the page script (src/page/*.js, one closure of 623 top-level names, 64 references to VB) as modules or as a checked JavaScript script, as its own plan. Split by the task itself if VB-384’s counts say it is larger than M.
Acceptance criteria:
tests/tsc-strict.js reports zero, and any new file with an error fails; behaviour (node tools/same.js --base REF prints same), counters and saves unchanged..ts (they stay .js and keep VB from src/load.js).docs/typescript-plan.md, where this task is P14): waits for Kim’s answers to QUESTIONS.md, “VB-055: the move to TypeScript” (the formatter, the bundler, the hook, the width measures, when, the page and the tests, strict), which may change its criteria; the three rules common to these tasks are at the top of the plan.