diff --git a/app/nullius/catalogue/benchmarks/browsecomp/benchmark.json b/app/nullius/catalogue/benchmarks/browsecomp/benchmark.json index ba1210d91..09ee9bafe 100644 --- a/app/nullius/catalogue/benchmarks/browsecomp/benchmark.json +++ b/app/nullius/catalogue/benchmarks/browsecomp/benchmark.json @@ -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.", @@ -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": [ { diff --git a/app/nullius/catalogue/benchmarks/browsecomp/standard.json b/app/nullius/catalogue/benchmarks/browsecomp/standard.json index 7debcfc77..e5a940aa3 100644 --- a/app/nullius/catalogue/benchmarks/browsecomp/standard.json +++ b/app/nullius/catalogue/benchmarks/browsecomp/standard.json @@ -136,10 +136,26 @@ ], "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", @@ -147,10 +163,26 @@ "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", diff --git a/app/nullius/catalogue/benchmarks/simpleqa/benchmark.json b/app/nullius/catalogue/benchmarks/simpleqa/benchmark.json index 43fce4948..e3b540f56 100644 --- a/app/nullius/catalogue/benchmarks/simpleqa/benchmark.json +++ b/app/nullius/catalogue/benchmarks/simpleqa/benchmark.json @@ -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": [ @@ -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": [ { diff --git a/app/nullius/catalogue/benchmarks/simpleqa/standard.json b/app/nullius/catalogue/benchmarks/simpleqa/standard.json index 41e5f588d..8a0a37db6 100644 --- a/app/nullius/catalogue/benchmarks/simpleqa/standard.json +++ b/app/nullius/catalogue/benchmarks/simpleqa/standard.json @@ -128,10 +128,26 @@ ], "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", @@ -139,10 +155,26 @@ "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", diff --git a/app/nullius/compare/cli.py b/app/nullius/compare/cli.py index 724aec64b..5f888097b 100644 --- a/app/nullius/compare/cli.py +++ b/app/nullius/compare/cli.py @@ -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), } @@ -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 diff --git a/app/nullius/runs/cli.py b/app/nullius/runs/cli.py index a0de4f575..f631b6a76 100644 --- a/app/nullius/runs/cli.py +++ b/app/nullius/runs/cli.py @@ -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, @@ -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']} · " diff --git a/app/nullius/runs/parse.py b/app/nullius/runs/parse.py index b55d6db0d..03a53e82f 100644 --- a/app/nullius/runs/parse.py +++ b/app/nullius/runs/parse.py @@ -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 — @@ -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.""" @@ -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 "" @@ -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) diff --git a/app/nullius/standard/contract/definitions.py b/app/nullius/standard/contract/definitions.py index d40ca7acf..e12b9df3f 100644 --- a/app/nullius/standard/contract/definitions.py +++ b/app/nullius/standard/contract/definitions.py @@ -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) @@ -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}}") diff --git a/app/nullius/standard/runner/job.py b/app/nullius/standard/runner/job.py index d54edcc7a..2ed983635 100644 --- a/app/nullius/standard/runner/job.py +++ b/app/nullius/standard/runner/job.py @@ -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)) diff --git a/app/templates/compare/compare.html b/app/templates/compare/compare.html index 1d7423abc..bd9e11ba4 100644 --- a/app/templates/compare/compare.html +++ b/app/templates/compare/compare.html @@ -186,11 +186,10 @@ {% call(i) each() %}{% set j = jobs[i] %} {{ j.agent_label or '—' }} {%- if j.is_control %} control{% endif %} - {%- if j.reasoning_effort %} · effort {{ j.reasoning_effort }}{% endif %} + title="Harbor control: excluded from every ranking below">control{% endif %} {% endcall %} - {{ 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') }} Dataset @@ -263,7 +262,7 @@ {% set j = jobs[c.i] if c.i is not none else none %} {%- 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 %} control{% endif %} {%- endif %} diff --git a/app/templates/runs/index.html b/app/templates/runs/index.html index 3a536cd2d..158c2e5a4 100644 --- a/app/templates/runs/index.html +++ b/app/templates/runs/index.html @@ -32,6 +32,7 @@ {%- if part == 'fold' or r.twice %}{{ name }}{% else %}{{ name }}{% endif %} {%- if j and j.runner %} {{ what_ran(j) }}{% elif j and j.agent_version %} {{ j.agent_version }}{% endif %} {%- endif %} + {% if j and j.configuration_name %}{{ j.model_label }}{% endif %} {%- if part == 'fold' %} {{ r.shards|length }} shards{% if r.note %} · ⚠ {{ r.note }}{% endif %} {%- else %} @@ -184,7 +185,7 @@

