AI DOSSIER / 03 / FINALISTS DEEP DIVE / 2026-09-07

TriliumNext, OpenCTI, Aleph: детальное исследование.

Три финалиста решают задачу Dossier принципиально по-разному. TriliumNext — лёгкий human-facing knowledge workspace. OpenCTI — зрелая graph/case/investigation platform. Aleph — investigative document/entity system для журналистских расследований. Здесь проверяем не маркетинг, а соответствие нашей модели Dossier.

Предварительный вывод: TriliumNext наиболее естественен как лёгкий интерфейс/рабочее пространство; OpenCTI — самый сильный architecture/reference candidate для graph + case + timeline; Aleph — лучший журналистский reference и возможный document/entity backend. Ни один из трёх не должен владеть нашей canonical Dossier semantics.

1. Что Dossier реально требует

CANONICAL:
Dossier
Entity
SourceRef
DocumentRef
ClaimRef
EvidenceBundle
TimelineEvent
Conflict
OpenQuestion
ResearchRunRef
CuratorDecisionRef

WORKFLOW:
create
append evidence
update timeline
preserve old versions
retain conflicts
merge dossier
archive dossier
export context

SECURITY:
Writer read
Researcher append/update
Curator link only
Human merge/archive
Source Watch event append

NON-NEGOTIABLE:
provenance
revision history
API
export
no permanent-RAG bypass

2. TriliumNext — deep dive

Current project state

Native primitives

Note
Hierarchy
Clone
Attribute
Relation
Template
Attachment
Version history
Search
Note Map
Script API
REST API

Dossier mapping

Dossier objectTrilium mappingFit
Dossierroot note / templateSTRONG
Entitytyped note + labelsSTRONG
Relationnative relationSTRONG
SourceRefnote/attachment/web noteSTRONG
Claimtyped child noteMEDIUM
TimelineEventtyped note + date attributesMEDIUM/CUSTOM
EvidenceBundlenote + relationsMEDIUM/CUSTOM
Conflictrelation + status attributeMEDIUM
OpenQuestiontemplate noteSTRONG
Revisionnote historySTRONG for UI

Very useful 2026 change

В v0.104.0 проект сделал большой акцент на security/interoperability: backend scripting и SQL console теперь отключены по умолчанию, расширены import/export возможности. Для Dossier это хороший сигнал: можно держать automation через REST façade вместо небезопасного встроенного scripting.

Where Trilium wins

Where Trilium loses

Hypothesis: лучший candidate для ADAPT как рабочий UI, но не canonical database.

3. OpenCTI Community Edition — deep dive

Current project state

Native conceptual model

Entities
Relationships
Observables
Reports
Groupings
Cases
Investigations
Workbenches
Timeline
History
Markings
Graph views
Connectors

Очень сильная архитектурная аналогия

Researcher run
   ↓
Workbench / Investigation-like working area
   ↓
Dossier active context
   ↓
Curator decision
   ↓
Permanent knowledge elsewhere

Dossier mapping

Dossier objectOpenCTI mappingFit
DossierCase / Report / GroupingSTRONG structurally
EntitySTIX domain entityVERY STRONG
RelationSTIX relationshipVERY STRONG
Sourceexternal reference / entity / reportSTRONG
TimelineEventevents/time fields + Timeline ViewSTRONG
Investigationnative InvestigationVERY STRONG
Conflictparallel relationships/objectsMEDIUM
OpenQuestioncustom semantics neededWEAK/MEDIUM
Technical product/versioncustom mapping/extensionsMEDIUM

Where OpenCTI wins

Where it loses

Important: OpenCTI может быть лучшим архитектурным донором и одновременно плохим production backend именно для server2.

4. Aleph — deep dive

Project profile

Operational note

Aleph 4.0 moved background processing from Redis queues to RabbitMQ, explicitly to improve persistent task handling for widely varying workloads. That is mature for investigative ingestion, but also signals a materially heavier runtime than Trilium.

Dossier mapping

Dossier objectAleph mappingFit
DossierCollectionSTRONG
DocumentRefdocumentVERY STRONG
EntityFollowTheMoney entityVERY STRONG
Relationentity relationshipsSTRONG
Evidence sourceuploaded/indexed sourceVERY STRONG
Timelineinvestigative timeline patternsMEDIUM/STRONG
Claimcustom object/metadata neededMEDIUM
OpenQuestioncustomWEAK
Conflict semanticscustomWEAK/MEDIUM

Where Aleph wins

Where Aleph loses

Hypothesis: strongest candidate if Dossier evolves toward document-heavy investigation corpus rather than note-centric workspace.

5. Canonical model must stay ours

