← Back to Pull requests

feat(py-rattler): expose virtual package detectors #2864

Merged
Hofer-Julian merged 72 files (13514 lines) on Oct 05, 2026 13:56 UTC
View on GitHub
Hofer-Julian Hofer-Julian commented on Sep 28, 2026 15:09 UTC
Author

<!-- title: feat(py-rattler): expose virtual package detectors -->

Description

  • Expose registration discovery and detector execution through py-rattler.

  • Accept a Python consent callback with channel-wide decisions and return detected values, failures and skipped registrations.

  • Expose injectable detector environment providers and channel trust configuration.

  • Make detector results available to Python callers without installing detectors into the target environment.
  • How Has This Been Tested?

    Detector integration smoke: 10 passed through pixi run cargo nextest. Workspace formatting and clippy passed locally.

    AI Disclosure

  • This PR contains AI-generated content.

  • - [x] I have tested AI-generated content in this PR as part of the completed stack.
    - [x] I take responsibility for any AI-generated content in my PR.

    Checklist:

  • I have performed a self-review of my own code.
  • Diff: 13514 lines (+12754 / -760) across 72 files Reviewer: baszalmstra Review duration: 10006m
    All Vouch review confidence checks passed
    Residual risk 0.39 = Change Risk (0.77) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.77 · 13514 lines diff across 72 files
    0.77
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    48%
    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.400
    Shallow Review Depth shallow_review_depth
    0.350
    Mass File Touch mass_file_touch
    0.080
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    2 items
    baszalmstra baszalmstra approved these changes on Oct 02, 2026 08:55 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    Hofer-Julian Hofer-Julian
    Labels
    risk: medium confidence: 48.5% 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: 76.5% (HIGH) · Higher = larger blast radius
    76.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: 48.5% · Lower = rushed or shallow review
    48.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: 39.4% · Moderate risk
    39.4%
    Repository