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
//! Supplies shared readable text for admission diagnostics.
//!
//! ```text
//! registry or controller decision
//! ├── category ──► RejectionKind
//! └── detail ────► reason text built from these fragments
//! ```
//!
//! Registry and controller paths reuse these strings when they build event and
//! watched-outcome payloads. The text is diagnostic only and has no stability
//! guarantee. Consumers must branch on typed categories instead of parsing it.
/// Name conflict detected during registry admission.
pub const ALREADY_EXISTS: &str = "a registered task already uses this name";
/// Static batch item rejected because another item failed admission.
pub const BATCH_REJECTED: &str = "another item rejected the all-or-nothing batch";
/// Queued controller submission removed before it started.
pub const REMOVED_FROM_QUEUE: &str = "removed from controller queue before start";
/// Queued submission displaced by a newer replacement.
pub const SUPERSEDED_BY_REPLACE: &str = "superseded by a newer replacement";
/// Submission rejected during controller shutdown.
pub const CONTROLLER_SHUTTING_DOWN: &str = "controller is shutting down";
/// Controller admission ended before ownership transfer committed.
pub const CONTROLLER_ADMISSION_INTERRUPTED: &str =
"controller admission was interrupted before ownership transfer";
/// Busy-slot rejection under `DropIfRunning`.
pub const DROP_IF_RUNNING: &str = "slot is busy; DropIfRunning rejected the submission";
/// Controller slot queue capacity rejection.
pub const QUEUE_FULL: &str = "slot queue is full";
/// Registry membership limit rejection.
pub const REGISTERED_TASK_LIMIT: &str = "registered task limit reached";
/// Controller slot-count limit rejection.
pub const CONTROLLER_SLOT_LIMIT: &str = "controller slot limit reached";
/// Aggregate controller pending-work limit rejection.
pub const CONTROLLER_PENDING_LIMIT: &str = "controller pending limit reached";