From 9a46350bb3e1192b76aab859218f95312e17fdf4 Mon Sep 17 00:00:00 2001 From: tegwick Date: Mon, 19 Oct 2026 15:30:46 +0200 Subject: [PATCH] docs(workplan): open ACTIVITY-WP-0048 for /execution switch receipts Holds activity-core's route-switch and rollback receipts that STATE-WP-0079-T04 and STATE-WP-0098-T02 depend on. Co-Authored-By: Claude Opus 5.5 Assistant: claude-code Assistant-Model: opus Assistant-Process: 244572@bnt-lap001 Assistant-Session: 3b235e1a-ae45-4d0f-ae70-17a9bd78ece8 --- WORK-RECORDS.md | 4 ++ ...e-hub-execution-surface-switch-receipts.md | 69 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md diff --git a/WORK-RECORDS.md b/WORK-RECORDS.md index a4a5af6..40822ba 100644 --- a/WORK-RECORDS.md +++ b/WORK-RECORDS.md @@ -50,6 +50,7 @@ | workplan | ACTIVITY-WP-0045 | finished | — | workplans/ACTIVITY-WP-0045-stale-historical-projection-disposition.md | | workplan | ACTIVITY-WP-0046 | active | — | workplans/ACTIVITY-WP-0046-repository-grant-v2-publish-scope.md | | workplan | ACTIVITY-WP-0047 | active | — | workplans/ACTIVITY-WP-0047-daily-security-flow-adoption.md | +| workplan | ACTIVITY-WP-0048 | ready | — | workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md | | workplan | ACTIVITY-WP-ADHOC-2026-06-01 | finished | — | workplans/ADHOC-2026-06-01.md | | workplan | ACTIVITY-WP-ADHOC-2026-08-20 | finished | — | workplans/ADHOC-2026-08-20.md | | workplan | ACTIVITY-WP-ADHOC-2026-08-23 | finished | — | workplans/ADHOC-2026-08-23.md | @@ -273,6 +274,9 @@ | task | ACTIVITY-WP-0047-T02 | wait | — | workplans/ACTIVITY-WP-0047-daily-security-flow-adoption.md | | task | ACTIVITY-WP-0047-T03 | wait | — | workplans/ACTIVITY-WP-0047-daily-security-flow-adoption.md | | task | ACTIVITY-WP-0047-T04 | done | — | workplans/ACTIVITY-WP-0047-daily-security-flow-adoption.md | +| task | ACTIVITY-WP-0048-T01 | todo | — | workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md | +| task | ACTIVITY-WP-0048-T02 | wait | — | workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md | +| task | ACTIVITY-WP-0048-T03 | wait | — | workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md | | task | ACTIVITY-WP-ADHOC-2026-06-01-T01 | done | — | workplans/ADHOC-2026-06-01.md | | task | ACTIVITY-WP-ADHOC-2026-06-01-T02 | done | — | workplans/ADHOC-2026-06-01.md | | task | ACTIVITY-WP-ADHOC-2026-06-01-T03 | done | — | workplans/ADHOC-2026-06-01.md | diff --git a/workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md b/workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md new file mode 100644 index 0000000..f629929 --- /dev/null +++ b/workplans/ACTIVITY-WP-0048-state-hub-execution-surface-switch-receipts.md @@ -0,0 +1,69 @@ +--- +id: ACTIVITY-WP-0048 +type: workplan +title: "Route-switch and rollback receipts for the moved /execution surface (STATE-WP-0079-T04, STATE-WP-0098-T02)" +domain: infotech +repo: activity-core +status: ready +owner: claude-activity-core +topic_slug: activity-core +created: "2026-10-19" +updated: "2026-10-19" +flavor: implementation +related: [STATE-WP-0079, STATE-WP-0098, ACTIVITY-WP-0029] +--- + +Origin: State Hub messages 4427c6cb (STATE-WP-0079-T04 asks for the workplan +that holds activity-core's receipts) and 13cff5ff (STATE-WP-0098-T02 asks about +the `/workplan-queue` dashboard view), both dated 2026-10-13. + +Scope is only the part activity-core owns. That part is `GET /execution/semantics`, +plus `GET /ops-runs` as the automation-history replacement for +`GET /execution/launch-requests`. `GET /execution/workplan-stack` and +`PATCH /execution/workplans/{id}/intent` are not activity-core's. The first +belongs to the Repo Manager work index or the hub-core projection; for the +second, edit the workplan file. activity-core's own `/execution` routes answer +410 with those pointers (ACTIVITY-WP-0029). `POST /execution/launch-requests` +does not move: workplan ids are never queued in activity-core. + +## Candidate read smoke + +```task +id: ACTIVITY-WP-0048-T01 +status: todo +priority: medium +``` + +Run a read-only smoke against the production activity-core API. +`GET /execution/semantics` returns 200 with the `replacements` map, and the +State Hub 410 routes point to the same owners. `GET /ops-runs?limit=50` +returns rows comparable on ids and counts with what the dashboard used +`GET /execution/launch-requests` for. Record the commands and the result +here. There are no writes. + +## Route-switch receipt + +```task +id: ACTIVITY-WP-0048-T02 +status: wait +blocked_on: message-from:state-hub +priority: medium +``` + +Wait: State Hub sets the switch window and gives metered acceptance under +STATE-WP-0079-T04. The `/workplan-queue` page points its `/execution/semantics` +read and its history read at activity-core behind a toggle. The other +widgets go to repo-manager or hub-core. Record the switch time, the toggle +state and the smoke result as the receipt. + +## Rollback receipt + +```task +id: ACTIVITY-WP-0048-T03 +status: wait +blocked_on: message-from:state-hub +priority: medium +``` + +Rollback flips the toggle back to the retained State Hub view, which stays +unchanged. Rehearse it once in the switch window and record the receipt.