pub enum FinishGateOutcome {
Accept,
AcceptWithNote(String),
Reject(String),
}Expand description
What a FinishGate decided about a successful finish_task call.
Why (#8206): before this enum the gate could only accept or reject. An
accepted finish that the gate WOULD have policed, but could not (no
detectable test suite, no bash tool to run one with), must not read as a
verified one — so a third outcome carries the reason into the recorded
report instead of silently accepting.
What: Accept leaves the report untouched; AcceptWithNote appends the
note to the model’s own summary before it becomes the run’s output;
Reject downgrades the call to a recoverable tool error.
Test: agent_loop::tests::finish_gate_*,
verify_gate::tests::default_gate_accepts_on_empty_project_root.
Variants§
Accept
Nothing to say — the finish stands as reported.
AcceptWithNote(String)
The finish stands, but the report records this note.
Reject(String)
The finish is refused; the string is the recoverable retry reason.
Trait Implementations§
Source§impl Clone for FinishGateOutcome
impl Clone for FinishGateOutcome
Source§impl Debug for FinishGateOutcome
impl Debug for FinishGateOutcome
impl Eq for FinishGateOutcome
Source§impl PartialEq for FinishGateOutcome
impl PartialEq for FinishGateOutcome
impl StructuralPartialEq for FinishGateOutcome
Auto Trait Implementations§
impl Freeze for FinishGateOutcome
impl RefUnwindSafe for FinishGateOutcome
impl Send for FinishGateOutcome
impl Sync for FinishGateOutcome
impl Unpin for FinishGateOutcome
impl UnsafeUnpin for FinishGateOutcome
impl UnwindSafe for FinishGateOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 more