pub enum TestCommandTarget {
Manifest {
manifest: String,
command: String,
},
PromptNamed {
command: String,
},
}Expand description
What a runnable test command was detected FROM, for the bound project.
Why: The refusal message must name the evidence so the agent knows what to
run — #8206’s second closure condition. Carrying the manifest/command
through the detection result is what makes that message specific rather
than the pre-#8206 generic “a pytest/cargo/npm/pnpm/go test invocation”.
What: Manifest when a root manifest implies a command; PromptNamed
when the root is non-empty but only the prompt names one.
Test: verify_gate::tests::detect_manifest_names_each_ecosystem,
verify_gate::tests::detect_falls_back_to_prompt_named_on_non_empty_root.
Variants§
Manifest
A manifest at the project root implies this test command.
Fields
PromptNamed
No recognised manifest, but the root is non-empty and the prompt names a command — the matched prompt text.
Implementations§
Source§impl TestCommandTarget
impl TestCommandTarget
Sourcepub fn evidence(&self) -> String
pub fn evidence(&self) -> String
The evidence phrase embedded in a refusal message.
Why: #8206 closure condition 2 — a refusal must name the detected
manifest or command.
What: A clause reading naturally after “finish_task rejected: “.
Test: verify_gate::tests::default_gate_refusal_names_the_manifest.
Trait Implementations§
Source§impl Clone for TestCommandTarget
impl Clone for TestCommandTarget
Source§impl Debug for TestCommandTarget
impl Debug for TestCommandTarget
impl Eq for TestCommandTarget
Source§impl PartialEq for TestCommandTarget
impl PartialEq for TestCommandTarget
impl StructuralPartialEq for TestCommandTarget
Auto Trait Implementations§
impl Freeze for TestCommandTarget
impl RefUnwindSafe for TestCommandTarget
impl Send for TestCommandTarget
impl Sync for TestCommandTarget
impl Unpin for TestCommandTarget
impl UnsafeUnpin for TestCommandTarget
impl UnwindSafe for TestCommandTarget
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