story-kit: create 77_bug_create_bug_file_writes_no_yaml_front_matter
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user