Background
Audit on 2026-06-01 mapping what VeriSimDB has, what it lacks vs DB theory + current practice, and where the octad gives it unique opportunities. Owner directive: identify functionality missing or extensible from DB theory or its bridges, then drive it.
22 area assessment
- Transactions / concurrency — MVCC + optimistic OCC labelled as Serializable; no real SSI, no Calvin-style cross-peer commit. CRIT / XL.
- Indexing — HNSW + tantivy + Oxigraph + redb + r-tree feature; no PQ/IVF/RaBitQ, no BRIN on temporal, no S2/H3 spatial cells, no composite cross-modal indexes. HIGH / L.
- Query execution — Volcano-style iterator, no vectorised execution, no SIMD, no Cascades. HIGH / L.
- Recovery — WAL with CRC + replay; no ARIES (no LSN), no group commit, no PITR. HIGH / L.
- Replication — KRaft for metadata only; no data-plane replication; leaderless read-fanout federation only. HIGH / XL.
- CAP / PACELC — implicit CP-metadata / AP-data; no per-query consistency knob. MED / M.
- CRDTs — normalizer is heuristic; octad merge NOT verified commutative/associative/idempotent. HIGH (theory) / XL — see frontiers below.
- Schema evolution — no online migration, no projection narrowing, no cross-modality propagation. MED / L.
- Streaming / CDC — absent. EmptySubscription in GraphQL; no NATS/Kafka emit; no materialized views. HIGH / L.
- Temporal — single time axis; NOT bitemporal; no Allen interval algebra. HIGH / M.
- Provenance — hash-chain; NOT PROV-aligned; no why/where/how-provenance distinction. HIGH / L.
- Spatial — Point/LineString/Polygon/MultiPoint/MultiPolygon; no MultiLineString, no GeometryCollection; r-tree feature-flagged; no ST_* functions in VQL. MED / L.
- Semantic — Oxigraph SPARQL; no RDFS/OWL reasoning, no SHACL, no named-graph in VQL. HIGH / L.
- Vector — HNSW only; no PQ/OPQ/RaBitQ/IVF; no multi-vector/ColBERT. HIGH / M.
- Graph — Oxigraph RDF; not property-graph-native; no Cypher/Gremlin/GQL; no graph algos. MED / L.
- Document — tantivy FT; no JSONPath/JMESPath/mongo operators. MED / M.
- Tensor — ndarray; dense only; no SVD/CP/Tucker as queries. MED / L.
- Adaptive / auto-tuning — AdaptiveTuner exists; no workload-aware index selection; selectivity = 0.2 hardcoded; no learned indexes. HIGH / M.
- Security beyond ZKP — no RBAC, no row-level security, no column encryption, no KMS. CRIT / L.
- Observability — telemetry module exists; drift histogram is global not per-modality-pair; no lock-contention metrics. MED / S.
- Federation extensions — HTTP fanout + median-trust Byzantine; no SWIM, no Merkle anti-entropy, no BFT (HotStuff). MED / L.
- Bridges & theory frontiers — no chase algorithm, no cross-modal FDs, no formal multi-modal-join cost model. HIGH (theory) / XL.
Theory-frontier opportunities (unique to this system)
-
Cross-modal composite indexes as algebraic structures — a B+-tree keyed by (vector_centroid, geohash, semantic_lub_type) accelerates octad-shaped queries no current DB indexes. Define over a product space of modality projections with a cost model. Publishable as 'Octad Indexes'.
-
The octad-CRDT class — formalise the cross-product of per-modality join-semilattices as a single CRDT with derived properties. Drift = delta-distance in this lattice. Convergence theorem. Counterpart to Shapiro et al. (2011).
-
Why-provenance for cross-modal queries — lift Buneman/Tan why-provenance to results spanning 8 modalities (drift function as a trust modifier on each witness). Each result row carries (modality_witness_set, drift_score). Coupled to verisim-provenance + ZKP for verifiable why-provenance.
-
Chase-based normalization with proven termination — reformulate verisim-normalizer as a typed chase (oblivious / core / parallel) over the 8-modality schema. Fixed cardinality (8) makes termination provable.
-
Multi-modal join problem with cost model — the join across modalities ('find octads where document text describes the spatial region of the vector cluster') has no published cost model. Define the octad-join algebra.
Five fastest wins
- Bitemporal Version — add valid_from/valid_to to verisim-temporal. SQL:2011 alignment. Hours of work, decades of literature.
- PROOF SHACL(...) — plug into existing VQL-DT proof type framework. One row in vql_type_checker.ex.
- WAL-tailing CDC — verisim-cdc crate, ~300 LoC; emits change events from existing WAL segments.
- Drift histogram tensor — replace global histogram with Hist[m_i × m_j] (28 cells). One file change. Operationally transformative.
- VQL WITH CONSISTENCY clause — grammar mirrors existing WITH DRIFT. ~50 lines.
Five biggest pieces missing
- Data-plane replication — every modality store is single-instance. Deployment-blocker.
- Cross-peer write coordination — read fanout only; no 2PC/Calvin/Paxos commit.
- Authentication / RBAC — ROADMAP §3.1, §3.2 are CRIT and unimplemented.
- CDC + streaming subscriptions — GraphQL ships EmptySubscription. The estate uses NATS as a primitive; this absence is glaring.
- Vector quantisation + multi-vector — stuck at 2020-era ANN; competitors all ship PQ + ColBERT-style.
Background
Audit on 2026-06-01 mapping what VeriSimDB has, what it lacks vs DB theory + current practice, and where the octad gives it unique opportunities. Owner directive: identify functionality missing or extensible from DB theory or its bridges, then drive it.
22 area assessment
Theory-frontier opportunities (unique to this system)
Cross-modal composite indexes as algebraic structures — a B+-tree keyed by
(vector_centroid, geohash, semantic_lub_type)accelerates octad-shaped queries no current DB indexes. Define over a product space of modality projections with a cost model. Publishable as 'Octad Indexes'.The octad-CRDT class — formalise the cross-product of per-modality join-semilattices as a single CRDT with derived properties. Drift = delta-distance in this lattice. Convergence theorem. Counterpart to Shapiro et al. (2011).
Why-provenance for cross-modal queries — lift Buneman/Tan why-provenance to results spanning 8 modalities (drift function as a trust modifier on each witness). Each result row carries (modality_witness_set, drift_score). Coupled to verisim-provenance + ZKP for verifiable why-provenance.
Chase-based normalization with proven termination — reformulate verisim-normalizer as a typed chase (oblivious / core / parallel) over the 8-modality schema. Fixed cardinality (8) makes termination provable.
Multi-modal join problem with cost model — the join across modalities ('find octads where document text describes the spatial region of the vector cluster') has no published cost model. Define the octad-join algebra.
Five fastest wins
Five biggest pieces missing