From ef1591dbd7f2bf625cca7259a08b6dc78bbaa527 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 23 Feb 2026 14:46:39 +0000 Subject: [PATCH] story-kit: create 77_bug_create_bug_file_writes_no_yaml_front_matter --- ...te_bug_file_writes_no_yaml_front_matter.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .story_kit/work/1_upcoming/77_bug_create_bug_file_writes_no_yaml_front_matter.md diff --git a/.story_kit/work/1_upcoming/77_bug_create_bug_file_writes_no_yaml_front_matter.md b/.story_kit/work/1_upcoming/77_bug_create_bug_file_writes_no_yaml_front_matter.md new file mode 100644 index 0000000..086a8bd --- /dev/null +++ b/.story_kit/work/1_upcoming/77_bug_create_bug_file_writes_no_yaml_front_matter.md @@ -0,0 +1,24 @@ +# Bug 77: create_bug_file writes no YAML front matter + +## Description + +The create_bug_file function in server/src/http/workflow.rs writes no YAML front matter block at all. It starts directly with # Bug N: name. All work item .md files need a ---\nname: \"...\"\ntest_plan: pending\n--- block for the UI front matter parser to work. + +## How to Reproduce + +1. Call create_bug MCP tool with any name\n2. Open the generated .md file\n3. Observe there is no YAML front matter block - file starts with # Bug + +## Actual Result + +Bug files have no YAML front matter, causing the UI front matter parser to fail. + +## Expected Result + +Bug files should have the same --- front matter block as story files, with quoted name and test_plan: pending. See create_story_file (line ~165 in workflow.rs) for the correct pattern to replicate. + +## Acceptance Criteria + +- [ ] create_bug_file in server/src/http/workflow.rs writes YAML front matter before the markdown heading +- [ ] The name value is quoted to handle YAML-special characters +- [ ] Existing tests updated to assert front matter is present +- [ ] cargo clippy and cargo test pass