summaryrefslogtreecommitdiff
path: root/internal/task
diff options
context:
space:
mode:
Diffstat (limited to 'internal/task')
-rw-r--r--internal/task/task.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/task/task.go b/internal/task/task.go
index 464d05d..35da9a0 100644
--- a/internal/task/task.go
+++ b/internal/task/task.go
@@ -96,6 +96,13 @@ type Task struct {
Priority Priority `yaml:"priority" json:"priority"`
Tags []string `yaml:"tags" json:"tags"`
DependsOn []string `yaml:"depends_on" json:"depends_on"`
+ // AcceptanceCriteria, when non-empty, states what this task's work must
+ // satisfy — set by a decomposing parent via spawn_subtask's
+ // acceptance_criteria parameter (mirrors story.Story.AcceptanceCriteria
+ // exactly). Unused by execution itself; a later phase's arbitrated-review
+ // generalization reads it when evaluating this task's work, falling back
+ // to the enclosing story's own AcceptanceCriteria when empty.
+ AcceptanceCriteria []string `yaml:"acceptance_criteria" json:"acceptance_criteria"`
BranchName string `yaml:"-" json:"branch_name,omitempty"`
State State `yaml:"-" json:"state"`
RejectionComment string `yaml:"-" json:"rejection_comment,omitempty"`