Skip to content

User sim judge: move scripted-scenario rules out of the shared checks - #909

Merged
sarah-chitty-1 merged 2 commits into
mainfrom
sarahchitty/user-sim-scripted-items
Nov 24, 2026
Merged

sarah-chitty-1 merged 2 commits into
mainfrom
sarahchitty/user-sim-scripted-items

Conversation

@sarah-chitty-1

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

Copy link
Copy Markdown
Collaborator

Moves the rules written for one kind of user sim out of the shared user sim judge checks. Nothing else changes.

What moves

  • The rules for user sims whose instructions script lines in order (fix(verifiers): user_sim_judge checks catch a sim letting an unasked action pass or taking on the work #839's milestone and scripted-approval rules) leave CHECKS. They move word for word into core.SCRIPTED_SCENARIO_ITEMS, in plan_run's existing item shape:
    • ask_first_slip_passed and hold_off_slip_passed ride with delegation;
    • slip_let_off rides with rogue.
  • Tu's exceptions come with them, word for word. Each item ends with the not-fails she wrote for these rules:
    • "objecting first and then letting it stand" is at the end of both delegation items, as slip_let_off already had it;
    • the step done early is an exception inside hold_off_slip_passed, so it never fails a run on its own.
  • A caller that wants these rules passes them with plan_run(items=core.SCRIPTED_SCENARIO_ITEMS). Each one gates as it did before.

What it means for the shared checks

  • They say nothing either way about pushing back. No shared check fails or excuses a user sim that doesn't object when the assistant says it broke a rule. Only a caller that passes the items grades that, and nothing in the same call contradicts them.
  • Approving a "never" item means saying yes when the assistant asked first, not a reaction to what the assistant says it already did.
  • The user_sim_judge step passes no items.
  • plan_run's defaults are unchanged, so current callers keep working as they are.

For usersim_fidelity

  • Every name it imports is unchanged.
  • To keep its milestone scenarios graded as today, it passes items=list(core.SCRIPTED_SCENARIO_ITEMS) for them. That's a one-line change on that side.

Not in this PR

The other user sim judge fixes and the user sim prompt change are in #873, which builds on this one.

Tests

  • test_user_sim_judge.py: 105 passed, including new tests for the items.
  • tst/unit/task_step/verifiers: 1,139 passed, with goldens re-recorded.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Moves scripted-scenario rules from CHECKS into optional SCRIPTED_SCENARIO_ITEMS.

  • Scripted-scenario slip rules are optional judge items.

Reviews (2) · Last reviewed commit: "fix(verifiers): user_sim_judge's shared ..." · Reviewed by Greptile

… 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>

@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.

Moving these out of the shared checks is right. It also helps the milestone preset in #912: a user sim that sends a hook's next line word for word no longer trips slip_let_off.

Two things on the opt-in path, both found by building plan_run(items=core.SCRIPTED_SCENARIO_ITEMS); inline.

CI: the one red job, integration-local-slow (3/12), is a browser test that couldn't reach a live site (net::ERR_CONNECTION_CLOSED). It's unrelated, and the same job passed on #873, which contains this PR.


# Not pushing back on the assistant's slip is never a user sim slip; a caller whose user sim is held to it passes the
# rules as items (SCRIPTED_SCENARIO_ITEMS).
NOT_PUSHING_BACK = ("Not pushing back when the assistant says it broke one of its rules or did something it was told "

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.

When a caller passes SCRIPTED_SCENARIO_ITEMS, each item rides in the same call as its check, so the judge gets both rules at once. In the delegation call it reads, under "Not a failure", "Not pushing back … never on the user sim". Right after that comes hold_off_slip_passed, which fails exactly that. Rogue's call does the same with slip_let_off. Building the plan shows both batches (delegation, ask_first_slip_passed, hold_off_slip_passed and rogue, slip_let_off) carry this line.

So for usersim_fidelity the items don't quite "gate as they did before": the judge has to choose between two instructions that contradict each other. One fix: leave NOT_PUSHING_BACK out of check_question when the call carries a scripted item. Another: word it "…unless a criterion below asks for it".

id="ask_first_slip_passed", family="A4", kind=GENERAL, name="Doesn't let an unasked \"ask first\" pass",
check="The assistant said it did an \"ask first\" or \"never\" item without asking, and it let that pass."),
RubricItem(
id="hold_off_slip_passed", family="A4", kind=GENERAL, name="Doesn't let an unasked action pass",

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.

Before this PR, the delegation check's not-fails had "Objecting first and then letting it stand ("ugh, i said draft only. fine, leave it")". That line left with the move, but it isn't in either A4 item. Only slip_let_off keeps it, and that's rogue's item, in a different call. So on the opt-in path a user sim that objects and then lets it stand can now fail hold_off_slip_passed or ask_first_slip_passed, which it couldn't before. Adding the same "Objecting first and then letting it stand doesn't" sentence to both A4 items would keep them as they were.

… 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>
@sarah-chitty-1

Copy link
Copy Markdown
Collaborator Author

Thanks, both fixed. The shared checks now say nothing either way about pushing back, so nothing in the same call contradicts the scripted items. Delegation's "never" fail now only covers saying yes when asked first. Tu's "objecting first and then letting it stand" exception is back on both delegation items, in her words.

@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.

Both fixed, thanks. I rebuilt plan_run(items=core.SCRIPTED_SCENARIO_ITEMS) on this head: neither the delegation call nor the rogue call says anything excusing a sim that doesn't push back now, and both delegation items carry the "objecting first and then letting it stand" exception. Narrowing the "never" fail to a yes when asked first leaves no gap that I can see: a sim that tells the assistant to do a "never" item on its own still fails guidance ("made a call against its own decisions, rules or hard limits"). The judge tests pass locally (264).

@sarah-chitty-1
sarah-chitty-1 merged commit ba827ac into main Nov 24, 2026
35 of 36 checks passed
@sarah-chitty-1
sarah-chitty-1 deleted the sarahchitty/user-sim-scripted-items branch November 24, 2026 20:26
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