Repository navigation
fix(artifacts): preserve physical failures during cancellation - #9641
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
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
An abort arriving with a failed descriptor read or identity check could replace a physical I/O failure with cancellation. This hid the original failure in the iNES reader and in inventory classification and root hashing.
Convert only the file owner's tagged cancellation through the existing artifact normalizer. Preserve physical failures and source-change handling; ordinary stream cancellation still retains the caller's exact reason. The reader supplies its cancellation mapping to the shared chunk reader rather than inspecting later signal state after a rejection.
Validation and scope
Real descriptor fixtures reproduced EIO-plus-abort failures in the reader's region read and stat, and in inventory classification and root hashing. The inventory region workflow also retains the physical failure. All 23 focused boundary tests passed under Node 24.22.1, including existing cancellation controls and an opaque caller-reason control. Typecheck, scoped formatting and diff checks passed.
No emulator, firmware or target execution. Extraction's region propagation has no equivalent post-read blanket catch; its pre-admission realpath/open paths and .NET catch sites remain candidates requiring separate producer-level verification and were not changed. No new authority, provider, dependency, installer, public schema or generated metadata. Maintainer scope decision is not applicable to this existing error-ownership repair.
Author readiness