{{ 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 %} - {{ check_cell('Compare ' ~ j.job_id, j.job_id) }} @@ -204,7 +205,7 @@

{{ g.dataset_title if L.dataset else (L.name or g.dataset_title) }}{% if g.n {%- if j.duration_min %}{{ j.duration_min|runtime }}{% else %}—{% endif -%} - {{ j.model_name }} + {{ j.model_label }} {{ j.dataset|dsname }} {# A control's mix is its verdict in the control colour — behaved against not — and sorts below every agent row (-1) so the column diff --git a/app/templates/runs/job.html b/app/templates/runs/job.html index 99592a7df..8388b6687 100644 --- a/app/templates/runs/job.html +++ b/app/templates/runs/job.html @@ -49,7 +49,7 @@ {% call identity_card(agent_rows) %} {% if job.agent_label %}{% endif %}
{% if job.agent_label %}{{ job.agent_label }}{% if job.agent_version %} v{{ job.agent_version }}{% endif %}{% endif %} - {% if job.model_name %}{{ job.model_name }}{% endif %}
+ {% if job.model_name %}{{ job.model_label }}{% endif %} {% endcall %} {% endif %} {% if control %}control diff --git a/app/tests/field_contract.json b/app/tests/field_contract.json index b9abc1c8f..7ad43e550 100644 --- a/app/tests/field_contract.json +++ b/app/tests/field_contract.json @@ -375,6 +375,7 @@ "agents", "budget", "complement", + "configuration_name", "control_source", "counts", "dataset", @@ -399,6 +400,7 @@ "mean_score", "mean_score_planned", "merged_from", + "model_label", "model_name", "n_errored_trials", "n_infra", diff --git a/app/tests/test_standard_setups.py b/app/tests/test_standard_setups.py index 22c92d5a3..760a179ab 100644 --- a/app/tests/test_standard_setups.py +++ b/app/tests/test_standard_setups.py @@ -102,6 +102,23 @@ def test_each_wrong_field_is_named(self): self.assertTrue(any("setups.model.runs_as" in p for p in self.problems(dict(SETUPS, model={"summary": "x", "runs_as": "nope"})))) self.assertTrue(any("is not a field" in p for p in self.problems({"original": dict(o, temperature=0)}))) + def test_provider_specific_names_validate_and_preserve_legacy_prefixes(self): + orig = dict(SETUPS["original"], served_as={"paper-1": {"openrouter": "maker/paper"}}) + self.assertEqual(self.problems({"original": orig}), []) + self.assertEqual(definitions.setup_model(orig, "paper-1", "openrouter"), "maker/paper") + self.assertEqual(definitions.setup_model(orig, "paper-1", "custom"), "paper-1") + self.assertEqual(definitions.setup_model(SETUPS["original"], "paper-1-16k", "openrouter"), "vendor/paper-1") + for value in ({}, {"unknown": "m"}, {"openrouter": 1}, {"openrouter": ""}): + with self.subTest(value=value): + bad = dict(orig, served_as={"paper-1": value}) + self.assertTrue(any("served_as" in p for p in self.problems({"original": bad}))) + + def test_shared_served_id_keeps_first_configuration_and_explicit_names(self): + orig = dict(SETUPS["original"], served_as={"paper-1": "served", "paper-1-16k": "served"}) + self.assertEqual(definitions.upstream_name(orig, "vendor/served", "openrouter"), "paper-1") + self.assertEqual(definitions.upstream_name(orig, "paper-1-16k", "openrouter"), "paper-1-16k") + self.assertEqual(definitions.upstream_name(orig, "unknown", "openrouter"), "unknown") + def test_an_agent_cannot_take_a_setups_name(self): a = {"schema": "nullius.agent/v1", "key": "original"} self.assertIn("key: original is the word for a benchmark's setup", definitions.problems(a, "agent")) @@ -141,6 +158,21 @@ def test_the_original_takes_only_the_papers_models_each_as_the_provider_spells_i self.assertEqual(definitions.upstream_name(orig, sent, provider), "paper-1-16k") self.assertEqual(recipe._bench_page(b)["setups"][0]["sent"][provider]["paper-1-16k"], sent) + def test_simple_evals_configurations_resolve_on_each_provider(self): + from pathlib import Path + for key in ("simpleqa", "browsecomp"): + path = Path(__file__).resolve().parents[1] / "nullius" / "catalogue" / "benchmarks" / key / "standard.json" + b = json.loads(path.read_text()) + orig = b["setups"]["original"] + for provider, sent in (("openai", "gpt-4.1-2025-04-14"), ("custom", "gpt-4.1-2025-04-14"), + ("openrouter", "openai/gpt-4.1")): + with self.subTest(benchmark=key, provider=provider): + other, why = definitions.setup(b, "original", "gpt-4.1", provider) + self.assertEqual(why, "") + self.assertEqual(other["sent"], sent) + self.assertEqual(definitions.upstream_name(orig, sent, provider), "gpt-4.1") + self.assertEqual(recipe._bench_page(b)["setups"][0]["sent"][provider]["gpt-4.1"], sent) + def test_the_originals_side_models_go_as_the_provider_serves_them_and_never_as_the_reader(self): b = dict(self.b, setups=dict(SETUPS, original=dict(SETUPS["original"], side_models=["extractor"]))) o, _ = definitions.setup(b, "original", "paper-1", "openrouter") @@ -232,6 +264,32 @@ def test_the_original_runs_the_papers_units_asked_as_its_model(self): self.assertEqual(c["runner_items"], ["conversation", "conversations"]) self.assertEqual(c["standard"]["kind"], "upstream") self.assertNotIn("benchmark_options", c["standard"]) + from nullius.runs import parse + self.assertEqual(parse.parse_job(job_dir).model_label, "paper-1-16k (paper-1)") + + def test_configuration_and_override_survive_recording_and_parsing(self): + from nullius.runs import parse, cli + from nullius.compare.cli import column + job_dir = self.go("original", "paper-1-16k", reasoning={"paper-1": "high"}) + config_path = os.path.join(job_dir, "config.json") + with open(config_path) as f: + config = json.load(f) + self.assertEqual(config["agents"][0]["kwargs"]["reasoning_effort"], "high") + self.assertEqual(config["standard"]["reasoning"], {"paper-1": "high"}) + for legacy in (False, True): + if legacy: + config["agents"][0].pop("kwargs") + with open(config_path, "w") as f: + json.dump(config, f) + job = parse.parse_job(job_dir) + self.assertEqual(job.model_name, "paper-1") + self.assertEqual(job.configuration_name, "paper-1-16k") + self.assertEqual(job.model_label, "paper-1-16k (paper-1) · effort high") + for row in (cli.job_row(job), column(job, "whole")): + self.assertEqual(row["model"], "paper-1") + self.assertEqual(row["configuration"], "paper-1-16k") + self.assertEqual(row["model_label"], job.model_label) + self.assertEqual(row["reasoning_effort"], "high") def test_the_model_setup_sends_yours_in_the_papers_place(self): job_dir = self.go("model", "their-model") diff --git a/app/ui_tests/evidence/issue-706/all-runs-after-1280-light.png b/app/ui_tests/evidence/issue-706/all-runs-after-1280-light.png new file mode 100644 index 000000000..6ce95352f Binary files /dev/null and b/app/ui_tests/evidence/issue-706/all-runs-after-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/all-runs-before-1280-light.png b/app/ui_tests/evidence/issue-706/all-runs-before-1280-light.png new file mode 100644 index 000000000..3f0c3a04b Binary files /dev/null and b/app/ui_tests/evidence/issue-706/all-runs-before-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/compare-after-1280-light.png b/app/ui_tests/evidence/issue-706/compare-after-1280-light.png new file mode 100644 index 000000000..3ab5ad422 Binary files /dev/null and b/app/ui_tests/evidence/issue-706/compare-after-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/compare-before-1280-light.png b/app/ui_tests/evidence/issue-706/compare-before-1280-light.png new file mode 100644 index 000000000..a04918c2e Binary files /dev/null and b/app/ui_tests/evidence/issue-706/compare-before-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/job-after-1280-light.png b/app/ui_tests/evidence/issue-706/job-after-1280-light.png new file mode 100644 index 000000000..6fd325277 Binary files /dev/null and b/app/ui_tests/evidence/issue-706/job-after-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/job-before-1280-light.png b/app/ui_tests/evidence/issue-706/job-before-1280-light.png new file mode 100644 index 000000000..bb63fefdd Binary files /dev/null and b/app/ui_tests/evidence/issue-706/job-before-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/runs-after-1280-light.png b/app/ui_tests/evidence/issue-706/runs-after-1280-light.png new file mode 100644 index 000000000..5620e521f Binary files /dev/null and b/app/ui_tests/evidence/issue-706/runs-after-1280-light.png differ diff --git a/app/ui_tests/evidence/issue-706/runs-before-1280-light.png b/app/ui_tests/evidence/issue-706/runs-before-1280-light.png new file mode 100644 index 000000000..7b8c624a9 Binary files /dev/null and b/app/ui_tests/evidence/issue-706/runs-before-1280-light.png differ diff --git a/app/ui_tests/test_comparison_routes.py b/app/ui_tests/test_comparison_routes.py index a9a401c51..fccdbf5c8 100644 --- a/app/ui_tests/test_comparison_routes.py +++ b/app/ui_tests/test_comparison_routes.py @@ -66,6 +66,23 @@ def deltas(cls, body, label): return [(d.group(2), d.group(1)) if d else None for d in (re.search(r'(.*?)', c) for c in re.findall(r']*>(.*?)', cls.row(body, label), re.S))] + def test_original_configuration_and_effort_agree_with_commands(self): + from nullius.runs.cli import job_row + from nullius.compare.cli import column + self.left.model_name = "o3-2025-04-16" + self.left.identity = {"configuration": "o3_low"} + self.left.reasoning_effort = "high" + label = "o3_low (o3-2025-04-16) · effort high" + self.assertIn(label, unescape(self.get())) + runs = unescape(self.client.get("/runs").get_data(as_text=True)) + self.assertIn('' + label + '', runs) + self.assertIn(label, unescape(self.client.get("/runs?view=all").get_data(as_text=True))) + for row in (job_row(self.left), column(self.left, "whole")): + self.assertEqual(row["model_label"], label) + self.assertEqual(row["model"], "o3-2025-04-16") + import json + self.assertEqual(json.loads(self.get("/compare/runs", workspace="active"))["runs"][0]["model"], label) + def test_no_selection_is_two_empty_columns_of_the_open_workspace(self): response = self.client.get("/compare") self.assertEqual(response.status_code, 200) @@ -729,7 +746,7 @@ def test_an_axis_s_tick_labels_are_distinct_in_one_format_inside_the_metric_s_ra for unit, style, values in cases: with self.subTest(unit=unit, style=style, values=values): n = len(values) - jobs = [SimpleNamespace(agent_label=f"agent {i}", job_id=str(i), model_name="", is_control=False) for i in range(n)] + jobs = [SimpleNamespace(agent_label=f"agent {i}", job_id=str(i), model_name="", model_label="", is_control=False) for i in range(n)] rows = {"m": {"label": "M", "values": list(values), "cells": [str(v) for v in values], "deltas": [("", "")] * n, "unit": units[unit]}} panel = web_compare.chart(rows, [{"i": i} for i in range(n)], jobs, style, ("m",) * len(web_compare.figures.STYLES[style].axes)) diff --git a/app/web/compare.py b/app/web/compare.py index 93e5bac79..faba2879f 100644 --- a/app/web/compare.py +++ b/app/web/compare.py @@ -379,7 +379,7 @@ def chart(rows, columns, jobs, style, keys): its colour its column's place; None while a key names no row of this comparison.""" if not all(k in rows for k in keys): return None - names = [" · ".join(filter(None, (j.agent_label or j.job_id, j.model_name))) for j in jobs] + names = [" · ".join(filter(None, (j.agent_label or j.job_id, j.model_label))) for j in jobs] def value(row, n, i): v, check = row["values"][i], jobs[i].is_control @@ -558,7 +558,7 @@ def _options(name, dataset=""): (``same`` of them), a run sharded over several machines once.""" from nullius.compare import comparison runs = [{"value": comparison.RunRef(name, job.job_id).value, "id": job.job_id, "launch": launch.key, - "agent": job.agent_label or "—", "model": job.model_name or "", "where": _where(job.dataset), + "agent": job.agent_label or "—", "model": job.model_label or "", "where": _where(job.dataset), "dataset": job.dataset, "date": filters._dt(job.started_at), "check": job.is_control, "shards": len(job.merged_from) or len(ids)} for launch, job, ids, _ in _runs(name)] diff --git a/docs/benchmarks/supported/browsecomp.md b/docs/benchmarks/supported/browsecomp.md index b5e87934e..9350fea40 100644 --- a/docs/benchmarks/supported/browsecomp.md +++ b/docs/benchmarks/supported/browsecomp.md @@ -52,7 +52,7 @@ Hard-to-find facts on the web: questions that take persistent searching, each wi - 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 @@ -65,7 +65,6 @@ Hard-to-find facts on the web: questions that take persistent searching, each wi - 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. ## Cite diff --git a/docs/benchmarks/supported/simpleqa.md b/docs/benchmarks/supported/simpleqa.md index 8d72b4653..a11ddaa0e 100644 --- a/docs/benchmarks/supported/simpleqa.md +++ b/docs/benchmarks/supported/simpleqa.md @@ -45,7 +45,7 @@ Short fact-seeking questions, each with a single answer, collected to be hard fo - 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 @@ -62,7 +62,6 @@ Short fact-seeking questions, each with a single answer, collected to be hard fo - 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. ## Cite diff --git a/docs/cli/read-jobs.md b/docs/cli/read-jobs.md index 6bf23ca40..6eea7dd01 100644 --- a/docs/cli/read-jobs.md +++ b/docs/cli/read-jobs.md @@ -46,6 +46,8 @@ nullius standard traces [--dry-run] | `nullius compare ... [--matched] [--exclude KIND]...` | `/compare`'s cohort: whole, or matched on the tasks every job ran, without the trials a KIND flag (`flawed`, `ambiguous`) covers | | `nullius workspace list [--home DIR]` | The workspaces, as `/workspaces` lists them | +Runs and Compare show a recorded Original configuration beside its served model, with any reasoning effort override. JSON keeps `model` as the served ID and adds `configuration`, `model_label` and `reasoning_effort`. +
- [Read results](../results.md) diff --git a/docs/standard.md b/docs/standard.md index 3c748c723..71c924ddf 100644 --- a/docs/standard.md +++ b/docs/standard.md @@ -646,7 +646,7 @@ already accepts arbitrary models needs only the `original` method. | Rule | Detail | | --- | --- | -| `original` driver method | A model of `models` only, by the name the upstream knows; the relay sends it as `served_as` says, with the prefix `providers` gives. A provider not in `providers` is refused. A model the upstream asks besides the answerer is a `side_models` entry. Without `models`, any model: its own agent runs as the run's model. `apis`: the protocols its code speaks (default `chat`) | +| `original` driver method | A model of `models` only, by the name the upstream knows; the relay sends a string `served_as` value with the prefix `providers` gives, or a `{provider: exact served name}` value without a prefix. A missing provider mapping uses the upstream name with the provider prefix. When a served ID matches several configurations, the first listed wins; an explicit configuration name is kept. A provider not in `providers` is refused. A model the upstream asks besides the answerer is a `side_models` entry. Without `models`, any model: its own agent runs as the run's model. `apis`: the protocols its code speaks (default `chat`) | | `model` driver method | The upstream is told `runs_as` (its window, batching and token budget) while the relay sends the model chosen. A model that reasons by default can spend that budget thinking: a last reply with neither text nor a tool call is `OutputLengthExceededError`. A last Responses reply that `failed` is an API error. A runner that fails after the unit is asked to stop is `CancelledError` | | `units` | A setup may count its own units; `units` is sent `setup` | | `answer` | Runs the upstream's answerer through the unit's relay; `score` is sent `setup` too. Local processes or the Original setup driver container |