Aegis

Aegis Feature Maturity

Every capability in Aegis is in one of four maturity tiers. A feature moves up a tier only when the evidence for that tier exists and is linked here.


1. Maturity Tiers

Tier Icon Requirement
Experimental 🧪 Exists, but has little or no automated testing, or prints placeholder output. Expect changes.
Validated 🟡 Covered by automated tests that run in CI (ci.yml).
Dogfooded 🟢 Used by the Aegis project itself on a real host, with a published report.
Production Proven 🔵 Used in production by external users, with a published report.

Today no feature is Dogfooded or Production Proven. Aegis doesn’t deploy itself yet and has no recorded external production users. See the scorecard for what is and isn’t measured.

“Validated” means CI on Ubuntu (Linux). macOS and Windows are built in CI but not tested.


2. Feature Maturity Matrix

Core and deployment

Feature Status Evidence
Event store & event bus (ordered seq, replay, migration) 🟡 Validated Unit tests in core/event_store, core/projection
Deploy pipeline (clone/copy, install/build/test, artifacts, health check, automatic rollback) 🟡 Validated core/control/tests/lifecycle.rs, scripts/e2e-smoke.sh, unit tests in deployment/builder, deployment/health, deployment/artifact_store
Release switcher, retention and manual rollback 🟡 Validated deployment/release/src/switcher.rs tests, lifecycle.rs, e2e-smoke.sh
Process supervisor (process groups, SIGTERM → SIGKILL, backoff, crash-loop detection, rotating logs) 🟡 Validated Unit tests in runtime/process, e2e-smoke.sh
Daemon restart recovery (apps restarted, stopped apps stay stopped) 🟡 Validated lifecycle.rs, e2e-smoke.sh
Runtime detection 🟡 Validated (detection only) runtime/engine/src/detector_pipeline.rs tests. Only Node.js apps are actually deployed in CI.
Scheduled daily deploys 🟡 Validated (unit) core/scheduler tests; schedule API in core/web/tests/api.rs
Configuration loading and unsafe-config refusal 🟡 Validated core/config tests, e2e-smoke.sh

Web control plane (roadmap Phases 1–4)

Feature Status Evidence
HTTP/JSON API and SSE streams (Phase 1) 🟡 Validated core/web/tests/api.rs, OpenAPI drift test, HTTP steps in e2e-smoke.sh
Authentication, sessions, CSRF, API tokens, login throttling (Phase 2) 🟡 Validated core/web/tests/auth.rs, core/auth tests, e2e-smoke.sh
Built-in TLS with certificate reload, HTTP/2 (Phase 2) 🟡 Validated auth.rs (HTTPS over HTTP/1.1 and HTTP/2, renewed certificates)
GitHub webhooks (HMAC, replay protection, push → deploy) (Phase 2) 🟡 Validated auth.rs, git/webhook tests (including GitHub’s published test vector)
Hardened server install (install.sh --server) (Phase 2) 🧪 Experimental Exercised by hand in a container; not run in CI
Web dashboard (Phase 3) 🟡 Validated Playwright tests in ui-tests/tests/ (desktop and phone), core/web/tests/dashboard.rs
Resource monitoring and live CPU/memory limits (Phase 4, cgroup v2) 🟡 Validated runtime/resources/tests/kernel.rs and core/web/tests/resources.rs run in CI on the runner’s cgroup v2 kernel twice: in a systemd service with Delegate=yes as an unprivileged user (the install.sh --server layout, though not the installed unit itself), and as root. ui-tests/tests/resources.spec.js drives the sliders against a daemon running as root. AEGIS_REQUIRE_CGROUPS=1 makes all three fail rather than skip when limits are unusable (before that, they skipped silently in CI)
Resource limits on cgroup v1 (Phase 4) 🧪 Experimental Passed locally on a v1 host; not run in CI
Slack notifications 🟡 Validated (unit) integrations/slack tests post to a local test server, not to Slack

App configuration (roadmap Phase 5)

Feature Status Evidence
Built-in reverse proxy, domains and HTTPS ([proxy]) 🟡 Validated runtime/ingress unit and integration tests (routing, headers, streaming, upgrades, HTTPS from files with SNI, ACME challenge), core/web/tests/domains.rs. Certificate issuance against a real ACME CA is not tested.
Secret and plain environment variables 🟡 Validated core/secrets tests (encryption at rest, key mismatch, slot binding), core/web/tests/appconfig.rs (values reach the app, restart applies changes, never returned by the API or written to events/releases)
aegis.toml diff before saving, webhook status and test delivery 🟡 Validated appconfig.rs, Playwright settings step in ui-tests/tests/dashboard.spec.js
Zero-downtime cutover behind the proxy 🟡 Validated core/control/tests/proxy_cutover.rs: no failed requests through deploys, a failed deploy, a rollback and a daemon restart
Several instances per app; Rolling and BlueGreen strategies (roadmap Phase 6) 🧪 Experimental Rollout planning, requirement checks, round-robin balancing and passive failover have unit tests (core/control/src/rollout.rs, runtime/ingress); core/control/tests/strategies.rs runs 3 real instances through Rolling and BlueGreen deployments with a client loop that must see no failed request, a mid-rollout failure, an instant BlueGreen rollback, a rolling restart, an interrupted rollout and daemon restarts. New in this release, with no production use yet; the dashboard’s instance list and rollout timeline have no Playwright coverage (the UI tests don’t run the proxy).

