Repository navigation
fix(filesystem): preserve rejected prefix read failures - #10081
Merged
Merged
Conversation
morluto
marked this pull request as ready for review
November 11, 2026 09:36
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
A rejected native prefix read rechecked cancellation before rethrowing, so a concurrent abort replaced the original I/O fault with a cancellation error. Preserve the physical rejection directly and keep cancellation checkpoints around successful reads.
Extend the iNES reader boundary to verify exact physical errors, including when the same error object is the caller's abort reason. Use the existing
ArtifactFileOperationprimary/completion facts to check failed and completed prefixes across late abort, close success/failure, and cleanup retry. Replace the obsolete helper expectation that required masking I/O; retain short-read, EOF, and successful-read cancellation controls. No new wrapper, budget, configuration, or schema is introduced.This repairs existing filesystem/provenance behavior; no new target authority or scope decision is required. No separate issue is linked; the defect was independently confirmed from a prior audit finding on current main.
Evidence and validation
npm run test:focused -- tests/boundary/filesystem/inesCancellation.test.ts tests/boundary/filesystem/inesArtifact.test.ts: 67 passed. The official planner classified these as built tests; normal compile/skills prerequisites completed successfully (3 tasks, 1 cache hit).npm run typecheck, three-file formatting, and diff checks passed. Scoped lint: no errors; four test alias/parameter warnings remain.The earlier direct Vitest runs were exploratory source checks, not artifact/built verification. The official focused run above supplies the required verification. Fixtures use owned temporary cartridge bytes and real file descriptors with controlled failures; no emulator, analysis engine, foreign target execution, or compiled CLI/MCP workflow was exercised. Other-platform native behavior remains unverified.
Author readiness
Human owner: