Skip to content
Merged
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
12 changes: 8 additions & 4 deletions .github/workflows/openrouter-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# file, so every pegma-dev repository (including new ones) gets it without a
# per-repo workflow. Auth: org-level OPENROUTER_API_KEY secret only.
#
# Two cheap review lanes run in parallel and the pinned judge union-merges
# Two review lanes run in parallel and the pinned judge union-merges
# their findings into one review:
# meta/muse-spark-1.2 (Meta Muse Spark 1.2)
# openai/gpt-6.1-sol (GPT-6.1 Sol, Azure US ZDR)
# z-ai/glm-5.3-flash (Z.ai GLM 5.3 Flash)
# judge: openai/gpt-5.6-luna
#
Expand Down Expand Up @@ -60,7 +60,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
OR_MODELS: meta/muse-spark-1.2,z-ai/glm-5.3-flash
OR_MODELS: openai/gpt-6.1-sol,z-ai/glm-5.3-flash

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.

🟠 New primary model id openai/gpt-6.1-sol is unverifiable against OpenRouter's catalog (risk)

If openai/gpt-6.1-sol is not the exact OpenRouter model id (wrong vendor prefix, suffix, or version), the primary lane fails on every attempt. Depending on how the action treats a failed lane, the outcome is either the required check turning red for every pull request across all Pegma repositories — the workflow header itself (lines 31–34) names action failure as a way the check goes red — or a silent downgrade to single-lane reviews from only z-ai/glm-5.3-flash, halving review coverage with no visible signal.

Evidence: the id appears in OR_MODELS (line 63) and in the header comment (line 8) but nowhere else in the repository; there is no test, fixture, or doc here that can validate an OpenRouter id, and the two pre-existing ids (z-ai/glm-5.3-flash, openai/gpt-5.6-luna) being valid does not validate the new one.

Proof gap: no OpenRouter catalog access from this review, so existence of the id cannot be confirmed or refuted locally. The cost is concrete either way, so verify the id with a live single-lane run (or the catalog) before merge.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The read-only OpenRouter endpoints response returns id: openai/gpt-6.1-sol and an Azure endpoint tagged azure/us. The completed 33-review cohort is also published in the aggregate leaderboard. No paid benchmark cells were replayed for this rollout.

# Keep the route key aligned with the primary lane in OR_MODELS.
OR_MODEL_ROUTES: '{"openai/gpt-6.1-sol":{"provider":"azure/us"}}'
OR_JUDGE: openai/gpt-5.6-luna
# Must match the posting identity (github.token posts as github-actions[bot]).
BOT_LOGIN: github-actions[bot]
Expand Down Expand Up @@ -163,12 +165,13 @@ jobs:
- name: Run OpenRouter review
if: env.REVIEW_ELIGIBLE == 'true' && steps.key.outputs.present == 'true'
id: review
uses: FlyOverCoderKY/openrouter-pr-review-action@4471f5963751223c26a2e169d78c0f13817165aa # main 2026-09-09
uses: FlyOverCoderKY/openrouter-pr-review-action@0d6a05e41616281368c1f6bb7fb5a47ddf41375d # main 2026-11-07; action#47 Sol Azure US ZDR
with:
github_token: ${{ github.token }}
pr_number: ${{ steps.pr.outputs.number }}
bot_login: ${{ env.BOT_LOGIN }}
models: ${{ env.OR_MODELS }}
model_routes: ${{ env.OR_MODEL_ROUTES }}
judge_model: ${{ env.OR_JUDGE }}
review_scope: ${{ steps.pr.outputs.scope }}
review_mode: auto
Expand Down Expand Up @@ -200,6 +203,7 @@ jobs:
echo "| Secret present | \`${KEY_PRESENT:-n/a}\` |"
echo "| Scope | \`${SCOPE:-n/a}\` |"
echo "| Models | \`${OR_MODELS}\` |"
echo "| Requested routes | \`${OR_MODEL_ROUTES}\` |"
echo "| Judge | \`${OR_JUDGE}\` |"
echo "| Verdict | \`${VERDICT:-n/a}\` |"
echo "| Issues | \`${ISSUES:-n/a}\` |"
Expand Down
Loading