← Back to Pull requests

Compiler: fix five small lattice, cache and folding bugs #65334

Closed
unknown closed this pull request without merging on Nov 28, 2026 05:30 UTC
View on GitHub
unknown unknown commented on Nov 28, 2026 00:42 UTC
Author

Claude:

---

Five small Compiler fixes, one commit each, none needing a backport:

  • Union{} was not ⊑ a Const or PartialStruct on the optimizer lattice, which has no outer layer with that fast path. (write-up)

  • EscapeAnalysis x ⊑ₑ ⊥ was false for an x that is == ⊥ but not === ⊥, such as ignore_argescape(⊥). (write-up)

  • Const-prop results whose argument types end in Vararg were never found in the local cache, so each such call site repeated constant propagation. (write-up)

  • The max_union_splitting docstring said it bounds the number of split signatures; it bounds a cost, so one 20-member union still splits 20 ways. (write-up)

  • a <: b folded to false when a could be Union{} at run time, e.g. a field t::Type{<:Integer} holding Union{}. This loses false folds whose left side is a non-exact Type{<:T}, such as eltype(::Vector{<:Integer}) <: String, so it is the last commit and can be dropped if the old fold is intended. (write-up)
  • Written with Claude Code (Opus 5.5).

    Diff: 218 lines (+163 / -55) across 2 files Reviewer: IanButterworth Review duration: 288m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 218 lines diff across 2 files
    0.42
    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%
    56%
    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.322
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #65334"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 41.7% (MEDIUM) · Higher = larger blast radius
    41.7%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 18% · Safe to merge
    18%