Commit Graph
5 Commits
Author SHA1 Message Date
garrytan 0778c70b91 test: fold the moved-code touchfile golden into touchfiles.test.ts; fix integration fixture closure and caps 2026-09-30 06:49:18 +00:00
garrytan f8cd2057e1 Merge workstream w4 2026-09-30 06:31:33 +00:00
garrytan 91c74260d5 test(ratchet-c): register route modules, review resolver modules and server.ts residual cap 2026-09-30 06:15:44 +00:00
garrytan 48aeca9593 test(shard-engine): give non-timeout corpus fixtures CI headroom; keep the POSIX golden off the Windows lane
Only the wall-timeout fixture keeps a 3s wall; the rest get 60s so a loaded
host cannot turn a pass into a timeout. Base and branch runners still agree
on every classification under the new walls. The Windows exclusion entry
moves the free runner's ratchet (c) residual cap to 2356 lines.
2026-09-30 06:12:02 +00:00
garrytan fe0a9183f8 test(ratchet-c): enforcing module/function size ratchet and moved-code touchfile coverage
Ratchet (c) ships enforcing: test/helpers/module-size.ts counts file and
top-level function lengths by brace matching over masked source (strings,
comments, regex literals and template text masked; ${} expressions kept),
covering function declarations, arrow functions assigned to consts and
route-table handler properties, with no parser dependency. Its self-test
uses template literals and code-fence braces copied from
scripts/resolvers/review.ts and design.ts. test/fixtures/module-size-ratchet.json
binds scripts/lib/shard-engine.ts (<= 800 lines, <= 150 per function) and
records the residual runner sizes (free 2352, paid 1921) as non-growth caps;
allowlist entries are keyed on file plus matched text and need a reason.
Failure output lists file:line, the rule, Fix: and the allowlist path.

touchfiles.test.ts gains the moved-code superset check over
test/fixtures/touchfile-move-goldens/ (W2 golden recorded at 96764e80:
test-strict-output.ts and test-paid-shards.ts global, test-free-shards.ts none).
2026-09-30 06:06:16 +00:00