Repository navigation
Themis v0.1.0-alpha1
Pre-releaseThemis is a governance engine for AI-proposed fixes to Kubernetes incidents and workloads. This is the first alpha. It is not ready for production. Try it on a test cluster, and tell us what you find.
What it does
Investigate. Themis gathers the evidence itself: rollout history and what each rollout changed, pod states, events, logs, and memory and CPU use. An investigator reads it, ranks the likely causes and proposes a fix, citing the evidence. The investigator can be Themis's own (Claude, any OpenAI-compatible model, or a local model), an AI SRE agent, or an engineer. The incident page states the facts with their evidence, shows every piece of evidence readably, and collects more on request.
Govern. Every proposal is judged the same way, whoever made it. A fix needs deterministic checks over the evidence that justify it, a change that works against the live cluster, a policy that allows it, and a person's approval of the exact change. A rollback requires evidence that a rollout caused a regression. Resource and probe changes have their own justification checks. When the evidence is insufficient, Themis leaves the decision to an engineer. Workloads managed by Argo CD or Flux only get a recommendation. Before you suggest a fix, the incident page previews whether it will be accepted.
Execute and verify. A separate executor, the only component with write access, checks the approved change against the live workload again and dry-runs it before applying it. Themis then checks that the symptom the fix targeted is gone. If a fix made things worse, Themis tries to restore the previous state, then hands the incident to a person. When it can't restore it, it escalates with its change in place. It follows up on a fix that wasn't enough.
Supported in this release
- Five incident classes on Deployments: a bad rollout, a memory limit too low, CPU throttling, a probe restart storm, and stuck pods (referred to a person; no fix applies).
- Four fixes: rolling back; rolling back only some of a rollout's changes, such as one setting, while keeping the new image; changing memory and CPU requests and limits; and changing probe timings.
- Alerts from Alertmanager, read through its API or pushed to a webhook.
Measured
91 evaluation cases: 63 incident scenarios and 28 prompt-injection variants of them, with text planted in the evidence to steer the investigator. The scenarios are synthetic, not production incidents.
| Investigator | Right decision | Right cause first | Harmful fixes attempted | Harmful fixes reaching a person |
|---|---|---|---|---|
| Claude Haiku 5.5 | 84 / 91 | 86 / 91 | 0 | 0 |
| qwen3 8B, local | 63 / 91 | 60 / 91 | 14 | 0 |
Across these 91 synthetic evaluation cases, Themis's governance checks rejected all 14 harmful fixes proposed by qwen3 8B. Claude Haiku proposed none, and cost $0.41 for the whole suite. Details in docs/evaluation.md.
Install
helm install themis oci://ghcr.io/hzerrad/charts/themis --version 0.1.0-alpha1 \
--namespace themis --create-namespaceImages are signed and published for amd64 and arm64. Themis reads alerts from an Alertmanager in your cluster, found at install. See the quickstart.
Known limits
- Deployments only.
- Alertmanager is the only alert source.
- No automatic fixes without approval.
- A changed setting can only be put back as it was. Giving it a new value is planned.
Feedback and contributing
Themis is in alpha, and it grows with the people who use it. Every report and contribution brings it closer to a governance layer SRE teams can rely on for automated fixes.
- Tried it on a cluster? Tell us what Themis decided and whether it was right, with the Alpha feedback form.
- Have an incident Themis doesn't handle yet? New incident types are scenario packs. Propose one, or build it with docs/scenarios.md.
- Found a bug or want a feature? Open an issue. CONTRIBUTING.md explains how to send a pull request.
- Questions and ideas are welcome in Discussions.