Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
bdf7554
feat(compare): add leaderboard scoring foundations
aitianshi Nov 25, 2026
c08209f
feat(web): connect leaderboard pages and command
aitianshi Nov 25, 2026
5fbc337
fix(web): enforce leaderboard evidence identity and preserve chart in…
aitianshi Nov 25, 2026
e783e97
fix(compare): match leaderboard runs to their agent, backend and fold…
aitianshi Nov 25, 2026
84fb6d6
feat(compare): weigh partial leaderboard evidence by half and count c…
aitianshi Nov 25, 2026
8b8ab3a
fix(web): keep a wide table's hidden column names inside its scroll b…
aitianshi Nov 25, 2026
e256602
fix(compare): keep one leaderboard row per agent across concurrency, …
aitianshi Nov 26, 2026
d6ab4cd
fix(compare): name a leaderboard entry's version and dataset once, an…
aitianshi Nov 26, 2026
810cb67
fix(compare): keep leaderboard scores and column names on one line, t…
aitianshi Nov 26, 2026
e0d3573
fix(compare): lay the leaderboard out as its approved mockup
aitianshi Nov 26, 2026
be33650
fix(compare): slide leaderboard rows whole and fade cells, keep scatt…
aitianshi Nov 26, 2026
342abcd
fix(compare): keep leaderboard measures, strip heights and scatter na…
aitianshi Nov 26, 2026
f252a14
fix(compare): grow and narrow leaderboard columns, keep the scrollbar…
aitianshi Nov 26, 2026
adf05a7
feat(compare): rank every scored leaderboard row, with partial covera…
aitianshi Nov 26, 2026
9093ff6
feat(compare): laurel medals ranked among the rows on the board, stea…
aitianshi Nov 26, 2026
3391bb3
fix(compare): even leaderboard chip shades, a medal that reads at row…
aitianshi Nov 26, 2026
93bc119
fix(compare): leaderboard charts, card and averages follow the table'…
aitianshi Nov 26, 2026
2043e79
feat(compare): default leaderboard columns for MyPCBench, VitaBench, …
aitianshi Nov 26, 2026
24f09af
feat(compare): scoring settings as the leaderboard's other view, laid…
aitianshi Nov 26, 2026
a3e5bad
fix(compare): roomier leaderboard cards, evidence as a weighted table…
aitianshi Nov 26, 2026
3eccb7f
fix(compare): align the evidence table's scores, open runs by a plain…
aitianshi Nov 26, 2026
8a77161
fix(compare): centre the score columns, underline Open run, shorter e…
aitianshi Nov 26, 2026
5344346
fix(compare): drop the Partial lines from the agent card and the Over…
aitianshi Nov 26, 2026
d526321
fix(compare): switching between Leaderboard and Scoring settings keep…
aitianshi Nov 26, 2026
5f9b78e
fix(compare): the board comes back from Scoring settings at its heigh…
aitianshi Nov 26, 2026
82a6d91
fix(compare): radar labels further out with a hover pill; scoring row…
aitianshi Nov 26, 2026
3ae97f4
feat(compare): scoring rows open folded with an overview per family; …
aitianshi Nov 26, 2026
b251a5e
fix(compare): scoring rows fold without jumps, overview keeps to its …
aitianshi Nov 26, 2026
ff2912d
fix(compare): radar labels an even gap from their corners whichever w…
aitianshi Nov 26, 2026
12cda20
refactor(compare): remove custom benchmarks and the All scores mode; …
aitianshi Nov 26, 2026
ddc2d92
fix(compare): the score card opens below, above or beside what it exp…
aitianshi Nov 26, 2026
ae869bc
feat(compare): each family has its own Overall and ranks; the board r…
aitianshi Nov 26, 2026
60c2a8b
fix(compare): a radar's score card opens beside the whole chart, neve…
aitianshi Nov 26, 2026
50ed6a4
fix(compare): a row with no benchmark weighs 0 in Overall, whatever w…
aitianshi Nov 26, 2026
efa7ba0
fix(compare): score columns fit a 100% chip; a column no agent has sc…
aitianshi Nov 26, 2026
4f68daf
fix(compare): an agent's company and version wrap instead of being cu…
aitianshi Nov 26, 2026
d428b0d
fix(compare): leaderboard scores, comparisons and scoring writes hold…
aitianshi Nov 26, 2026
ddddd85
fix(compare): the leaderboard and scoring pages hold under keyboard u…
aitianshi Nov 26, 2026
b68a22a
fix(compare): leaderboard and scoring pages at mid widths, on phones,…
aitianshi Nov 26, 2026
f03c016
fix(compare): a cost under ten cents keeps its two figures, so a colu…
aitianshi Nov 26, 2026
67ca7e6
fix(compare): a pass^3 entry reads a run that can supply it before a …
aitianshi Nov 26, 2026
a0a15e9
fix(web): the 5 to 50 page sizes are the Leaderboard's; every other t…
aitianshi Nov 26, 2026
f32eda7
fix(compare): second review of the leaderboard fixes: one dataset lis…
aitianshi Nov 26, 2026
3d2949d
fix(compare): an agent chosen in a chart or a picker brings the table…
aitianshi Nov 26, 2026
e40d1bc
Merge remote-tracking branch 'origin/main' into feat/leaderboard-scoring
aitianshi Nov 26, 2026
c2d3101
fix(compare): measure the leaderboard's columns and labels in the int…
aitianshi Nov 27, 2026
005e24e
chore(compare): drop the leaderboard's CI step, its /settings/scoring…
aitianshi Nov 27, 2026
2ea2f6d
docs: drop the leaderboard's browser-test commands from AGENTS.md
aitianshi Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ is: `grep -m1 '"""' app/nullius/*.py app/nullius/runs/*.py`.
| --- | --- |
| `app/nullius/` itself | What all share: settings, paths, providers, hosts, running a recipe |
| `app/nullius/runs/`, `traces/`, `compare/` | Reading one job tree, a trial's trace, several runs |
| `app/nullius/leaderboard/` | Composite scoring, selected task evidence and profile scoring documents |
| `app/nullius/catalogue/` | A folder per entry under `benchmarks/`, `agents/`, `capabilities/`: its definition and code |
| `app/nullius/recipes/`, `harbor/` | What the builder offers and saves; the Harbor a recipe pins |
| `app/nullius/importers/`, `judge/` | Foreign results in; questions to a judge model |
Expand Down
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
if __package__: # the wheel's private web namespace
from .web.core import app
from .web import shared
from .web import filters, runs, traces, compare, builder, catalogue, agents, settings, workspaces, execute, judge, feasibility, reconcile, judge_tasks, onboarding, failure
from .web import filters, runs, traces, compare, builder, catalogue, agents, settings, workspaces, execute, judge, feasibility, reconcile, judge_tasks, onboarding, failure, leaderboard
else: # python app/app.py, and the source route suite
from web.core import app
from web import shared
from web import filters, runs, traces, compare, builder, catalogue, agents, settings, workspaces, execute, judge, feasibility, reconcile, judge_tasks, onboarding, failure
from web import filters, runs, traces, compare, builder, catalogue, agents, settings, workspaces, execute, judge, feasibility, reconcile, judge_tasks, onboarding, failure, leaderboard
from nullius import execution, workspace # noqa: E402 - recorded runs, picked up again at start; the workspace left open


Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/codex/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "codex",
"label": "Codex",
"company": "OpenAI",
"summary": "OpenAI's coding agent.",
"upstream": {
"license": "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/digitalmate/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "digitalmate",
"label": "DigitalMate",
"company": "ThinkFlowLab",
"summary": "DigitalMate's Personal Agent service, run as Hive Home with its owned WorkSwarm runtimes.",
"model": {
"apis": [
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/goose/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "goose",
"label": "Goose",
"company": "Agentic AI Foundation",
"summary": "The AAIF's open-source agent, formerly Block's.",
"upstream": {
"package": "@aaif/goose-acp",
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/jiuwenswarm/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "jiuwenswarm",
"label": "JiuwenSwarm",
"company": "openJiuwen",
"summary": "openJiuwen's WorkSwarm agent.",
"start": {
"acp": [
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/mini-swe-agent/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "mini-swe-agent",
"label": "mini-swe-agent",
"company": "Princeton and Stanford",
"summary": "Princeton's 100-line agent, bash only.",
"upstream": {
"package": "mini-swe-agent",
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/opencode/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "opencode",
"label": "OpenCode",
"company": "Anomaly",
"summary": "The open-source terminal coding agent.",
"upstream": {
"package": "opencode-ai",
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/swe-agent/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "swe-agent",
"label": "SWE-agent",
"company": "Princeton and Stanford",
"summary": "Princeton\u2019s software engineering agent with its upstream tool bundles.",
"upstream": {
"repository": "https://github.com/SWE-agent/SWE-agent",
Expand Down
1 change: 1 addition & 0 deletions app/nullius/catalogue/agents/terminus-2/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"schema": "nullius.agent/v1",
"key": "terminus-2",
"label": "Terminus 2",
"company": "Harbor",
"summary": "Harbor's terminal agent, used by Terminal-Bench.",
"upstream": {
"package": "harbor",
Expand Down
20 changes: 19 additions & 1 deletion app/nullius/catalogue/benchmarks/osworld1/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,5 +367,23 @@
"branch": "main"
}
}
}
},
"task_parts": [
{
"id": "os",
"label": "OS tasks",
"prefixes": [
"os__"
]
},
{
"id": "office",
"label": "Office tasks",
"prefixes": [
"libreoffice_calc__",
"libreoffice_impress__",
"libreoffice_writer__"
]
}
]
}
45 changes: 31 additions & 14 deletions app/nullius/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Value:
baseline: bool = False
tag: str = "" # a short name, where the full one does not fit (a scatter's dot)
series: int = 0 # its colour, 1 on, the same in every chart; 0 for none
key: str = ""

def cls(self, shape: str) -> str:
"""A mark's classes: its shape, its series (``s1`` to ``s<SERIES>``, cycling) and whether it is a check."""
Expand Down Expand Up @@ -105,6 +106,7 @@ class Mark:
y2: float = 0.0
cls: str = ""
title: str = ""
key: str = ""


@dataclass(frozen=True)
Expand All @@ -115,6 +117,7 @@ class Text:
anchor: str = "start"
cls: str = ""
leading: float = _LINE
key: str = ""


@dataclass(frozen=True)
Expand Down Expand Up @@ -256,24 +259,25 @@ def dot(v, scale, mid):
_TAG_W, _TAG_H = 7.5, 13.0 # a tag's width per character and its height, at the template's font size


def _tag_box(px: float, py: float, width: float, side: str) -> tuple:
def _tag_box(px: float, py: float, width: float, side: str, radius=_DOT, extra=0) -> tuple:
"""Where a tag ``width`` wide goes on ``side`` of a dot at (px, py): (x, baseline, anchor, box)."""
gap = _DOT + 3
gap = radius + 3
x, base, anchor = {"right": (px + gap, py + 4, "start"), "left": (px - gap, py + 4, "end"),
"above": (px, py - gap - 2, "middle"), "below": (px, py + gap + 10, "middle")}[side]
"above": (px, py - gap - 2 - extra, "middle"), "below": (px, py + gap + 10, "middle")}[side]
x0 = {"start": x, "end": x - width, "middle": x - width / 2}[anchor]
return x, base, anchor, (x0, base - _TAG_H + 3, x0 + width, base + 3)
return x, base, anchor, (x0, base - _TAG_H + 3, x0 + width, base + 3 + extra)


def _overlaps(a: tuple, b: tuple) -> bool:
return a[0] < b[2] and b[0] < a[2] and a[1] < b[3] and b[1] < a[3]


def scatter(x: Metric, y: Metric) -> Panel:
def scatter(x: Metric, y: Metric, *, tiles=False) -> Panel:
"""A dot per item at (x, y), and its tag (``Value.tag``, else its place in the order) beside it, spelled out in a
key under the plot. Every item keeps its own dot: items at one place are set in a ring around it, each tag outward
from its dot. Any other tag takes the first side of its dot inside the plot and clear of the dots and tags before
it."""
radius = 11 if tiles else _DOT
pairs = list(zip(x.values, y.values))
tags = [a.tag or str(i + 1) for i, (a, _) in enumerate(pairs)]
shown = [(t, a, b) for t, (a, b) in zip(tags, pairs) if a.value is not None and b.value is not None]
Expand All @@ -291,29 +295,42 @@ def scatter(x: Metric, y: Metric) -> Panel:
places.setdefault((sx(item[1].value), sy(item[2].value)), []).append(item)
dots = [] # (x, y, the tag's place on its ring or None, tag, x value, y value)
for (px, py), group in places.items():
ring = max(_DOT * 2, len(group) * (2 * _DOT + 4) / (2 * math.pi)) if len(group) > 1 else 0.0
ring = max(radius * 2, len(group) * (2 * radius + 4) / (2 * math.pi)) if len(group) > 1 else 0.0
for k, item in enumerate(group):
turn = 2 * math.pi * k / len(group) - math.pi / 2
at = (round(px + (ring + 11) * math.cos(turn), 2), round(py + (ring + 11) * math.sin(turn) + 4, 2)) if ring else None
dots.append((round(px + ring * math.cos(turn), 2), round(py + ring * math.sin(turn), 2), at, *item))
taken = [(px - _DOT, py - _DOT, px + _DOT, py + _DOT) for px, py, *_ in dots]
taken += [(tx - _TAG_W, ty - _TAG_H + 3, tx + _TAG_W, ty + 3) for _, _, (tx, ty), *_ in (d for d in dots if d[2])]
if tiles:
placed = []
for px, py, *rest in dots:
candidates = [(max(left + radius, min(right - radius, px + dx)),
max(top + radius, min(bottom - radius, py + dy)))
for distance in range(0, 100, 2)
for dx, dy in ((distance, 0), (-distance, 0), (0, distance), (0, -distance))]
px, py = next(((cx, cy) for cx, cy in candidates if all(math.hypot(cx-ox, cy-oy) >= 2*radius+2 for ox, oy, *_ in placed)), candidates[-1])
placed.append((px, py, *rest))
dots = placed
taken = [(px - radius, py - radius, px + radius, py + radius) for px, py, *_ in dots]
taken += [(tx - _TAG_W, ty - _TAG_H + 3, tx + _TAG_W, ty + 3) for _, _, (tx, ty), *_ in (d for d in dots if d[2] and not tiles)]
for px, py, at, tag, a, b in dots:
marks.append(Mark("circle", px, py, r=_DOT, cls=a.cls("dot"),
marks.append(Mark("tile" if tiles else "circle", px, py, r=radius, cls=a.cls("dot"), key=a.key,
title=f"{tag} {a.name}: {x.label} {a.reading}, {y.label} {b.reading}"))
if at: # on a ring, the tag sits outward from its dot
if at and not tiles: # on a ring, the tag sits outward from its dot
texts.append(Text(*at, (tag,), "middle", "tag"))
continue
width = _TAG_W * len(tag)
spots = [_tag_box(px, py, width, side) for side in ("right", "left", "above", "below")]
width = _TAG_W * max(len(tag), len(a.note) if tiles else 0)
extra = 15 if tiles and a.note else 0
offsets = [0] if not tiles else [0] + [sign*d for d in range(15, 211, 15) for sign in (1, -1)]
spots = [_tag_box(px, py + offset, width, side, radius, extra)
for offset in offsets for side in ("right", "left", "above", "below")]
inside = [s for s in spots if s[3][0] >= left and s[3][2] <= right and s[3][1] >= top and s[3][3] <= bottom]
tx, base, anchor, box = next((s for s in inside if not any(_overlaps(s[3], t) for t in taken)), (inside or spots)[0])
taken.append(box)
texts.append(Text(tx, base, (tag,), anchor, "tag"))
texts.append(Text(tx, base, (tag, a.note) if tiles and a.note else (tag,), anchor, "tag", key=a.key))
key_y = _S_HEIGHT + 8
key = _LEFT + (12 if any(a.series for a, _ in pairs) else 0)
drawn = {id(d[4]) for d in dots}
for tag, (a, _) in zip(tags, pairs):
for tag, (a, _) in ([] if tiles else zip(tags, pairs)):
# a name the caller numbered already (two runs of one agent) is not numbered twice
lines = tuple(textwrap.wrap(a.name if a.name.startswith(f"{tag}. ") else f"{tag}. {a.name}", _CHARS))
if a.series: # its colour beside its name
Expand Down
2 changes: 2 additions & 0 deletions app/nullius/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"serve": "open the web application",
"runs": "inspect run output",
"compare": "compare runs",
"leaderboard": "workspace composite agent scores",
"flags": "write a run's task flags",
"import": "import ATIF or OpenTelemetry output",
"standard": "inspect and run standard definitions",
Expand All @@ -26,6 +27,7 @@
MODULES = {
"runs": "nullius.runs.cli",
"compare": "nullius.compare.cli",
"leaderboard": "nullius.leaderboard.cli",
"flags": "nullius.runs.flags_cli",
"import": "nullius.importers.cli",
"standard": "nullius.standard.cli",
Expand Down
1 change: 1 addition & 0 deletions app/nullius/leaderboard/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Workspace agent scores and their selected task evidence."""
Loading