AI INVESTIGATOR / 05 / HYPOTHESIS + CAUSAL POLICY / 2026
Hypothesis & Causal Policy.
Engine-neutral policy для Investigator: как создавать и изменять гипотезы, как учитывать supporting/counter evidence, как различать cause/contributor/trigger/correlation, как обрабатывать confounders и как принимать provisional verdict без преждевременной уверенности.
Главное правило: никакой единой «магической confidence». Investigator обязан хранить отдельно evidence confidence, model/statistical confidence, hypothesis belief и verdict certainty.
1. Hypothesis lifecycle
DRAFT → OPEN → SUPPORTED → PARTIAL → WEAKENED → REJECTED Possible transitions: OPEN → SUPPORTED SUPPORTED → WEAKENED WEAKENED → SUPPORTED PARTIAL → REJECTED REJECTED stays historical
- REJECTED hypothesis не удаляется;
- новое counterevidence может понизить previously supported hypothesis;
- status change требует reason + evidence refs;
- Qwen не меняет status напрямую;
- statistical engine не закрывает hypothesis lifecycle.
2. Causal roles
ROOT_CAUSE CONTRIBUTING_FACTOR TRIGGER ENABLING_CONDITION MEDIATOR CONFOUNDER CORRELATED_FACTOR ALTERNATIVE_CAUSE UNKNOWN_ROLE
| Role | Meaning |
|---|---|
| ROOT_CAUSE | underlying factor without which incident is unlikely under defined scope |
| CONTRIBUTING_FACTOR | increases probability/severity but not sufficient alone |
| TRIGGER | proximate event that activates an existing failure condition |
| ENABLING_CONDITION | makes causal path possible |
| MEDIATOR | transmits part/all of causal effect |
| CONFOUNDER | affects both candidate cause and outcome |
| CORRELATED_FACTOR | associated without sufficient causal support |
3. Evidence policy
DIRECT_OBSERVATION MEASUREMENT EXPERIMENT OFFICIAL_DOCUMENT INDEPENDENT_SOURCE LOG_TRACE VERSION_HISTORY EXPERT_ANALYSIS MODEL_RESULT INFERENCE
SUPPORTS WEAKLY_SUPPORTS NEUTRAL WEAKENS CONTRADICTS
{
"evidence_id": "...",
"hypothesis_id": "...",
"direction": "SUPPORTS",
"class": "EXPERIMENT",
"source_refs": [...],
"scope": {...},
"independence_group": "...",
"reliability": "HIGH",
"notes": "..."
}
Пять статей, перепечатавших один пресс-релиз, не считаются пятью независимыми evidence units.
4. Confounder / mediator policy
Before CAUSES: check temporal precedence check scope match check common causes check mediator check alternative cause check selection bias check environment/version check intervention evidence
candidate A→Y if C plausibly causes A and Y: → mark C as CONFOUNDER → weaken naive A→Y → request discriminating evidence
A→M→Y M is not automatically independent second root cause. Store: A CAUSES/CONTRIBUTES_TO M M MEDIATES effect on Y
5. Confidence separation
source_reliability evidence_strength hypothesis_belief statistical_confidence model_confidence verdict_certainty
{
"source_reliability": "HIGH",
"evidence_strength": "MEDIUM",
"hypothesis_belief": 0.70,
"statistical_result": {
"type": "posterior",
"value": 0.74,
"engine": "pgmpy"
},
"qwen_confidence": 0.66,
"verdict_certainty": "MEDIUM"
}
Qwen confidence никогда не выдаётся пользователю как statistical probability.
6. Causal verdict vocabulary
CAUSAL_SUPPORTED CAUSAL_WITH_LIMITS CONTRIBUTING_FACTOR TRIGGER_ONLY ENABLING_CONDITION CORRELATION_ONLY INSUFFICIENT_EVIDENCE CONFLICTING_EVIDENCE ALTERNATIVE_MORE_LIKELY NO_CAUSAL_SUPPORT
| Verdict | Requirements |
|---|---|
| CAUSAL_SUPPORTED | temporal + mechanism + scope + strong evidence + alternatives addressed |
| CAUSAL_WITH_LIMITS | good support but known caveat/limited scope |
| CONTRIBUTING_FACTOR | evidence shows partial influence, not sole/root cause |
| TRIGGER_ONLY | proximate activation, root condition elsewhere |
| CORRELATION_ONLY | association without causal mechanism/support |
| INSUFFICIENT_EVIDENCE | key discriminating evidence absent |
7. Routing policy
Researcher
missing source version history missing independent corroboration missing confounder unresolved mechanism evidence missing → ResearchRequest
Experiment
controlled intervention can discriminate H1 vs H2 or validate mechanism → ExperimentRequest
Skeptic
provisional causal claim ready → verify scope, overstatement, support, alternatives, counterevidence
Dossier
persist: hypothesis revisions evidence links counterevidence open gaps provisional/final verdict external analysis refs
8. Investigation closure
RESOLVED RESOLVED_WITH_LIMITS UNRESOLVED DEFERRED CLOSED_NO_CAUSAL_SUPPORT
[ ] alternatives addressed [ ] counterevidence recorded [ ] version/environment scope explicit [ ] major gaps resolved or accepted [ ] causal vocabulary not overstated [ ] Skeptic review complete for publishable claim [ ] reproducibility refs stored where numerical analysis used
UNRESOLVED — нормальный качественный результат. Это лучше ложного root cause.
9. Policy examples
Firmware update preceded failure
Evidence: failure starts after 3.2 but hardware revision also changed Policy: H1 firmware regression = OPEN/PARTIAL H2 hardware change = OPEN hardware = possible CONFOUNDER/alternative Verdict: INSUFFICIENT_EVIDENCE Route: Researcher + possible Experiment
Config flag experiment
same system flag OFF → no issue flag ON → issue repeated mechanism plausible Verdict: CAUSAL_SUPPORTED or CAUSAL_WITH_LIMITS depending scope
Trigger vs root cause
request spike triggers outage but leaked resource accumulated for 6h request spike: TRIGGER_ONLY resource leak: ROOT_CAUSE candidate
10. Golden policy tests
| Case | Expected |
|---|---|
| temporal only | CORRELATION_ONLY |
| confounder discovered | causal hypothesis weakened |
| strong counterevidence | SUPPORTED can downgrade |
| same root issue + new trigger | trigger separated from cause |
| mediator mistaken as root | correct relation required |
| five copied sources | one independence group |
| Qwen confidence 0.9 | not treated as statistical probability |
| missing evidence | Researcher request |
| testable competing hypotheses | Experiment request |
| uncertain after full analysis | UNRESOLVED allowed |
11. Definition of Policy Done
[ ] hypothesis lifecycle fixed [ ] causal roles fixed [ ] evidence directions fixed [ ] independence groups [ ] confounder checks [ ] mediator checks [ ] alternative causes mandatory [ ] confidence types separated [ ] verdict vocabulary fixed [ ] Researcher routing [ ] Experiment routing [ ] Skeptic routing [ ] closure states [ ] unresolved allowed [ ] rejected hypotheses preserved [ ] policy independent of DoWhy/pgmpy/EconML
Следующий документ: `AI_investigator_6_MCP_API_контракты.html` — investigation lifecycle, hypothesis/evidence operations, causal links, external analysis runs, Researcher/Experiment/Skeptic routing и permissions.