From 0eb0b79396663c4901597becc6857a4cd795c58e Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Fri, 5 Jun 2026 09:21:32 +0000 Subject: 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 --- internal/task/story.go | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 internal/task/story.go (limited to 'internal/task/story.go') 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] -} -- cgit v1.2.3