← Back to Pull requests

multi: improve resolution lifecycle safety #11054

Open
unknown opened this pull request with 104 lines diff across 1 files
View on GitHub
unknown unknown commented on Aug 10, 2026 04:19 UTC
Author

Summary

Prevent contract resolutions and owned sweeps from finalizing on shallow spends that can be reorged.

Change Description

  • Let spend notifications wait for a caller-selected depth while preserving one-confirmation defaults.

  • Delay terminal resolver, breach, and owned-sweep results until their spends are mature.

  • Add focused coverage for reorg, restart, cancellation, and missing-input recovery paths.
  • Notes

    This is the preserved PR 3 of 3 for the resolution-lifecycle update. It depends on PR #11147 and the forthcoming PR 2 sweep lifecycle layer. Until those prerequisites merge, this PR remains draft and retains the full stack to preserve its review history. After PR 2 merges, this branch will be rebased and reduced to the final resolver, Nursery, and breach-recovery consumer layer before being marked ready.

    Diff: 104 lines (+78 / -26) across 1 files Reviewer: gijswijs Review duration: 146918m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.43) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 104 lines diff across 1 files
    0.43
    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: 35%
    40%
    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.278
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #11054"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.9% 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: 42.8% (MEDIUM) · Higher = larger blast radius
    42.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: 40.9% · Lower = rushed or shallow review
    40.9%
    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: 25.3% · Safe to merge
    25.3%