feat(fleet): auto-enable units on install + drift recognizes wrapped runtimes #583

Merged
jason.woltje merged 1 commits from feat/fleet-phase3-enablement into main 2026-06-21 20:02:19 +00:00
Owner

Phase-3 real-agent enablement (fleet.ts only; install.sh untouched to avoid P4 collision). (1) mosaic fleet install now enables holder + agent units for boot-survival (non-fatal, --no-enable to opt out) + best-effort linger. (2) fleet ps drift detection uses a runtime->acceptable-commands map so real pi/codex agents (pane=node) read true, while the dogfood stub (pi claiming python3) still flags DRIFT. 10 new tests; canary-pi drift regression guarded.

Phase-3 real-agent enablement (fleet.ts only; install.sh untouched to avoid P4 collision). (1) mosaic fleet install now enables holder + agent units for boot-survival (non-fatal, --no-enable to opt out) + best-effort linger. (2) fleet ps drift detection uses a runtime->acceptable-commands map so real pi/codex agents (pane=node) read true, while the dogfood stub (pi claiming python3) still flags DRIFT. 10 new tests; canary-pi drift regression guarded.
jason.woltje added 1 commit 2026-06-21 19:43:16 +00:00
feat(fleet): auto-enable units on install + drift recognizes wrapped runtimes
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
10d65c4a10
- mosaic fleet install now enables mosaic-tmux-holder.service and
  mosaic-agent@<name>.service via systemctl --user enable after copying
  unit files; enabling is non-fatal (warns and continues on failure)
- best-effort loginctl enable-linger for logout survival
- --no-enable flag opts out of auto-enable
- detectDrift updated to use RUNTIME_ACCEPTABLE_COMMANDS map:
  pi/codex/opencode/claude accept 'node' (mosaic yolo wrapper);
  dogfood accepts python3/python; canary-pi (runtime=pi, pane=python3)
  still correctly flags DRIFT

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMoEx7hfdFGjUiCHuN1RRi
jason.woltje merged commit afcbbb302f into main 2026-06-21 20:02:19 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#583