pub enum SourceIdentity {
User,
ChildAgent {
agent_id: String,
parent_session_id: String,
delegation_id: String,
model: String,
},
Tool {
name: String,
},
Runtime,
ExternalOutcome,
ManualCorrection,
}Expand description
Source-specific identity material that participates in the signed
preimage (ADR 0014 §“Signed preimage”: “EventSource variant tag +
all source-specific fields”).
The variant tag string is part of the canonical bytes; the helper
Self::variant_tag returns it. Adding a variant requires a
SCHEMA_VERSION_ATTESTATION bump.
Variants§
User
Operator (human user). No additional source fields.
ChildAgent
Ephemeral child agent. Carries agent_id, parent_session_id,
delegation_id, and model per ADR 0014.
Fields
Tool
Tool invocation. Carries the tool name.
Runtime
The Cortex runtime itself. No additional source fields.
ExternalOutcome
Externally-observed outcome. No additional source fields.
ManualCorrection
Explicit operator correction. No additional source fields.
Implementations§
Source§impl SourceIdentity
impl SourceIdentity
Sourcepub const fn variant_tag(&self) -> &'static str
pub const fn variant_tag(&self) -> &'static str
Stable wire string for this variant. Part of the canonical preimage
bytes. Renaming requires a SCHEMA_VERSION_ATTESTATION bump.
Trait Implementations§
Source§impl Clone for SourceIdentity
impl Clone for SourceIdentity
Source§fn clone(&self) -> SourceIdentity
fn clone(&self) -> SourceIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceIdentity
impl Debug for SourceIdentity
Source§impl PartialEq for SourceIdentity
impl PartialEq for SourceIdentity
Source§fn eq(&self, other: &SourceIdentity) -> bool
fn eq(&self, other: &SourceIdentity) -> bool
self and other values to be equal, and is used by ==.