Skip to content

fix(artifacts): preserve physical failures during cancellation - #9641

Merged
morluto merged 3 commits into
mainfrom
audit/ines-current
Nov 9, 2026
Merged

morluto merged 3 commits into
mainfrom
audit/ines-current

Conversation

@morluto

@morluto morluto commented Nov 9, 2026

Copy link
Copy Markdown
Owner

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

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T12:50:53.716476Z edceaea PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto
morluto merged commit 3c3d405 into main Nov 9, 2026
7 checks passed
@morluto
morluto deleted the audit/ines-current branch November 9, 2026 12:56
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant