Files
buzz/scripts
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 ffc46676c7 fix(scripts): add ts-esm-loader and fix allowlist coverage in run-differential
Phase 2b introduced a transitive extensionless TS import in buzzAgentConfig.ts
("./modelCapabilities") that Node's --experimental-strip-types cannot resolve
without help. Add scripts/ts-esm-loader.mjs — a minimal ESM custom loader that
patches extensionless relative imports to .ts files when the file exists on disk.
Update run-differential.mjs shebang to self-bootstrap with the loader.

Also fix the allowlist coverage gate: totalAllowlisted was declared but never
incremented, so the summary always printed "0 allowlisted" and stale allowlist
entries (which mask future regressions) went undetected. Replace with per-axis hit
tracking via allowlistHits Set; report exercised slot count (N/total) in the
summary; FAIL with STALE_ALLOWLIST if any declared entry fires zero divergences.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-07-31 13:02:16 -04:00
..
2026-07-27 14:18:24 -04:00