Commit Graph

40 Commits

Author SHA1 Message Date
Dave
024fb2b4b8 Accept story 48: Two Column Layout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:56:34 +00:00
Dave
8bdf7d1484 story-kit: start story 49_deterministic_bug_lifecycle_management 2026-02-20 15:54:15 +00:00
Dave
1331992724 Accept story 46: Deterministic Story Mutations with Auto-Commit
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:34:47 +00:00
Dave
ee844c0fa9 Move stories 46 and 48 to current (agents working on them)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:30:49 +00:00
Dave
5c164f4855 Accept story 45: Deterministic Story Lifecycle Management
- accept_story MCP tool moves current/ to archived/
- move_story_to_archived helper with idempotent behavior
- start_agent auto-moves upcoming/ to current/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:09:39 +00:00
Dave
42640fba6a Accept story 44: Agent Completion Report via MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:02:41 +00:00
Dave
1b71449dd0 Story 44: Agent Completion Report via MCP
- report_completion MCP tool for agents to signal done
- Rejects if worktree has uncommitted changes
- Runs acceptance gates (clippy, tests) automatically
- Stores completion status on agent record
- 10 new tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:02:34 +00:00
Dave
7aa337d81b Update story 45: accept_story needs MCP tool not just REST
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:55:28 +00:00
Dave
8003a98a35 Update story 44: server auto-commits instead of rejecting uncommitted changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:51:57 +00:00
Dave
fc93475c78 Accept story 37: Editor Command for Worktrees
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:49:57 +00:00
Dave
53d9795e31 Move story 45 to current
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:32:57 +00:00
Dave
258d1c6b8b Move stories 37 and 44 to current
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:32:20 +00:00
Dave
de3c204165 Accept story 43: Unified Chat UI for Claude Code and Regular Chat
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:26:53 +00:00
Dave
44bc82d23a Story 43: Unified chat UI for Claude Code and regular chat
Integrate Claude Code provider into the chat UI alongside regular
Ollama/Anthropic providers. Updates AgentPanel and Chat components.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:26:40 +00:00
Dave
42c21f680b Accept story 42: Deterministic Worktree Management via REST/MCP API
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:22:24 +00:00
Dave
a9d45bbcd5 Story 42: Deterministic worktree management via REST/MCP API
Add REST and MCP endpoints for creating, listing, and removing worktrees.
Includes worktree lifecycle management and cleanup operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:22:09 +00:00
Dave
91534b4a59 Accept story 38: Auto-Open Project on Server Startup
Server detects .story_kit/ in cwd or parent directories at startup and
automatically opens the project. MCP tools work immediately without
manual project-open step. Falls back to cwd when no .story_kit/ found.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:11:53 +00:00
Dave
ea30faff95 Move story 43 to current: Unified Chat UI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:36:00 +00:00
Dave
e23d723ac2 Move story 38 to current: Auto-Open Project on Server Startup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:29:15 +00:00
Dave
c9b33b2107 Move story 42 to current: Deterministic Worktree Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:29:05 +00:00
Dave
4c5bfe9bce Accept story 40: MCP Server Obeys STORYKIT_PORT
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:27:18 +00:00
Dave
c1eaa2da2e Accept story 33: Copy-paste diff commands for agent worktrees
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:25:52 +00:00
Dave
c6a04f5e53 Accept story 41: Agent Completion Notification via MCP
Add wait_for_agent MCP tool that blocks until an agent reaches a terminal
state (completed, failed, stopped). Returns final status with session_id,
worktree_path, and git commits made by the agent.

