Skip to content

Distribute Codex workflows across verified OpenAI and Copilot models - #65350

Merged
pelikhan merged 2 commits into
mainfrom
pelikhan-codex-model-migration
Oct 3, 2026
Merged

pelikhan merged 2 commits into
mainfrom
pelikhan-codex-model-migration

Conversation

@pelikhan

@pelikhan pelikhan commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

Why

Replace aging Codex model pins and single-model concentration with a balanced pool of currently supported models across OpenAI and Copilot inference. Validate availability against the live Copilot SDK model list and official OpenAI documentation rather than treating the cached pricing catalog as proof of availability.

Changes

  • Distribute 69 Codex workflows across 35 openai/ and 34 copilot/ assignments, aligning explicit provider settings and regenerating their lock files. Prompts, triggers, permissions, sandboxes, and upstream-managed workflows are unchanged.
  • Recognize the verified GPT-6 and GPT-5.6 models as Codex-compatible without requiring a -codex suffix. Preserve warnings for unknown or incompatible selections and add regression coverage.
  • Correct OpenAI GPT-5.6 Sol standard short-context pricing to $4 input / $20 output per million tokens, add documented cache-write rates, synchronize both catalogs, and update model-selection guidance.
Model OpenAI workflows Copilot workflows
gpt-6.1-sol 5 5
gpt-6-sol 5 5
gpt-6-luna 5 5
gpt-6-astra 5 5
gpt-5.6-sol 5 5
gpt-5.6-terra 5 5
gpt-5.6-luna 5 4

Availability and deprecation review

Checked the live Copilot SDK listModels() response on October 3, 2026: all seven selected models are available and advertise tool calling. Confirmed Responses API/Codex support and input, output, cached-input, and cache-write prices against OpenAI's official documentation.

Exclude gpt-5.2-codex, which shut down on July 23, 2026, and gpt-5.3-codex, which is deprecated with API shutdown scheduled for April 1, 2027, from this distribution. Historical catalog entries and unrelated workflows are left intact.

Sources: Codex models, API pricing, API deprecations.

Credential and security review

Generated manifests add CODEX_API_KEY and OPENAI_API_KEY references in nine workflows and remove those references in 18 workflows as inference routing changes. OpenAI assignments use the existing validated API-key fallback; Copilot assignments use the existing COPILOT_GITHUB_TOKEN. Both repository credential names are already configured. These changes use the existing secret-validation, redaction, and AWF Responses-proxy paths; endpoint changes between OpenAI and GitHub Copilot are intentional.

Reviewed the generated manifests: no action additions/removals, container-pin changes, MCP tool-permission changes, or workflow redirects. No secret values were stored or included in the PR, and the live availability query ran no inference and sent no repository content.

Validation

  • make fmt
  • make recompile - all 304 workflows compiled successfully.
  • go test ./pkg/workflow ./pkg/cli -run '^(TestWarnCodexCopilotModelCompatibility|TestNewModelPricingEntries|TestFindGPT6AstraPricing|TestFindGPT56SolPricing)$' -count=1
  • make agent-report-progress using Bash 5 - build, change-scoped linters, impacted tests, model aliases, schema freshness, and workflow drift checks passed.
  • make validate-models-json-sync and changed-lock freshness checks.
  • Verified the 35/34 provider split, 4-5 workflows per model/provider pair, source/lock model agreement, credential routing, and exact official standard short-context token prices.

pelikhan and others added 2 commits October 3, 2026 09:30
Update 68 Codex workflow model pins to the registry's openai/gpt-6.1-sol ID. Switch explicit GitHub inference providers to OpenAI and regenerate matching lock files. Leave non-Codex and upstream-managed workflows unchanged.

Credential review: compiler-generated CODEX_API_KEY and OPENAI_API_KEY references are required for the requested OpenAI inference migration and use the existing secret validation, redaction, and firewall proxy paths. OPENAI_API_KEY is already configured in this repository. No actions, container pins, MCP tool permissions, or workflow redirects changed; no secret values were read.

Co-authored-by: Copilot App <[email protected]>
Balance 69 previously OpenAI-pinned Codex workflows across 35 OpenAI and 34 Copilot assignments. Use gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-6-astra, and gpt-5.6-sol/terra/luna, verified against the live Copilot SDK model list and OpenAI model/pricing documentation on 2026-10-03. Each model/provider pair has four or five workflows.

Exclude retired gpt-5.2-codex and deprecated gpt-5.3-codex from the distribution. Update compiler compatibility guidance and regression coverage for current Responses models. Correct OpenAI GPT-5.6 Sol standard pricing to 4 USD input and 20 USD output per million tokens, and add documented cache-write rates to the synchronized catalogs.

Validation sources: https://developers.openai.com/api/docs/pricing ; https://developers.openai.com/api/docs/deprecations ; https://developers.openai.com/codex/models . Compatibility/pricing regressions and the final pre-PR gate passed.

Credential review: Copilot assignments use the existing COPILOT_GITHUB_TOKEN and AWF inference proxy rather than OpenAI inference credentials. Generated secret-reference removals are expected provider-routing changes. No actions, container pins, MCP tool permissions, workflow redirects, prompts, or trigger configurations changed. No secret values or repository content were included in the live model-list query.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review October 3, 2026 17:06
Copilot AI balanced review requested due to automatic review settings October 3, 2026 17:06
@pelikhan
pelikhan merged commit 542e937 into main Oct 3, 2026
40 of 53 checks passed
@pelikhan
pelikhan deleted the pelikhan-codex-model-migration branch October 3, 2026 17:06
Copilot stopped reviewing on behalf of pelikhan due to an error October 3, 2026 17:06
@github-actions

github-actions Bot commented Oct 3, 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.

No ADR enforcement needed: PR does not have the implementation label and has ≤100 new lines of code in business logic directories (84 additions by default rules).

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 3, 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 Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

  1. Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch test file diff
  2. No test files were added or modified in this PR. Test Quality Sentinel skipped.

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 3, 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 Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Lean already. Ship.

Generated by Ponytail Reviewer for #65350

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.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

Review effort: Lite
Findings: None

What changed in this PR

This PR updates Codex model compatibility handling and refreshes model selections/pricing across the repo’s CLI data, docs, and many GitHub workflows.

Changes:

  • Expand Codex “Copilot model compatibility” logic to treat select GPT-6 / GPT-5.6 models as Codex-compatible (without requiring -codex suffix).
  • Update cached model pricing (including adding cache_write costs) and corresponding tests.
  • массово update workflow model/provider selections and Codex documentation examples.
File Description
pkg/​workflow/​configured_model_validation_test.go Adds broader test coverage for Codex-compatible model IDs and normalization cases
pkg/​workflow/​configured_model_validation.go Introduces Codex-compatible allowlist helper and updates warning message
pkg/​cli/​model_costs_test.go Expands pricing tests across providers and updates cache_write expectations
pkg/​cli/​data/​models.json Updates pricing entries and adds cache_write where applicable
docs/​src/​content/​docs/​engines/​codex.md Updates Codex model selection examples and guidance
actions/​setup/​js/​models.json Mirrors CLI pricing updates for the setup action
.github/​workflows/​workflow-normalizer.md Updates workflow model/provider configuration
.github/​workflows/​windows.md Updates workflow model version
.github/​workflows/​windows.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​windows-grower.md Updates workflow model/provider configuration
.github/​workflows/​update-astro.md Updates workflow model/provider configuration
.github/​workflows/​spec-enforcer.md Updates workflow model version
.github/​workflows/​spec-enforcer.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​smoke-otel-backends.md Updates workflow model version
.github/​workflows/​smoke-otel-backends.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​smoke-drive.md Updates workflow model/provider configuration
.github/​workflows/​smoke-ci.md Updates workflow model version
.github/​workflows/​smoke-ci.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​skillet.md Updates workflow model/provider configuration
.github/​workflows/​sighthound-security-scan.md Updates workflow model version
.github/​workflows/​sighthound-security-scan.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​security-review.md Updates workflow model/provider configuration
.github/​workflows/​schema-feature-coverage.md Updates workflow model version
.github/​workflows/​schema-feature-coverage.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​schema-consistency-checker.md Updates workflow model version
.github/​workflows/​schema-consistency-checker.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​repo-audit-analyzer.md Updates workflow model/provider configuration
.github/​workflows/​python-data-charts.md Updates workflow model version
.github/​workflows/​purelock.md Updates workflow model version
.github/​workflows/​purelock.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​ponytail-reviewer.md Updates workflow model version
.github/​workflows/​poem-bot.md Updates workflow model/provider configuration
.github/​workflows/​pdf-summary.md Updates workflow model version
.github/​workflows/​outcome-collector.md Updates workflow model version
.github/​workflows/​outcome-collector.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​notion-issue-summary.md Updates workflow model version
.github/​workflows/​notion-issue-summary.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​metrics-collector.md Updates workflow model version
.github/​workflows/​metrics-collector.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​lint-monster.md Updates workflow model version
.github/​workflows/​lint-monster.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​issue-triage-agent.md Updates workflow model version
.github/​workflows/​issue-triage-agent.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​issue-arborist.md Updates workflow model version
.github/​workflows/​issue-arborist.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​grumpy-reviewer.md Updates workflow model version
.github/​workflows/​grumpy-reviewer.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​gpclean.md Updates workflow model version
.github/​workflows/​github-remote-mcp-auth-test.md Updates workflow model version
.github/​workflows/​github-remote-mcp-auth-test.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​functional-pragmatist.md Updates workflow model version
.github/​workflows/​functional-pragmatist.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​front-page-copy-guard.md Updates workflow model version
.github/​workflows/​front-page-copy-guard.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​feature-grower.md Updates workflow model/provider configuration
.github/​workflows/​example-permissions-warning.md Updates workflow model/provider configuration
.github/​workflows/​example-failure-category-filter.md Updates workflow model version
.github/​workflows/​example-failure-category-filter.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​eslint-monster.md Updates workflow model/provider configuration
.github/​workflows/​designer-drift-audit.md Updates workflow model version
.github/​workflows/​designer-drift-audit.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​dependabot-go-checker.md Updates workflow model/provider configuration
.github/​workflows/​daily-windows-terminal-integration-builder.md Updates workflow model/provider configuration
.github/​workflows/​daily-windows-defender-scan.md Updates workflow model version
.github/​workflows/​daily-windows-defender-scan.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​daily-storify.md Updates workflow model/provider configuration
.github/​workflows/​daily-spending-forecast.md Updates workflow model/provider configuration
.github/​workflows/​daily-semgrep-scan.md Updates workflow model version
.github/​workflows/​daily-semgrep-scan.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​daily-regulatory.md Updates workflow model/provider configuration
.github/​workflows/​daily-max-ai-credits-test.md Updates workflow model version
.github/​workflows/​daily-go-test-parallelizer.md Updates workflow model version
.github/​workflows/​daily-go-test-parallelizer.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​daily-fact.md Updates workflow model version
.github/​workflows/​daily-evals-report.md Updates workflow model version
.github/​workflows/​daily-evals-report.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​daily-documentation-diagram.md Updates workflow model version
.github/​workflows/​daily-documentation-diagram.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​daily-doc-updater.md Updates workflow model/provider configuration
.github/​workflows/​daily-cli-tools-tester.md Updates workflow model version
.github/​workflows/​daily-cli-tools-tester.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​daily-cli-performance.md Updates workflow model/provider configuration
.github/​workflows/​daily-cache-strategy-analyzer.md Updates workflow model version
.github/​workflows/​daily-awf-spec-compiler-surfacing.md Updates workflow model/provider configuration
.github/​workflows/​daily-architecture-diagram.md Updates workflow model/provider configuration
.github/​workflows/​copilot-centralization-optimizer.md Updates workflow model version
.github/​workflows/​copilot-centralization-optimizer.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​copilot-centralization-drilldown.md Updates workflow model/provider configuration
.github/​workflows/​commit-changes-analyzer.md Updates workflow model/provider configuration
.github/​workflows/​codex-github-remote-mcp-test.md Updates workflow model/provider configuration
.github/​workflows/​cloclo.md Updates workflow model/provider configuration
.github/​workflows/​chaos-pr-bundle-fuzzer.md Updates workflow model version
.github/​workflows/​chaos-pr-bundle-fuzzer.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​changeset.md Updates workflow model/provider configuration
.github/​workflows/​bot-detection.md Updates workflow model version
.github/​workflows/​bot-detection.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​avenger.md Updates workflow model/provider configuration
.github/​workflows/​auto-triage-issues.md Updates workflow model version
.github/​workflows/​auto-triage-issues.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​audit-workflows.md Updates workflow model/provider configuration
.github/​workflows/​artifacts-summary.md Updates workflow model version
.github/​workflows/​artifacts-summary.lock.yml Regenerates lock metadata for updated model
.github/​workflows/​agentic-token-trend-audit.md Updates workflow model/provider configuration
.github/​workflows/​agent-persona-explorer.md Updates workflow model version
.github/​workflows/​ace-editor.md Updates workflow model/provider configuration
.github/​workflows/​ab-testing-advisor.md Updates workflow model version
.github/​workflows/​ab-testing-advisor.lock.yml Regenerates lock metadata for updated model

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

