← Back to Pull requests

Update PURL mappings for conda-forge packages #325

Open
purl-associator-app[bot] opened this pull request with 18 lines diff across 1 files
View on GitHub
purl-associator-app[bot] purl-associator-app[bot] commented on Sep 25, 2026 18:05 UTC
Author

This PR updates PURL mappings for 1 conda-forge package — 1 approved.

  • capstone v5.0.9 — approved auto guess · upstream: github.com/capstone-engine/capstone
  • Diff: 18 lines (+18 / -0) across 1 files Reviewer: pb01ka Review duration: 36391m
    All Vouch review confidence checks passed
    Residual risk 0.02 = Change Risk (0.21) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.21 · 18 lines diff across 1 files
    0.21
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.92 · 5 substantive comment(s)
    0.92
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    90%
    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.176
    Real PR Conversation Timeline
    7 items
    wolfv wolfv commented on Sep 28, 2026 13:32 UTC
    Contributor

    Thanks! One doubt before merging: this changes capstone's primary purl from pkg:github/capstone-engine/capstone to pkg:pypi/capstone.

    The conda-forge package is built per Python version (py314… builds), so PyPI is defensible. But it also ships the C library (libcapstone), and most capstone advisories/CVEs are filed against the upstream C project. For vulnerability matching, keeping the GitHub purl as primary and PyPI as the alternative might work better. Happy to go either way; what was the reasoning for flipping it?

    pb01ka pb01ka commented on Sep 28, 2026 15:42 UTC
    Contributor

    For vulnerability matching, keeping the GitHub purl as primary and PyPI as the alternative might work better.

    Considering that the associated capstone-feedstock's meta.yaml uses Github releases as source, so I agree, we should keep Github purl as primary.

    pb01ka pb01ka commented on code on Sep 28, 2026 15:43 UTC
    Code Review
    mappings/contributions/2026-09-25T18-05-35-319Z--pb01ka--je2jt.json:1
    @@ -0,0 +1,18 @@
    +{
    +  "schema_version": 1,
    +  "title": "Update PURL mappings for conda-forge packages",
    +  "author": "pb01ka",
    +  "author_name": null,
    +  "timestamp": "2026-09-25T18:05:35.319Z",
    +  "packages": {
    +    "capstone": {
    +      "purl": "pkg:pypi/capstone",
    +      "type": "pypi",
    +      "namespace": null,
    +      "pkg_name": "capstone",
    +      "alternative_purls": [
    +        "pkg:github/capstone-engine/capstone"
    +      ]

        "capstone": {
          "purl": "pkg:github/capstone-engine/capstone",
          "type": "pypi",
          "namespace": null,
          "pkg_name": "capstone",
          "alternative_purls": [
            "pkg:pypi/capstone"
          ]
    

    pb01ka pb01ka requested changes on Sep 28, 2026 15:44 UTC
    Changes Requested Reviewer

    Requested changes.

    pb01ka pb01ka commented on code on Oct 05, 2026 15:05 UTC
    Code Review
    mappings/contributions/2026-09-25T18-05-35-319Z--pb01ka--je2jt.json:1
    @@ -0,0 +1,18 @@
    +{
    +  "schema_version": 1,
    +  "title": "Update PURL mappings for conda-forge packages",
    +  "author": "pb01ka",
    +  "author_name": null,
    +  "timestamp": "2026-09-25T18:05:35.319Z",
    +  "packages": {
    +    "capstone": {
    +      "purl": "pkg:pypi/capstone",
    +      "type": "pypi",
    +      "namespace": null,
    +      "pkg_name": "capstone",
    +      "alternative_purls": [
    +        "pkg:github/capstone-engine/capstone"
    +      ]

    @wolfv A gentle reminder to apply this suggestion (I don't have the access to do so) and possibly merge this PR. It is as per your above comment. TY.

    wolfv wolfv commented on Oct 16, 2026 09:35 UTC
    Contributor

    Review: the capstone output really is the Python binding, so the PyPI identity is correct. However, replaying this PR produces purl: "pkg:pypi/capstone" with the old namespace: "capstone-engine" still present.

    The shared merger ignores namespace: null; the editor can subsequently rebuild this as pkg:pypi/capstone-engine/capstone. This is the same existing merge bug blocking #361. Fix namespace clearing for primary-coordinate changes and add a regression test before merging.

    Reviewers
    Assignees
    purl-associator-app[bot] purl-associator-app[bot]
    Labels
    risk: low confidence: 90.2% 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: 20.6% (LOW) · Higher = larger blast radius
    20.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: 90.2% · Lower = rushed or shallow review
    90.2%
    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: 2% · Safe to merge
    2%