rcaground
Reproducible evaluation of evidence grounding in LLM-generated root cause analysis.
When a large language model explains why a microservice system failed, two
questions matter: did it name the right root cause, and is every claim in its
explanation actually supported by the telemetry it was shown? Public RCA
benchmarks score the first. rcaground measures the second, at the level of
individual claims, on the same public benchmarks.
What it provides
- Benchmark adapters (
rcaground.signals) that normalise RCAEval RE1/RE2 and OpenRCA cases (metrics, logs, traces, ground truth) into oneFailureCaseschema, with documented, test-verified handling of dataset pitfalls (seeCONVERSION.md). - Deterministic evidence ranking (
rcaground.agents.evidence): robust z-scores over KPIs, error spans and novel log templates, boosted along the service dependency graph, with stable evidence IDs. - Two-stage faithfulness checking (
rcaground.bench.faithfulness): stage 1 verifies that every cited evidence ID exists and is anomalous; stage 2 judges entailment with a chat-model judge from a different model family than the generator, with an NLI cross-encoder as a comparison point. - A benchmark harness (
rcaground.bench.run_benchmark) with YAML configs, baselines (rule-based, RCAEval BARO, single-prompt LLM, OpenRCA-style agent), AC@k and Avg@5 metrics, and run manifests. - A human-rating harness for Cohen's kappa between automated judges and human raters.
The evaluation protocol, including what each metric means and its known
limits, is in docs/protocol.md.
Installation
pip install -e ".[dev]" # core + test tools
pip install -e ".[dev,nli]" # also the NLI comparison judge (pulls torch)
Python 3.10 or newer.
Quick start (offline, no API keys, no downloads)
The repository ships trimmed fixtures of real benchmark cases, so the full test suite and a smoke benchmark run with nothing else installed:
pytest
python -m rcaground.bench.run_benchmark --config src/rcaground/bench/configs/re1_ob_smoke.yaml
Running on full datasets
python scripts/download_rcaeval.py --dataset RE1-OB # into data/rcaeval/
python scripts/download_openrca.py --metadata-only # into data/openrca/
LLM-backed components read an OpenAI-compatible provider from the
environment: OLLAMA_BASE_URL / OLLAMA_MODEL for a local model, or
GROQ_API_KEY / GROQ_MODEL. With neither set, LLM baselines degrade to an
empty ranking rather than failing.
Repository layout
src/rcaground/
signals/ benchmark adapters, shared types, alert synthesis
graph/ dependency graph construction
agents/ evidence ranking, reference RCA generator
bench/ harness, baselines, faithfulness checker, configs
audit/ run manifests, cost and timing ledger
llm/ chat client and provider selection
data/ fault taxonomy and alert rules
scripts/ dataset downloaders with checksum verification
docs/ evaluation protocol and committed study artefacts
tests/ unit, adapter-contract and fixture-based tests
Provenance
This package was extracted from the author's AIOps research prototypes in ai-agentic-works. The application-specific code (triage classifier, remediation, API) stays there; this repository holds only the domain-neutral evaluation core.
Contributing and support
See CONTRIBUTING.md. Questions and bug reports go to the issue tracker.
Citation
If you use rcaground, please cite it using the metadata in
CITATION.cff.
License
Apache License 2.0. See LICENSE.
Metadata
Release files for rcaground 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rcaground-0.1.0.tar.gz | 854.6 kB | With provenance | Details for rcaground-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rcaground-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rcaground-0.1.0-py3-none-any.whl |
Total release size: 946.0 kB
Release files / rcaground-0.1.0.tar.gz
| Download URL | rcaground-0.1.0.tar.gz |
|---|---|
| Size | 854.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2289bdeb1060002ce48cb901a4b940facaa89c503d103364b907ab56e8662cdc
|
|
BLAKE2b-256 checksum How to use checksums |
e6a3a0f445ab1b289e1455fdca5dcf07f1b35dffd5365d0ad32d9c2b94d337a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / rcaground-0.1.0-py3-none-any.whl
| Download URL | rcaground-0.1.0-py3-none-any.whl |
|---|---|
| Size | 91.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65959ea85b014671cfa9d1930170d0a0841ad3f4f1bbe76dc46110b50680a12d
|
|
BLAKE2b-256 checksum How to use checksums |
a5509d8c2b109bf4028804a2d453e932e4cebede09c8e4c10c015217282dbce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for rcaground 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rcaground-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.