ci: bump gateway to v0.7.2 and skip comments from non-members #11473
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 285 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.338
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #11473"
general
weight: 0.35
saubyk
In this PR, we bump Gateway to v0.7.2 and stop non-members from starting Gateway runs on lnd PRs.
Before this change, any GitHub user could make Gateway spend Claude calls on lnd PRs.
.github/workflows/gateway.ymlstarted a job for any PR comment containing/gateway, and the v0.7.1 runtime let anyone run/gateway explain, which calls Claude with no rate limit.Both pins move to v0.7.2, together:
lightninglabs/gateway-action@254f0cbandruntime_refabe5c3a. The v0.7.2 runtime needs the job token that gateway-action v0.7.2 passes, so bumping only one of them breaks every command. Release notes: https://github.com/lightninglabs/gateway-action/releases/tag/v0.7.2What v0.7.2 changes:
/gateway explainis limited to maintainers and the PR author, the same rulecheckalready had.explainrefuses the same finding again within 10 minutes, claimed before the Claude call so a burst of comments makes one call.checkrefuses a repeat check of the same HEAD within the cooldown.Shim filter: a comment now starts a job only if it comes from an OWNER, MEMBER, or COLLABORATOR, or from the PR author. This matches the gateway v0.7.2 consumer template. It only saves runner time; the runtime still authorizes every command.
Private-membership check (the filter would silently skip an org member who appears as
CONTRIBUTOR):COLLABORATORorMEMBER. Every one is a direct repo collaborator, except Roasbeef and josephpoon, whose org membership is public./gatewaycommenters on lnd, from the comments'author_association: saubyk, bhandras, bitromortac, and jtobin show asCOLLABORATOR; Roasbeef and yyforyongyu asMEMBER. The onlyCONTRIBUTORs are ZZiigguurraatt and MPins. Neither has write access, so outside their own PRs the runtime refuses their commands anyway. On their own PRs, the PR-author clause still lets them through.COLLABORATOR.Labels:
no-changelog,no-itest.actionlinton the workflow passes.