# MCP retry across restart: runtime reproduction

Revision: 044f07257c (origin/main), 2026-10-22, Linux fs-12.
Runtime: `vp install`, then `vp run dev` in isolated worktree `/home/ubuntu/wt/issue-16184`; seeded worktree `.t3` state. Chromium collaborative Browser panel, 1280 × 800. Provider: Codex, GPT-6-Astra, medium, full access.

1. At 19:23 UTC, submit through the web chat: call `delegate_task` with task `Reply with only PROBE_DONE. Do not use tools.`, mode `async`, clientRequestId `issue-16184-runtime-key`, targeting the current provider/model.
   Returned task: `node:delegated-task:command%3Amcp%3A3e2b68f9-4155-4a01-b4c2-06e0ba30eb8a%3Adelegate-task%3Aissue-16184-runtime-key`.
   Child completed with `PROBE_DONE`.
2. Explicitly retry identical call in the same parent thread before restart.
   Returned the same task ID. Parent lineage still showed one child.
3. Stop the owned dev runner with Ctrl-C; run `vp run dev` again with the same worktree state.
4. At 19:24 UTC, explicitly retry identical call in the same parent thread after restart.
   Returned task: `node:delegated-task:command%3Amcp%3A5715b7d5-2c94-4579-91e9-0e78ef989368%3Adelegate-task%3Aissue-16184-runtime-key`.
   Second child completed with `PROBE_DONE`; parent lineage showed two children.
5. Read-only SQLite query of `orchestration_v2_projection_nodes` confirmed two `kind=subagent`, `status=completed` rows with those IDs under the same parent thread.

Result: same key replays before restart, duplicates after restart. This reproduces explicit retry after a completed call, not automatic continuation of an interrupted wait call.

No application source was modified for this reproduction. Raw Browser text and persisted rows were retained locally during the task; unrelated seeded thread titles are omitted here.

## Fixed-head runtime verification

Runtime code revision: 204dcdf681 (implementation); a781b07cf1 adds only documentation. Same isolated state, parent thread, browser and provider/model as the base attempt.

1. At 19:30 UTC, start `vp run dev` with the fix. Through web chat call the same `delegate_task` task/mode/target with a fresh key `issue-16184-fixed-key`.
   Returned task: `node:delegated-task:command%3Amcp%3Athread%253Athread%253Aproject%253Ac3040805-7104-4021-a226-d421e8264dff%253A73d76223-70d9-472e-ad4b-564a30d9eb73%3Adelegate-task%3Aissue-16184-fixed-key`.
   Child completed with `PROBE_DONE`.
2. Stop owned dev runner with Ctrl-C, then run `vp run dev` again with unchanged worktree state.
3. At 19:31 UTC, explicitly retry identical fixed-key call in the same parent thread.
   Returned exactly the same task ID above; lineage stayed at three children total (two from the base reproduction, one from the fixed probe).
4. Read-only SQLite query confirms exactly one subagent node and one child thread for `issue-16184-fixed-key` after the retry.

Result: a mutation first accepted with the fix replays across server restart. No second child is created. Requests first accepted before the upgrade retain old credential-based IDs and cannot be reconstructed by this change. Interrupted waiting calls and automatic provider continuation were not exercised.
