ID:WORK-085Status:done
Add Timestamp Attributes to Plan Rune Schemas
Priority:mediumComplexity:moderateMilestone:v1.0.0Source:SPEC-029
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
- File-Derived Timestamps for Runes (Phase 3 — Plan Rune Schemas)
- Inject $file.created and $file.modified Variables into Content Pipeline (variable injection — dependency)
runes/plan/src/tags/— plan rune schema filesrunes/plan/src/config.ts— plan rune engine configs
Relationships
History
- 59ded4aContent edited
- f262d7bsource+SPEC-029
- f0a845a
- ☑ `spec`, `work`, `bug`, `decision`, and `milestone` schemas each declare `created` and `modified` attributes
- ☑ Attribute defaults reference `$file.created` and `$file.modified` via 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"`)
- +5 more criteria
- f87ae8dstatusready→done
- 2a05e00milestone+v1.0.0
- 43cadfeCreated (ready, medium, moderate, plan, runes)