WORK-127
ID:WORK-127Status:done

Fix plan schema bugs: pending status, severity mismatch, tag filtering

Four small bugs identified in the SPEC-037 audit that need immediate fixes.

Priority:highComplexity:simpleSource:SPEC-037
claude/file-naming-convention-LJdwR View source

Criteria completion

No incremental history — criteria tracking started on Apr 21.

Branches 2
claude/file-naming-convention-LJdwR current done
main donechangeset-release/main done
History 2
  1. bbbb94c
    Created (done)by bjornolofandersson
  2. f2b3512
    Content editedby Claude
    Add {ID}-{slug}.md filename convention + migrate filenames subcommand

Acceptance Criteria

  • 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)
  • Tag filtering splits on comma, trims whitespace, and matches terms exactly
  • Tests cover all four fixes

References

  • SPEC-037 — Plan Package Hardening (Part 1: Bug Fixes)

Resolution

Completed: 2026-04-12

Branch: claude/spec-037-breakdown-docs-Whj40

What was done

  • Added pending to work.ts statusValues and update.ts VALID_STATUS
  • Changed validate.ts VALID_SEVERITIES from trivial to cosmetic
  • 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