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 должен ответить
- нужен ли DoWhy в MVP или достаточно canonical core;
- даёт ли pgmpy полезный и устойчивый posterior для competing hypotheses;
- на каких задачах EconML действительно оправдан;
- умеет ли система распознавать confounder и mediator;
- сохраняет ли alternative hypothesis после появления сильного фаворита;
- не превращает ли sparse evidence в fake numeric certainty;
- можно ли воспроизвести вывод по stored inputs/assumptions;
- какова цена numerical jobs рядом с Qwen 30B на server2.
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
| Case | Structure | Expected |
|---|---|---|
| G01 | A precedes B, no mechanism | CORRELATION_ONLY |
| G02 | C→A and C→B | confounder detected; reject naive A→B |
| G03 | A→M→Y | mediated path |
| G04 | A→Y and B→Y | multiple contributors retained |
| G05 | A triggers B, C is root cause | TRIGGER_ONLY for A |
| G06 | effect only in version 3.2 | scope-aware causal result |
| G07 | same timing, wrong environment | hypothesis weakened |
| G08 | counterevidence invalidates H1 | H1 downgraded/rejected |
| G09 | experiment isolates factor | causal confidence increases |
| G10 | insufficient discriminating evidence | ResearchRequest, 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
| Metric | Purpose |
|---|---|
| causal direction correctness | avoid reversed cause |
| confounder case pass | critical |
| root-cause ranking | controlled cases |
| assumption transparency | reproducibility |
| mapping effort | integration cost |
| runtime / memory | server2 fit |
| result reproducibility | same 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
| Metric | Target |
|---|---|
| false causal assertion on correlation-only golden | 0 |
| confounder miss on critical goldens | 0 |
| lost competing hypothesis | 0 critical cases |
| scope/version mismatch ignored | 0 |
| counterevidence ignored | 0 |
| fake numeric confidence on sparse case | 0 |
| reproducible analysis artifacts | 100% |
| ResearchRequest on known evidence gap | 100% 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
- correlation-only golden marked causal;
- confounder hidden or ignored;
- Qwen-invented posterior exposed as statistic;
- losing hypothesis deleted instead of preserved;
- analysis cannot be reproduced from stored graph/data/config;
- library IDs replace canonical Investigation IDs;
- heavy job destabilizes Qwen without throttling path.
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.