← Back to Pull requests

ci: bump gateway to v0.7.2 and skip comments from non-members #11473

Closed
unknown closed this pull request without merging on Nov 03, 2026 00:59 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 20:32 UTC
Author

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.yml started 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@254f0cb and runtime_ref abe5c3a. 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.2

What v0.7.2 changes:

  • /gateway explain is limited to maintainers and the PR author, the same rule check already had.

  • Every command is authorized before any App or Claude credential is loaded. A refused command gets no reply; the reason is in the workflow log.

  • Repeat guards: explain refuses the same finding again within 10 minutes, claimed before the Claude call so a burst of comments makes one call. check refuses 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):

  • All 21 lnd collaborators with write access appear as COLLABORATOR or MEMBER. Every one is a direct repo collaborator, except Roasbeef and josephpoon, whose org membership is public.

  • Recent /gateway commenters on lnd, from the comments' author_association: saubyk, bhandras, bitromortac, and jtobin show as COLLABORATOR; Roasbeef and yyforyongyu as MEMBER. The only CONTRIBUTORs 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.

  • litbot-9000, which drives Gateway from the claw review loop, appears as COLLABORATOR.
  • Labels: no-changelog, no-itest. actionlint on the workflow passes.

    Diff: 285 lines (+213 / -72) across 3 files Reviewer: saubyk Review duration: 266m
    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
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44.8% (MEDIUM) · Higher = larger blast radius
    44.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.7% · Safe to merge
    17.7%