Skip to content

Architecture

How the repositories connect, what crosses each connection, and how to switch each one on.

Layers

flowchart TB
    P["People<br/><small>incident commander · reviewer</small>"]
    subgraph R["Respond: agents doing SRE work"]
        direction LR
        AWR["aegis-war-room"] ~~~ AR["argus-sre-agent"] ~~~ ICX["Incident Commander<br/><small>in agent-harness-sdk</small>"]
    end
    subgraph G["Govern: SRE work on the agents"]
        TH["themis-agent-sre"]
    end
    subgraph F["Foundations"]
        direction LR
        SDK["agent-harness-sdk"] ~~~ IO["intentops"] ~~~ AP["aegis-pipelines"]
    end
    S[("Your systems<br/><small>Prometheus · Loki · Tempo · Kubernetes · GitOps repo</small>")]

    R -- "go / no-go, fix pull requests" --> P
    G -- "incidents" --> R
    R -- "spans" --> G
    R -- "read-only tools" --> S
    F -- "SDK" --> R
    F -- "Themis's manifests" --> G
    F -- "manifests, SLO alerts, canaries" --> S

The connections

Every row is taken from the README of at least one of the two repositories it joins. The last column is how you turn it on.

From To What crosses Protocol How to switch it on
agent-harness-sdk Themis Every agent step as an OpenTelemetry GenAI span: model, tool and tokens. Themis prices the tokens when it knows the model OTLP/HTTP OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:8600 and the ingest key in OTEL_EXPORTER_OTLP_HEADERS
Themis agent-harness-sdk The agent's autonomy (autonomous, supervised, suspended), its allow-list, and human approvals HTTP, cached snapshot ThemisGate, ThemisPolicy, ThemisApprover in the agent's constructor
Themis Aegis War Room A suspended agent or quarantined tool opens a war-room incident Alertmanager webhook THEMIS_WEBHOOKS=http://<aegis>:8000/api/alerts
Themis Argus, Incident Commander The same incident starts an investigation Alertmanager webhook Add http://argus:8080/alertmanager and http://commander:8080/webhooks/alertmanager to THEMIS_WEBHOOKS (comma-separated)
Aegis War Room, Argus Themis Their own agents: Aegis sends two traces per incident (investigate, then act), Argus one per investigation OTLP/HTTP OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS pointed at Themis
IntentOps Themis Themis's own Kubernetes deployment: 3–8 replicas, PDB, autoscaler, canary, network policy Rendered YAML deploy/intent.yaml in Themis, then make render
IntentOps Argus The SLO burn-rate alerts Argus answers, and the canary gates that stop bad releases before Argus is paged Prometheus rules, Argo Rollouts intentops render output applied to the cluster
Argus Your GitOps repository The fix, as a branch argus/<incident> and a pull request Git, GitHub API ARGUS_GITHUB_REPO, GITHUB_TOKEN, ARGUS_GITOPS_DIR
Argus's MCP server Any MCP client Read-only Prometheus, Loki, Tempo and Kubernetes tools MCP argus-mcp in your MCP client's config
aegis-infra aegis-deploy A cluster with Argo CD; Argo CD will install whatever aegis-deploy holds. Today aegis-deploy's Keycloak runs on a laptop with Docker Compose, not on the cluster GitOps Not yet: no Argo CD application points at aegis-deploy
aegis-web aegis-deploy Sign-in through the Keycloak realm, and the People page through Keycloak's admin API with the admin's own token OpenID Connect with PKCE OIDC_ISSUER, OIDC_CLIENT_ID (default: the local realm and aegis-web)
portfolio-website Argus, IntentOps, agent-harness-sdk Recorded runs of each demo command, replayed on the page; the guardrail demo is a line-for-line port of the SDK's Static data client/src/data/runs.ts

One lab, four repositories, a real model

Themis's bench-real workflow is the place all of this runs together on real infrastructure:

sequenceDiagram
    autonumber
    participant Git as GitOps repo
    participant K8s as kind cluster (GitHub runner)
    participant Prom as Prometheus
    participant Agent as On-call agent<br/>(agent-harness-sdk, Claude Haiku)
    participant MCP as Argus MCP server
    participant Th as Themis gate

    Git->>K8s: a bad checkout release ships through Git
    K8s->>Prom: 3 in 10 requests fail
    Prom->>Agent: alert fires (the agent starts here, not before)
    Agent->>MCP: 7 read-only tool calls: metrics, logs, traces, kubectl
    Agent->>Th: may I revert the release commit?
    Th-->>Agent: allowed (agent is autonomous, action is on its list)
    Agent->>Git: revert commit
    Git->>K8s: the revert is applied from Git
    Prom-->>Agent: healthy again, measured

Measured on 26 November 2026, across two runs: paged after 2.5–3.1 minutes, the agent took 18 seconds, the shop was healthy 80–101 seconds after the page, and each run cost about $0.0037 in model calls. Source: the Themis README; run 2 is written up in docs/RESULTS-real.md. No API key is stored: Claude is reached through workload identity federation from the GitHub Actions run.

Rules every repository keeps

These are written into the code of the agent tools, not only into their READMEs. The right column says where.

Rule Where you can see it
Runs with no cloud and no API key. Every agent has offline rules, so demos, tests and CI need nothing aegis demo, make demo (Argus), themis demo, intentops plan, agent-harness doctor
Risky actions wait for a human. In Aegis the approval is tied to a fingerprint of the exact plan Aegis security/policy.py and executor; Argus changes only through a PR; the SDK's Policy and Themis's gate decide which actions need an Approver
Agents pick from an allow-list. They never write their own commands Aegis config/policy.yaml; SDK Policy; Themis allow-lists
The guard is code, not a model, so it cannot be talked round Aegis defender; SDK policy stage; IntentOps policy gate
Telemetry and logs are hostile input. Lines that read like instructions to an AI are quarantined Aegis security/injection.py; SDK guardrails; Argus scenario 05
Read-only by construction. Investigators only see read-only tools Argus filters on MCP readOnlyHint; SDK READ stage
The model and the cloud are settings, never code Aegis config/models.yaml; Argus and IntentOps *_LLM_* variables
Everything is recorded. Hash-chained audit log, one span per step Aegis store.py; OpenTelemetry in Aegis, Argus, the SDK and Themis. IntentOps has none

How changes reach main

flowchart LR
    dev["feature/ branch"] --> pr["Pull request"]
    pr --> ci{"ci + security<br/>checks"}
    ci -- green --> rv["Review<br/>(CODEOWNERS)"] --> main["main"]
    ci -- red --> dev
    dep["Dependabot"] --> pr
    guard["Daily ruleset job"] -. "protects every<br/>public default branch" .-> main

The details, and which repositories meet each standard today, are on Standards and the scorecard.