Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +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/leaderboard/` | Reading `labels.json`, scoring each axis over its labelled tasks, the board's selection |
| `app/nullius/catalogue/` | A folder per entry under `benchmarks/`, `agents/`, `modules/`: 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
1 change: 1 addition & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# WORKSPACE: the name the start-up roots open as (or the picker's name field)
# DATASET_ROOTS: local dataset checkouts to look in for task files
# DEBUG: the Werkzeug debugger (or --no-debug)
# LEADERBOARD_UNCHECKED_LABELS: whether the Leaderboard counts task labels not checked at a run's benchmark version: omit (default) or include
# RUNS_DIR: where runs started from the builder keep their script, log and job (default runs/ in the user data directory)
# HARBOR_PINS: where the Harbor a recipe pins is built and kept on this machine (default harbor-pins/ beside the runs)
# STANDARD_DIR: where the Nullius standard installs agents, Modules and benchmark upstreams (default standard/ in the user data directory)
Expand Down
20 changes: 1 addition & 19 deletions app/nullius/catalogue/benchmarks/osworld1/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,23 +405,5 @@
"branch": "main"
}
}
},
"task_parts": [
{
"id": "os",
"label": "OS tasks",
"prefixes": [
"os__"
]
},
{
"id": "office",
"label": "Office tasks",
"prefixes": [
"libreoffice_calc__",
"libreoffice_impress__",
"libreoffice_writer__"
]
}
]
}
}
2 changes: 1 addition & 1 deletion app/nullius/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"serve": "open the web application",
"runs": "inspect run output",
"compare": "compare runs",
"leaderboard": "workspace composite agent scores",
"leaderboard": "workspace agent scores over labelled tasks",
"flags": "write a run's task flags",
"import": "import ATIF or OpenTelemetry output",
"standard": "inspect and run standard definitions",
Expand Down
24 changes: 18 additions & 6 deletions app/nullius/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ def artifact(self, job_id: str, trial: str, key: str, workspace: Optional[str] =
def compare(self, *job_ids: str, matched: bool = False, workspace: Optional[str] = None) -> dict:
return self.request("GET", "/compare", job=list(job_ids), matched=matched, workspace=workspace)

def leaderboard(self, workspace: Optional[str] = None) -> dict:
"""The workspace's agents ranked by their composite score, under the server's Scoring settings; ``steps`` and
``calls`` stay uncounted."""
return self.request("GET", "/leaderboard", workspace=workspace)
def leaderboard(self, workspace: Optional[str] = None, *, rows=None, every_task: bool = False, hide_axes=(), show_axes=(),
hide_versions=(), hide_runs=(), unchecked_labels: Optional[str] = None) -> dict:
"""The workspace's Leaderboard: each row over its labelled tasks, by axis. ``rows``: the keys of the rows
compared on shared tasks, every row by default; ``every_task``: the view asked, never ranked; the rest
leaves an axis, a ``benchmark@version`` or a run out. ``steps`` and ``calls`` stay uncounted."""
return self.request("GET", "/leaderboard", workspace=workspace, row=list(rows or ()), tasks="every" if every_task else None,
hide_axis=list(hide_axes), show_axis=list(show_axes), hide_version=list(hide_versions),
hide_run=list(hide_runs), unchecked=unchecked_labels)

# judgements: reading one is free, asking is a paid model call for each trial

Expand Down Expand Up @@ -267,8 +271,14 @@ def main(argv=None) -> int:
p.add_argument("job_ids", nargs="+")
p.add_argument("--matched", action="store_true")
p.add_argument("--workspace")
p = sub.add_parser("leaderboard", help="the workspace's agents ranked by composite score")
p = sub.add_parser("leaderboard", help="the workspace's agents over their labelled tasks, ranked on shared tasks")
p.add_argument("--workspace")
p.add_argument("--row", dest="rows", action="append", metavar="KEY")
p.add_argument("--every-task", action="store_true")
for flag, dest, value in (("hide-axis", "hide_axes", "AXIS"), ("show-axis", "show_axes", "AXIS"),
("hide-version", "hide_versions", "BENCHMARK@VERSION"), ("hide-run", "hide_runs", "ID")):
p.add_argument(f"--{flag}", dest=dest, action="append", default=[], metavar=value)
p.add_argument("--unchecked-labels", choices=("omit", "include"))
p = sub.add_parser("judgements", help="a judge's records for a job")
p.add_argument("job_id")
p.add_argument("--lane", choices=("decision", "llm"), default="decision")
Expand Down Expand Up @@ -320,7 +330,9 @@ def main(argv=None) -> int:
"jobs": lambda: nx.jobs(a.workspace),
"job": lambda: nx.trial(a.job_id, a.trial, a.workspace) if a.trial else nx.job(a.job_id, a.workspace),
"compare": lambda: nx.compare(*a.job_ids, matched=a.matched, workspace=a.workspace),
"leaderboard": lambda: nx.leaderboard(a.workspace),
"leaderboard": lambda: nx.leaderboard(a.workspace, rows=a.rows, every_task=a.every_task, hide_axes=a.hide_axes,
show_axes=a.show_axes, hide_versions=a.hide_versions, hide_runs=a.hide_runs,
unchecked_labels=a.unchecked_labels),
"judgements": lambda: nx.judgements(a.job_id, a.lane, a.workspace),
"judge": lambda: (nx.judge(a.job_id, a.trial, a.lane, a.workspace) if a.trial
else nx.judge_job(a.job_id, a.lane, confirm=a.yes, workspace=a.workspace)),
Expand Down
Loading
Loading