Repository navigation
fix(install): a positional install reports only denials inside its selection - #4542
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit intoNov 21, 2026
Conversation
…lection Dependencies refused before fetch are filtered to the install's selection (the same subtree filter the resolved dependencies get), so a denied manifest dependency the command did not select neither appears in a dry-run preview nor blocks the install. A selected denied package, or one it brings in, is still refused. apm-spec-waiver: selection scoping of an existing refusal; verdict unchanged for selected deps Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 21, 2026 02:21
Daniel Meppiel (danielmeppiel)
merged commit Nov 21, 2026
1efae51
into
train/0.37-final-2
3 checks passed
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-s42-prefetch-selection
branch
November 21, 2026 02:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow-up to #4534. A positional install (
apm install ./pkg, with or without--dry-run) reported, and was blocked by, denied manifest dependencies it did not select: the pre-fetch policy refusal recorded every dependency the resolver walked, and the policy gate appended all of them after the positional selection.install/phases/policy_gate._with_prefetch_denialsnow applies the same selection filter (selected_subtree_dependenciesoverctx.only_packages) to those refusals. A selected denied package, or a dependency it brings in, is still refused.Issue and approved scope
Issue: Refs #4092
Human scope-approval comment: private release coordination with the 0.37 steward.
Does this PR complete the issue, or what remains? One hardening item under the 0.37 trust and integrity umbrella; the umbrella stays open.
Type of change
Testing
tests/integration/test_policy_install_e2e.py::TestI10DryRunDenied: the existing positional dry-run cell and a new positional real-install cell both fail on the parent (e3d6977) and pass here. Through the host guard, no xdist:test_policy_install_e2e.py,tests/lifecycle/security/test_policy_deny_before_fetch.py,test_replacement_source_consumers.py,tests/unit/install/phases: 317 passed. ruff 0.15.12, complexity ratchet and assertion-quality check: clean.