feat(KB-607): add filesystem validation for tasks in scheduler
- Add filesystem-level validation to ensure task directories exist before scheduling - Implement validateTaskFilesystem() to check PROMPT.md and task.json integrity - Add comprehensive test coverage with 217 new test lines for validation scenarios - Create changeset for patch release documenting the fix - Prevent scheduler errors by validating task filesystem state upfront
This commit is contained in:
7
.changeset/fix-missing-task-validation.md
Normal file
7
.changeset/fix-missing-task-validation.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@dustinbyrne/kb": patch
|
||||
---
|
||||
|
||||
Add filesystem validation for tasks in scheduler
|
||||
|
||||
Tasks in the "todo" column are now validated for filesystem integrity before scheduling. If a task's directory or PROMPT.md file is missing, the task is automatically moved back to "triage" with a log entry so the AI can regenerate the specification. This handles edge cases where filesystem state and database state become inconsistent.
|
||||
Reference in New Issue
Block a user