AI INVESTIGATOR / 02 / GITHUB RESEARCH / REUSE-FIRST / 2026-09-07

Open-source landscape для Investigator.

Широкий обзор causal inference, probabilistic reasoning, RCA и argument/evidence graph tooling. Цель — понять, какие части causal reasoning можно переиспользовать, а какие должны остаться нашей domain policy вокруг hypotheses, evidence, counterevidence, scope и verdicts.

Предварительный вывод: DoWhy/PyWhy — главный reusable causal/RCA finalist. pgmpy — сильный complementary candidate для Bayesian networks. EconML полезен для treatment-effect estimation, но уже уже по задаче. CausalNex после EOL 24.06.2026 — только reference.

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
Ни одна causal library сама по себе не заменяет Investigator workflow.

2. DoWhy / PyWhy — PRIMARY FINALIST

Что подтверждено

Особенно релевантно 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

Limits

Статус: PRIMARY FINALIST для causal computation / RCA engine.

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

Статус: SECONDARY SPECIALIST. Benchmark только на подходящих quantitative scenarios.

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

Risk

Bayesian network edges не должны автоматически трактоваться как causal links. Структура и conditional probabilities требуют careful modeling/domain assumptions.

Статус: PRIMARY COMPLEMENTARY FINALIST для Bayesian hypothesis scoring.

5. CausalNex — EOL, production reject

Важно

Репозиторий официально сообщает, что CausalNex больше не поддерживается: 24 июня 2026 проект достиг end-of-life и был discontinued. Future updates, bug fixes и security patches не планируются.

Что в нём было полезного

Decision

Production dependency:
REJECT

Architecture/pattern reference:
KEEP
Не включать CausalNex в server2 runtime.

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.

Статус: REFERENCE ONLY.

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

Reusable lesson

От observability/RCA tooling стоит брать anomaly attribution и topology-aware patterns, но не canonical model Investigator.

8. Сравнительная матрица

CandidateCausal graphRCACounterfactualUncertaintyMaintenanceRole
DoWhySTRONGSTRONGYESmethod-dependentACTIVEPRIMARY CAUSAL ENGINE
EconMLtask-specificLIMITEDeffect estimationestimatorsACTIVETREATMENT EFFECT
pgmpyBayesian graphADAPTprobabilisticSTRONGactive candidateHYPOTHESIS SCORING
CausalNexYESADAPTYESBayesianEOLREFERENCE ONLY
EvidenceGraphargument graphNONONOoldREFERENCE
Our canonical coreYESYESvia adaptersEXPLICIToursSYSTEM 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
Следующий документ: `AI_investigator_3_детальное_исследование_финалистов.html` — глубокий разбор DoWhy/PyWhy и pgmpy, EconML specialist path, exact adapter boundaries и controlled server2 spike.

11. Sources