Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Installer: update into an alternate `--config-root` / `HOME` still reloads the real user's `com.lifeos.workflows-dispatcher` launchd job

Open IvanLeontev-stack opened this issue 1 month ago • 1 comments

Version: LifeOS 8.761.0.

What is broken: InstallAll in update mode always runs RefreshStatusline. When the (copied) settings.json of the target root wires the shipped statusline, DeployComponents runs the workflows schedule-install for statusline-refresh, which does launchctl bootout and bootstrap on gui/<uid> for the dispatcher job. The target root and HOME are only used for file paths. The effect lands on the live user domain, so a trial install into a copy of a config directory reloads the real scheduler.

Steps: copy an installed config directory to a scratch location, set HOME and --config-root to it, run InstallAll.ts --yes in update mode, and watch launchctl print gui/$(id -u)/com.lifeos.workflows-dispatcher change.

Expected: an alternate root does not touch the real launchd domain, or the step is skipped with a message. The workflow engine already has this contract (LIFEOS_WORKFLOWS_DIR, schedule-install.ts:44-64).

Where: LifeOS/install/skills/LifeOS/Tools/InstallAll.ts:232, DeployComponents.ts:262-265, :344, :355; LifeOS/install/LIFEOS/WORKFLOWS/engine/schedule-install.ts:292, :295.

Suggestion: when configRoot or HOME differs from the real one, either pass the sandbox overrides (LIFEOS_WORKFLOWS_DIR plus _LAUNCH_AGENTS, _SERVICES, _LAUNCHCTL) or skip the step. A --no-services flag on update would also do.

Not reproduced by running it, to avoid reloading the reporter's own job; found by reading the call chain.

IvanLeontev-stack avatar Oct 29 '26 10:10 IvanLeontev-stack

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @IvanLeontev-stack. The statusline-refresh and derivedsync schedule installs now skip when the install's home is not the account's real home (os.userInfo().homedir), because schedule-install bootstraps into gui/ whatever HOME says. A trial install into a copy of a config directory now reports "not scheduled: is not this account's home" instead of reloading com.lifeos.workflows-dispatcher. An install into the real home, including a relocated config root under it, schedules as before. Tests cover the skip, the dry run, the equal-home case and the default check. I did not run it against a live launchd. This lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler