Repository navigation
feat(lint): a judge that runs in the solver's own agent is an error - #879
Merged
earakely-scale merged 2 commits intoNov 23, 2026
Merged
Conversation
An agent judge whose agent_name names the agent a step prompts as the agent under test grades the solver's own work, and posts its own model and settings to that agent first. Lint now refuses it (judge-as-solver), as training already did; --skip-lint runs it anyway. solver_agents, beside user_sim_agents, is the one definition of the solver's agents: solver_steps, the lint rule and training's check read it, and a name that isn't a string names no agent, so lint answers rather than crashing on one. Tests also pin that a judge out of retries writes a failed grade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_agents, and one agent_name_of names a step's agent played_deploys was a fourth copy of the solver's agents, and the harness's first-prompt pick a fifth; both now read solver_agents. agent_name_of is the one fallback to the default agent's name, for solver_agents, solver_steps, played_deploys and the harness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
earakely-scale
deleted the
edgararakelyan/fd-5929-g13-judges-record-how-they-ran
branch
November 23, 2026 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The new error. An agent judge whose
agent_namenames the agent a step prompts as the agent under test is now a task lint error,judge-as-solver:Why it's an error.
_configure_judge_a2aposts the judge's model, effort, output format and turn limit to that agent.How it behaves.
agent-env run,bundle register,task create,task validateandeval run.--skip-lintruns the task anyway.One definition of the solver's agents.
solver_agents(steps), besideuser_sim_agentsinprompt_agent.py, returns the agents a prompting step talks to as the agent under test, not as its user. Five places read it:bundle.plan.solver_steps;task.lint.judges_in_solver);_untrainable;bundle.resolve.played_deploys, which had its own copy;agent_name_of(step)is now the one fallback to the default agent's name for all of them.A name that isn't a string names no agent. That keeps lint answering instead of raising on a list or object
agent_name.A test for the out-of-retries item. It already held since G2, and now tests pin it: a direct judge, or an agent judge out of timeout retries, writes a grade with
verifier_status: failedand its error.This is PR 1 of 4 for FD-5929 (G13). #877 already records judge usage in
step_usage, and #854 decides which trajectory source a judge reads. The next G13 PRs build on those.Decisions (with Edgar, FD-5929)
What it refuses in the hub
Six task versions, all in one eval. I linted every task version the latest version of each hub eval runs, 11,553 of them, pulled from Redash today. Six judges run in the solver's agent: all six tasks of eval
openclaw-mm-usersim-passk(mm-l12v4-*).What those tasks do. In each,
verifynamesdefault-agent, theclaude-code-clisolver. So the solver grades its own work, after the judge reconfigures it toclaude-sonnet-4-6.The fix and the escape hatch.
eval runrefuses that eval until each task'sverifydropsagent_name, so its judge deploys its own agent, or names a separate judge agent.--skip-lintruns it meanwhile.The other judge agents are separate. 1,437 judge agents in the hub name an
agent_name, and all of them name separate judge agents:judge,judge-strong,judge-weakandjudge-snapshot-01. None of them is flagged.Moves no score
This is a lint rule. No step's behaviour changes, so no stored task run's score moves.
Tests
lint_test.py:agent_name, one with its own judge agent, one in the user simulator's agent, or a direct judge (use_agent_judge: false);agent-env run --dry-runrefuses the task, and--skip-lintruns it.test_rubrics_family_grades.py:The harness and
solver_stepstests pass unchanged.E2E (fresh install of this branch)
I built both wheels from the branch and installed them into a fresh venv with no config, then ran a copy of the shipped
hellobundle with two extra tasks:agent-env task lint bundle1 error: tasks/self-graded.json: step 'verify': its judge runs in 'default-agent', the agent under test, …, exit 1agent-env run bundle --task self-graded --dry-runtask lint found 1 of these; --skip-lint runs the tasks anyway, exit 1--skip-linterror:,Would run: tasks/self-graded.json v1, exit 0agent-env run bundle --task own-judge --dry-run(judge in its ownjudgeagent)Would run, exit 0agent-env run bundle --task hello --dry-runWould run, exit 0The hub sweep above ran on that same install's
lint.This rule is static and offline: it plans, calls no model and starts no container. So I ran the e2e and chaos from a fresh install on this machine rather than on an admin VM.
Chaos
The first fuzz found crashes. I fuzzed lint with junk agent names and judge settings (
kit/fuzz_judge_as_solver.py): lists, dicts, numbers and booleans asagent_name,user_agent_nameanduser_sim, three judge types, and junkuse_agent_judge. Across 3,000 cases, lint raisedTypeError: unhashable typein 193.After the fix. A name that isn't a string names no agent. Five seeds then ran 15,000 cases: 2,420 built, 45 flagged, 0 crashes.
Docs
For FD-6446, the docs spike:
judge-as-solverto lint's rules: a judge must not run in the agent under test;agent_nameunset, or to name a separate judge agent.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no blocking issues were found.Summary
Adds
judge-as-solveras a lint error when an agent judge shares the solver's agent.No actionable issues were found in the changes since the previous review or the full-PR rule check. No previous review threads were supplied. Tests were not run during this review.
Reviews (7) · Last reviewed commit: "refactor(bundle): played_deploys and the..." · Reviewed by Greptile