Repository navigation
Route Sergo with balanced cost model routing on Copilot - #74204
Conversation
Co-authored-by: SivaKesava1 <[email protected]>
|
✅ Test Quality Sentinel completed test quality analysis. Warning threat detection engine error What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details. 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.
|
|
✅ 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review. Warning threat detection engine error What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details.
|
|
🧠 Matt Pocock Skills Reviewer failed during the skills-based review. Warning threat detection engine error What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details.
|
There was a problem hiding this comment.
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
Review: no new blocking findings
The changed workflow configuration is internally consistent with the stated routing migration. I found no additional actionable issue beyond the existing prompt-injection concerns already raised on the changed source and generated lock. The specialist pass completed; its remaining observations were about review visibility/verification limits rather than defects in the changed lines.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⊞ 1.7K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the update to balanced, cost-based Claude routing through Copilot.
No open issues 🎉
What changed in this PR
Updates Sergo’s Go-analysis and fix workflow to use balanced, cost-based Claude routing through Copilot, implementing #74191. The prompt, Serena tools, evals, safe outputs, and triggers remain unchanged.
Changes:
- Replace the fixed model configuration with GitHub-backed Claude routing using
goal: costandmode: balanced. - Regenerate the lock file with Copilot authentication, router setup, and routed-model metadata.
- Switch threat detection to the Copilot CLI and its default detection model.
| File | Description |
|---|---|
.github/workflows/sergo.md |
Enables balanced cost routing through the GitHub provider without pinning a model. |
.github/workflows/sergo.lock.yml |
Adds generated routing infrastructure, Copilot credentials, model reporting, and Copilot-based threat detection. |
Review effort: Max (auto)
There was a problem hiding this comment.
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
Skills-Based Review 🧠
Applied /codebase-design — requesting changes because the routed candidate family is broader than Claude Code's supported-effort contract.
📋 Key theme
The generated github-copilot/claude-* pool includes Haiku, while the repository's Claude-on-Copilot smoke workflow documents that Haiku cannot accept the reasoning effort Claude Code sends. Targeted model-routing tests pass, but they do not cover this workflow-specific wildcard candidate set or the runtime incompatibility.
@copilot please address the inline comment above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routing failed · ~18 AIC · ⊞ 5.4K
Comment /matt to run again
|
Note The pull request was not created — a fallback review issue was created instead due to protected file changes: #74228 PR Finisher
Sous-chef head: bfc2676
|
|
PR finisher dispatch requested for the following outstanding work:
The dedicated pr-finisher workflow will apply the necessary fixes, 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 trigger CI. Sous-chef head: bfc2676
|
Co-authored-by: SivaKesava1 <[email protected]>
Co-authored-by: SivaKesava1 <[email protected]>
…-route-sergo # Conflicts: # .github/workflows/sergo.lock.yml Co-authored-by: SivaKesava1 <[email protected]>
Points answered in the threads: Haiku 4.5 is never a top Claude choice in the current tables; prompt injection is latent (static prompt) and cost-only. Gate run 41549681735 with copilot-requests: write completed (fix PR + report).
|
🎉 This pull request is included in a new release. Release: |
Sergo runs on a pinned
claude-sonnet-5billed to the Anthropic key. This PR switches it to cost-based model routing inbalancedmode, with Claude billed through Copilot. The issue estimates this saves about 650–1,070 AIC/week. It usesbalancedrather thaneconomybecause Sergo opens Go-fix PRs with the Serena language server.Workflow source (
.github/workflows/sergo.md)Generated lock (
.github/workflows/sergo.lock.yml)goal: cost,mode: balanced, and candidates limited togithub-copilot/claude-*. The firewall (AWF) config turns on model routing and points the router at the prepared conversation file.ghcr.io/github/gh-aw-firewall/router:0.29.5@sha256:a3cc3d….secrets.ANTHROPIC_API_KEY.COPILOT_GITHUB_TOKENis validated and passed instead.ANTHROPIC_BASE_URL, using a dummy key; the proxy authenticates to Copilot withCOPILOT_GITHUB_TOKEN.claude-sonnet-5. It now reports the routedmodel,model_effortandmodel_routing_statusto later jobs.detection, falling back toauto) instead of Claudeclaude-sonnet-5.Follow-up (not in this PR)
The issue's "Check" section comes after merge. Audit the first routed runs with
gh aw auditagainst the ~205 AIC/run baseline. Check Serena tool use, fix correctness, test results and how useful the opened PRs are.Test failures not caused by this PR
TestDoctorTokensRepositoryRegression(pkg/cli) also fails with this change removed.TestDownloadWorkflowLogsForTargetsConcurrentAndResilientand…UsesOneWallClockTimeoutare timing checks. They failed in the full parallel run but passed when run alone.None of these three is on the list of failures already known on main.