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

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 Validatorschema, required provenance, trace IDs
Canonical LayerSourceRecord / Document / Passage
Policy Engineрешение REJECT/RUN_ONLY/PROMOTE/REVIEW
Dedup Resolverhash/near duplicate/source relations
Version Resolverapplicability/version scope
Conflict Analyzerconflict taxonomy и resolution routing
Promotion BuilderPromotionManifest
Write Servicecontrolled permanent write
Storage Adaptervendor translation only
Retrieval Verifierpost-write smoke/golden verification
Review Queuehuman-required cases
Audit Storeimmutable decision/action history
Freshness Schedulerstale/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 НЕ решает

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 отдельно

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

Следующий документ: `AI_curator_16_план_реализации_MVP.html` — пошаговый coding plan этой engine-neutral архитектуры: пакеты, модули, порядок реализации, migration points, tests и Definition of Curator MVP Done.