AI CURATOR / 15 / MVP ARCHITECTURE / ENGINE-NEUTRAL / 2026
MVP Curator: архитектура без привязки к Cognee/RAGFlow.
Сборка всех уже определённых контрактов в одну рабочую архитектуру Curator. Storage engine остаётся заменяемым через adapter, а policy, provenance, versioning, permissions, audit, review и verification принадлежат нашей системе и не зависят от vendor platform.
Главное правило: benchmark выбирает только storage/retrieval implementation. Он не должен менять логику Curator и не должен превращать vendor API в архитектурный центр системы.
1. Что входит в MVP
- приём EvidencePack / candidate от Researcher;
- canonical/provenance processing;
- Policy Engine;
- REJECT / RUN_ONLY / PROMOTE / HUMAN_REVIEW;
- VersionScope и applicability;
- dedup и source independence;
- conflict preservation;
- PromotionManifest;
- permanent storage через adapter;
- retrieval verification перед commit;
- read-only API для Writer/Researcher;
- review queue;
- audit trail;
- rollback promotion;
- freshness/stale state.
2. Логическая схема
RESEARCHER
|
| propose_candidate
v
+----------------------+
| CURATOR API / FACADE |
+----------------------+
|
v
+----------------------+
| INPUT VALIDATOR |
+----------------------+
|
v
+----------------------+
| CANONICAL / |
| PROVENANCE LAYER |
| (Docling candidate) |
+----------------------+
|
v
+----------------------+
| POLICY ENGINE |
| rights |
| authority |
| version |
| applicability |
| dedup |
| conflict |
| reuse value |
+----------------------+
|
+--------------------------+
| | |
REJECT RUN_ONLY HUMAN_REVIEW
| | |
audit audit queue
|
v
HUMAN
|
v
decision
|
v
PROMOTE
|
v
+----------------------+
| PROMOTION MANIFEST |
+----------------------+
|
v
+----------------------+
| WRITE SERVICE |
+----------------------+
|
v
+----------------------+
| STORAGE ADAPTER |
| Cognee / RAGFlow / |
| Postgres fallback |
+----------------------+
|
v
+----------------------+
| RETRIEVAL VERIFY |
+----------------------+
|
PASS / FAIL
|
+---- FAIL → rollback
|
v
CURRENT KNOWLEDGE
|
v
READ-ONLY SEARCH FOR WRITER / RESEARCHER
3. Компоненты
| Компонент | Ответственность |
|---|---|
| Curator API/Façade | единственная публичная точка доступа к Curator |
| Input Validator | schema, required provenance, trace IDs |
| Canonical Layer | SourceRecord / Document / Passage |
| Policy Engine | решение REJECT/RUN_ONLY/PROMOTE/REVIEW |
| Dedup Resolver | hash/near duplicate/source relations |
| Version Resolver | applicability/version scope |
| Conflict Analyzer | conflict taxonomy и resolution routing |
| Promotion Builder | PromotionManifest |
| Write Service | controlled permanent write |
| Storage Adapter | vendor translation only |
| Retrieval Verifier | post-write smoke/golden verification |
| Review Queue | human-required cases |
| Audit Store | immutable decision/action history |
| Freshness Scheduler | stale/recheck triggers |
4. Основные flows
A — Promote
candidate → validate → canonicalize → policy gates PASS → PromotionManifest → write → retrieval verify → audit commit → CURRENT
B — Run only
candidate → policy says useful but not permanent → save minimal audit/evidence refs → available only for current run → expires / not indexed permanent
C — Human review
candidate → ambiguous critical gate → ReviewCase OPEN → human decision → promote / run_only / reject / more research
D — Source update
source changed → create new CanonicalDocument revision → compare scope/version → curate changed candidates → partial/full supersede links → verification → preserve history
5. Data domains
PROVENANCE DOMAIN SourceRecord CanonicalDocument PassageRecord KNOWLEDGE DOMAIN KnowledgeItem KnowledgeSupport VersionScope FreshnessState GOVERNANCE DOMAIN PolicyDecision PromotionManifest ConflictRecord SupersedeLink ReviewCase OPERATIONS DOMAIN AuditEvent WriteTransaction VerificationResult RollbackRecord
Разделение доменов важно: vendor vector/graph store не обязан хранить абсолютно всё. Audit/governance records можно держать в нашем relational control plane даже если retrieval engine другой.
6. Storage Adapter boundary
interface PermanentKnowledgeAdapter: health() upsert_source() upsert_document() upsert_passages() upsert_knowledge_items() retrieve() retrieve_by_id() update_status() supersede() remove_from_current_retrieval() backup() restore() verify_capabilities()
Adapter НЕ решает
- можно ли PROMOTE;
- какой источник authoritative;
- какие rights допустимы;
- что считать conflict;
- что supersede;
- нужен ли human review.
7. Security architecture
Writer token → read scope only Researcher token → read + propose scope Curator service credential → controlled write Admin credential → destructive maintenance → never exposed to agent
Network boundary
agents
|
v
Curator API
|
+---- read service
|
+---- policy service
|
+---- write service
|
v
private storage network
Vendor ingestion API не должен быть доступен Researcher напрямую.
8. Deployment topology MVP
server2
|
+-- Qwen 30B service
|
+-- curator-api
|
+-- curator-worker
|
+-- curator-control-db
| audit
| policy decisions
| review queue
| version/conflict metadata
|
+-- document/provenance layer
| Docling candidate
|
+-- permanent knowledge engine
| adapter:
| Cognee
| OR RAGFlow
| OR Postgres fallback
|
+-- optional object storage
canonical artifacts / snapshots
Почему control DB отдельно
- не зависеть от vendor schema;
- иметь стабильный audit;
- переключить knowledge engine без потери governance state;
- простое human review;
- rollback metadata;
- migration control.
9. MVP scope — строим
MUST HAVE [ ] Curator API [ ] schemas [ ] Policy Engine [ ] Source/Document/Passage model [ ] KnowledgeItem model [ ] VersionScope [ ] basic dedup [ ] conflict records [ ] PromotionManifest [ ] storage adapter interface [ ] one chosen adapter [ ] retrieval verifier [ ] read-only search [ ] audit [ ] human review queue [ ] rollback promotion [ ] golden tests
10. После MVP — отложить
DEFER Graphiti temporal subsystem advanced semantic dedup automatic source authority learning complex trust reputation model multi-engine federation distributed Curator workers automatic long-horizon source watching advanced rights automation full curator UI cross-language knowledge merging probabilistic belief propagation
Graphiti остаётся optional. Не включать его только ради красивого temporal graph, если VersionScope + SupersedeLink уже закрывают MVP.
11. Definition of MVP Architecture Done
- engine-neutral control plane определён;
- write boundary определён;
- policy не зависит от vendor;
- canonical IDs не зависят от vendor;
- storage adapter contract определён;
- control DB отделён от retrieval engine;
- promotion commit включает retrieval verification;
- human review встроен в архитектуру;
- rollback встроен в архитектуру;
- version/history не уничтожаются;
- Writer/Researcher permanent write запрещён;
- MVP scope и deferred scope разделены;
- выбор Cognee/RAGFlow можно сделать позже без redesign control plane.
Следующий документ: `AI_curator_16_план_реализации_MVP.html` — пошаговый coding plan этой engine-neutral архитектуры: пакеты, модули, порядок реализации, migration points, tests и Definition of Curator MVP Done.