summaryrefslogtreecommitdiff
path: root/internal/api/elaborate.go
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-03-26 08:35:11 +0000
committerClaudomator Agent <agent@claudomator>2026-03-26 08:35:11 +0000
commit4affaae6853c260346afe344dfb8d46ff497530f (patch)
tree23daa66c5183694c8cd7cb83d8551357b2c960b1 /internal/api/elaborate.go
parent8bb9ac1328fc4f6b8d8e7aae0d6ea706e502c245 (diff)
add AcceptanceCriterion struct, replace steps with acceptance_criteria in elaboratedStoryValidation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/elaborate.go')
-rw-r--r--internal/api/elaborate.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/internal/api/elaborate.go b/internal/api/elaborate.go
index dd51c7d..37380c2 100644
--- a/internal/api/elaborate.go
+++ b/internal/api/elaborate.go
@@ -287,11 +287,18 @@ type elaboratedStoryTask struct {
Subtasks []elaboratedStorySubtask `json:"subtasks"`
}
+// AcceptanceCriterion is a single verifiable condition in a story validation.
+type AcceptanceCriterion struct {
+ Name string `json:"name"`
+ Verification string `json:"verification"`
+ TestRef string `json:"test_ref,omitempty"`
+}
+
// elaboratedStoryValidation describes how to verify the story was successful.
type elaboratedStoryValidation struct {
- Type string `json:"type"`
- Steps []string `json:"steps"`
- SuccessCriteria string `json:"success_criteria"`
+ Type string `json:"type"`
+ AcceptanceCriteria []AcceptanceCriterion `json:"acceptance_criteria"`
+ SuccessCriteria string `json:"success_criteria"`
}
// elaboratedStory is the full implementation plan produced by story elaboration.
@@ -320,7 +327,7 @@ Output ONLY valid JSON matching this schema:
],
"validation": {
"type": "build|test|smoke",
- "steps": ["step1", "step2"],
+ "acceptance_criteria": [{"name": "...", "verification": "...", "test_ref": "optional"}],
"success_criteria": "what success looks like"
}
}