Status: blocked
Waits for: VB-384
Priority: 3
Size: M
Arch: yardstick
Phase: implement
Design ref: none (code structure). docs/typescript-plan.md (P13); the survey in backlog/VB-055.md.
Goal: Bring the modules of the kernel and material layers (src/layers.json: 23 and 13 modules) to zero errors under tsconfig.strict.json, without changing behaviour. The layer’s files are removed from the baseline (or left at zero). Split by the task itself if VB-384’s counts say the layers are larger than M.
Acceptance criteria:
node tools/same.js --base REF prints same), counters and the saves tests unchanged.any is added to silence an error (a // @ts-expect-error carries a reason; their number is in the task file and falls task by task).AGENTS.md (membership caches, per-tile travel cost, the death roll, rule value()) are timed before and after at small-y5 (node tools/sim.js --years 1 --report perf): types are erased, so the numbers do not move beyond the noise; the check is in the task file.docs/typescript-plan.md, where this task is P13): 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.