Add Copilot Centralization Optimizer workflows#39394
Conversation
|
@copilot Recompile the new workflows and do nothing else |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Pull request overview
Adds two new gh-aw workflows to mine repeated Agent Task prompt patterns (“optimizer”) and to expand a single candidate into a concrete, reviewable draft (“drilldown”), plus updates the action lockfile to support the new workflow dependencies.
Changes:
- Introduces a scheduled “Copilot Centralization Optimizer” workflow that collects Agent Task metadata, precomputes repetition/trend datasets, and publishes a recurring report.
- Adds a “Copilot Centralization Drilldown” workflow_dispatch workflow to turn one optimizer candidate into a single draft artifact published via
create-issue. - Extends
.github/aw/actions-lock.jsonwith additional pinned action references used by the compiled lock workflows.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/copilot-centralization-optimizer.md |
New optimizer workflow definition + deterministic data prep for centralization analysis and reporting. |
.github/workflows/copilot-centralization-optimizer.lock.yml |
Compiled/pinned workflow for the optimizer. |
.github/workflows/copilot-centralization-drilldown.md |
New drilldown workflow for expanding one candidate into a single draft artifact. |
.github/workflows/copilot-centralization-drilldown.lock.yml |
Compiled/pinned workflow for the drilldown. |
.github/aw/actions-lock.json |
Adds pinned entries for actions referenced by the new workflows. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/5 changed files
- Comments generated: 6
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Done. Recompiled both workflows in commit One minor fix was also needed: the optimizer markdown referenced |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
✅ smoke-ci: safeoutputs CLI comment + comment-memory run (27561935911)
|
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
|
@copilot Address all remaining Copilot review comments and recompile workflows. |
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Summary
Adds two new gh-aw agentic workflows that together form a Copilot Centralization Optimizer pipeline. The pipeline mines cross-user Copilot agent task data to surface repeated prompt patterns that should be standardized into first-class workflows, shared prompts, or playbooks, then drills each candidate down into a concrete, reviewable draft artifact.
What changed
New:
copilot-centralization-optimizerworkflowA scheduled (weekly, Monday) +
workflow_dispatchworkflow that:/agents/repos/{repo}/tasksAPI. A single consolidated API call per task avoids duplicate fetches (addressed ina87bd1afa).continuous_workflow— automate as a scheduled or event-driven gh-aw workflowshared_prompt_or_chatops— create a reusable shared prompt or ChatOps commandkeep_ad_hoc_but_standardize— document as a playbook for consistency[copilot-centralization], labelsreport, ai-optimization, 30-day expiry, closes older issues).memory/copilot-centralization-optimizer) for cross-run comparison.Safe-output constraints: no bot mentions, no external GitHub references,
strict: true.New:
copilot-centralization-drilldownworkflowA
workflow_dispatch-only companion workflow that takes a single optimizer candidate and produces a concrete draft:candidate_titletarget_kindworkflow,shared_prompt,playbook, orautorecommendation_kindautoresolution)sample_promptevidence_summarycandidate_jsonautoresolution logic maps optimizer kinds to concrete targets:continuous_workflow→workflowshared_prompt_or_chatops→shared_promptkeep_ad_hoc_but_standardize→playbookCandidate strength is classified as
strong(sample ≥ 24 chars, evidence ≥ 40 chars, or full JSON provided) vsweakto guide the AI draft quality.The AI step (max 120 credits / 500 daily) produces a full draft artifact, published as a GitHub issue (title prefix
[copilot-centralization-draft], labelsreport, ai-optimization, workflow-design, 30-day expiry). Issues are intentionally not auto-closed to allow iterative refinement.Action pin updates
pkg/actionpins/data/action_pins.jsongithub/gh-aw-actions/setup@v0.79.6pkg/workflow/data/action_pins.jsongithub/gh-aw-actions/setup@v0.79.6,github/gh-aw/actions/setup-cli@v0.79.8Stale
upload-artifact@v4pin was also corrected during recompile (c28f49d9a).Motivation
Copilot agent tasks across a repository frequently contain near-identical or structurally similar prompts submitted by different users. Without tooling, these patterns remain invisible and continue consuming ad-hoc AI credits. This pipeline automates discovery and standardization, reducing redundant usage and improving prompt quality organization-wide.
Design notes
gh apicall per task id and pipes directly, avoiding the double-fetch pattern identified in review (a87bd1afa).strict: trueand conservative safe-output settings (no external mentions, bounded bot mention count).Breaking changes
None.