docs(code-review): expand story file validation to include empty and malformed files
This commit is contained in:
parent
5a16c3a102
commit
b73670700b
|
|
@ -49,7 +49,7 @@ Search for stories with status `review` or `done`. Match by priority:
|
||||||
### 2. Load Story File
|
### 2. Load Story File
|
||||||
|
|
||||||
**Load file content:**
|
**Load file content:**
|
||||||
Read the complete contents of {story_path} and assign to `story_content` WITHOUT filtering, truncating or summarizing. If {story_path} cannot be read: report the error to the user and HALT the workflow.
|
Read the complete contents of {story_path} and assign to `story_content` WITHOUT filtering, truncating or summarizing. If {story_path} cannot be read, is empty, or obviously doesn't have the story: report the error to the user and HALT the workflow.
|
||||||
|
|
||||||
**Extract story identifier:**
|
**Extract story identifier:**
|
||||||
Verify the filename ends with `.md` extension. Remove `.md` to get `story_key` (e.g., "1-2-user-authentication.md" → "1-2-user-authentication"). If filename doesn't end with `.md` or the result is empty: report the error to the user and HALT the workflow.
|
Verify the filename ends with `.md` extension. Remove `.md` to get `story_key` (e.g., "1-2-user-authentication.md" → "1-2-user-authentication"). If filename doesn't end with `.md` or the result is empty: report the error to the user and HALT the workflow.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue