eggup-service
Manager-neutral service-registration, ownership, state, and
lifecycle-snapshot model. No systemd/launchd/cron/Windows-SCM calls live
here; platform adapters implement the ServiceManager trait in later
milestones.
ServiceId/ServiceSpecidentify desired registrations with exact executable, arguments, and config evidence.Ownership::{Absent, Owned, Foreign, Unknown}reuses the canonical Eggup vocabulary: destructive manager operations are authorized only forOwned.LifecycleState::{Stopped, Running, Transitioning, Unknown}is distinct from application health (HealthState::{Healthy, Degraded, Unknown}).LifecycleSnapshotpreserves pre-update intent (was_running,was_registered) so orchestration can restore "was running" versus "was registered but stopped". Stopped services remain stopped by default.ServiceManagertrait plusTestDoubleManagerfor deterministic tests;HealthProbeseam is consumer-supplied and never mutates manager state.- Bounded
TransitionResultwith conflict diagnostics; no automatic privilege elevation; no updater/release/network policy.