Enum InternalPrincipal
pub enum InternalPrincipal {
Cron {
job_id: String,
job_name: Option<String>,
},
PeerAgent {
sender_alias: String,
},
Daemon {
task: String,
},
}Expand description
The runtime-owned principal that initiated an internally driven turn —
who caused the turn to exist, distinct from the executing agent identity
the turn runs under. Stamped once at dispatch from the runtime’s own
resolved state (job config, canonical agent alias, runtime task id),
never from message content or tool arguments, and immutable for the
turn’s lifetime. Persisted records carry it verbatim as at-time-of-action
fact. Internal principals never appear in peer_groups and are never
consulted by peer-membership checks — identity and delivery permission
are separate axes.
Variants§
Cron
A scheduled cron job. job_id is the stable store id; job_name
the operator-facing name, if the job has one.
PeerAgent
A peer-agent dispatch. sender_alias is the sending agent’s
canonical alias — the initiator only; the recipient turn executes
under the recipient’s own alias.
Daemon
A daemon-driven task (heartbeat pipeline, SOP step driver). task
is a runtime-owned identifier, never model-authored text.
Trait Implementations§
Source§impl Clone for InternalPrincipal
impl Clone for InternalPrincipal
Source§fn clone(&self) -> InternalPrincipal
fn clone(&self) -> InternalPrincipal
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more