feat: support pre-written follow-up prompts in eval YAML#209
Merged
Conversation
Add follow_up_prompts field to TestStimulus for multi-turn eval scenarios. Follow-up prompts reuse the same session and workspace, preserving conversation history and file changes across turns. Changes: - Add FollowUps []string to TestStimulus (yaml: follow_up_prompts) - Add WorkspaceDir to ExecutionRequest for workspace reuse - Update CopilotEngine to skip setupWorkspace when WorkspaceDir is set - Update MockEngine to support workspace reuse and SessionID passthrough - Add executeFollowUps() to orchestration runner with result aggregation - Add 3 YAML parsing tests and 5 orchestration tests - Update JSON schema, eval-yaml guide, and schema reference docs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
41244f5 to
9abb021
Compare
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
Closes #189
Adds support for
follow_up_promptsin eval YAML task definitions, enabling multi-turn evaluation scenarios where each follow-up reuses the same session and workspace.Working as Linus (Backend Developer)
Changes
Core
internal/models/testcase.go: AddFollowUps []stringtoTestStimulus(yaml: follow_up_prompts)internal/execution/engine.go: AddWorkspaceDirtoExecutionRequestfor workspace reuseinternal/execution/copilot.go: SkipsetupWorkspacewhenWorkspaceDiris setinternal/execution/mock.go: Support workspace reuse andSessionIDpassthroughinternal/orchestration/runner.go: AddexecuteFollowUps()with result aggregation (events, tool calls, usage, duration)Tests
Documentation
schemas/task.schema.json: Addfollow_up_promptspropertysite/src/content/docs/guides/eval-yaml.mdx: Add follow-up prompts guide sectionsite/src/content/docs/reference/schema.mdx: Add schema reference entryExample
How it works
WorkspaceDirandSessionID