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
19 changes: 11 additions & 8 deletions docs/design/systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ The catalog's `maxTokens` is the completion allowance the bench configures, incl

## Fingerprints

A system's fingerprint hashes its harness, model name, generation version, and every kwarg the harness gives its agent except the trial labels, so a trial's agent config changes only with the system's fingerprint or name. Those kwargs carry the resolved API, effort, and completion allowance, the prompt under `generate`, the context window as the input limit under `terminus-2`, and the thinking mode of native Messages. The generation version adds the generation protocol that `pyproject.toml`'s `[tool.assistant-bench]` declares, the locked Harbor version under `terminus-2`, and the native protocol and API version of native Messages. SDK versions, the table name, and public labels are excluded. A task family binds its harness before fingerprinting, so a system has a distinct identity on case and task families.
A system's fingerprint hashes only what shapes model, harness, and prompt behavior: its harness, canonical catalog `model`, generation version, and every kwarg the harness gives its agent except the trial labels. Those kwargs carry the resolved API, effort, and completion allowance, the resolved prompt under `generate`, the context window as the input limit under `terminus-2`, the thinking mode of native Messages, and the pinned CLI version and configuration under installed agents. The generation version adds the generation protocol that `pyproject.toml`'s `[tool.assistant-bench]` declares, the locked Harbor version under `terminus-2` and installed agents, and the native protocol and API version of native Messages.

Votes and scores pool only within one fingerprint. A nixos-config bump that leaves the resolved generation settings unchanged keeps its pool.
Operational, routing, packaging, and metadata details are excluded so they never invalidate a benchmark pool: the serving `route` (provider channel ID, allowing pools to span route changes for the same model), Nix store path prefixes in exported `nixos-config:*` instructions (omitted from the export via stable placeholders), SDK versions, the `nixos-config` commit `rev`, the table or storage key `name`, public labels (`display_name`), `vendor`, billing and `price` metadata, and `context_window` under harnesses that do not pass it (`generate` and `claude-code`). A task family binds its harness before fingerprinting, so a system has a distinct identity on case and task families.

Votes and scores pool only within one fingerprint. A nixos-config bump that leaves the resolved generation settings unchanged, including a route change or an unrelated commit, keeps its pool.

In a task family, a configuration absent from the family's closed reports can keep its family key when its fingerprint changes. Its earlier trials stay in the archive. Their agent configuration carries the old fingerprint, so Harbor excludes them from reuse and regrading and collection excludes them from current outputs. After a report freezes the current fingerprint, the configuration can continue under that fingerprint while older trials remain archived. For voted families, [official publication](arena.md#publication-and-closing) also checks the evidence in both voting stores before the changed fingerprint can serve under that key.

Expand All @@ -35,11 +37,12 @@ Harbor records a configuration's family key in the agent kwargs. Collection matc
| Any | `<model-effort>` | `<model-effort>` | `default` |
| `instructions-format` | `<model-effort>-nixos` | `<model-effort>` | `prompted` |
| `coding-repo` | `opus-5.5-claude-code-high` | `opus-5.5-high` | `installed` |
| `coding-repo` | `gpt-6.2-sol-codex-high` | `gpt-6.2-sol-high` | `installed` |
| `coding-repo` | `gemini-3.8-flash-codex-high` | `gemini-3.8-flash-high` | `installed` |

### Model Swaps

A fingerprint hashes a system's route, so it cannot see an endpoint that serves another model under an unchanged route. Collection therefore checks each pool, the outputs of one system under one fingerprint, for two signals. A pool conflicts when its responses report more than one model, or, in a case family, when its outputs of one case differ by more than the larger of 2 input tokens and 2% of the lower count, a margin that a one-token jitter stays within and another tokenizer exceeds on most cases. Neither signal proves which model answered. A gateway that echoes the requested name hides a backend swap from the model field, and one that recounts tokens with its own tokenizer hides it from the token count. A swap within one tokenizer family, such as a quantized checkpoint or a smaller sibling, passes both signals unless the reported model changes, and so does a provider that recognizes the bench's requests.
A fingerprint hashes a system's catalog model rather than its serving route, so it neither invalidates a pool on a route switch nor sees an endpoint that serves another model behind a route. Collection therefore checks each pool, the outputs of one system under one fingerprint, for two signals. A pool conflicts when its responses report more than one model, or, in a case family, when its outputs of one case differ by more than the larger of 2 input tokens and 2% of the lower count, a margin that a one-token jitter stays within and another tokenizer exceeds on most cases. Neither signal proves which model answered. A gateway that echoes the requested name hides a backend swap from the model field, and one that recounts tokens with its own tokenizer hides it from the token count. A swap within one tokenizer family, such as a quantized checkpoint or a smaller sibling, passes both signals unless the reported model changes, and so does a provider that recognizes the bench's requests.

