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:
gsxdsm
2026-03-31 15:09:28 -07:00
parent 65b4620656
commit b6ceeb8ae3
3 changed files with 268 additions and 1 deletions

View 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.