ID:WORK-071Status:readyPriority:highComplexity:moderateMilestone:v0.9.0
Parse Resolution sections in the plan scanner
Extend the plan scanner to extract ## Resolution sections from work item and bug files into a structured resolution field on PlanEntity.
Acceptance Criteria
PlanEntityinterface inrunes/plan/src/types.tsgains an optionalresolutionfield withdate,branch,pr, andbodysubfieldsparseFile()inrunes/plan/src/scanner.tsextracts the Resolution section from the raw source when presentCompleted:line is parsed intoresolution.date(ISO date string)Branch:line is parsed intoresolution.branch(backticks stripped)PR:line is parsed intoresolution.pr- Remaining content goes into
resolution.body - Files without a
## Resolutionsection produceresolution: undefined - Unit tests cover: full resolution, minimal resolution (just a sentence), missing resolution, resolution with only some fields
Approach
Add a Resolution interface to types.ts. In the scanner, after extracting criteria, locate ## Resolution within the rune's line range and parse it using simple line-prefix matching as described in SPEC-027. The extraction should work on the raw source string (not the AST) since it's a convention-based section, similar to how extractCriteria works.
References
- SPEC-027