Themis¶
SRE for fleets of AI agents. Every agent gets an error budget. An agent that spends it too fast loses autonomy: first a human approves its risky actions, then it is stopped.
What it does¶
- Error-budget autonomy. Four indicators per agent (tasks done, clean handoffs, safe actions, within cost), judged by the 14.4× / 1h / 5m burn-rate rule used for services: autonomous → supervised → suspended. Only a person un-suspends an agent.
- Chaos for agents. Five injectable faults: a model answering 429, a silently wrong tool, a poisoned context, a rogue agent, a slow dependency. Each experiment is scored.
- Cross-agent root cause. The earliest span with evidence, or statistics over recent journeys when nothing errored.
- Journeys. One user request followed across every agent, model, tool and pod, with time, tokens and cost.
Measured¶
| Result | |
|---|---|
| Cause named correctly, four faults under load | 670 of 672 failed journeys |
| Ingest, one process | 11,757 spans a second |
| Soak: leader killed, rolling deploy, Postgres stopped 8 s | 0 spans lost on the recommended 30 s exporter timeout |
| Live cluster, Claude Haiku, real fault | healthy 80–101 s after the page, $0.0037 a run |
Run it¶
git clone https://github.com/debanjan0212/themis-agent-sre.git && cd themis-agent-sre
python3 -m venv .venv && source .venv/bin/activate && pip install -e ".[dev]"
themis demo --chaos
Team mode needs Postgres (pip install -e ".[postgres]", THEMIS_DB_URL). Kubernetes manifests are in
deploy/kubernetes, rendered by IntentOps.
Connects to¶
| Repository | How |
|---|---|
| agent-harness-sdk | Its agents appear with no code change; ThemisPolicy makes them obey the gate |
| Aegis War Room, Argus | Receive Themis incidents by Alertmanager webhook, and report their own agents back |
| IntentOps | Plans and renders Themis's own deployment from deploy/intent.yaml |
Not done yet¶
- Outside agent-harness-sdk the gate is advisory: a runtime that ignores it is not stopped.
- Agents share one ingest key per tenant, so spans are not tied to an agent's identity.
- Two live runs of one fault so far; three runs of each of five faults come next.