1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Wire types for `Engine::branch_reset`.
//!
//! fetch / pull / push / branch_reset form one transport surface; this op is the lone history-rewrite
//! primitive the others compose against.
use ;
/// Successful outcome of `Engine::branch_reset`. Carries enough
/// context for callers (CLI, replay skills, audit UIs) to surface
/// what happened without a follow-up `memstead_changes_since` poll.
/// One inbound cross-mem reference that a branch reset would strand: an
/// edge from an entity in another mem pointing at an entity that exists
/// at the current head but would not exist at the reset target (it was
/// created — or renamed to its current id — after the target commit).
/// Computed engine-side by `Engine::branch_reset_stranded_refs`; the
/// human surface warns with these before confirming a reset.