pub struct Decision {Show 13 fields
pub id: DecisionId,
pub key: Key,
pub project: ProjectId,
pub question: String,
pub status: DecisionStatus,
pub outcome: Option<String>,
pub resolved_at: Option<DateTime<Utc>>,
pub rationale: Option<String>,
pub related_work: BTreeSet<WorkItemId>,
pub artifact_ids: BTreeSet<ArtifactId>,
pub blocks: BTreeSet<WorkItemId>,
pub supersedes: Option<DecisionId>,
pub options: Vec<DecisionOption>,
}Expand description
A question or choice included in work context, optionally blocking execution.
Fields§
§id: DecisionIdStable entity identity; it must match its containing map key.
key: KeyHuman-readable key, unique in this entity category.
project: ProjectIdProject that owns this entity.
question: StringQuestion requiring a decision.
status: DecisionStatusWhether the question still gates execution.
outcome: Option<String>Non-empty resolution for a decided gate.
resolved_at: Option<DateTime<Utc>>When decide, or the reviewed change that created this replacement, resolved it; absent for
decisions resolved before this was recorded.
rationale: Option<String>Reason for the choice or for raising the question.
Work whose context includes this decision, without imposing an execution gate.
artifact_ids: BTreeSet<ArtifactId>Sources supporting the decision, distinct from task completion evidence.
blocks: BTreeSet<WorkItemId>Work items gated by this decision.
supersedes: Option<DecisionId>Superseded decision whose rationale and sources this choice replaces.
options: Vec<DecisionOption>Structured alternatives; when present, a decided outcome is exactly one option key.