Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .github/workflows/openrouter-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
},
Expand All @@ -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=(",", ":"))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand Down
3 changes: 3 additions & 0 deletions review-model-routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"openai/gpt-6-astra": {
"provider": "openai/flex",
"service_tier": "flex"
},
"openai/gpt-6-sol": {
"provider": "azure"
}
}
4 changes: 2 additions & 2 deletions review-profiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lanes": [
{
"required": true,
"model": "x-ai/grok-4.6"
"model": "openai/gpt-6-sol"
},
{
"required": false,
Expand All @@ -25,7 +25,7 @@
"lanes": [
{
"required": true,
"model": "x-ai/grok-4.6"
"model": "openai/gpt-6-sol"
},
{
"required": false,
Expand Down
19 changes: 12 additions & 7 deletions tests/test_review_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=(',', ':'),
Expand Down Expand Up @@ -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):
Expand All @@ -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)
Expand Down
Loading