Struct EventKind
Source #[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: EventKind
pub const SYSTEM_INIT: EventKind
pub const SYSTEM_SHUTDOWN: EventKind
pub const SYSTEM_HEARTBEAT: EventKind
pub const SYSTEM_CONFIG_CHANGE: EventKind
pub const TRAJECTORY_CREATED: EventKind
pub const TRAJECTORY_UPDATED: EventKind
pub const TRAJECTORY_COMPLETED: EventKind
pub const TRAJECTORY_FAILED: EventKind
pub const TRAJECTORY_SUSPENDED: EventKind
pub const TRAJECTORY_RESUMED: EventKind
pub const TRAJECTORY_DELETED: EventKind
pub const SCOPE_CREATED: EventKind
pub const SCOPE_UPDATED: EventKind
pub const SCOPE_CLOSED: EventKind
pub const SCOPE_CHECKPOINTED: EventKind
Sourcepub const SCOPE_CONTEXT_PAGED: EventKind
pub const SCOPE_CONTEXT_PAGED: EventKind
Context window was repaged mid-scope (sections evicted/promoted).
pub const ARTIFACT_CREATED: EventKind
pub const ARTIFACT_UPDATED: EventKind
pub const ARTIFACT_SUPERSEDED: EventKind
pub const ARTIFACT_DELETED: EventKind
pub const NOTE_CREATED: EventKind
pub const NOTE_UPDATED: EventKind
pub const NOTE_SUPERSEDED: EventKind
pub const NOTE_DELETED: EventKind
pub const NOTE_ACCESSED: EventKind
pub const TURN_CREATED: EventKind
pub const AGENT_REGISTERED: EventKind
pub const AGENT_UPDATED: EventKind
pub const AGENT_UNREGISTERED: EventKind
pub const AGENT_STATUS_CHANGED: EventKind
pub const GOAL_CREATED: EventKind
pub const GOAL_ACTIVATED: EventKind
pub const GOAL_ACHIEVED: EventKind
pub const GOAL_FAILED: EventKind
pub const PLAN_CREATED: EventKind
pub const PLAN_STARTED: EventKind
pub const PLAN_COMPLETED: EventKind
pub const PLAN_FAILED: EventKind
pub const STEP_COMPLETED: EventKind
pub const STEP_FAILED: EventKind
pub const BELIEF_CREATED: EventKind
pub const BELIEF_SUPERSEDED: EventKind
pub const DELIBERATION_COMPLETED: EventKind
pub const ENGINE_STATE_PERSISTED: EventKind
Sourcepub const SYNC_PULSE_EMITTED: EventKind
pub const SYNC_PULSE_EMITTED: EventKind
SyncPulse emitted when multi-agent drift exceeds threshold.
Sourcepub const SYNC_PULSE_RECONCILED: EventKind
pub const SYNC_PULSE_RECONCILED: EventKind
SyncPulse reconciliation completed.
pub const LOCK_ACQUIRED: EventKind
pub const LOCK_EXTENDED: EventKind
pub const LOCK_RELEASED: EventKind
pub const LOCK_EXPIRED: EventKind
pub const LOCK_CONTENTION: EventKind
pub const MESSAGE_SENT: EventKind
pub const MESSAGE_DELIVERED: EventKind
pub const MESSAGE_ACKNOWLEDGED: EventKind
pub const MESSAGE_EXPIRED: EventKind
pub const DELEGATION_CREATED: EventKind
pub const DELEGATION_ACCEPTED: EventKind
pub const DELEGATION_REJECTED: EventKind
pub const DELEGATION_STARTED: EventKind
pub const DELEGATION_COMPLETED: EventKind
pub const DELEGATION_FAILED: EventKind
pub const HANDOFF_CREATED: EventKind
pub const HANDOFF_ACCEPTED: EventKind
pub const HANDOFF_REJECTED: EventKind
pub const HANDOFF_COMPLETED: EventKind
pub const EDGE_CREATED: EventKind
pub const EDGE_UPDATED: EventKind
pub const EDGE_DELETED: EventKind
pub const EVOLUTION_SNAPSHOT_CREATED: EventKind
pub const EVOLUTION_PHASE_CHANGED: EventKind
pub const EFFECT_ERROR: EventKind
pub const EFFECT_RETRY: EventKind
pub const EFFECT_COMPENSATE: EventKind
pub const EFFECT_ACK: EventKind
pub const EFFECT_BACKPRESSURE: EventKind
pub const EFFECT_CANCEL: EventKind
pub const EFFECT_CONFLICT: EventKind
pub const CACHE_INVALIDATE_TRAJECTORY: EventKind
pub const CACHE_INVALIDATE_SCOPE: EventKind
pub const CACHE_INVALIDATE_ARTIFACT: EventKind
pub const CACHE_INVALIDATE_NOTE: EventKind
pub const WORKING_SET_UPDATED: EventKind
pub const WORKING_SET_DELETED: EventKind
pub const BASH_EXECUTION_STARTED: EventKind
pub const BASH_EXECUTION_COMPLETED: EventKind
pub const BASH_FILE_WRITTEN: EventKind
pub const BROWSER_ACTION_COMPLETED: EventKind
pub const WEB_MCP_TOOL_EXECUTED: EventKind
pub const WEB_MCP_DISCOVERY_SNAPSHOT: EventKind
pub const REASONING_TRACE: EventKind
pub const AG_UI_RUN_STARTED: EventKind
pub const AG_UI_STEP_STARTED: EventKind
pub const AG_UI_STEP_FINISHED: EventKind
pub const AG_UI_RUN_FINISHED: EventKind
pub const AG_UI_RUN_ERROR: EventKind
pub const AG_UI_INTERRUPT: EventKind
pub const AG_UI_STATE_SNAPSHOT: EventKind
pub const AG_UI_STATE_DELTA: EventKind
pub const SESSION_CREATED: EventKind
pub const SESSION_ACTIVATED: EventKind
pub const SESSION_DELTA: EventKind
pub const SESSION_CLOSED: EventKind
pub const SESSION_EXPIRED: EventKind
pub const SESSION_FALLBACK: EventKind
pub const INSTANCE_REGISTERED: EventKind
pub const INSTANCE_HEARTBEAT: EventKind
pub const INSTANCE_DEREGISTERED: EventKind
pub const INSTANCE_STALE: EventKind
pub const COMPONENT_PATCH: EventKind
pub const COMPONENT_SNAPSHOT: EventKind
pub const INVARIANT_VIOLATION: EventKind
pub const PII_EGRESS_BLOCKED: EventKind
pub const PII_REDACTION_APPLIED: EventKind
pub const PII_VAULT_WRITE_FAILED: EventKind
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<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EventKind
impl Serialize for EventKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.