Контролируемые эксперименты как отдельный инженерный модуль: формулировка гипотезы → дизайн вмешательства → запуск → измерение → анализ → воспроизводимый артефакт → передача результата Investigator и Skeptic.
Experiment — модуль, который превращает спорные причинные гипотезы в проверяемые вмешательства. Он не «угадывает» результат и не подменяет исследование. Его задача — спроектировать контролируемую проверку, сохранить условия и измерения, обеспечить воспроизводимость и вернуть структурированный результат в расследование.
| Модуль | Ответственность | Experiment не забирает |
|---|---|---|
| Researcher | Внешние источники и исследования | Web research, поиск документации и источников |
| Investigator | Причинные гипотезы и causal verdict | Финальную причинную интерпретацию |
| Skeptic | Независимая проверка claim/result | PASS/BLOCK публикационной достоверности |
| Dossier | Рабочее хранилище кейса | Долгосрочную семантику расследования |
| Curator | Permanent RAG promotion | Решение о постоянном знании |
| Source Watch | Мониторинг источников | Change detection |
| Writer | Финальный текст | Редактуру и публикационную формулировку |
AI_experiment_1_ГЛАВ_ПЛАН.html — границы, цикл, серия, архитектурные принципы.AI_experiment_2_github_research.html — GitHub/open-source landscape для orchestration, DOE, experiment tracking, statistical analysis, reproducibility.AI_experiment_3_детальное_исследование_финалистов.html — shortlist, license/security/self-hosted/Qwen/server2 fit.AI_experiment_4_benchmark_и_golden_set.html — practical spike plan, golden experiments, hard gates.AI_experiment_5_experiment_design_policy.html — канонический дизайн эксперимента, controls, randomization, stopping policy, leakage.AI_experiment_6_MCP_API_контракты.html — API/MCP surface, permissions, revisions, job lifecycle.AI_experiment_7_results_statistics_reproducibility.html — measurements, effect sizes, uncertainty, artifacts, reproducibility.AI_experiment_8_failure_security_tests.html — poisoning, spoofing, p-hacking, leakage, stale runs, permissions, rollback.AI_experiment_9_MVP_архитектура.html — canonical core + adapters + workers + server2 controls.AI_experiment_10_план_реализации_MVP.html — phases, migrations, spikes, benchmark, ADR, rollout, Definition of Done.1. Receive hypothesis / open gap 2. Freeze scope + version + environment 3. Define intervention and control 4. Define primary metric(s) 5. Define guardrail metric(s) 6. Define sample / repetitions / stopping policy 7. Validate design for leakage / confounders 8. Produce immutable ExperimentPlan revision 9. Execute through sandboxed runner 10. Collect raw observations 11. Validate data integrity 12. Compute descriptive/statistical analysis 13. Package reproducibility artifacts 14. Produce ExperimentResult 15. Route result to Investigator 16. Route publishable claim to Skeptic 17. Persist references in Dossier
Любое изменение существенных параметров после старта создаёт новую revision; предыдущий план и результат сохраняются.
{
"Experiment": {
"experiment_id": "exp_...",
"investigation_id": "inv_...",
"hypothesis_ref": "hyp_...",
"status": "DRAFT|READY|RUNNING|ANALYZING|COMPLETED|FAILED|CANCELLED|STALE",
"scope": {},
"plan_revision": 3,
"run_refs": [],
"result_ref": null
},
"ExperimentPlan": {
"question": "...",
"intervention": {},
"control": {},
"primary_metrics": [],
"guardrails": [],
"randomization": {},
"replications": null,
"stopping_policy": {},
"assumptions": [],
"risks": []
},
"ExperimentRun": {
"run_id": "...",
"environment_fingerprint": "...",
"input_hash": "...",
"seed": 42,
"artifact_refs": [],
"raw_measurement_refs": []
},
"ExperimentResult": {
"outcome": "SUPPORTS|WEAKENS|INCONCLUSIVE|INVALID",
"effect": {},
"uncertainty": {},
"limitations": [],
"reproducibility": {},
"provenance": {}
}
}
README недостаточно. До реального benchmark нельзя объявлять библиотеку «победителем».
Benchmark должен измерять корректность жизненного цикла эксперимента, воспроизводимость, статистическую дисциплину и влияние на server2. Без реального доступа к server2 создаётся harness/runbook — но не выдумываются p50/p95 и throughput.
| Категория | Golden cases |
|---|---|
| Контроль | Отсутствующий control, неверный baseline, contamination между группами. |
| Статистика | Multiple comparisons, low power, fake precision, optional stopping, p-hacking. |
| Scope/version | Разные версии ПО, mismatch окружения, stale result. |
| Reproducibility | Seed/config/input hash/artifacts missing; повторный запуск не совпадает. |
| Failure | Worker crash, partial write, corrupted artifact, timeout, engine outage. |
| Security | Malicious input, command injection in runner, forged ExperimentResult, unauthorized mutation. |
fabricated result = 0 unauthorized result mutation = 0 stale run accepted as current = 0 lost provenance = 0 hidden failed runs = 0 missing primary metric after start = 0 Qwen invented measurement = 0 optional stopping without explicit policy = 0 scope/version bypass = 0 reproducibility artifact loss = 0
Qwen 30B остаётся приоритетной нагрузкой server2. Экспериментальные workers не должны вытеснять основную LLM.
core API / CRUD → lightweight, always available Qwen planning pass → priority-aware queue statistical analysis → bounded worker pool containerized execution → explicit CPU/RAM/time limits heavy repetitions → throttled / resumable benchmark → collect real p50/p95 + resource impact on server2
AI_experiment_2_github_research.html