← Back to Pull requests

Add non-authoritative shim source inspector and shadow resolver [databricks] #16425

Closed
unknown closed this pull request without merging on Oct 24, 2026 05:33 UTC
View on GitHub
unknown unknown commented on Oct 19, 2026 22:16 UTC
Author

Related to #15923

Description

Add a fast ./build/shimpler sources --target <target> query for annotated Scala and Java shim sources. It can print physical paths, explain candidate source-parent provenance, or emit JSON and NUL-delimited paths.

Add a shadow resolver that derives inheritance candidates from current exact annotations and checks that they select the same physical sources. Non-contiguous membership and versioned package paths stay exact. This does not change Shimplify generation or permit annotation migration yet; wiring generation to the resolver and capturing pre-conversion oracles remain follow-up work.

The check reports an existing ambiguity for 400db173: two RapidsErrorUtils.scala variants claim the same logical source. All other current targets passed the repository-wide shadow comparison.

Validation: 29 tests pass. Clean multi-shim dist builds passed for Scala 2.12 (358/359) and Scala 2.13 (401/402). The inspector matched the generated sql-plugin source manifests for all four targets. Spark master 500 was queried but not built.

AI assistance was used to develop and test this change.

Checklists

Documentation

  • Updated for new or modified user-facing features or behaviors

  • No user-facing change
  • Testing

  • Added or modified tests to cover new code paths

  • Covered by existing tests

  • Not required
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required — this adds an explicit developer query and shadow check only; Spark runtime and source generation are unchanged.
  • Diff: 207 lines (+155 / -52) across 2 files Reviewer: gerashegalov Review duration: 6196m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 207 lines diff across 2 files
    0.60
    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.319
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #16425"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 59.6% (MEDIUM) · Higher = larger blast radius
    59.6%
    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: 23.5% · Safe to merge
    23.5%