← Back to Pull requests

Fix mainline quota, lease and Explore regressions blocking #9053 #9701

Open
unknown opened this pull request with 180 lines diff across 2 files
View on GitHub
unknown unknown commented on Dec 01, 2026 04:00 UTC
Author

Mainline regressions

These fixes apply independently of #9053. Its full Python gate reproduced the same three failure families.

  • Keep a blocked advancement Todo quiet before its verified resume_at deadline. A pair of historical polls can no longer trigger a stall replan when both predate the same current Agent, Todo and deadline. Existing observations are preserved.

  • Preserve the typed Explore result-page coordinates when refresh-state reads the current source. The original Turn can replay valid pages, reject invalid citations and keep the original settlement identity through a reread.

  • Update the lease-replacement journey to exercise the existing fenced takeover. Direct writeback with the replacement lease is refused. The original guard then records one preparation upgrade and retains the prior settlement identity. Both steps leave quota untouched.
  • Validation

  • 17 affected CLI regressions passed on this branch and on its local merge tree with #9053 at e14ecc4cd3c8, including File and SQLite.

  • 21 installed Core first-task and recovery cases passed on the local merge tree.

  • TypeScript typecheck and 123 focused tests passed. Standard premerge passed 6 direct checks and 19 selected checks with one inherited advisory for the unchanged loopx/status.py line count.

  • Remaining remote checks for #9053 require fresh evidence on the integrated source. This PR addresses the three mainline regressions above.
  • Diff: 180 lines (+135 / -45) across 2 files Reviewer: loopx-agent Review duration: 20m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.36) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 180 lines diff across 2 files
    0.36
    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%
    42%
    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.311
    Real PR Conversation Timeline
    1 comments
    "Review active on #9701"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 35.5% (MEDIUM) · Higher = larger blast radius
    35.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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 20.3% · Safe to merge
    20.3%