Open
Conversation
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
joshblack
August 21, 2026 23:25
View session
Member
|
@copilot make sure to add support for viewing turns in the UI |
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Contributor
Author
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Contributor
Author
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class support for multi-turn evaluation scenarios so experiments can measure context retention across sequential prompts within the same Copilot session, and updates reporting/UI/docs to surface per-turn details.
Changes:
- Extend scenario config + loader to support ordered follow-up
turnswith per-turn test (and optional browser test) files. - Update the runner to resume the same Copilot session across turns, stop on first failing turn, and aggregate usage/logs/test results across executed turns.
- Update output schemas and the website run view to display multi-turn transcripts.
Show a summary per file
| File | Description |
|---|---|
| website/src/app/experiments/[id]/runs/[date]/page.tsx | Builds per-turn transcript data for the run details payload used by the UI. |
| website/src/app/experiments/[id]/runs/[date]/components/Page.tsx | Renders multi-turn conversation UI when present, otherwise falls back to single transcript view. |
| README.md | Documents how to define follow-up turns in scenarios. |
| packages/agent-eval/src/scenarios.ts | Loads and validates turns, resolves turn test paths, and returns resolved turn metadata. |
| packages/agent-eval/src/scenarios.test.ts | Adds coverage for loading valid turns and rejecting invalid turn configs. |
| packages/agent-eval/src/scenario-config.ts | Re-exports ScenarioTurnConfig for scenario authoring convenience. |
| packages/agent-eval/src/run.ts | Runs Copilot in a loop across turns (resuming session), runs per-turn tests, and aggregates metrics/results. |
| packages/agent-eval/src/run.test.ts | Tests --resume argument wiring for follow-up turns. |
| packages/agent-eval/src/output.ts | Extends zod schemas to serialize/parse multi-turn scenario config and resolved turn metadata. |
| packages/agent-eval/src/experiment-config.ts | Extends ScenarioConfig with optional turns and defines ScenarioTurnConfig. |
| packages/agent-eval/README.md | Adds package-level docs for multi-turn scenario authoring and behavior on failure. |
| .changeset/clear-beans-read.md | Publishes the feature as a minor version bump for @primer/agent-eval. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 12/12 changed files
- Comments generated: 3
- Review effort level: Lite
Comment on lines
+162
to
+165
| return turnLogs.slice(0, prompts.length).map((messages, index) => ({ | ||
| prompt: prompts[index], | ||
| transcript: createTranscript(messages), | ||
| })) |
Member
|
@copilot apply reiew feedback |
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
packages/agent-eval/src/scenarios.ts:98
resolveScenarioFilerejects paths in subdirectories (e.g.tests/red.test.ts) because it comparespath.dirname(resolvedPath)to the scenario root. This prevents organizing turn test files under nested folders even though they’re still within the scenario directory. Consider validating viapath.relativeto block..traversal while allowing subpaths.
const scenarioDirectory = path.resolve(directory)
const resolvedPath = path.resolve(scenarioDirectory, filepath)
if (path.dirname(resolvedPath) !== scenarioDirectory) {
throw new Error(`Scenario "${name}" turn file must be a file in the scenario directory: ${filepath}`)
}
- Files reviewed: 12/12 changed files
- Comments generated: 0 new
- Review effort level: Lite
Contributor
Author
joshblack
removed their request for review
August 26, 2026 22:00
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.
Scenarios can now evaluate context retention across multiple conversation turns. Each follow-up prompt runs in the existing Copilot session and is graded before continuing.
Changes
Scenario configuration
Execution
Results