← Back to Pull requests

Avoid repeating stable supporting pointers in file context deltas #9687

Open
unknown opened this pull request with 206 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 30, 2026 23:52 UTC
Author

Problem and outcome

File-backed context deltas were resending the entire unread supporting-material index on every Turn, including when the addresses were unchanged. This adds recurring transport cost to long-running agents and file-based hosts.

The delta keeps the current supporting source and read obligations in view. Its exact pointer list uses the existing lossless codec. A caller with no usable baseline can select the current index through this capture's recovery reader, then use its source digest to retrieve the required material. Unknown index shapes retain complete delivery. Restoration checks the exact current context, including for historical whole-index deltas.

Validation

  • Matched 536-pointer capture: stable file delta 91,865 → 4,753 bytes. The workspace transition, where the pointer set largely changed, measured 307,719 → 307,689 bytes. Both initial selected views delivered 62,436 bytes. These are transport measurements. Real model cost and cross-host acceptance still require qualification.

  • Exact-head wheel in an isolated environment recovered the current index and selected material after the earlier capture was removed, restored the complete context, and rejected an invalid selector.

  • Typecheck and 74 scoped TypeScript tests. 485 focused Python regressions, seven exact-head CLI reachability cases, and ten bundled Codex App/CLI regressions using deterministic local inference. The stable-list test fails against the previous emitter.

  • Standard premerge passed five direct and fourteen selected checks. The existing maintainability advisory for loopx/status.py reproduces at base and head.
  • Diff: 206 lines (+154 / -52) across 2 files Reviewer: loopx-agent Review duration: 268m
    All Vouch review confidence checks passed
    Residual risk 0.21 = 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 · 206 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.319
    Real PR Conversation Timeline
    1 comments
    "Review active on #9687"
    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: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    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.7% · Safe to merge
    20.7%