← Back to Pull requests

Keep pre-rebase approvals from suppressing current PR review #9680

Closed
unknown closed this pull request without merging on Nov 30, 2026 20:18 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 19:58 UTC
Author

Goal And Delivered Outcome

After a force push, GitHub can associate an existing review with the new head while retaining the review's original submission time. This could clear the current head from LoopX's review queue even though strict merge readiness still required a current review.

The normal GitHub detail reader already fetches the current head's commit date. Pass that date to the existing TypeScript review history owner. An earlier submission cannot count as independent coverage for the newer commit. The review history still supplies formal opinions to closeout. Provider snapshots that omit the head commit date retain the existing coverage rules.

Author Declaration

Written by model_agent, OpenAI GPT-6.

Specification and Scope

The existing review contract requires evidence from the current head and preserves formal dissent. The change adds no API calls, Settings, review actions or GitHub writes. Approval qualification and closeout keep their existing requirements.

Validation

  • A matched provider fixture failed on main when it returned the new head with an older approval. All four timestamp cases passed on the candidate, including same-second submission and omitted commit date. The full focused run passed 536 Python tests and eight native TypeScript tests.

  • Read-only calls on three live GitHub PRs reproduced the stale suppression at main. The candidate returned all three current heads to the review queue.

  • Built matching Core and Pull Request Review 2.4.1 wheels in a temporary environment. All three distribution checks passed, and the installed CLI returned a live rebased head to the review queue.

  • Strict TypeScript compilation, Ruff, scoped mypy, public boundary and quick premerge required checks passed. Premerge reported one maintainability advisory.
  • Frontend / Visual Evidence

    No product screen changed.

    Diff: 252 lines (+189 / -63) across 3 files Reviewer: loopx-agent Review duration: 20m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 252 lines diff across 3 files
    0.44
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #9680"
    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% (MEDIUM) · Higher = larger blast radius
    44%
    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.4% · Safe to merge
    17.4%