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
26 changes: 13 additions & 13 deletions .github/workflows/openrouter-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand All @@ -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."
}
Expand All @@ -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=(",", ":"))
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/openrouter-profile-completion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand All @@ -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.

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions review-model-routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"provider": "openai/flex",
"service_tier": "flex"
},
"openai/gpt-6-sol": {
"provider": "azure"
"openai/gpt-6.1-sol": {
"provider": "azure/us"
}
}
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": "openai/gpt-6-sol"
"model": "openai/gpt-6.1-sol"
},
{
"required": false,
Expand All @@ -25,7 +25,7 @@
"lanes": [
{
"required": true,
"model": "openai/gpt-6-sol"
"model": "openai/gpt-6.1-sol"
},
{
"required": false,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_profile_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
39 changes: 30 additions & 9 deletions tests/test_review_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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'
Expand All @@ -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):
Expand All @@ -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)
Expand Down
Loading