WORK-496
ID:WORK-496Status:done

Add pr attribute to work and bug runes

Promote PR references from unstructured resolution prose to a first-class, validated, queryable attribute so traceability rollups become possible.

Priority:mediumComplexity:moderateMilestone:v0.28.0Source:SPEC-049

Criteria completion

Criteria completion: 6 of 6 (100%) checked; history from Jul 9 to Jul 140%25%50%75%100%Jul 9Jul 14
Branches 3
History 3
  1. cf13ce1
    • ☑ `work` and `bug` runes accept an optional, multi-valued (comma-separated) `pr` attribute matching `<org>/<repo>#<number>`
    • ☑ `pr` added to `ALLOWED_ATTRS` for `work` and `bug`
    • ☑ `plan validate` errors on malformed `pr` values; does **not** warn on a missing `pr` in v1
    • ☑ `plan.update` MCP tool and `refrakt plan update` accept `pr` with the same validation
    • ☑ The resolution parser continues to read the legacy `PR:` line, but the `pr` attribute takes precedence
    • ☑ Tests cover format validation, multi-value parsing, and legacy `PR:` fallback
    by bjornolofandersson
  2. 283ce5a
    Created (ready)by bjornolofandersson
  3. 9a519fd
    Content editedby Claude
    plan: add v0.28.0 plan-model-hardening milestone and work breakdown

Acceptance Criteria

  • work and bug runes accept an optional, multi-valued (comma-separated) pr attribute matching <org>/<repo>#<number>
  • pr added to ALLOWED_ATTRS for work and bug
  • plan validate errors on malformed pr values; does not warn on a missing pr in v1
  • plan.update MCP tool and refrakt plan update accept pr with the same validation
  • The resolution parser continues to read the legacy PR: line, but the pr attribute takes precedence
  • Tests cover format validation, multi-value parsing, and legacy PR: fallback

References

  • SPEC-049 — spec (New attributes, CLI / MCP changes)

Resolution

Completed: 2026-07-09

Branch: claude/milestone-v0-28-0-llvtfa PR: refrakt-md/refrakt#565

What was done

  • work/bug accept multi-valued pr (ALLOWED_ATTRS, schema, MCP, CLI). validate errors on malformed pr, never on absence. Legacy PR: resolution line still parsed as fallback.
  • Tests: format validation, multi-value, legacy fallback.