Repository navigation
fix(simulated-user): say which, when asked again after a yes (version 3) - #4
Merged
Merged
Conversation
Asked "Maria, Jayden, or both?" right after its "yes, go ahead and send a reply to a buyer", the simulated user repeated the same yes, and assistants that would not guess asked again until the run stalled. Now, asked again which of several of the action to do, it says "every one you showed me" when doing every one meets its rule, and the plain yes otherwise. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Summary
The simulated user approves with "yes, go ahead and {action}", naming the one approved action. When an assistant showed replies to two buyers and the user said "yes, go ahead and send a reply to a buyer", assistants that would not guess asked "Maria, Jayden, or both?". The user answered with the same yes, again and again. In the published runs this stalled 10 conversations, up to 57 turns. Several ended with a run waiting for a person.
Now, asked right after its yes which of several of that action to do, the user says "yes, go ahead and {action}, every one you showed me", if doing every one meets its approval rule. Otherwise it gives the plain yes as before. The simulated user's version is 3.
Changes
SimulatedUser._every: there are three guards. Each is needed, judging by the replay below._allowed(every=True)asks that last question. The proposal question it already asked keeps its text and context, so its key and saved answers are unchanged.FIXED["approve_every"],approval(operation, every),VERSION = 3.gold-behaviour.mdU10, therun-record.mdexample.experiments/probe.pyrecords each replayed reply's text.Testing
Replay of every simulated-user decision in all 1,489 published runs (2,521 decisions), official reader and judge:
test_asked_which_after_a_yes_the_user_says_every_onefails onmain.test_the_yes_covers_every_one_only_if_all_of_them_meet_the_rulefails if guard 3 is skipped.test_a_first_choice_gets_the_plain_yeschecks the first yes is unchanged.test_a_yes_given_with_a_fact_counts_as_the_yes_before_the_choicecovers a yes given together with a fact.uv run pytest -qgives 668 passed.ruff format --checkis clean.Size
+168 / −25. CC:
_every7;_allowed7 → 9 (theeveryquestion);_answerunchanged at 5.Risks
🤖 Generated with Claude Code

Confidence Score: 5/5
The PR appears safe to merge; the combined-approval fix keeps the existing approval checks.Summary
Version 3 lets the simulated user answer a repeated “which ones?” question with “every one you showed me” when all offered actions meet its rule.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Proposal meets the user rule] --> B{Previous reply approved the same action?} B -->|No| C[Plain yes] B -->|Yes, alone or with a fact| D{Assistant asks which ones?} D -->|No| C D -->|Yes| E{Every offered item meets the rule?} E -->|No| C E -->|Yes| F[Yes, every one shown]Reviews (2) · Last reviewed commit: "fix(simulated-user): a yes given with a ..." · Reviewed by Greptile