Roadmap Phase 6

Feature Status Evidence
Docker runtime ([run] runtime = "docker", guide) 🧪 Experimental Unit tests for [run] validation, docker argument building (including that secrets never reach a command line) and limit mapping in core/config and integrations/docker; supervisor tests with a fake launcher in runtime/process. core/control/tests/docker.rs runs against the real Docker daemon on CI’s Ubuntu runner (AEGIS_REQUIRE_DOCKER=1 makes a missing Docker a failure there). It covers the image build, the health check, a secret reaching the container, a redeploy through the proxy with no failed requests, live docker update limits, a killed container being restarted, an unhealthy release rolled back, a rollback that reuses the old image, image pruning, a daemon restart and a stop. docker_missing.rs covers a host without Docker. Not used in production; dashboard display of the runtime is not browser-tested.

Phase 7

Feature Status Evidence
Per-user app lists and password-hidden apps 🟡 Validated core/web/tests/app_access.rs, Playwright xaccess.spec.js
Live URL check with rollback ([deploy] verify_url) 🧪 Experimental core/control/tests/live_check.rs (real processes: 404 rolls back and keeps the status; manual check), core/web/tests/verify.rs. HTTPS targets are not tested against a real certificate.
Prometheus /metrics and Grafana dashboard 🧪 Experimental core/web/tests/prometheus.rs; the dashboard JSON has not been imported into a real Grafana in CI
Jobs (cron and one-off commands) 🧪 Experimental Cron parser unit tests in core/control/src/cron.rs; core/control/tests/jobs.rs (environment, secrets, exit codes, timeout kill, no double run), core/web/tests/jobs.rs. The scheduler loop itself (a due job starting by itself) is not covered by a test.

CLI and tools

Feature Status Evidence
Core CLI (init, validate, deploy, rollback, start/stop/restart, logs, list, releases, deployments, timeline) 🟡 Validated e2e-smoke.sh
Deployment replay (aegis replay) 🧪 Experimental Unit tests over synthetic event histories in ui/cli/src/; not yet run against a live daemon in CI
Time travel inspection (aegis inspect --at) 🧪 Experimental Unit tests over synthetic event histories in ui/cli/src/; not yet run against a live daemon in CI
Incident report (aegis incident) 🧪 Experimental Unit tests over synthetic event histories in ui/cli/src/; not yet run against a live daemon in CI
Outage investigation (aegis investigate) 🧪 Experimental Unit tests over synthetic event histories in ui/cli/src/; not yet run against a live daemon in CI
Self-update (aegis upgrade) 🧪 Experimental Version comparison unit-tested in core/update (shared with the daemon); signature and checksum verification are tested against a fake GitHub API and install.sh’s signature check runs in CI; a real release has not yet been signed
Update checks and “Upgrade now” ([update], aegis-daemon self-update) 🧪 Experimental core/update/tests/flow.rs drives check → available → apply against a fake GitHub API on 127.0.0.1 up to the binary swap and restart request (tampered archives rejected, checks off means no requests, unwritable binaries refused, helper hand-over); role tests in core/web/tests/update.rs; banner in ui-tests/tests/update.spec.js. Not tested end to end: the restart under systemd, the root aegis-update helper units, and a download from the real GitHub. See upgrading.md.
PM2 & systemd migration (aegis migrate) 🧪 Experimental Parser unit tests in ui/cli/src/migrate.rs; not checked against real PM2/systemd setups
Terminal UI (aegis-tui) 🧪 Experimental ratatui dashboard over the local gRPC API: apps table, app view (releases, deployments, live logs), live event stream, and confirmed start/stop/restart/deploy/rollback actions (roadmap Phase 6). The state reducer, filters and screen rendering (TestBackend) have unit tests in CI. Two opt-in tests (cargo test -p aegis-tui -- --ignored with AEGIS_TUI_LIVE_ADDR set) drive its gRPC worker against a real daemon, including a reconnect after a daemon restart; they are not in CI, and no test drives the interactive terminal, so it stays Experimental.

Performance and stability evidence

Feature Status Evidence
Benchmarks in CI (event store append/replay, projection rebuild, proxy overhead, deploy saga wall time) 🟡 Validated (warn only) benchmarks/ run on every PR and push to main in perf.yml, compared with the latest main run. A >30% regression is a warning, not a failure, and the numbers come from shared CI runners. See benchmarks.md.
Soak test (real daemon, load through the proxy, deploys/rollbacks/restarts/limit changes/daemon restarts, leak and error checks) 🟡 Validated (5 min per push to main, 60 min nightly) scripts/soak.sh, benchmarks.md. No 24 h+ soak has been run; leak detection over 5 minutes only catches fast leaks. A 15-minute run found an fd leak (one open log file per app process ever started), so the nightly soak fails until it is fixed.

Not implemented yet

core/ssh, core/state, deployment/analytics, git/action and integrations/github are stubs. Fleet support comes later (roadmap Phase 6).