the-custodian/activity-definitions/daily-todo-md-stale-review.md
codex 5af495edf4
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 10s
Add daily TODO.md stale review automation (CUST-WP-0056)
Schedule 08:30 Berlin daily scan for TODO.md unchanged 6+ days;
emit review tasks and promote durable work to workplans.
2026-07-08 13:19:06 +02:00

1.5 KiB

id name type version enabled owner governance status created trigger context_sources report_sinks
b8e4f1a2-3c6d-4e9f-a1b2-7d8e9f0a1b2c Daily TODO.md Stale Review activity-definition 1.0 true custodian custodian active 2026-07-08
type cron_expression timezone misfire_policy
cron 30 8 * * * Europe/Berlin skip
type query required params bind_to
state-hub todo_md_staleness true
stale_days
6
context.todo_staleness
type event_type author
state-hub-progress todo_md_stale_review activity-core

Daily TODO.md Stale Review

Runs daily at 08:30 Europe/Berlin (after WSJF triage at 07:20). Scans registered workstation repos for TODO.md files that have not changed in 6+ days and emits a review task per stale repo.

Policy: TODO.md is a pragmatic interruption buffer only. Stale files should be reviewed — archive done items, delete noise, or promote durable work into a workplan via ADR-001.

id: flag-stale-todo-md
for_each: context.todo_staleness.repos
bind_as: repo
condition: 'context.repo.age_days >= 6'
action:
  task_template: 'Review stale TODO.md — {context.repo.repo_slug}'
  description: >-
    TODO.md unchanged for {context.repo.age_days} days (mtime {context.repo.mtime}).
    Review open items: archive done work, delete noise, or promote valuable
    topics to a workplan file and run statehub fix-consistency.
  target_repo: context.repo.repo_slug
  priority: low
  labels: ["todo-md", "stale-review", "automated"]