Skip to content

Releases

Themis v0.1.0-alpha2

Themis v0.1.0-alpha2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 21:30
0c6f60f

Themis is a governance engine for AI-proposed fixes to Kubernetes incidents and workloads. This second alpha makes a default install safe to try on a real cluster: nothing leaves the cluster, and nothing in it is changed, until you turn that on. It is still not ready for production.

What's new

A read-only default. A plain helm install collects evidence, runs the checks, states the facts with their evidence, and says which fix the checks support. It sends nothing outside the cluster and needs no API key. Each further step is a choice:

Step Helm values Evidence sent outside the cluster Changes to workloads
Read-only (default) None None None
Investigator investigator.enabled=true, and the model in investigator.model To the model. A model in the cluster keeps it there None
Fixes executor.enabled=true, and the namespaces it may change in executor.namespaces None, unless the investigator is on Each one after a person approves it, only in those namespaces

The Setup and Status pages show a part that is off as a choice, with the value that turns it on.

The investigator is opt-in. Every investigator setting is under investigator.*, with the model's under investigator.model.*.

Fixes are opt-in and limited. The executor, the only part that can change workloads, changes only the namespaces listed in executor.namespaces; the chart refuses to install it without them. executor.fixes can limit it further, such as to resource changes only, and the executor enforces that list itself. Every change it makes is recorded under the field manager themis.

HolmesGPT suggests any fix. Through the adapter the chart installs, HolmesGPT 0.25 or later can suggest any fix the incident offers, checked against that fix's parameters before Themis judges it. holmesgpt.fixes narrows the list.

Recommendations. When Themis can't apply a fix, because the executor is off, the namespace isn't listed, the fix isn't allowed, or Argo CD or Flux manages the workload, it recommends the fix instead. The incident page shows the exact change, the reason, and the kubectl commands that make it, with no Approve button. Themis keeps watching: a change made by hand that clears the symptom closes the incident as recovered.

Fixes. After a gap in Prometheus's data, Themis read containers' CPU use as missing or far too low, which could leave a check unknown and the investigator without a fix. It now reads current use across such gaps. An incident whose alerts stop is closed only once its checks no longer find the failure. And an alert that Alertmanager lists again after a gap is taken as firing again.

Themis no longer stores pod templates, which can hold secrets in environment values: each fix keeps only its revisions, template hashes and the values it changes, and the executor rebuilds the change from the cluster and refuses it unless its hash matches the approved one. With the investigator on, its NetworkPolicy now opens only the model's port.

Themis could refuse a justified rollback when it read a crash-looping container just after its second restart, before Kubernetes had recorded the back-off event. It now dates the first failure from whichever comes first. And when a Deployment goes back to a pod template it had before, a pod still shutting down from that template's earlier use no longer counts as a pod of the new revision.

Install

helm install themis oci://ghcr.io/hzerrad/charts/themis --version 0.1.0-alpha2 \
  --namespace themis --create-namespace --set enrolledNamespaces='{shop}'

Create the namespace you enroll first (kubectl create namespace shop): Themis gets its access there at install.

To turn on the investigator and fixes later:

helm upgrade themis oci://ghcr.io/hzerrad/charts/themis --version 0.1.0-alpha2 -n themis --reuse-values \
  --set investigator.enabled=true --set investigator.model.provider=anthropic \
  --set investigator.model.name=claude-haiku-5-5 --set investigator.model.apiKeySecret=model-key \
  --set executor.enabled=true --set executor.namespaces='{shop}'

Images are signed and published for amd64 and arm64. See the quickstart.

Measured

The investigator is unchanged since v0.1.0-alpha1, so its evaluation stands: across 91 synthetic cases, Themis's governance checks rejected all 14 harmful fixes proposed by qwen3 8B, and Claude Haiku proposed none.

Known limits

  • Deployments only.
  • Alertmanager is the only alert source.
  • Every fix needs a person's approval. Putting back what Themis changed, after a fix that made things worse, needs none unless a policy rule asks for one.
  • Traffic between Themis's components is not encrypted inside the cluster. The NetworkPolicy limits who can reach it; mutual TLS is planned.
  • A changed setting can only be put back as it was. Giving it a new value is planned.
  • The executor trusts the approval recorded in Themis's database. Verifying the approver's own signature is planned; see What protects what.

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.

Themis v0.1.0-alpha1

Themis v0.1.0-alpha1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 07 Nov 20:34
1734abc

Themis 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.

Themis incident page asking whether to roll back checkout's environment variable MODE to revision 1, with the facts and their evidence, the exact change, and the approve and deny buttons

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-namespace

Images 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.