Add A/B experiment wiring for smoke-pi sub-agent decomposition#34027
Merged
Conversation
9 tasks
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add A/B test for sub_agent_strategy in smoke-pi campaign
Add A/B experiment wiring for smoke-pi sub-agent decomposition
May 22, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Introduces an A/B experiment (sub_agent_decomposition) for the smoke-pi workflow to compare the existing single-agent smoke run against a parallel background sub-agent approach, with the compiled lock workflow regenerated to include experiments runtime wiring.
Changes:
- Added
experiments.sub_agent_decompositionmetadata tosmoke-piworkflow frontmatter (variants, metrics, weights, analysis). - Branched the “Test Requirements” prompt to run either sequential tests (baseline) or five parallel background
taskagents with aggregation viaread_agent. - Regenerated
smoke-pi.lock.ymlto serialize the experiment spec, select variants at runtime, persist experiment state, and pass variant inputs into prompt interpolation.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke-pi.md | Adds experiment spec and Handlebars branching for single-agent vs parallel sub-agent smoke execution. |
| .github/workflows/smoke-pi.lock.yml | Recompiled workflow to include experiment selection, state restore/push, artifact wiring, and prompt env var injection. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 3
| {{#if experiments.sub_agent_decomposition == "parallel_sub_agents"}} | ||
| Launch five parallel `task` agents using mode: "background" to execute each smoke test independently. Use the `task` agent type with `description` field for each: | ||
|
|
||
| 1. **GitHub MCP Test Agent**: Fetch 2 merged PR titles from ${{ github.repository }} |
|
|
||
| 1. **GitHub MCP Test Agent**: Fetch 2 merged PR titles from ${{ github.repository }} | ||
| 2. **Web Fetch Test Agent**: Fetch https://github.com and verify "GitHub" in response using web-fetch MCP | ||
| 3. **File I/O Test Agent**: Create `/tmp/gh-aw/agent/smoke-test-pi-${{ github.run_id }}.txt` with timestamp |
Comment on lines
+89
to
+98
| Launch five parallel `task` agents using mode: "background" to execute each smoke test independently. Use the `task` agent type with `description` field for each: | ||
|
|
||
| 1. **GitHub MCP Test Agent**: Fetch 2 merged PR titles from ${{ github.repository }} | ||
| 2. **Web Fetch Test Agent**: Fetch https://github.com and verify "GitHub" in response using web-fetch MCP | ||
| 3. **File I/O Test Agent**: Create `/tmp/gh-aw/agent/smoke-test-pi-${{ github.run_id }}.txt` with timestamp | ||
| 4. **Bash Test Agent**: Verify file creation with `cat` command | ||
| 5. **Build Test Agent**: Run `GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod make build` | ||
|
|
||
| Wait for all five agents to complete (you'll receive notifications). Read each agent's result using `read_agent`. Aggregate the results into a unified report with ✅/❌ status for each test. | ||
|
|
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.
smoke-picurrently runs all five Pi smoke checks in a single agent turn. This change introduces an A/B experiment onsub_agent_decompositionso the workflow can compare the current single-agent path against a parallel sub-agent implementation using the built-in experiments runtime.Experiment metadata
experiments.sub_agent_decompositionto/.github/workflows/smoke-pi.mdsingle_agent,parallel_sub_agentseffective_token_countPrompt branching
parallel_sub_agentsinstructs the workflow to launch five backgroundtaskagents, one per smoke check, then aggregate results viaread_agentelsepreserves the existing sequential single-turn behavior as the baselineCompiled workflow regeneration
smoke-piso/.github/workflows/smoke-pi.lock.ymlincludes:sub_agent_decompositionExample of the new prompt split: