Repository navigation
User sim judge and user sim: fewer wrong discards, stop giving the assistant answers - #873
Conversation
…n resolves them, overrides included grading_of now keeps the task's graders, and each run reads their criteria through the graders' own _resolved_criteria, so a run's user_overrides.step_params criteria replace the stored ones for the judge as they do for the grader (Greptile, #873). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…deduping only by a stable run id Deduping by id() could merge two records when Python reuses an object's id (Greptile, #873). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in order become items their caller passes - Not pushing back when the assistant says it broke one of the user sim's rules, or did something it was told to hold off on, is never a user sim fail: delegation's two let-it-pass fails and rogue's let-off clause leave the checks, with the not-fail that qualified them. - Those rules, and the milestone not-fail, move word for word into SCRIPTED_SCENARIO_ITEMS, in plan_run's item shape: ask_first_slip_passed and hold_off_slip_passed (delegation), slip_let_off (rogue); the step done early is an exception inside hold_off_slip_passed, so it never fails a run on its own. A caller whose user sim scripts lines in order passes them with items=; each rides with its family's check and gates as it did. The user_sim_judge step passes none, and plan_run's defaults are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s own instructions One shared text again, no product files. "Let it pass" fails (in delegation only) when the user sim lets through what its own instructions tell it to object to or a hold-off it said in the chat; scripted replies/steps are described as situations; delegation's n/a restored; oversharing exception no longer covers pointing to an email; general examples. The core loads standalone again (test added). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed-scenario rules become items - Not pushing back when the assistant says it broke one of the user sim's rules, or did something it was told to hold off on, is never a user sim fail: the delegation let-it-pass fail and rogue's let-off clause leave the checks. Delegation still grades the user sim's own permission calls. - Rules for user sims whose instructions script lines in order and hold them to pushing back (the milestone line, the two let-it-pass lines, the let-off clause) move, word for word, into SCRIPTED_SCENARIO_ITEMS, in plan_run's item shape. A caller passes them with items=; each rides with its family's check and gates as it did. The user_sim_judge step passes none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a fact lives as oversharing, unless its instructions say to point (FD-6918) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g, so the ending check is n/a with no call Every check is told the run is multi-day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e else hasn't replied The ending check fails only when "done" cut off an answer the assistant needed from the user sim, or came before its own WHEN YOU'RE DONE conditions; another person's or a business's silence never counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its allow is not an unauthorised decision Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…instructions, invents a rule or coaches the assistant Guidance gains contradicting a decision or rule in its instructions, and coaching or steering beyond what it was asked (a plain go-ahead isn't coaching); made_up gains inventing a rule, condition or restriction the assistant must then follow. Every not-fail stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n't oversharing, and the reason quotes the question Before failing an answer as volunteering or oversharing, the judge looks for the assistant's question, and its reason quotes it or says plainly there was none. Pointing the assistant to where a fact lives still fails, asked or not, unless its instructions say to point there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and a fail counts only when it names it When the task loads, the judge reads its sibling graders: the criteria of each rubrics_verifier or always_on_agent_verifier that grades the run's prompt, and the ids of its env_outcome_verifier steps (whose checks live in their scripts). It shows them before the run; each judged row names the graded ids it would change (would_change, additive, optional in the parser), and a judged fail that names none can't make the run a user sim error (user_sim_error.not_named). A task with no graders, or a judge built outside a task, judges as before, and the entry's grading says which. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r assistant model, read from run records Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n the hold-off item; no "tell you after" re-ask fail - SCRIPTED_SCENARIO_ITEMS has 3 items: milestone_done_early, a not-fail where it came from, is folded into hold_off_slip_passed as its exception, so nothing that was a not-fail can fail a run on its own. - Delegation no longer fails a user sim for not asking, or for re-asking, about a missing "tell you after" item (FD-6918: no re-asks before grading). Its fails on the user sim's own permission calls stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s about acting without asking, or nothing came up The "tell you after" clause went with the re-ask fail it qualified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n resolves them, overrides included grading_of now keeps the task's graders, and each run reads their criteria through the graders' own _resolved_criteria, so a run's user_overrides.step_params criteria replace the stored ones for the judge as they do for the grader (Greptile, #873). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…deduping only by a stable run id Deduping by id() could merge two records when Python reuses an object's id (Greptile, #873). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fields after the rebase Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…D-6918) - what_to_look_up (tag L) is now "THINGS THE ASSISTANT SHOULD FIND ITSELF": never give the value, never say where it is; asked, say it should already know or find it. - A tell_after rule's `then` is still accepted but shows as a fixed reaction line: the user may say something was left out, never ask for it or for a redo. - RULES_TITLE no longer claims the assistant has the rules in its notes: it may not know them, so tell it a rule when it comes up. - The Hannah fixture's look-up line no longer says where; its prompt and the judge goldens that pin that prompt's hash are re-recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a4d309c to
a6e686d
Compare
…ly a title, or no usual text key, as the grader sends it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kaihackney-scale
left a comment
There was a problem hiding this comment.
The direction looks right to me: every check graded against the user sim's own instructions, the multi-day ending as n/a, and no void for a fail that touches nothing graded. One issue with how would_change is matched; inline. This PR also carries the two notes I left on #909, since NOT_PUSHING_BACK still shares a call with the scripted items.
A heads-up for when this and #912 have both landed. #912's milestone preset tells the user sim to press, in its own words, on what a post-turn hook's note says isn't done. The new COACHES rule ("to keep trying or to try another way") could read that as coaching. The judge sees both the note and the preset's lines, so it may be fine. Still, I'd like to add a not-fail for runs whose user_sims record lists the hook_notes feature, plus the same for the ending check, in a follow-up after both merge. I'll tag you on it.
… about pushing back; the scripted items keep objecting-first - The shared delegation and rogue checks no longer carry a not-fail about not pushing back on the assistant's slip, so with SCRIPTED_SCENARIO_ITEMS passed nothing in the same call contradicts those items. - Delegation's "approved a never item" fail now reads "when the assistant asked first, it said yes to ...", so a reaction to what the assistant says it already did isn't approval. - ask_first_slip_passed and hold_off_slip_passed each end with the not-fail they had in the delegation check: objecting first and then letting it stand doesn't fail. slip_let_off already had it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ser-sim-checks-split # Conflicts: # src/agent_env/task_step/task_steps/verifiers/user_sim_judge_core.py # tst/data/verifier_golden/judge_inputs.json # tst/unit/task_step/verifiers/test_user_sim_judge.py
…ckets, and keeps an unlisted one on the row - The judge is shown each criterion as "[c3] ...", so would_change ids drop surrounding brackets and spaces. - A fail that names only ids the run doesn't list still doesn't count, but the ids go in would_change_unlisted, so it doesn't look like a fail that named nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. |
kaihackney-scale
left a comment
There was a problem hiding this comment.
Thanks, that works. _named_ids reads [c3] and [ c3 ] as c3, and would_change_unlisted survives into the stored rows, because unnamed runs after finish_rows. Skipping the retry is fine with me; the unlisted ids on the row are enough to spot a judge that's naming the wrong thing. With #909's change merged in, nothing in src still excuses a sim that doesn't push back. The judge, checks-format, user sim prompt and discards tests pass locally (293). I'll tag you on the hook_notes follow-up once #912 lands.
…checks-split # Conflicts: # src/agent_env/task_step/task_steps/verifiers/user_sim_judge_core.py # tst/data/verifier_golden/judge_inputs.json # tst/unit/task_step/verifiers/test_user_sim_judge.py
Builds on #909, which moves the scripted-scenario rules out of the shared checks. This PR does two things:
A before/after re-judge on recorded always-on runs shows far fewer voids, and the voids that remain are real slips that name the graded item they affect. A replay of the user sim prompt shows it no longer points the assistant to where facts live. The numbers and run details are internal (FD-6464, FD-6918).
User sim judge
would_change).would_changeid written as[c3]counts asc3. A fail naming only ids the run doesn't list still doesn't count, and those ids are kept on the row (would_change_unlisted).scripts/user_sim_discards.pyreports void rates per model and per check.User sim prompt (
user_sim_versions.py)Not in this PR
Tests
test_user_sim_judge.py: 124 passed.tst/unit/task_step/verifiersplus the report's test: 1,164 passed.test_user_sim_versions.py: 117 passed.user_sim_judge_core.pystill loads on its own by file path, with a test.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
The PR tightens the user sim’s instructions and makes the judge connect failures to what the assistant is graded on.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Task graders and run overrides] --> B[Build grading context] C[User sim instructions and recorded turns] --> D[Judge each check] B --> D D --> E{Failure names a listed graded item?} E -->|Yes| F[Count toward discarding the run] E -->|No| G[Keep the verdict without discarding]Reviews (12) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile