FrankenGraphDB

GLA Operator Inventory (executor contracts)

995 words1 tableA design document: it describes the 1.0 target, not what runs today.

Every physical implementation registers input/output factorization, strict/relaxed determinism, minimum resident set and spill algorithm, maximum work between cancellation checkpoints, incremental derivative or none, witness domain, authorization boundary, path preservation, input/output AnswerContract transfer or rejection, and legal ReplanClass. “Propagate” below means retain the complete upstream approximation provenance and apply a registered sound transformation; it never means relabel approximate data as exact. The initial normative matrix is:

Family Memory / spill Incremental contract Replan / witness contract Answer-contract rule
ScanVertices/ScanEdges/Values bounded cursor; external batch buffers linear derivative partition boundary; label/type/range/gap witness exact base cursor/value input emits Exact
IndexProbe{btree,hash,fts,vector,path} bounded cursor plus candidate heap; exact tail path may spill registered per index before output unless continuation proved; generation/range/gap/watermark witness emit the pinned generation contract; Exact requires exact index+tail completion
HybridSearch spillable per-source candidate runs, fusion heap, rerank and expansion frontier registered only for a complete fusion/expansion derivative; otherwise recompute before output or a fully materialized candidate/fusion boundary; all source-generation, tail, candidate, fusion, authorization, and expansion witnesses compose every source/stage; Exact only through complete exact sources or pinned exact fallback, otherwise emit fully qualified Approximate
Expand/VarLengthExpand bounded descriptor cursor; factorized/path history spill bounded-hop derivative only where registered descriptor or checkpointed path frontier; adjacency ranges and path cuts exact adjacency preserves Exact; approximate seed/input coverage propagates under a registered law
PathFind spillable frontier, history sets, path DAG registered mode/selector subsets only no switch after emission without state transfer; full mode-aware witness Exact requires exact graph/input and complete algorithm; approximation needs a selector-specific bound/recall law
FreeJoin/HashJoin radix/grace partitions; partitioned COLT bilinear/custom derivative build/materialization barrier or verified state transfer; all input predicate witnesses all-exact inputs yield Exact; any approximate input requires a registered join error/completeness transform
LeftOuter/Semi/Anti/Apply/NullExtend spillable correlation/match state custom or recompute materialization boundary; absence and correlated-domain witnesses mandatory absence-sensitive forms require exact negative domains for Exact; otherwise a registered approximation law or rejection
Select/Project/Unnest/Flatten vector-bounded; flatten spillable linear where expression is registered batch boundary; preserve or explicitly transform factorization/path/witness laws deterministic total transforms preserve Exact; approximate provenance is transformed, never erased
Aggregate/Distinct radix-partitioned retained state registered algebra with deletion law completed partition or state transfer; group-domain and multiplicity witness Exact only from exact complete inputs; approximation requires a registered estimator/error algebra
OrderBy/Limit{offset,count} top-k heap or external stable merge sort top-k custom; full sort normally recompute no switch after emitted prefix; order/tie and early-stop gap witnesses exact ordered prefix requires exact gap/completeness proof; approximate top-k carries recall/error and population
SetOp{Union,Intersect,Except} partition-spillable multiplicity state registered per ALL/DISTINCT form materialization boundary; negative/right-side domains where applicable all-exact inputs yield Exact; approximate difference/intersection requires a sound registered law
Fixpoint LSM-backed arrangements and iteration spill validated SCC only iteration barrier; termination and recursive-domain witness Exact requires exact seed/relations and convergence; approximate recursion is unavailable unless separately registered
TemporalSlice/TemporalJoin interval-partition spill registered interval algebra interval boundary; system/valid-time ranges and gaps preserves Exact only with complete temporal coverage; otherwise propagates qualified interval approximation
SemiringMxV sparse/dense frontier spill registered annotation algebra iteration/frontier barrier; projection/capability/path semantics pinned exact algebra+inputs yield Exact; numeric/coverage approximation requires its registered bound
ProcedureCall declared per procedure; otherwise reject none unless explicitly registered none by default; authorized view only; external nondeterminism badge as required signature independently declares answer-contract transfer and replay-input capture; external/nondeterministic execution may still be semantically exact but downgrades replay completeness, while an approximate procedure remains approximate even if perfectly replayable
GraphConstruct spillable canonical key/value and path/provenance runs; generation-local dense ordinals allowed registered pure construction derivative with deletion/multiplicity law batch/materialization boundary; complete source/provenance witnesses and canonical ViewElementRef identity pure deterministic construction preserves/propagates its inputs; it has no proposal or commit side effect
Mutate proposal-local buffered intents/effects emits canonical logical delta only after successful commit never replanned after side-effect ordering; complete read/write/constraint/authorization witness consumes Exact only; approximate data cannot authorize a mutation target/effect
ViewDelta/CertEmit bounded envelope plus spillable forensic detail stream tap no semantic replan; watermark/evidence closure must remain exact preserves and serializes the full input/output contract without upgrading it
Diff{endpoint_a,endpoint_b,coverage_contract} (reserved family owning §8.1's DIFF syntax) streaming over ordered delta batches; registered spill for reordered or aggregated ranges same-branch endpoints integrate the retained LogicalDeltaBatch range or scan the Tier 1 columnar logical-effect history (§5.4) for older intervals; cross-branch endpoints reuse the squash-merge evaluator's canonical logical difference against recorded merge bases (§5.6); the DIFF-defined stream is a Z-set view composing with §9.5 subscriptions batch/materialization boundary; witness domain is both endpoints' visibility domains plus the covered commit range; evaluated only through fgdb-secure-view against both endpoint visibilities under authorization-precedes-observation (FG-INV-20) — a diff can reveal existence or retirement at one endpoint, so hidden elements follow the capability-redacted conflict-graph discipline emits canonical insertion/retraction delta tables with element identity, slice, and period columns; Exact only under complete retained coverage of the requested interval; otherwise a typed coverage-qualified Approximate contract whose population contract names the covered subrange; a proved retention cut inside the interval yields typed HistoryUnavailable, never silent partiality

Any operator without a complete row, a total answer-contract rule, and conformance tests is unavailable, not implicitly “bounded.” Strict flatten/factorization, spill/no-spill, compaction, and legal replan variants are metamorphically required to produce identical canonical results within the same answer contract and pinned approximate generation closure. A transition that changes approximate candidates/topology is a new semantic generation, not an equivalent physical variant.