pub enum SubagentDisposition {
Native,
Emulated,
Refused {
reason: String,
},
}Expand description
How a subagent-bearing request is served, recorded before any visible output or harness-visible tool effect (PRD-001l R6 — no silent degradation). Every subagent request ends in exactly one of these states.
Variants§
Native
Served natively by a phase that returns the namespace field.
Emulated
Served by the labeled emulation fallback (fan-out of independent sessions); never claims native semantics.
Refused
Refused with a deterministic, human-readable reason before any visible output or harness-visible tool effect.
Implementations§
Source§impl SubagentDisposition
impl SubagentDisposition
Sourcepub fn derive(native_selected: bool, emulation_enabled: bool) -> Self
pub fn derive(native_selected: bool, emulation_enabled: bool) -> Self
Derives the disposition for a subagent-bearing request from whether a native phase was selected and whether emulation is enabled. Emulation is only ever labeled; a request is refused when neither native service nor emulation is available.
Trait Implementations§
Source§impl Clone for SubagentDisposition
impl Clone for SubagentDisposition
Source§impl Debug for SubagentDisposition
impl Debug for SubagentDisposition
Source§impl<'de> Deserialize<'de> for SubagentDisposition
impl<'de> Deserialize<'de> for SubagentDisposition
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 Eq for SubagentDisposition
Source§impl PartialEq for SubagentDisposition
impl PartialEq for SubagentDisposition
Source§impl Serialize for SubagentDisposition
impl Serialize for SubagentDisposition
impl StructuralPartialEq for SubagentDisposition
Auto Trait Implementations§
impl Freeze for SubagentDisposition
impl RefUnwindSafe for SubagentDisposition
impl Send for SubagentDisposition
impl Sync for SubagentDisposition
impl Unpin for SubagentDisposition
impl UnsafeUnpin for SubagentDisposition
impl UnwindSafe for SubagentDisposition
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