System Architecture & Topology¶
StackPilot is designed around an autonomous agent-hub model engineered for resilience, isolation, and low operational overhead.
1. Architectural Topology¶
2. Core Architectural Tenets¶
1. Rootless by Default¶
The recommended Podman mode runs workloads, agent collectors, and self-heal timers as an unprivileged user. Docker daemon access and optional system-scoped deployment are privileged security boundaries and should be isolated accordingly.
2. First-Class Systemd Native (Daemonless Quadlets)¶
Instead of maintaining a continuous container management daemon, StackPilot compiles definitions into native systemd unit files (.container, .pod, .volume, .network). Systemd manages supervision, cgroups resource limits, journal logging, and restarts.
3. Zero-Dependency Agent¶
The StackPilot agent (stackpilot_agent.pyz) is distributed as a single Python ZipApp utilizing only the Python 3 standard library (http.server, urllib, ssl, json, subprocess). No pip, no virtual environments, and no package manager access required on managed hosts.
4. Decoupled Agent-Hub Topology¶
Managed nodes operate autonomously. If the Central Hub goes offline, containers, health checks, self-heal timers, and systemd units continue running unaffected.
5. Deterministic Template Interpolation¶
Host setup, agent installation, and Quadlet conversions are driven by static templates with strict snapshot-tested verification, eliminating script drift.