Repository navigation
fix(boot): spawn the airc daemon from the home that owns the socket — not the repo CWD - #3697
Merged
Merged
Conversation
… not the repo CWD
`continuum reboot` on current airc dies at boot with:
airc: refusing to serve a socket this scope does not own.
--home <repo>/.airc
--socket ~/.airc/runtime/airc-machine-*.sock
and the core comes up with "no transport: no rooms, no resident citizens".
Measured on the 5090 node 2026-09-04, first boot after the Windows build
unlock.
Root cause: `boot_plan.rs::step_airc_daemon` runs `airc daemon` with no home
and the CONTINUUM REPO as CWD. airc derives scope from the working directory,
so the daemon presents the repo-scope identity to the machine-account socket
— and airc's ownership guard (their #1347/#1352/#1353 family) rightly refuses
it: a daemon under a foreign identity hands every caller the wrong peer_id,
the wrong rooms, and the wrong advertised endpoint.
This is the THIRD spawn-site instance of that bug class. airc ended it
internally by making the owning-home a newtype the spawn API requires — a
compile error instead of a night of debugging. This call site lives outside
airc where the type cannot reach, so the rule is enforced the only way
available here: spawn with CWD = the OS home dir, which IS the home that owns
the socket.
When neither USERPROFILE nor HOME resolves, boot now refuses to spawn at all,
loudly — a daemon under the wrong identity is strictly worse than no daemon,
and the old behavior was to create exactly that on every fresh checkout.
Validated locally (first box able to): cargo check -p continuum-core --lib
clean; the failing reboot is the reproduction and the next reboot on this
node runs this fix.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
`continuum reboot` on current airc dies at boot:
…and the core comes up with no transport: no rooms, no resident citizens. Measured on the 5090 node today, first boot after the Windows build unlock. Every repo user on current airc hits this.
Root cause:
boot_plan.rs::step_airc_daemonrunsairc daemonwith no home and the continuum repo as CWD. airc derives scope from the working directory, so the daemon presents the repo-scope identity to the machine-account socket — and airc's ownership guard (their #1347/#1352/#1353 family) rightly refuses: a daemon under a foreign identity hands every caller the wrong peer_id, rooms, and advertised endpoint.This is the third spawn-site instance of that bug class. airc ended it internally with a newtype the spawn API requires — a compile error instead of a night of debugging. This call site lives outside airc where the type can't reach, so the rule is enforced the only way available here: CWD = the OS home dir, which is the home that owns the socket.
When neither
USERPROFILEnorHOMEresolves, boot now refuses to spawn at all, loudly — a daemon under the wrong identity is strictly worse than no daemon, and the old behavior manufactured exactly that on every fresh checkout.Validated locally (first box able to):
cargo check -p continuum-core --libclean; the failing reboot is the reproduction, and this node's next reboot runs the fix.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc