AI INVESTIGATOR / 04 / BENCHMARK + GOLDEN SET / 2026

Benchmark Investigator.

Formal practical benchmark для проверки canonical Investigator workflow и reusable engines. Проверяем causal discipline, competing hypotheses, confounder handling, Bayesian updates, sparse documentary evidence и resource coexistence с Qwen 30B.

Главное правило: benchmark должен наказывать систему за ложную причинность сильнее, чем за осторожный `INSUFFICIENT_EVIDENCE`. Нельзя улучшать score ценой overclaim.

1. Что benchmark должен ответить

2. Benchmark dataset

30 CONTROLLED INVESTIGATIONS

10 causal graph synthetic
5 Bayesian troubleshooting
5 quantitative intervention
5 version/regression incidents
5 documentary/sparse evidence

Artifacts:
events
claims
sources
measurements
version scopes
known causal graph
known confounders
known alternatives
expected verdict class

Per-case bundle

{
  "case_id": "...",
  "question": "...",
  "scope": {...},
  "evidence": [...],
  "measurements": "optional",
  "golden_graph": {...},
  "golden_hypotheses": [...],
  "expected_verdict": "...",
  "forbidden_overclaims": [...]
}

3. Golden causal cases

CaseStructureExpected
G01A precedes B, no mechanismCORRELATION_ONLY
G02C→A and C→Bconfounder detected; reject naive A→B
G03A→M→Ymediated path
G04A→Y and B→Ymultiple contributors retained
G05A triggers B, C is root causeTRIGGER_ONLY for A
G06effect only in version 3.2scope-aware causal result
G07same timing, wrong environmenthypothesis weakened
G08counterevidence invalidates H1H1 downgraded/rejected
G09experiment isolates factorcausal confidence increases
G10insufficient discriminating evidenceResearchRequest, no forced cause

4. DoWhy benchmark

Suitable cases only

explicit graph
numeric/observational data
candidate causes
target outcome

Tasks

root cause attribution
distribution change attribution
causal influence
intervention
counterfactual
confounder/refutation checks

Measure

MetricPurpose
causal direction correctnessavoid reversed cause
confounder case passcritical
root-cause rankingcontrolled cases
assumption transparencyreproducibility
mapping effortintegration cost
runtime / memoryserver2 fit
result reproducibilitysame inputs/config

5. pgmpy benchmark

Bayesian troubleshooting cases

H1 firmware regression
H2 hardware issue
H3 configuration
H4 environment

Evidence arrives:
E1
E2
E3
...

Measure

posterior ranking correctness
update monotonicity where expected
sensitivity to prior
missing observation handling
contradictory evidence behavior
alternative retention
reproducibility

Adversarial prior test

Запускаем одинаковый evidence bundle с reasonable low/neutral/high priors. Если verdict радикально меняется, Investigator обязан показывать `PRIOR_SENSITIVE` warning.

6. Sparse evidence benchmark

Input

release notes
manual sections
issue comments
two official statements
timeline events
no numeric dataset

Expected system behavior

create multiple hypotheses
map support/counterevidence
test version scope
identify missing discriminating evidence
route Researcher request
possibly request Experiment
produce:
INSUFFICIENT_EVIDENCE
or CAUSAL_WITH_LIMITS

NOT:
0.87 probability invented by Qwen

Critical check

Investigator должен полноценно работать без DoWhy/pgmpy/EconML.

7. Core metrics

MetricTarget
false causal assertion on correlation-only golden0
confounder miss on critical goldens0
lost competing hypothesis0 critical cases
scope/version mismatch ignored0
counterevidence ignored0
fake numeric confidence on sparse case0
reproducible analysis artifacts100%
ResearchRequest on known evidence gap100% critical cases

Secondary metrics

hypothesis ranking
graph edit distance
evidence coverage
verdict calibration
assumption completeness
adapter mapping cost
human review effort

8. server2 coexistence tests

Profiles

A:
Qwen 30B only

B:
Qwen + Investigator core

C:
Qwen + DoWhy small jobs

D:
Qwen + pgmpy inference batch

E:
Qwen + DoWhy simulation/bootstrap burst

F:
Qwen + EconML optional training job

Observe

Qwen p50/p95 latency delta
CPU
RAM
OOM
worker queue time
analysis runtime
system load
reproducibility under throttling

Policy

Numerical jobs должны иметь bounded concurrency; EconML-heavy tasks — отдельную optional queue.

9. Hard gates

G1 SELF_HOSTED
G2 ACCEPTABLE LICENSE
G3 CANONICAL ID PRESERVATION
G4 EXPLICIT ASSUMPTIONS
G5 CORRELATION ≠ CAUSE
G6 CONFOUNDER HANDLING
G7 ALTERNATIVE RETENTION
G8 COUNTEREVIDENCE SUPPORT
G9 VERSION/SCOPE AWARE
G10 REPRODUCIBILITY
G11 EXPORTABLE ARTIFACTS
G12 RESOURCE FIT
G13 NO PERMANENT-RAG BYPASS

Automatic FAIL

10. Benchmark artifacts

investigator-benchmark/
├── cases/
│   ├── causal/
│   ├── bayesian/
│   ├── treatment/
│   ├── regression/
│   └── sparse/
├── golden/
│   ├── expected_graphs.jsonl
│   ├── expected_verdicts.jsonl
│   └── forbidden_overclaims.jsonl
├── runs/
│   ├── canonical-core/
│   ├── dowhy/
│   ├── pgmpy/
│   └── econml/
├── metrics/
│   ├── causal.csv
│   ├── hypotheses.csv
│   ├── resources.csv
│   └── reproducibility.csv
└── comparison.json

Every run stores

code version
library versions
policy version
input graph
input data hash
assumptions
random seeds
outputs
warnings
runtime metrics

11. Decision rules

DoWhy

IF:
passes confounder/root-cause goldens
+ mapping manageable
+ resource fit
→ ADAPT/REUSE causal engine

ELSE:
canonical core remains MVP
DoWhy deferred

pgmpy

IF:
posterior useful
+ prior sensitivity understandable
+ alternatives preserved
→ ADAPT hypothesis scorer

ELSE:
use qualitative scoring in MVP

EconML

ONLY IF:
treatment-effect cases materially benefit

otherwise:
DEFER specialist path
Следующий документ: `AI_investigator_5_hypothesis_causal_policy.html` — formal policy для hypothesis lifecycle, causal verdicts, support/counterevidence, confounders, confidence separation и Researcher/Experiment/Skeptic routing.