From a895a6c377a6a1edd660559345373e0f2a30ffb8 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 24 Feb 2026 14:53:23 +0000 Subject: [PATCH] story-kit: create 151_story_split_archived_into_done_and_archived_with_time_based_promotion --- ..._and_archived_with_time_based_promotion.md | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.story_kit/work/1_upcoming/151_story_split_archived_into_done_and_archived_with_time_based_promotion.md b/.story_kit/work/1_upcoming/151_story_split_archived_into_done_and_archived_with_time_based_promotion.md index ac37540..370013c 100644 --- a/.story_kit/work/1_upcoming/151_story_split_archived_into_done_and_archived_with_time_based_promotion.md +++ b/.story_kit/work/1_upcoming/151_story_split_archived_into_done_and_archived_with_time_based_promotion.md @@ -6,11 +6,31 @@ name: "Split archived into done and archived with time-based promotion" ## User Story -As a ..., I want ..., so that ... +As a developer watching work flow through the pipeline in my IDE, I want recently completed items separated from old ones, so that the folder view stays useful without being cluttered by dozens of ancient stories. + +## Description + +The `5_archived` folder has grown huge and clutters the IDE sidebar. Split it into two stages: + +- `5_done`: recently completed work — visible in IDE, useful for watching flow +- `6_archived`: old work moved here automatically after 4 hours + +The watcher should periodically check `5_done/` and move items older than 4 hours (based on file mtime) to `6_archived/`. + +### Key Files +- `server/src/io/watcher.rs`: filesystem watcher — add periodic sweep of `5_done/` +- `server/src/agents.rs`: `move_story_to_archived` → rename to `move_story_to_done`, target `5_done/` +- All MCP tools and pipeline logic that reference `5_archived` need updating to use `5_done` +- Frontend pipeline display if it shows archived/done items ## Acceptance Criteria -- [ ] TODO +- [ ] `5_archived/` is renamed to `6_archived/` +- [ ] New `5_done/` directory is created and used as the immediate completion target +- [ ] Mergemaster, accept_story, and all pipeline functions move completed work to `5_done/` (not directly to archived) +- [ ] Watcher periodically sweeps `5_done/` and moves items older than 4 hours to `6_archived/` +- [ ] Existing items in old `5_archived/` are migrated to `6_archived/` +- [ ] Frontend pipeline display updated if applicable ## Out of Scope