Skip to content

Route gh-aw#74188's workflow through cost/balanced model routing - #74200

Merged
SivaKesava1 merged 2 commits into
mainfrom
copilot/model-routing-daily-go-test-parallelizer
Nov 2, 2026
Merged

SivaKesava1 merged 2 commits into
mainfrom
copilot/model-routing-daily-go-test-parallelizer

Conversation

Copilot AI commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Daily Go Test Parallelizer runs every 2h and is pinned to copilot/gpt-5.6-terra. The issue estimates that routing it would cut about 3,300 AIC/week (from roughly 4,600 to 1,300 modeled AIC/week). It uses balanced because a bad parallelization can introduce races and flaky tests.

Frontmatter (daily-go-test-parallelizer.md)

  • Removed model: copilot/gpt-5.6-terra.
  • Added routing to the existing engine block:
    engine:
      id: codex
      model-provider: github
      model-routing:
        goal: cost
        mode: balanced
  • The predicted model is not pinned, and no allowed or blocked models are added.
  • Prompt, schedule, evals, safe outputs, draft-PR behaviour and the **/*_test.go restriction are unchanged.

Generated lock (daily-go-test-parallelizer.lock.yml)

  • Routing enabled:
    • The agent's AWF config sets experimental.modelRouting: true.
    • GH_AW_INFO_MODEL_CONFIG reports routing.enabled: true with goal cost and mode balanced.
  • New step: "Prepare model-routing conversation".
  • Router image: gh-aw-firewall/router:0.29.5@sha256:… is now pinned and pre-pulled.
  • Agent model:
    • GH_AW_MODEL_AGENT_CODEX: gpt-5.6-terra is replaced by GH_AW_MODEL_ROUTING: 1.
    • The terra cost table is removed.
  • New agent outputs: model, model_effort and model_routing_status, taken from the routing outcome.
  • Threat detection: COPILOT_MODEL falls back to the default detection model (vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection') instead of inheriting the pin.
  • Downstream jobs (including evals): GH_AW_ENGINE_MODEL now comes from needs.agent.outputs.model. Previously it was the pinned string.
  • No gpt-5.6-terra references remain.

Known failures, unrelated to this PR

make agent-finish fails on three pkg/cli tests:

  • TestDoctorTokensRepositoryRegression also fails with the workflow files reverted to their main versions.
  • TestDownloadWorkflowLogsForTargetsConcurrentAndResilient and TestDownloadWorkflowLogsForTargetsUsesOneWallClockTimeout are timing-sensitive and passed when re-run on their own.

Follow-up (not in this PR)

This covers the issue's "Check" section:

  • Audit the first routed runs with gh aw audit <run> against the ~57 AIC/run baseline.
  • Confirm that generated PRs have passing, non-flaky tests and justified parallelization. Recent runs were no-ops, so a successful run on its own doesn't show useful fixes.

Copilot AI changed the title [WIP] Refactor model routing to use Daily Go Test Parallelizer Route Daily Go Test Parallelizer through cost/balanced model routing 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

✅ 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 · ~6 AIC · ⌖ ~6 AIC · ⊞ 15.2K · ◷

Generated by Ponytail Reviewer for #74200

@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.

Matt Pocock Skills 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 Matt Pocock Skills Reviewer · routed: haiku55 xhigh · ~7 AIC · ⊞ 5.4K · ◷

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

🧪 Test quality analysis by Test Quality Sentinel

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 model-routing configuration change.

No open issues 🎉

What changed in this PR

Updates the Daily Go Test Parallelizer to use cost-focused, balanced model routing instead of a fixed model, implementing the configuration change requested in #74188. Actual savings and generated-test quality remain follow-up checks.

Changes:

  • Replaces the gpt-5.6-terra pin with cost/balanced routing while retaining Codex and the GitHub provider.
  • Updates the generated workflow with router setup, runtime model metadata, and default threat-detection model selection.
  • Preserves the prompt, schedule, evaluations, draft-PR behavior, and **/*_test.go restriction.
File Description
.github/​workflows/​daily-go-test-parallelizer.md Enables cost/balanced routing and removes the fixed model.
.github/​workflows/​daily-go-test-parallelizer.lock.yml Adds generated routing support and propagates the selected model to downstream jobs.

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.

Review summary

No additional actionable findings beyond the existing review comments. The frontmatter change is narrowly scoped to enabling cost/balanced routing; generated lock changes are described in the PR metadata, but the capped diff did not expose them for independent line-level review.

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

@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 and generated lock. No blocking issues: the routing change is small, schema-valid, and matches the existing routed workflows. Leaving this as a comment for the open GHAS prompt-injection threads.

📋 Key Themes & Highlights

Key Themes

  • Prompt-injection threads (latent): the routing step and the rendered prompt are identical to four sibling workflows. This workflow only runs on schedule and workflow_dispatch, and it interpolates no event text, so the risk does not apply today. Reply on the threads with this rationale. Revisit if event-driven triggers are added.
  • Threat-detection model: COPILOT_MODEL now falls back to the detection alias, matching the same four siblings. This is intended, but it is a behavior change for the detection job, so it is worth a sentence in the PR body.
  • Unverified claim: I did not run make agent-finish. The three pkg/cli failures listed in the PR body are unverified.

Positive Highlights

  • ✅ Removing the pin and adding goal: cost and mode: balanced is a clean, schema-valid change.
  • ✅ allowed-models and blocked-models are left unset, so routing is not over-constrained.
  • ✅ The .md prompt, safe outputs and **/*_test.go restriction are unchanged.

@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

@SivaKesava1 SivaKesava1 changed the title Route Daily Go Test Parallelizer through cost/balanced model routing Route gh-aw#74188's workflow through cost/balanced model routing Nov 2, 2026
@SivaKesava1
SivaKesava1 merged commit ad97836 into main Nov 2, 2026
107 of 108 checks passed
@SivaKesava1
SivaKesava1 deleted the copilot/model-routing-daily-go-test-parallelizer branch November 2, 2026 21:28
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Warning

The push_to_pull_request_branch operation was skipped: Pull request #74200 is closed; refusing to push to its branch. The code changes were not applied.

PR Finisher: merged origin/main into the branch (clean, no conflicts) and submitted it for publication (staged, not confirmed pushed). No review threads needed action. The failing agent check log could not be read (log fetch failed: cache dir permission denied), so that remains a hand-off item. CI is stale after publication and needs a maintainer re-trigger. No tests were run locally (merge-only change).

Sous-chef head: 92467ac
Sous-chef work: 1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.

  1. Fix failing check agent (FAILURE): https://github.com/github/gh-aw/actions/runs/41520861805/job/125536871455

Generated by 🏁 PR Finisher · copilot · auto · ~17 AIC · ⌖ ~2 AIC · ⊞ 10.5K · ◷

@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 Daily Go Test Parallelizer instead of pinning gpt-5.6-terra

4 participants