Add prompt_style A/B experiment to daily-file-diet with concise/detailed prompt branching#35931
Closed
Copilot wants to merge 4 commits into
Closed
Add prompt_style A/B experiment to daily-file-diet with concise/detailed prompt branching#35931Copilot wants to merge 4 commits into
prompt_style A/B experiment to daily-file-diet with concise/detailed prompt branching#35931Copilot wants to merge 4 commits into
Conversation
8 tasks
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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] Create A/B test for prompt_style in daily-file-diet
Add May 30, 2026
prompt_style A/B experiment to daily-file-diet with concise/detailed prompt branching
pelikhan
approved these changes
May 30, 2026
Collaborator
|
@copilot merge main and recompile |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a prompt_style A/B experiment (detailed vs. concise) to daily-file-diet so the existing verbose refactoring prompt can be compared against a compressed variant on issue quality and token/runtime cost, and regenerates the corresponding lock file plus several other lock files affected by an unrelated checkout-prompt format change.
Changes:
- Add object-form
experiments.prompt_stylefrontmatter (variants, hypothesis, primary/secondary/guardrail metrics, weight, start date, tracking issue) todaily-file-diet.md. - Wrap the prompt body in
{{#if experiments.prompt_style == 'concise'}} … {{#else}} … {{/if}}with a one-paragraph concise variant and the original detailed prompt as fallback. - Regenerate
daily-file-diet.lock.ymlwith experiment plumbing (restore/pick/upload steps, artifact,push_experiments_statejob, prompt env injection) and pick up unrelated checkout-prompt text reformatting in seven other lock files.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/daily-file-diet.md | Adds prompt_style experiment frontmatter and conditional prompt branching. |
| .github/workflows/daily-file-diet.lock.yml | Regenerated lock file adding experiment selection, artifact, and push job. |
| .github/workflows/smoke-update-cross-repo-pr.lock.yml | Regenerated checkout-prompt line formatting only. |
| .github/workflows/smoke-create-cross-repo-pr.lock.yml | Regenerated checkout-prompt line formatting only. |
| .github/workflows/smoke-codex.lock.yml | Checkout-prompt formatting plus heredoc marker rehash. |
| .github/workflows/smoke-claude.lock.yml | Regenerated checkout-prompt line formatting only. |
| .github/workflows/schema-feature-coverage.lock.yml | Checkout-prompt formatting plus heredoc marker rehash. |
| .github/workflows/schema-consistency-checker.lock.yml | Regenerated checkout-prompt line formatting only. |
| .github/workflows/pr-sous-chef.lock.yml | Regenerated checkout-prompt line formatting only. |
| .github/workflows/glossary-maintainer.lock.yml | Regenerated checkout-prompt line formatting only. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 10/10 changed files
- Comments generated: 1
| {{#runtime-import? .github/shared-instructions.md}} | ||
|
|
||
| {{#if experiments.prompt_style == 'concise'}} | ||
| Find the largest `.go` source file in the repository (exclude `*_test.go`, `third_party/`, and generated files such as `*_gen.go`, `*.pb.go`, and files with `Code generated` markers). If it has fewer than **800 lines**, stop and report no action is needed. If it has **800+ lines**, open a GitHub issue titled **`[file-diet] Refactor <filename> (<N> lines)`** with: a summary of findings, 2–4 concrete split proposals with rationale, a test coverage plan, and an acceptance checklist. Use `serena` for semantic analysis. |
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
daily-file-dietto run aprompt_styleexperiment so we can compare the existing dense prompt against a lean variant without changing the workflow’s core behavior. The goal is to measure whether the concise prompt preserves issue quality while reducing token/runtime cost.Experiment configuration (frontmatter)
experiments.prompt_styleusing object form with:variants: [detailed, concise]issue_completeness_scoreeffective_token_count,run_duration_msmin_samples,weight,start_date, and tracking issue metadataPrompt variant routing
prompt_styleconditional.detailedpath keeps the existing full protocol as baseline.concisepath uses a compressed instruction set that still requires:Compiled workflow artifact update
daily-file-diet.lock.ymlto include experiment activation/assignment plumbing and prompt interpolation for the selected variant.{{#if experiments.prompt_style == 'concise'}} Find the largest `.go` source file... If it has **800+ lines**, open a GitHub issue titled `[file-diet] Refactor <filename> (<N> lines)` with findings, 2–4 split proposals, a test coverage plan, and an acceptance checklist. Use `serena` for semantic analysis. {{#else}} [existing detailed prompt] {{/if}}