Repository navigation
Conversation
Plastic-time
marked this pull request as ready for review
November 20, 2026 00:12
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. |
Contributor
[Medium impact] The reviewed changes appear safe to merge. SummaryThe PR keeps composite cleanup pending until every reported owner confirms release or every child without a cleanup record closes successfully.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Close child] --> B{Outcome}
B -->|Success| C[Confirm child's release record]
B -->|Pending typed rejection| D[Keep original error and owner]
B -->|Other rejection| E[Create cleanup error]
E --> F[Bind child's release record]
D --> G[Composite follows reported owners]
F --> G
G --> H[Retry children whose close has not succeeded]
Reviews (3) · Last reviewed commit: "fix(binary): settle synthesized close fa..." · Reviewed by Greptile |
morluto
enabled auto-merge (squash)
November 20, 2026 00:28
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.
Problem and outcome
Fixes #12591. When two child clients failed to close, confirming release for one could make the composite report cleanup complete while the other child still had an unconfirmed close. This happened when that child returned an error without a cleanup record.
Change and scope
The composite now records successful closes per child. An aggregate error follows the existing owners of reported cleanup resources and waits for a successful retry from each failed child without a cleanup record. Previously completed clients still skip the next close attempt. A retained aggregate keeps the small release records alive after retry.
Contract and boundary impact
The composite provider owns the child close results. Callers using the existing cleanup error can now observe an outstanding close even when the child supplied no resource identifiers. This changes cleanup reporting within the existing provider lifecycle. There are no new target operations, CLI or MCP schemas, package requirements, or Evidence formats.
Evidence and validation
On
d648cb2aa, 38 focused tests andcheck:fastpassed. Two additional regressions failed on the first reviewed head. The synthesized cleanup error now carries the child's release receipt, while a genuinely pending typed rejection retains its original cleanup owner. The controls cover exact rejection identity and selective retry.Windows, Node.js 24.22.1, npm 11.19.1. The tests exercise the production composite and close adapter with controlled child clients.
18f102d69, the 17 composite tests fromd648cb2aahad 4 failures and 13 passes. With the change, the four focused files passed 38/38.npm run test:local -- src/application/binary/CompositeProvider.test.ts src/providers/AnalysisClientCleanup.test.ts src/domain/analysisCleanupRelease.test.ts tests/composition/analysis-sessions/compositeProvider.test.tsnpm run checkpassed.External provider processes, end-to-end CLI/MCP sessions, and the full test suite were outside this local run.
Author readiness
Human owner: @Plastic-time
Before merge
type(scope): outcome.