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§
- Graph
Table Stats - Cheap live counts for the graph’s arena-like tables, surfaced in Apparatus.
- Malformed
- A captured facet record whose value is not valid JSON.
- Replay
Refused - 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§
- Archived
Captured Delta - An archived
CapturedDelta - Captured
Delta - The stable-id, serializable mirror of the replayable graph deltas.
- Captured
Delta Resolver - 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 (aGraphSnapshot), then apply only the journal entries recorded after it. Live editing and replay both funnel throughapply_graph_delta, so a replayed graph cannot diverge from the one the edits were captured from — the edit-spine invariant. (Seegraph/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§
- Delta
Recorder - Where a graph that opted in sends its own captured deltas: see
Graph::set_recorder.