Repository navigation
Route Auto-Triage Issues with cost/economy model routing instead of pinning gpt-6-astra - #74199
Conversation
…nning gpt-6-astra Co-authored-by: SivaKesava1 <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed 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.
|
|
✅ 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.
|
|
✅ 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.
|
|
✅ 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.
|
|
✅ 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.
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the switch to Copilot cost/economy routing.
No open issues 🎉
What changed in this PR
Moves Auto-Triage Issues from a fixed OpenAI model to cost/economy routing through Copilot inference, implementing the configuration change requested in #74187. Actual savings and label quality remain follow-up checks.
Changes:
- Removes the
gpt-6-astrapin and enables cost/economy routing while preserving prompts, triggers, evals, and safe outputs. - Regenerates the lock file with router setup, runtime model metadata, and Copilot authentication instead of OpenAI secrets.
- Switches threat detection to Copilot CLI with its default model selection.
| File | Description |
|---|---|
.github/workflows/auto-triage-issues.md |
Replaces the fixed model with cost/economy routing on Copilot inference. |
.github/workflows/auto-triage-issues.lock.yml |
Updates generated routing, credentials, detection, and model reporting. |
Review effort: Balanced (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 to the config change. Verdict: comment. The change is small and compiles cleanly, but two config choices deserve a deliberate decision.
📋 Verification and findings
What I verified
- Recompiling the
.mdfrom the PR head produces zero drift against the committedauto-triage-issues.lock.yml, so the lock is not stale. - The schema accepts
model-routing.allowed-modelswith aliases, so a shortlist is a valid fix. - Threat detection moves from Codex (
gpt-6-astra) to Copilot with thedetectiondefault. The PR description is accurate about this. - No residual
CODEX_API_KEYorOPENAI_API_KEYsecret references remain in the head lock.
Key themes
- Threat detection downgrade: a security control now runs on a mini-tier default alias with no explicit pin. See the inline comment.
- Unbounded routing: with no
allowed-modelsshortlist, the router can pick anygithub-copilot/gpt-*model. See the inline comment. - Unverified claims: the cost figures (~5,200 → ~150 AIC/week) and the test-failure notes are not verified by this review. Please attach the source data or the run links.
- Existing threads: the two
github-advanced-securitythreads on lock line 1193 (prompt injection and sensitive-data copy intorouting-conversation.json) remain open. I did not repeat them.
Positive highlights
- ✅ Removing the top-level
model:in favour ofmodel-routingkeeps the config declarative. - ✅ Removing all OpenAI secret references removes a credential dependency.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⊞ 5.4K
Comment /matt to run again
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 frontmatter change is internally consistent with the stated model-routing goal. I found no additional actionable issue in the changed authored lines beyond the existing security comments on the generated lock file. Static review only; I did not execute compilation or workflow runs.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⊞ 1.7K
Comment /review to run again
|
🎉 This pull request is included in a new release. Release: |
Auto-Triage Issues pins
openai/gpt-6-astra. That pin came from model-distribution testing (#65350), not from a quality requirement. Threat detection inherits it too. Labeling and report discussions are routine, reversible outputs, so this PR moves the workflow to cost/economy routing on Copilot inference. The issue estimates ~5,200 → ~150 AIC/week.Frontmatter (
auto-triage-issues.md)The prompt, triggers, evals and safe outputs are unchanged. The PR adds no allowed or blocked model lists.
copilot-requests: writewas already granted.Lock-file changes (
auto-triage-issues.lock.yml)Routing enabled: AWF config sets
experimental.modelRouting: true. Model config isrouting: {enabled: true, goal: cost, mode: economy, candidate_models: ["github-copilot/gpt-*"]}.New step and outputs: adds the "Prepare model-routing conversation" step and pins the router image
ghcr.io/github/gh-aw-firewall/router:0.29.5@sha256:a3cc…c4eb. The agent now outputsmodel,model_effortandmodel_routing_status, which downstream jobs read throughGH_AW_ENGINE_MODEL*.OpenAI credentials removed:
CODEX_API_KEY/OPENAI_API_KEYvalidation stepGH_AW_LLM_PROVIDER: openaisettingapi.openai.comengine host and thegpt-6-astracost entryThe only
CODEX_API_KEYleft is set from$COPILOT_DUMMY_BYOK, not a secret.Threat detection: no longer inherits the pin. It runs on Copilot CLI with its default (
vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection').Evals: no change. They already used
copilot/gpt-6-luna-decisions.Follow-up (not in this PR)
The issue's "Check" section stays open. Audit the first routed runs with
gh aw auditand compare label quality and AIC per run against the ~93 AIC baseline. If labeling gets worse, trymode: balanced.Known failures, not caused by this PR
TestDoctorTokensRepositoryRegressionfails the same way without this change.TestDownloadWorkflowLogsForTargets*failed under full-suite load but passes when run alone. This looks timing-dependent; it wasn't checked againstmain.