Repository navigation
fix(process): retain CLI input cleanup ownership - #10144
wunianze666-netizen wants to merge 2 commits into
Conversation
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. |
|
Superseded by merged #10147 (6b2f991), which includes the original fix and authorship. Verified the latest PR head, including its main integration, has byte-identical ProcessCli, processCommands, and processCliFileInput files to merged main. The application retains the typed input-cleanup error and exact descriptor leases; both CLI commands project only at delivery. Validation: 373 passed / 3 host-specific skips across 20 focused suites, typecheck/lint passed, and actual compiled capture-process and compare-process-captures both emitted cleanup_incomplete under a controlled input-close failure. Hosted CI remains separate from those local results. |
Summary
Keep the typed Process CLI input failure and its live file cleanup owner until the CLI projects the error.
Problem and expected behavior
After 4821aaf, final input cleanup projected its typed error to a JSON object inside the application helper. A caller received the cleanup diagnostics but lost the live error and its descriptor retry leases. Main's Process CLI file suite reported 11 failures covering retained descriptors and combined ownership. Failed shard
Change and scope
Throw the already-classified adapter error at the application boundary. The two direct CLI commands project it at delivery. When the earlier failure has incomplete cleanup authority, preserve the independently known input owner in the cause chain without claiming it covers the whole failure.
Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): existing CLI error schemas.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
81b305bd1aeb778ec90e2066ba391a93c966ec0areproduced the open-file owner assertion in one selected test. The same test passes after the change. The fixture still exercises an actual opened descriptor and injected close failure.compare-process-capturesinvocation returned the samecleanup_incompleteJSON and exit status 1 on both revisions. The isolated input-close fault recorded three attempts on each.For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
processCliFileInput.test.tsandcliLogging.test.tsreported 48 passed (48).git diff --checkpassed.Compatibility, safety, and release
Author readiness
Human owner: @wunianze666-netizen
Before merge
type(scope): outcome.