← Back to Pull requests

Add artifact metadata infra & support recording and displaying installed sizes for packages #471

Closed
unknown closed this pull request without merging on Jun 16, 2026 11:38 UTC
View on GitHub
unknown unknown commented on Jun 16, 2026 08:32 UTC
Author

Also related to #464

Summary by Sourcery

Add support for computing and recording per-artifact installed sizes and surfacing this metadata through manifests and documentation.

New Features:

  • Introduce an admin CLI option to compute and report unpacked install sizes for distfiles and emit manifest-ready metadata comments.

  • Add install size metadata support to package manifest artifact declarations and canonical dump output.

  • Provide a utility for estimating install sizes for various archive and compressed formats without extracting them.
  • Enhancements:

  • Extend manifest validation and surface checks to touch new artifact metadata fields.

  • Document the new artifact-level metadata, including install_size, in the repository structure docs.

  • Perform minor code style cleanups in tests and utility modules.
  • Tests:

  • Add unit tests for install size computation across supported formats and failure cases.

  • Add format_manifest fixture manifests exercising artifact metadata round-tripping.
  • Diff: 125 lines (+93 / -32) across 1 files Reviewer: xen0n Review duration: 186m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.55 · 125 lines diff across 1 files
    0.55
    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.289
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.055
    Real PR Conversation Timeline
    1 comments
    "Review active on #471"
    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: 55.1% (MEDIUM) · Higher = larger blast radius
    55.1%
    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: 21.8% · Safe to merge
    21.8%
    Repository