Skip to content

feat(web): add workspace leaderboard and scoring settings - #439

Draft
aitianshi wants to merge 3 commits into
mainfrom
feat/leaderboard-scoring
Draft

aitianshi wants to merge 3 commits into
mainfrom
feat/leaderboard-scoring

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #438

What

Add workspace Leaderboard, dedicated Scoring settings and the matching CLI.
All nine blocking findings in the latest review were reproduced; none is disputed.
Task parts now score, missing benchmark versions stay unavailable, and new invalid mappings are refused.
Evidence Escape dismisses correctly; persistent chart nodes retain focus and animate.
Browser interaction tests now run in the non-draft CI workflow.

Verified

  • Final backend: 3,135 tests; routes: 718 tests; Chromium interactions: 5 tests. All passed.
  • Both strengthened backend mutations and all four browser mutations were caught.
  • Workflow actionlint, JavaScript syntax, docs drift, field contracts, catalogue generation and wheel installation passed.
  • No separate type-check command is configured.
  • The reported proxy timing failure did not recur in either full backend run.
  • Browser tests used installed Chromium; downloading Playwright's newer bundled browser stalled at 0% and was cancelled.
  • Not run: Docker tier, every original acceptance example, exhaustive accessibility/contrast/motion checks. Draft CI skips its jobs.

Before and after

Before: OSWorld parts were unavailable; missing versions counted; invalid mappings saved; Escape reopened evidence; keyboard selection discarded focus.
After: route and browser regression results are recorded below.
Screenshots are not attached.

Acceptance

Test abbreviations: S = app/tests/test_leaderboard_scoring.py; W = test_leaderboard_weights.py; B = test_leaderboard_board.py; E = test_leaderboard_service.py; R = app/ui_tests/test_leaderboard_routes.py.
Rows distinguish fixture assertions from real entry-point observations. They do not certify all examples in a criterion.

Criterion Test and actual result Remaining verification/implementation
C1 R empty-page test: 200, all 15 axes, catalogue rows and four ordered blocks. Real CLI: “No workspace open”, eight unscored rows. S excludes unfinished/version-mismatched runs. Completion reload and all exclusion combinations through real workspace entry points
C2 S selection/union tests pass: 60/100 selected over 10/10; disjoint .6, overlapping .5. Mutated shard suppression now fails: selected aaa-source instead of zzz-merged. Real full-task manifest resolution and qualified source integration remain incomplete; declared OSWorld parts now score
C3 S pass/fail and graded tests pass: .5; .1 over ten covered tasks with two infrastructure exclusions. E real result directories produce Retrieval .75 and Money 1. All graded examples through page/CLI
C4 S/B version, execution-limit and pass^3 cases pass. E missing recorded version is absent with “Benchmark version not recorded”; explicit source pin scores .5; unknown version stays absent. New standard runs record their resolved pin. Complete execution-identity audit and all metric-validation examples through routes
C5 W: .625, Overall .46875, display 46.9%; missing source share 100%. Browser weight 1→3: shares 75%/25%, persisted 3. All 15 axes and zero-weight combinations through page/CLI
C6 B: complete .6 ranks above partial 1.0; “GAIA 1 of 100 tasks”. New attempted-but-unavailable required-entry regression failed before fix. Real catalogue full-task manifests; remaining required-axis/entry combinations
C7 W: competition ranks 1,1,3. Table toolkit test preserves ranked/partial/unscored groups and stable ties after refresh/filter. All initial-selection and reason-placement cases in browser
C8 E: OpenAI and catalogue version. Company-definition test passes. Shared official SWE-agent favicon and supplied DigitalMate mark are registered and packaged with attribution. Browser phone subtitle hides company. Full Agents/Leaderboard theme and setup-disambiguation sweep
C9 Existing sprite contracts pass for new medal symbols. Browser custom-only rank 1 shows numbered medal. Ranks 2–5, ties, accessible names and reduced-motion browser matrix
C10 Toolkit integration test: A/B before partial/absent; updated score reorders B/A; filtering/restoring retains groups. Search, columns, filters and sort use existing toolkit. Viewer persistence, all mode-default overrides and unchanged chart observations end to end
C11 Browser at 1280: fixed-column x positions unchanged on tab switch; at 390: page width 390, table width 900. Full contrast measurements, measured-column layout and tab-only fade
C12 Shared scatter tests: stable keyed logo tiles; four coincident two-line labels do not overlap; removing collision rejection now fails the test. Dense/near-overlap browser cases, exact tooltip and theme checks
C13 B version projection: absent replacement evidence leaves affected score/Overall absent even with another .5 entry still available; removing the guard now fails. Original board is unchanged. Synchronized row/Average/version controls exist. Complete row/Average/version UI and zero-weight examples
C14 B average: Personalization 1.0 from one available row. Browser renders four domain/capability charts without page overflow. Radar connects adjacent measured axes only. Gap/wraparound and all shared-selection examples through browser
C15 Chromium Enter selects Goose; focused logo and radar SVG remain connected. Disabling keyboard activation fails the browser test. Nearest-centre selection remains implemented. Required nearby/exact-overlap pointer, keyboard, touch and reduced-motion automatic checks
C16 Browser Overall evidence: 72%, effective share 100%, literal custom name. New browser regression: Escape from an actual run link hides evidence and returns focus; subsequent normal focus reopens it. Every trigger, link-focus, viewport and mobile partial-count case
C17 B first response spy rejects eager parsing. E deferred cache: 3 steps/2 calls, repeat parses nothing, changed file reparses once, malformed file unavailable. R stale context returns 409. Full asynchronous browser race and all overlap/partial-count fixtures
C18 R offers OS tasks/Office tasks and scores Home=1, Work=.5. Chromium: 3 persists; -1 preserves bytes; write failure shows Retry; retry succeeds; rapid 5→6 persists 6. Disabling autosave fails. Cross-tab concurrency and the remaining mobile settings matrix
C19 W/R malformed JSON warns without overwrite; invalid weights/CSRF/nonlocal writes refused; failed writes preserve bytes. New nonexistent datasets/versions return 400 without writes; saved removed references survive unrelated edits. Complete mapping validation and recovery matrix
C20 W: 72/0/blank, boundaries, duplicate names, stable rename/removal pass. R/browser literal markup name remains text; zero remains measured. All workspace/version isolation cases through UI
C21 B: Verified B=.6/A=.5; All A=.75/B=.6. R custom-only rows rank at .72 and 0. Browser All mode shows dashed 72% Overall and unverified source name. All chart markings, zero-weight custom domains and CLI custom-mode matrix
C22 R reset restores defaults; failed reset returns 503 with unchanged bytes. Browser Cancel retains custom; confirm returns custom count 0 and GAIA weight 1. Browser network-failure/retry reset interaction
C23 Chromium: first-visibility radar animation, table movement, persistent radar morph, rapid latest-selection settling and reduced-motion immediate rendering pass. Removing morph animation fails. Rows/columns use cancellable 320ms transitions; tab cells fade for 200ms. Complete dense/phone animation and interaction matrix remains unverified
C24 E/R real CLI and route parity pass. Actual help/no-roots/root JSON/all-scores commands exit 0; bad root exits 3; unknown flag exits 2. New no-roots CLI regression: Verified Overall absent; All scores .72, rank 1, no run or efficiency measurements. Help/docs now distinguish these. Every criterion through CLI with settled metrics/custom scores

