← Back to Pull requests

PEP Provider - VirtualEnv Recommendation #93

Closed
DEKHTIARJonathan closed this pull request without merging on Sep 28, 2026 13:19 UTC
View on GitHub
DEKHTIARJonathan DEKHTIARJonathan commented on Sep 25, 2026 09:54 UTC
Author

Adjustments to follow better: https://peps.python.org/pep-0517/#recommendations-for-build-frontends-non-normative

We could almost copy/paste the entire section to be fair. But at the very minimum we need this

@warsaw @emmatyping : I guess quoting PEP 517 inside the PEP is not really something people appreciate. Do you think it would be more appropriate to quote/copy the entire paragraph (with reference) from 517 here ?

Diff: 6 lines (+4 / -2) across 1 files Reviewer: mgorny Review duration: 4525m
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.15) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.15 · 6 lines diff across 1 files
0.15
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 2 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
83%
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.116
Real PR Conversation Timeline
6 items
read-the-docs-community[bot] read-the-docs-community[bot] commented on Sep 25, 2026 09:57 UTC
Bot

<!-- readthedocs-1176979 -->

Documentation build overview

📚 wheelnext-peps | 🛠️ Build #34755844 | 📁 Comparing dc8774fc7d546b8caf5141e1b07e23437e881d45 against latest (344e58976964e61bc206c38cc3e81742b599b5f4)

<kbd> &nbsp; 🔍 Preview build &nbsp; </kbd>

<details>
<summary>51 files changed · <code>+</code> 6 added · <code>±</code> 45 modified</summary>
<br>

+ Added

  • pep-0845/index.html

  • pep-0846/index.html

  • pep-0847/index.html

  • pep-9999/index.html

  • pep-0825/appendix-metadata-consistency/index.html

  • pep-9999/appendix-variant-json-schema/index.html
  • ± Modified

  • index.html

  • numerical/index.html

  • pep-0000/index.html

  • pep-0426/index.html

  • pep-0501/index.html

  • pep-0534/index.html

  • pep-0545/index.html

  • pep-0585/index.html

  • pep-0604/index.html

  • pep-0654/index.html

  • and 35 more...
  • </details>

    Copilot Copilot commented on code on Sep 25, 2026 09:57 UTC
    Code Review
    peps/pep-9999.rst:1
    @@ -143,8 +143,10 @@ namespace:
     
     5. The tool SHOULD provide a way for the user to permit installing
        specific provider packages. It MUST NOT install or use any provider
    -   packages that are not considered trusted. It SHOULD use an isolated
    -   virtual environment while installing provider plugin packages.
    +   packages that are not considered trusted. It SHOULD create one isolated
    +   virtual environment per unique (variant provider package name, version)
    +   pair. Different provider packages use separate environments; two versions
    +   of the same provider package also use two separate environments.

    The (package name, version) pair is not the provider identity defined above: this PEP says that the full dependency strings together with plugin-api uniquely identify a provider (lines 98–100). Two metadata entries can therefore use the same provider package/version while requiring incompatible additional packages or different API endpoints; sharing one environment would make one provider run with the other's dependencies (or make one impossible to install). Key the environment by the complete provider identity, or otherwise preserve isolation for distinct requires/plugin-api combinations.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Sep 25, 2026 09:57 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    Copilot review overview

    🟡 Changes recommended

    Environment identity must account for complete provider requirements and plugin API, not only package/version.

    Get a fresh assessment by requesting another Copilot review.

    Review effort: Lite
    Findings: 1 <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture>

    <details open>
    <summary><strong>Open (1)</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> [Key provider environments by complete identity, not package and version](#discussion_r4103374564) · New

  • </details>

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    Updates PEP 9999 to recommend isolated virtual environments for provider plugins.

    Changes:

  • Recommends separate environments for provider package/version combinations.

  • Clarifies provider environment isolation.
  • | File | Description |
    |---|---|
    | peps/​pep-9999.rst | Updates provider installation recommendations. |
    </details>

    ---

    💡 <a href="/wheelnext/peps/new/pep-providers?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=webui#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>

    mgorny mgorny requested changes on Sep 25, 2026 13:34 UTC
    Changes Requested Reviewer

    I don't think this is a valid requirement, and it's poorly justified (in fact, no justification is given in the PEP in this change). The security story says we avoid dependencies with few exceptions, so conflicts are unlikely. Even if that wasn't the case, we require this to work without venv (or more precisely, in the single venv that tools create when building packages), hence people can't introduce conflicting dependencies.

    rgommers rgommers requested changes on Sep 26, 2026 08:54 UTC
    Changes Requested Reviewer

    This seems wrong indeed. What if you have a whole stack like torch <- vllm <- etc <- etc. that all need the same provider? An installer can know beforehand what provider version is needed; this requirement would force it to create four isolated envs with the same copy of the provider.

    This is better left up to the tools.

    Reviewers
    Assignees
    DEKHTIARJonathan DEKHTIARJonathan
    Labels
    risk: low confidence: 83.6% 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: 14.6% (LOW) · Higher = larger blast radius
    14.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: 83.6% · Lower = rushed or shallow review
    83.6%
    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.4% · Safe to merge
    2.4%
    Repository