the-custodian/workplans/CUST-WP-0056-daily-todo-md-stale-review.md
codex 947f95e42a
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
fix(workplans): adopt ADR-007 derived identifiers for unregistered records
These workplans exist only in the retired local hub. Their random pre-ADR-007
identifiers are refused by C-06 as stale references, so they cannot be
registered. Deriving from the canonical record id takes no identity from
anything: central does not hold them and the old ids die with the cache.

Records central already holds were deliberately left untouched.

Refs CUST-WP-0068-T06
2026-08-25 20:24:08 +02:00

60 lines
No EOL
1.6 KiB
Markdown

---
id: CUST-WP-0056
type: workplan
title: "Daily TODO.md Stale Review via activity-core"
domain: custodian
repo: the-custodian
status: finished
owner: codex
topic_slug: custodian
created: "2026-07-08"
updated: "2026-07-08"
state_hub_workstream_id: "8357f6ea-4741-5189-bf0a-2625a1ca58dc"
---
# CUST-WP-0056 — Daily TODO.md Stale Review via activity-core
## Goal
Automate daily review of workstation `TODO.md` files that have not changed in
6+ days. TODO.md is a pragmatic interruption buffer; stale files should be
reviewed and durable items promoted to workplans (ADR-001).
## State Hub scan endpoint
```task
id: CUST-WP-0056-T01
status: done
priority: high
state_hub_task_id: "a90513e2-5124-578c-8bb4-49c3683a1c0b"
```
- `GET /repos/todo-md-staleness?stale_days=6` on State Hub
- Scans active registered repos with accessible `local_path`
- Returns repos whose `TODO.md` mtime is older than the threshold
## activity-core resolver and schedule
```task
id: CUST-WP-0056-T02
status: done
priority: high
state_hub_task_id: "1fb3ce8b-8bf5-50c8-a671-d3146d05d820"
```
- Resolver query `todo_md_staleness` in activity-core `state_hub.py`
- ActivityDefinition `daily-todo-md-stale-review.md` — cron `30 8 * * *` Berlin
- Emits one review task per stale repo; progress event `todo_md_stale_review`
## Retire STATUS.md pattern
```task
id: CUST-WP-0056-T03
status: done
priority: medium
state_hub_task_id: "f456d5ae-0893-59d4-b1f2-f1a187359158"
```
- Confirmed no `STATE.md` files across workstation repos
- Removed erroneous `STATUS.md` from net-kingdom; `SCOPE.md` remains canonical
- README orientation points to SCOPE.md only