Add prompt_style A/B experiment to smoke-project workflow#37326
Merged
Conversation
7 tasks
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add experiment campaign for A/B test prompt style
Add prompt_style A/B experiment to smoke-project workflow
Jun 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an A/B (3-variant) prompt-style experiment to the smoke-project workflow to compare detailed vs reduced-verbosity prompt variants, and regenerates the compiled lock workflow to plumb experiment assignment/state into runtime execution.
Changes:
- Added
experiments.prompt_style_testfrontmatter (variants, metrics, guardrails, weights, start date, notify issue). - Introduced handlebars conditional prompt bodies for
conciseandstep_by_step, preserving the existing detailed baseline as the default branch. - Regenerated
smoke-project.lock.ymlto include experiment state restore/pick/upload and downstream wiring.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/data/action_pins.json | Updates embedded action pin entries (notably github/gh-aw-actions/setup). |
| pkg/actionpins/data/action_pins.json | Mirrors the embedded pin update for the actionpins package. |
| .github/workflows/smoke-project.md | Adds experiment config and prompt-body variant conditionals. |
| .github/workflows/smoke-project.lock.yml | Regenerated compiled workflow including experiment plumbing and other runtime/version deltas. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/4 changed files
- Comments generated: 6
Comment on lines
+176
to
180
| "github/gh-aw-actions/setup@v0.76.1": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.78.2", | ||
| "sha": "268bf92726cb8153337c07166f382ee46e4fd897" | ||
| }, | ||
| "github/gh-aw/actions/setup-cli@v0.78.2": { | ||
| "repo": "github/gh-aw/actions/setup-cli", | ||
| "version": "v0.78.2", | ||
| "sha": "a7d4043a8224182262356a32931099b76fd332eb" | ||
| "version": "v0.76.1", | ||
| "sha": "46d564922b082d0db93244972e8005ea6904ee5f" | ||
| }, |
Comment on lines
+176
to
180
| "github/gh-aw-actions/setup@v0.76.1": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.78.2", | ||
| "sha": "268bf92726cb8153337c07166f382ee46e4fd897" | ||
| }, | ||
| "github/gh-aw/actions/setup-cli@v0.78.2": { | ||
| "repo": "github/gh-aw/actions/setup-cli", | ||
| "version": "v0.78.2", | ||
| "sha": "a7d4043a8224182262356a32931099b76fd332eb" | ||
| "version": "v0.76.1", | ||
| "sha": "46d564922b082d0db93244972e8005ea6904ee5f" | ||
| }, |
Comment on lines
+1
to
+2
| # gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"a2f85a8fdf159792c99dd73d46b646c60877a2885d36170b127e98df8cb2083f","body_hash":"a06527944f758e799e436bef444ec14e9c38546538220b343897f74877fb3c1c","compiler_version":"v0.77.5","strict":true,"agent_id":"copilot"} | ||
| # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GH_AW_PROJECT_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"v0.77.5","version":"v0.77.5"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.58"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.58"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.58"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.22"},{"image":"ghcr.io/github/github-mcp-server:v1.1.0","digest":"sha256:71b07d9abecb83b4a2595bcd8ccb35f9a0166361a12335f9e16da1ef07172029","pinned_image":"ghcr.io/github/github-mcp-server:v1.1.0@sha256:71b07d9abecb83b4a2595bcd8ccb35f9a0166361a12335f9e16da1ef07172029"},{"image":"node:lts-alpine","digest":"sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14","pinned_image":"node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14"}]} |
Comment on lines
121
to
124
| - name: Setup Scripts | ||
| id: setup | ||
| uses: ./actions/setup | ||
| uses: github/gh-aw-actions/setup@v0.77.5 | ||
| with: |
| cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_3c30d1736c2958aa_EOF' | ||
| {"add_comment":{"hide_older_comments":true,"max":2},"add_labels":{"allowed":["smoke-project"]},"create_issue":{"close_older_issues":true,"expires":2,"group":true,"labels":["ai-generated","automation","testing"],"max":1},"create_project_status_update":{"github-token":"${GH_AW_SECRET_GH_AW_PROJECT_GITHUB_TOKEN}","max":1,"project":"https://github.com/orgs/github/projects/24068"},"create_pull_request":{"expires":2,"if_no_changes":"warn","labels":["ai-generated"],"max":1,"max_patch_files":100,"max_patch_size":1024,"protect_top_level_dot_folders":true,"protected_files":["package.json","bun.lockb","bunfig.toml","deno.json","deno.jsonc","deno.lock","global.json","NuGet.Config","Directory.Packages.props","mix.exs","mix.lock","go.mod","go.sum","stack.yaml","stack.yaml.lock","pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts","gradle.properties","package-lock.json","yarn.lock","pnpm-lock.yaml","npm-shrinkwrap.json","requirements.txt","Pipfile","Pipfile.lock","pyproject.toml","setup.py","setup.cfg","Gemfile","Gemfile.lock","uv.lock","CODEOWNERS","DESIGN.md","README.md","CONTRIBUTING.md","CHANGELOG.md","SECURITY.md","CODE_OF_CONDUCT.md","AGENTS.md","CLAUDE.md","GEMINI.md"],"protected_files_policy":"request_review","title_prefix":"[smoke-project] "},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"remove_labels":{"allowed":["smoke-project"]},"report_incomplete":{},"update_project":{"github-token":"${GH_AW_SECRET_GH_AW_PROJECT_GITHUB_TOKEN}","max":20,"project":"https://github.com/orgs/github/projects/24068","views":[{"name":"Smoke Test Board","layout":"board","filter":"is:open"}]}} | ||
| GH_AW_SAFE_OUTPUTS_CONFIG_3c30d1736c2958aa_EOF | ||
| cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << GH_AW_SAFE_OUTPUTS_CONFIG_dd2e3df9be1ec646_EOF |
Comment on lines
52
to
58
| # Container images used: | ||
| # - ghcr.io/github/gh-aw-firewall/agent:0.25.65 | ||
| # - ghcr.io/github/gh-aw-firewall/api-proxy:0.25.65 | ||
| # - ghcr.io/github/gh-aw-firewall/squid:0.25.65 | ||
| # - ghcr.io/github/gh-aw-mcpg:v0.3.23@sha256:0dd1bd91a41e24a3ccc31b1ec6cb61d36608997fabf91f2d643b64e3fc33180a | ||
| # - ghcr.io/github/github-mcp-server:v1.1.2@sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c | ||
| # - ghcr.io/github/gh-aw-firewall/agent:0.25.58 | ||
| # - ghcr.io/github/gh-aw-firewall/api-proxy:0.25.58 | ||
| # - ghcr.io/github/gh-aw-firewall/squid:0.25.58 | ||
| # - ghcr.io/github/gh-aw-mcpg:v0.3.22 | ||
| # - ghcr.io/github/github-mcp-server:v1.1.0@sha256:71b07d9abecb83b4a2595bcd8ccb35f9a0166361a12335f9e16da1ef07172029 | ||
| # - node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14 |
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.
This updates
smoke-projectto run a 3-variant prompt-style experiment (detailed,concise,step_by_step) and measure whether reduced prompt verbosity preserves project-operation reliability. It also wires experiment metadata/assignment into the compiled lock workflow for runtime tracking.Experiment configuration (frontmatter)
experiments.prompt_style_testwith:Prompt body varianting
## Test Requirementsblock with explicit value-compare conditionals:concise: high-level 7-step operation liststep_by_step: terse numbered tool-oriented sequenceelse: existing detailed baseline preservedCompiled workflow update
smoke-project.lock.ymlfrom source workflow to include experiment assignment/state plumbing required by runtime.