summaryrefslogtreecommitdiff
path: root/internal/task/story.go
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-06-05 09:21:32 +0000
committerClaudomator Agent <agent@claudomator>2026-06-05 09:21:32 +0000
commit0eb0b79396663c4901597becc6857a4cd795c58e (patch)
tree3532c82aa3f7c6deeed03f143d1c360d7cf6cc47 /internal/task/story.go
parentfa3ed5220a28f326d443726233c37e1a7df0ced5 (diff)
chore: remove stories/checker backend dead code
Remove the dead stories/checker backend tracked as design debt in CLAUDE.md: - Delete internal/api/stories.go, stories_test.go, elaborate.go - Delete internal/task/story.go, story_test.go - Remove story/checker columns from storage schema and all CRUD methods - Remove checkStoryCompletion, spawnCheckerTask, triggerStoryDeploy, createValidationTask, checkValidationResult, ShipStory, CheckStoryCompletion from executor; simplify handleRunResult - Remove story/checker fields from task.Task (StoryID, AcceptanceCriteria, CheckerForTaskID, CheckerReport) - Remove story routes and geminiBinPath from API server - Move claudeJSONResult/extractJSON from elaborate.go to validate.go - Rename ensureStoryBranch -> ensureBranch in ContainerRunner - Fix git identity in bare-repo tests; fix initial-branch to use main Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/task/story.go')
-rw-r--r--internal/task/story.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/internal/task/story.go b/internal/task/story.go
deleted file mode 100644
index 536bda1..0000000
--- a/internal/task/story.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package task
-
-import "time"
-
-type StoryState string
-
-const (
- StoryPending StoryState = "PENDING"
- StoryInProgress StoryState = "IN_PROGRESS"
- StoryShippable StoryState = "SHIPPABLE"
- StoryDeployed StoryState = "DEPLOYED"
- StoryValidating StoryState = "VALIDATING"
- StoryReviewReady StoryState = "REVIEW_READY"
- StoryNeedsFix StoryState = "NEEDS_FIX"
-)
-
-type Story struct {
- ID string `json:"id"`
- Name string `json:"name"`
- ProjectID string `json:"project_id"`
- BranchName string `json:"branch_name"`
- DeployConfig string `json:"deploy_config"`
- ValidationJSON string `json:"validation_json"`
- Status StoryState `json:"status"`
- CreatedAt time.Time `json:"created_at"`
- UpdatedAt time.Time `json:"updated_at"`
-}
-
-var validStoryTransitions = map[StoryState]map[StoryState]bool{
- StoryPending: {StoryInProgress: true},
- StoryInProgress: {StoryShippable: true, StoryNeedsFix: true},
- StoryShippable: {StoryDeployed: true},
- StoryDeployed: {StoryValidating: true},
- StoryValidating: {StoryReviewReady: true, StoryNeedsFix: true},
- StoryReviewReady: {},
- StoryNeedsFix: {StoryInProgress: true},
-}
-
-func ValidStoryTransition(from, to StoryState) bool {
- return validStoryTransitions[from][to]
-}