WORK-127
Setting up your dashboard 0 entities found · 2/28 branches scanned
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
changeset-release/main View source

Criteria completion

Criteria completion: 5 of 5 (100%) checked; tracking started on Apr 19, no incremental history yet0%25%50%75%100%Apr 19May 3

Tracking started Apr 19 — check back for trends.

Branches 2
changeset-release/main current done
main doneclaude/file-naming-convention-LJdwR done
History 4
  1. f2b3512
    Content editedby Claude
    Add {ID}-{slug}.md filename convention + migrate filenames subcommand
  2. a295513
    Content editedby Claude
    Mark all SPEC-037 work items done with acceptance criteria and resolutio
  3. 59ded4a
    Content editedby Claude
    Implement SPEC-037 plan package hardening: all 7 work items
  4. 1676387
    Created (done)by Claude
    Accept SPEC-037 and break into work items; fix plan validation issues

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