Aegis

Aegis Service Level Objectives (SLOs) & Performance Targets

This document sets the performance targets for Aegis, grouped into Product, Runtime and Developer SLOs.

Status: these are targets, not measurements. None of them is enforced in CI. CI runs benchmarks for the event store, projection rebuild, proxy overhead and deploy wall time, and the soak test times daemon start (benchmarks.md); the other targets aren’t measured. The “Planned gate” column says how each target should be enforced once measured. Results go in a report based on performance-report.md, and the scorecard is updated when they exist.


1. Product SLOs (First-Run Experience)

Metric Target Measurement Method Planned gate
Install to first deploy < 5 minutes End-to-end VPS onboarding walkthrough Manual / E2E
Runtime detection < 250 ms Indicator file scan and detector pipeline CI (hard)
Config generation (aegis.toml) < 100 ms Config synthesis duration CI (hard)

2. Runtime SLOs (Supervision Engine)

Metric Target Measurement Method Planned gate
Daemon cold startup < 500 ms Time from binary launch to gRPC server bind CI (hard)
Process crash restart < 2.0 s Time from process exit to re-spawn (first backoff step is 1 s) CI (hard)
Health probe execution < 100 ms HTTP/TCP probe latency CI (hard)
Event propagation latency < 10 ms Time from EventBus.publish() to receiver CI (hard)

3. Developer SLOs (CLI & Tooling)

Metric Target Measurement Method Planned gate
CLI command response < 100 ms Latency of aegis status / list / events CI (hard)
aegis doctor < 500 ms Full environment and daemon check CI (hard)
aegis validate < 500 ms Config check duration CI (hard)
Terminal UI refresh 60 FPS (~16.6 ms/frame) Frame draw duration Soft. Applies once the ratatui TUI exists (roadmap Phase 6).

4. Benchmarks

The benchmarks live in benchmarks/ and run in perf.yml on every PR and push to main. Results are compared with the latest main run and regressions beyond 30% are flagged as warnings; making them fail the build is a repository setting. What each one measures, how to run them and recent numbers: benchmarks.md.