# Delegated-completion acceptance measurement

Real Linux server, Node 26.13.1, OpenCode 2.4.3 using the authenticated provider available on the host. Synthetic git project; fresh databases created by each checkout's migrations. No copied user database, no provider stub, no unit-test harness.

1. Check out base `9a3126cae0309c5929ae1253eaec1a4f252a433d` and head `c492e69976ea2f7b0d6629f8939f1d659f6672b1` in separate worktrees. Run `vp i` in each.
2. Start each with `T3CODE_DEV_SEED=0 vp run dev:server`, using its own worktree's default data directory. Enable OpenCode in that server's settings (`providerInstances.opencode = {driver:"opencode", enabled:true, config:{enabled:true}}`).
3. Create one synthetic git project. Use that checkout's `node apps/server/src/bin.ts project add <project> --base-dir <checkout>/.t3`. Start one dispatcher with `thread start <project> 'Reply READY only.' --provider opencode --model openai/gpt-6-luna --wait --json --base-dir <checkout>/.t3`; retain its thread ID.
4. Run `node seed.mjs <checkout> <thread-id> 2000` on each. The driver uses authenticated WebSocket RPC to dispatch a deferred message and fail its preparation, 2,000 times. It reads SQLite only to find the resulting run IDs. Each synthetic message has a 1 KiB payload. The resulting history is 2,001 runs, rather than the triage script's 12,000-run cloned history. It exercises the same full-projection acceptance cost with less data.
5. Once both seed jobs finish, run `node measure.mjs <checkout> <thread-id> before <new-output-directory> 6`, then the same command for head with `after`. Run measurement sides sequentially. Each round delegates one real child through T3's delegate_task, keeps the parent active with `sleep 90`, and asks for DONE after CHILD_OK arrives.
6. The first round is a warmup. Compare the remaining five server `orchestrationV2.notificationAccepted` span durations. Retain the complete acceptance subtree, including full-projection reads, and verify each persisted child result and delivery state plus the parent's completed reply.

These measurements concern acceptance inside the server, not total model or end-to-end wake latency. This host has 8 logical CPUs and a Linux ext-family filesystem. It is not the report's 16-CPU Proxmox/ZFS host with a 49 GB database.
