From 4affaae6853c260346afe344dfb8d46ff497530f Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Thu, 26 Mar 2026 08:35:11 +0000 Subject: add AcceptanceCriterion struct, replace steps with acceptance_criteria in elaboratedStoryValidation Co-Authored-By: Claude Sonnet 4.6 --- internal/api/elaborate.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'internal/api/elaborate.go') 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" } } -- cgit v1.2.3