pub struct VerifyGateContext { /* private fields */ }Expand description
The project/tooling facts the engineer gate needs beyond the prompt text.
Why (#8206): the pre-#8206 gate was a pure text match, so it refused a
finish on an empty project root, and refused an agent that had no bash
tool to comply with — the run wedged, because nothing the agent could do
would satisfy the refusal.
What: project_root is the directory the agent’s fs/bash tools are scoped
to (None when nothing is bound); has_bash is whether THIS agent’s
gated registry carries the bash tool.
Test: tests::default_gate_accepts_without_bash_tool,
tests::default_gate_accepts_on_empty_project_root.
Implementations§
Trait Implementations§
Source§impl Clone for VerifyGateContext
impl Clone for VerifyGateContext
Source§impl Debug for VerifyGateContext
impl Debug for VerifyGateContext
Auto Trait Implementations§
impl Freeze for VerifyGateContext
impl RefUnwindSafe for VerifyGateContext
impl Send for VerifyGateContext
impl Sync for VerifyGateContext
impl Unpin for VerifyGateContext
impl UnsafeUnpin for VerifyGateContext
impl UnwindSafe for VerifyGateContext
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.