--- id: STATE-WP-0072 type: workplan title: "Workstream caller remediation (second sweep)" domain: infotech repo: state-hub status: finished owner: codex topic_slug: custodian planning_priority: high planning_order: 72 created: "2026-07-09" updated: "2026-07-09" state_hub_workstream_id: "e5b1ba1b-6302-5699-a888-819d017e710f" --- # STATE-WP-0072 — Workstream caller remediation **Parent:** `STATE-WP-0070` (phase-2 legacy retirement). **Research:** `research/20260709-workstream-caller-sweep.md` ## Goal Eliminate remaining production HTTP callers that hit legacy `workstream_id` query/body params or `/workstreams/*` paths, so 8-hour legacy-meter windows show declining `GET /workstreams/*` counts. ## Task: state-hub dashboard and CLI ```task id: STATE-WP-0072-T01 status: done priority: high state_hub_task_id: "6d2f85d4-6fb5-58d1-be96-8cb37c9726d8" ``` - `dashboard/src/workstreams/[id].md` — tasks fetch uses `?workplan_id=` - `custodian_cli.py` — task/progress POST bodies use `workplan_id` - `docs/onboarding.md` — curl example uses `/workplans/` Done when no state-hub runtime file POSTs or GETs legacy workstream paths/params. ## Task: Daily triage prompt (the-custodian + activity-core projection) ```task id: STATE-WP-0072-T02 status: done priority: high state_hub_task_id: "0bd0bd0a-4d43-5342-a5bc-ff431bcdcd10" ``` - `the-custodian/runtime/prompts/daily_statehub_wsgi_triage.md` — `/workplans/index`, `?workplan_id=` - `activity-core/k8s/railiance/21-custodian-runtime.yaml` — matching prompt text Done when prompt no longer references `/workstreams/workplan-index`. ## Task: Cross-repo progress/decision POST bodies ```task id: STATE-WP-0072-T03 status: done priority: medium state_hub_task_id: "9bff3e4a-34a3-5c3b-854e-495762dd2f51" ``` - `wise-validator/src/wisevalidator/reporter.py` — `workplan_id` on progress POST - `agentic-resources/session_memory/curate/decisions.py` — drop `workstream_id` dual-write - Update tests in both repos Done when tests pass and POST bodies use `workplan_id` only. ## Task: Verify and capture meter evidence ```task id: STATE-WP-0072-T04 status: done priority: high state_hub_task_id: "afb558e6-5bb3-511d-b481-47356f06fca4" ``` 1. `rg` confirm no missed runtime callers in fixed repos. 2. `python scripts/capture_legacy_meter_evidence.py` (8h window). 3. Update `docs/evidence/workstream-caller-inventory-20260709.md` checklist. 4. Archive workplan when evidence captured. Done when 8h capture committed and STATE-WP-0072 `finished`.