ID:WORK-127Status:donePriority:highComplexity:simpleSource:SPEC-037
Fix plan schema bugs: pending status, severity mismatch, tag filtering
Four small bugs identified in the SPEC-037 audit that need immediate fixes.
Acceptance Criteria
pendingadded to work schema status enum inrunes/plan/src/tags/work.ts- Severity enum aligned: both
bug.tsandvalidate.tsusecosmetic(nottrivial) validatechecks complexity values against the valid set (trivial,simple,moderate,complex,unknown)- Tag filtering splits on comma, trims whitespace, and matches terms exactly
- Tests cover all four fixes
References
- Plan Package Hardening — Plan Package Hardening (Part 1: Bug Fixes)
Resolution
Completed: 2026-04-12
Branch: claude/spec-037-breakdown-docs-Whj40
What was done
- Added
pendingto work.ts statusValues and update.ts VALID_STATUS - Changed validate.ts VALID_SEVERITIES from
trivialtocosmetic - Added VALID_COMPLEXITIES set and complexity check in checkInvalidAttributes()
- Tag filtering was already correct (exact match via split+includes)
- Added 4 new tests: cosmetic severity, invalid complexity, valid complexity, pending status
Relationships
Dependency of
History
- a295513statusin-progress→done
- ☑ `pending` added to work schema status enum in `runes/plan/src/tags/work.ts`
- ☑ Severity enum aligned: both `bug.ts` and `validate.ts` use `cosmetic` (not `trivial`)
- ☑ `validate` checks complexity values against the valid set (`trivial`, `simple`, `moderate`, `complex`, `unknown`)
- +2 more criteria
- 59ded4astatusready→in-progress
- 1676387Created (ready, high, simple, SPEC-037, plan, cli, validation)