Repository navigation
Route four Claude Code analysis workflows through Copilot model routing (economy) - #75471
Conversation
…ng (economy) Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
No additional actionable correctness issues found in the changed workflow frontmatter. The existing security concern on the generated routing conversation remains the relevant review item; the specialist pass was unavailable because its file-read invocation was denied, so this review is based on the provided diff and repository files.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🔵 Needs a closer look
Missing PR-branch runtime evidence for all four workflows leaves model/effort routing, AIC against rollback baselines, and report output unverified, particularly given economy routing’s potential to increase costs.
No open issues 🎉
What changed in this PR
Extends the Copilot model-routing rollout from #74666 to four gh-aw analysis workflows, aiming to reduce inference costs while retaining Claude Code as the agent runtime.
Changes:
- Adds
copilot-requests: writeand GitHub-backed routing withgoal: costandmode: economy. - Preserves prompts, triggers, safe outputs, and existing engine settings, including the grader audit’s MCP timeout.
- Updates the supplied generated locks with router setup, GitHub-token authentication, routed-model metadata, and Copilot-based threat detection.
| File | Description |
|---|---|
.github/workflows/prompt-clustering-analysis.md |
Enables economy routing for prompt analysis. |
.github/workflows/example-workflow-analyzer.md |
Enables economy routing for weekly workflow analysis. |
.github/workflows/example-workflow-analyzer.lock.yml |
Updates generated routing, authentication, detection, and reporting. |
.github/workflows/daily-grader-audit.md |
Enables economy routing while preserving the MCP timeout. |
.github/workflows/daily-grader-audit.lock.yml |
Updates generated routing, detection, metadata, and evaluation credentials. |
.github/workflows/daily-aw-cross-repo-compile-check.md |
Enables economy routing for cross-repository compile checks. |
.github/workflows/daily-aw-cross-repo-compile-check.lock.yml |
Updates generated routing, detection, metadata, and evaluation credentials. |
Review effort: Balanced (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /codebase-design (shared config drift) and a cost-guard check. The routing switch is correct and the committed locks are consistent. Two non-blocking suggestions are posted inline.
📋 Verification and findings
Verified
- Recompiled all four workflows from HEAD (
4b304bb) with the gh-aw compiler. Each lock matches the committed file except for the cron scatter value, which varies by repo. - Each lock has
COPILOT_GITHUB_TOKEN, agithub-copilot/claude-*candidate list,modelRouting, and the Prepare model-routing conversation step. Nosecrets.ANTHROPIC_API_KEYreferences remain. copilot-requests: writeis set on all four. Other permissions are unchanged.daily-grader-auditkeepsmcp.tool-timeout: 10m.
Findings
- Cost guard (inline):
example-workflow-analyzerandprompt-clustering-analysishave nomax-ai-credits.daily-aw-cross-repo-compile-checkhas onlymax-daily-ai-credits. The PR body says economy can route to Opus, so a per-run cap would bound the downside. - Duplicated routing block (inline): the same
engineblock is copied into four files.
Open bot comment (out of scope for this PR)
The github-advanced-security comment on example-workflow-analyzer.lock.yml:1136 flags the routing conversation step. That step is generated by pkg/workflow/model_routing.go (generateModelRoutingConversationStep), so it applies to all 40 routed workflows, not just this PR. Fixing it belongs in the generator, not in these four lock files.
Uncertainty
The local working tree differs from HEAD for these files. I reviewed the committed state only. I did not run the workflows, so routed model and AIC/run are unverified. The PR test-run plan covers that.
@copilot please address the inline review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 4b304bb
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |
Four Claude Code analysis workflows currently use
claude-sonnet-5through Anthropic, which costs about 2,300 AIC/week. This PR routes them through Copilot model routing witheconomy, following #74666. The runtime engine stays Claude Code.Workflow changes
The four workflows are
daily-aw-cross-repo-compile-check,daily-grader-audit,prompt-clustering-analysisandexample-workflow-analyzer. Each one gets:copilot-requests: writeadded topermissions. The other permissions are unchanged.How each engine config was changed:
prompt-clustering-analysisandexample-workflow-analyzer: theengine: claudeshorthand is replaced with the block above.daily-aw-cross-repo-compile-checkanddaily-grader-audit: the existing blocks are extended.daily-grader-auditkeeps itsmcp.tool-timeout: 10m.There are no model pins,
allowed-modelsor other model restrictions. Prompts, steps, triggers, imports and safe outputs are unchanged.Lock files
Only these four are recompiled. Each lock diff:
candidate_models: ["github-copilot/claude-*"]);experimental.modelRouting: truein the AWF config;gh-aw-firewall/routerimage;COPILOT_GITHUB_TOKEN: ${{ github.token }}, pointsANTHROPIC_BASE_URLat the API proxy and uses a placeholder BYOK key;secrets.ANTHROPIC_API_KEYreferences and theANTHROPIC_API_KEYvalidation step;Before merging
Test-run each workflow on this branch. All four have
workflow_dispatch. For each run, record the routed model, effort, AIC/run, and whether the issue or report was produced.Drop any workflow that picks
claude-opus-5.5and costs more than its baseline:For analysis prompts,
economyoften ranks Opus first. Three workflows routed in earlier batches cost 21–77% more because of this.Don't blame routing for
prompt-clustering-analysis's existing failures. Before this PR it failed inDownload workflow logs for PR analysis(data fetch) andUpload Safe Outputs Assets(asset publication).