| name | causal-reasoner |
| version | 0.2.0 |
| description | Causal DAG engine โ infers root cause from observed effects using Bayesian-weighted evidence chains |
| enabled | true |
| category | intelligence |
| tags | ["causal","reasoning","root-cause","bayesian","diagnostics"] |
๐ฎ causal-reasoner
Causal inference engine. Takes observed effects (CPU spike, memory pressure, deploy events) and backtracks through a directed acyclic causal graph with weighted evidence scoring.
Architecture
[git_push] โโโ [deploy] โโโ [cpu_load]
โโโโ [memory_usage]
[config_change] โโโโโโโโโโโโโโ
[high_traffic] โโโโโโโโโโโโโโโ
Usage
python causal-reasoner/run.py --infer cpu_load
python causal-reasoner/run.py --infer memory_usage --json
python causal-reasoner/run.py --evidence-path daemon/state.json
python causal-reasoner/run.py --list-graph
python causal-reasoner/run.py --version
python causal-reasoner/run.py --dry-run --infer cpu_load
Integration
- Reads daemon state from
skills/.daemon/state.json
- Writes reasoning logs to
skills/causal-reasoner/logs/reasoning.jsonl
- Scoring: Bayesian-weighted evidence chain with confidence decay (0.85^n)
- Used by
subconscious-daemon to suppress expected alerts (e.g. deployment โ CPU spike)