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
/// Default maximum number of historical revision deltas retained per entity for `R -> R+n` catch-up.
pub const DEFAULT_STATE_DELTA_HISTORY_CAP: usize = 256;
/// Default minimum remaining frame budget in microseconds required to commit a hot-swap.
pub const DEFAULT_SWAP_MIN_FRAME_BUDGET_US: u64 = 1_500;
/// Path separator used in canonical `StableAddress` strings.
pub const STABLE_ADDR_SEP: char = '/';
/// Reason reported when a swap is deferred due to an active pointer or touch gesture.
pub const DEFER_REASON_GESTURE: &str = "active gesture capture in progress";
/// Reason reported when a swap is deferred due to active IME text composition.
pub const DEFER_REASON_IME: &str = "active IME text composition in progress";
/// Reason reported when a swap is deferred due to an active route or layout transition.
pub const DEFER_REASON_TRANSITION: &str = "active page or overlay transition in progress";
/// Reason reported when a swap is deferred due to a blocking transaction.
pub const DEFER_REASON_TX: &str = "blocking in-flight transaction in progress";
/// Reason reported when a swap is deferred because remaining frame budget is below threshold.
pub const DEFER_REASON_BUDGET: &str = "remaining frame budget below atomic swap threshold";
/// Error message when a `StableAddress` string does not contain at least route and slot segments.
pub const ERR_INVALID_STABLE_ADDRESS: &str =
"stable address requires at least route and slot segments";
/// Error message when a `BusinessStateStore` mutex cannot be locked.
pub const ERR_STATE_STORE_POISONED: &str = "business state store lock poisoned";
/// Error message when an in-flight operation identifier is unknown or already completed.
pub const ERR_UNKNOWN_OPERATION: &str = "operation id not found in active in-flight table";
/// Error message when an entity ID is empty.
pub const ERR_EMPTY_ENTITY_ID: &str = "business entity id cannot be empty";
/// Error message when an incompatible schema jump would drop non-empty user draft data.
pub const ERR_INCOMPATIBLE_SCHEMA_DRAFT: &str =
"incompatible state schema migration would lose user draft";