pub struct Task {Show 20 fields
pub id: TaskId,
pub title: String,
pub notes: Option<String>,
pub status: TaskStatus,
pub priority: Priority,
pub parent_id: Option<TaskId>,
pub blocked_by: Vec<TaskId>,
pub created_at: DateTime<Utc>,
pub created_by: String,
pub started_at: Option<DateTime<Utc>>,
pub started_by: Option<String>,
pub completed_at: Option<DateTime<Utc>>,
pub completed_by: Option<String>,
pub proof: Option<Proof>,
pub abandoned_at: Option<DateTime<Utc>>,
pub abandoned_reason: Option<String>,
pub assigned_to: Option<String>,
pub payload: Option<Value>,
pub parent_change: Option<String>,
pub on_complete: Option<OnCompleteHook>,
}Expand description
A unit of work inside a plan.
Fields§
§id: TaskId§title: String§notes: Option<String>Free-form notes: a brief, decisions, links. They may span lines and
hold at most MAX_NOTES_BYTES. TaskStore::set_notes edits them
at any status. None when a task has none, as every task stored
before the field existed reads.
status: TaskStatus§priority: Priority§parent_id: Option<TaskId>§blocked_by: Vec<TaskId>§created_at: DateTime<Utc>§created_by: String§started_at: Option<DateTime<Utc>>§started_by: Option<String>§completed_at: Option<DateTime<Utc>>§completed_by: Option<String>§proof: Option<Proof>§abandoned_at: Option<DateTime<Utc>>§abandoned_reason: Option<String>§assigned_to: Option<String>§payload: Option<Value>Opaque JSON payload attached to a task. Used by the policy
fallback pattern (POLICY_V1.md §22.4) to stash a deferred
ChangeProposal or similar state for a downstream consumer to
act on when the task completes. The -tasks crate does not
interpret the contents.
parent_change: Option<String>Identifier of the change this task gates. For the fallback
pattern this is the opaque spec / commit handle from the
original ChangeProposal. The -tasks crate does not resolve
it; consumers (MCP server, Lens) look it up.
on_complete: Option<OnCompleteHook>Hook that downstream consumers should run when this task
transitions to Done. The -tasks crate serializes and
round-trips the hook but does NOT execute it.