Repository navigation
[2026.10.9] preserve buffered cleanup uncertainty - #187272
Conversation
Passive macOS Gateway stops now preserve an absent current-profile service definition without invoking uninstall, while explicit low-level ghost recovery remains available. Release adaptation: the 2026.10.8 backport of #180390 removed the absent-plist guard from GatewayLaunchAgentManager's disable path without main's follow-up, so every passive stop with no LaunchAgent plist ran `openclaw gateway uninstall` (mac validation: GatewayProcessManagerTests "pause preserves unretainable services" [absent]). Stable has no migration-pending custody or `.authority` wrapper, so the guard checks `custody.definition.plist` directly. Mac-only post-tag fix; npm, Docker and Linux bytes are unaffected. (cherry picked from commit cb10ec4)
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 changesPreserve native cleanup uncertainty in buffered command errors while retaining captured output and termination details. Example: A Node command writes stdout "out" and stderr "err", then terminates itself with SIGTERM.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored backport fixes a verified release-branch defect, and its production changes match the merged upstream repair; no definite production correctness finding was identified. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe buffered process adapter converts native runner outcomes into byte buffers, exit metadata, and errors consumed by core and plugin command callers. flowchart LR
A[Core and plugin callers] --> B[Buffered command adapter]
B --> C[Native command runner]
C --> D[Spawn and termination owners]
D --> E[Child process]
C --> F[Output and cleanup outcome]
F --> B
Technical reviewBest possible solution: Retain the existing native cleanup owner and propagate its uncertainty through the buffered adapter's existing error contract. Do we have a high-confidence way to reproduce the issue? The release source visibly drops runner cleanup metadata, and the upstream report demonstrates the native self-SIGTERM trigger; no target code was executed during this read-only review. Is this the best way to solve the issue? The production patch fixes the adapter boundary directly, reuses existing canonical classification, and preserves native cleanup policy, error identity, causes, and output. 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]>
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.