Skip to main content

Caducus

Caducus is for teams running production systems who need to spot important issues quickly in noisy operational data.

When the pager goes off, the problem is rarely "no data". The problem is too much data.

Caducus turns that flood of raw logs into a short, prioritized radar of issue blips so operators can decide what to investigate first.

What you get from the radar:

  • How intense is this issue? weight=hot|warm|cold
  • How fresh is this issue? temporal=new|trending|known
  • How big is this issue? n=<member_count>

Instead of scanning thousands of lines manually, you get a ranked list of patterns with both frequency and recency signals.

From Log Flood To Radar

Raw logs look like this - an overwhelming firehose:

260316,115910,INFO,KERNEL,,instruction cache parity error corrected
260316,115911,INFO,KERNEL,,data cache parity error corrected
260316,115911,WARN,KERNEL,,torus receiver x+ input pipe error(s) detected and corrected

You have a magic "radar" device for telling you what's important in there and ranking it by priority. Caducus clusters those logs into radar-ready blips. Here's what you see on that radar:

Group: bgl-demo:KERNEL  Texts: 4983  Run: 899a6ffb-a5ea-47e1-b856-71ba8054cd74
   1. parity error, parity, instruction cache  [weight=warm temporal=known]  n=4827  (merged 97 clusters)
   2. mask, ce sym, sym  [weight=warm temporal=known]  n=114
   3. corrected, cache parity, parity error  [weight=warm temporal=known]  n=42

Read this as:

  • weight is recurrence/volume pressure (hot/warm/cold).
  • temporal is recency state (new/trending/known).
  • n is cluster member count.

In other words, each line is a blip on the radar with both intensity and freshness.

Top blips from a real supercomputer log dataset:

  • Repeated parity-error corrections in cache-related paths (dominant cluster).
  • CE/SYM mask signaling bursts.
  • Secondary corrected parity-error pattern cluster.

How it works conceptually

flowchart TD
    subgraph logs [1. Noisy Log Stream]
        L1["error at 10:01: node_X failed parity check"]
        L2["error at 10:05: node_Y failed parity check"]
        L3["warn at 10:06: network timeout on port 80"]
    end

    subgraph clusters [2. Semantic Memory]
        C1(("Parity Error<br/>Cluster"))
        C2(("Network Timeout<br/>Cluster"))
    end

    subgraph blips [3. Radar Blips]
        B1["[weight=hot temporal=trending] n=2"]
        B2["[weight=cold temporal=new] n=1"]
    end

    L1 -->|"semantic match"| C1
    L2 -->|"semantic match"| C1
    L3 -->|"semantic match"| C2

    C1 ==>|"reinforces"| B1
    C2 ==>|"initializes"| B2

How a change ships

Merge pull requests into develop (CI runs, nothing is published). A release, develop merged into main, tags a version and publishes the package to PyPI; see AGENTS.md.

Run The Working Demo

Install dependencies:

pip install -e ".[reinforcement-memory,dev]"
pip install datasets

Build a real-world log subset and shift timestamps to a demo "now" so recency signals are meaningful:

python scripts/download_hdfs_demo.py \
  --dataset bgl \
  --output demo_data/log_sample.csv \
  --max-rows 3000 \
  --anchor-now "2026-03-16T12:00:00Z"

Ingest and discover valid groups:

caducus demo ingest --input demo_data/log_sample.csv --data-dir ./caducus-data
caducus groups --data-dir ./caducus-data

Run analysis for a discovered group:

caducus analyze --group-id 'bgl-demo:KERNEL' --data-dir ./caducus-data

Or do ingest + analyze in one command:

caducus demo run --input demo_data/log_sample.csv --group-id 'bgl-demo:KERNEL' --data-dir ./caducus-data

Notes

  • Group IDs are source and component derived: <source>:<component> (for this demo it is bgl-demo:KERNEL).
  • Use single quotes around group IDs containing $ in shell commands.
  • --anchor-now preserves spacing between log rows while shifting them to your chosen clock anchor.

How It Works

Caducus is intentionally thin:

  • Caducus handles collection, normalization, orchestration, and CLI workflows.
  • Virtuus provides file-backed JSON storage and retrieval.
  • Biblicus provides semantic reinforcement-memory analysis.
flowchart TD
    demoFile[DemoDatasetCSV] --> ingest[CaducusDemoIngest]
    ingest --> normalize[CanonicalEvents]
    normalize --> store[VirtuusEventStore]
    store --> readGroup[ReadEventsByGroup]
    readGroup --> analyze[BiblicusReinforcementMemory]
    analyze --> blips[RankedRadarBlips]

Roadmap

  • More collectors (CloudWatch/SQS/alerts) feeding canonical events
  • Faster topic clustering and richer root-cause hints
  • Minimal UI/embeds for operators to view radar blips

Repository Direction

This repository is being built outside-in. Product definition and behavior specifications come first, followed by the minimum implementation needed to satisfy them.

Metadata

Release files for caducus 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caducus 0.3.0
File Size Uploaded Provenance Actions
caducus-0.3.0.tar.gz 71.6 kB With provenance Details for caducus-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for caducus 0.3.0
File Interpreter ABI Platform Actions
caducus-0.3.0-py3-none-any.whl Python 3 none any Details for caducus-0.3.0-py3-none-any.whl

Total release size: 156.2 kB

Release files / caducus-0.3.0.tar.gz

Download URL caducus-0.3.0.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
251e2e15d008f86598b66d56440da60366e395434efc2c81abb2cd9729b5bdc6
BLAKE2b-256 checksum
How to use checksums
9e3bd60f9d40d8b30390f831773787e186f17f5748432c4388b075a405ff207c
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 Nov 13, 2026.

Transparency log

Release files / caducus-0.3.0-py3-none-any.whl

Download URL caducus-0.3.0-py3-none-any.whl
Size 84.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
223669d919f46d086d75cce6e79151c37cc95cf1a5ce2c18fccf0e1852a5db7c
BLAKE2b-256 checksum
How to use checksums
9b4a757339fcbfb3a3ee2778012e67f1d899e32ac29e7731ccf790c41236c72d
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 Nov 13, 2026.

Transparency log

Security for caducus 0.3.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.

Select from 2 files

Attestation for caducus-0.3.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 Nov 13, 2026.

Transparency log

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

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page