Skip to content

Route Auto-Triage Issues with cost/economy model routing instead of pinning gpt-6-astra - #74199

Merged
SivaKesava1 merged 2 commits into
mainfrom
copilot/model-routing-auto-triage-issues
Nov 2, 2026
Merged

SivaKesava1 merged 2 commits into
mainfrom
copilot/model-routing-auto-triage-issues

Conversation

Copilot AI commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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)

-model: openai/gpt-6-astra
 engine:
   id: codex
-  model-provider: openai
+  model-provider: github
+  model-routing:
+    goal: cost
+    mode: economy

The prompt, triggers, evals and safe outputs are unchanged. The PR adds no allowed or blocked model lists. copilot-requests: write was already granted.

Lock-file changes (auto-triage-issues.lock.yml)

  • Routing enabled: AWF config sets experimental.modelRouting: true. Model config is routing: {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 outputs model, model_effort and model_routing_status, which downstream jobs read through GH_AW_ENGINE_MODEL*.

  • OpenAI credentials removed:

    • the CODEX_API_KEY/OPENAI_API_KEY validation step
    • the secret env vars and the GH_AW_LLM_PROVIDER: openai setting
    • the api.openai.com engine host and the gpt-6-astra cost entry

    The only CODEX_API_KEY left 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 audit and compare label quality and AIC per run against the ~93 AIC baseline. If labeling gets worse, try mode: balanced.

Known failures, not caused by this PR

  • TestDoctorTokensRepositoryRegression fails 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 against main.

Copilot AI changed the title [WIP] Update model routing for auto-triage issues Route Auto-Triage Issues with cost/economy model routing instead of pinning gpt-6-astra Nov 2, 2026
Copilot AI requested a review from SivaKesava1 November 2, 2026 19:03
@SivaKesava1
SivaKesava1 marked this pull request as ready for review November 2, 2026 19:29
Copilot AI adaptive review requested due to automatic review settings November 2, 2026 19:29
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

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.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

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.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

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.

Test Quality Sentinel

Outcome: reported_no_action

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.

Generated from Test Quality Sentinel · haiku45 · ~8 AIC · ⊞ 9.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

Generated from Design Decision Gate 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated from Ponytail Reviewer · gpt56 · ~10 AIC · ⌖ ~6 AIC · ⊞ 15.2K · ◷

Generated by Ponytail Reviewer for #74199

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-astra pin 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)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .md from the PR head produces zero drift against the committed auto-triage-issues.lock.yml, so the lock is not stale.
  • The schema accepts model-routing.allowed-models with aliases, so a shortlist is a valid fix.
  • Threat detection moves from Codex (gpt-6-astra) to Copilot with the detection default. The PR description is accurate about this.
  • No residual CODEX_API_KEY or OPENAI_API_KEY secret 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-models shortlist, the router can pick any github-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-security threads on lock line 1193 (prompt injection and sensitive-data copy into routing-conversation.json) remain open. I did not repeat them.

Positive highlights

  • ✅ Removing the top-level model: in favour of model-routing keeps 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

Comment thread .github/workflows/auto-triage-issues.md Resolved
Comment thread .github/workflows/auto-triage-issues.md Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@SivaKesava1
SivaKesava1 merged commit e389756 into main Nov 2, 2026
104 checks passed
@SivaKesava1
SivaKesava1 deleted the copilot/model-routing-auto-triage-issues branch November 2, 2026 21:25
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model routing: route Auto-Triage Issues instead of pinning gpt-6-astra

4 participants