AI DOSSIER / 04 / BENCHMARK + COMPARISON / 2026
Practical benchmark Dossier.
Единый protocol для TriliumNext, OpenCTI Community Edition и Aleph. Цель — измерить не «количество функций», а пригодность для реального Dossier на server2: canonical mapping, provenance, versioning, conflicts, timeline, automation, export и ресурсную совместимость с Qwen 30B.
Главное правило: benchmark должен завершиться не красивой таблицей, а проверяемым решением REUSE / ADAPT / BUILD. До запуска на server2 никакие цифры и победители не считаются установленными.
1. Что benchmark должен ответить
- может ли кандидат хранить Dossier без потери canonical semantics;
- можно ли безопасно отделить vendor IDs от наших IDs;
- можно ли держать старую и новую версии одновременно;
- можно ли хранить конфликтующие claims без destructive overwrite;
- есть ли нормальный timeline/event path;
- можно ли автоматизировать через API без UI hacks;
- можно ли экспортировать всё без lock-in;
- можно ли дать Writer read-only, Researcher append/update;
- сколько RAM/CPU/disk съедает платформа рядом с Qwen 30B;
- не проще ли Postgres + наш façade + лёгкий UI.
2. Shared benchmark dataset
5 dossiers ENTITIES: 20 products/models 8 vendors 15 firmware versions 30 components 10 standards SOURCES: 200 SourceRef 100 PDF/manuals 40 web pages 20 GitHub/release artifacts 40 structured records KNOWLEDGE: 300 ClaimRef 120 EvidenceBundle 100 TimelineEvent 30 Conflict 40 OpenQuestion 20 ResearchRunRef 15 CuratorDecisionRef
Dataset qualities
- русский + английский текст;
- одинаковые названия моделей у разных vendors;
- несколько прошивок одного продукта;
- частично конфликтующие manuals/releases;
- duplicate/mirror sources;
- obsolete source;
- claims with partial scope;
- documents with attachments.
3. Mandatory scenarios
S1 — Create dossier
create Product Dossier → add entities → add sources → add open questions → export canonical representation
S2 — Research append
Researcher adds: new source new claim evidence bundle timeline event research run ref Expected: history preserved actor visible revision increments
S3 — Version update
Firmware 3.1: claim A = current New evidence: Firmware 3.2 changes behavior Expected: A remains historical new scoped claim B timeline event no silent overwrite
S4 — Conflict
Source 1 says X Source 2 says not-X Expected: both evidence paths retained Conflict object/queryable state no automatic truth overwrite
S5 — Writer read
query: "current context for Model X firmware 3.2" Expected: current claims relevant evidence timeline conflicts open questions exclude stale 3.1 as current
S6 — Merge
Dossier A + Dossier B → deduplicate entities → preserve source provenance → preserve history → retain old dossier IDs as aliases
S7 — Archive
archive dossier → read/export still works → no accidental active updates
S8 — Full export + restore
export destroy test instance fresh instance import Expected: canonical IDs relations attachments refs timeline conflicts questions history as far as supported
4. Canonical mapping benchmark
| Object | Required behavior | Trilium | OpenCTI | Aleph |
|---|---|---|---|---|
| Dossier | container + metadata | measure | measure | measure |
| Entity | typed + stable ID | measure | measure | measure |
| Claim | first-class/queryable | measure custom cost | measure custom cost | measure custom cost |
| EvidenceBundle | support/counter/conflict | measure | measure | measure |
| TimelineEvent | time + entity links | measure | measure | measure |
| Conflict | parallel evidence | measure | measure | measure |
| OpenQuestion | workflow state | measure | measure | measure |
| Revision | immutable trace | measure | measure | measure |
Mapping cost scale
0 = native exact fit 1 = native generic primitive 2 = template/schema adaptation 3 = custom extension/plugin 4 = external sidecar required 5 = fundamentally awkward
5. Resource benchmark on server2
Measure at idle
RAM CPU disk container count open file count background IO
Measure under load
100 entity writes 1000 relation writes 100 document ingest 500 search requests 100 timeline queries 50 concurrent API operations
Record
p50 / p95 API latency peak RAM peak CPU disk growth indexing backlog restart recovery time backup time restore time
Coexistence test
Qwen 30B running + Dossier candidate idle + Dossier ingest load observe: Qwen latency delta OOM risk CPU contention disk IO contention
Если Dossier noticeably degrades Qwen 30B on server2, богатая feature set не спасает кандидат.
6. Hard gates
G1 SELF_HOSTED G2 LICENSE ACCEPTABLE G3 API WRITE/READ G4 CANONICAL ID PRESERVATION G5 PROVENANCE G6 VERSION COEXISTENCE G7 CONFLICT RETENTION G8 EXPORT/MIGRATION G9 ACCESS CONTROL PATH G10 RESOURCE FIT G11 BACKUP/RESTORE G12 NO PERMANENT-RAG BYPASS
Automatic FAIL
- старый claim перезаписывается без trace;
- нельзя выгрузить relations/evidence;
- API недостаточен и требуется UI automation;
- vendor ID вынужденно становится нашим canonical ID;
- conflict нельзя представить без удаления одной стороны;
- runtime не помещается рядом с Qwen 30B;
- license incompatible with intended deployment.
7. Weighted score after hard gates
| Category | Weight |
|---|---|
| Canonical model fit | 20% |
| Provenance + history | 15% |
| Timeline/version/conflicts | 15% |
| API/automation | 15% |
| Resource fit | 15% |
| Human workspace UX | 8% |
| Export/migration | 5% |
| Operational simplicity | 5% |
| Extension cost | 2% |
Decision interpretation
REUSE native fit + low custom layer ADAPT strong reusable core, but canonical semantics remain ours BUILD candidate fails hard gates or adaptation cost > simple own core
8. Benchmark artifacts
dossier-benchmark/ ├── dataset/ │ ├── canonical.jsonl │ ├── documents/ │ └── attachments/ ├── adapters/ │ ├── trilium/ │ ├── opencti/ │ └── aleph/ ├── runs/ │ ├── trilium/ │ ├── opencti/ │ └── aleph/ ├── metrics/ │ ├── mapping.csv │ ├── latency.csv │ ├── resources.csv │ ├── correctness.json │ └── migration.json ├── screenshots/ └── comparison.json
Every run stores
candidate version docker image/tag config license snapshot hardware Qwen state dataset checksum start/end time raw API outputs errors resource metrics
9. ADR-ready decision template
DECISION: REUSE / ADAPT / BUILD CONTEXT: why Dossier exists CANDIDATES: TriliumNext OpenCTI CE Aleph Minimal Postgres baseline HARD GATES: pass/fail MEASUREMENTS: mapping resources API migration security DECISION: ... WHY: ... REJECTED: ... CONSEQUENCES: ... ROLLBACK: ...
Mandatory baseline
Нужно сравнивать не только три продукта между собой, но и с минимальным baseline:
Postgres + canonical schema + simple REST/MCP façade + attachment/object storage + optional lightweight UI
Если baseline закрывает 90% Dossier semantics значительно проще, BUILD/ADAPT может быть правильнее полного reuse платформы.
10. Definition of Benchmark Done
[ ] identical dataset [ ] identical scenarios [ ] all candidates pinned [ ] minimal baseline included [ ] mapping cost measured [ ] provenance tested [ ] version coexistence tested [ ] conflicts tested [ ] timeline tested [ ] API automation tested [ ] permissions path tested [ ] full export tested [ ] restore tested [ ] idle/load resources measured [ ] Qwen coexistence measured [ ] hard gates calculated [ ] raw results saved [ ] no fabricated metrics [ ] ADR can be written from evidence
Следующий документ: `AI_dossier_5_data_model_и_timeline.html` — независимо от benchmark winner зафиксировать canonical engine-neutral Dossier model: entities, source/document refs, claims, evidence bundles, events, open questions, conflicts и version scopes.