The two boot paths have drifted: seven untracked workers and two unset daemonAPI fields #189

Merged
claude merged 2 commits from task/639-the-two-boot-paths-have-drifted-seven-un into master 2026-08-06 21:54:13 +02:00

2 Commits

Author SHA1 Message Date
claude 896c32882a assert the two paths wire the same set (V-639)
Without this it drifts again on the next wiring line: every daemonAPI field
set on a fully wired deployment, and the worker set by name at the full set and
at the floor.
2026-08-06 23:33:26 +04:00
claude 73441bcc6c one boot path for the workers and the API (V-639)
run() wired the daemon twice and the lists drifted: seven workers started
untracked on the unlock path, a shadowed WaitGroup hid the voice server, and
nexus and getMCPServers were never set after a passkey unlock.

newDaemonAPI and startBackground in cmd/mavend/boot.go are the one place both
paths go through now. backgroundWorkers is the pure list behind the second, so
the set is assertable without a running daemon.
2026-08-06 23:33:26 +04:00