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
5 changes: 2 additions & 3 deletions app/nullius/catalogue/benchmarks/browsecomp/benchmark.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Agents search the public web. Original asks a model alone, with no tools.",
"The upstream publishes questions and answers encrypted, to keep them out of training data. A task list shows topics only; a run's folder holds them decrypted, so do not publish a run, a trace or a page made from one.",
"The upstream sets no time limit and its questions take long searches: an agent gets an hour for each, unless the run sets another limit.",
"Like the paper offers the upstream's OpenAI models that the provider lists under their own ID. Another model, or one the provider names differently, runs as Any of your choice, asked as the listed model you choose."
"Original offers the upstream’s named configurations on providers that serve their model. Any of your choice uses another model with the listed configuration you choose."
],
"upstream_limitations": [
"As published, no answer counts as correct: the upstream compares the grader's whole verdict line with \"yes\". Its pull requests 67 and 93, both open, fix it. The Grading fix version runs the second.",
Expand All @@ -22,8 +22,7 @@
"limitations": [
"A limit takes the first questions of the file. The upstream's --examples draws a seeded random sample.",
"The upstream's three Claude models are not offered: they are asked through Anthropic's API while the grader is asked through OpenAI's, and a run has one provider.",
"A model call the provider refuses ends the question as an API error, with no score. The upstream grades its placeholder reply as a miss.",
"Runs and Compare show an Original run under its model ID: listed models that share one, such as o3 and o3_low, read alike there. A run's Reasoning setting replaces a listed model's own effort."
"A model call the provider refuses ends the question as an API error, with no score. The upstream grades its placeholder reply as a miss."
],
"datasets": [
{
Expand Down
48 changes: 40 additions & 8 deletions app/nullius/catalogue/benchmarks/browsecomp/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,53 @@
],
"default": "gpt-4.1",
"served_as": {
"o3": "o3-2025-04-16",
"o3-temp-1": "o3-2025-04-16",
"o3_high": "o3-2025-04-16",
"o3_low": "o3-2025-04-16",
"o3": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o3-temp-1": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o3_high": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o3_low": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o4-mini": "o4-mini-2025-04-16",
"o4-mini_high": "o4-mini-2025-04-16",
"o4-mini_low": "o4-mini-2025-04-16",
"o1_high": "o1",
"o1_low": "o1",
"o3-mini_high": "o3-mini",
"o3-mini_low": "o3-mini",
"gpt-4.1": "gpt-4.1-2025-04-14",
"gpt-4.1-temp-1": "gpt-4.1-2025-04-14",
"gpt-4.1-mini": "gpt-4.1-mini-2025-04-14",
"gpt-4.1-nano": "gpt-4.1-nano-2025-04-14",
"gpt-4.1": {
"openai": "gpt-4.1-2025-04-14",
"custom": "gpt-4.1-2025-04-14",
"openrouter": "openai/gpt-4.1"
},
"gpt-4.1-temp-1": {
"openai": "gpt-4.1-2025-04-14",
"custom": "gpt-4.1-2025-04-14",
"openrouter": "openai/gpt-4.1"
},
"gpt-4.1-mini": {
"openai": "gpt-4.1-mini-2025-04-14",
"custom": "gpt-4.1-mini-2025-04-14",
"openrouter": "openai/gpt-4.1-mini"
},
"gpt-4.1-nano": {
"openai": "gpt-4.1-nano-2025-04-14",
"custom": "gpt-4.1-nano-2025-04-14",
"openrouter": "openai/gpt-4.1-nano"
},
"gpt-4o-2024-08-06-temp-1": "gpt-4o-2024-08-06",
"gpt-4o-mini": "gpt-4o-mini-2024-07-18",
"gpt-4.5-preview": "gpt-4.5-preview-2025-02-27",
Expand Down
5 changes: 2 additions & 3 deletions app/nullius/catalogue/benchmarks/simpleqa/benchmark.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"The rate is the share of questions graded correct. Incorrect and not attempted both count as a miss; each trial keeps its grade.",
"The grader runs at temperature 0.5, the upstream's setting: the same answer can get another grade on another run.",
"Agents run with their web tools off, as the upstream asks a model with no tools. In a container an agent reaches only its model; unsandboxed on this machine, it has the machine's network.",
"Like the paper offers the upstream's OpenAI models that the provider lists under their own ID. Another model, or one the provider names differently, runs as Any of your choice, asked as the listed model you choose.",
"Original offers the upstream’s named configurations on providers that serve their model. Any of your choice uses another model with the listed configuration you choose.",
"On Harbor the tasks have internet access, and their own script grades with gpt-5-mini on OpenAI's API: that route needs an OpenAI key. Compare Harbor scores with Harbor scores only."
],
"upstream_limitations": [
Expand All @@ -27,8 +27,7 @@
"A job reports the correct rate alone: the upstream's incorrect and not attempted rates, its accuracy given attempted and its F1 are not computed.",
"A limit takes the first questions of the file. The upstream's --examples draws a seeded random sample.",
"The upstream's three Claude models are not offered: they are asked through Anthropic's API while the grader is asked through OpenAI's, and a run has one provider.",
"A model call the provider refuses ends the question as an API error, with no score. The upstream grades its placeholder reply as a miss.",
"Runs and Compare show an Original run under its model ID: listed models that share one, such as o3 and o3_low, read alike there. A run's Reasoning setting replaces a listed model's own effort."
"A model call the provider refuses ends the question as an API error, with no score. The upstream grades its placeholder reply as a miss."
],
"datasets": [
{
Expand Down
48 changes: 40 additions & 8 deletions app/nullius/catalogue/benchmarks/simpleqa/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,53 @@
],
"default": "gpt-4.1",
"served_as": {
"o3": "o3-2025-04-16",
"o3-temp-1": "o3-2025-04-16",
"o3_high": "o3-2025-04-16",
"o3_low": "o3-2025-04-16",
"o3": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o3-temp-1": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o3_high": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o3_low": {
"openai": "o3-2025-04-16",
"custom": "o3-2025-04-16",
"openrouter": "openai/o3"
},
"o4-mini": "o4-mini-2025-04-16",
"o4-mini_high": "o4-mini-2025-04-16",
"o4-mini_low": "o4-mini-2025-04-16",
"o1_high": "o1",
"o1_low": "o1",
"o3-mini_high": "o3-mini",
"o3-mini_low": "o3-mini",
"gpt-4.1": "gpt-4.1-2025-04-14",
"gpt-4.1-temp-1": "gpt-4.1-2025-04-14",
"gpt-4.1-mini": "gpt-4.1-mini-2025-04-14",
"gpt-4.1-nano": "gpt-4.1-nano-2025-04-14",
"gpt-4.1": {
"openai": "gpt-4.1-2025-04-14",
"custom": "gpt-4.1-2025-04-14",
"openrouter": "openai/gpt-4.1"
},
"gpt-4.1-temp-1": {
"openai": "gpt-4.1-2025-04-14",
"custom": "gpt-4.1-2025-04-14",
"openrouter": "openai/gpt-4.1"
},
"gpt-4.1-mini": {
"openai": "gpt-4.1-mini-2025-04-14",
"custom": "gpt-4.1-mini-2025-04-14",
"openrouter": "openai/gpt-4.1-mini"
},
"gpt-4.1-nano": {
"openai": "gpt-4.1-nano-2025-04-14",
"custom": "gpt-4.1-nano-2025-04-14",
"openrouter": "openai/gpt-4.1-nano"
},
"gpt-4o-2024-08-06-temp-1": "gpt-4o-2024-08-06",
"gpt-4o-mini": "gpt-4o-mini-2024-07-18",
"gpt-4.5-preview": "gpt-4.5-preview-2025-02-27",
Expand Down
5 changes: 3 additions & 2 deletions app/nullius/compare/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def totals_of(job: parse.Job, cohort: str) -> dict:
def column(job: parse.Job, cohort: str) -> dict:
return {
"job_id": job.job_id, "dir": job.dir, "dataset": job.dataset,
"model": job.model_name, "agent": job.agent_label, "kind": job.kind,
"model": job.model_name, "model_label": job.model_label,
"configuration": job.configuration_name, "reasoning_effort": job.reasoning_effort, "agent": job.agent_label, "kind": job.kind,
"is_control": job.is_control,
"counts": job.counts, "totals": totals_of(job, cohort),
}
Expand Down Expand Up @@ -185,7 +186,7 @@ def _print(view: comparison.Comparison, filters: dict | None = None) -> None:
print(" note: the runs record different datasets; task rows are kept apart by dataset")
if not view.datasets_known:
print(" note: a run records no dataset; its tasks cannot be matched by name alone")
rows = []
rows = [("Model", [c["model_label"] or "—" for c in columns])]
for key, label in TOTALS:
if key not in columns[0]["totals"]:
continue
Expand Down
5 changes: 3 additions & 2 deletions app/nullius/runs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def job_row(job: parse.Job) -> dict:
"job_id": job.job_id,
"dir": job.dir,
"dataset": job.dataset,
"model": job.model_name,
"model": job.model_name, "model_label": job.model_label,
"configuration": job.configuration_name, "reasoning_effort": job.reasoning_effort,
"agent": job.agent_label,
"kind": job.kind,
"state": job.state,
Expand Down Expand Up @@ -321,7 +322,7 @@ def _show(args) -> int:
row = job_row(job)
rate = lambda v: "—" if v is None else f"{100 * v:.0f}%"
print(f"{job.job_id}")
print(f" dataset {row['dataset'] or '—'} · model {row['model'] or '—'} · "
print(f" dataset {row['dataset'] or '—'} · model {row['model_label'] or '—'} · "
f"agent {row['agent'] or '—'} · {row['state']}")
print(f" {row['n_trials']} trial(s) of {row['n_planned']} planned: "
f"resolved {row['n_resolved']} · infra {row['n_infra']} · "
Expand Down
20 changes: 19 additions & 1 deletion app/nullius/runs/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# The shape this module produces. A workspace caches parsed Jobs keyed on it,
# so bump it when a Trial or Job field is added, renamed or means something
# new — otherwise a cache written by the old parse is read back as current.
SCHEMA = "32"
SCHEMA = "33"

# What a rate-limit record in `agent/gateway.log` looks like. The agent's SDK
# retries a 429 below the harness, so a limit the run survived leaves nothing in result.json —
Expand Down Expand Up @@ -564,6 +564,18 @@ class Job:
# dataset is not surely each trial's.
forced_merge: bool = False

@property
def configuration_name(self) -> str:
"""The upstream configuration recorded with this run, empty for other runs."""
return self.identity.get("configuration", "")

@property
def model_label(self) -> str:
"""Configuration, served model and effective effort, shared by pages and commands."""
name = self.configuration_name
label = f"{name} ({self.model_name})" if name and name != self.model_name else self.model_name
return label + (f" · effort {self.reasoning_effort}" if self.reasoning_effort else "")

@property
def agent_label(self) -> str:
"""Readable half of the agent id — the class, not the module path."""
Expand Down Expand Up @@ -1279,6 +1291,9 @@ def identity_of(cfg: dict, res: dict, agent_version: str = "") -> dict:
"benchmark_options": _options(std.get("benchmark_options")),
"agent": word(std.get("plugged")), "agent_version": word(agent_version),
"agent_options": _options(std.get("options")), "backend": word(std.get("backend")), "model": word(first.get("model_name"))}
setup = std.get("setup") if isinstance(std.get("setup"), dict) else {}
out["configuration"] = word(setup.get("asked")) if setup.get("name") == "original" else ""
out["reasoning"] = _options(std.get("reasoning"))
# a control asks no model unless it has a judge or a simulated user; the provider it records is then a default
asks = out["model"] or std.get("judge") or std.get("simulator") or std.get("kind") != "control"
out["provider"] = word(std.get("provider")) if asks else ""
Expand Down Expand Up @@ -1394,6 +1409,9 @@ def parse_job(job_dir: str, reuse=None, trials: bool = True) -> Job:
else str(src.get("name") or ""))}
job.budget = _budget(res.get("budget"))
job.identity = identity_of(cfg, res, job.agent_version)
effort = job.identity.get("reasoning", {}).get(job.model_name)
if isinstance(effort, str):
job.reasoning_effort = effort
job.forced_merge = bool(std.get("merged_despite"))
job.reruns = _reruns(res)
job.standard = bool(std)
Expand Down
16 changes: 12 additions & 4 deletions app/nullius/standard/contract/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,13 +1267,18 @@ def comparable(orig: dict, model: str) -> bool:

def setup_model(orig: dict, model: str, provider: str) -> str:
"""An original model's served name; direct OpenAI takes no OpenRouter maker prefix."""
name = (orig.get("providers") or {}).get(provider, "") + (orig.get("served_as") or {}).get(model, model)
served = (orig.get("served_as") or {}).get(model, model)
if isinstance(served, dict):
return served.get(provider, (orig.get("providers") or {}).get(provider, "") + model)
name = (orig.get("providers") or {}).get(provider, "") + served
return name.removeprefix("openai/") if provider == "openai" else name


def upstream_name(orig: dict, model: str, provider: str) -> str:
"""``model`` by the name the original's upstream knows, when given as ``provider`` lists it."""
names = {setup_model(orig, m, provider): m for m in orig.get("models") or []}
names = {}
for m in orig.get("models") or []:
names.setdefault(setup_model(orig, m, provider), m)
return model if model in (orig.get("models") or []) else names.get(model, model)


Expand Down Expand Up @@ -1361,8 +1366,11 @@ def _setups(s) -> List[str]:
bad.append(f"{w}.side_models: the models the upstream's code asks besides its answerer, each once, beside models")
side = []
sa = x.get("served_as", {})
if not isinstance(sa, dict) or not all(m in models + side and isinstance(v, str) and _MODEL_NAME.match(v) for m, v in sa.items()):
bad.append(f"{w}.served_as: {{one of its models: the name the provider serves it as}}")
if not isinstance(sa, dict) or not all(m in models + side and (isinstance(v, str) and _MODEL_NAME.match(v)
or isinstance(v, dict) and v and all(
isinstance(x.get("providers"), dict) and p in x["providers"] and isinstance(n, str) and _MODEL_NAME.match(n)
for p, n in v.items())) for m, v in sa.items()):
bad.append(f"{w}.served_as: {{one of its models: a name, or {{provider: exact served name}}}}")
pv = x.get("providers")
if not isinstance(pv, dict) or not pv or not all(p in ("openrouter", "openai", "anthropic", "custom") and isinstance(v, str) for p, v in pv.items()):
bad.append(f"{w}.providers: {{openrouter|openai|anthropic|custom: the prefix its models' names carry there}}")
Expand Down
3 changes: 2 additions & 1 deletion app/nullius/standard/runner/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,8 @@ def write_config(job_dir: str, *, job: str, bench: dict, other: dict, model: str
**({"exchanges": exchanges, "exchanges_max_mb": exchanges_max_mb} if exchanges else {})},
"runner_items": [bench["units"]["noun"], bench["units"]["nouns"]],
"n_concurrent_trials": concurrency,
"agents": [{"name": agent_name(other), "model_name": model}],
"agents": [{"name": agent_name(other), "model_name": model,
**({"kwargs": {"reasoning_effort": reasoning[model]}} if reasoning and model in reasoning else {})}],
"datasets": [{"name": f"{bench['key']}/{dataset}", "n_tasks": len(units)}]}, indent=2))


