Skip to content

Root-cause analysis and AI

Argavon tells you why an incident happened only as far as it has evidence. Every analysis says where it came from, and a claim without evidence behind it is not shown as a root cause.

There are three tiers, from always-on to optional:

Tier Label in the web app Where it comes from Needs a language model
Observed Observed only The alerts and context Argavon collected. No cause is claimed. No
Knowledge base Known pattern A built-in, hand-written pattern matched the incident. No
AI analysis AI analysis Your own language model, when you ask for it. Yes

The API returns the tier in provenance.source (observed, knowledge_base or llm), with has_causal_claim saying whether a cause is asserted.

What is observed

Opening an incident never calls a language model. Argavon shows what it actually has:

  • The alerts in the incident: when they fired, their severity, source and service. The first five are listed as evidence.
  • Context logs: up to three error or warning log lines collected around the incident.
  • Topology: the services around the incident's service, from your dependency map. Topology is also what lets alerts from dependent services join one incident.

When no known pattern matches, the incident is shown on the Observed only tier. Argavon clears the "root cause" field in that case, because what the correlation engine stored there is only the alert title: a symptom, not a cause.

The knowledge base

Argavon ships with a knowledge base of 502 failure patterns, covering:

  • hosts: CPU, memory, disk, network, kernel, systemd
  • runtimes: Java, Python, Node.js, Go, and generic application errors
  • databases and queues: PostgreSQL, MySQL, Redis, MongoDB, Kafka, RabbitMQ
  • Kubernetes, containers, DNS, TLS and load balancers
  • AWS, GCP and Azure

Each pattern has a root cause, reasoning, impact, resolution steps, prevention advice, a base confidence and a base risk score.

How a pattern is matched

  • The alert title, message and metric name are split into whole words. "api" does not match inside "payments-api", and "oom" does not match inside "room".
  • A pattern needs two of its keywords to match, or one keyword that is specific enough on its own (a phrase of several words, or a single word of 10 or more characters).
  • Some patterns list words that rule them out. One such word disqualifies the pattern.
  • If several patterns qualify, the one with the most keyword matches wins.

A match happens when the incident is created (it sets the incident's starting root cause, reasoning, confidence and risk score) and again each time the incident is viewed.

Resolution steps are ordered for safety

Steps that destroy data or evidence (rm -rf, find … -delete, truncate -s 0, writing over files in /var/log, kill -9, FLUSHDB/FLUSHALL, DROP TABLE and similar) are moved to the end of the list and prefixed with "Last resort — destroys data or evidence; capture what you need first:".

Your own language model

You can connect a language model of your choice. Argavon does not include one.

Setting Values Default
LLM_API_KEY Your provider's API key. empty (no model)
LLM_PROVIDER openai, anthropic or local detected from the key: keys starting sk-ant- mean Anthropic, otherwise OpenAI; local when LLM_BASE_URL is set
LLM_MODEL Model name gpt-4o (OpenAI), claude-sonnet-4-6 (Anthropic), llama3 (local)
LLM_BASE_URL An OpenAI-compatible endpoint (Ollama, vLLM, LM Studio) empty
LLM_DATA_MODE cloud, private or offline cloud
LLM_DAILY_TOKEN_BUDGET Estimated tokens per workspace per day; 0 turns the budget off 500000

An unknown value in LLM_PROVIDER or LLM_DATA_MODE, or LLM_PROVIDER=local without LLM_BASE_URL, stops the server at start-up, so a typo never sends data somewhere you did not intend. See Configuration.

Data modes

  • cloud sends prompts to OpenAI or Anthropic. Before sending, Argavon masks email addresses, IPv4 addresses, and values that follow bearer, password, token or api_key.
  • private sends prompts only to LLM_BASE_URL. It requires LLM_BASE_URL and refuses LLM_PROVIDER=openai or anthropic. The masking above is not applied, because the data stays on your endpoint.
  • offline makes no model calls at all. Every feature uses its rule-based path.

Daily token budget

Each workspace has a daily budget, counted as characters ÷ 4 of prompt and reply. When it is used up, model calls fail with "the daily AI usage budget for this workspace is used up; it resets at 00:00 UTC", and features fall back as described below. The count is shared by all servers through the database.

What is sent to the model

For an analysis, Argavon sends:

  • the incident's title, service, severity, status, event count and first and last event times
  • the root cause on record, if any
  • up to 10 alerts from the incident (time, severity, service, title)
  • matching entries from Argavon' failure signature library
  • how often the problem was seen before

Input longer than 60,000 characters is cut. Provider error bodies are logged, never returned to the browser.

What works without a language model

Everything that alerts, groups, pages and closes incidents works with no model configured. Specifically:

Feature Without a model With a model
Incident correlation and paging Full Same
Root cause on the incident page Known pattern, or Observed only Same; plus Analyse with AI on request
AI Copilot tab Rule-based answers for "why", "what should I do first", "what changed" and "has this happened before" questions Free-form answers about the incident
Post-mortem Filled from a template Written by the model; the template is used if the call fails
Weekly digest Numbers and highlights Also a 2–3 sentence summary at the top
Executive summary, domain memory Rule-based text Written by the model

Analyse with AI

Analyse with AI (or Re-analyse) on the incident's Overview runs POST /api/v1/incidents/{id}/analyze. It:

  • needs the operator role, because it spends money and produces a claim attributed to you
  • can take up to 30 seconds
  • returns the model's root cause, confidence, reasoning, a recommended next step, and per-claim evidence with what would prove each claim wrong
  • records the model name, the time and who asked, on the result and in the audit log

If the model is not configured or the call fails, Argavon falls back to the knowledge base, and then to the observed tier with the reason, for example "AI analysis is not configured on this deployment".

An analysis written by the model is saved on the incident. Anyone who opens the incident later sees it, with who asked and when, until someone runs Re-analyse. A fallback answer (knowledge base or observed) is not saved.

Copilot

The AI Copilot tab answers a question about one incident (POST /api/v1/incidents/copilot/{id} with {"question": "..."}). It needs the operator role.

With a model, the answer is written by the model from the incident's context. Without one, or if the call fails, Argavon classifies the question and answers from the incident's own data.

Checking the setup

GET /api/v1/ai/status returns whether a model is configured, the provider, the data mode, and call counts. The server log also says at start-up whether a model is configured.