Risks & Mitigations
948 words1 tableA design document: it describes the 1.0 target, not what runs today.
| Risk | Reality check | Mitigation |
|---|---|---|
| Scope: this is a multi-hundred-KLOC system | True — and smaller than frankensqlite, on stronger foundations | Agent-swarm methodology with ledger-driven exit criteria (proven twice in-family at this scale); sim-first testing collapses the debugging tail that normally dominates DB schedules; crate boundaries sized for parallel agents |
| Free-Join + factorization + adaptivity interplay is the hardest novel engineering | Correct — this is the crown-jewel risk | Build order inside W5: binary FreeJoin → run-trie WCOJ → factorized columns → adaptivity; each stage gets independent semantic and benchmark evidence; published artifacts are behavioral references, not inherited certificates. |
| Graph-SSI phantom/path witness design could be unsound | Central correctness risk | SERIALIZABLE rejects unverified witness families; formal concretization/may-affect proofs, optimizer-preservation laws, independent small-model histories, and gap/negative/path mutation tests gate each family. SNAPSHOT is an explicit weaker contract, not containment for a false serializable claim. |
| HNSW under MVCC/capabilities/compaction | Known-hard industry-wide | Pin historical authorized topology roots, compensate complete delta tails, retain exact fallback, and label recall evidence by population. Output filtering and exact rerank cannot repair missed candidates. |
| Adaptive tiering thrashes (representation churn eats its own benefit) | The classic failure mode of every adaptive store | SPRT migration cards with indifference-region hysteresis and model-conditional type-I/type-II evidence (§6.6); benefit must exceed conversion cost + uncertainty; pinned deterministic fallback policy under lab; observed migration churn is a separate gated §17 metric |
| Witness refinement becomes a second query (cost eats the abort savings) | Possible on pathological predicates | Refinement is budgeted with conservative-abort fallback; WitnessTrace is a byproduct of normal execution (no re-execution); refined-vs-saved accounting on every decision card; the knob defaults conservative |
| Nightly Rust | Both foundations already pin nightly; MSRV churn is real | Pinned toolchain per repo (house pattern), portable-SIMD isolated behind fgdb-codec/kernel traits with scalar fallbacks |
| fnx algorithms not yet trait-generic or external-memory where required | Verified: GraphView exists with integer rows; compatible larger-than-memory coverage is partial |
W8 upstream/cursor work plus spillable materialization and family-specific external algorithms. Unsupported functions remain unregistered—there is no “always-correct fallback” that secretly requires the whole graph in RAM. |
| Final-capsule encoding and quorum distribution limit commit throughput | Correctness requires them before publication | Pipeline/group finalization after coordinator-approved effects, benchmark the complete D1/D2/Raft path, and optimize only after effect-digest and availability invariants remain green. |
| Root/checkpoint/retention protocol loses recovery closure | Catastrophic | Dual root slots, full closure validation, checkpoint authority transfer, stale-writer fencing, two-root GC accounting, and crash matrices at every file/directory barrier. |
| Kùzu's fate as a cautionary tale (orphaned by acquisition: a single-vendor embedded engine can be excellent, funded, and still removed from the commons overnight — Apple acquired Kùzu Inc. and the upstream repository was archived read-only in October 2025) | The sharpest non-technical risk; GitLab's forced migration off Kùzu shows what abandonment costs a marquee adopter | FrankenGraphDB is an open-source ecosystem asset whose formats, protocol, and proofs are normatively specified here and outsider-verifiable, so continuity does not depend on any single steward's survival or ownership; B1/B4/B5/B6 target agent memory, auditability, and governance without making ungrounded market guarantees. |
| The calibration plane becomes ornamental math (monitors nobody gates on) | The classic fate of statistical infrastructure | Every Sextant artifact binds to a named decision card, evidence.toml row, or slo.toml row—or is removed as dead instrumentation. It can gate an adaptive promotion or empirical claim but never masquerades as an invariant checker. |
| Adaptive policies diverge logical results | Fatal | FG-INV-19 separately pins answer-affecting choices in the bound/replay closure and logical-command-sequences canonical-state-affecting policy epochs; answer-preserving physical classification has equivalence tests and replica logical-digest oracles. Physical encodings need not be identical. |
| Statistical guarantees rest on modeling assumptions | Unavoidable | Every claim names assumptions and scope; monitoring can trigger fallback but does not retroactively restore invalid coverage. Safety remains independent of statistical success. |
| In-house cryptography fails despite vectors | High-impact specialized risk | Prefer audited foundation primitives; constant-time/misuse verification, algorithm agility, independent review, and external release audit are mandatory. |
| Planner-only authorization leaks through another path | Unacceptable | fgdb-secure-view is the unforgeable access boundary for storage, indexes, Prism, Ripple, UDFs, backup, errors, and observability; cross-capability differential matrices gate releases. |
| External authorities become the availability ceiling | Under full-strength governance the write path's visibility availability multiplies by the audit authority and its delivery availability by the time authority; Required-ticket issuance is a strictly serial external CAS at the authority | The §16 authority-surface table prices every posture with slo.toml availability rows per posture; batched resolutions/activations and batch-subject time evidence amortize external round trips; the registered successor-authority migration covers a permanently dead authority; the embedded DirectoryBound posture requires zero external authorities. |
| Global meta sequencing preserves semantics but may bottleneck post-1.0 sharding | Deliberate correctness/performance tradeoff | The protocol is fixed in §14.6: no shard-local semantic bypass, exact global certification and one-prefix visibility. Batch the meta order only under §14.6's registered virtual-serial batch-certification law and publish both ceilings honestly — serial and batched, with the residual ceiling (per-command Meta apply) stated; reopen scalar time only as a new architecture with new Chronicle/branch/Ripple/replay proofs, never as an optimization. |
| Newer runtime surfaces adopted for Aegis (choreographic codegen, coded fan-out) prove less mature than core asupersync | Adoption risk, inherited not created | Each adoption sits behind a protocol trait with the hand-built degenerate mode preserved (static membership, unicast fan-out, hand-written state machines); the lab's dual-run harness compares adopted vs. degenerate paths before any promotion |