Skip to content

Execution Model

Status: v0.5.0 — Rust core shipped** Last Updated: 2026-07-27

Implementation status legend (used across architecture docs): Shipped = implemented and tested on main; Partially built = some paths real, others stubbed; Designed = specified, not yet a complete public capability. For v0.5.0: the Cypher pipeline (including CREATE, variable-length traversal, OPTIONAL MATCH, and UNWIND), the analyst verbs (rank/cluster/paths/analyze/similar/find), and knowledge-layer provenance / confidence / epistemic records (knowledge-layer + epistemic) are Shipped. Per-algorithm catalog detail lives in Algorithm Verbs.


GraphForge uses DataFusion as the primary execution backbone. DataFusion provides the logical/physical planning pipeline, optimizer, table providers, and Arrow-native batch execution. GraphForge extends it with custom physical plan nodes for operations that require graph-native semantics.

The v0.5.0 unified API exposes seven entry points — execute, rank, cluster, paths, analyze, similar, and find — all producing Arrow Tables. execute travels the full Cypher compiler pipeline (graphforge-cypher → graphforge-ir → graphforge-rel → graphforge-exec); the analyst verbs bypass the parser and planner but converge on the same DataFusion execution layer. All seven entry points are Shipped (see the per-algorithm status in Algorithm Verbs). Their graph-native execution is a graph-layer capability under ADR 0005. A workbench or knowledge workflow may prepare their inputs and consume their results, but the graph layer never depends upward on either layer. graphforge-io streams Arrow result batches into bounded, atomic Parquet or Arrow IPC sinks. Query semantics remain in the Rust compiler and execution layers.


DataFusion exposes the extension points GraphForge needs:

  • Custom LogicalPlan nodes — graph operators slot in alongside relational operators
  • Custom ExecutionPlan nodes — variable-length path expansion and provenance-aware joins as physical operators
  • Custom TableProvider — Parquet as a pluggable scan source
  • Custom optimizer rules — predicate pushdown and label-constraint hoisting
  • Custom QueryPlanner — GraphForge IR is lowered to DataFusion’s logical plan rather than parsed SQL

DataFusion’s Arrow-native execution means results already arrive as RecordBatch streams — no additional conversion is needed before returning through the thin Python or Node bindings (or the native Rust facade).


GraphPlan (Graph IR)
↓
┌────────────────────────────┐
│ graphforge-rel: relational lower │
│ Simple ops → LogicalPlan │
│ Graph ops → custom nodes │
└────────────────────────────┘
↓
┌────────────────────────────┐
│ DataFusion Analyzer │
│ DataFusion Optimizer │
│ (predicate pushdown, etc) │
└────────────────────────────┘
↓
┌────────────────────────────┐
│ DataFusion Physical Plan │
│ gf custom PhysicalNodes │
└────────────────────────────┘
↓
SendableRecordBatchStream ← Arrow columnar batches
↓
graphforge-bindings-py / graphforge-bindings-node / Rust API

The Rust execution session runs FixedExpandInputPredicates immediately after DataFusion’s filter pushdown and before projection pruning. It moves eligible predicates across required fixed ExpandNode boundaries only when every referenced qualified column is preserved by the input. Comparisons of matching primitive types and null checks retain their existing evaluation semantics; recognized Cypher range comparisons retain their UDF implementation. Property joins remain in the plan and subsequent standard optimizer passes place the inserted filters through those joins.

An unrecognized, volatile, potentially failing, or mixed-OR expression blocks movement of the entire filter. A relationship-disjoint check is recognized by implementation type and by the types of its two column operands: it errors only on a malformed heterogeneous value encoding, so over columns whose types contain none (a relationship id, a trail of relationship ids) it is total and does not block the movement. It refers to a hop’s own edge, so it always remains residual above the expansion. Destination/edge references cannot cross their producing expansion. Optional and path operators have no new pushdown permission. This rule changes neither persisted representations nor authentication and recovery paths.

VarLenExpandInputPredicates applies the same movement across a variable-length VarLenExpandNode. The expansion runs once per input row and its output extends that row, so a total predicate over the input’s own columns selects the same seed rows before the expansion as after it. A conjunct over the destination or the path stays above. Moving the seed predicate lets a stored-property equality on the seed (MATCH (m {id: $x})-[:R*0..]->(p), with or without a label disjunction in WHERE) reach the node scan that supplies the seed, instead of the expansion starting from every node of the graph.

