Strengthens the Benchmark Submissions code-forward evidence with real artifacts instead of pitch-deck claims alone, per owner direction: - hackathons/geekroom-2026/demo.mp4 (+poster.png, raw demo-raw.webm) — a real Playwright-driven Chromium screen recording against an actual running `npm run dev`: create a real API key, submit two real answer sources through the live /submit-model form, scroll to the real /leaderboard rows showing the computed scores. No staged footage. - A second, genuinely different example submission: "uniform-baseline-v1" (generate-baseline-submission.ts), a content-blind uninformed baseline that never imports the scoring engine and never reads gold-suite expected answers (no test-set leakage, not a disguised system-one replay). Scored 35.0% accuracy / 13.1% strict pass / 0.027 ECE vs system-one-replay's 85.6% / 100.0% / 0.096 — both now real "Community submitted" rows on /leaderboard, proving the platform scores more than one self-referential submission. - generate-system-one-replay.ts saves the previously ad-hoc 93-case system-one replay payload as a reusable fixture for the demo and judges. No changes to benchmark-scoring.ts / benchmark-submissions.server.ts / outbound-guard.server.ts. Verified: npm run typecheck clean, npm test 138/138 passing (1 pre-existing skip, unchanged), npm run gold 61/61 unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
/**
|
|
* Build the "system-one-replay" answers payload: exactly what a third party
|
|
* would get if they ran `system-one` themselves offline and uploaded the
|
|
* result (same construction as the end-to-end test in
|
|
* benchmark-scoring.test.ts and the real gstack browser verification logged
|
|
* in plans/geekroom-hackathon.md, 2026-11-07). Saved here so the demo video
|
|
* and judges have a real, reusable fixture instead of a value only ever
|
|
* built ad hoc inside a test/session.
|
|
*
|
|
* Usage:
|
|
* node --experimental-strip-types hackathons/geekroom-2026/generate-system-one-replay.ts
|
|
* Writes hackathons/geekroom-2026/system-one-replay-answers.json.
|
|
*/
|
|
import { writeFileSync } from "node:fs";
|
|
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { runLocal } from "../../src/lib/jev/engine.ts";
|
|
import { GOLD } from "../../src/lib/jev/gold.ts";
|
|
import type { Answer } from "../../src/lib/jev/types.ts";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
const payload: Record<string, Record<string, Answer>> = {};
|
|
for (const g of GOLD) {
|
|
payload[g.id] = runLocal(
|
|
{ model: "system-one", state: g.state, questions: g.questions },
|
|
"system-one",
|
|
).answers;
|
|
}
|
|
|
|
const outPath = join(__dirname, "system-one-replay-answers.json");
|
|
writeFileSync(outPath, JSON.stringify(payload, null, 2) + "\n");
|
|
console.log(`Wrote ${Object.keys(payload).length} cases to ${outPath}`);
|