Before adding trials, `bench run` sends one fixed synthetic canary through each pending system's `generate` binding. Families share a probe when they use the same recorded key and source generation fingerprint. The probe preserves the route, API, effort and resolved system prompt, including for systems normally run through an installed agent. It has one Harbor attempt, no SDK retries, and at most 2,048 completion tokens including reasoning. Its first successful response with valid usage establishes the baseline for that source generate identity and probe protocol. A changed instruction, resolved probe configuration or completion allowance starts another protocol. Each record keeps the original system identity, the source generate identity and the actual probe identity separately.

Expand Down Expand Up @@ -69,11 +72,11 @@ Harbor records each trial's agent and environment import paths in the job's `con

The flake takes [nixos-config](https://github.com/hakulab/nixos-config) as a `flake = false` input and imports only pure Nix files from it, which evaluate without Nixpkgs or a host. Its `nixos-config` package writes one JSON file, which the dev shell exports as `BENCH_NIXOS_CONFIG`:

| Field | Content |
| -------------- | ----------------------------------------------------------------------------------------- |
| `rev` | The input's commit, recorded on every output |
| `catalog` | The model catalog: vendors, channels and routes, prices, effort rules, and display names |
| `instructions` | Each client's rendered global instruction file, keyed as `claudeCode`, `codex`, and `omp` |
| Field | Content |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `rev` | The input's commit, recorded on every output |
| `catalog` | The model catalog: vendors, channels and routes, prices, effort rules, and display names |
| `instructions` | Each client's rendered global instruction file, keyed as `claudeCode`, `codex`, and `omp`, keeping stable `@docsDir@` and `@devkitSource@` placeholders instead of Nix store paths |

## Concurrency

Expand Down
16 changes: 8 additions & 8 deletions docs/guide/authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ A family corresponds to one directory under `families/` and one leaderboard, con
```toml
scorer = "votes"
display_name = "Smoke Test · Text"
systems = ["opus-5.5-high", "gemini-3.8-flash-high"]
reference = "gemini-3.8-flash-high"
systems = ["opus-5.5-high", "deepseek-v4.1-flash-1017-high"]
reference = "deepseek-v4.1-flash-1017-high"
samples = 1
categories = ["message"]
```
Expand Down Expand Up @@ -93,12 +93,12 @@ effort = "high"
display_name = "Claude Opus 5.5 · High"
```

| Key | Meaning |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `model` | A nixos-config catalog model, which supplies the route, vendor, capacities, and prices |
| `api` | `openai-chat-completions` by default, `openai-responses`, or `anthropic-messages`. The catalog must support the selected API and effort |
| `effort` | Required when the model has effort rules: one of its `thinking.efforts`. A model without them takes none |
| `display_name` | The public label for the default condition. Each global table needs a distinct label |
| Key | Meaning |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `model` | A nixos-config catalog model, which supplies the vendor, capacities, prices, and operational serving route (excluded from the fingerprint) |
| `api` | `openai-chat-completions` by default, `openai-responses`, or `anthropic-messages`. The catalog must support the selected API and effort |
| `effort` | Required when the model has effort rules: one of its `thinking.efforts`. A model without them takes none |
| `display_name` | The public label for the default condition. Each global table needs a distinct label |

List the table key in a family's `systems` to run its default condition. To compare another condition, define an alias in `family.toml` and list its key in `systems` too. This entry adds a system prompt to the same model and effort in `instructions-format`.

Expand Down
20 changes: 12 additions & 8 deletions families/coding-repo/family.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@ public = false
public_voting = true
systems = [
"opus-5.5-high",
"sonnet-5.5-high",
"haiku-5.5-high",
"gpt-6-astra-high",
"gpt-6-luna-high",
"gpt-6.1-sol-high",
"gpt-6.1-terra-high",
"gpt-6.2-astra-high",
"gpt-6.2-sol-high",
"gemini-4-argon-high",
"gemini-3.8-flash-high",
"gemini-4-carbon-high",
"gemini-4-neon-high",
"gemini-4-hydrogen-high",
"deepseek-v4.1-flash-1017-high",
"kimi-k3.1-pro-high",
"opus-5.5-claude-code-high",
"gemini-3.8-flash-codex-high",
"gpt-6.2-sol-codex-high",
]
reference = "gemini-3.8-flash-high"
reference = "gpt-6.2-sol-high"
render = "diff"
samples = 1
harness = "terminus-2"
Expand All @@ -31,10 +36,9 @@ harness = "claude-code"
version = "2.1.319"
display_name = "Claude Opus 5.5 · Claude Code · High"

