pub struct AgentResult {
pub status: AgentStatus,
pub exit_code: Option<i32>,
pub reason: Option<String>,
pub commits: Option<u32>,
pub summary: Option<String>,
pub verdict: Option<Verdict>,
}Expand description
Parsed agent completion result.
Fields§
§status: AgentStatus§exit_code: Option<i32>§reason: Option<String>§commits: Option<u32>§summary: Option<String>§verdict: Option<Verdict>The Validate stage’s self-reported verdict — distinct from status.
status reports whether the stage’s task (running /gsd-validate-phase)
completed; verdict reports whether validation ITSELF passed. Only
Some(Verdict::Pass) should advance Validate to Ship; Some(Verdict::Gaps)
and None both gate/loop back to Code (see advance()’s Validate arm).
Ignored entirely for non-Validate stages.
Deserialized leniently via [deserialize_verdict_lenient]: an absent,
unknown, or mis-cased value becomes None rather than failing the
whole AgentResult parse (T-13-14) — a malformed verdict must never
silently drop a valid status to Layer 2.
Trait Implementations§
Source§impl Clone for AgentResult
impl Clone for AgentResult
Source§fn clone(&self) -> AgentResult
fn clone(&self) -> AgentResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentResult
impl Debug for AgentResult
Source§impl<'de> Deserialize<'de> for AgentResult
impl<'de> Deserialize<'de> for AgentResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResult
impl Sync for AgentResult
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResult
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