fix: validate contextual executable cache aliases - #502
Merged
Conversation
Unify relative and absolute cache identities while preserving short caller-facing aliases. Invalidate missing tracked executables and cover memory, disk, and fast-path behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Drop stale relative aliases when a disk cache is reused from another working directory while retaining validated short aliases. Keep the common absolute-cache-hit path free of current-directory lookups. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep Python's sys.executable for locator identification while updating only validated caller aliases. This restores macOS python.org classification without changing short user-facing alias selection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Performance Report (Windows) ✅
Legend
|
Test Coverage Report (Windows)
Coverage increased! Great work! |
Performance Report (Linux) ➖
Legend
|
Test Coverage Report (Linux)
Coverage increased! Great work! |
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 6, 2026 22:57
View session
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 6, 2026 23:37
View session
Performance Report (macOS)
Legend
|
Copilot started reviewing on behalf of
Karthik Nadig (karthiknadig)
August 10, 2026 18:46
View session
Karthik Nadig (karthiknadig)
marked this pull request as ready for review
August 10, 2026 19:10
Henning Dieterichs (hediet)
approved these changes
Aug 10, 2026
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.
Summary
Fix PET's executable-detail cache so relative and absolute aliases for the same interpreter share a stable cache identity without changing the intentionally short caller-facing alias.
sys.executablefor locator identificationValidation
cargo test --all./scripts/rust-precommit.ps1Fixes #448