Skip to content

chore(catalog): decouple routes from fingerprints and sync model catalog - #403

Merged
hakula139 merged 1 commit into
mainfrom
chore/flake-and-model-catalog-migration
Nov 25, 2026
Merged

hakula139 merged 1 commit into
mainfrom
chore/flake-and-model-catalog-migration

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

Supersedes #401. Decouples operational serving routes and Nix store paths from system fingerprints, updates the nixos-config flake input, and syncs systems.toml and all families with every active model in the updated catalog.

Fingerprint boundary audit

  • Included (shapes model, harness, or prompt behavior): harness, canonical catalog model ID (added to SystemIdentity), generation version (bench generation protocol, locked Harbor version for terminus-2 and installed agents, and native Messages protocol / Anthropic API version for anthropic-messages), and every harness option kwarg (api, effort, max_output_tokens, thinking_mode, resolved system_prompt under generate, context-derived model_info under terminus-2, and pinned CLI version / config under installed agents).
  • Excluded (operational, routing, packaging, or metadata):
    • Serving route (provider channel ID) is removed from fingerprint() and replaced by the canonical catalog model ID so switching a model's serving route preserves its benchmark pool across providers (pricing follows public list pricing, not provider billing).
    • Nix store path prefixes in exported nixos-config:* instructions (devkitSource and docsDir) are omitted in flake.nix by using the instruction module's built-in @devkitSource@ and @docsDir@ placeholders, so unrelated nixos-config or devkit bumps no longer alter rendered prompts or invalidate instructions-format fingerprints.
    • Previously excluded metadata remains excluded: SDK versions, nixos-config commit rev, table/storage key name, public display_name, vendor, billing/price metadata, and context_window for harnesses that do not pass it (generate and claude-code).
  • Documented the exact fingerprint boundary in docs/design/systems.md and docs/guide/authoring.md.

Closed report re-stamping

  • Because changing fingerprint() from hashing route to hashing model changes hashes for all existing systems, the four still-active systems in reports/writing-en/2026-11-07.json and reports/writing-en/2026-11-22.json (deepseek-v4.1-flash-1017-high, gpt-6-astra-high, gpt-6.1-sol-high, opus-5.5-high) are re-stamped to their new route-independent hashes.
  • Retired systems (gemini-3.8-flash-high, gemini-4-argon-high, kimi-k3-high) and all report aggregates remain untouched, avoiding any legacy dual-hash compatibility layer in bench fingerprints or bench close.

Model catalog and family sync

  • Updated nixos-config in flake.lock to match chore(flake): lock file maintenance #401.
  • Retired gemini-4-argon-high, gemini-3.8-flash-high, and gemini-3.8-flash-codex-high from systems.toml and all families (leaving closed reports untouched).
  • Added all 7 newly active catalog models (all 14 active models in data/llm-models.nix are now wired; no deprecated or banned models remain in the catalog): sonnet-5.5-high, haiku-5.5-high, gpt-6-luna-high, gpt-6.1-terra-high, gemini-4-carbon-high, gemini-4-neon-high, and gemini-4-hydrogen-high, along with their -nixos prompted pairs in instructions-format.
  • Replaced coding-repo/gemini-3.8-flash-high (installed condition, key gemini-3.8-flash-codex-high) with coding-repo/gpt-6.2-sol-high (installed condition, key gpt-6.2-sol-codex-high).
  • Updated reference to deepseek-v4.1-flash-1017-high in writing-en, writing-zh, frontend-static, and smoke-text, and to gpt-6.2-sol-high in coding-repo.
  • Updated unit tests and regenerated fingerprints.json.

Verification

  • env -u VIRTUAL_ENV nix develop -c bash -c 'uv run --locked bench fingerprints && uv run --locked pytest && uv run --locked basedpyright' — passed (Every system keeps the fingerprint its closed reports froze., 1935 passed, 0 errors, 0 warnings, 0 notes).
  • env -u VIRTUAL_ENV nix develop -c run-hooks — passed (all pre-commit hooks green, including mypy, ruff, ruff-format, taplo, nixfmt, deadnix, statix, dprint, prettier, cspell, lychee, markdownlint-cli2).
  • Not run locally: Docker-marked tests (uv run pytest -m docker), site pnpm checks (no web/ changes), and nix flake check (deferred to CI).

Hash the canonical catalog model instead of the operational serving route in
fingerprint(), omit Nix store path prefixes from exported nixos-config
instructions, update the nixos-config flake input, and sync systems.toml and
all families with the active catalog models.

- Exclude serving routes from fingerprint() so provider route switches for the
  same model preserve benchmark pools, while keeping model, harness, prompt,
  effort, API, capacity limits, and generation versions in the hash.
- Drop devkitSource and docsDir Nix store paths from the flake's nixos-config
  export so unrelated nixos-config or devkit commits keep rendered instructions
  stable.
- Re-stamp the four still-active systems in closed writing-en reports to the
  new route-independent fingerprint formula while preserving retired systems
  and all report aggregates untouched.
- Retire gemini-4-argon-high, gemini-3.8-flash-high, and
  gemini-3.8-flash-codex-high; add all new active catalog models
  (sonnet-5.5-high, haiku-5.5-high, gpt-6-luna-high, gpt-6.1-terra-high,
  gemini-4-carbon-high, gemini-4-neon-high, gemini-4-hydrogen-high); switch
  coding-repo's Codex arm to gpt-6.2-sol-codex-high; update references to
  deepseek-v4.1-flash-1017-high (writing/frontend/smoke-text) and
  gpt-6.2-sol-high (coding-repo).
@hakula139 hakula139 added dependencies Dependency updates chore Maintenance without behavior changes area: harness Touches bench run, the Harbor harnesses, job configs, or collecting outputs area: families Touches family definitions, cases, tasks, or systems labels Nov 25, 2026
@hakula139 hakula139 self-assigned this Nov 25, 2026
@hakula139
hakula139 temporarily deployed to preview November 25, 2026 11:10 — with GitHub Actions Inactive
@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

This PR's preview was deleted when it closed.
View cleanup logs

@hakula139
hakula139 merged commit cf12a2c into main Nov 25, 2026
11 checks passed
@hakula139
hakula139 deleted the chore/flake-and-model-catalog-migration branch November 25, 2026 11:18

This branch was previously deployed

1 inactive deployment
preview — 7c42c4f9 Deployed Nov 25, 2026 by hakula139 via Deploy Preview #1405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: families Touches family definitions, cases, tasks, or systems area: harness Touches bench run, the Harbor harnesses, job configs, or collecting outputs chore Maintenance without behavior changes dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant