Skip to content

Commit d0a170a

Browse files
authored
Merge pull request TheBushidoCollective#12 from TheBushidoCollective/hampton/last-updated-metadata
feat(units): add last_updated timestamp to unit frontmatter
2 parents 067cb83 + bd44b4b commit d0a170a

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
@@ -485,6 +486,9 @@ update_unit_status() {
485486
# Update status in frontmatter using han parse yaml-set
486487
han parse yaml-set status "$new_status" < "$unit_file" > "$unit_file.tmp" && mv "$unit_file.tmp" "$unit_file"
487488

489+
# Update last_updated timestamp
490+
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"
491+
488492
# Emit telemetry for unit status change (non-blocking)
489493
if [ -z "${_AIDLC_TELEMETRY_INIT:-}" ]; then
490494
local telemetry_lib="${SCRIPT_DIR}/telemetry.sh"

plugin/skills/elaborate/SKILL.md

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

0 commit comments

Comments
 (0)