Skip to content

feat: add export_site_data.py website fold-in exporter#43

Merged
jkbennitt merged 1 commit into
masterfrom
feat/export-site-data
Jun 12, 2026
Merged

feat: add export_site_data.py website fold-in exporter#43
jkbennitt merged 1 commit into
masterfrom
feat/export-site-data

Conversation

@jkbennitt

Copy link
Copy Markdown
Member

What

scripts/export_site_data.py — bridges the run-analysis pipeline to rle.appsprout.dev. Reads results/<run>/leaderboard.json (analyze_spread.py output) and emits:

  • site/data.fragment.ts — META + MODELS blocks matching the ModelRow interface in AppSprout-Site client/src/rle/data.ts, ready to paste over the generated half of a fold-in
  • site/site_data.json — same payload as JSON, for the future HF dataset push / API ingestion

Why

The v0.3.0 fold-in (AppSprout-Site PR #24) was hand-transcribed from leaderboard.json. This mechanizes the leaderboard half so numbers can never drift in transcription; editorial blocks (HERO_LOG, STORY, AGENTS, OG_*) stay hand-curated from stories.md.

Verification

Round-tripped against the live v0.3.0 site data: exact value match for all 11 models + META, except three half-case roundings (qwen mean 0.806 vs 0.805, nemotron delta -0.007 vs -0.006, kimi mean 0.687 vs 0.686) where the hand-edit rounded toward zero — the script uses conventional half-away-from-zero.

ruff clean, mypy src/ clean, 491 tests pass. Generated output under results/ is gitignored.

🤖 Generated with Claude Code

Reads results/<run>/leaderboard.json (analyze_spread.py output) and emits
site/data.fragment.ts (META + MODELS blocks matching the ModelRow interface
on rle.appsprout.dev) plus site/site_data.json for HF dataset / API
ingestion. Round-trip verified against the live v0.3.0 site data: exact
match except three half-case roundings where the hand-edit went toward zero.

Editorial blocks (HERO_LOG, STORY, AGENTS, OG_*) stay hand-curated; this
mechanizes the leaderboard half of a fold-in so numbers are never
hand-transcribed again.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jkbennitt jkbennitt merged commit aa71f15 into master Jun 12, 2026
3 checks passed
@jkbennitt jkbennitt deleted the feat/export-site-data branch June 12, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant