Skip to main content

Architecture

Claritty is designed as a decentralized, multi-agent system. It leverages a modern "Hub and Spoke" architecture to scale across dozens of clusters while keeping AI reasoning close to the metal.

Hub and Spoke Model​

At the core of Claritty is the separation between the SRE Agent (the spoke) and the Centralized Hub.

Cluster A (prod) ──► claritty-agent ─┐
Cluster B (dev) ──► claritty-agent ─┼──► Centralized Claritty Hub (UI + DB)
Cluster C (eu) ──► claritty-agent ─┘
  • Agents: Lightweight daemons running inside your Kubernetes clusters. They are stateless, completely isolated, and execute the heavy AI reasoning locally using your configured LLM (Ollama, Groq, Mistral, OpenAI, Anthropic).
  • Hub: A centralized dashboard that aggregates the incident reports generated by the agents. The Hub does not have access to your raw cluster metrics or logs, guaranteeing a Zero-Trust security boundary.

The 6-Stage AI Pipeline​

When an agent detects a failure (e.g., a CrashLoopBackOff, a network partition, or API throttling), it triggers Claritty's sophisticated 6-stage AI pipeline.

Each stage represents a specialized, autonomous agent:

  1. 🩺 Triage Agent
    Analyzes high-level cluster states, identifies failing nodes or pods, and scopes the incident.
  2. 📊 Metrics Agent
    Gathers granular CPU, memory, and custom metrics for the affected resources to detect spikes or resource starvation.
  3. 📜 Log Analysis Agent
    Parses raw container logs, extracting stack traces, fatal errors, and contextual warnings.
  4. 🏗 Infrastructure Agent
    Evaluates the underlying Kubernetes architecture, checking for misconfigured Deployments, PVC capacity issues, or Service routing failures.
  5. 📖 Runbook Agent
    Consults built-in, battle-tested YAML runbooks to map the discovered symptoms to known failure modes.
  6. ⚡ Commander Agent
    Synthesizes the findings from all previous agents to generate a human-readable RCA and proposes exact kubectl remediation commands.
info

Safety Guarantee: The Commander Agent validates all proposed commands against a strict, predefined allowlist. Destructive actions are flagged and heavily restricted.


Unified Evidence Model & Evidence-Backed RCA​

Claritty eliminates LLM hallucination and guesswork by enforcing a Unified Evidence Model:

  • Strongly-Typed Evidence Items: Every signal gathered by the pipeline (container logs, resource metrics, Kubernetes events, and resource specs) is assigned an immutable ID (E1, E2, ...), severity, source component, and timestamp.
  • Evidence-Backed Conclusions: The Incident Commander strictly derives conclusions from verified evidence items, citing supporting evidence IDs (e.g., [E1, E3]) and explaining the reasoning.
  • Hypotheses vs. Facts: If a potential root cause cannot be definitively verified from the gathered data, Claritty classifies it as an unverified Hypothesis accompanied by concrete validation steps for the operator.

Incident Timeline Engine​

Incidents rarely occur in isolation. Claritty's Timeline Engine constructs a unified chronological sequence of events leading up to and during the incident:

  • Kubernetes lifecycle events (Scheduled, Pulled, Killing, BackOff, Failed)
  • Container log anomalies and fatal exceptions
  • Threshold breaches (e.g. OOM kills, CPU throttling)

Each entry in the timeline is stamped with its relative or absolute time, severity level, source, and linked evidence ID.


"What Changed?" Investigation Engine​

The vast majority of production outages stem from recent changes. Claritty automatically correlates cluster deltas within a configurable time window (default 1h):

  • Workload Rollouts: Deployment revisions, DaemonSet updates, and replica scaling.
  • Container Image Mutations: Image tag updates and digest changes.
  • Configuration Updates: ConfigMap and Secret modifications referenced by failing workloads.
  • Pod Churn & Restarts: Recent container terminations, exit codes, and restart timestamps.

Deltas occurring in proximity to the incident are marked with a CORRELATED indicator and cross-referenced in the root cause analysis.