pub struct TaskSnapshot {Show 13 fields
pub task_id: String,
pub mode: TaskMode,
pub state: TaskState,
pub session_id: Option<String>,
pub final_response: Option<String>,
pub changes: Vec<String>,
pub unified_diff: String,
pub evidence_truncated: bool,
pub command_results: Vec<CommandResult>,
pub verification: TaskVerification,
pub verification_command: Option<String>,
pub verification_exit_code: Option<i32>,
pub progress: String,
}Expand description
Bounded public projection of canonical task evidence.
Fields§
§task_id: StringService-assigned identity, distinct from the runtime session identity.
mode: TaskModeRequested execution policy.
state: TaskStateCurrent process lifecycle.
session_id: Option<String>Canonical execution session, when observed.
final_response: Option<String>Last public agent response, sanitized and bounded.
changes: Vec<String>Successful recorded changes only; never a workspace-wide attribution claim.
unified_diff: StringRecorded unified diff, sanitized and bounded.
evidence_truncated: boolWhether public evidence was omitted, withheld, or collection was incomplete.
command_results: Vec<CommandResult>Historical command observations in result-event order. Later mutations do not erase them; they do not grant current-generation verification credit.
verification: TaskVerificationCurrent runtime-verifier outcome, scoped to its recorded command.
verification_command: Option<String>Most recent runtime-recorded verifier command; not every task assertion.
verification_exit_code: Option<i32>Exit code from the recorded verifier, never the task process exit.
progress: StringBounded public lifecycle description. Raw stderr and private reasoning are excluded.
Implementations§
Source§impl TaskSnapshot
impl TaskSnapshot
Sourcepub fn invalidate_verification(&mut self)
pub fn invalidate_verification(&mut self)
Invalidate proof after later tool activity; old commands cannot describe the current mutation generation.
Sourcepub fn mark_incomplete(&mut self)
pub fn mark_incomplete(&mut self)
A stopped or failed collector may have missed later evidence. Retain a known verifier failure, but never retain a positive completion claim.
Trait Implementations§
Source§impl Clone for TaskSnapshot
impl Clone for TaskSnapshot
Source§impl Debug for TaskSnapshot
impl Debug for TaskSnapshot
Source§impl JsonSchema for TaskSnapshot
impl JsonSchema for TaskSnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more