← Back to Pull requests

Ask the maintainers team for review once the AI review is in #854

Closed
unknown closed this pull request without merging on Dec 02, 2026 16:04 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 14:21 UTC
Author

What changed

  • review-policy no longer picks a maintainer itself (fewest open review requests). It requests the [review] team, micronaut-projects/maintainers. The team's GitHub auto-assignment picks one member by load and never the author.

  • People are asked last. For T1 and T2, the team is requested only once the AI review of the latest commit is in without a change request (on Cliponaut's own PRs, once its AI review check passed), and only when nobody has been asked yet. T0 asks nobody. Bot PRs without an AI review are requested as before.

  • CODEOWNERS stays: GitHub asks code owners itself, and the team is not asked on top.

  • review-policy.yml now also requests, because the AI review arrives as a review event. On PRs from forks that event's token is read-only, so the request fails there with a warning. The AI reviewer asks the team on those (agent side).
  • Stacked on #853. Its base switches to master once #853 merges.

    Why

    GitHub already balances reviews across the team (Álvaro, 2 Dec), and humans should be asked as late as possible.

    How to test

    python3 -m unittest test_risk_tier in .github/scripts: 205 tests pass. The three new request tests fail without the change.

    Checklist

  • Tests added

  • Documentation updated (MAINTAINING.md)

  • Targets the right branch
  • Review declaration

    | Field | Value |
    |-----------------------------|-----------------|
    | AI use | agent-generated |
    | AI tool | Claude Code |
    | Risk tier | T2 |
    | API or behaviour change | yes |

    ---
    _Generated by Claude Code_

    Diff: 212 lines (+159 / -53) across 2 files Reviewer: alvarosanchez Review duration: 103m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 212 lines diff across 2 files
    0.37
    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.321
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #854"
    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: 36.5% (MEDIUM) · Higher = larger blast radius
    36.5%
    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: 14.4% · Safe to merge
    14.4%