Repository navigation
[2026.9.36] preserve buffered cleanup uncertainty - #187273
Conversation
Preserve canonical cleanup uncertainty in buffered command errors while retaining command output and termination status. Fixes #184237. Adapt regression placement to the release branch test harness and add ordinary nonzero-exit coverage; preserve only buffered command cleanup semantics. Upstream-source: 95adab3 (cherry picked from commit 95adab3) Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesPreserves canonical cleanup uncertainty in buffered command results while retaining output, termination details, and original error causes. Example: A Linux command writes stdout and stderr, then terminates itself with SIGTERM.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored backport open: the release branch still needs the upstream repair, and no introduced production defect was found; the author explicitly keeps it draft. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared buffered process adapter accepts argv and execution options, delegates lifecycle decisions to the command runner, and returns captured bytes, status, and errors to core and plugin callers. flowchart LR
A[Core or plugin caller] --> B[Buffered command adapter]
B --> C[Command runner]
C --> D[Spawn and cleanup owners]
D --> E[Child process]
C --> B
B --> F[Output status and canonical error]
Technical reviewBest possible solution: Retain the focused shared-adapter repair and finish the author’s selected release validation before advancing the draft. Do we have a high-confidence way to reproduce the issue? The release runner supplies uncertainty that its buffered adapter drops, and the linked report documents a real Linux self-SIGTERM trigger; this read-only review executed no target code. Is this the best way to solve the issue? The production patch is the smallest complete repair: translate the existing runner-owned fact at the existing adapter boundary while retaining canonical identity and original causes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e94b0988ea1. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +116. Total +126 across 4 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 29, 2026, 12:29 AM ET / 04:29 UTC. |
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Retain real runner and spawn exports while overriding process execution seams. Fixes the new closed-mock ratchet entries without changing assertions or baseline allowances. Co-authored-by: RomneyDa <[email protected]>
Source and scope
Validation
PASS: node scripts/test-projects.mts src/process/exec-buffered-cleanup.test.ts (5/5) on this exact release base. Covers ordinary/uncertain completed results, buffered output and exit metadata, tagged startup failures, canonical error identity, and cause retention.
NEGATIVE CONTROL: replacing only exec.ts with exact unpatched release-base source produces 2 failures with 3 controls passing; patched bytes restored and verified clean.
PASS: scoped formatting check and git diff --check.
Broader exec/settlement suites were attempted, but are not accepted as green: early attempts failed shared subprocess-worker compilation with unavailable/mismatched local dependencies; corrected broader builds were interrupted before a terminal verdict and remain a gate.
Validation used own local node_modules link directories, release-pinned TypeScript (and fs-safe for rollback), and borrowed installed tools (Vitest 5.0.5); no dependency or toolchain source was changed.
Remaining gates — draft only
Not ready for review, merge, or release. No release shipped.