Repository navigation
Conversation
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.
Problem
Models.useraccepted only a chat model, while convy fixed the simulated user's prompt, opening, history format and stop marker. Projects could not provide scripted users, replay real dialogues or replace the user policy and API. Fakes also had to know the internal###STOP###marker.Changes
Usercontract: a behavior-identifyingnameand asyncnext(transcript, instructions)returningMessageorUserFinished.SimulatedUser(model)as the built-in implementation with its existing prompt, opening, role mapping, stripping and substring stop rule.FakeUserand make the executable Python guide finish throughUserFinished, without the internal marker.Scenariohide answer steps, validate custom user results and attribute user failures toNoVerdict/model_failure, not the agent. ExistingPlacesprovide user concurrency, pacing andBusyretries.models.py, record their names in runs and cover scripted and transcript-driven replay throughScenario,Benchand CLI.Contained,PatientModeland dialogue-levelFinishedpaths.Validation
just format,just lintandjust typepass.just test: 630 passed, 1 skipped. Tests cover theUsercontract, built-in behavior, custom and concurrent replay users, malformed results, failure attribution, busy services, project validation and CLI recording. No real model or agent is called.just changelogandjust buildpass.Closes #19