DataFusion moves a filter one operator per optimizer pass and runs a fixed number of passes, so a seed predicate would reach the scan only when the pattern is shallow. When FixedExpandInputPredicates moves a predicate below a fixed hop it therefore continues down the subtree in one traversal, applying DataFusion’s filter pushdown and both expansion rules at each operator. It makes no move those rules would not make, only all of them at once. The traversal ends at a variable-length expansion, leaving the filter directly above the plan that supplies the seed, where the stored-equality hints read it. A label disjunction and an id equality on the same node then anchor through the property-equality index and read the topology rows of the matching nodes by ordinal, however many hops follow. The disjunction and the equality stay as filters, so a label mismatch returns no rows and a stale index falls back to the scan with identical results. EXPLAIN names the anchor (anchor=property_equality(id)) only when a current index exists.

The public eight-route fixture asserts 16 first-hop and 256 second-hop candidates for its selective equality and range queries, with an independent exact UUID oracle. Mutation, active snapshots, reopen and portable round trips exercise the same predicates. Source-bound CPU, syscall I/O, process RSS and sampled disk comparisons are recorded in the #1241 evidence. Timing observations are not CI assertions; sampled peaks are not hard bounds.

Property equality before the property scan

Section titled “Property equality before the property scan”

StoredEqualityHints, the last optimizer rule, offers each column = literal conjunct of a filter to the node-property scan beneath it, looking through column projections and the nullable side of a left join only. The filter stays in the plan, so the hint can only remove rows the filter would discard anyway. ExpandNode reports which input columns it needs, so an anchor’s property join feeding an expansion decodes only the properties the query reads.

For a terminal sequence of direct-variable DELETE clauses, the Rust write driver projects the matched frontier to the targets’ qualified node or edge UUID columns before optimization. Predicate dependencies remain in the read prefix, so properties used to select targets are still read and verified. Deletion resolves labels, incident edges, property counts and tombstones from the session’s storage authority. Unused edge properties are not materialized once per expansion chunk. Expression targets, mixed writes and later reads retain their existing frontier requirements.

graphforge-rel keeps quantifier and list-comprehension UDF execution in the private expr::list_execution module. Expression lowering constructs those UDFs; the module owns three-valued quantifier reduction, invariant-predicate evaluation, comprehension filtering/projection, and rewriting their embedded expression trees. The public rewrite_embedded_expressions entry point retains its existing path.

A GraphForge operator wraps its GfError as a downcastable DataFusionError::External. Planning, execution, and facade stream consumers recover that error through the standard Rust error source chain, including DataFusion context and shared wrappers. They preserve its variant, typed code, message, and span rather than classifying display text. The original error is cloned when a shared upstream failure cannot be exclusively owned. For a multi-error wrapper, recovery follows that wrapper’s designated source; it does not search other branches for a preferred classification.

Boundary input Public result
Wrapped GfError::Parse or Bind Original variant and span; GF_PARSE / binding ParseError
Wrapped GfError::Api or Project Original closed typed code, such as GF_RESOURCE_LIMIT or GF_PROJECT_CORRUPT
Any other wrapped GfError Original variant and existing public code
Foreign planner error without a GraphForge source Existing GfError::Plan / GF_PLAN classification and diagnostic
Foreign execution error without a GraphForge source Existing GfError::Execution / GF_EXECUTION classification and diagnostic

This corrects the v0.6 error boundary: an owned GraphForge resource, validation, or project error no longer becomes a generic execution/plan error solely because DataFusion transported it. No new public code is introduced, and foreign errors keep their existing fallback classification. Raw Arrow batch streams retain DataFusion’s error type and downcastable source until a facade consumer converts them. Parser/binder kind retention and lowering-kind mapping remain the separate work tracked by #1018; this boundary does not claim that already flattened errors can be reconstructed.


GraphForge registers custom ExecutionPlan implementations with DataFusion, planned from graphforge-plan logical extension nodes by GraphForgeExtensionPlanner or substituted by physical rewrite rules:

