Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] SchedulerWatch sends a false 'Scheduler frozen' text after every normal reboot:…

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

What happened

SchedulerWatch sends a false 'Scheduler frozen' text after every normal reboot: launchd login burst of 'domain in on-demand-only mode' lines counts as frozen although no job is pended

Summary

SchedulerWatch texts "Scheduler frozen" after every normal reboot.

check() in LIFEOS/TOOLS/SchedulerWatch.ts sets frozen: logHits > 0, where logHits counts launchd lines containing "domain in on-demand-only mode" over the last 6 minutes. When the user logs in (auto-login here), launchd's gui/ domain logs a burst of these lines for Apple's own agents (com.apple.notificationcenterui.agent, com.apple.MenuBarAgent, ...) while the domain starts up. On a clean reboot we saw 78 such lines, all in the boot minute; pended was empty (no LifeOS interval job stuck), yet the watcher sent the "Scheduler frozen" text one minute after boot ("0 LifeOS jobs are stuck ... Frozen since "). Six minutes later the check returned healthy on its own.

Expected: a normal boot does not count as a freeze. Possible fixes: require at least one pended LifeOS job (pended.length > 0) before texting, or ignore log hits inside the first few minutes after kern.boottime.

macOS 27 (Darwin 27.0.0), Apple Silicon Mac , auto-login on.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

IvanLeontev-stack avatar Nov 01 '26 05:11 IvanLeontev-stack

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

Thanks @IvanLeontev-stack. SchedulerWatch now reports a freeze only when launchd's "on-demand-only mode" lines and at least one pended LifeOS interval job are both present, so the burst of those lines for Apple's own agents after a login no longer texts "Scheduler frozen". If the log hits are there but a launchctl probe failed, the result is "unknown" (exit 3), not healthy and not frozen. Tests cover a boot burst with nothing pended, a real freeze, a pended job without log hits and the failed-probe case. This lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler