Skip to content

feat(compare): add the Leaderboard and its Scoring settings - #439

Merged
aitianshi merged 48 commits into
mainfrom
feat/leaderboard-scoring
Nov 27, 2026
Merged

aitianshi merged 48 commits into
mainfrom
feat/leaderboard-scoring

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #438

What

  • New Leaderboard tab: agents ranked on 8 capabilities and 7 domains from the workspace's finished runs.
  • Capabilities and Domains each have their own Overall, ranks and medals.
  • A table with search, filter, sort and columns; a time or cost scatter; the chosen agent's card; strips and radars.
  • Every score opens its evidence: entries, weights, tasks covered, links to the runs.
  • Scoring settings on the same page: which benchmarks feed each row, and their weights. Autosave; one line says what blocks a save.
  • nullius leaderboard ROOT... [--json] prints the same numbers.
  • Dropped during review: custom benchmarks, the "All scores" mode, coverage notes on the page.

Before and after

Before After
No such page The Leaderboard: table, scatter, agent card, strips and radars
A score's evidence card
Scoring settings

Verified

  • Backend 3,175, routes 744; browser 14 and the four interaction mutations, run by hand (not in CI).
  • Three independent reviews, about 1,900 random actions; each fix has a test that fails without it.
  • Real runs of Codex, Goose and OpenCode: no overflow from 360 to 1600 px, in both themes.
  • Not checked: the Docker tier; a workspace with hundreds of rows.

Risk

  • Shared files touched: tables.js (row groups, table:update, table:show), the pager macro (its sizes), definitions.py (a version's identity).
  • Radar labels are small on phones.
  • Scoring is a new file per profile: nothing to migrate. Undo: revert.

Agents

  • Claude Code, Opus 5.5
  • Claude Code, Fable 5.2
  • Codex, GPT-6 Astra

@aitianshi aitianshi changed the title feat(compare): add leaderboard scoring foundations feat(web): add workspace leaderboard and scoring settings Nov 25, 2026
@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Nov 25, 2026
…run caps and retries, and name each entry's dataset
Cards for the board, the scatter, the agent, the strips and the radars; scores as shaded chips and Overall with its bar; a Verified only / All scores toggle; the scatter drawn at the mockup's size with logos and names beside them; the agent card as a figure and key values; strips with every agent's dot, the average and the compared agent; radars with rings and values; time per task in minutes and seconds. The server no longer draws a scatter the page does not use.
…er text its size, colour the card's differences

Cells moved apart from their rows drew blank in some engines and made column changes jerky; a row now slides whole and a cell that appears or changes fades in. The scatter is drawn at its box's width so its text no longer grows with the page, and a hovered logo grows less. The agent card drops the model, which can differ between benchmarks, and shows a difference green above the reference and red below.
…mes steady, crossfade the axis switch, close hover evidence

Switching score sets keeps each measure until its new value arrives instead of blanking Steps; switching Domains and Capabilities fades the columns out and back in; a scatter point no longer scales its name with its logo; strip rows keep one height when a comparison appears; a hover's evidence closes when the pointer leaves, a click or keyboard focus keeps it open.
…'s room, offer 5 to 50 rows a page

A column chosen in Columns opens from nothing and fades in; one taken away fades and narrows to nothing before it goes. The board's sideways scrollbar keeps its track, so a wider table never pushes the page down. Every table's pager offers 5, 10, 25, 50 or all rows.
…ge as a note

Every row with an Overall is ranked by it; missing or incomplete coverage of a required entry is listed beside the rank instead of withholding it. The table no longer moves anything by a transform: moved rows and changed cells fade their contents in place, and switching Domains and Capabilities fades only the changing columns' contents, so the chosen row's colour and Overall stay. A hovered scatter logo grows more.
…dier leaderboard table

Medals are a laurel wreath around a struck disc, the 4th chocolate and bitten; hovering a row regrows its wreath and lights the disc. A filter or search ranks the rows left on the board among themselves. Spare width goes to the score columns alone, so #, Agent, Overall and the measures never move; the table eases to its new height when rows come or go; score chips spread their shades from 40% with a brighter top. The table toolkit's pager says which rows pass.
… size, rows that slide their contents

Score chips are one blue whose lightness moves in even steps from 50% to 100%, the text white or near black by the shade's lightness in each theme. The laurel medal has a larger disc and number and eight broader leaves, and a brighter silver. A row that moves slides its contents from where they were; one that comes back fades and drops in.
…s filter; Overall holds still on a family switch
…CostBench, Claw-Eval, ClawMark, MedAgentBench and HealthAgentBench
… out like the mockup; chips coloured by rate
…, chips in the app's accent, folding scoring rows
…family, wider weights; bigger radar labels with a hover box
…domains carry no Overall weight on the page; radars drawn at one size
…lains, never over it; bigger chart subtitles
…as saved; its weight stays locked until it has one
… under odd runs and hostile input

Found by a defect hunt on the feature, each with a test that fails on the old code.

Scores and ranks
- two equal means summed in different orders share a rank (compared to twelve decimals)
- a task that ran and ended with no verdict is a miss once its run has a verdict, as the run's adjusted rate counts it
- a task-name part matches the unit after <benchmark>/, the name a run records
- runs that share a name under two folders stay apart on the page as in the command
- a trajectory of any shape leaves Steps and Tool calls unavailable instead of failing the read
- the command names a benchmark version by its label, as the page does

Version comparison
- an axis that lists two versions of a benchmark is compared as one entry instead of a server error
- a row that never measured the benchmark is unchanged by another version of it
- only versions that change something are offered

Scoring settings
- a file holding a number no float can hold, nested too deep, unreadable or not a file falls back to defaults with the warning
- HEAD on /api/scoring reads and never writes; a body nested too deep answers 400
- each family needs a weighted row among those with a benchmark; a row without one weighs 0 whatever the others weigh
- a benchmark's default version is marked for a new row
…se, sorting, scrolling and odd rows

Found by a defect hunt on the feature, each with a browser test that fails on the old code.

Leaderboard
- Escape no longer moves focus to the last score hovered, and a card closed by Escape opens again on hover
- Enter on a score reaches its card's links from the keyboard; the card closes when focus goes elsewhere
- the card follows its score as the page scrolls or resizes, and closes once the score is out of sight
- switching families drops a sort by a column that leaves; Default is the shown family's ranking
- Columns and Sort by list the shown family's columns, without the Company and Status filters
- an empty score column is off until ticked, and what the viewer chose for a column is kept
- the pickers tell an agent's models and versions apart and always show the chosen agent
- a version comparison in Domains compares with the Domains Overall
- 119.6 s reads 2m 00s, a cost under half a cent reads <$0.01, a difference that rounds to nothing reads 0.0
- a sorted header keeps its name centred and its arrow whole; on a phone Overall is never cut

Scoring settings
- what keeps a draft from saving is said in one line: the same benchmark twice, or a family with no weighted row
- a new row reads the first benchmark the axis does not list yet
- a reset asked during a save runs after it; a conflict offers Reload
- a changed select and a removed row keep the keyboard focus
… for readers and in the light theme

Second pass of the defect hunt, from an independent review of the pages; each with a browser test that fails on the old code,
but the edit sent on leaving, which the in-process harness cannot see (checked against a served page).

Scoring settings
- a row lays out by its card's width: nothing runs out of the card or scrolls the page sideways from 700 to 1100 px
- a wrong weight is named with its row, so it is found in a folded row
- a viewer who may not write still opens every row
- a benchmark with one dataset reads it as a fixed value
- an edit made just before leaving the page is still sent; the warning about an unreadable file goes once a save rewrites it

Leaderboard
- on a phone only # stays pinned, so the scores have the width
- an open card closes with its view or its column, and updates with the rows; too tall for the room below and above, it scrolls
  inside the larger of the two instead of covering its score
- the agent card's lines wrap inside it; a version comparison is named; the chosen agent is not its own comparison
- an agent's models are told apart in the card and the evidence title; a row is found by the model its name shows
- a filter that leaves no scored agent moves the choice to an agent still on the board
- a strip's dot answers Enter and Space
- costs keep two figures below ten cents, with a finer cost axis; logos at 0% and 100% stay inside the plot
- in the light theme a strong chip's text keeps 4.5:1 from its first step
…newer single-attempt run

A quick single-attempt rerun of a dataset took the place of the run with three attempts, and Consistency lost its score.
A pass^3 entry now selects first among the runs that recorded three attempts per task, whatever they scored; Score entries
still read the newest run.
…able keeps 10, 25 and 100

The shared pager had taken the Leaderboard's sizes for Workspaces, Launches, Recipes and the catalogue's table views,
where a saved 100 fell back to 25. The pager takes its sizes; the Leaderboard passes its own.
…ted twice, narrow phones, focus and sorting left-overs

From an independent review of the fixes themselves and a re-read, each with a test that fails on the code before.

Scoring settings
- a benchmark with one dataset is one entry whether read whole or by that dataset: listed twice it is said, and a write refuses it
- + reads the first benchmark the row does not name under any dataset
- after a save, the line says what the draft typed meanwhile still needs; with no benchmark left anywhere it asks for one
- Cancel drops a reset queued behind a save

Leaderboard
- on a narrow phone Agent takes what # and Overall leave, so Overall is whole at 360 px too; the Agent header's sort arrow
  stays in its header
- Sort by lists the columns the table shows, and a sort by a column that is unticked goes with it
- a card whose link holds the focus keeps it through a redraw; a card closes once its score is behind the pinned columns
- a strip's dot keeps the focus as it chooses
- rows of one agent and version are told apart by whatever part of their setup differs: model, effort, provider, where they ran
- measures refused because the board changed meanwhile are asked again, once
… to its row's page

With more rows than a page holds, choosing an agent in the scatter, on a strip or in the Agent picker changed the card and
the charts while the table stayed on a page without the chosen row. The pager turns to the page of a row it is asked for
(a table:show event), and the Leaderboard asks for the chosen row.
# Conflicts:
#	app/nullius/standard/contract/definitions.py
…erface's own font, once it has loaded

The interface now loads IBM Plex Sans: widths measured before it arrived, or in the system font, were short, and a sorted
header's arrow was cut by 3 px. Columns are measured again when the font is in, with room for the arrow beside the name;
the scatter's names are measured in the page's font.
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Nov 27, 2026
@aitianshi aitianshi changed the title feat(web): add workspace leaderboard and scoring settings feat(compare): add the Leaderboard and its Scoring settings Nov 27, 2026
… redirect and its section in the Settings docs; trim its browser tests

- The browser tests run by hand, as the docker tier does: no Chromium download on every pull request.
- /settings/scoring redirected to /scoring from when Scoring settings was a page of its own; nothing links to it.
- Where scoring is kept, and what happens to a file that cannot be read, now sits in the field guide's Leaderboard section.
- Browser tests 20 to 14: those that pinned a colour, an animation or a one-off message are gone; those that guard focus,
  autosave, sorting, columns, phones and the version comparison stay, and the four mutations are still caught.
@aitianshi
aitianshi marked this pull request as ready for review November 27, 2026 00:31
@github-actions

Copy link
Copy Markdown

🟡 PR judge · 3 of 6 yes · #439 ↔ #438

Merge risk 🔴 MAJOR the judge's reading of the diff; app/nullius/runs/parse.py is in the path of every run
Depth 🔴 EXTREME the deepest path is app/nullius/standard/contract/definitions.py
Question Verdict
Changes do what the issue asks · 9 of 11 criteria ⚠️ partly
Issue and pull request describe the same change ✅ yes
Description matches the diff ✅ yes
Diff stays in scope ⚠️ partly
Risk named in the description ⚠️ partly
Before and after shown · 3 images · the diff touches what is visible ✅ yes
Acceptance criteria, 9 of 11 met
# Criterion Verdict
1 A Leaderboard tab lists catalogue agents, one row per version and setup, from finished runs; controls, example agents a… ✅ met (cut)
2 Each of 8 capabilities and 7 domains is the weighted mean of its mapped entries: a benchmark, a dataset or task-name pa… ✅ met (cut)
3 One run per dataset: most tasks, then latest, never the better score; a pass^3 entry reads a run with three attempts fi… ✅ met (cut)
4 Capabilities and Domains each have an Overall, competition ranks and medals; the table shows one family at a time ✅ met (cut)
5 Search, Filter, Sort by and Columns; a filter re-ranks the rows shown and the charts follow; an empty score column is o… ❔ undecided (cut)
6 A scatter of Overall against time or cost, the chosen agent's card, strips and radars share one selection and one compa… ✅ met (cut)
7 A score opens its evidence: each entry's weight, score, tasks covered and a link to its run, by pointer and by keyboard ✅ met (cut)
8 Scoring settings autosave valid documents, say in one line what blocks a save, and reset after asking; a row with no be… ⚠️ partial (cut)
9 A damaged scoring file gives defaults with a warning and is left intact ✅ met (cut)
10 nullius leaderboard ROOT... [--json] prints the same scores, ranks and evidence ✅ met (cut)
11 Nothing overflows from 360 to 1600 px, in both themes ✅ met (cut)
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Nov 27, 2026
@aitianshi
aitianshi merged commit b712d2f into main Nov 27, 2026
6 checks passed
@aitianshi
aitianshi deleted the feat/leaderboard-scoring branch November 27, 2026 00:36
@github-actions github-actions Bot removed the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
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.

feat(compare): add a configurable Leaderboard

1 participant