Skip to content

fix(lint): a judge in the solver's own agent is a warning, not an error - #886

Merged
earakely-scale merged 1 commit into
mainfrom
edgararakelyan/judge-as-solver-warning
Nov 23, 2026
Merged

earakely-scale merged 1 commit into
mainfrom
edgararakelyan/judge-as-solver-warning

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

judge-as-solver, from #879, is now a warning, not an error.

  • task lint and every command that lints print it, and nothing is refused.
  • Training still refuses such a task (training.harness). It reads judges_in_solver directly, not lint's severity: there, a rollout would train the solver on its own grading.

The message names a fix that keeps the solver's files. The old advice, leaving agent_name unset, deploys a fresh judge that doesn't see the solver's files. Judges read only what's loaded into their agent; nothing hands them collect_artifacts' output. So the message now names the pattern the docs give under "Grade with a judge":

step 'verify': its judge runs in 'default-agent', the agent under test, so the solver grades its own work; for a judge of its own, deploy a judge agent, load the files it grades into it (load_artifact with artifact_from_step_id) and name it in agent_name

Why a warning

Where G6 draws the line.

  • An error is what breaks the run or is silently ignored: a field no step reads, a config its step can't run, a headline that grades nothing, an aggregate source no verifier writes.
  • A warning is what may be wrong.

Why this is a warning. A judge in the agent under test breaks nothing. The run grades, and the grade is the solver's own. That may be the point, as when a task measures self-assessment. Decided with Edgar after #879 merged.

Tests

lint_test.py:

  • the rule is a warning with the new message;
  • agent-env run --dry-run of such a task prints the warning and runs.

The cases it leaves alone, and junk names, are unchanged. Training's refusal test (harness_test.py, "self-judged is left out") passes unchanged.

E2E (fresh install of this branch)

On a copy of the shipped hello bundle with a self-graded task:

  • agent-env task lint bundle prints tasks/self-graded.json: warning: step 'verify': its judge runs in 'default-agent', … and exits 0.
  • agent-env run bundle --task self-graded --dry-run prints the warning, then Would run: tasks/self-graded.json v1, and exits 0.

Docs

For FD-6446: judge-as-solver goes in lint's warnings, with the separate-judge pattern as its fix.

Part of FD-5929 (G13).

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

Changes judge-as-solver from an error to a warning.

  • Lint warns about self-judging tasks instead of stopping runs.

earakely-scale explicitly describes allowing self-grading outside training as intentional, including for self-assessment tasks.

Tests were inspected, not run.

Reviews (1) · Last reviewed commit: "fix(lint): a judge in the solver's own a..." · Reviewed by Greptile

Lint's errors are what breaks a run or is silently ignored. A judge in the agent under test breaks nothing: the run
grades, and the grade is the solver's own, which may be the point. So judge-as-solver warns, and its message names
a judge of its own with the solver's files loaded into it, since leaving agent_name unset drops those files.
Training still refuses such a task, as its rollouts would train on the solver's own grading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale requested a review from a team as a code owner November 23, 2026 16:30
@earakely-scale
earakely-scale merged commit e327917 into main Nov 23, 2026
35 checks passed
@earakely-scale
earakely-scale deleted the edgararakelyan/judge-as-solver-warning branch November 23, 2026 16:49
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.

1 participant