Skip to content

Route four Copilot-backed Codex workflows to cost model routing instead of fixed GPT pins - #76330

Merged
SivaKesava1 merged 8 commits into
mainfrom
copilot/route-four-codex-workflows
Nov 10, 2026
Merged

SivaKesava1 merged 8 commits into
mainfrom
copilot/route-four-codex-workflows

Conversation

Copilot AI commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Four Codex workflows that run on GitHub Copilot inference pinned their main agent to a fixed GPT model. This PR replaces those pins with engine.model-routing set to goal: cost. The diff is limited to the four workflow sources and their regenerated .lock.yml files.

Source changes

Workflow Removed pin Routing mode
daily-doc-updater copilot/gpt-6-astra balanced
eslint-monster copilot/gpt-6-astra economy
daily-awf-spec-compiler-surfacing copilot/gpt-6-sol economy
daily-evals-report copilot/gpt-5.6-sol economy
engine:
  id: codex
  model-provider: github   # newly explicit in daily-evals-report
  model-routing:
    goal: cost
    mode: economy
  • Explicit provider in daily-evals-report. This workflow previously got Copilot inference from the copilot/ prefix on its pin. Without the pin, it needs model-provider: github to stay on Copilot.
  • No allowed-models. The compiler's default for the Codex family already supplies github-copilot/gpt-* as candidates.
  • No auth or permission change. Inference still uses secrets.COPILOT_GITHUB_TOKEN. I deliberately left out copilot-requests: write, because adding it would switch inference to github.token.
  • Everything else unchanged. That covers prompts, triggers, tools, safe outputs, budgets, experiments, eval questions and work-queue settings. The two gpt-5 sub-agent aliases in the surfacing workflow also stay as they are.

Compiled locks (acceptance case A)

All four locks contain:

  • an agent firewall config with objective: {goal: cost, mode: <mode>} and candidateModels: ["github-copilot/gpt-*"];
  • the Prepare model-routing conversation step and gh-aw-firewall/router:0.29.10@sha256:cf7ba6de…;
  • no fixed main-agent model: GH_AW_MODEL_AGENT_CODEX is gone and GH_AW_MODEL_ROUTING: 1 replaces it;
  • the Codex engine, still pointed at the Copilot endpoint (COPILOT_DUMMY_BYOK, githubcopilot.com).

Downstream jobs now read GH_AW_ENGINE_MODEL from needs.agent.outputs.model, plus the new model_effort and model_routing_status outputs. The pinned GH_AW_INFO_MODEL_COSTS entry has been dropped.

Detection and evals models (same change in all four)

