Repository navigation
fix(json): preserve cancellation through input finalization - #10022
Merged
Merged
Conversation
morluto
marked this pull request as ready for review
November 11, 2026 08:43
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
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
JSON-backed CLI workflows could misclassify streamed cancellation as I/O failure, or return success after cancellation during final input-resource cleanup.
Normalize streamed cancellation once in
JsonInputFile, requiring the exact private cancellation fact and only current-operation cancellation leaves. Keep mixed or unprovable error graphs unchanged and preserve physical-read precedence. Keep command callbacks as Evidence or typed failures through resource cleanup, then project CLI JSON once. Complete successful Evidence after input-resource close through the existingcompleteProviderEvidenceowner, retaining completed facts on late cancellation.Evidence and validation
0e88049d: 2 failed, 8 passed. Real Node pipeline controls cancel a pending member consumer before and after observed descriptor EOF and check exact opaque caller-reason identity.1ba1f3d7: 2 failed, 1 healthy-close control passed. A real plan-admission error disappeared when a retained descriptor failed final close; both cancellation variants now preserve that exact error and the descriptor retry lease.node scripts/run-typescript.mjs --noEmit— passed.Existing process tests passed before the stream repair; they are working controls, not its fail-before proof. Current-main producer identity and live thematic PR file lists were checked for omitted/duplicate repairs. No linked issue: this completes two related audit omissions.
No new public API, provider, target execution, installation, or scope authority. No runtime build, compiled CLI/MCP gate, or global gate ran; checks import owning source. No production test seam was added.
4367c6e5c1: two real-descriptor mixed final-cleanup regressions failed before the fix and pass afterward; the two changed boundary suites passed 42 tests, andnpm run check:ci:fastpassed. The completed plan Evidence, exact late cancellation reason, prior typed failure, and cleanup retry lease remain available when input close fails.Author readiness
Human owner: