diff options
| author | Claudomator Agent <agent@claudomator.local> | 2026-07-09 03:02:18 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator.local> | 2026-07-09 03:02:18 +0000 |
| commit | 5ea8f50b0c43a23af6e65bce1fe057a355cb1929 (patch) | |
| tree | 239b69867e5d321dab65f6eb2a58705765fe5b26 /internal/task/task.go | |
| parent | 647befd36bae81d478101f8dc4909432f6807fc6 (diff) | |
feat(task,storage): add Task.AcceptanceCriteria, mirroring story.Story's pattern
Diffstat (limited to 'internal/task/task.go')
| -rw-r--r-- | internal/task/task.go | 7 |
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"` |
