AI INVESTIGATOR / 01 / MASTER PLAN / 2026

Investigator: главный план модуля.

Investigator — модуль причинно-следственного расследования. Он берёт уже собранные факты, события, версии, конфликты и пробелы, формирует проверяемые гипотезы, ищет альтернативные объяснения, строит causal chain и возвращает evidence-backed выводы с явным уровнем уверенности.

Главное правило: Investigator не «угадывает причину». Он обязан хранить competing hypotheses, counterevidence, unresolved gaps и отделять корреляцию от причинности.

1. Миссия Investigator

2. Границы модуля

Не делаетКто делает
широкий поиск источников с нуляResearcher
решает permanent RAG promotionCurator
следит за обновлениями источников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 исследования

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

CaseExpected
A before B but no mechanismCORRELATION_ONLY / insufficient
confounder explains both A and Breject naive A→B
version mismatchhypothesis weakened/rejected
official docs disagreeCONFLICTING_EVIDENCE + scope test
experiment isolates one factorconfidence increases
counterevidence appearshypothesis score decreases
multiple contributing factorsno forced single root cause
missing discriminating evidenceResearchRequest 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.