OUR Dossier Core
  |
  +-- Canonical IDs
  +-- Entity
  +-- Claim
  +-- EvidenceBundle
  +-- TimelineEvent
  +-- Conflict
  +-- OpenQuestion
  +-- VersionScope
  +-- Audit
  |
  +-- Adapter: Trilium
  +-- Adapter: OpenCTI
  +-- Adapter: Aleph

Why

6. Runtime / server2 risk

CandidateExpected complexityMain risk
TriliumNextLOW/MEDIUMUI/storage semantics insufficient
OpenCTIHIGHresource + domain overkill
AlephHIGHingest/search/queue stack footprint

Measure, don't guess

idle RAM
CPU idle
disk footprint
startup time
1000 entity ingest
500 document ingest
API p50/p95
search p50/p95
timeline query
backup/export
reindex/restart behavior
Не выбирать OpenCTI/Aleph только потому, что их data model богаче. На server2 уже живёт Qwen 30B.

7. License / governance

CandidateLicenseImplication
TriliumNextAGPL-3.0legal review before modified network-service integration
OpenCTI CEApache-2.0reuse-friendly; distinguish CE from Enterprise
AlephMITreuse-friendly
alephclientMITeasy API integration candidate

Rule

Не переносить Enterprise feature claims OpenCTI на Community Edition. Не считать AGPL автоматическим запретом — нужен конкретный deployment/legal interpretation.

8. API integration fit

TriliumNext

REST façade
→ create/update notes
→ attributes
→ relations
→ attachments
→ search
→ export

OpenCTI

GraphQL
→ entity CRUD
→ relationships
→ cases/reports
→ investigations
→ timeline-linked objects

Aleph

Aleph API / alephclient
→ collections
→ documents
→ entities
→ bulk upload
→ search/export

Our façade

dossier.create()
dossier.add_entity()
dossier.add_event()
dossier.add_evidence()
dossier.get_context()

NEVER expose vendor API directly
to Writer/Researcher agents.

9. Top risks by candidate

TriliumNext

R1 AGPL integration
R2 weak RBAC for multi-agent service model
R3 timeline custom
R4 evidence semantics custom
R5 automation/API race conditions

OpenCTI

R1 STIX domain mismatch
R2 operational complexity
R3 resource contention with Qwen
R4 CE vs Enterprise assumptions
R5 difficult future migration if canonical IDs leak

Aleph

R1 heavy ingest/search stack
R2 collection model ≠ Dossier semantics
R3 entity schema adaptation
R4 background ingestion complexity
R5 support/release cadence operational burden

10. Exact server2 practical spike

Shared dataset

5 dossiers
20 products/models
15 firmware versions
200 source records
100 PDFs/manuals
300 claims
100 timeline events
30 conflicts
40 open questions
20 research runs

Scenario A — write path

Researcher
→ create dossier
→ add sources
→ add claims
→ add evidence
→ add events
→ preserve provenance

Scenario B — update/version

firmware 3.1 claim
→ add firmware 3.2 source
→ old claim remains
→ new event created
→ conflict/supersede state visible

Scenario C — read path

Writer asks:
"give me current dossier context
for model X firmware 3.2"

Expected:
scoped sources
current claims
conflicts
timeline
open questions
no stale 3.1 claim as current fact

Scenario D — export

full Dossier export
→ canonical JSON
→ attachments refs
→ vendor IDs separate
→ reimport possible

Scenario E — resource

measure:
idle RAM
peak RAM
CPU
disk
API latency
ingest latency
search latency
restart
backup
restore

11. Preliminary decision before benchmark

TRILIUMNEXT
likely ADAPT:
human workspace / UI
possibly storage projection

OPENCTI
likely ADAPT/REFERENCE:
graph/case/timeline patterns
possible backend only if resource fit

ALEPH
likely REUSE/ADAPT:
document-heavy investigative corpus
entity/document ingestion

OUR CODE:
canonical Dossier domain
Claim/EvidenceBundle
OpenQuestion
Conflict semantics
VersionScope
permissions façade
audit
Curator/Researcher integration

Leading architecture hypotheses

OPTION A — LIGHT
Our Dossier Core
+ Postgres
+ Trilium projection/UI

OPTION B — GRAPH HEAVY
Our Dossier Core
+ OpenCTI adapter
+ optional thin custom UI

OPTION C — DOCUMENT HEAVY
Our Dossier Core
+ Aleph document/entity backend
+ lightweight dossier UI
Следующий документ: `AI_dossier_4_benchmark_и_сравнение.html` — единый practical benchmark, hard gates и ADR-ready comparison для TriliumNext vs OpenCTI vs Aleph. Никакого финального REUSE/ADAPT/BUILD решения до измерений на server2.

12. Sources