Skip to content

Route Ponytail Reviewer through economy model routing instead of pinning gpt-5.6-terra - #74201

Merged
SivaKesava1 merged 3 commits into
mainfrom
copilot/model-routing-ponytail-reviewer
Nov 2, 2026
Merged

SivaKesava1 merged 3 commits into
mainfrom
copilot/model-routing-ponytail-reviewer

Conversation

Copilot AI commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Ponytail Reviewer runs about 177 times a week, pinned to openai/gpt-5.6-terra (about 2,580 modeled AIC/week). Its output is advisory review comments only, so it is a good fit for economy routing. The issue estimates a saving of about 1,900–2,030 AIC/week.

Workflow change (.github/workflows/ponytail-reviewer.md)

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

Prompt, triggers, slash command, 10-minute timeout, evals and comment-only safe outputs are unchanged. No model is pinned and no allowed/blocked models are added.

Generated lock file (ponytail-reviewer.lock.yml)

  • Routing on: the model config now reads routing.enabled: true, goal: cost, mode: economy, candidate_models: ["github-copilot/gpt-*"]. The agent's AWF config sets experimental.modelRouting: true, and the agent job gets GH_AW_MODEL_ROUTING: 1.
  • New step and image: a "Prepare model-routing conversation" step is added, and the AWF router image is pinned to router:0.29.5@sha256:a3cc3d09….
  • OpenAI credentials removed: no CODEX_API_KEY/OPENAI_API_KEY secrets, no secret-validation step, and no GH_AW_LLM_PROVIDER: openai. Inference is billed to Copilot through the existing copilot-requests: write permission.
  • Runtime model reporting: the agent job now outputs model, model_effort and model_routing_status. Downstream jobs use these values instead of the hard-coded model string.
  • Detection and evals unpinned: threat detection moves from Codex on gpt-5.6-terra to Copilot CLI with its default model (vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection'). Evals also drop the pin.

Follow-up (not in this PR)

The issue's "Check" section happens after merge:

  • Run gh aw audit on the first routed runs and compare against the ~14 AIC/run baseline.
  • Compare review usefulness with the pinned version.
  • Confirm runs finish within the 10-minute timeout.
  • If quality regresses, try mode: balanced (up to about 130 AIC/week more).

Copilot AI changed the title [WIP] Update model routing to use Ponytail Reviewer Route Ponytail Reviewer through economy model routing instead of pinning gpt-5.6-terra Nov 2, 2026
Copilot AI requested a review from SivaKesava1 November 2, 2026 19:04
@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

✅ 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 · sonnet50 · ~16 AIC · ⊞ 12.7K · ◷

🧪 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

🧠 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

✅ Ponytail Reviewer completed successfully!

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.

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 · routed: gpt56 max · ~2 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #74201

@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 blocking findings

The frontmatter change is internally consistent with the stated economy-routing intent. I found no actionable correctness, security, or reliability issue in the reviewable source diff. The generated lock-file changes were not included in the pre-fetched diff, so those generated details could not be independently assessed here.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⊞ 1.7K
Comment /review to run again

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 GitHub-backed economy routing.

No open issues 🎉

What changed in this PR

Moves Ponytail Reviewer from a pinned OpenAI model to GitHub-backed economy routing to reduce advisory review costs, as requested in #74189.

Changes:

  • Enables cost-focused economy routing while preserving the prompt, triggers, timeout, eval definitions, and safe outputs.
  • Regenerates the lock file with routing setup, Copilot authentication, and runtime model reporting.
  • Removes OpenAI inference credentials and model pins from detection and evals. Cost, quality, and timing checks remain post-merge follow-up.
File Description
.github/​workflows/​ponytail-reviewer.md Replaces the fixed model with GitHub-backed economy routing.
.github/​workflows/​ponytail-reviewer.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 /diagnosing-bugs and /codebase-design to the routing change. Requesting changes because threat detection silently changes model.

📋 Key Themes & Highlights

Key Themes

  • Silent detection downgrade: removing model: moves threat detection from gpt-5.6-terra (Codex) to the mini-tier detection alias (Copilot). The PR description does not mention this.

Positive Highlights

  • ✅ The schema and validator accept model-provider: github with model-routing for codex.
  • ✅ Recompiling the PR-head workflow reproduces the committed lock byte-for-byte with 0 warnings.
  • ✅ The routing config is wired through correctly: GH_AW_MODEL_ROUTING, GH_AW_LLM_PROVIDER: github, and no OpenAI secret in the agent job.

Verification

  • Diffed base and head lock files. The detection job changed from GH_AW_MODEL_DETECTION_CODEX: gpt-5.6-terra to a COPILOT_MODEL default of detection.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⊞ 5.4K
Comment /matt to run again

Comment thread .github/workflows/ponytail-reviewer.md Resolved
@SivaKesava1
SivaKesava1 enabled auto-merge (squash) November 2, 2026 21:29
@SivaKesava1
SivaKesava1 disabled auto-merge November 2, 2026 21:31
@SivaKesava1
SivaKesava1 merged commit 8e5dee1 into main Nov 2, 2026
3 of 4 checks passed
@SivaKesava1
SivaKesava1 deleted the copilot/model-routing-ponytail-reviewer branch November 2, 2026 21:31
@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 Ponytail Reviewer instead of pinning gpt-5.6-terra

3 participants