Node Description
ExpandExec Adjacency-backed single hop; one per hop for fixed multi-hop patterns (see below)
VarLenExpandExec Breadth-first expansion for *min..max patterns with relationship isomorphism; it asks its input for the seed, a bound destination and the columns its parent reads, and a nullable input column no one reads is null-filled instead of copied into every path
OntologyInferExec Pass-through that carries the inference rule into the plan and explain()
OptionalMatchExec Left-join semantics with Cypher null-shaping (distinct from SQL LEFT JOIN)
CorrelatedSeedExec The outer rows of a correlated OPTIONAL MATCH or EXISTS, bound by OptionalMatchExec to the rows it executed once
UnwindExec Cypher list unwinding; a nullable input column its parent does not read is null-filled instead of repeated for each element
EdgeCountExec count(r) answered from the adjacency edge-entry count
OrderedOneHopExec One hop ORDER BY destination UUID LIMIT k, emitted in ordinal order
OrderedTwoHopPathCountExec Two-hop equivalent, counting path multiplicity per destination
SortRunCoalesceExec Coalesces sort input into memory-pool-sized runs ahead of SortExec
DemandGuardExec Cancels traversal once a terminal LIMIT is satisfied

Storage contributes the scan nodes GraphForgeParquetExec, OrderedPartitionStreamExec, and PropertyOverlayExec. Writes plan into GraphCreateExec, GraphDeleteExec, GraphSetExec, and GraphRemoveExec.

EdgeCountExec and the two ordered nodes are chosen by the lowerer from the Graph IR, through a FastPath logical node (ADR 0050). The choice never reads the physical plan, so DataFusion’s partitioning and transport operators cannot remove a fast path. When a session precondition fails (for example, no ordinal identity authority), the generic plan runs under FastPathFallbackExec, which names the reason in explain(). ExpandExec charges the batches it holds to the session memory pool.

Filter, project, aggregate, sort, limit, joins, union, and Cartesian products run through standard DataFusion physical nodes. The full operator and rewrite inventory, with source locations, stock DataFusion candidates, and memory-pool accounting, is in cypher-read-path-inventory.md (#1619).


Traversal is fundamentally adjacency-oriented. GraphForge maintains a derived, rebuildable adjacency index (CSR, surrogate-keyed) under indexes/adjacency/ (ADR 0004, storage.md §Derived Indexes). Both execution paths consume it through a single AdjacencyProvider abstraction:

  • Cypher traversal path — ExpandExec / VarLenExpandExec ask the provider for a node’s neighbors instead of rebuilding adjacency from a full edge scan per query.
  • Analyst-verb path — export_adjacency is a thin adapter from the same provider to the AdjacencyGraph consumed by the AlgorithmBackend trait.
Node Description
VarLenExpandExec Iterative BFS over the AdjacencyProvider for *min..max patterns (replaces the per-query in-memory adjacency build)
ExpandExec Adjacency-backed single-hop expansion: chosen at lowering time for every project-backed hop whose relationship is not already bound; the provider owns hit, miss, and building fallback. Undirected hops read the merged adjacency view and drop a repeated edge within each source row. Schema-only lowering, an already-bound relationship, and an unknown relationship type keep the DataFusion join chain.

ExpandExec receives exact physical column demand through projections, filters, sorts, and limits; unknown or multi-input physical operators are conservative materialization barriers. A correlated OPTIONAL MATCH or pattern predicate asks its outer plan for the columns its sub-plan reads through CorrelatedSeedExec, the columns its parent reads, and its join keys. A join keyed on every outer column therefore still demands the whole row. A variable-length expansion asks its input for its seed, a bound destination and the columns its parent reads (a per-relationship predicate reads one edge’s properties, never an input column); an unread nullable input column is null-filled rather than copied into every path, and explain() shows the narrowed node as copied=N. A destination-identity-only hop carries the CSR neighbor node_id directly and resolves node_uuid through the facade’s exact generation-pinned v4 ordinal authority. It opens neither edge topology nor destination-node Parquet. Lookup batches are sorted and deduplicated within the operator batch, coalesced by the v4 reader, and restored to adjacency order. There is no graph-sized identity map and no path-based rediscovery of mutable authority. The facade authenticates and pins the selected immutable generation once when it creates an execution session. Every hop in that session then reads through the retained authenticated file handles; it does not repeat a complete artifact-name/stamp walk for every bounded expansion chunk. A later session revalidates the names and identities again, so a planted replacement cannot be adopted as authority.

When relationship or destination-node data is required, filtered readers decode only the demanded canonical columns plus their join key. Legacy node layouts and typed wildcard unions retain their normalization path before result shaping. Aggregate diagnostics report projected columns/chunks/rows and v4 ranges, coalesced calls, bytes, peak charged buffers, and forbidden per-record seeks; session revalidation calls/bytes are accounted exactly once rather than hidden from lookup evidence. Diagnostics never report identities or paths. Global ORDER BY ... LIMIT still examines the complete unordered candidate stream and does not use invalid early cancellation.

Ordinary streaming result sinks retain the same aggregate evidence through the terminal stream boundary. gf --json query emits graphforge-result-sink/2 with nested graphforge-query-evidence/2: named hop reader, logical-row, projection, identity-byte, TopK/spill, memory-release, and operator-RSS fields. Version 2 adds adjacency_rebuilds, counting rebuild attempts for missing or stale indexes, including failed attempts so their linear work remains visible. Fresh construction-published indexes report zero. Certification consumers also accept the closed eleven-field version 1 shape from archived receipts; version 2 has twelve fields and requires the unsigned rebuild-attempt counter. The receipt also includes the SHA-256 of a bounded logical Arrow encoding of the published result and an optional scalar_u64 only for an exact one-row integer result representable as u64. Evidence is content-free: it contains no graph values, identities, paths, or provider names.

Selection is a planner choice, not an IR change. The Graph IR is unchanged: variable-length traversal is still encoded on Expand { …, min_hops, max_hops }. A lowering rule selects an adjacency-backed physical node when the provider covers the relation type + direction, and falls back to the DataFusion hash-join path otherwise. Both paths produce identical results; only speed differs.

Reachability mode for variable-length expansion. *min..max binds every relationship-distinct path (trail), and a dense graph has exponentially more trails than reached nodes. graphforge_ir::reachability proves, from the operators after an Expand, when the query can observe only which nodes are reached and how soon: the relationship list is read only through min(length(r)) or not at all, a DISTINCT or a multiplicity-blind aggregate (min, max, count(DISTINCT), …) follows, and min_hops <= 1. The lowerer then marks VarLenExpandExec mode=reachability (visible in EXPLAIN), and the operator runs a level-synchronous breadth-first search with one visited set per seed, emitting one row per reached node with its hop count. When the destination is separately pinned ((b {id: $y})) and the expansion is unbounded, the lowerer scans b first and the search stops at the level that reaches it. The mode changes cost, never the result; a query that returns the path, the relationship list, or a multiplicity-sensitive aggregate stays on trail enumeration.

A top-level conjunct ALL(e IN r WHERE p) of the WHERE clause is pushed into the search when p reads only e’s own properties, parameters and literals, and calls only deterministic functions (graphforge_ir::reachability lists them). Such a conjunct holds for a trail exactly when every relationship of the trail passes p, so the trails are the trails of the subgraph of passing relationships, and the search is the same breadth-first search over that subgraph. EXPLAIN shows the predicate as edge_filter=. The executor evaluates p with the ordinary expression evaluator, once per search level over that level’s frontier relationships, reading their properties with one batched edge-property lookup (through the edge-property index when the route has a current one, ADR 0059, and from the property overlay otherwise). A relationship whose predicate is NULL is not crossed, as with false. ANY, NONE and SINGLE, a predicate that reads another variable, the relationship itself, a position or another element, an ALL combined with OR, and an ALL over nodes(p) keep the expansion on trails.

The index is optional and never authoritative: a stale or missing index falls back to scan-and-build with identical output. The pinned v0.5 project-generation UUID and graph source fingerprint detect staleness; the committed Parquet graph participant is always the source of truth.

Fresh index hits serve a CSR-native adjacency view (#340): validated offsets with parallel edge/neighbor columns and O(1) row lookup. Undirected requests keep separate out/in CSRs and merge per accessed row (out before in on equal edge_id) without materializing a full merged hash map. Delta overlays attach a bounded replacement map over touched keys only — they do not copy the complete valid base CSR. Scan-built fallback retains the historical hash-map representation for oracle parity. Analyst exports (export_adjacency, export_topology) walk a persisted CSR once, in node order, decoding one shard per direction at a time, into an ordinal topology: u32 offsets and neighbors over the selected nodes, with UUIDs by ordinal and, only when requested, per-slot weights and edge identity. Node ids are dense (an offset) or ranked (a deleted-node gap or a label subset). No map is keyed by an edge or a node, and the edge table is read, as a sorted merge, only to resolve edge identity or weights (#1974).

explain annotates each traversal node with adjacency=hit | miss | building, so plan inspection shows whether the accelerator was used (ExecutionSession::explain_physical renders the physical plan without executing it). One PersistentAdjacencyProvider lives per session (= per query) with an interior per-(relation, direction) cache, so multi-expand queries load each CSR once; lifting the provider to the long-lived facade for cross-query caching is a planned follow-on.


rank(), cluster(), paths(), analyze(), similar(), and find() bypass the Cypher parser and planner entirely. They accept structured arguments, build their own DataFusion sub-plans, and return Arrow Tables through the same result contract as execute().

Method Bypasses Uses Returns
rank(label, by=…) Parser, planner Adjacency export → algorithm dispatch → DataFusion project node properties + score: Float64
cluster(label, by=…) Parser, planner Adjacency export → community algorithm → DataFusion project node properties + community_id: Int64
paths(source, target, by=…) Parser, planner Adjacency export → path algorithm → DataFusion project source_uuid, target_uuid, cost, path
analyze(label, by=…) Parser, planner Adjacency export → structural analysis → DataFusion project varies by algorithm
similar(label, by=…) Parser, planner Adjacency export → similarity → DataFusion project node1_id, node2_id, similarity
find(query, vector=…) Parser, planner FTS / vector index → RRF fusion → DataFusion project node properties + score + matched_on

Key design facts:

  • No separate result type. All analyst verbs return Arrow Tables exactly as execute() does.
  • write_property is opt-in mutation. Only rank() and cluster() support it; all other analyst verbs are read-only.
  • find() indexes text lazily. A missing/stale default text index is built once from observed string properties. Vector search selects a complete, compatible embedding-space generation; it never fabricates missing vectors. Substantially stale vector spaces refresh successfully first or fail unless explicitly forced under the embedding publication contract.
  • All paths converge at DataFusion. Adjacency export and scoring stages produce Arrow data that DataFusion projects and returns as RecordBatch streams.

Embedding production, publication, retrieval, and optional reranking are four separate stages:

analyst-verb/local/callback/remote/caller batch
│ produces complete UUID + vector Arrow data
▼
private generation ── validate against committed source snapshot
│ data + manifest, then atomic active-generation swap
▼
compatible visible space ── exact vector / text / rrf@1 retrieval
│ optional explicit bounded reranker
▼
canonical Arrow search result

Publication never mutates graph properties or an algorithm result. Retrieval checks durable compatibility and freshness before candidate work. One private build per space and one coalesced newest pending request prevent refresh storms; project-wide producer concurrency is bounded. Cancellation or failure exposes neither partial generations nor partial result rows. Proactive refresh runs only while a process is open; reopen reconstructs freshness from durable graph and space metadata. Provider work is explicit and optional, and reranking cannot silently change canonical rrf@1 behavior.

Status: implemented across the v0.5.0 algorithm, knowledge, and epistemic layers.

Algorithm dispatch produces two logically separate values:

  1. a canonical Arrow result owned by the selected algorithm contract; and
  2. a neutral invocation descriptor containing the algorithm and contract version, resolved projection fingerprint, normalized selectors and options, deterministic controls, and resource limits.

The descriptor contains no evidence, assertion, reasoning, or belief state. It is sufficient to identify what the graph layer actually computed. The knowledge layer persists it with a durable algorithm_run_uuid and lineage links. The epistemic layer resolves a point-in-time belief state to an immutable UUID projection before the invocation, then attach assertions and reasoning to the run after it completes.

Epistemic belief query (optional)
│ resolves UUID projection / explicit parameter mapping
▼
algorithm graph algorithm ──► canonical Arrow result
│
└── neutral invocation descriptor
│
▼
knowledge-layer provenance run record
│
▼
epistemic assertions / evidence / reasoning

The same resolved graph input produces the same algorithm result whether or not knowledge/epistemic capabilities are present. Consequently:

  • graph algorithms do not query knowledge tables;
  • algorithm_run_uuid is knowledge/provenance identity, not graph topology identity;
  • confidence, provenance, assertion status, and valid time are not conditionally appended to algorithm result schemas; and
  • bitemporal and competing-hypothesis selectors are resolved above the algorithm API rather than added to algorithm options.

Resolution pins one committed generation, reconstructs the mandatory transaction-time snapshot, resolves status/supersession/hypothesis ambiguity, and only then applies an optional half-open valid-time filter. The resulting graph-only projection is fingerprinted before analyst verbs dispatch. The neutral knowledge-layer run is durable before the epistemic layer attachment is attempted, so an attachment failure never rolls back a successful algorithm run.

See Algorithm Verbs for the normative algorithm boundary and ADR 0006 for preservation and bitemporal semantics.

Full algorithm catalog: Algorithm Verbs.


Data-bearing execution results — Cypher execute, analyst verbs, and other tabular algorithm or inspection tables — are returned as Arrow RecordBatch streams. Control, metadata, lifecycle, explanation, and construction surfaces may return scalars, collections, unit, or handles instead; see Arrow as the Data Contract. The schema for query results carries GraphForge metadata:

fn result_schema(fields: Vec<Field>, query_id: &str, ontology_ver: &str) -> Schema {
let mut meta = HashMap::new();
meta.insert("graphforge.ir_version".into(), "1.0.0".into());
meta.insert("graphforge.ontology_version".into(), ontology_ver.into());
meta.insert("graphforge.query_id".into(), query_id.into());
meta.insert("graphforge.result_kind".into(), "query_result".into());
Schema::new_with_metadata(fields, meta)
}

Topology node schema (the shipped layout — see crates/graphforge-storage/src/schemas.rs):

// topology/nodes.parquet — identity + labels only (the GRAPH LAYER hot path)
let node_schema = Schema::new(vec![
Field::new("node_uuid", DataType::FixedSizeBinary(16), false), // UUIDv7 — canonical identity
Field::new("node_id", DataType::UInt64, false), // local surrogate — join key
Field::new("type_id", DataType::UInt32, false), // immutable primary label
Field::new("type_ids", DataType::List(Arc::new(Field::new(
"item", DataType::UInt32, false
))), false), // complete label set
Field::new("created_at", DataType::Timestamp(TimeUnit::Microsecond, Some("UTC".into())), false),
Field::new("updated_at", DataType::Timestamp(TimeUnit::Microsecond, Some("UTC".into())), false),
]);

Layer note (ADR 0005). The topology node row holds only identity and type. Property values live in properties/ENTITY_TYPE.parquet (graph layer, warm path). Confidence, provenance, and valid-time are knowledge-layer concerns (ADR 0005) — they are recorded in the knowledge layer and attached to graph objects by node_uuid/edge_uuid, not as columns on topology tables. Bitemporal valid-time lives on epistemic assertions (ADR 0006), not on raw nodes. (Earlier drafts of this doc showed props_json/confidence/provenance_id/valid_*_ts on the node row; that pre-refactor schema has been superseded by the topology/properties split and the layer boundary.)

The shipped typed edge schema contains neither engine-owned confidence nor provenance_uuid. A domain property named confidence remains an ordinary graph property with no special execution semantics. Provenance and knowledge records use the independent graphforge-provenance/graphforge-knowledge ledgers owned by ADR 0012; no historical project is imported or converted.


Arrow is used as the internal execution currency:

  • Columnar RecordBatch — the unit of data flowing between operators
  • C Data Interface — zero-copy in-process sharing across Rust and Python
  • C Stream Interface — batch readers for streaming results
  • Arrow IPC — serialized stream for cross-process use (Node today; future UniFFI consumers)

Query-result files use the same demand-driven RecordBatch stream. Parquet and Arrow IPC sinks request one batch only after the preceding batch has been accepted, enforce configured batch and Parquet row-group limits, and publish a sibling temporary file atomically only after writer finalization and sync. Receipts report rows, batches, bytes, elapsed time, and completion phase; cancellation or execution/writer failure reports bounded progress and never publishes a partial destination.

File order is the query’s result order. An explicit Cypher ORDER BY therefore produces deterministic row order; without an ordering clause, neither the sink nor the file format adds an ordering guarantee.

Swift and Kotlin bindings are deferred to v0.5.1; when they ship, they will consume Arrow IPC bytes over UniFFI without becoming semantic owners.


Graph execution emits a neutral mutation/inference receipt containing operation semantics and affected UUIDs. It does not construct domain rows or open knowledge tables. graphforge-api converts the receipt into graphforge-provenance events and lineage, validates any graphforge-knowledge confidence/assertion references, and publishes all participants through one generic graphforge-storage generation.

Confidence is immutable knowledge metadata. It is not a Cypher, traversal, rank, cluster, paths, analyze, similar, or find option and never changes their graph-native schemas or results. epistemic selected-belief projection is completed before neutral algorithm dispatch; algorithm executors remain knowledge-independent.

Schema registries, version compatibility, same-transaction reference validation, and forbidden dependency directions are normative in ADR 0012.


Layer Tool Approach
Public Rust API thiserror Typed error enums: ParseError, BindError, OntologyError, StorageError, ExecutionError
Rust internals anyhow Contextual error accumulation
Python binding pyo3 exception mapping Thin projection: each Rust error category → distinct Python exception class
Node binding napi-rs error conversion Thin projection: Error with code, message, and structured details