Build Plan — live evals + thinking

slug: live-evals-thinking · status: exported · from frame: live-evals-thinking

league-of-agents.ai/evals/ shows model-vs-model matches live, turn by turn, with each model's thinking alongside the board — redesigned, Playwright-verified, and exercised by a pi agent on Nemotron Super

Tasks

t1 — Evals data schema: league_site/evals/schema.py defines the versioned per-match file (state, per-side fog, plans, messages, actions, rejected, latency, think, slices, metrics, structured status+reason, per-seat tool/network setting), the per-eval manifest, thinking and in-progress seat files

t2 — Free-text scanner: league_site/evals/scan.py classifies reasoning and chat text as clean or not (secret-like strings, hostnames, IPv4/IPv6, absolute paths, emails), failing closed and reporting file, seat and pattern

t3 — Slicer: league_site/evals/slicer.py turns a match's turns into key-moment slices and templated headlines, plus per-match findings that cite their turns

t4 — Benchmark metrics: league_site/evals/metrics.py computes per side per match chat words per turn, median answer time, illegal-order rate, thinking tokens, share of unit-turns in the enemy half, contact within 2 cells, points per turn, order mix and thinking tokens per turn, each with a one-line definition

t5 — Exporter: league_site/evals/export.py folds .league/matches/<id> logs and match config into per-match files, manifest and thinking files; runs the scanner and drops failing files only; embeds slices and metrics; refuses to publish private content live for a match where any seat has tools or network on

t6 — Infra: a dedicated evals bucket in infra/template.yaml with public read only under the evals prefix and no lifecycle rule that deletes or tiers it, plus a match-host IAM user/policy (new infra/iam-match-host-policy.json) limited to put/delete under that prefix

t7 — Cloudflare: route /evals/data/\* to the evals bucket on the same domain with cache rules (running match files max-age 30 s or less, finished files immutable), and add an unpublish runbook (delete, purge, confirm 404) to docs/runbooks/cloudflare-league-of-agents-ai.md

t8 — Publisher: league-site evals publish (CLI under league_site/cli) uploads with the match-host credential: thinking files first, data and manifest last, with cache headers; a --stream mode uploads each answering seat's in-progress thinking and response about every 10 s after scanning each chunk

t9 — Evals styles: league_site/evals/styles.py builds the page CSS from theme.py tokens only, with the validated team colours (light #2b54c4/#b4314f, dark #6f8be6/#e0627f) added as tokens in league_site/web/theme.py

t10 — Evals routes: league_site/evals/wsgi.py serves /evals/ and /evals/<eval>/<match>/ inside the site shell and mounts into the site app

t11 — Replay script: league_site/evals/replay_js.py renders the sticky board, the slice story beside it, the open moment (seats, orders, chat, reasoning on demand), the asymmetry note, live polling of the manifest, in-progress streaming, the stale badge and the schema-version guard

t12 — Benchmarks script: league_site/evals/charts_js.py renders the index benchmarks (tiles, aggression vs effectiveness, order mix, per-match small multiples, thinking per turn) from exported metrics, with tooltips, keyboard access, table views and each metric's definition

t13 — Playwright suite for /evals/ in tests/e2e plus a CI job: 1440 and 390 px in light and dark, keyboard turn stepping, labelled controls, live advance with a mocked manifest, reasoning loaded on demand; screenshots saved as evidence

t14 — pi + Nemotron tester: scripts/pi-tester.sh runs pi on lobes 'worker' (Nemotron 3.5 Super) against a local site serve to exercise /evals/ and the agent onboarding and play flows, plus read-only checks of production /evals/; the run log is kept as evidence

t15 — Engine brief: file an issue on agentculture/league-of-agents (communicate skill) for in-progress reasoning and response output per seat, per-seat tool and network settings in match config, and a pi command driver for Nemotron run with --no-tools --no-mcp

t16 — Verify and ship: deploy, smoke-test /evals/ during a running match, run the two cold reads of hard-a, the evaluator and visitor hallway check, keep the prototype before-screenshot, bump the version and CHANGELOG

Risks