Repository navigation
fix(always_on): the judge reads the model's thinking only when the task's filter keeps it - #980
Open
sarah-chitty-1 wants to merge 1 commit into
Open
sarah-chitty-1 wants to merge 1 commit into
sarah-chitty-1 wants to merge 1 commit into
Conversation
…en the judge's trajectory filter shows it On the always_on path the judge reads files always_on_staging builds itself, and those carried every recorded thought as an assistant_thinking line whatever the task's trajectory_filter said: include_thinking was applied only on the generic path's compaction. A task that set include_thinking: false had its judge read (and cite) the reasoning of models whose thinking is recorded (Claude, DeepSeek, GLM, Kimi, Qwen), never of GPT, whose reasoning is encrypted. - trajectory_filter.keeps_thinking: the one rule, read by the generic path's OTel and atif/1 compaction and by always_on staging: no filter, the trajectory as recorded; a filter, thinking only with include_thinking. - stage_run takes the judge's trajectory filter, resolved as the generic path resolves it (_run_values, a run's user_overrides.apply_trajectory_filter included); thinking it leaves out is counted in the record (trajectory_staging.thinking_left_out), and the judge's files note says the files don't have it. - A task that sets no filter stages thinking as before. Tests: a filter with include_thinking false (or a filter's default, or the apply_trajectory_filter override's) stages no assistant_thinking line and none of the thinking text, in stage_run and through the verifier into the judge's sandbox; true, no filter, or an override that drops the filter stages it as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
On always_on runs, the process judge read the model's thinking even when the task set
include_thinking: false.The always_on path stages its own judge files (
always_on_staging.py), which wrote every thought as anassistant_thinkingline. The task's trajectory filter was applied only on the generic path. A partner's audit of 246 graded runs found the judge citing the model's reasoning in up to 13 of 24 runs per model for Claude, DeepSeek, GLM, Kimi and Qwen, and never for GPT, whose reasoning is encrypted. Verdicts went both ways, crediting a model for what it only thought and failing one because a result line appeared only in its thinking.Change
judge_utils/trajectory_filter.keeps_thinking(). The generic OTel path, atif/1 compaction and always_on staging all use it.stage_run) takes the filter, drops thinking when the filter excludes it, and counts what it left out (thinking_left_out).always_on_agent_verifierresolves the filter the same way as the generic path, overrides included, and tells the judge that the thinking isn't in the files.Default
include_thinkingdrops it, which is the documented default.Tests
include_thinking: falsewith a model that thinks gives judge files with noassistant_thinkinglines;truekeeps them. With the change reverted, both leak cases fail.ruffis clean. The 6 failures intask_step+clialso fail on main.Not in this PR
Native OpenCode traces are staged raw, reasoning included. OpenHands and pi may be the same; that's untested.
🤖 Generated with Claude Code
Confidence Score: 5/5

The PR appears safe to merge.Summary
Makes always-on judge files follow
include_thinking, using the same rule as OTel and ATIF compaction.Reviews (1) · Last reviewed commit: "fix(always_on_agent_verifier): stage the..." · Reviewed by Greptile