Implement daily State Hub WSJF triage

This commit is contained in:
2026-05-17 23:10:57 +02:00
parent c0a3fb6543
commit 45d296b236
4 changed files with 390 additions and 6 deletions

View File

@@ -121,7 +121,7 @@ Tiebreakers:
```task
id: CUST-WP-0044-T01
status: todo
status: done
priority: high
state_hub_task_id: "cb450d56-b606-4c89-9e6e-64e139d6ac6b"
```
@@ -145,7 +145,7 @@ guessing what to inspect or how to structure the result.
```task
id: CUST-WP-0044-T02
status: todo
status: done
priority: high
depends_on: [CUST-WP-0044-T01]
state_hub_task_id: "078c547b-82e0-4ae9-a29c-7bab930924da"
@@ -170,7 +170,7 @@ Done when a daily run can complete unattended and leave a useful report.
```task
id: CUST-WP-0044-T03
status: todo
status: done
priority: high
depends_on: [CUST-WP-0044-T01]
state_hub_task_id: "85fb98ba-3716-4524-88d2-6340a3674d0a"
@@ -196,7 +196,7 @@ without pretending the score is more precise than the evidence supports.
```task
id: CUST-WP-0044-T04
status: todo
status: done
priority: high
state_hub_task_id: "14b3be2c-fe9e-464e-8db5-ec1b293f5829"
```
@@ -220,7 +220,7 @@ each candidate needs attention.
```task
id: CUST-WP-0044-T05
status: todo
status: done
priority: medium
depends_on: [CUST-WP-0044-T03, CUST-WP-0044-T04]
state_hub_task_id: "0b2d01e4-8c64-4b2f-bb51-502f6c1af975"
@@ -279,3 +279,25 @@ Custodian habit.
- Daily runs leave progress events so future sessions can see the review.
- No canonical workplan or canon changes happen without the appropriate review
gate.
## Implementation Notes - 2026-05-17
The daily triage loop now has two explicit layers:
- Active runner: Codex app automation `daily-state-hub-wsjf-triage`.
- Durable target substrate: activity-core ActivityDefinition draft at
`activity-definitions/daily-statehub-wsjf-triage.md`.
The reusable prompt, report template, WSJF procedure, loose-end detectors, and
recommendation gates live in
`runtime/prompts/daily_statehub_wsgi_triage.md`.
The activity-core definition is intentionally disabled while the Codex
automation is the active runner. It exists so the schedule and context contract
are reviewable in the same Markdown-as-definition style activity-core already
uses. When activity-core can run a Custodian agent/report action directly, this
definition should be enabled and the Codex app automation disabled, keeping a
single daily runner.
T06 remains open because it requires three actual daily runs and calibration
against follow-up work.