story-kit: accept 72_bug_story_creation_does_not_quote_yaml_special_characters_in_name
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
---
|
||||
name: "Story creation does not quote YAML special characters in name"
|
||||
test_plan: pending
|
||||
---
|
||||
|
||||
# Bug 72: Story creation does not quote YAML special characters in name
|
||||
|
||||
## Description
|
||||
|
||||
Two related issues in `server/src/http/workflow.rs`:
|
||||
|
||||
1. **`create_story_file`** — ALREADY FIXED on master. The name value is now quoted in YAML front matter.
|
||||
2. **`create_bug_file`** — NOT FIXED. This function writes NO YAML front matter at all. It starts directly with `# Bug N: name`. It needs the same `---\nname: "..."\ntest_plan: pending\n---\n\n` block that `create_story_file` has.
|
||||
|
||||
## How to Reproduce
|
||||
|
||||
1. Call `create_bug` MCP tool with any name
|
||||
2. Open the generated .md file
|
||||
3. Observe there is no YAML front matter block at all — the 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`.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] `create_bug_file` in `server/src/http/workflow.rs` writes YAML front matter (`---\nname: "..."\ntest_plan: pending\n---`) before the markdown heading
|
||||
- [ ] The name value is quoted to handle YAML-special characters (colons, etc.)
|
||||
- [ ] Existing tests updated to assert front matter is present
|
||||
- [ ] `cargo clippy` and `cargo test` pass
|
||||
|
||||
## Note for Coder
|
||||
|
||||
The previous coder fixed `create_story_file` (already merged) but missed that `create_bug_file` (line ~240 in `server/src/http/workflow.rs`) has the same problem — actually worse, since it writes NO front matter at all. Look at how `create_story_file` (line ~165) generates front matter and replicate that pattern in `create_bug_file`.
|
||||
Reference in New Issue
Block a user