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.
Malformed
A captured facet record whose value is not valid JSON.
ReplayRefused
A replayed entry the graph refused: the journal and the graph it replays to disagree from position (an index into the entries replayed) onward.

Enums§

ArchivedCapturedDelta
An archived CapturedDelta
CapturedDelta
The stable-id, serializable mirror of the replayable graph deltas.
CapturedDeltaResolver
The resolver for an archived CapturedDelta
Replay
A captured record, turned into what a replay does with it.
Unwritable
Why a live write cannot carry out a captured record. Replay may skip or drop one; a write refuses it.

Functions§

replay_captured_deltas
Replay a captured-delta stream against an empty graph.
replay_captured_deltas_as_onto
Quiet replay with an author for old assertion records lacking stored attribution. Exact statement captures retain their original attributed source.
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.)
replay_captured_deltas_onto_checked
replay_captured_deltas_onto, reporting the first entry the graph refuses or that is malformed instead of dropping it. The graph holds the entries before it. An explicit skip is never a refusal.
set_captured_delta_hook
Install or clear the current thread’s graph-delta capture hook.
with_isolated_capture
Run a candidate edit with only its own graph recorder. The legacy thread observer is restored on return or panic; rejected candidates cannot reach it.

Type Aliases§

DeltaRecorder
Where a graph that opted in sends its own captured deltas: see Graph::set_recorder.