Acceptance: latest review regressions

Finding Test / actual output
C2/C18 task parts R test_osworld_default_parts_read_only_matching_task_names: Home=1, Work=.5; dataset menu includes OS tasks and Office tasks. B part union: overlapping OS tasks counted once, .5 over 2/2 tasks.
C4 missing version E test_missing_version_is_unavailable_and_explicit_pin_matches: absent version → null with “Benchmark version not recorded”; explicit pin → .5; unknown → null. Producer pin regression passes.
C18/C19 invalid mapping R test_new_unknown_dataset_is_rejected_but_saved_removed_part_can_be_edited: new unknown version/dataset → 400, bytes unchanged; unrelated edit retaining removed part → 200.
C16 Escape Chromium test_escape_from_evidence_link_dismisses_and_returns_focus: hidden=true, original cell focused; removal of the focus guard is caught.
C23 focus/motion Chromium logo, rapid-change/reduced-motion and first-visibility/table tests pass. Old logo and radar nodes remain connected; focus remains on the logo; active animations >0, reduced-motion animations=0.
C13 ineffective test Fixture retains a measured .5 contribution alongside missing replacement evidence. Mutated guard fails with “0.5 is not None”.
C12 ineffective collision test Four coincident observations force competing label placements. Removing collision rejection fails the non-overlap assertion.
Missing executable interaction tests Five Playwright tests execute real board.js/scoring.js against Flask responses. Keyboard, autosave, Escape and morph mutations all print CAUGHT. No tests deleted or skipped.
C24 no-roots wording Real CLI subprocess with saved 72% manual score: --all-scores returns Overall=.72/rank=1; Verified returns null; both have no recorded runs/efficiency. Help and docs corrected.

Risk

Not ready to merge.
Real full-task manifest adaptation and exhaustive original acceptance coverage remain unfinished.
Unknown coverage stays unavailable instead of manufacturing rank eligibility.
Existing raw job metrics are unchanged.

Agents

  • Codex, GPT-6 Astra: implementation, verification and review-finding fixes.

@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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge conflict Conflicts with its base: merge or rebase it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant