pub struct Candidate {Show 14 fields
pub index: usize,
pub label: char,
pub agent: String,
pub branch: String,
pub worktree: PathBuf,
pub summary: String,
pub stat: String,
pub files: usize,
pub commits: usize,
pub empty: bool,
pub failed: Option<String>,
pub verified_noop: Option<String>,
pub duration_ms: u64,
pub folded: bool,
}Expand description
One candidate implementation.
Fields§
§index: usizePosition in the implementer list.
label: charBlind label as presented to judges.
agent: StringWhich agent wrote it. Recorded for the stats tables, never shown to a judge.
branch: StringBranch, named after the label so judges can inspect it without learning the author.
worktree: PathBufWorktree path.
summary: StringSanitized author summary.
stat: Stringgit diff --stat.
files: usizeFiles touched.
commits: usizeCommits ahead of base.
empty: boolTrue when the agent produced no change at all.
failed: Option<String>Why this candidate is not in the running.
verified_noop: Option<String>The validated structured declaration this candidate gave for writing no
change on purpose — the strict JSON NO CHANGE NEEDED:
contract prompt::implement documents. Some only when
crate::graph’s adoption guard accepted the claim: the CLI exited
cleanly, the tree really is empty, no command in the reply was left with
an unconfirmed exit status, the structured report passed validation
(already_satisfied, all requirements satisfied by passing checks,
final check passed, empty unresolved), and verifiable command/commit/
path evidence matched. A candidate that wrote nothing without valid
structured evidence — including incomplete or failed investigations —
reads None here. Historical prose-only evidence remains readable
for display but cannot establish a verified no-op on settlement.
duration_ms: u64Wall-clock time for the implementation.
folded: boolWhether the worktree has been folded away.
Implementations§
Source§impl Candidate
impl Candidate
Sourcepub fn has_valid_verified_noop(&self) -> bool
pub fn has_valid_verified_noop(&self) -> bool
Whether this candidate carries a consistent, non-failed, empty-tree
verified no-op claim backed by a valid structured NO CHANGE NEEDED:
summary.
Sourcepub fn verified_noop_display(&self) -> Option<String>
pub fn verified_noop_display(&self) -> Option<String>
Human-readable evidence, including historical prose-only records.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Candidate
impl<'de> Deserialize<'de> for Candidate
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>,
Auto Trait Implementations§
impl Forget for Candidate
impl Freeze for Candidate
impl Move for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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