#[repr(transparent)]pub struct EventKind(pub u16);Expand description
Event kind encoded as a 16-bit value.
The upper 4 bits encode the category, the lower 12 bits encode the specific type. This allows 16 categories with 4096 event types each (65536 total).
Category allocation:
- 0x0xxx: System events
- 0x1xxx: Trajectory events
- 0x2xxx: Scope events
- 0x3xxx: Artifact events
- 0x4xxx: Note events
- 0x5xxx: Turn events
- 0x6xxx: Agent events
- 0x7xxx: Lock events
- 0x8xxx: Message events
- 0x9xxx: Delegation events
- 0xAxxx: Handoff events
- 0xBxxx: Edge events
- 0xCxxx: Evolution events
- 0xDxxx: Effect events (errors, compensations)
- 0xExxx: Reserved
- 0xFxxx: Custom/extension events
Tuple Fields§
§0: u16Implementations§
Source§impl EventKind
impl EventKind
pub const DATA: Self
pub const SYSTEM_INIT: Self
pub const SYSTEM_SHUTDOWN: Self
pub const SYSTEM_HEARTBEAT: Self
pub const SYSTEM_CONFIG_CHANGE: Self
pub const TRAJECTORY_CREATED: Self
pub const TRAJECTORY_UPDATED: Self
pub const TRAJECTORY_COMPLETED: Self
pub const TRAJECTORY_FAILED: Self
pub const TRAJECTORY_SUSPENDED: Self
pub const TRAJECTORY_RESUMED: Self
pub const TRAJECTORY_DELETED: Self
pub const SCOPE_CREATED: Self
pub const SCOPE_UPDATED: Self
pub const SCOPE_CLOSED: Self
pub const SCOPE_CHECKPOINTED: Self
Sourcepub const SCOPE_CONTEXT_PAGED: Self
pub const SCOPE_CONTEXT_PAGED: Self
Context window was repaged mid-scope (sections evicted/promoted).
pub const ARTIFACT_CREATED: Self
pub const ARTIFACT_UPDATED: Self
pub const ARTIFACT_SUPERSEDED: Self
pub const ARTIFACT_DELETED: Self
pub const NOTE_CREATED: Self
pub const NOTE_UPDATED: Self
pub const NOTE_SUPERSEDED: Self
pub const NOTE_DELETED: Self
pub const NOTE_ACCESSED: Self
pub const TURN_CREATED: Self
pub const AGENT_REGISTERED: Self
pub const AGENT_UPDATED: Self
pub const AGENT_UNREGISTERED: Self
pub const AGENT_STATUS_CHANGED: Self
pub const GOAL_CREATED: Self
pub const GOAL_ACTIVATED: Self
pub const GOAL_ACHIEVED: Self
pub const GOAL_FAILED: Self
pub const PLAN_CREATED: Self
pub const PLAN_STARTED: Self
pub const PLAN_COMPLETED: Self
pub const PLAN_FAILED: Self
pub const STEP_COMPLETED: Self
pub const STEP_FAILED: Self
pub const BELIEF_CREATED: Self
pub const BELIEF_SUPERSEDED: Self
pub const DELIBERATION_COMPLETED: Self
pub const ENGINE_STATE_PERSISTED: Self
Sourcepub const SYNC_PULSE_EMITTED: Self
pub const SYNC_PULSE_EMITTED: Self
SyncPulse emitted when multi-agent drift exceeds threshold.
Sourcepub const SYNC_PULSE_RECONCILED: Self
pub const SYNC_PULSE_RECONCILED: Self
SyncPulse reconciliation completed.
pub const LOCK_ACQUIRED: Self
pub const LOCK_EXTENDED: Self
pub const LOCK_RELEASED: Self
pub const LOCK_EXPIRED: Self
pub const LOCK_CONTENTION: Self
pub const MESSAGE_SENT: Self
pub const MESSAGE_DELIVERED: Self
pub const MESSAGE_ACKNOWLEDGED: Self
pub const MESSAGE_EXPIRED: Self
pub const DELEGATION_CREATED: Self
pub const DELEGATION_ACCEPTED: Self
pub const DELEGATION_REJECTED: Self
pub const DELEGATION_STARTED: Self
pub const DELEGATION_COMPLETED: Self
pub const DELEGATION_FAILED: Self
pub const HANDOFF_CREATED: Self
pub const HANDOFF_ACCEPTED: Self
pub const HANDOFF_REJECTED: Self
pub const HANDOFF_COMPLETED: Self
pub const EDGE_CREATED: Self
pub const EDGE_UPDATED: Self
pub const EDGE_DELETED: Self
pub const EVOLUTION_SNAPSHOT_CREATED: Self
pub const EVOLUTION_PHASE_CHANGED: Self
pub const EFFECT_ERROR: Self
pub const EFFECT_RETRY: Self
pub const EFFECT_COMPENSATE: Self
pub const EFFECT_ACK: Self
pub const EFFECT_BACKPRESSURE: Self
pub const EFFECT_CANCEL: Self
pub const EFFECT_CONFLICT: Self
pub const CACHE_INVALIDATE_TRAJECTORY: Self
pub const CACHE_INVALIDATE_SCOPE: Self
pub const CACHE_INVALIDATE_ARTIFACT: Self
pub const CACHE_INVALIDATE_NOTE: Self
pub const WORKING_SET_UPDATED: Self
pub const WORKING_SET_DELETED: Self
pub const BASH_EXECUTION_STARTED: Self
pub const BASH_EXECUTION_COMPLETED: Self
pub const BASH_FILE_WRITTEN: Self
pub const BROWSER_ACTION_COMPLETED: Self
pub const WEB_MCP_TOOL_EXECUTED: Self
pub const WEB_MCP_DISCOVERY_SNAPSHOT: Self
pub const REASONING_TRACE: Self
pub const AG_UI_RUN_STARTED: Self
pub const AG_UI_STEP_STARTED: Self
pub const AG_UI_STEP_FINISHED: Self
pub const AG_UI_RUN_FINISHED: Self
pub const AG_UI_RUN_ERROR: Self
pub const AG_UI_INTERRUPT: Self
pub const AG_UI_STATE_SNAPSHOT: Self
pub const AG_UI_STATE_DELTA: Self
pub const SESSION_CREATED: Self
pub const SESSION_ACTIVATED: Self
pub const SESSION_DELTA: Self
pub const SESSION_CLOSED: Self
pub const SESSION_EXPIRED: Self
pub const SESSION_FALLBACK: Self
pub const INSTANCE_REGISTERED: Self
pub const INSTANCE_HEARTBEAT: Self
pub const INSTANCE_DEREGISTERED: Self
pub const INSTANCE_STALE: Self
pub const COMPONENT_PATCH: Self
pub const COMPONENT_SNAPSHOT: Self
pub const INVARIANT_VIOLATION: Self
pub const PII_EGRESS_BLOCKED: Self
pub const PII_REDACTION_APPLIED: Self
pub const PII_VAULT_WRITE_FAILED: Self
Sourcepub fn is_defined(&self) -> bool
pub fn is_defined(&self) -> bool
Check if this event kind matches a known constant.
Returns false for undefined kinds (e.g. 0x0FFF). This prevents
accidental use of unregistered event types in production.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.