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>,
pub decided_by_layer: Option<u8>,
}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.
decided_by_layer: Option<u8>Which evaluation layer (0-3) produced this result (D-10, 17-01). Set by
every constructor in this module; None is reserved for test-only
fixture literals that don’t route through the real cascade.
Trait Implementations§
Source§impl Clone for AgentResult
impl Clone for AgentResult
Source§fn clone(&self) -> AgentResult
fn clone(&self) -> AgentResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more