[system_aliases."gemini-3.8-flash-codex-high"]
model_effort = "gemini-3.8-flash-high"
[system_aliases."gpt-6.2-sol-codex-high"]
model_effort = "gpt-6.2-sol-high"
condition = "installed"
api = "openai-responses"
harness = "codex"
version = "0.167.0"
display_name = "Gemini 3.8 Flash · Codex · High"
display_name = "GPT-6.2 Sol · Codex · High"
11 changes: 8 additions & 3 deletions families/frontend-static/family.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ public = false
public_voting = true
systems = [
"opus-5.5-high",
"sonnet-5.5-high",
"haiku-5.5-high",
"gpt-6-astra-high",
"gpt-6-luna-high",
"gpt-6.1-sol-high",
"gpt-6.1-terra-high",
"gpt-6.2-astra-high",
"gpt-6.2-sol-high",
"gemini-4-argon-high",
"gemini-3.8-flash-high",
"gemini-4-carbon-high",
"gemini-4-neon-high",
"gemini-4-hydrogen-high",
"deepseek-v4.1-flash-1017-high",
"kimi-k3.1-pro-high",
]
reference = "gemini-3.8-flash-high"
reference = "deepseek-v4.1-flash-1017-high"
render = "html"
samples = 1
budget_usd = 50
Expand Down
69 changes: 57 additions & 12 deletions families/instructions-format/family.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,46 @@ public = false
systems = [
"opus-5.5-high",
"opus-5.5-high-nixos",
"sonnet-5.5-high",
"sonnet-5.5-high-nixos",
"haiku-5.5-high",
"haiku-5.5-high-nixos",
"gpt-6-astra-high",
"gpt-6-astra-high-nixos",
"gpt-6-luna-high",
"gpt-6-luna-high-nixos",
"gpt-6.1-sol-high",
"gpt-6.1-sol-high-nixos",
"gpt-6.1-terra-high",
"gpt-6.1-terra-high-nixos",
"gpt-6.2-astra-high",
"gpt-6.2-astra-high-nixos",
"gpt-6.2-sol-high",
"gpt-6.2-sol-high-nixos",
"gemini-4-argon-high",
"gemini-4-argon-high-nixos",
"gemini-3.8-flash-high",
"gemini-3.8-flash-high-nixos",
"gemini-4-carbon-high",
"gemini-4-carbon-high-nixos",
"gemini-4-neon-high",
"gemini-4-neon-high-nixos",
"gemini-4-hydrogen-high",
"gemini-4-hydrogen-high-nixos",
"deepseek-v4.1-flash-1017-high",
"deepseek-v4.1-flash-1017-high-nixos",
"kimi-k3.1-pro-high",
"kimi-k3.1-pro-high-nixos",
]
pairs = [
{ bare = "opus-5.5-high", prompted = "opus-5.5-high-nixos" },
{ bare = "sonnet-5.5-high", prompted = "sonnet-5.5-high-nixos" },
{ bare = "haiku-5.5-high", prompted = "haiku-5.5-high-nixos" },
{ bare = "gpt-6-astra-high", prompted = "gpt-6-astra-high-nixos" },
{ bare = "gpt-6-luna-high", prompted = "gpt-6-luna-high-nixos" },
{ bare = "gpt-6.1-sol-high", prompted = "gpt-6.1-sol-high-nixos" },
{ bare = "gpt-6.1-terra-high", prompted = "gpt-6.1-terra-high-nixos" },
{ bare = "gpt-6.2-astra-high", prompted = "gpt-6.2-astra-high-nixos" },
{ bare = "gpt-6.2-sol-high", prompted = "gpt-6.2-sol-high-nixos" },
{ bare = "gemini-4-argon-high", prompted = "gemini-4-argon-high-nixos" },
{ bare = "gemini-3.8-flash-high", prompted = "gemini-3.8-flash-high-nixos" },
{ bare = "gemini-4-carbon-high", prompted = "gemini-4-carbon-high-nixos" },
{ bare = "gemini-4-neon-high", prompted = "gemini-4-neon-high-nixos" },
{ bare = "gemini-4-hydrogen-high", prompted = "gemini-4-hydrogen-high-nixos" },
{ bare = "deepseek-v4.1-flash-1017-high", prompted = "deepseek-v4.1-flash-1017-high-nixos" },
{ bare = "kimi-k3.1-pro-high", prompted = "kimi-k3.1-pro-high-nixos" },
]
Expand All @@ -42,18 +57,42 @@ condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "Claude Opus 5.5 · High · Instructions"

[system_aliases."sonnet-5.5-high-nixos"]
model_effort = "sonnet-5.5-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "Claude Sonnet 5.5 · High · Instructions"

[system_aliases."haiku-5.5-high-nixos"]
model_effort = "haiku-5.5-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "Claude Haiku 5.5 · High · Instructions"

