AI INVESTIGATOR / 01 / MASTER PLAN / 2026
Investigator: главный план модуля.
Investigator — модуль причинно-следственного расследования. Он берёт уже собранные факты, события, версии, конфликты и пробелы, формирует проверяемые гипотезы, ищет альтернативные объяснения, строит causal chain и возвращает evidence-backed выводы с явным уровнем уверенности.
Главное правило: Investigator не «угадывает причину». Он обязан хранить competing hypotheses, counterevidence, unresolved gaps и отделять корреляцию от причинности.
1. Миссия Investigator
- объяснять «почему произошло» и «что наиболее вероятно вызвало»;
- строить competing hypotheses;
- собирать supporting и counter evidence;
- искать missing links в causal chain;
- отделять cause, contributing factor, trigger и correlation;
- фиксировать uncertainty и alternative explanations;
- запрашивать Researcher там, где evidence недостаточно;
- создавать investigation artifacts в Dossier;
- передавать Skeptic проверяемые causal claims.
2. Границы модуля
| Не делает | Кто делает |
|---|---|
| широкий поиск источников с нуля | Researcher |
| решает permanent RAG promotion | Curator |
| следит за обновлениями источников | Source Watch |
| хранит всю историю темы | Dossier |
| проверяет готовый draft целиком | Skeptic |
| проводит физический/численный эксперимент | Experiment |
| пишет финальную статью | Writer |
Anti-pattern: Investigator получил временную последовательность A→B и автоматически объявил A причиной B.
3. Investigation types
ROOT_CAUSE INCIDENT_CAUSE CHANGE_CAUSE FAILURE_CAUSE BEHAVIOR_CAUSE PERFORMANCE_CAUSE COMPATIBILITY_CAUSE SECURITY_CAUSE VERSION_REGRESSION CONTRADICTION_RESOLUTION UNKNOWN_MECHANISM
Typical questions
Почему после firmware 3.2 изменилось поведение? Почему два официальных документа противоречат друг другу? Что вызвало деградацию производительности? Это regression, configuration issue или hardware difference? Какой фактор является root cause, а какой trigger?
4. Investigation workflow
1. Define investigation question 2. Freeze scope 3. Collect current dossier context 4. Build event/claim graph 5. Generate hypotheses 6. Identify discriminating evidence 7. Route evidence gaps to Researcher 8. Score support/counterevidence 9. Build causal chain 10. Test alternatives 11. Produce provisional verdict 12. Send causal claims to Skeptic 13. Store investigation result in Dossier
Never skip
alternative hypothesis counterevidence version scope temporal ordering missing evidence confidence
5. Core data model
Investigation
{
"investigation_id": "inv_...",
"dossier_id": "...",
"question": "...",
"type": "ROOT_CAUSE",
"scope": {...},
"status": "DRAFT|ACTIVE|WAITING_RESEARCH|REVIEW|CLOSED",
"hypothesis_refs": [...],
"evidence_refs": [...],
"causal_chain_refs": [...],
"open_gap_refs": [...],
"revision": 4
}
Hypothesis
{
"hypothesis_id": "...",
"statement": "...",
"role": "ROOT_CAUSE|CONTRIBUTOR|TRIGGER|ALTERNATIVE",
"status": "OPEN|SUPPORTED|PARTIAL|WEAKENED|REJECTED",
"support_refs": [...],
"counter_refs": [...],
"required_tests": [...],
"confidence": 0.62
}
CausalLink
{
"from": "event_or_factor_A",
"relation": "CAUSES|ENABLES|TRIGGERS|CONTRIBUTES_TO|CORRELATES_WITH",
"to": "event_or_effect_B",
"mechanism": "...",
"evidence_refs": [...],
"counterevidence_refs": [...],
"confidence": 0.74
}
6. Causal discipline
Minimum causal checks
temporal precedence scope match mechanism plausibility alternative causes confounders dose/response where applicable intervention/experiment evidence independent corroboration version/environment compatibility
Verdict vocabulary
CAUSAL_SUPPORTED CAUSAL_WITH_LIMITS CONTRIBUTING_FACTOR TRIGGER_ONLY CORRELATION_ONLY INSUFFICIENT_EVIDENCE CONFLICTING_EVIDENCE ALTERNATIVE_MORE_LIKELY
Корреляция — отдельный relation type, а не слабая версия CAUSES.
7. Integration routing
Researcher
Investigator finds: missing discriminating evidence → ResearchRequest Example: "Find pre/post-3.2 release notes mentioning scheduler change."
Dossier
stores: InvestigationRef Hypothesis CausalLink evidence bundles open causal gaps final/provisional verdict
Skeptic
verify: causal claim support sufficiency scope alternative explanations overstatement
Experiment
if hypothesis can be practically tested: → ExperimentRequest → result returns as evidence
8. Reuse-first research обязателен
Категории для GitHub/open-source исследования
- root cause analysis systems;
- causal inference libraries;
- Bayesian networks / probabilistic reasoning;
- knowledge graph causal reasoning;
- incident investigation tooling;
- hypothesis tracking systems;
- argument/evidence graph frameworks;
- counterfactual/causal graph libraries;
- LLM research agents with hypothesis loops.
Potential candidates to inspect
DoWhy EconML CausalNex pgmpy PyWhy ecosystem OpenTelemetry + incident/RCA projects argument/evidence graph libraries Graphiti/OpenCTI-style graph patterns Bayesian reasoning libraries
Evaluation
license self-hosted Python/API fit causal graph model hypothesis support counterevidence support observational vs intervention assumptions Qwen integration resource footprint explainability exportability domain fit for technical investigations
README недостаточно. Нужен practical spike на controlled investigations с известной causal structure.
9. Golden investigation tests
| Case | Expected |
|---|---|
| A before B but no mechanism | CORRELATION_ONLY / insufficient |
| confounder explains both A and B | reject naive A→B |
| version mismatch | hypothesis weakened/rejected |
| official docs disagree | CONFLICTING_EVIDENCE + scope test |
| experiment isolates one factor | confidence increases |
| counterevidence appears | hypothesis score decreases |
| multiple contributing factors | no forced single root cause |
| missing discriminating evidence | ResearchRequest generated |
10. План mini-серии Investigator
AI_investigator_1_ГЛАВ_ПЛАН.html ↓ AI_investigator_2_github_research.html ↓ AI_investigator_3_детальное_исследование_финалистов.html ↓ AI_investigator_4_benchmark_и_golden_set.html ↓ AI_investigator_5_hypothesis_causal_policy.html ↓ AI_investigator_6_MCP_API_контракты.html ↓ AI_investigator_7_evidence_graph_и_scoring.html ↓ AI_investigator_8_failure_security_tests.html ↓ AI_investigator_9_MVP_архитектура.html ↓ AI_investigator_10_план_реализации_MVP.html
11. Definition of Investigator Done
[ ] investigation object [ ] scope freeze [ ] competing hypotheses [ ] support + counterevidence [ ] causal link model [ ] temporal ordering [ ] confounder handling [ ] version/environment scope [ ] Researcher gap routing [ ] Experiment routing [ ] Skeptic verification [ ] Dossier persistence [ ] explicit uncertainty [ ] no correlation→cause shortcut [ ] no direct permanent knowledge mutation
Следующий документ: `AI_investigator_2_github_research.html` — reuse-first обзор PyWhy/DoWhy, EconML, CausalNex, pgmpy, Bayesian/argument graph tooling и incident RCA frameworks с shortlist для practical spike.