Project Daily TODO.md stale review to railiance production ConfigMap
Adds daily-todo-md-stale-review.md to actcore-external-activity-definitions for 08:30 Berlin cron via todo_md_staleness State Hub query.
This commit is contained in:
parent
00917696dd
commit
be7b62b033
1 changed files with 49 additions and 0 deletions
|
|
@ -203,6 +203,55 @@ data:
|
|||
|
||||
Kubernetes projection of the Custodian-owned definition in
|
||||
`/home/worsch/the-custodian/activity-definitions/state-hub-consistency-sweep.md`.
|
||||
daily-todo-md-stale-review.md: |
|
||||
---
|
||||
id: "b8e4f1a2-3c6d-4e9f-a1b2-7d8e9f0a1b2c"
|
||||
name: "Daily TODO.md Stale Review"
|
||||
type: activity-definition
|
||||
version: "1.0"
|
||||
enabled: true
|
||||
owner: custodian
|
||||
governance: custodian
|
||||
status: active
|
||||
created: "2026-07-08"
|
||||
trigger:
|
||||
type: cron
|
||||
cron_expression: "30 8 * * *"
|
||||
timezone: Europe/Berlin
|
||||
misfire_policy: skip
|
||||
context_sources:
|
||||
- type: state-hub
|
||||
query: todo_md_staleness
|
||||
required: true
|
||||
params:
|
||||
stale_days: 6
|
||||
bind_to: context.todo_staleness
|
||||
report_sinks:
|
||||
- type: state-hub-progress
|
||||
event_type: todo_md_stale_review
|
||||
author: activity-core
|
||||
---
|
||||
|
||||
# ActivityDefinition: Daily TODO.md Stale Review
|
||||
|
||||
Kubernetes projection of the Custodian-owned definition in
|
||||
`/home/worsch/the-custodian/activity-definitions/daily-todo-md-stale-review.md`.
|
||||
|
||||
```rule
|
||||
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"]
|
||||
```
|
||||
phase5-stabilization-daily.md: |
|
||||
---
|
||||
id: "f3a8c2e1-9b4d-4a6f-8e2d-1c5b7a9e3f04"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue