Skip to main content

Module capture

Module capture 

Source
Expand description

Stable-id graph-delta capture/replay helpers.

This records the graph mutations that already have stable-id replay forms in super::apply::GraphDelta: add/remove node, assert/retract relation, traversal append, media writes, navigation chronology/history mutations, the lighter per-node content/presentation setters, semantic-predicate edge writes, the node-enrichment setters, import-record truth, and deterministic frame/history state setters. The broader content-mutation lane still stays separate until those writes grow stable-id replay forms of their own.

Structs§

GraphTableStats
Cheap live counts for the graph’s arena-like tables, surfaced in Apparatus.

Enums§

ArchivedCapturedDelta
An archived CapturedDelta
CapturedDelta
The stable-id, serializable mirror of the replayable graph deltas.
CapturedDeltaResolver
The resolver for an archived CapturedDelta

Functions§

replay_captured_deltas
Replay a captured-delta stream against an empty graph.
replay_captured_deltas_onto
Replay a captured-delta stream against an existing graph, advancing it in place. The incremental twin of replay_captured_deltas: materialize a checkpoint (a GraphSnapshot), then apply only the journal entries recorded after it. Live editing and replay both funnel through apply_graph_delta, so a replayed graph cannot diverge from the one the edits were captured from — the edit-spine invariant. (See graph/journal.rs.)
set_captured_delta_hook
Install or clear the current thread’s graph-delta capture hook.