Skip to content

feat(verifiers): user_satisfaction_grading, the run graded from the user's side - #935

Open
anisha2102 wants to merge 7 commits into
mainfrom
anisha/user-satisfaction-grading
Open

anisha2102 wants to merge 7 commits into
mainfrom
anisha/user-satisfaction-grading

Conversation

@anisha2102

@anisha2102 anisha2102 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

rate_user_satisfaction asks the user sim for one 1-5 rating once the run is over. That says how the run felt, but not what went wrong, when or how often, and two runs that both get a 1 look the same. This adds user_satisfaction_grading, a step that grades the assistant the way its user would, from what the user saw, and keeps a log of it.

  • What the judge reads:
    • the run as user_sim_judge reads it: the persona rebuilt and checked against prompt_sha256, and every check-in's user_sim_read input and answer;
    • the rating step's lines, and what the user read after the last check-in, as one more check-in;
    • the run step's system_prompt, so what the assistant could have known follows what it was told;
    • messages the task sent for the user at set times, marked scheduled: whatever they sent before their first answer, and an always_on run's scripted_user_line events. A scripted "any update?" is never the user chasing.
  • One call per run: the answer starts with two checklists:
    • every action the assistant reported: whether it needed an OK, had one, and for one only announced, when the user OK'd it;
    • every question or request to the user: whether they had already decided it, and what in the run shows the assistant could have handled it itself (its rules, something it did elsewhere in the run, a promise, or nothing). An ask is judged by what it's for, not only the step it names.
  • The incidents:
    • Each one goes at the check-in where the user could first see it, under the first of five dimensions that fits: unauthorized_action, ignored_preference, needless_handoff, contradictory_claim, unreported_outcome. Then comes the end outcome.
    • The code holds the incidents to the checklists. An unapproved purchase is severe whatever the judge said, and one the user OK'd in time is free. A handoff takes its severity from its kind; an ask nothing shows the assistant could have handled is no incident; asking again about something decided is ignored_preference. A taste the user never stated is logged but free.
    • The score counts one incident per check-in and dimension: the worst, and on a tie the one that costs most, so the order the judge lists them in doesn't matter.
  • The score:
    • A 1-5 score is computed from the log. Each incident costs by severity, a repeat of the same thing costs more, one put right costs half (at a later check-in, or for a correction, in the same message when it reports the fix done), and the end outcome costs extra.
    • The weights are recorded beside it, and can change without judging again.
    • The grade's score is the 1-5 score as 0-1; the entry keeps the 1-5 one as score_1_5. Its rows weigh 0.
  • Recorded only:
    • can_be_reward is false and fail_task_on_error defaults to false: it's never the task's reward, never fails the task and decides no verdict.
    • It grades a run only when every user_sim_judge of the run in the task judged it and found user_sim_error no. A judge that failed or never ran left no verdict (its grade, by step id, says which), so the run isn't graded.
    • Its load check needs a user_sim_judge of the run, and makes the step depend on it and on rate_user_satisfaction.
    • The whole log is the entry's log.

It is a RubricsVerifierTaskStep, as UserSimJudge is:

  • The call: the call, its retries, its correction loop, its record (judge_calls), and effort and max_thinking_tokens are rubrics_verifier's.
  • A new output format, user_satisfaction_log: one criterion for the whole run. Like user_sim_checks, it lives wholly in judge_output_format: its words (dimensions, severities, outcomes, what shows the assistant could have handled an ask), its JSON schema, and its diagnose_response. That checks the log against the schema and the run's check-ins, so an answer that isn't a whole log is asked again with what was wrong.
  • What it fixes: rubrics_verifier settings that don't apply are refused at load, and a run's overrides can't turn it into an agent judge. Its rules are the system message, and hold no task's facts or examples.
  • A task's own rules: grading_policy_prompt, such as a harness's closing RESULT: line not counting as an incident.

Shared with user_sim_judge, which uses them too:

  • find_run and FoundRun.read: the run, or why it's skipped;
  • answered_calls: the entry's calls, usage and cost;
  • user_sim_errors: the judges' verdicts on a run;
  • load_stored: a JSON object a step stored, read back (it was _load);
  • scripted_user_lines: what an always_on task sent for the user at set times.

user_sim_judge's prompt and grading are unchanged. Its grading_of now counts only steps that can be the reward, so it never takes this step for one of the assistant's graders.

Files:

  • verifiers/user_satisfaction_grading_core.py: the prompt, what the log's words mean, the scheduled-message marking, the log, the checklists and the score. No model call and no I/O.
  • verifiers/user_satisfaction_grading.py: the step.
  • judge_utils/judge_output_format.py: the user_satisfaction_log format: its words, its schema and the answer check. It imports no verifier.
  • verifiers/user_sim_judge.py: the shared helpers above.
  • task/task.py: substitute_seed, factored out of substitute_seed_in_steps.
  • agent/user_sim_versions.py: RULES_TAG and PRIVATE_TAG, the two letters that weren't constants.
  • The step type in registry.py and in episode/rules.py (UNAFFECTED).
  • A "Grading from the user's side" section in agent/user_sim.md.
  • Tests.

How it was tested

  • New tests: tst/unit/task_step/verifiers/test_user_satisfaction_grading.py, 36 tests. They cover:
    • the log and its score: the checklists (a purchase beside a free incident included), an announcement OK'd in time or bought only with a yes (and one yes never freeing two announcements), handoffs only with evidence and re-asks as ignored_preference, repeats and their dimension, fixes (a correction fixed in the same message included), ties at one check-in in either order, "could know" with and without the assistant's instructions, and the judge's ids kept across an added incident;
    • scheduled messages: the opening and a scripted line marked, the user's own replies not, and the scripted lines read from the stored timeline;
    • the answer check: schema errors, a check-in the run doesn't have, a truncated answer, the correction prompt, and the log using the format's words;
    • the prompt;
    • the step on a real always_on run (test_user_sim_judge's rig) through LiteLLM's mock;
    • a judge that never answers (a failed grade, never a failed task), and the effort a run sends;
    • the skips: each user sim verdict, and a second judge of the run that failed or never ran;
    • the load check, the reward, registration and the settings round trip.
  • Repo checks:
    • make lint and the plugin-api check (no break) pass.
    • tst/unit/task_step, tst/unit/task and tst/unit/openenv: 5,456 pass. The two failures need a writable /app, and a local result write within 10 s, which this machine's slow disk misses.
  • The dimensions, on current task versions (offline): 26 runs of four always-on tasks' current versions, each judged 3 times by these five dimensions and 3 times by the six before them, with the same prompts and grading policy, and an Opus judge:
    • rank correlation with the user sims' own ratings: 0.87 for the 3-repeat mean (each repeat 0.84-0.89), against 0.81 (0.76-0.85);
    • 22 of the 26 runs within 0.5 across repeats, against 18;
    • replaying the 78 stored judge answers through this module gives the prototype's scores exactly, and none fails the answer check.
  • Live, before the dimension change: agent-env task run --start-step <this step> --context-json <saved context> on 8 saved runs of three tasks, with local stores, the local runner and a real Opus judge: 7 were graded in one call each with the strict format, each costing $0.08-0.19, and 1 was skipped, as its user sim judge had found a slip.

🤖 Generated with Claude Code

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge; no new blocking issue remains.

Summary

Adds user_satisfaction_grading to log incidents from the user's view and compute a recorded-only score.

  • A user-side judge records incidents and a score for each checked run.

Reviews (14) · Last reviewed commit: "fix(verifiers): one yes frees only the a..." · Reviewed by Greptile

…ser's side

A recorded-only step that grades the assistant the way its user would, from what the user saw: one judge call reads
the run as user_sim_judge does, the rating's lines and the run step's system prompt, lists every action and every ask
the assistant made, and logs each incident at the check-in where the user could first see it. Its 1-5 score is
computed from that log. It never fails the task and decides no verdict; it runs after the user sim judge and the
rating.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anisha2102
anisha2102 requested a review from a team as a code owner November 26, 2026 02:35
…swer, never charges a free incident, and logs the final read

- An answer missing a part of RUN_SCHEMA or an end outcome isn't a log: it's asked again, and fails the grade after
  MAX_ATTEMPTS, rather than scoring the missing parts as nothing wrong (answer_problems).
- Merging a check-in's incidents in one dimension keeps the worst one the assistant could have known about, with its own
  could_know, so a free incident never makes a knowable one cost more. No stored log's score changes.
- What the user read after the last check-in is one more check-in (with_final_read), so an incident or a fix there
  has a check-in and its quote is checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

Nice idea, and the split into a pure scoring core plus a step file matches how user_sim_judge is built. Before it lands in the shared framework, there are four bugs to fix and some restructuring so it reuses the framework's judge code instead of copying it.

Bugs

  1. Is this meant to count toward the task's score, or be recorded only? The PR (and #54) say recorded only. My understanding was that it should feed into the score, so worth a double check. Either way, two fixes:
    • If recorded only, set can_be_reward = False, as UserSimJudge does. Without it, openenv/reward.py treats this step as a reward candidate. In a task with one real scorer, it then refuses with "name the one that is its reward".
    • If it should count, feed it into the task's aggregate step rather than making it a second main score. #54 would then need its "read by no aggregate" rule removed.
    • Both ways: rename the 1–5 key (e.g. score_1_5). Today entry["score"] holds the 1–5 number and overwrites the grade's 0–1 score in verifications[vid], so recorded_scores reports 4.85 next to 0.9 for the same run.
  2. A malformed answer can still score 5/5. answer_problems checks that the lists exist, but not the items in them. An incident with "severity": "Severe", a string turn, or an unknown dimension is dropped into problems, and the run scores 5.0. A wrong-type field (a list text, an int repeat_of) gets past the check, then crashes apply_run after the call is paid for. Please validate against RUN_SCHEMA with jsonschema (already a dependency), check every turn is a real check-in, and ask again on any error, so a score never comes from an answer with dropped incidents. Also add "strict": True to the response format, as rubrics_verifier does.
  3. The checklists don't always force the incident. In _check_actions, if the judge filed two overstepped incidents at the check-in with the purchase, the severe bump can land on the free one (could_know=False) while collapsed keeps the cheap knowable one. The unapproved purchase then costs 0.15. _check_asks can also lower a judge's major incident to minor. A test for each would help.
  4. A spoiled run can still be graded. verify never reads the user sim judge's user_sim_error. With no user_sim_judge in the task, its gate off, or an undecided verdict, the step grades the run anyway. Please skip unless the run's user_sim_judge entry has user_sim_error == "no", and require the judge step at load (today task_problems only checks the dependency when the step exists).

Reuse instead of copies

  • _ask re-implements rubrics_verifier's direct call, its retry loop and the call record. It's weaker:

    • it re-sends the same prompt without saying what was wrong;
    • it retries setup errors three times;
    • it ignores the judge's effort and max_thinking_tokens.

    Either subclass RubricsVerifierTaskStep with a whole-run output format spec (as UserSimJudge and TRAJECTORY_MISTAKES do), or move that call and its correction loop into a public judge_utils helper and use it here. Then _ask, core.parse and RESPONSE_FORMAT can go.

  • _find_run and the skip checks at the top of verify copy UserSimJudge's. One public "load the user sim run, or say why to skip" helper in user_sim_judge, used by both steps, would replace them. It would also replace the eight private imports (_load, _read_run, _cost, _usage, …).

  • _seeded duplicates task.substitute_seed_in_steps; _store_log duplicates the base class's object-store handling.

Smaller

  • Weights: the scoring weights (COST, REPEAT_STEP, RECOVERED, CAP, OUTCOME_COST) are hard-coded with no version recorded. Make them a step setting (like mistake_severity_weights), or record them in the entry.
  • Section letters: KNOWN_SECTIONS = "ACT" copies the user sim's section letters. Read them from user_sim_versions.SECTIONS.
  • RESULT: lines: the prompt's rule about "RESULT: DONE" lines is one harness's convention. Make it a setting, or drop it from the shared prompt.
  • Repeats: a repeat across dimensions isn't enforced, and collapsed can take the wrong incident's repeat_of.
  • One call per run: a long multi-day run can hit the 16k output cap. A truncated answer then fails twice more at full price.
  • Tests: please add tests for bugs 1–4 and a truncated answer.

…, recorded only, grading only a run its user sim judge found clean

- It is a RubricsVerifierTaskStep, as UserSimJudge is, with a new output format, user_satisfaction_log:
  rubrics_verifier's call, retries, correction loop, judge_calls record, effort and max_thinking_tokens.
  Its own call, parse and response format are gone. Settings that don't apply are refused at load (PINNED),
  and a run's overrides can't make it an agent judge (RUN_FIXED).
- can_be_reward is False. The 1-5 score is score_1_5, so the entry's score is the grade's 0-1 one.
  user_sim_judge.grading_of counts only steps that can be the reward.
- answer_problems checks the answer against RUN_SCHEMA with jsonschema and every check-in number against the
  run's, so an answer with a dropped or misread incident is asked again, never scored.
- The action checklist raises the incident the score keeps. A repeat_of naming another dimension is dropped,
  and collapsed keeps the kept incident's own repeat_of.
- A run is graded only when every user_sim_judge of it judged it and found user_sim_error no, and the task
  needs a user_sim_judge of the run at load.
- Shared with user_sim_judge: find_run and FoundRun.read, user_sim_errors and answered_calls.
  task.substitute_seed is factored out of substitute_seed_in_steps. user_sim_versions names RULES_TAG.
- The entry keeps the whole log and the score's weights. The RESULT line rule leaves the shared prompt for a
  task's grading_policy_prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anisha2102

Copy link
Copy Markdown
Collaborator Author

Thanks, Sarah. All four bugs were real, and the step now reuses the framework's judge code instead of copying it. It's all in c6f8e04.

Bugs

  1. Recorded only, for now. It's new, and it shouldn't move PSI verdicts until it has been watched on more runs.
    • can_be_reward = False, so reward_of never picks it. An aggregate_verifiers step can still read it later.
    • The 1-5 number is now score_1_5. The entry's score is the grade's 0-1 one, so recorded_scores and the grade agree.
    • Now that it's a rubrics_verifier, user_sim_judge.grading_of would have counted it as one of the assistant's graders. It now skips steps that can't be the reward.
    • Test: test_it_is_recorded_only_never_the_reward_nor_a_grader_the_user_sim_judge_weighs.
  2. A malformed answer.
    • answer_problems checks the whole answer against RUN_SCHEMA with jsonschema (Draft202012Validator).
    • It also checks that every turn, announced_at and same_as is one of the run's check-ins.
    • An answer with any problem is asked again through rubrics_verifier's correction loop, with the problems listed. The response format is rubrics_verifier's, so it's strict.
    • Tests:
      • test_an_answer_the_log_can_t_take_is_named_so_no_incident_is_dropped_or_misread uses your examples: "Severe", a string turn, a list text, an int repeat_of, an unknown dimension, and a turn the run doesn't have.
      • test_an_answer_the_log_can_t_take_is_asked_again_with_what_was_wrong sends a truncated answer, then one with a bad turn, then a good one. That's 3 calls, with judge_output_retries at 2.
  3. The checklists.
    • _check_actions now raises the incident collapsed keeps: the one the assistant could have known about, first. Your case costs 2.0 now. Test: test_a_purchase_without_an_ok_costs_what_the_checklist_says_even_beside_a_free_incident.
    • _check_asks lowering a major to minor is on purpose. The anchors make a question minor and a step major, and taking the checklist's kind both ways is what made repeat judgings of a run agree. I kept it, said why in its docstring, and pinned it: test_the_asks_checklist_sets_a_hand_back_s_severity_both_ways.
  4. A spoiled run.
    • The step is skipped unless every user_sim_judge of the run judged it and found user_sim_error no. user_sim_judge.user_sim_errors reads their entries.
    • No verdict, a skipped judge, yes and unknown each skip, with their own reason (a parametrized test).
    • task_problems refuses a task with no user_sim_judge of the run.

Reuse

  • The judge call: it subclasses RubricsVerifierTaskStep, as UserSimJudge does.
    • A new output format, user_satisfaction_log, asks one criterion for the whole run. Its diagnose_response checks the log, and its correction prompt lists what was wrong. _ask, core.parse and RESPONSE_FORMAT are gone.
    • The call, its retries, the judge_calls record, effort and max_thinking_tokens are rubrics_verifier's. A test checks that a run's judge_effort reaches the call.
    • Settings that don't apply are refused at load (PINNED), as in UserSimJudge.
    • A run's use_agent_judge, judge_batch_size, grade_up_to_turn and trajectory filter don't apply either (RUN_FIXED). The rules are the system message, which an agent judge isn't sent.
  • Finding the run: user_sim_judge now has a public find_run (the run, or why it's skipped) and FoundRun.read.
    • UserSimJudge.verify uses them too, so its _find_run is gone.
    • answered_calls() gives both steps their calls, usage and cost.
    • None of the eight private imports is left.
  • _seeded: it's replaced by task.substitute_seed, factored out of substitute_seed_in_steps (one pass, as the steps get it). user_sim_judge._seeded uses it too.
  • _store_log: gone. The whole log is the entry's log, and the grade's copy goes to the object store when it's large, as every verifier's output does. On our runs a log is 0.4-10 KB.

Smaller

  • Weights: recorded in the entry as weights.
  • Section letters: KNOWN_SECTIONS reads them from user_sim_versions: SECTIONS, and a new RULES_TAG for the rules section, whose letter wasn't a constant.
  • RESULT: lines: dropped from the shared prompt. A task gives that rule as grading_policy_prompt, rubrics_verifier's setting, now allowed on this step. refactor(a2a)!: remove the S3 transfer forms #54 documents it, and its static check warns when a PSI task leaves it out.
  • Repeats: a repeat_of naming another dimension is dropped and logged. collapsed now keeps the kept incident's own repeat_of. Test: test_a_repeat_keeps_its_dimension_and_each_check_in_keeps_its_own_incident_s_repeat.
  • One call per run:
    • max_tokens isn't sent any more, so LiteLLM gives the model its full output room (128k for Opus 5.5). The largest answer so far was 7.8k tokens.
    • A truncated answer is still asked again, since it can't be told apart from other bad JSON: ModelReply doesn't carry finish_reason.
  • One layering choice to check with you: judge_output_format imports user_satisfaction_grading_core for RUN_SCHEMA and answer_problems, so the format and the log can't disagree. I can move the schema into judge_output_format instead if you'd rather judge_utils not depend on a verifier's core.

Tested

  • Unit:
    • 5,147 tests pass in tst/unit/task_step, tst/unit/task and tst/unit/openenv. The one failure needs a writable /app.
    • The step's own file has 25 tests.
    • make lint and the plugin-api check (no break) pass.
  • Replay: all 115 stored judge answers were replayed through the old and the new core. No score moves, and none would have been asked again.
  • Live: agent-env task run --start-step on 8 saved runs, with a real Opus judge.
    • 7 were graded in one call each. The strict format was accepted, every quote was found, each run cost $0.08-0.19, and scores are within 0.23 of the offline ones.
    • 1 was skipped because its user sim judge had found a slip, as it should be.
    • Across the 37 rated runs, the new skip leaves out 5 (4 slips, 1 run the judge didn't judge). On the other 32, the score ranks the runs like the user sim's own end rating at 0.91.

@sarah-chitty-1 sarah-chitty-1 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, this is a big improvement: all four bugs are fixed, it's built on rubrics_verifier the way UserSimJudge is, and the shared-code changes leave existing tasks and the user sim judge as they were. Approving, with a few small fixes before merge:

  1. collapsed depends on order on a tie. When two incidents at one check-in cost the same, the first listed is kept with only its own repeat_of. Two minor put_it_on_me at one check-in, one a repeat, cost 0.38 or 0.30 depending on which comes first. On a tie, keep the one that costs more, or the one with a repeat.
  2. Layering: judge_output_format now imports user_satisfaction_grading_core, so the shared judge_utils depends on one verifier. Move RUN_SCHEMA + answer_problems into judge_output_format (as user_sim_checks keeps its schema there), or register the spec from the step module.
  3. _stored copies user_sim_judge._load. Make that loader public and use it.
  4. Merge with psi-benchmark-tasks #54: the RESULT rule now comes from the task's grading_policy_prompt, so PSI runs lose it until #54 lands.

anisha2102 and others added 3 commits November 30, 2026 19:44
…dent, its format in judge_output_format, and skips a run a judge failed on

- collapsed: on a tie of could_know and severity at one check-in and dimension, keep the incident that costs most (a
  repeat, one not put right), so the score never depends on the order the judge listed them in. Groups are collapsed
  in check-in order, so a repeat's cost is read from what the earlier check-ins kept.
- The user_satisfaction_log format's words (USER_SATISFACTION_DIMENSIONS, _SEVERITIES, _OUTCOMES), its schema
  (USER_SATISFACTION_LOG_SCHEMA) and its answer check (user_satisfaction_log_problems) move into judge_output_format,
  as user_sim_checks keeps its own; judge_output_format imports no verifier. The core keeps what each word means, the
  log and the score, and a test holds the two to the same words in the same order.
- user_sim_judge._load is public as load_stored, and user_satisfaction_grading uses it instead of its own copy.
- The step keeps the step ids of the task's user_sim_judges of the run (task_problems; seeded_from carries them) and
  skips the run when one of them failed or never ran, as its grade shows: such a judge leaves no verdict, so another
  judge's clean verdict no longer lets the run be graded. Step ids, not verifier ids: a rubrics_verifier with no
  verifier_id gets a fresh one each time the task loads.
- The test reads recorded_scores from task.result, where main moved it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cklists' evidence, and scheduled messages

- Five dimensions, checked in order: unauthorized_action, ignored_preference, needless_handoff, contradictory_claim,
  unreported_outcome (they replace overstepped, put_it_on_me, ignored_me, got_it_wrong, left_hanging, too_much). A
  stated wish about length or options is ignored_preference; an unstated one is logged but free, so too_much is gone.
- The asks checklist says when the person had already decided an ask (decided_at) and what in the run shows the
  assistant could have handled it itself (could_because: its rules, something it did elsewhere in the run, a promise,
  or none). Asking again about something decided is ignored_preference; an ask nothing shows it could have handled is
  no incident. An ask is judged by what it's for: asking the person to find out something the assistant could find out
  itself where it works is a handoff, and so is one made right after the assistant reports it saw the thing isn't done.
- The actions checklist says when the person OK'd an announced action (ok_at). An announcement that got its yes in
  time, or that went ahead only with their yes, is logged but free.
- Messages the task sent for the person at set times are marked scheduled (core.mark_scheduled): whatever they sent
  before their first answer, and an always_on run's scripted_user_line events (user_sim_judge.scripted_user_lines).
  A scheduled message is never the person chasing; a promise to keep checking and report that wasn't kept is its own
  unreported_outcome. The entry lists them as `scheduled`.
- A contradictory_claim whose correction comes with the fix already done, in the same message, is put right at its
  own check-in.
- The words, schema and check stay in judge_output_format (USER_SATISFACTION_DIMENSIONS,
  USER_SATISFACTION_COULD_BECAUSE, USER_SATISFACTION_LOG_SCHEMA); the prompt holds no task's facts or examples.

Tested on 26 runs of four always-on tasks' current versions, each judged 3 times by these dimensions and by the six
before them: rank correlation with the user sims' own ratings 0.87 for the mean (0.81 before), and 22 of the 26 runs
within 0.5 across repeats (18 before). The 78 stored judge answers replay through this core with the prototype's
scores exactly, and all pass the answer check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An announcement incident at a check-in was freed by any yes naming it: a purchase made later with the person's yes
freed every announcement at that check-in, so two purchases announced together and one made with permission left the
other free too.

_settle now frees a check-in's announcements only when every action announced there without an OK got its yes: all
OK'd before they happened (ok_at), or as many made since with a yes, each naming that check-in. A purchase names only
the check-in it was announced at, so with some OK'd and some made the two may be one action, and the check-in keeps its
cost. When the check-in's checklist lists no announcement, its announcement incidents are counted instead.

The 78 stored judge answers from the offline comparison replay to the same scores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anisha2102

Copy link
Copy Markdown
Collaborator Author

Thanks, Sarah. Your four fixes are in 5d93a5c0. There's also a bigger change since your approval, the dimensions themselves, in 8540d33e (with a fix Greptile found in b5c9048d), so I'd value a second look.

Your fixes (5d93a5c0)

  1. The tie in collapsed: on a tie of could_know and severity, the incident that costs most is kept: a repeat over a plain one, one left as it was over one put right. Check-ins are collapsed in order, so a repeat's cost is read from what earlier check-ins kept. Your case costs 0.38 in either order (test_on_a_tie_…).
  2. Layering: the format's words, USER_SATISFACTION_LOG_SCHEMA and user_satisfaction_log_problems live in judge_output_format, as user_sim_checks keeps its own. judge_output_format imports no verifier; the core imports from it.
  3. _stored: gone; user_sim_judge._load is public as load_stored, and both steps use it.
  4. Merging with refactor(a2a)!: remove the S3 transfer forms #54: agreed, refactor(a2a)!: remove the S3 transfer forms #54 (and build: ship the explorer's web UI in the agentenv-framework wheel #52 under it) should land with this.

Also from Greptile: with two user_sim_judges of one run, a failed one left no verdict, so the other's clean one let the run be graded. The step now keeps the judges' step ids and skips the run when one failed or never ran.

The dimensions (8540d33e)

Testing on newer runs showed the six dimensions mixing things up. A stated preference broken by re-asking, by listing what was ruled out, or by offering it again landed in three different dimensions. Hand-backs of things the assistant couldn't do counted as laziness. A task's scripted "any update?" counted as the user chasing. So there are now five, checked in order:

Dimension What it is
unauthorized_action did, or said it would do, something without the OK it needed (was overstepped)
ignored_preference went against something the user said, including asking again about something decided (was ignored_me, plus stated too_much and re-asks)
needless_handoff asked the user to do something the run shows it could have done itself (was put_it_on_me)
contradictory_claim said something the user can see doesn't hold up (was got_it_wrong)
unreported_outcome left the user without something they needed to hear (was left_hanging)

What changed with them:

  • The checklists carry evidence. An ask says when the user had decided it and what in the run shows the assistant could have handled it; an action says when the user OK'd it. So an ask nothing shows the assistant could do is no incident, a re-ask is ignored_preference, and a plan the user OK'd before it happened is free.
  • Scheduled messages are marked. The opening, and an always_on run's scripted_user_line events (new user_sim_judge.scripted_user_lines), never count as the user chasing.
  • A correction that comes with its fix, in the same message, counts as put right there.
  • The prompt holds no task's facts or examples. That came out of an earlier draft that had leaked one task's details into it.

Greptile found a bug in the announcement rule, fixed in b5c9048d. One yes from the user freed every announcement at its check-in, so if two purchases were announced together and one was made with permission, the other went free too. Now a check-in's announcements are free only when all were OK'd before they happened, or as many were made since with a yes. A mix of the two keeps its cost, since they may be the same purchase.

Tested

  • Offline: 26 runs of four always-on tasks' current versions, each judged 3 times by both versions with the same prompts. Rank correlation with the sims' ratings is 0.87 for the mean, against 0.81 for the six dimensions, and 22 of 26 runs stay within 0.5 across repeats, against 18. The 78 stored answers replay through the ported core with the prototype's scores exactly.
  • Unit: the step's file has 36 tests. Locally on 8540d33e, tst/unit/task_step, tst/unit/task and tst/unit/openenv gave 5,456 passing; the two failures need a writable /app and a 10 s local write this box misses. The stored answers replay to the same scores after b5c9048d too.
  • CI on b5c9048d: unit, the integration-local jobs and plugin-api pass. The CodeBuild "Integration Tests" check fails, as it has on four other recent PRs; I haven't seen its log yet.

This branch has not been deployed

No deployments
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