Skip to content

fix(process): retain cleanup ownership through input finalization - #10095

Merged
morluto merged 1 commit into
mainfrom
fix/process-input-cleanup-ownership
Nov 11, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/process-input-cleanup-ownership

Conversation

@morluto

@morluto morluto commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Summary

Process capture and its JSON input can retain independent resources after cleanup fails. The CLI previously attributed a mixed failure to only the input lease, and a late cancellation after a prior failure could disappear. Retain the capture owner through input finalization, preserve completed Evidence or the prior failure through retry, and report cleanup authority only when its exact owners are known. JSON input records its bound descriptor leases at the read owner.

Validation

  • On the merged fix(json): preserve cancellation through input finalization #10022 head, owning-boundary regressions reproduced lost late cancellation and incomplete cleanup lease attribution.
  • Two filesystem boundary suites passed 49 tests, including real retained descriptors, independent process-scope leases, transient cleanup retries, late cancellation, and Evidence assembly failure.
  • npm run check:ci:fast passed.
  • Process capture uses controlled fixtures; no real target process was executed.

Author readiness

Human owner:

  • 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 11, 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-11T10:36:59.160149Z 17bb7a9 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 84041ff into main Nov 11, 2026
7 checks passed
@morluto
morluto deleted the fix/process-input-cleanup-ownership branch November 11, 2026 10:37
@morluto morluto added area: runtime Process capture and runtime observation 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: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant