STATE-WP-0069 T04/T06: body metering and workplan-first state internals
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Share LegacyWorkstreamIdBodyMixin across create schemas; meter POST /tasks/
and /decisions/ workstream_id bodies. State summary uses workplan flow;
NextStep dual-writes workplan_* fields alongside legacy workstream_*.
This commit is contained in:
tegwick 2026-07-08 23:13:28 +02:00
parent 6e5e150803
commit 388b330809
11 changed files with 157 additions and 36 deletions

View file

@ -10,7 +10,7 @@ topic_slug: custodian
planning_priority: medium
planning_order: 69
created: "2026-07-08"
updated: "2026-07-13"
updated: "2026-07-14"
state_hub_workstream_id: "923bb94a-d16c-422c-b81e-16328bd7b60c"
---
@ -189,6 +189,9 @@ Progress 2026-07-13 (T04): legacy responses now include `Sunset` (Jun 2027 plann
horizon). POST `/progress/` meters `workstream_id` request bodies; hub-core progress
router accepts optional body-meter hook.
Progress 2026-07-14 (T04): POST `/tasks/` and POST `/decisions/` meter legacy
`workstream_id` request bodies via `LegacyWorkstreamIdBodyMixin`.
## Task: Legacy completion event — stop dual-publish
```task
@ -236,6 +239,10 @@ Progress 2026-07-09 (T06): added `flows/workplan.yaml` (`custodian.workplan.v1`)
first with `open_workstreams` fallback. Legacy `flows/workstream.yaml` and summary
dual-key remain until legacy-meter clears callers.
Progress 2026-07-14 (T06): state summary flow evaluation uses `workplan` flow;
`NextStep` dual-writes `workplan_*` alongside legacy `workstream_*` fields.
`LegacyWorkstreamIdBodyMixin` shared across create schemas.
## Task: Closeout — registry cleanup and verification
```task