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
changeset-release/main View source

Criteria completion

Criteria completion: 6 of 6 (100%) checked; tracking started on Jul 14, no incremental history yet0%25%50%75%100%Jul 14Jul 30

Tracking started Jul 14 — check back for trends.

Branches 3
History 3
  1. 4b7d5e2
    Created (done)by github-actions[bot]
  2. 74979c1
    Content editedby Claude
    plan: mark SPEC-049 work items done (WORK-495..499)
  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.