story-kit: create 310_story_bot_delete_command_removes_a_story_from_the_pipeline

This commit is contained in:
Dave
2026-03-19 11:57:28 +00:00
parent 62c2c531e6
commit a058fa5f19
2 changed files with 24 additions and 30 deletions

View File

@@ -1,30 +0,0 @@
---
name: "Token cost breakdown missing from expanded work item detail panel"
---
# Bug 308: Token cost breakdown missing from expanded work item detail panel
## Description
Story 300 implemented the token cost badge on the pipeline board but skipped the acceptance criterion for showing per-agent cost breakdown in the expanded work item detail panel. When you click into a story, there's no cost information visible.
## How to Reproduce
1. Click on a work item that has token usage data (cost badge visible on board)
2. Look at the expanded detail panel
3. No cost breakdown is shown
## Actual Result
Expanded work item detail panel shows no token cost information.
## Expected Result
Detail panel shows per-agent cost breakdown (coder, QA, mergemaster sessions) with token counts and cost in USD for the selected story.
## Acceptance Criteria
- [ ] WorkItemDetailPanel fetches token cost data using the existing /work-items/:story_id/token-cost endpoint
- [ ] Shows per-agent session breakdown: agent name, model, token counts (input/output/cache), cost
- [ ] Shows total cost for the story
- [ ] Shows empty state when no token data exists

View File

@@ -0,0 +1,24 @@
---
name: "Bot delete command removes a story from the pipeline"
---
# Story 310: Bot delete command removes a story from the pipeline
## User Story
As a project owner in a Matrix room, I want to type "{bot_name} delete {story_number}" to remove a story/bug/spike from the pipeline, so that I can clean up obsolete or duplicate work items from chat.
## Acceptance Criteria
- [ ] '{bot_name} delete {number}' finds the story/bug/spike by number across all pipeline stages and deletes the file
- [ ] Confirms deletion with the story name and stage it was in
- [ ] Returns a friendly message if no story with that number exists
- [ ] Stops any running agent on the story before deleting
- [ ] Removes the worktree if one exists for the story
- [ ] Registered in the command registry so it appears in help output
- [ ] Handled at bot level without LLM invocation
- [ ] Commits the deletion to git
## Out of Scope
- TBD