- Subscribe-before-check pattern avoids race conditions
- Handles lagged receivers, channel closure, and configurable timeout
- Default timeout 5 minutes, includes git log of agent commits in response
- 11 new tests covering all paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:16:04 +00:00
Dave
0d48370ac0 Move story 41 to current: Agent Completion Notification via MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:54:07 +00:00
Dave
00f8d16bb0 Move story 33 to current
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:26:57 +00:00
Dave
b3800beb61 Move story 40 to current: MCP Server Obeys STORYKIT_PORT
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:25:54 +00:00
Dave
c94b3d4450 Accept story 36: Enforce Front Matter on All Story Files
Add POST /workflow/stories/create endpoint that auto-assigns story
numbers, generates correct front matter, and writes to upcoming/.
Add slugify_name and next_story_number helpers with full test coverage.
Add frontend createStory API method and types.
Update README to recommend creation API for agents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 18:02:48 +00:00
Dave
5e5cdd9b2f Accept story 30: Worktree-based agent orchestration
Add git worktree isolation for concurrent story agents. Each agent now
runs in its own worktree with setup/teardown commands driven by
.story_kit/project.toml config. Agents stream output via SSE and support
start/stop lifecycle with Pending/Running/Completed/Failed statuses.

Backend: config.rs (TOML parsing), worktree.rs (git worktree lifecycle),
refactored agents.rs (broadcast streaming), agents_sse.rs (SSE endpoint).
Frontend: AgentPanel.tsx with Run/Stop buttons and streaming output log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 17:58:53 +00:00
Dave
f7902c3569 Merge story-32: Multi-Instance Worktree Support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

# Conflicts:
#	.story_kit/stories/archived/32_multi_instance_worktree_support.md
#	.story_kit/stories/current/30_worktree_agent_orchestration.md
#	.story_kit/stories/current/32_multi_instance_worktree_support.md
#	.story_kit/stories/current/36_enforce_story_front_matter.md
#	.story_kit/stories/upcoming/29_directory_based_workflow_coordination.md
#	.story_kit/stories/upcoming/32_worktree_agent_orchestration.md
#	.story_kit/stories/upcoming/33_worktree_diff_and_editor_integration.md
#	.story_kit/stories/upcoming/34_agent_configuration_and_roles.md
#	.story_kit/stories/upcoming/35_agent_security_and_sandboxing.md
2026-02-19 17:17:21 +00:00
Dave
e54209eb5a Story 32: Multi-Instance Worktree Support
Add configurable port via STORYKIT_PORT env var (default 3001). Server
prints machine-readable STORYKIT_PORT=<port> on startup and writes
.story_kit_port file for discovery. Frontend proxy and WebSocket read
VITE_STORYKIT_PORT env var instead of hardcoding port 3001.

7 new tests (4 backend, 3 frontend) all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 17:14:33 +00:00
Dave
12542f10a8 Move story 32 to current and rename to multi-instance worktree support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:58:33 +00:00
Dave
79d6868a82 Move story 36 to current: Enforce Front Matter on All Story Files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:56:14 +00:00
Dave
af71c16e1d Backfill YAML front matter on all story files
Add name and test_plan front matter to 31 story files that were
missing it. Upcoming stories get test_plan: pending, current and
archived get test_plan: approved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:50:04 +00:00
Dave
775e6630ce Move story 30 to current: Worktree-Based Agent Orchestration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:43:45 +00:00
Dave
baee84dfa5 Move story 32 to current and rename to multi-instance worktree support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:39:14 +00:00
Dave
b4f2eacea6 Accept story 28: Show Remaining Test TODOs in the UI
All acceptance criteria verified. Always show story name/id in TODO
panel regardless of story count. Archive story.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 16:04:05 +00:00
Dave
2c3003d721 Story 28: Show remaining test TODOs in the UI
Add TodoPanel that displays unchecked acceptance criteria from current
story files. Backend parses `- [ ]` lines from markdown, frontend
shows them in a panel with refresh. Includes 4 Rust unit tests,
3 Vitest tests, 3 Playwright E2E tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:33:45 +00:00
Dave
8f0bc971bf Ensuring we keep the current storykit stories folder 2026-02-19 12:59:02 +00:00
Dave
013b28d77f Story 26: Establish TDD workflow and quality gates
Add workflow engine with acceptance gates, test recording, and review
queue. Frontend displays gate status (blocked/ready), test summaries,
failing badges, and warnings. Proceed action is disabled when gates
are not met. Includes 13 unit tests (Vitest) and 9 E2E tests
(Playwright) covering all five acceptance criteria.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 12:54:04 +00:00
Dave
d0a1da2176 Update Story Kit workflow docs and move story 26 2026-02-17 14:12:45 +00:00