← Back to Pull requests

Do not build a re-review on a run that looked at nothing #36

Closed
unknown closed this pull request without merging on Nov 26, 2026 14:49 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 14:09 UTC
Author

A re-review is narrowed to what changed since the run named in the summary comment, read from that run's record. A release before 0.6 wrote a review into the record also when every model request had failed: no stage with a result, no tokens used, "No issues found". 0.6 takes such a record for an earlier review.

What happened

The key of the Zephyr deployment was expired on 23 November from 11:57 to 14:23 UTC. In that time 21 runs reviewed nothing, on 17 pull requests, and each recorded a review.

On zephyrproject-rtos/zephyr#117493 the run in that window was for a push that changed two files. The next push was reviewed by 0.6, which narrowed itself to the two files of the new push and said of the rest that it "was reviewed then". The two files of the push before were never reviewed. Two more pull requests have the same gap so far, and ten more are still at the head of their empty run, so their next push would get it.

What changes

A record in which no stage that reviews the change gave a result is not an earlier review. The run that finds one reviews the whole change, as it does when there is no usable record. Verification, the hard cases and the report do not count as such stages: they check candidates and the comments of an earlier review. A record that does not say how its stages ended is taken as before.

0.6 writes no such record when nothing at all gave a result: a run without a review leaves no marker for the next one to follow. It still writes one when every pass over the change was lost while there were comments of an earlier review to settle, since verification and the hard cases then run on those comments alone. So this is for the records that are already there, and for that case.

Checked against the two real records of that pull request: the empty one is refused, the genuine one of the next day is accepted.

Not covered

A run is still skipped when the summary comment of an empty run names the same head or the same change (skip_reviewed), since that is decided from the comment alone. Until such a pull request changes, its comment stands. The ai-review-full label does not help there: it is consulted only after the skip check, and in the Zephyr workflow that label does not start a run. With this change, such a pull request gets a full review at its next push that changes the diff. To get one before that, its summary comment has to be deleted and the review started again.

Diff: 305 lines (+228 / -77) across 3 files Reviewer: sylvioalves Review duration: 2920m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 305 lines diff across 3 files
0.40
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.342
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #36"
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: 40.2% (MEDIUM) · Higher = larger blast radius
40.2%
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: 15.9% · Safe to merge
15.9%