Repository navigation
[2026.10.10-beta.5] preserve buffered cleanup uncertainty - #187271
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 changesBackports canonical cleanup-uncertainty errors while preserving buffered command output and termination details. Example: A Node command writes stdout 'out' and stderr 'err', then sends itself SIGTERM.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: the focused fix is on main but absent from the target release branch, and no introduced correctness defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared buffered command adapter accepts argv and execution options, delegates process lifecycle to the native runner, and returns captured bytes, status, and errors to core and plugin callers. flowchart LR
A[Core and plugin callers] --> B[Buffered command adapter]
B --> C[Native command runner]
C --> D[Process lifecycle owner]
D --> C
C --> B
B --> E[Bytes status and canonical error]
Technical reviewBest possible solution: Retain the focused shared-adapter backport and complete the draft's declared release-branch acceptance before landing. Do we have a high-confidence way to reproduce the issue? The target-base mapping demonstrably drops runner-owned cleanup uncertainty, and the original report supplies a real Linux self-SIGTERM reproduction; no target code was executed during this review. Is this the best way to solve the issue? The production change is the smallest complete repair: translate both existing runner outcomes at the shared adapter and retain rejected diagnostics as the cause. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e94b0988ea1; fix evidence: commit 95adab33e610, main fix timestamp 2026-10-26T09:05:51Z. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +113. Total +123 across 4 files. Added test files: 1. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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:30 AM ET / 04:30 UTC. |
Co-authored-by: RomneyDa <[email protected]>
…7271) 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]>
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.