Add tone_variant A/B campaign to breaking-change-checker workflow#42597
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
tone_variant A/B campaign to breaking-change-checker workflow
|
@copilot check conditional syntax |
There was a problem hiding this comment.
Pull request overview
Adds an A/B experiment (experiments.tone_variant) to the breaking-change-checker workflow so the issue-reporting prompt can branch between neutral and urgent tone variants while keeping breaking-change detection logic unchanged.
Changes:
- Introduces
experiments.tone_variantfrontmatter metadata (variants, hypothesis, metrics, guardrails, sampling/weighting, tracking issue). - Adds variant-aware handlebars conditionals to adjust tone guidance and issue template fields (Status + Recommendations wording).
- Regenerates
breaking-change-checker.lock.ymlto include runtime experiment selection, persistence, and prompt substitutions.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr-code-quality-reviewer.lock.yml | Unrelated gh-aw metadata hash churn included in this PR (does not support the stated PR purpose). |
| .github/workflows/breaking-change-checker.md | Adds the tone_variant experiment configuration and prompt-body tone branching. |
| .github/workflows/breaking-change-checker.lock.yml | Updates compiled workflow to pick/restore/persist experiment state and pass tone variant into prompt substitution. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Low
| @@ -1,4 +1,4 @@ | |||
| # gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"0a7a1cc9a9d3e316b42d163c8f7452df59e96a2dd1056a07170aca6d955bd9ca","body_hash":"4b304b423080e4bab9d72281c704a8436fe09fa92cf666fe179d4681a922d405","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.65","copilot-sdk":"1.0.4"}} | |||
| # gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"0a7a1cc9a9d3e316b42d163c8f7452df59e96a2dd1056a07170aca6d955bd9ca","body_hash":"3741a05e0a954d005c6a5d50b7567b198260ad61d940646d75c20b3b923c1606","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.65","copilot-sdk":"1.0.4"}} | |||
🤖 PR Triage — §28486872548
Score breakdown: Impact 15/50 · Urgency 5/30 · Quality 8/20 Batch: Rationale: WIP/Draft A/B tone experiment for breaking-change checker. Low urgency, no reviews yet. Should be completed and marked ready before further review. Labels applied:
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hey A couple of things to tighten up before this lands:
If you'd like a hand, you can assign this prompt to your coding agent:
|
|
🎉 This pull request is included in a new release. Release: |
This updates
breaking-change-checkerto run an A/B experiment on reporting tone (neutralvsurgent) without changing breaking-change detection logic. The campaign metadata and prompt conditionals were added so tone can be assigned at runtime and compared against engagement and guardrail metrics.Experiment frontmatter
experiments.tone_variantin rich-object form with:variants,description,hypothesismetric,secondary_metricsguardrail_metrics(run_success_rate,empty_output_rate)min_samples,weight,start_date,issuePrompt-body tone branching
urgentvsneutral)Summary -> Statusline (Requires Immediate ReviewvsReview Recommended)Recommendationswording (prioritized risk/action framing vs neutral guidance)Compiled workflow output
breaking-change-checker.lock.ymlfrom the markdown workflow so runtime experiment selection and outputs reflect the new campaign.{{#if experiments.tone_variant == "urgent" }} - **Status**: ⚠️ Requires Immediate Review {{else}} - **Status**: Review Recommended {{/if}}