story-kit: done 302_story_bot_cost_command_shows_total_and_per_story_token_spend
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
---
|
||||
name: "MCP tool to move stories between pipeline stages"
|
||||
---
|
||||
|
||||
# Story 304: MCP tool to move stories between pipeline stages
|
||||
|
||||
## User Story
|
||||
|
||||
As a bot operator (Timmy), I want an MCP tool that moves stories between pipeline stages, so that I don't need shell mv permissions to manage the pipeline.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] New MCP tool 'move_story' accepts story_id and target_stage (e.g. 'backlog', 'current', 'qa', 'merge', 'done')
|
||||
- [ ] Validates the story exists before moving
|
||||
- [ ] Handles the file move between stage directories
|
||||
- [ ] Returns a confirmation message with the old and new stage
|
||||
- [ ] Works for stories, bugs, spikes, and refactors
|
||||
- [ ] Replaces the need for shell mv commands to move story files
|
||||
- [ ] Tool description tells bots to prefer specific tools (accept_story, move_story_to_merge, request_qa) when available, and use move_story only for arbitrary moves that lack a dedicated tool (e.g. moving to backlog, moving ghost stories back to current)
|
||||
|
||||
## Out of Scope
|
||||
|
||||
- TBD
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
name: "Bot cost command shows total and per-story token spend"
|
||||
---
|
||||
|
||||
# Story 302: Bot cost command shows total and per-story token spend
|
||||
|
||||
## User Story
|
||||
|
||||
As a project owner in a Matrix room, I want to type "{bot_name} cost" to see total token spend and the top most expensive stories, so that I can check burn rate from my phone.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] '{bot_name} cost' shows total spend for the last 24 hours
|
||||
- [ ] Shows top 5 most expensive stories from the last 24 hours with their costs
|
||||
- [ ] Shows cost breakdown by agent type (coder, QA, mergemaster) for the last 24 hours
|
||||
- [ ] Also shows an all-time total for context
|
||||
- [ ] Registered in the command registry so it appears in help output
|
||||
- [ ] Handled at bot level without LLM invocation
|
||||
|
||||
## Out of Scope
|
||||
|
||||
- TBD
|
||||
Reference in New Issue
Block a user