[system_aliases."gpt-6-astra-high-nixos"]
model_effort = "gpt-6-astra-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "GPT-6 Astra · High · Instructions"

[system_aliases."gpt-6-luna-high-nixos"]
model_effort = "gpt-6-luna-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "GPT-6 Luna · High · Instructions"

[system_aliases."gpt-6.1-sol-high-nixos"]
model_effort = "gpt-6.1-sol-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "GPT-6.1 Sol · High · Instructions"

[system_aliases."gpt-6.1-terra-high-nixos"]
model_effort = "gpt-6.1-terra-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "GPT-6.1 Terra · High · Instructions"

[system_aliases."gpt-6.2-astra-high-nixos"]
model_effort = "gpt-6.2-astra-high"
condition = "prompted"
Expand All @@ -66,17 +105,23 @@ condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "GPT-6.2 Sol · High · Instructions"

[system_aliases."gemini-4-argon-high-nixos"]
model_effort = "gemini-4-argon-high"
[system_aliases."gemini-4-carbon-high-nixos"]
model_effort = "gemini-4-carbon-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "Gemini 4 Carbon · High · Instructions"

[system_aliases."gemini-4-neon-high-nixos"]
model_effort = "gemini-4-neon-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "Gemini 4 Argon · High · Instructions"
display_name = "Gemini 4 Neon · High · Instructions"

[system_aliases."gemini-3.8-flash-high-nixos"]
model_effort = "gemini-3.8-flash-high"
[system_aliases."gemini-4-hydrogen-high-nixos"]
model_effort = "gemini-4-hydrogen-high"
condition = "prompted"
prompt = "nixos-config:claudeCode"
display_name = "Gemini 3.8 Flash · High · Instructions"
display_name = "Gemini 4 Hydrogen · High · Instructions"

[system_aliases."deepseek-v4.1-flash-1017-high-nixos"]
model_effort = "deepseek-v4.1-flash-1017-high"
Expand Down
11 changes: 8 additions & 3 deletions families/smoke-text/family.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ scorer = "votes"
display_name = "Smoke Test · Text"
systems = [
"opus-5.5-high",
"sonnet-5.5-high",
"haiku-5.5-high",
"gpt-6-astra-high",
"gpt-6-luna-high",
"gpt-6.1-sol-high",
"gpt-6.1-terra-high",
"gpt-6.2-astra-high",
"gpt-6.2-sol-high",
"gemini-4-argon-high",
"gemini-3.8-flash-high",
"gemini-4-carbon-high",
"gemini-4-neon-high",
"gemini-4-hydrogen-high",
"deepseek-v4.1-flash-1017-high",
"kimi-k3.1-pro-high",
]
reference = "gemini-3.8-flash-high"
reference = "deepseek-v4.1-flash-1017-high"
samples = 1
categories = ["message"]
defects = ["facts", "mechanics", "tone", "formulaic", "length"]
11 changes: 8 additions & 3 deletions families/writing-en/family.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ public = true
public_voting = true
systems = [
"opus-5.5-high",
"sonnet-5.5-high",
"haiku-5.5-high",
"gpt-6-astra-high",
"gpt-6-luna-high",
"gpt-6.1-sol-high",
"gpt-6.1-terra-high",
"gpt-6.2-astra-high",
"gpt-6.2-sol-high",
"gemini-4-argon-high",
"gemini-3.8-flash-high",
"gemini-4-carbon-high",
"gemini-4-neon-high",
"gemini-4-hydrogen-high",
"deepseek-v4.1-flash-1017-high",
"kimi-k3.1-pro-high",
]
reference = "gemini-3.8-flash-high"
reference = "deepseek-v4.1-flash-1017-high"
language = "en"
samples = 2
categories = ["docs", "essay", "fiction", "message", "reply", "review"]
Expand Down
11 changes: 8 additions & 3 deletions families/writing-zh/family.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ public = true
public_voting = true
systems = [
"opus-5.5-high",
"sonnet-5.5-high",
"haiku-5.5-high",
"gpt-6-astra-high",
"gpt-6-luna-high",
"gpt-6.1-sol-high",
"gpt-6.1-terra-high",
"gpt-6.2-astra-high",
"gpt-6.2-sol-high",
"gemini-4-argon-high",
"gemini-3.8-flash-high",
"gemini-4-carbon-high",
"gemini-4-neon-high",
"gemini-4-hydrogen-high",
"deepseek-v4.1-flash-1017-high",
"kimi-k3.1-pro-high",
]
reference = "gemini-3.8-flash-high"
reference = "deepseek-v4.1-flash-1017-high"
language = "zh"
samples = 2
categories = ["docs", "essay", "fiction", "message", "reply", "review"]
Expand Down
Loading
Loading