From d6d7fb3c5945a6deedad6f5ffaf0821d69fa1361 Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 19 Mar 2026 21:29:44 +0000 Subject: [PATCH] story-kit: create 319_refactor_split_workflow_rs_into_story_bug_and_test_result_modules --- ..._into_story_bug_and_test_result_modules.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .story_kit/work/1_backlog/319_refactor_split_workflow_rs_into_story_bug_and_test_result_modules.md diff --git a/.story_kit/work/1_backlog/319_refactor_split_workflow_rs_into_story_bug_and_test_result_modules.md b/.story_kit/work/1_backlog/319_refactor_split_workflow_rs_into_story_bug_and_test_result_modules.md new file mode 100644 index 0000000..0086908 --- /dev/null +++ b/.story_kit/work/1_backlog/319_refactor_split_workflow_rs_into_story_bug_and_test_result_modules.md @@ -0,0 +1,30 @@ +--- +name: "Split workflow.rs into story, bug, and test result modules" +--- + +# Refactor 319: Split workflow.rs into story, bug, and test result modules + +## Current State + +- TBD + +## Desired State + +workflow.rs is 2,117 lines handling story file manipulation, bug file creation, test result reading/writing, and section replacement utilities all in one file. Split into: +- workflow/mod.rs — shared utilities (find_story_file, replace_section_content) +- workflow/story_ops.rs — create_story_file, update_story_in_file, story acceptance criteria operations +- workflow/bug_ops.rs — create_bug_file, close_bug operations +- workflow/test_results.rs — write_test_results_to_story_file, read_test_results_from_story_file, coverage operations +- Tests split into corresponding test modules + +## Acceptance Criteria + +- [ ] workflow.rs split into focused modules under http/workflow/ +- [ ] Shared utilities remain in mod.rs and are re-exported +- [ ] All public function signatures unchanged +- [ ] All existing tests pass +- [ ] No public API changes + +## Out of Scope + +- TBD