← Back to Pull requests

Make triage a marker team with weaker gh perms #3016

Open
maxdexh opened this pull request with 7 lines diff across 2 files
View on GitHub
maxdexh maxdexh commented on Dec 03, 2026 10:59 UTC
Author

WIP under discussion with @apiraino
Before making this change, we should talk to the affected members about whether they need any of the affected perms, and we should probably set up @rustbot close on rust-lang/rust, as moderate does not allow closing PRs (which is one of the tasks of triage).

This brings triage more in line with trusted-contributors; its barrier to entry is much lower than top-level teams, and write perms can be used to do destructive things such as deleting labels, or editing other people's PRs. T-all membership is special as it comes with e.g. special treatment for travel grants, the ability to merge RFCs (due to getting write perms on a few repos), and the ability to see certain zulip channels. Triage implying T-all membership was apparently an accidental side-effect of #2100.

The goal is to get rid of destructive permissions and the T-all implication, so that we can keep using triage as a 'low barrier to entry' group for new people interested in doing triage; this was common practice before being put on hold due to the permission problem.

Here is a list of relevant permissions (for rust-lang/rust) that will be lost in the transition from write to moderate:

  • Mark others people's PRs as draft/ready

  • "Request Changes" on PRs (which triggers triagebot to mark S-waiting-on-author).

  • Approving PRs (for branch protection); that's a noop on r-l/r, as only bors can merge

  • Edit descriptions and titles of other people's PRs

  • Hide and edit PR comments

  • Lock discussions on PRs

  • Closing other people's PRs (triage will still be able to do this via @rustbot close; see rust-lang/rust#167073)

  • Potentially problematic permissions (the ones this PR aims to remove)

  • - Rerun and Cancel Actions, as well as mess with variables in Actions
    - Destructive things like deleting comments, labels, and milestones
    - "Apply Suggestion" on others people's PRs

    See GitHub's docs for a full list (note that there are some obvious errors towards the bottom). Most restrictions apply only to PRs; for issue management, moderate and write are essentially equivalent. Arguably we could allow some of the ones listed above, but GitHub does not allow granular roles; however, some of them could be (or are already) implemented in triagebot if needed.

    Triage members will keep their "Member" badge on github, just like goal-owners and trusted-contributors. Additionally, they are still considered team members by rustbot, as triage has always had a carve-out from the bot's T-all check (this got broken by the rename in #2100, though noone noticed because of the simultaneous T-all addition; see rust-lang/triagebot#2594, which fixed this). This means that triage keeps the ability to use @rustbot close/transfer/etc. on other rust-lang repos where they are enabled.

    Note that the purpose of triage doesn't change. Unlike trusted-contributors, triage is not a "permissions group", but denotes that a person is actively involved in doing triage; unlike trusted-contributors, we have members who get the same or more perms from other groups, and move members that don't actively triage to alumni. The permissions are mainly to facilitate triaging work (especially by making labeling easier).

    Diff: 7 lines (+4 / -3) across 2 files Reviewer: None requested Review duration: 3389m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.29) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.29 · 7 lines diff across 2 files
    0.29
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.124
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    1 comments
    "Review active on #3016"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    maxdexh maxdexh
    Labels
    risk: low confidence: 44.2% 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: 28.9% (LOW) · Higher = larger blast radius
    28.9%
    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: 44.2% · Lower = rushed or shallow review
    44.2%
    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: 16.1% · Safe to merge
    16.1%
    Repository