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:
weightis recurrence/volume pressure (hot/warm/cold).temporalis recency state (new/trending/known).nis 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 isbgl-demo:KERNEL). - Use single quotes around group IDs containing
$in shell commands. --anchor-nowpreserves 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.4.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 |
|---|---|---|---|---|
| caducus-0.4.0.tar.gz | 74.5 kB | With provenance | Details for caducus-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| caducus-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for caducus-0.4.0-py3-none-any.whl |
Total release size: 161.8 kB
Release files / caducus-0.4.0.tar.gz
| Download URL | caducus-0.4.0.tar.gz |
|---|---|
| Size | 74.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c234a8600ee459b9cdca6984201717b0961b5fcd99f8ec8f7a254e2e66d9ae48
|
|
BLAKE2b-256 checksum How to use checksums |
1cbdac3b9475957c5f7d7a708e5cbef5d04225a2a2c7b93fade79b17e7448e64
|
| 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 18, 2026.
Transparency logRelease files / caducus-0.4.0-py3-none-any.whl
| Download URL | caducus-0.4.0-py3-none-any.whl |
|---|---|
| Size | 87.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
172bb5fc966889928f9188dafb4722987d94ba4f2263c358eeaaf142ae526f8b
|
|
BLAKE2b-256 checksum How to use checksums |
4281b659ec0aaba6df4683fbca499a234783d3e5540c9798bf92868a2694e544
|
| 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 18, 2026.
Transparency logSecurity for caducus 0.4.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 caducus-0.4.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 18, 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.