AI SKEPTIC / 09 / MVP ARCHITECTURE / 2026
MVP Skeptic: единая архитектура проверки.
Сборка всех предыдущих контрактов в рабочую architecture map: Claim/Evidence model, deterministic checkers, local factual scorer, Qwen judge, policy/verdict resolver, routing, report store, audit и failure handling. Framework и scorer остаются адаптерами, а decision logic принадлежит Skeptic.
Главное правило: DeepEval/Ragas/HHEM — сменные исполнители отдельных проверок. Они не определяют severity, BLOCK rules, routing или финальный SkepticReport.
1. Логическая схема
Writer / Researcher
|
v
+----------------------+
| SKEPTIC API / MCP |
+----------------------+
|
v
+----------------------+
| INPUT VALIDATOR |
| DraftPack / ClaimSet |
+----------------------+
|
v
+----------------------+
| CLAIM NORMALIZER |
| Evidence Linker |
| Citation Resolver |
+----------------------+
|
v
+----------------------+
| DETERMINISTIC CHECKS |
| version |
| units/numbers |
| citation existence |
| source independence |
| duplicate lineage |
+----------------------+
|
v
+----------------------+
| LOCAL FACTUAL SCORER |
| HHEM / alternative |
+----------------------+
|
v
+----------------------+
| QWEN 30B JUDGE |
| selective only |
| causality |
| caveats |
| complex contradiction|
+----------------------+
|
v
+----------------------+
| POLICY / VERDICT |
| severity |
| claim verdict |
| BLOCK rules |
| routing |
+----------------------+
|
+-------------------+
| | |
v v v
Writer Researcher Human
|
v
+----------------------+
| SKEPTIC REPORT STORE |
| AUDIT / REVISIONS |
+----------------------+
2. Компоненты
| Component | Responsibility |
|---|---|
| Skeptic API/Façade | submit/read/rerun/workflow tools |
| Input Validator | schema, revision IDs, provenance minimum |
| Claim Normalizer | claim extraction/normalization |
| Evidence Linker | claim↔citation↔EvidenceSpan graph |
| Scope Resolver | version/model/applicability compatibility |
| Numeric Checker | units, limits, ranges, conditions |
| Independence Checker | source lineage/derivative groups |
| Factual Scorer Adapter | HHEM / alternate scorer |
| Judge Adapter | Qwen via DeepEval/Ragas/custom wrapper |
| Contradiction Analyzer | claim graph consistency |
| Policy Resolver | finding type, severity, verdict, routing |
| Report Store | runs/findings/revisions |
| Audit Store | immutable workflow history |
3. Full check flow
submit draft → validate revision → extract/normalize claims → resolve citations/evidence → deterministic checks → HHEM support score → decide which claims need Qwen → Qwen structured judge → contradiction graph → merge signals → policy resolver → SkepticFinding[] → aggregate overall verdict → route required actions → save report + audit
Selective Qwen
Qwen вызывается только когда cheap checks недостаточны или policy требует semantic reasoning.
4. Checker pipeline
Tier 0 — schema
claim exists citation exists evidence trace valid revision valid
Tier 1 — deterministic
version compatibility units numeric conditions source independence duplicate lineage citation availability explicit contradiction edges
Tier 2 — local model
HHEM: evidence → claim support score
Tier 3 — Qwen semantic
causality missing caveat scope overstatement complex contradiction inference-vs-fact reason/action wording
Tier 4 — human
critical disagreement primary-primary conflict ambiguous safety claim override request
5. Adapter boundaries
EvaluationFrameworkAdapter
evaluate_claim() evaluate_faithfulness() run_custom_metric() health() version()
FactualScorerAdapter
score(evidence, claim) batch_score() health() model_info()
QwenJudgeAdapter
judge_claim() judge_contradiction() judge_causality() explain_finding() health()
Adapter НЕ решает
- overall PASS/BLOCK;
- severity;
- routing;
- permission;
- human override;
- final policy.
6. Routing architecture
UNSUPPORTED → Researcher OVERSTATED → Writer VERSION_MISMATCH → Researcher + Writer MISSING_CAVEAT → Writer SOURCE_NOT_INDEPENDENT → Researcher INTERNAL_CONTRADICTION → Writer SAFETY_WEAK_SUPPORT → BLOCK + Researcher/Human
Workflow objects
ResearchRequest CorrectionAttachment ResearchResponse RerunRequest HumanReviewCase
7. State / persistence
skeptic_runs skeptic_reports claims evidence_spans citation_links source_independence_groups caveats contradiction_edges checker_results findings research_requests corrections research_responses human_reviews audit_events
Revision rule
Каждый report привязан к конкретному draft_revision_id и evidence revision set. После правки создаётся новый verification state, а старый report не перезаписывается.
8. Security
Writer: read + submit + correction Researcher: read + submit + evidence response Skeptic: evaluate + route NO publication NO permanent RAG write Human: review/override with reason Admin: maintenance
Critical guardrails
- evidence delimited as data;
- no tool calls from evidence text;
- no fail-open on dependency outage;
- BLOCK override audited;
- revision mismatch rejected;
- service credentials separated.
9. Deployment on server2
server2 | +-- Qwen 30B | +-- skeptic-api | +-- skeptic-worker | +-- skeptic-control-db | +-- HHEM service / local process | +-- evaluation framework package | DeepEval OR Ragas | +-- optional object/log storage
Resource principle
HHEM должен по возможности работать на CPU, чтобы не конкурировать за VRAM с Qwen 30B. Qwen calls batch/queue ограничиваются concurrency policy.
10. MVP — MUST HAVE
[ ] DraftPack / ClaimSet ingest [ ] claim normalization [ ] evidence/citation linking [ ] version checker [ ] numeric checker [ ] source independence checker [ ] HHEM or chosen scorer adapter [ ] Qwen judge adapter [ ] finding taxonomy [ ] severity policy [ ] PASS / WARN / REVISE / BLOCK [ ] Writer/Researcher routing [ ] research request [ ] correction attachment [ ] incremental rerun [ ] report store [ ] audit [ ] failure/degraded states [ ] golden tests
11. DEFER после MVP
full automatic claim extraction from any arbitrary document multilingual scorer fleet multiple Qwen judges voting advanced probabilistic belief fusion full visual review UI cross-article contradiction mining continuous monitoring automatic causal graph discovery agentic web research inside Skeptic
Не превращать Skeptic в Investigator.
12. Definition of MVP Architecture Done
[ ] architecture engine/framework-neutral [ ] deterministic-first pipeline [ ] local scorer separated [ ] Qwen selective [ ] policy owned by Skeptic [ ] framework/scorer adapters replaceable [ ] revision history preserved [ ] routing explicit [ ] human review path explicit [ ] fail-open forbidden [ ] audit complete [ ] server2 resource strategy defined [ ] MVP/deferred split fixed
Следующий и последний файл серии: `AI_skeptic_10_план_реализации_MVP.html` — конкретный coding plan по фазам, пакетам, tests, rollout и Definition of Skeptic MVP Done.