Skip to content

Fix coordinator LaunchAgent cleanup for isolated homes - #363

Merged
yansfil merged 2 commits into
mainfrom
fix/qa-lifecycle
Oct 3, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/qa-lifecycle

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: #318, #213

Summary

  • Fixture teardown confirms each owned candidate exited before stopping its private daemons and deleting HOME.
  • A live candidate or shutdown failure retains its home's recovery state and reports the path and next action.
  • hcoord daemon uninstall unloads the current home's exact LaunchAgent and removes its plist, retaining conversation data.
  • Automatic test teardown and Node-managed worker exit clean private resources when local test cleanup was skipped.

Review

  • Decision: explicit uninstall retains a manual-stop marker so a later kit pass does not reinstall the service.
  • Files to watch: desktop/e2e/fixture.ts records candidates by HOME; rejected close cannot erase live recovery state.
  • Files to watch: support/launchd.ts confirms absence by status 113 and retains plists on uncertain or failed unloading.
  • Independent re-review confirmed that rejected close preserves a live candidate HOME until its recorded exit.

Evidence

  • The exact-source reproduction now preserves a live candidate's HOME, then deletes it after confirmed exit.
  • Five boundary regressions prove rejected close, confirmed exit, per-home recovery, pending launch and the candidate cap.
  • Full web lane passed: typecheck, lint, build, 52 coordination unit, 36 CLI, 864 web and 99 desktop unit tests.
  • Three desktop unit platform skips remain explicit; design and workstation/artifact gates passed.
  • Eleven focused private-home checks passed: running/stopped cleanup, failed test/worker exit, app lifetime and migration.
  • All required CI and design checks passed at the corrected head; independent delta review found no remaining blocker.
  • Foreground, packaged-app and SSH checks were not run locally; no visible UI behavior changed.
  • The worker-exit check uses process.exit(23); SIGKILL, OOM and host loss cannot run the Node exit callback.
  • macOS launchd checks do not prove Windows/Linux service behavior; no operator service was changed.

@yansfil
yansfil marked this pull request as ready for review October 3, 2026 19:17
@yansfil
yansfil merged commit eab7c1f into main Oct 3, 2026
21 checks passed
@yansfil
yansfil deleted the fix/qa-lifecycle branch October 3, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant