Skip to content

User sim judge and user sim: fewer wrong discards, stop giving the assistant answers - #873

Merged
sarah-chitty-1 merged 22 commits into
mainfrom
sarahchitty/user-sim-checks-split
Nov 24, 2026
Merged

sarah-chitty-1 merged 22 commits into
mainfrom
sarahchitty/user-sim-checks-split

Conversation

@sarah-chitty-1

@sarah-chitty-1 sarah-chitty-1 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Builds on #909, which moves the scripted-scenario rules out of the shared checks. This PR does two things:

  • The user sim judge stops voiding valid runs.
  • The user sim stops giving the assistant answers it should find itself.

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

  • General checks: every shared check is written against what the user sim's own instructions say. A user sim is never graded for a reaction its instructions don't ask for.
  • No re-ask fail: there's no fail for not re-asking about a missing "tell you after" item.
  • Multi-day runs: "done" ends nothing, so the ending check is n/a, and every check is told.
  • Another person's or a business's silence never makes "done" premature.
  • Answering the assistant's question is never oversharing, and the reason quotes the question.
  • Pointing to where a fact lives ("it's in your email") is oversharing, unless its instructions say to point there.
  • Allowed choices: a choice its rules, decisions and limits already allow is not an unauthorised decision.
  • Persona contradictions: contradicting its own instructions, inventing a rule, or coaching the assistant fails.
  • Naming the graded item:
    • The judge reads what the assistant is graded on: the process criteria and the end-state step.
    • Those criteria are resolved for each run, so a run's criteria overrides apply.
    • A fail voids a run only if it names a graded item it would change (would_change).
    • Tasks with no graders keep today's behaviour.
  • Naming in brackets: a would_change id written as [c3] counts as c3. 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).
  • Delegation's n/a: delegation is n/a when the user sim's instructions have no rules about acting without asking, or when the assistant never asked or reported acting.
  • New report: scripts/user_sim_discards.py reports void rates per model and per check.

User sim prompt (user_sim_versions.py)

  • What to look up: the section is now "things the assistant should find itself". The user sim never gives the value and never says where it is. If asked, it says, a little impatiently, that the assistant should already know or find it.
  • "Tell you after" items left out: the user sim may say it wasn't told, but never asks the assistant to tell it now or to do it again.
  • Its rules: the heading says the assistant may not know them, so the user sim tells it a rule when that rule comes up.

Not in this PR

  • The hub's seeded runs don't carry the grading context to the judge yet, so the naming rule falls back to today's behaviour there. This needs a follow-up in the agent-env worker.
  • Persona lines: tasks whose persona lines themselves say where a fact lives need those lines rewritten. That work is in the task repo.

Tests

  • test_user_sim_judge.py: 124 passed.
  • tst/unit/task_step/verifiers plus the report's test: 1,164 passed.
  • test_user_sim_versions.py: 117 passed.
  • user_sim_judge_core.py still loads on its own by file path, with a test.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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.

  • User sim failures count only when they affect the assistant’s grade.
  • The user sim no longer points the assistant to facts it should find.
  • A report shows user sim discard rates for each assistant model.

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]
Loading

Reviews (12) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

@sarah-chitty-1
sarah-chitty-1 requested a review from a team as a code owner November 22, 2026 05:26
@sarah-chitty-1
sarah-chitty-1 marked this pull request as draft November 22, 2026 05:28
@sarah-chitty-1 sarah-chitty-1 changed the title fix(verifiers): user_sim_judge checks split into shared, PSI and MCP Commercial lines fix(verifiers): write every user_sim_judge check against the user sim's own instructions Nov 22, 2026
@sarah-chitty-1 sarah-chitty-1 changed the title fix(verifiers): write every user_sim_judge check against the user sim's own instructions fix(verifiers): user_sim_judge stops voiding valid runs, with general shared checks Nov 24, 2026
@sarah-chitty-1
sarah-chitty-1 marked this pull request as ready for review November 24, 2026 04:53
Comment thread scripts/user_sim_discards.py Resolved
sarah-chitty-1 added a commit that referenced this pull request Nov 24, 2026
…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>
sarah-chitty-1 added a commit that referenced this pull request Nov 24, 2026
…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>
sarah-chitty-1 and others added 17 commits November 23, 2026 21:43
… 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>
@sarah-chitty-1
sarah-chitty-1 force-pushed the sarahchitty/user-sim-checks-split branch from a4d309c to a6e686d Compare November 24, 2026 05:48
@sarah-chitty-1 sarah-chitty-1 changed the title fix(verifiers): user_sim_judge stops voiding valid runs, with general shared checks User sim judge and user sim: fewer wrong discards, stop giving the assistant answers Nov 24, 2026
@sarah-chitty-1
sarah-chitty-1 changed the base branch from main to sarahchitty/user-sim-scripted-items November 24, 2026 05:48
…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 kaihackney-scale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

sarah-chitty-1 and others added 3 commits November 24, 2026 10:45
… 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>
@sarah-chitty-1

Copy link
Copy Markdown
Collaborator Author

Thanks. would_change now reads [c3] as c3. An id the run doesn't list is kept on the row as would_change_unlisted, so it no longer looks like the judge named nothing. I didn't add the retry, since it would mean showing every call the full list again. Sounds good on the hook_notes follow-up after #912; please tag me.

@kaihackney-scale kaihackney-scale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Base automatically changed from sarahchitty/user-sim-scripted-items to main November 24, 2026 20:26
…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
@sarah-chitty-1
sarah-chitty-1 enabled auto-merge (squash) November 24, 2026 23:35
@sarah-chitty-1
sarah-chitty-1 merged commit e4e9343 into main Nov 24, 2026
35 checks passed
@sarah-chitty-1
sarah-chitty-1 deleted the sarahchitty/user-sim-checks-split branch November 24, 2026 23:44
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.

2 participants