Before After
Detection COPILOT_MODEL inherited pin (gpt-6-astra / gpt-6-astra / gpt-6-sol / gpt-5.6-sol) ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'detection' }}
Detection GH_AW_MODEL_FALLBACK — ${{ vars.GH_AW_MODEL_DETECTION_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
GH_AW_EVALS_MODEL copilot/gpt-6-luna-decisions unchanged

Removing the pin also removes the model the detection job inherited, so detection now runs on the compiler default. No detection override was added, so detection cost should be measured separately from agent cost.

Live verification (cases B/C)

Nothing has been dispatched yet.

  • daily-doc-updater and daily-awf-spec-compiler-surfacing can run on this branch.
  • eslint-monster and daily-evals-report need an authenticated V3 work-queue assignment, so they will be checked on their first queue runs after merge.

For each run, compare the agent-phase firewall.model_routing selection event and the agent, detection and evals AIC against the baselines in the issue.

Known unrelated failures

  • Log-download timing tests in pkg/cli. TestDownloadWorkflowLogsForTargetsConcurrentAndResilient and TestDownloadWorkflowLogsForTargetsUsesOneWallClockTimeout failed in the parallel test-integration run. Both passed three times when run alone, and this PR changes no Go code. They were not run against main.
  • CodeQL. The check timed out without producing results.

Copilot AI changed the title [WIP] Update Codex workflows to use cost-focused model routing Route four Copilot-backed Codex workflows to cost model routing instead of fixed GPT pins Nov 9, 2026
Copilot AI requested a review from SivaKesava1 November 9, 2026 23:08
@SivaKesava1
SivaKesava1 marked this pull request as ready for review November 9, 2026 23:12
Copilot AI adaptive review requested due to automatic review settings November 9, 2026 23:12
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 9, 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 · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #76330

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

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

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

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 · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 9, 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: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.5K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification 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 PR Specification Reviewer · gpt56 · ~6 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #76330

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

Reviewed the four workflow source changes and the available PR metadata. I found no actionable correctness, security, or maintainability issues on the changed source lines. The generated lock files were excluded from the pre-fetched patch, so their compiled details were not independently assessed in this static review.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
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.

🔵 Needs a closer look

Required routing, applied-effort, output-quality, and per-phase cost checks remain unverified because candidate-revision runs are missing, including authenticated V3 queue executions for both workers.

No open issues 🎉

What changed in this PR

This PR opts four Copilot-backed Codex workflows into gh-aw’s cost-focused model routing, implementing the workflow-level migration requested in #76329 without changing global defaults.

Changes:

  • Replaces fixed main-agent models with cost/balanced routing for documentation updates and cost/economy for the other three workflows.
  • Makes the GitHub provider explicit for daily-evals-report, preserving existing inference credentials and permissions.
  • Regenerates all four locks with router configuration, runtime model metadata, and compiler-default detection models; evals models remain unchanged.

Live routing behavior and per-workflow savings remain unverified; no runs have been dispatched.

File Description
.github/​workflows/​eslint-monster.md Replaces the fixed model with cost/economy routing.
.github/​workflows/​eslint-monster.lock.yml Adds economy routing and runtime model reporting.
.github/​workflows/​daily-evals-report.md Enables cost/economy routing with an explicit GitHub provider.
.github/​workflows/​daily-evals-report.lock.yml Adds economy routing while retaining Copilot inference.
.github/​workflows/​daily-doc-updater.md Replaces the fixed model with cost/balanced routing.
.github/​workflows/​daily-doc-updater.lock.yml Adds balanced routing and propagates selected-model metadata.
.github/​workflows/​daily-awf-spec-compiler-surfacing.md Enables cost/economy routing while preserving sub-agent models.
.github/​workflows/​daily-awf-spec-compiler-surfacing.lock.yml Adds economy routing to the existing cloud-hypervisor configuration.

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.

Skills-Based Review 🧠

Applied /grill-with-docs to the side effects of the plan. The lock files reproduce from source, and one behavior change needs an explicit decision.

📋 Key Themes & Highlights

Key Themes

  • Threat-detection model changes implicitly: detection now resolves through the detection alias instead of the removed agent pin (see inline comment on daily-doc-updater.md).

Positive Highlights

  • ✅ Compiling the four workflows at c2b1b07 reproduces the committed .lock.yml files exactly, with no drift.
  • ✅ engine.model-routing and engine.model-provider validate against the schema, and omitting allowed-models correctly defers to the compiler default.
  • ✅ Auth and permissions are unchanged (COPILOT_GITHUB_TOKEN, no copilot-requests: write).
  • ✅ The gpt-5 sub-agent aliases in the surfacing workflow are untouched, as the PR states.

Scope

Reviewed the committed head c2b1b07. The pre-fetched diff omits .lock.yml files, so I checked those separately against the compiler.

@copilot please address the review comment above.

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

Comment thread .github/workflows/daily-doc-updater.md Resolved
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check agent (FAILURE): Check run.
  3. Fix failing check conclusion (FAILURE): Check run.
  4. Fix failing check detection (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "c2b1b072f9fe1238001edd9ddc54de70e41130b9",
  "kind": "requested",
  "schema_version": "1",
  "state": "96872be7a03902ba4a08a13b58b5adec9a0c8d08267dd5c872c52fb718b9ae08",
  "work": [
    "34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
    "51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
    "a121abdb6f7ec1d76bbf7f04ffacc47490c3a82a0a8351c53214073a3902577d"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.9K · ◷
Comment /souschef to run again

@github-actions

Copy link
Copy Markdown
Contributor

Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: moves Copilot-backed Codex workflows to cost-model routing; useful modernization but not an immediate blocker.

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~9 AIC · ⌖ ~2 AIC · ⊞ 15.8K · ◷

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: moves Copilot-backed Codex workflows to cost-model routing; useful modernization but not an immediate blocker.

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~9 AIC · ⌖ ~2 AIC · ⊞ 15.8K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: routes Copilot-backed Codex workflows to cost-model routing.

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~9 AIC · ⌖ ~2 AIC · ⊞ 15.8K · ◷

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

Category: feature | Risk: medium | Score: 56/100 (impact 32 + urgency 12 + quality 12) | Recommended action: batch_review | Batch: pr-batch:model-routing | Notes: routes Copilot-backed Codex workflows to cost-model routing.

Generated by 🔧 PR Triage Agent · copilot · mai11 · ~9 AIC · ⌖ ~2 AIC · ⊞ 15.8K · ◷

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "ea299f4bde2781e3d739aa1848aa0d1d8b91c15c",
  "kind": "requested",
  "schema_version": "1",
  "state": "d2eaee2eaba7dcef7bf2d527de349689b9982d73618e46fda4b7706dd5f72d63",
  "work": [],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 6.9K · ◷
Comment /souschef to run again

…dex-workflows

# Conflicts:
#	.github/workflows/daily-doc-updater.lock.yml
#	.github/workflows/daily-evals-report.lock.yml
#	.github/workflows/eslint-monster.lock.yml

Co-authored-by: gh-aw-bot <[email protected]>

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main and regenerated the conflicted workflow locks in 8706da6f.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check conclusion (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "8706da6fe4642b0764c9385d72c0081354824629",
  "kind": "requested",
  "schema_version": "1",
  "state": "725246d7e2010d5c6adebadf014e5945a2e5b544396a696db642282231564b91",
  "work": [
    "51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.9K · ◷
Comment /souschef to run again

Copilot AI commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main in 6ebe7a09. The conclusion job failed only because its run-level graders flagged tool-success rate, tool-failure count, and loop count; agent, detection, evals, and safe-output jobs succeeded. I found no branch-specific source defect to change without altering evaluation criteria, so I left the workflow logic unchanged. make agent-report-progress passed.

GH_AW_ROUTING_PROMPT: /tmp/gh-aw/aw-prompts/user.txt
GH_AW_ROUTING_PROMPT_FALLBACK: /tmp/gh-aw/aw-prompts/prompt.txt
GH_AW_ROUTING_CONVERSATION_FILE: /tmp/gh-aw/routing-conversation.json
run: node -e "const fs=require('node:fs'); const path=require('node:path'); const readPrompt=file=>{try{return fs.readFileSync(file,'utf8');}catch(error){if(error.code==='ENOENT')return '';throw error;}}; let prompt=readPrompt(process.env.GH_AW_ROUTING_PROMPT); if (!prompt.trim()) prompt=readPrompt(process.env.GH_AW_ROUTING_PROMPT_FALLBACK); if (!prompt.trim()) throw new Error('Rendered workflow prompt is empty; cannot route this task'); const destination=process.env.GH_AW_ROUTING_CONVERSATION_FILE; fs.mkdirSync(path.dirname(destination),{recursive:true,mode:0o700}); fs.writeFileSync(destination,JSON.stringify([{role:'user',parts:[{text:prompt}]}]),{mode:0o600});"
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.3

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.

Route four Copilot-backed Codex workflows off fixed GPT pins

5 participants