Expand Down
7 changes: 3 additions & 4 deletions app/templates/compare/compare.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,10 @@
{% call(i) each() %}{% set j = jobs[i] %}
<td><span class="strong">{{ j.agent_label or '—' }}</span>
{%- if j.is_control %} <span class="chip-control"
title="Harbor control: excluded from every ranking below">control</span>{% endif %}
{%- if j.reasoning_effort %} <span class="faint">· effort {{ j.reasoning_effort }}</span>{% endif %}</td>
title="Harbor control: excluded from every ranking below">control</span>{% endif %}</td>
{% endcall %}
</tr>
{{ row('Model', jobs|map(attribute='model_name')|list, sticky='wide') }}
{{ row('Model', jobs|map(attribute='model_label')|list, sticky='wide') }}
{{ row('Benchmark', benchmarks, sticky='wide') }}
<tr>
<th{{ classes(METRIC, true, 'rowhead') }}>Dataset</th>
Expand Down Expand Up @@ -263,7 +262,7 @@
{% set j = jobs[c.i] if c.i is not none else none %}
<th class="draggable-col{{ ' compare-empty' if j is none }}" draggable="true" data-job="{{ c.ref.value }}" title="{{ j.job_id ~ ': ' if j is not none }}drag to reorder">
{%- if j is not none %}
{{ j.agent_label or j.job_id }}{% if j.model_name %} · {{ j.model_name }}{% endif %}
{{ j.agent_label or j.job_id }}{% if j.model_name %} · {{ j.model_label }}{% endif %}
{%- if j.is_control %} <span class="chip-control">control</span>{% endif %}
{%- endif %}
</th>
Expand Down
5 changes: 3 additions & 2 deletions app/templates/runs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
{%- if part == 'fold' or r.twice %}{{ name }}{% else %}<a href="{{ url_for('job', job_id=r.job_id, workspace=workspace.name) }}">{{ name }}</a>{% endif %}
{%- if j and j.runner %} {{ what_ran(j) }}{% elif j and j.agent_version %} <span class="la-ver mono">{{ j.agent_version }}</span>{% endif %}
{%- endif %}</span>
{% if j and j.configuration_name %}<small class="mono">{{ j.model_label }}</small>{% endif %}
{%- if part == 'fold' %}
<small>{{ r.shards|length }} shards{% if r.note %} · <span class="la-note" title="{{ r.notes|join('; ') }}">⚠ {{ r.note }}</span>{% endif %}</small>
{%- else %}
Expand Down Expand Up @@ -184,7 +185,7 @@ <h2>{{ g.dataset_title if L.dataset else (L.name or g.dataset_title) }}{% if g.n
{# A control row carries no outcomes to filter by: the chips count the
agents' trials, and a nop's rejections are not failed verifications. #}
{% set v = verdicts[(j.job_id, j.dir)] %}{% set e = ended[(j.job_id, j.dir)] %}{% set oc = j.counts %}
<tr data-search="{{ [j.job_id, j.agent_label, j.model_name, j.runner, j.dataset, j.dataset|dsname]|select|unique|join(' ') }}" data-outcomes="{% if not v %}{% for k in ORDER %}{% if oc[k] %}{{ k }} {% endif %}{% endfor %}{% if j.n_regressions %}regression{% endif %}{% endif %}"
<tr data-search="{{ [j.job_id, j.agent_label, j.model_label, j.runner, j.dataset, j.dataset|dsname]|select|unique|join(' ') }}" data-outcomes="{% if not v %}{% for k in ORDER %}{% if oc[k] %}{{ k }} {% endif %}{% endfor %}{% if j.n_regressions %}regression{% endif %}{% endif %}"
data-f-dataset="{{ j.dataset }}" data-f-model="{{ j.model_name }}"
data-f-agent="{{ j.agent_label }}"{% if v %} class="control-row" data-control="{{ v.control }}" data-state="{{ v.state }}"{% endif %}>
{{ check_cell('Compare ' ~ j.job_id, j.job_id) }}
Expand All @@ -204,7 +205,7 @@ <h2>{{ g.dataset_title if L.dataset else (L.name or g.dataset_title) }}{% if g.n
<td data-col="time" data-sort="{{ j.duration_min or -1 }}" class="align-right faint">
{%- if j.duration_min %}{{ j.duration_min|runtime }}{% else %}—{% endif -%}
</td>
<td data-col="model" class="mono faint">{{ j.model_name }}</td>
<td data-col="model" class="mono faint">{{ j.model_label }}</td>
<td data-col="dataset" data-sort="{{ j.dataset|dsname }}" title="{{ j.dataset }}">{{ j.dataset|dsname }}</td>
{# A control's mix is its verdict in the control colour — behaved
against not — and sorts below every agent row (-1) so the column
Expand Down
Loading