pub struct ChildApprovalScope { /* private fields */ }Expand description
Off-loop reviewer for a child’s gated-tool approval request (Phase 6, Part B).
Installed (process-global) by a BYPASSED self-orchestrating worker so its
children’s forced-ask (dangerous) gated actions — which still raise
ConfirmationRequired even under bypass — get an LLM reasonableness check
rather than a blind pass. review is an LLM call: drive() invokes it in a
SPAWNED task (NEVER in the frame pump) and delivers the verdict async via the
live channel, so the agent loop is never blocked.
Process-local Host scope. Durable data can compare its stamp but cannot
deserialize a new live authority from it.
Implementations§
Source§impl ChildApprovalScope
impl ChildApprovalScope
Sourcepub fn new(
parent: &str,
child: &str,
transport: (u32, &str, u64, &str, DateTime<Utc>),
router: Arc<SessionActivationRouter>,
cancel: CancellationToken,
current_epoch: Arc<AtomicU64>,
) -> Self
pub fn new( parent: &str, child: &str, transport: (u32, &str, u64, &str, DateTime<Utc>), router: Arc<SessionActivationRouter>, cancel: CancellationToken, current_epoch: Arc<AtomicU64>, ) -> Self
Called by the actual Host frame pump, never from a wire payload.
pub fn stamp(&self) -> &Value
pub fn deadline(&self) -> DateTime<Utc>
pub fn first_admission(&self) -> Option<ChildApprovalAdmission>
pub fn is_admitting(&self) -> bool
pub async fn is_current(&self, parent: &str, child: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChildApprovalScope
impl !UnwindSafe for ChildApprovalScope
impl Freeze for ChildApprovalScope
impl Send for ChildApprovalScope
impl Sync for ChildApprovalScope
impl Unpin for ChildApprovalScope
impl UnsafeUnpin for ChildApprovalScope
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