Open-source landscape для Investigator.
Широкий обзор causal inference, probabilistic reasoning, RCA и argument/evidence graph tooling. Цель — понять, какие части causal reasoning можно переиспользовать, а какие должны остаться нашей domain policy вокруг hypotheses, evidence, counterevidence, scope и verdicts.
1. Критерии Investigator reuse
HARD: self-hosted / local Python acceptable license API/library integration exportable graph/state no cloud dependency usable with our canonical IDs CORE: causal graph intervention / what-if root cause analysis counterfactual reasoning confounder awareness explainable outputs uncertainty OUR DOMAIN NEED: competing hypotheses support + counterevidence version/environment scope Researcher gap requests Dossier persistence Skeptic verification Qwen integration
2. DoWhy / PyWhy — PRIMARY FINALIST
Что подтверждено
- DoWhy входит в PyWhy ecosystem;
- поддерживает effect estimation, causal influence, what-if/counterfactual analysis;
- имеет Graphical Causal Model API;
- есть documented root-cause-analysis use cases, включая microservice latency и supply-chain changes;
- активная разработка продолжается в 2026, с PR/commit activity в августе–сентябре;
- PyWhy organization также включает EconML и dodiscover.
Особенно релевантно Investigator
our causal hypothesis graph → map selected variables/nodes → DoWhy GCM possible tasks: anomaly attribution distribution change attribution causal influence interventional sampling counterfactual analysis
Strong fit
- не сводит causal reasoning к простой корреляции;
- graph-based mental model хорошо совпадает с CausalLink;
- может быть deterministic/scientific backend под Qwen-generated hypotheses;
- root cause analysis — явный supported use case.
Limits
- требует формализованной causal graph/data assumptions;
- не является системой ведения расследований;
- не хранит competing hypotheses как нашу workflow сущность;
- не решает provenance, Researcher routing и evidence authority;
- не каждый технический incident имеет достаточный numeric dataset для статистического causal inference.
3. EconML — treatment effect specialist
Что подтверждено
EconML входит в PyWhy ecosystem и развивается как toolkit, объединяющий machine learning и econometrics для causal/economic decision-making.
Где полезен
treatment T → outcome Y → heterogeneous effects → CATE / treatment-effect estimation
Investigator fit
Хорош для задач вида «как изменение X повлияло на Y при наличии covariates», особенно если есть достаточные наблюдения. Но большая часть технических расследований ИИшки — sparse evidence, releases, documents, incidents и discrete events, а не чистая treatment-effect analytics.
Conclusion
4. pgmpy — Bayesian reasoning finalist
Why it matters
pgmpy — Python library для probabilistic graphical models, включая Bayesian networks. Для Investigator это интересно не как causal truth engine, а как probabilistic hypothesis scoring layer.
Possible mapping
Hypothesis nodes Evidence observations Conditional dependencies → posterior probability / belief update
Useful for
- competing hypotheses;
- evidence accumulation;
- explicit uncertainty;
- diagnostic graphs;
- probabilistic belief updates.
Risk
Bayesian network edges не должны автоматически трактоваться как causal links. Структура и conditional probabilities требуют careful modeling/domain assumptions.
5. CausalNex — EOL, production reject
Важно
Репозиторий официально сообщает, что CausalNex больше не поддерживается: 24 июня 2026 проект достиг end-of-life и был discontinued. Future updates, bug fixes и security patches не планируются.
Что в нём было полезного
- causal reasoning через Bayesian Networks;
- structure learning;
- domain expert augmentation;
- intervention / what-if style analysis.
Decision
Production dependency: REJECT Architecture/pattern reference: KEEP
6. Argument / evidence graph tooling
EvidenceGraph
Найден open-source Evidence Graph implementation для parsing argumentation structure. Он MIT, но основной код/исследования относятся к 2016–2018 и не выглядят активным production framework.
Что можно переиспользовать концептуально
claim → evidence → support / attack → argument structure
Но
Это NLP argument parsing, а не technical RCA system. Для Investigator полезнее взять graph pattern, чем dependency.
7. Incident RCA landscape
Observed pattern
telemetry/logs/traces → anomaly detection → topology/causal graph → candidate root causes → ranking
Why not make observability platform the core
- Investigator работает не только с telemetry;
- у нас есть documents, releases, version histories и experiments;
- incident platforms часто привязаны к metrics/log/traces semantics;
- нам нужен general causal investigation object.
Reusable lesson
От observability/RCA tooling стоит брать anomaly attribution и topology-aware patterns, но не canonical model Investigator.
8. Сравнительная матрица
| Candidate | Causal graph | RCA | Counterfactual | Uncertainty | Maintenance | Role |
|---|---|---|---|---|---|---|
| DoWhy | STRONG | STRONG | YES | method-dependent | ACTIVE | PRIMARY CAUSAL ENGINE |
| EconML | task-specific | LIMITED | effect estimation | estimators | ACTIVE | TREATMENT EFFECT |
| pgmpy | Bayesian graph | ADAPT | probabilistic | STRONG | active candidate | HYPOTHESIS SCORING |
| CausalNex | YES | ADAPT | YES | Bayesian | EOL | REFERENCE ONLY |
| EvidenceGraph | argument graph | NO | NO | NO | old | REFERENCE |
| Our canonical core | YES | YES | via adapters | EXPLICIT | ours | SYSTEM OF RECORD |
9. Shortlist
PRIMARY: 1. DoWhy / PyWhy GCM COMPLEMENTARY: 2. pgmpy SPECIALIST: 3. EconML REFERENCE ONLY: 4. CausalNex 5. EvidenceGraph 6. incident-RCA architecture patterns
Likely architecture hypothesis
Our Investigator Core
|
+-- Hypothesis / Evidence graph
|
+-- DoWhy adapter
| causal attribution / counterfactual / RCA
|
+-- pgmpy adapter
| probabilistic hypothesis update
|
+-- EconML adapter
only quantitative treatment-effect cases
Qwen 30B:
generate candidate hypotheses
extract possible mechanism
propose discriminating evidence
Policy:
validate / score / route
never accept Qwen causal assertion directly
10. Practical spike
Controlled investigation set
CASE A — confounded correlation A and B both caused by C expected: reject A→B naive cause CASE B — true chain A→B→C expected: recover chain / mediator CASE C — two competing causes A→Y and B→Y expected: contributor model, no forced single root CASE D — version regression release V2 → behavior change with environment confounder expected: scope-aware result CASE E — telemetry anomaly service topology + latency increase expected: root cause ranking CASE F — treatment effect config flag on/off + covariates expected: EconML suitable CASE G — sparse documentary evidence no numeric dataset expected: library cannot fake certainty; our hypothesis workflow stays primary
Benchmark DoWhy
graph mapping cost RCA correctness counterfactual usability confounder handling explainability runtime integration effort
Benchmark pgmpy
posterior update competing hypothesis ranking sensitivity to priors missing evidence explainability
Hard gates
no correlation→cause shortcut confounder case passes alternative hypothesis retained uncertainty preserved graph exportable canonical IDs preserved no hidden cloud dependency resource fit on server2 results reproducible