fix(process)!: require current captures and preserve cleanup failures

Remove v3 capture conversion and require explicit executable identity and event journals. Preserve cancellation, execution diagnostics, snapshots, and cleanup outcomes from preparation through CLI delivery.
This commit is contained in:
morluto
2026-10-09 20:12:07 +08:00
parent abc4f47683
commit 2a7746998d
18 changed files with 419 additions and 353 deletions
+1 -5
View File
@@ -189,13 +189,9 @@ export const cleanupWindowsProcessTree = async (
const result = await host.terminateTree(rootPid);
return { cleaned: true, signaled: result === "terminated" };
} catch (cause: unknown) {
// The reason string is a pinned validation contract; keep it stable and
// do not interpolate the cause into caller-visible diagnostics here.
void cause;
return {
cleaned: false,
reason:
"Windows P0 process-tree termination failed; Job Object ownership is unavailable",
reason: `Windows process-tree termination failed for PID ${String(rootPid)}: ${errorMessage(cause)}`,
};
}
};