---
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: "b7122b4b-c253-48dd-877b-24243a064fb2"
---

# 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: "918df047-277f-41e4-ad04-b6f1095f8e45"
```

- `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: "856fc563-435d-48b4-928e-9c1f00558b7e"
```

- `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: "57cf1bf9-e05b-4cd8-aa30-c4e9846d6e4a"
```

- `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: "4a3b58d5-3bff-4057-a468-d6e2cf66b6aa"
```

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`.