Repository navigation
fix: retain address context cleanup failures - #8417
Merged
Merged
Conversation
This was referenced Nov 1, 2026
Contributor
[Medium impact] The reviewed changes appear safe to merge; no actionable defects were established. Summary
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Resolve document] --> B{Already cancelled?}
B -->|Yes| C[Return cancellation]
B -->|No| D[Start five facets]
D --> E[Record facet completions and caller cancellation]
E --> F[Wait for all facets]
F --> G{Decisive failure?}
G -->|No| H[Return address context]
G -->|Yes| I[Keep first failure and combine cleanup owners]
I --> J[Return failure with live cleanup resources]
Reviews (1) · Last reviewed commit: "fix: retain address context cleanup fail..." · Reviewed by Greptile |
This was referenced Nov 1, 2026
morluto
marked this pull request as ready for review
November 1, 2026 03:55
Codex Review SummaryThis 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. |
Entrpi
added a commit
to Entrpi/rea
that referenced
this pull request
Nov 1, 2026
Take main 7c755f2 (morluto#8432, morluto#8417). There were no text conflicts, but morluto#8432 replaced snapshotMatchesBinding with snapshotBindingMismatch, which returns undefined when a snapshot matches and otherwise names what differs. rawLoadCompatibility.test.ts now asserts the mismatch: a pre-morluto#7823 Ghidra snapshot differs only in its profile digest, and a snapshot of a different target names the target.
9 of 22 tasks
3 tasks done
coyoteXujie
pushed a commit
to coyoteXujie/rea
that referenced
this pull request
Nov 2, 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
inspect_address_contextcan return success or plain cancellation while one or more parallel facet failures report incomplete cleanup. Wait for every facet and preserve the first decisive failure and every still-owned cleanup resource, including when cancellation occurs during a late facet.Fixes #8416. This is a controlled application/MCP boundary reproduction; a real Ghidra or Kuna cleanup failure has not been reproduced.
Change and scope
The shared context workflow records facet completion order and observes its caller's abort while waiting for all five calls. It combines cleanup-bearing failures using the existing cleanup-error and dependency owners, keeps an earlier failure primary when cancellation arrives later, and retains the provider's own cancellation when it reports the same abort signal. It does not claim an owner was cleaned up until its lease reports success. Ordinary unavailable facets remain local; successful context results and output schema do not change.
The abort listener is removed after the facet work settles, and an already-cancelled request with an explicit document does not start facet work. This addresses an existing lifecycle boundary; it does not add provider mutation or process-control authority. #8415 separately tracks typed input diagnostics, and #8364 tracks retention of aggregate partial observations and contributing Evidence.
Evidence and regression coverage
6e9ee97a, both new MCP cases failed: two incomplete cleanup outcomes were reduced to a success, and cancellation with those same outcomes returned plaincancelledwithout their resources. The corrected boundary suite passes.Validation performed
npm run test:local -- src/application/AnalysisContextQueries.test.ts— 28 passed; six new cases failed against the base revision.npm run test:focused -- tests/boundary/mcp/addressContextBookmarks.test.ts— 9 passed; both new cleanup cases failed against base.npm run check:fast,git diff --checkand changed-file formatting check — passed.npm run verify:ghidra:compassed with real Ghidra on macOS arm64.Compatibility, safety, and release
A formerly successful or plain-cancelled response with incomplete cleanup now reports the unresolved cleanup. No schema or migration change. Real-provider cleanup failures, external process termination, CLI-specific behavior, Windows, and aggregate partial-observation persistence were not verified by this change.
Author readiness
Human owner:
Before merge
type(scope): outcome.