From b0f05c1a4cfb5676baf1881146d8ae498b452a69 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 15:19:58 +0000 Subject: [PATCH] Replace Grok 4.6 with GPT-6 Sol on the Azure route in code reviews Swap x-ai/grok-4.6 for openai/gpt-6-sol in the code.standard and code.deep profiles and in the legacy inline rosters, and pin Sol to OpenRouter's azure provider in review-model-routes.json and on the legacy path. GLM 5.3 Flash stays optional and the Luna judge is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_013ASDHfC1TnN97pGVj4UHsn --- .github/workflows/openrouter-code-review.yml | 23 ++++++++++++-------- README.md | 4 ++-- review-model-routes.json | 3 +++ review-profiles.json | 4 ++-- tests/test_review_configuration.py | 19 ++++++++++------ 5 files changed, 33 insertions(+), 20 deletions(-) diff --git a/.github/workflows/openrouter-code-review.yml b/.github/workflows/openrouter-code-review.yml index 4e30ee5..edf0e0b 100644 --- a/.github/workflows/openrouter-code-review.yml +++ b/.github/workflows/openrouter-code-review.yml @@ -39,7 +39,7 @@ # FlyOverCoderKY/openrouter-pr-review-action (live pin on the # uses: lines below; do not restate the version here), # models from the shared configuration job (the product repos use the -# requested grok+glm two-lane roster with the recall-safe judge; +# requested sol+glm two-lane roster with the recall-safe judge; # RetireGolden-Docs uses a GLM-only lane), # review_scope: full-pr, review_mode: auto (continues any existing ledger), existing per-repo # effort, max_tool_turns: "50". The action default is now 50 @@ -244,27 +244,27 @@ jobs: # This configuration is part of the pinned reusable workflow, never PR code. policies = { "RetireGolden/RetireGolden": { - "models": "x-ai/grok-4.6,z-ai/glm-5.3-flash", + "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "" }, "RetireGolden/RetireGolden-MCP": { - "models": "x-ai/grok-4.6,z-ai/glm-5.3-flash", + "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "" }, "RetireGolden/retiregolden.org": { - "models": "x-ai/grok-4.6,z-ai/glm-5.3-flash", + "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "Run a full review, with particular attention to calculation correctness, public contracts, security, and release integrity. Obey AGENTS.md." }, "RetireGolden/RetireGolden-Pro": { - "models": "x-ai/grok-4.6,z-ai/glm-5.3-flash", + "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "" }, "RetireGolden/RetireBench": { - "models": "x-ai/grok-4.6,z-ai/glm-5.3-flash", + "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", "effort": "medium", "guidance": "Major issues and security only. This is not a full AGENTS.md audit." }, @@ -274,14 +274,19 @@ jobs: "guidance": "" }, "*": { - "models": "x-ai/grok-4.6", + "models": "openai/gpt-6-sol", "effort": "low", - "guidance": "This repository is not on the HIGH or MEDIUM Grok review list. Do not run a high-effort or full AGENTS.md audit. Flag only obvious defects and security issues." + "guidance": "This repository is not on the HIGH or MEDIUM review list. Do not run a high-effort or full AGENTS.md audit. Flag only obvious defects and security issues." } } common = 'Pin-bump PRs: when the change advances a SHA-pinned uses: reference (org reusable workflow or action) and the PR body links the upstream commit or release, do not flag the external SHA as unverifiable from this checkout. No checkout can verify a cross-repo pin, and a wrong or workflow-less ref fails at workflow startup rather than silently. Verify what is checkable locally instead: the ref is an exact 40-hex commit (never a branch or mutable tag), the pin comment names the upstream PR and pinned version per org convention, permissions and secrets wiring are unchanged, and any caller contract test that encodes the pin is updated.' policy = policies.get(os.environ["GITHUB_REPOSITORY"], policies["*"]) - registry, routes = "", "{}" + # Legacy (non-profile) callers get the same pinned route for their roster; + # tests keep this in step with review-model-routes.json. + legacy_routes = {"openai/gpt-6-sol": {"provider": "azure"}} + roster = policy["models"].split(",") + registry = "" + routes = json.dumps({m: r for m, r in legacy_routes.items() if m in roster}, separators=(",", ":")) if enabled: root = Path(os.environ["PROFILE_ROOT"]) registry = json.dumps(json.loads((root / "review-profiles.json").read_text()), separators=(",", ":")) diff --git a/README.md b/README.md index bf0131b..a884a6c 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ all current caller, pin, receipt, and proof checks. | Profile | Standard (auto) | Deep (maintainer dispatch) | | --- | --- | --- | -| `code` | Grok required, GLM optional | Grok required, GLM optional, Astra/Flex required | +| `code` | Sol/Azure required, GLM optional | Sol/Azure required, GLM optional, Astra/Flex required | | `docs` | GLM required | GLM required, Astra/Flex required | Both levels retain the existing 1,080-second lane ceiling and 1,320-second job @@ -82,7 +82,7 @@ DNS stalls and endless responses bounded. Failed-lane/checkpoint diagnostics distinguish connection setup, socket inactivity, and elapsed deadline expiry. `review-model-routes.json` supplies provider routing for exact lane slugs (for -example Astra via `openai/flex`). Deep raises the minimum panel; it retains +example Astra via `openai/flex` and Sol pinned to `azure`). Deep raises the minimum panel; it retains the finding ledger and continues a full-PR review. There is no automatic risk classifier yet — deep is requested explicitly. diff --git a/review-model-routes.json b/review-model-routes.json index dcd07b4..82c44dd 100644 --- a/review-model-routes.json +++ b/review-model-routes.json @@ -2,5 +2,8 @@ "openai/gpt-6-astra": { "provider": "openai/flex", "service_tier": "flex" + }, + "openai/gpt-6-sol": { + "provider": "azure" } } diff --git a/review-profiles.json b/review-profiles.json index e3cab69..c221456 100644 --- a/review-profiles.json +++ b/review-profiles.json @@ -6,7 +6,7 @@ "lanes": [ { "required": true, - "model": "x-ai/grok-4.6" + "model": "openai/gpt-6-sol" }, { "required": false, @@ -25,7 +25,7 @@ "lanes": [ { "required": true, - "model": "x-ai/grok-4.6" + "model": "openai/gpt-6-sol" }, { "required": false, diff --git a/tests/test_review_configuration.py b/tests/test_review_configuration.py index 183e40b..39c8583 100644 --- a/tests/test_review_configuration.py +++ b/tests/test_review_configuration.py @@ -23,6 +23,10 @@ json.loads((ROOT / 'review-profiles.json').read_text(encoding='utf-8')), separators=(',', ':'), ) +SOL_ROUTE = json.dumps( + {'openai/gpt-6-sol': json.loads((ROOT / 'review-model-routes.json').read_text(encoding='utf-8'))['openai/gpt-6-sol']}, + separators=(',', ':'), +) ROUTES = json.dumps( json.loads((ROOT / 'review-model-routes.json').read_text(encoding='utf-8')), separators=(',', ':'), @@ -53,13 +57,13 @@ def run_config(self, repository, mode='off', *, follow_up=False, profiles=False) def test_standing_rosters_and_follow_up_effort_are_preserved(self): cases = [ - ('RetireGolden', 'x-ai/grok-4.6,z-ai/glm-5.3-flash', 'high'), - ('RetireGolden-Pro', 'x-ai/grok-4.6,z-ai/glm-5.3-flash', 'high'), - ('RetireGolden-MCP', 'x-ai/grok-4.6,z-ai/glm-5.3-flash', 'high'), + ('RetireGolden', 'openai/gpt-6-sol,z-ai/glm-5.3-flash', 'high'), + ('RetireGolden-Pro', 'openai/gpt-6-sol,z-ai/glm-5.3-flash', 'high'), + ('RetireGolden-MCP', 'openai/gpt-6-sol,z-ai/glm-5.3-flash', 'high'), ('RetireGolden-Docs', 'z-ai/glm-5.3-flash', 'medium'), - ('retiregolden.org', 'x-ai/grok-4.6,z-ai/glm-5.3-flash', 'high'), - ('RetireBench', 'x-ai/grok-4.6,z-ai/glm-5.3-flash', 'medium'), - ('unlisted', 'x-ai/grok-4.6', 'low'), + ('retiregolden.org', 'openai/gpt-6-sol,z-ai/glm-5.3-flash', 'high'), + ('RetireBench', 'openai/gpt-6-sol,z-ai/glm-5.3-flash', 'medium'), + ('unlisted', 'openai/gpt-6-sol', 'low'), ] for name, models, effort in cases: with self.subTest(repository=name): @@ -68,7 +72,8 @@ def test_standing_rosters_and_follow_up_effort_are_preserved(self): self.assertIn('models=' + models + '\n', output) self.assertIn('effort=' + effort + '\n', output) self.assertEqual(output.count('Pin-bump PRs:'), 1) - self.assertIn('model_routes={}\n', output) + routes = SOL_ROUTE if 'openai/gpt-6-sol' in models else '{}' + self.assertIn('model_routes=' + routes + '\n', output) self.assertNotIn('astra', output.lower()) proc, output = self.run_config('RetireGolden/RetireGolden', follow_up=True) self.assertEqual(proc.returncode, 0, proc.stderr)