diff --git a/.github/workflows/openrouter-code-review.yml b/.github/workflows/openrouter-code-review.yml index bb1becb..8d62c57 100644 --- a/.github/workflows/openrouter-code-review.yml +++ b/.github/workflows/openrouter-code-review.yml @@ -351,27 +351,27 @@ jobs: # This configuration is part of the pinned reusable workflow, never PR code. policies = { "RetireGolden/RetireGolden": { - "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", + "models": "openai/gpt-6.1-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "" }, "RetireGolden/RetireGolden-MCP": { - "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", + "models": "openai/gpt-6.1-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "" }, "RetireGolden/retiregolden.org": { - "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", + "models": "openai/gpt-6.1-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": "openai/gpt-6-sol,z-ai/glm-5.3-flash", + "models": "openai/gpt-6.1-sol,z-ai/glm-5.3-flash", "effort": "high", "guidance": "" }, "RetireGolden/RetireBench": { - "models": "openai/gpt-6-sol,z-ai/glm-5.3-flash", + "models": "openai/gpt-6.1-sol,z-ai/glm-5.3-flash", "effort": "medium", "guidance": "Major issues and security only. This is not a full AGENTS.md audit." }, @@ -381,7 +381,7 @@ jobs: "guidance": "" }, "*": { - "models": "openai/gpt-6-sol", + "models": "openai/gpt-6.1-sol", "effort": "low", "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." } @@ -390,7 +390,7 @@ jobs: policy = policies.get(os.environ["GITHUB_REPOSITORY"], policies["*"]) # 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"}} + legacy_routes = {"openai/gpt-6.1-sol": {"provider": "azure/us"}} roster = policy["models"].split(",") registry = "" routes = json.dumps({m: r for m, r in legacy_routes.items() if m in roster}, separators=(",", ":")) @@ -523,7 +523,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: FlyOverCoderKY/openrouter-pr-review-action - ref: 212775ffea22e806cddcb706c73a3df26fbcb6d0 + ref: 0d6a05e41616281368c1f6bb7fb5a47ddf41375d path: .trusted-review-action persist-credentials: false - name: Resolve pending review request @@ -542,7 +542,7 @@ jobs: - name: Prepare shared review snapshot id: profile_setup if: inputs.review_profiles_enabled - uses: FlyOverCoderKY/openrouter-pr-review-action@212775ffea22e806cddcb706c73a3df26fbcb6d0 # action#41 rebase scope and review history + uses: FlyOverCoderKY/openrouter-pr-review-action@0d6a05e41616281368c1f6bb7fb5a47ddf41375d # action#47 Sol Azure US ZDR with: role: setup github_token: ${{ github.token }} @@ -591,7 +591,7 @@ jobs: id: openrouter_first if: steps.profile_request.outputs.skip_review != 'true' timeout-minutes: 25 - uses: FlyOverCoderKY/openrouter-pr-review-action@212775ffea22e806cddcb706c73a3df26fbcb6d0 # action#41 rebase scope and review history + uses: FlyOverCoderKY/openrouter-pr-review-action@0d6a05e41616281368c1f6bb7fb5a47ddf41375d # action#47 Sol Azure US ZDR env: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} with: @@ -1021,7 +1021,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: FlyOverCoderKY/openrouter-pr-review-action - ref: 212775ffea22e806cddcb706c73a3df26fbcb6d0 + ref: 0d6a05e41616281368c1f6bb7fb5a47ddf41375d path: .trusted-review-action persist-credentials: false - name: Resolve pending review request @@ -1040,7 +1040,7 @@ jobs: - name: Prepare shared review snapshot id: profile_setup if: inputs.review_profiles_enabled && steps.seeded.outputs.ready == 'true' - uses: FlyOverCoderKY/openrouter-pr-review-action@212775ffea22e806cddcb706c73a3df26fbcb6d0 # action#41 rebase scope and review history + uses: FlyOverCoderKY/openrouter-pr-review-action@0d6a05e41616281368c1f6bb7fb5a47ddf41375d # action#47 Sol Azure US ZDR with: role: setup github_token: ${{ github.token }} @@ -1088,7 +1088,7 @@ jobs: id: openrouter_followup if: steps.seeded.outputs.ready == 'true' && steps.profile_request.outputs.skip_review != 'true' timeout-minutes: 25 - uses: FlyOverCoderKY/openrouter-pr-review-action@212775ffea22e806cddcb706c73a3df26fbcb6d0 # action#41 rebase scope and review history + uses: FlyOverCoderKY/openrouter-pr-review-action@0d6a05e41616281368c1f6bb7fb5a47ddf41375d # action#47 Sol Azure US ZDR env: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} with: diff --git a/.github/workflows/openrouter-profile-completion.yml b/.github/workflows/openrouter-profile-completion.yml index b55febd..632445d 100644 --- a/.github/workflows/openrouter-profile-completion.yml +++ b/.github/workflows/openrouter-profile-completion.yml @@ -58,7 +58,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: FlyOverCoderKY/openrouter-pr-review-action - ref: 212775ffea22e806cddcb706c73a3df26fbcb6d0 + ref: 0d6a05e41616281368c1f6bb7fb5a47ddf41375d path: .trusted-review-action persist-credentials: false - name: Resolve current profile evidence @@ -106,7 +106,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: FlyOverCoderKY/openrouter-pr-review-action - ref: 212775ffea22e806cddcb706c73a3df26fbcb6d0 + ref: 0d6a05e41616281368c1f6bb7fb5a47ddf41375d path: .trusted-review-action persist-credentials: false - name: Confirm current profile evidence @@ -148,7 +148,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: FlyOverCoderKY/openrouter-pr-review-action - ref: 212775ffea22e806cddcb706c73a3df26fbcb6d0 + ref: 0d6a05e41616281368c1f6bb7fb5a47ddf41375d path: .trusted-review-action persist-credentials: false - name: Publish only completed current proofs diff --git a/README.md b/README.md index a2268ff..4ef7c53 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ added in a PR becomes authoritative only after it merges. Use concise prose to describe repository contracts, with nested files for component-specific invariants. See the action's -[file format, offline lint/explain commands, and trust rules](https://github.com/FlyOverCoderKY/openrouter-pr-review-action/blob/212775ffea22e806cddcb706c73a3df26fbcb6d0/docs/review-policy.md). +[file format, offline lint/explain commands, and trust rules](https://github.com/FlyOverCoderKY/openrouter-pr-review-action/blob/0d6a05e41616281368c1f6bb7fb5a47ddf41375d/docs/review-policy.md). In this guidance rollout, `profile: code` and `profile: docs` are descriptive; they do not select models by themselves. @@ -63,7 +63,7 @@ all current caller, pin, receipt, and proof checks. | Profile | Standard (auto) | Deep (maintainer dispatch) | | --- | --- | --- | -| `code` | Sol/Azure required, GLM optional | Sol/Azure required, GLM optional, Astra/Flex required | +| `code` | Sol 6.1/Azure US ZDR required, GLM optional | Sol 6.1/Azure US ZDR 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,9 @@ 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` and Sol pinned to `azure`). Deep raises the minimum panel; it retains +example Astra via `openai/flex` and Sol 6.1 pinned to `azure/us` with data +collection denied, ZDR required, and provider fallbacks disabled). 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. @@ -345,7 +347,7 @@ Local workflow contract checks: ```sh # Obtain the pinned public action contracts outside product source. git clone --no-checkout https://github.com/FlyOverCoderKY/openrouter-pr-review-action .trusted-review-action -git -C .trusted-review-action checkout 212775ffea22e806cddcb706c73a3df26fbcb6d0 +git -C .trusted-review-action checkout 0d6a05e41616281368c1f6bb7fb5a47ddf41375d export PYTHONPATH="$PWD/.trusted-review-action/src" uv run --with jq --with pyyaml python -m unittest discover -s tests node --test tests/profile-consumer.test.mjs tests/workflow-wakeup.test.mjs tests/gate-check.test.mjs diff --git a/review-model-routes.json b/review-model-routes.json index 82c44dd..68c01c6 100644 --- a/review-model-routes.json +++ b/review-model-routes.json @@ -3,7 +3,7 @@ "provider": "openai/flex", "service_tier": "flex" }, - "openai/gpt-6-sol": { - "provider": "azure" + "openai/gpt-6.1-sol": { + "provider": "azure/us" } } diff --git a/review-profiles.json b/review-profiles.json index c221456..8ea6319 100644 --- a/review-profiles.json +++ b/review-profiles.json @@ -6,7 +6,7 @@ "lanes": [ { "required": true, - "model": "openai/gpt-6-sol" + "model": "openai/gpt-6.1-sol" }, { "required": false, @@ -25,7 +25,7 @@ "lanes": [ { "required": true, - "model": "openai/gpt-6-sol" + "model": "openai/gpt-6.1-sol" }, { "required": false, diff --git a/tests/test_profile_workflow.py b/tests/test_profile_workflow.py index 197e067..b0343dd 100644 --- a/tests/test_profile_workflow.py +++ b/tests/test_profile_workflow.py @@ -32,7 +32,7 @@ (ROOT / '.github/workflows/openrouter-profile-completion.yml').read_text(encoding='utf-8'), Loader=yaml.BaseLoader, ) -ACTION_PIN = '212775ffea22e806cddcb706c73a3df26fbcb6d0' +ACTION_PIN = '0d6a05e41616281368c1f6bb7fb5a47ddf41375d' def job_steps(workflow, job_id): diff --git a/tests/test_review_configuration.py b/tests/test_review_configuration.py index 39c8583..058ffbc 100644 --- a/tests/test_review_configuration.py +++ b/tests/test_review_configuration.py @@ -17,14 +17,14 @@ ) JOBS = WORKFLOW['jobs'] CONFIG = JOBS['review-config'] -ACTION_PIN = '212775ffea22e806cddcb706c73a3df26fbcb6d0' +ACTION_PIN = '0d6a05e41616281368c1f6bb7fb5a47ddf41375d' SCRIPT = next(step['run'] for step in CONFIG['steps'] if step.get('id') == 'config') REGISTRY = json.dumps( 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']}, + {'openai/gpt-6.1-sol': json.loads((ROOT / 'review-model-routes.json').read_text(encoding='utf-8'))['openai/gpt-6.1-sol']}, separators=(',', ':'), ) ROUTES = json.dumps( @@ -34,6 +34,27 @@ class ReviewConfigurationTests(unittest.TestCase): + def test_sol_route_matches_tested_policy_without_changing_secondary_routes(self): + from or_pr_review.models import ( + base_chat_payload, + parse_model_routes, + review_lane_defaults, + ) + + model = 'openai/gpt-6.1-sol' + routes = parse_model_routes(ROUTES) + kwargs = review_lane_defaults(model) + kwargs.update(routes[model]) + payload, _ = base_chat_payload(model=model, response_schema={'name': 'review'}, **kwargs) + self.assertEqual(payload['provider'], { + 'order': ['azure/us'], 'allow_fallbacks': False, + 'data_collection': 'deny', 'zdr': True, + }) + self.assertEqual(routes['openai/gpt-6-astra'], { + 'provider_order': ['openai/flex'], 'service_tier': 'flex', + }) + self.assertNotIn('z-ai/glm-5.3-flash', routes) + def run_config(self, repository, mode='off', *, follow_up=False, profiles=False): with tempfile.TemporaryDirectory() as folder: output = Path(folder) / 'output' @@ -57,13 +78,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', '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', 'openai/gpt-6.1-sol,z-ai/glm-5.3-flash', 'high'), + ('RetireGolden-Pro', 'openai/gpt-6.1-sol,z-ai/glm-5.3-flash', 'high'), + ('RetireGolden-MCP', 'openai/gpt-6.1-sol,z-ai/glm-5.3-flash', 'high'), ('RetireGolden-Docs', 'z-ai/glm-5.3-flash', 'medium'), - ('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'), + ('retiregolden.org', 'openai/gpt-6.1-sol,z-ai/glm-5.3-flash', 'high'), + ('RetireBench', 'openai/gpt-6.1-sol,z-ai/glm-5.3-flash', 'medium'), + ('unlisted', 'openai/gpt-6.1-sol', 'low'), ] for name, models, effort in cases: with self.subTest(repository=name): @@ -72,7 +93,7 @@ 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) - routes = SOL_ROUTE if 'openai/gpt-6-sol' in models else '{}' + routes = SOL_ROUTE if 'openai/gpt-6.1-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)