From fa70641dae1411e245ee93eced081fb256b972b7 Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 18 Mar 2026 01:58:26 +0100 Subject: [PATCH] chore(workplans): inject state_hub_workstream_id and task IDs from fix-consistency Co-Authored-By: Claude Sonnet 4.6 --- workplans/CUST-WP-0018-api-hardening-code-quality.md | 8 ++++++++ workplans/CUST-WP-0019-dashboard-ux-polish.md | 4 ++++ workplans/CUST-WP-0020-test-suite.md | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/workplans/CUST-WP-0018-api-hardening-code-quality.md b/workplans/CUST-WP-0018-api-hardening-code-quality.md index 164f638..c50232c 100644 --- a/workplans/CUST-WP-0018-api-hardening-code-quality.md +++ b/workplans/CUST-WP-0018-api-hardening-code-quality.md @@ -8,6 +8,7 @@ owner: custodian topic_slug: custodian created: "2026-03-18" updated: "2026-03-18" +state_hub_workstream_id: "c7777d8a-a796-4f72-b444-64cc14f77a58" --- # State Hub — API Hardening & Code Quality @@ -37,6 +38,7 @@ TD-CUST-005 (N+1 selectin) deferred — not pressing at current scale. id: CUST-WP-0018-T01 status: todo priority: high +state_hub_task_id: "5045749c-22a5-4f37-81b1-6fc87ae7c580" ``` Replace `datetime.utcnow()` with `datetime.now(tz=timezone.utc)` throughout @@ -54,6 +56,7 @@ impact. id: CUST-WP-0018-T02 status: todo priority: high +state_hub_task_id: "8aadbaf8-d898-436e-8df0-7f095c916613" ``` Wrap `_get()`, `_post()`, `_patch()`, `_delete()` in a try/except that @@ -82,6 +85,7 @@ except Exception as e: id: CUST-WP-0018-T03 status: todo priority: medium +state_hub_task_id: "26f8d132-b2f4-4939-9497-a9ad64e0a73e" ``` `_write_project_log()` in `decisions.py` silently returns when the project @@ -98,6 +102,7 @@ was skipped. Resolves TD-CUST-012. id: CUST-WP-0018-T04 status: todo priority: medium +state_hub_task_id: "18da9d84-54a4-4028-8b8e-014d2b2f6ed6" ``` Add `priority: str | None` and `due_date_before: date | None` query params to @@ -113,6 +118,7 @@ Add `priority: str | None` and `due_date_before: date | None` query params to id: CUST-WP-0018-T05 status: todo priority: medium +state_hub_task_id: "488f448f-396d-4924-98a5-a2e84d4b1b95" ``` Add `owner: str | None` and `slug: str | None` query params to @@ -128,6 +134,7 @@ Add `owner: str | None` and `slug: str | None` query params to id: CUST-WP-0018-T06 status: todo priority: medium +state_hub_task_id: "dd7e9da8-19fb-4b02-a100-972c582dbaa9" ``` Add `offset: int = 0` query param to `list_progress()` alongside existing @@ -143,6 +150,7 @@ Add `offset: int = 0` query param to `list_progress()` alongside existing id: CUST-WP-0018-T07 status: todo priority: low +state_hub_task_id: "b949805b-dd3e-43d6-89cc-631e3183f67c" ``` Bundle of small fixes (each a few lines): diff --git a/workplans/CUST-WP-0019-dashboard-ux-polish.md b/workplans/CUST-WP-0019-dashboard-ux-polish.md index b4228c6..a45d832 100644 --- a/workplans/CUST-WP-0019-dashboard-ux-polish.md +++ b/workplans/CUST-WP-0019-dashboard-ux-polish.md @@ -8,6 +8,7 @@ owner: custodian topic_slug: custodian created: "2026-03-18" updated: "2026-03-18" +state_hub_workstream_id: "0a208032-89a1-4b67-a356-e7e3c1e28ca6" --- # State Hub Dashboard — UX Polish @@ -33,6 +34,7 @@ by priority; each is independently deliverable. id: CUST-WP-0019-T01 status: todo priority: high +state_hub_task_id: "d7f0b3db-57d3-42b3-bc2f-1d2c4b7082e5" ``` User suggestion: rename the "Repos" nav link to "Repository" and restructure @@ -61,6 +63,7 @@ entry with a section group containing three children. Update any hardcoded id: CUST-WP-0019-T02 status: todo priority: low +state_hub_task_id: "6843fa20-cea2-46ec-9c99-abaf7c561559" ``` TD-CUST-002 residual: `policy/workstream-dod.md` still has a hard-coded @@ -79,6 +82,7 @@ values — leave as-is or add named exports like `POLL_SLOW = 30_000` to id: CUST-WP-0019-T03 status: todo priority: low +state_hub_task_id: "4074bace-f977-4b44-bfae-c8691fca2aca" ``` `todo.md` Suggestions section filters with `t.status === "open"` but new diff --git a/workplans/CUST-WP-0020-test-suite.md b/workplans/CUST-WP-0020-test-suite.md index 4b7ea6c..0172fd8 100644 --- a/workplans/CUST-WP-0020-test-suite.md +++ b/workplans/CUST-WP-0020-test-suite.md @@ -8,6 +8,7 @@ owner: custodian topic_slug: custodian created: "2026-03-18" updated: "2026-03-18" +state_hub_workstream_id: "56379f10-bad9-49b4-bbd0-e4a0de5c6a81" --- # State Hub — pytest Test Suite @@ -36,6 +37,7 @@ not mocking the database). Use a real PostgreSQL test database via id: CUST-WP-0020-T01 status: todo priority: high +state_hub_task_id: "35a52abb-15b1-4c12-b1c6-5e321377ddfa" ``` - Add `pytest`, `pytest-asyncio`, `httpx` to `state-hub/pyproject.toml` dev deps @@ -55,6 +57,7 @@ priority: high id: CUST-WP-0020-T02 status: todo priority: high +state_hub_task_id: "85b0b6e2-d66b-4619-8e1f-2056862a0d97" ``` Coverage targets (happy path + key error cases): @@ -72,6 +75,7 @@ Coverage targets (happy path + key error cases): id: CUST-WP-0020-T03 status: todo priority: medium +state_hub_task_id: "41106482-5b1c-4ee9-8979-377595f704b9" ``` - TD CRUD + workflow status transitions + notes endpoints @@ -87,6 +91,7 @@ priority: medium id: CUST-WP-0020-T04 status: todo priority: medium +state_hub_task_id: "6fa30dd1-065d-4158-8ef9-ed5ff7001083" ``` For each MCP tool, call the underlying HTTP helper against the test client @@ -102,6 +107,7 @@ just the HTTP-level correctness. Focus on: `get_state_summary`, id: CUST-WP-0020-T05 status: todo priority: low +state_hub_task_id: "5d206df8-c902-4c5b-8a0b-58b600480c0f" ``` Add `make test` as a step in any existing CI pipeline, or document the