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/api/server.go | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'internal/api/server.go') diff --git a/internal/api/server.go b/internal/api/server.go index 4af7325..35128d0 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -46,8 +46,6 @@ type Server struct { logger *slog.Logger mux *http.ServeMux claudeBinPath string // path to claude binary; defaults to "claude" - geminiBinPath string // path to gemini binary; defaults to "gemini" - elaborateCmdPath string // overrides claudeBinPath; used in tests validateCmdPath string // overrides claudeBinPath for validate; used in tests scripts ScriptRegistry // optional; maps endpoint name → script path workDir string // working directory injected into elaborate system prompt @@ -113,7 +111,7 @@ func (s *Server) SetLLM(c *llm.Client) { } -func NewServer(store *storage.DB, pool *executor.Pool, registry *executor.Registry, logger *slog.Logger, claudeBinPath, geminiBinPath string) *Server { +func NewServer(store *storage.DB, pool *executor.Pool, registry *executor.Registry, logger *slog.Logger, claudeBinPath string) *Server { wd, _ := os.Getwd() s := &Server{ ctx: context.Background(), @@ -127,7 +125,6 @@ func NewServer(store *storage.DB, pool *executor.Pool, registry *executor.Regist logger: logger, mux: http.NewServeMux(), claudeBinPath: claudeBinPath, - geminiBinPath: geminiBinPath, workDir: wd, workspaceRoot: "/workspace", } @@ -175,16 +172,6 @@ func (s *Server) routes() { s.mux.HandleFunc("POST /api/projects", s.handleCreateProject) s.mux.HandleFunc("GET /api/projects/{id}", s.handleGetProject) s.mux.HandleFunc("PUT /api/projects/{id}", s.handleUpdateProject) - s.mux.HandleFunc("POST /api/stories/elaborate", s.handleElaborateStory) - s.mux.HandleFunc("POST /api/stories/approve", s.handleApproveStory) - s.mux.HandleFunc("GET /api/stories", s.handleListStories) - s.mux.HandleFunc("POST /api/stories", s.handleCreateStory) - s.mux.HandleFunc("GET /api/stories/{id}", s.handleGetStory) - s.mux.HandleFunc("GET /api/stories/{id}/tasks", s.handleListStoryTasks) - s.mux.HandleFunc("POST /api/stories/{id}/tasks", s.handleAddTaskToStory) - s.mux.HandleFunc("PUT /api/stories/{id}/status", s.handleUpdateStoryStatus) - s.mux.HandleFunc("POST /api/stories/{id}/ship", s.handleShipStory) - s.mux.HandleFunc("GET /api/stories/{id}/deployment-status", s.handleStoryDeploymentStatus) s.mux.HandleFunc("GET /api/health", s.handleHealth) s.mux.HandleFunc("GET /api/version", s.handleVersion) s.mux.HandleFunc("POST /api/webhooks/github", s.handleGitHubWebhook) -- cgit v1.2.3