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
// SPDX-License-Identifier: Apache-2.0
//! OLLP predicted-edge tuple carried in `BulkDelete` / `BulkUpdate` plans.
/// One predicted implicit graph edge carried in an OLLP `BulkDelete` plan.
///
/// The Control Plane recon scan surfaces, for every matched edge document
/// (a schemaless doc carrying `_from`/`_to`), the tuple
/// `(surrogate, _from, _to, _type)`. The data plane recomputes the SAME tuple
/// from the actual stored docs at execution time and compares the sorted sets;
/// any divergence (a matched doc's `_from`/`_to`/`_type` concurrently changed,
/// or an edge appeared/disappeared among the matched docs between recon and
/// execution) yields `OllpRetryRequired` before any write — closing the
/// recon→execute content TOCTOU that the surrogate-set check alone misses.
///
/// `label` is the raw `_type` exactly as stored (or `None` when absent); the
/// default-label substitution is NOT applied here so both sides compare the
/// raw stored value.