Skip to content

feat(standard): a provider per role for the judge and user simulator - #611

Merged
aitianshi merged 14 commits into
mainfrom
feat/provider-per-role
Dec 2, 2026
Merged

aitianshi merged 14 commits into
mainfrom
feat/provider-per-role

Conversation

@aitianshi

@aitianshi aitianshi commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #604

What

  • A standard run had one provider and one key. Claude Code on HealthAgentBench or MyPCBench could not run on a preset: the agent speaks Anthropic Messages, the judge Chat Completions.
  • The judge and user simulator can now each have their own provider and key. Default: same as agent.
  • The relay sends -judge and -simulator routes to their provider; sidecars read each key from a mounted file.
  • cli run --judge-provider, --simulator-provider (a preset, or custom:ID); recipes hold judge_provider, simulator_provider. Old recipes compile as before.
  • A role's provider is in the run's identity: the job page shows it, the Leaderboard keeps such runs on their own row.
  • A run, or a Settings host, gets only the keys of the providers it uses. Controls alone with the judge on its own provider run on that one.
  • The compatibility check asks each role on its own provider.
  • Model step: one line per role: Provider, Model, Reasoning, Served by (OpenRouter rows only).

Before and after

Model step, τ³-bench, Codex on OpenRouter, judge on endpoint LAB. Before is main.

Before After
Model step on main, 1280 Model step with a provider per role, 1280
Model step on main, 390 Model step with a provider per role, 390

Verified

  • Two stand-in providers: agent call reached A with key A, judge call B with key B; also with --relay-container. No key in the job folder.
  • Backend 3656, routes 966, after merging main.
  • Two independent reviews: 8 findings fixed, 7 with a test that fails before the fix (not the Review notice). The 5 gaps listed after it: 3 fixed with such tests, 2 in the Model step checked in a browser before and after; conform, prove, fidelity call no second role.
  • Not checked: --backend container end to end, a real Settings host, Boat.

Risk

  • A Served by pin on a model both the agent's and a role's own provider call is refused: it would reach both.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Dec 1, 2026
# Conflicts:
#	app/nullius/standard/pages/recipe.py
#	app/static/builder/command-builder.css
#	app/static/builder/command-builder.js
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
# Conflicts:
#	app/static/builder/command-builder-core.js
@aitianshi
aitianshi marked this pull request as ready for review December 2, 2026 07:47
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🟡 PR judge · 5 of 6 yes · #611 ↔ #604

Merge risk 🔴 MAJOR the judge's reading of the diff; app/nullius/execution.py is in the path of every run
Depth 🔴 EXTREME the deepest path is app/nullius/execution.py
Question Verdict
Changes do what the issue asks · 6 of 6 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff ✅ yes
Diff stays in scope ⚠️ partly
Risk named in the description ✅ yes
Before and after shown · 4 images · the diff touches what is visible ✅ yes
Acceptance criteria, 6 of 6 met
# Criterion Verdict
1 nullius standard run takes --judge-provider and --simulator-provider; the recipe holds the same ✅ met (cut)
2 Each role's relay route calls its own provider with its own key ✅ met (cut)
3 Model list, compatibility check, spending cap and prerequisites check each role's provider ✅ met (cut)
4 A Settings host gets only the keys the run uses ✅ met (cut)
5 The Model step shows one line per role; Served by only on an OpenRouter row ✅ met (cut)
6 A recipe from before runs every role on its one provider ✅ met (cut)
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
@aitianshi
aitianshi merged commit 9bc54c2 into main Dec 2, 2026
7 checks passed
@aitianshi
aitianshi deleted the feat/provider-per-role branch December 2, 2026 07:56
@github-actions github-actions Bot removed the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A run cannot use a different provider for its agent, user simulator and judge

1 participant