Skip to content

Commit d25cf8a

Browse files
jwaldripclaude
andcommitted
feat(units): add last_updated timestamp to unit frontmatter
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c0349b7 commit d25cf8a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

plugin/lib/dag.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# status: pending # pending | in_progress | completed | blocked
77
# depends_on: [unit-01-setup, unit-03-session]
88
# branch: ai-dlc/intent/04-auth
9+
# last_updated: 2026-03-26T19:30:00Z # ISO 8601 UTC timestamp of last status change
910
# ---
1011

1112
# Source configuration system
@@ -480,6 +481,9 @@ update_unit_status() {
480481

481482
# Update status in frontmatter using han parse yaml-set
482483
han parse yaml-set status "$new_status" < "$unit_file" > "$unit_file.tmp" && mv "$unit_file.tmp" "$unit_file"
484+
485+
# Update last_updated timestamp
486+
han parse yaml-set last_updated "$(date -u +%Y-%m-%dT%H:%M:%SZ)" < "$unit_file" > "$unit_file.tmp" && mv "$unit_file.tmp" "$unit_file"
483487
}
484488

485489
# Get DAG summary counts

plugin/skills/elaborate/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ git commit -m "elaborate(${INTENT_SLUG}): define intent"
977977
```markdown
978978
---
979979
status: pending
980+
last_updated: "" # ISO 8601 UTC timestamp of last status change (auto-populated)
980981
depends_on: []
981982
branch: ai-dlc/{intent-slug}/NN-{unit-slug}
982983
discipline: {discipline} # frontend, backend, api, documentation, devops, design, etc.

0 commit comments

Comments
 (0)