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
//! `ArkheAction` + `ActionCompute` sealed traits.
//!
//! `ArkheAction` is the wire-metadata trait produced by
//! `#[derive(ArkheAction)]`. `ActionCompute` pairs with it: each Action
//! implements the `compute()` body directly, consuming a `&mut ActionContext`
//! to derive entity ids, emit events, and signal rejection via `ActionError`.
use TypeCode;
use ;
use crate;
/// Determinism band classification.
///
/// * `1` — Core (L0 replay-identical).
/// * `2` — Projection (eventually consistent).
/// * `3` — Protocol-correctness (shell-level).
pub type Band = u8;
/// Sealed marker trait for runtime Action types. Implementations come only
/// from `#[derive(ArkheAction)]`.
/// Compute-phase trait. Each `ArkheAction` implementor provides the body
/// of this method manually — business logic per Action is unique, so
/// `compute` is intentionally not derive-generated.
///
/// Implementations must be deterministic and side-effect-free outside of
/// `ctx` (L0 A11 pure-compute succession).