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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
//! Process deltas — the **online/incremental** counterpart of
//! [`crate::interop::ConformanceTriple`]'s batch conformance claim.
//!
//! `ConformanceTriple` states which conformance *dimensions* a batch claim
//! covers, with no values measured. This module states which *kind of
//! deviation* an incremental process-intelligence step is claiming to have
//! observed against an admitted process model — again with **no values
//! measured, no correlation performed, no engine run**.
//!
//! ## What this module **IS**
//!
//! - [`ProcessDeltaKind`]: a first-class, named vocabulary of the ways an
//! observed execution step can relate to an admitted process — conformant,
//! or one of several specifically named deviation classes (including
//! deliberately *unresolved* classes like [`ProcessDeltaKind::IncompleteTrace`]
//! and [`ProcessDeltaKind::TelemetryGap`], so that incomplete evidence is
//! never silently promoted into a conformance verdict).
//! - [`ProcessDelta`]: pairs a [`ProcessDeltaKind`] with an optional witness
//! naming the process model it is claimed against.
//! - [`ProcessDeltaRefusal`]: first-class, specifically named refusals.
//!
//! ## What this module is **NOT**
//!
//! - **Not** a correlator, a conformance checker, or a streaming engine. It
//! never inspects an [`crate::streaming::EventWindow`], never computes a
//! delta from live events, and never decides *which* [`ProcessDeltaKind`]
//! applies to a real trace.
//!
//! ## Graduation
//!
//! Computing an actual delta from live/streamed events — i.e. running
//! correlation and incremental conformance checking over an
//! [`crate::streaming::EventWindow`] to *produce* a [`ProcessDelta`] — is a
//! `wasm4pm` job. This module only states and refuses the delta *problem
//! shape*, following the same discipline as [`crate::prediction::PredictionProblem`].
use PhantomData;
/// The named vocabulary of ways an observed execution step can relate to an
/// admitted process model.
///
/// Deliberately distinguishes an *unresolved evidence* class
/// ([`ProcessDeltaKind::IncompleteTrace`], [`ProcessDeltaKind::CorrelationAmbiguity`],
/// [`ProcessDeltaKind::TelemetryGap`]) from a *positive deviation claim*
/// ([`ProcessDeltaKind::UnexpectedTransition`] and friends): absence of evidence
/// is never, by construction, the same variant as evidence of a forbidden
/// transition.
/// A claimed process delta: a [`ProcessDeltaKind`] plus an optional witness
/// naming the process model the claim is made against.
///
/// No measured values, no correlated events — matching
/// [`crate::interop::ConformanceTriple`]'s "no values measured" discipline.
/// First-class, specifically named refusals for the process-delta grammar.