ID:WORK-085Status:donePriority:mediumComplexity:moderateMilestone:v1.0.0
Add Timestamp Attributes to Plan Rune Schemas
Summary
Add created and modified attributes to the plan rune schemas (spec, work, bug, decision, milestone) with defaults referencing $file.created and $file.modified. Update the plan rune configs to display timestamps in rendered output alongside existing status and priority badges.
Acceptance Criteria
spec,work,bug,decision, andmilestoneschemas each declarecreatedandmodifiedattributes- Attribute defaults reference
$file.createdand$file.modifiedvia Markdoc variable default syntax (or equivalent fallback if Markdoc doesn't support{ $variable }in defaults) - Authors can override timestamps with explicit attribute values (e.g.
created="2025-06-15") - Plan rune configs in
runes/plan/src/config.tsupdated to render timestamps in the header metadata area - The
decisionrune's existingdateattribute remains unchanged;createdandmodifiedare additive - Rendered output displays dates in a consistent format alongside existing badges
- Existing plan content that omits
created/modifiedattributes continues to work (attributes are optional) - Tests updated for new attributes and rendering output
Approach
- Verify whether Markdoc supports
{ $variable: 'file.created' }in attribute defaults — if not, resolve defaults during the schema transform phase - Add
createdandmodifiedattributes to each plan rune schema inrunes/plan/src/tags/ - Update
runes/plan/src/config.tsto include structure entries for timestamp display - Add or update CSS in
runes/plan/styles/for timestamp display elements - Update tests and snapshots
References
- SPEC-029 (Phase 3 — Plan Rune Schemas)
- WORK-084 (variable injection — dependency)
runes/plan/src/tags/— plan rune schema filesrunes/plan/src/config.ts— plan rune engine configs