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

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

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

ObjectRequired behaviorTriliumOpenCTIAleph
Dossiercontainer + metadatameasuremeasuremeasure
Entitytyped + stable IDmeasuremeasuremeasure
Claimfirst-class/queryablemeasure custom costmeasure custom costmeasure custom cost
EvidenceBundlesupport/counter/conflictmeasuremeasuremeasure
TimelineEventtime + entity linksmeasuremeasuremeasure
Conflictparallel evidencemeasuremeasuremeasure
OpenQuestionworkflow statemeasuremeasuremeasure
Revisionimmutable tracemeasuremeasuremeasure

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

7. Weighted score after hard gates

CategoryWeight
Canonical model fit20%
Provenance + history15%
Timeline/version/conflicts15%
API/automation15%
Resource fit15%
Human workspace UX8%
Export/migration5%
Operational simplicity5%
Extension cost2%

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.