reviewed_at: 2026-10-03T17:08:23Z
review_event: COMMENT
top_themes:
  - no actionable blocking issues found
files_reviewed:
  - .github/workflows/*.md
  - actions/setup/js/models.json
  - docs/src/content/docs/engines/codex.md
  - pkg/cli/data/models.json
  - pkg/cli/model_costs_test.go
  - pkg/workflow/configured_model_validation.go
  - pkg/workflow/configured_model_validation_test.go
comment_count: 0

Note

This comment is managed by comment memory.

It stores persistent context for this thread in the code block at the top of this comment.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 81.8 AIC · ⌖ 7.07 AIC · ⊞ 20.2K · ◷
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.

Verdict

No actionable blocking regressions found in the changed lines.

Review notes

Reviewed the workflow model/provider flips, the duplicated pricing catalog updates, and the Codex compatibility warning plus tests. A sub-agent suggestion was discarded because it pointed outside the changed lines.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 81.8 AIC · ⌖ 7.07 AIC · ⊞ 20.2K
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.

Skills-Based Review 🧠

Applied /codebase-design — approving with one non-blocking suggestion.

📋 Key Themes & Highlights

Key Themes

  • Minor drift risk: the new isCodexCompatibleModel() 7-model allowlist in pkg/workflow/configured_model_validation.go is hand-verified against live availability (per the PR description), which is reasonable, but it duplicates names also present in models.json and the updated docs page — a future addition/retirement could silently desync the three.

Positive Highlights

  • ✅ Strong regression coverage: new tests for the compatibility helper (normalization, case, unknown models, explicit provider override) and for pricing (TestFindGPT56SolPricing, TestFindGPT6AstraPricing) across both providers.
  • ✅ Pricing correction is backed by official sources and both models.json copies were kept in sync (make validate-models-json-sync).
  • ✅ Clean refactor of strings.SplitN → strings.Cut, no behavior change.
  • ✅ Docs (codex.md) updated to reflect the new model guidance and availability-verification caveat.
  • ✅ Credential/security review in the PR description is thorough and the diff confirms no action/permission/container changes beyond the stated credential routing.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 83.2 AIC · ⌖ 14.4 AIC · ⊞ 10K
Comment /matt to run again

return true
}
switch codexModelID(model) {
case "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna", "gpt-6-astra",

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.

[/codebase-design] This 7-model allowlist duplicates knowledge that will drift from pkg/cli/data/models.json as Codex-compatible models are added/retired — nothing fails loudly if the two get out of sync.

💡 Suggestion

Since availability here is deliberately verified manually (per the PR description) rather than derived from the pricing catalog, consider at least extracting the list to a single named package-level var (e.g. var codexCompatibleModels = map[string]bool{...}) so the doc update in docs/src/content/docs/engines/codex.md and this switch can be grepped/diffed together, and add a comment pointing at the doc section so future edits keep both in sync. A small test that fails if a new -codex-suffixed-equivalent model appears in models.json without being classified here would also catch silent drift.

@copilot please address this.

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel Report 🧪

Summary

This PR includes changes to two Go test files that contain comprehensive test coverage for new model pricing entries and Codex model compatibility validation. The tests demonstrate strong design contracts, excellent edge-case coverage, and no coding violations.

Test Files Analyzed

  • pkg/cli/model_costs_test.go — 18 test functions
  • pkg/workflow/configured_model_validation_test.go — 3 test functions

Key Metrics

Metric Value Status
Total Test Functions 21 ✅
Table-Driven Tests 3 (35+ rows) ✅ STRONG
Parallelized Tests 20/21 (95%) ✅ PASS
Build Tag Compliance 100% ✅ PASS
Forbidden Mock Usage 0 ✅ PASS
Edge-Case Coverage 95% ✅ STRONG
Design Contract Tests 95% ✅ STRONG

Quality Score

Score: 96/100 ✅ EXCELLENT

Recommendation

APPROVE — Tests demonstrate strong quality signals: comprehensive behavioral coverage, rigorous edge-case validation, and adherence to all coding guidelines.

🧪 Test quality analysis by Test Quality Sentinel · copilot · haiku45 · 72.3 AIC · ⌖ 6.95 AIC · ⊞ 8.2K · ◷
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.

✅ Test Quality Sentinel: 96/100. Comprehensive test coverage with 21 behavioral and edge-case tests across pricing validation and model compatibility. No violations detected. Recommend approval.

🧪 Test quality analysis by Test Quality Sentinel · copilot · haiku45 · 72.3 AIC · ⌖ 6.95 AIC · ⊞ 8.2K
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.

Impeccable review (refactor_cleanup / mixed_unclear)

Reviewed with distill/critique lens given this is a mechanical, well-tested model-distribution + validation-logic change.

Verification performed

  • go build ./... — passes.
  • Targeted tests (TestWarnCodexCopilotModelCompatibility, TestNewModelPricingEntries, TestFindGPT6AstraPricing, TestFindGPT56SolPricing) — all pass.
  • Cross-checked pkg/cli/data/models.json and actions/setup/js/models.json pricing entries for the 7 new Codex-compatible models — synced between openai and github-copilot providers and match the new test expectations exactly.
  • Spot-checked isCodexCompatibleModel/codexModelID logic against all new/changed test cases (prefix stripping, ?effort= suffix, case normalization, explicit LLMProviderGitHub) — correct in every case.

No blocking issues found in the changed lines.

Non-blocking FYI (outside this diff's changed lines, so not filed as an inline comment): pkg/workflow/codex_config.go:316 still uses copilot/gpt-5.3-codex as the example model in a validation error message. Since this PR's stated goal is to move workflows off the deprecated gpt-5.3-codex/gpt-5.2-codex models, it'd be worth updating that example (e.g. to copilot/gpt-6.1-sol) in a follow-up for consistency with the warning message this PR already updated in configured_model_validation.go.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · copilot · sonnet50 · 79.2 AIC · ⌖ 13.1 AIC · ⊞ 8.1K

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants