Commit graph

2 commits

Author SHA1 Message Date
Chris Parsons
28244c5f43
Fix capture-baseline.ts: postgres-js returns rows directly
db.execute() with drizzle-orm/postgres-js returns rows as an array, not
wrapped in a .rows property (that's node-postgres style). Writing
qpTotals.rows etc. produced undefined and tripped writeFileSync.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 06:07:14 +00:00
Chris Parsons
c1df2d8edc
Add baseline capture script for canonical layer migration
Captures QP totals, completed event results, surface Elo, and Monte Carlo
simulator output for every in-flight qualifying-points sports_season.
Used across Phase 1a-4 to verify no scoring drift.

Note: simulators don't currently accept a seed, so simulator output
fixtures are non-deterministic (noted in the script header).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 05:54:27 +00:00