Real-server turn-start performance proof

Commits:
 base c0b79173ab41c61c5341b19620e2a7468ce9543c
 head 088211cfad46f36d9e6dd4ca30d20ca247db07ec

Environment: same Linux x86_64 VM, 8 available vCPUs, Node 26.13.1 via Vite+.
No paid model, provider stub or inserted database rows. The standard Replay (dev)
ACP provider plays recordings already tracked by the repository. Every run and
attempt is created by the server's ordinary command API.

Reproduction (use each commit's own checkout and fresh home):
1. vp i
2. From the checkout root: python3 <artifact-directory>/instrument.py
   This only wraps pendingStoppedDelegatedTasks in performance.now(); the
   original function body is unchanged. Logging and consistency reads happen
   after the timed interval. No tests or test doubles are involved.
3. Copy evidence-driver.ts to apps/server/evidence-driver.ts so workspace
   dependencies resolve from the owning package.
4. Set HOME_FOR_PROOF to a new synthetic-data directory, OUT_FOR_PROOF to a
   new per-side timestamped directory, TIMINGS_FOR_PROOF to a new output file,
   and PORT_FOR_PROOF to an unused port. Start from the checkout root:
   T3CODE_DEV_SEED=0 EVIDENCE_TIMINGS="$TIMINGS_FOR_PROOF" vp run dev:server \
     --home-dir "$HOME_FOR_PROOF" --no-seed --port "$PORT_FOR_PROOF"
   Keep the process in your harness and wait for Listening before the next step.
5. In another shell, from the same checkout:
   vp exec node apps/server/evidence-driver.ts "$HOME_FOR_PROOF" \
     "http://127.0.0.1:$PORT_FOR_PROOF" "$OUT_FOR_PROOF" 3000
   It creates a project and a Replay bench-stream parent, launches a Replay
   bench-stream delegated child through delegated_task.request, and stops the
   thread. It verifies the child has stopped and logs the actual projection.
   It then switches the same provider session to the tracked multi-turn
   recording and sends 3,000 messages serially, waiting for each to complete.
   The driver opens only its own generated SQLite database READ ONLY to wait
   efficiently for completed runs; no database is used as a seed or written by
   the driver. All state changes go through HTTP/WS commands.
6. On stage ready, wait for the other side's seeding to finish too. Hold the
   other driver at its measurement gate so its server is idle, then run:
   vp exec node <artifact-directory>/responsiveness-probe.mjs \
     "http://127.0.0.1:$PORT_FOR_PROOF" "$OUT_FOR_PROOF"
   The probe warms up for one second, creates "$OUT_FOR_PROOF/measure.go",
   and sends independent GET /.well-known/t3/environment requests every 10 ms.
   The driver sends 11 more identical messages.
   Each measured function call executes inside the real server's
   ProviderTurnStartService, with its actual persisted 3,002-3,012 runs and
   attempts. Run the other side only after this measurement finishes; both servers stay idle between measurement workloads.
7. After the driver finishes, audit its own synthetic database read-only:
   python3 audit.py "$HOME_FOR_PROOF" "$OUT_FOR_PROOF"
   The compatibility projection RPC is a bounded history window, so its final
   counts in the driver log are window sizes, not total history sizes. audit.json
   records the full counts, oldest stopped cohort, task state and final replies.
   Capture the timing output, driver output and audit.json. Normalize them under a single
   artifact directory as base-main-timings.ndjson / head-main-timings.ndjson and
   base-main/driver.ndjson / head-main/driver.ndjson, then run:
   python3 summarize.py <artifact-directory> 3000
   The summary prints every sample, median, min/max and full spread. It also
   verifies that both sides completed every measured turn on one provider
   thread, returned the stopped task once after Stop, stopped returning it
   after the next completion, and retained the same interrupted/disposed task.
8. Stop the servers using their captured harness sessions and remove the
   disposable checkouts and synthetic data.

Scope: this times the synchronous scan within actual turn starts, and records
whole message-dispatch-to-completion latency separately. A reduction in scan time
is a reduction in synchronous event-loop blocking; it is not a claim that all
other turn-start work is constant time. The 13,553-run reporter-scale history and
2-6 second profile were not recreated.

Observed scope and limitations

The synchronous scan's median reduction exceeds the larger full sample spread.
All 11 measured scan durations on head are lower than all 11 on base.
Whole dispatch-to-completion and independent HTTP-probe improvements do not
exceed their full spreads, so those end-to-end improvements are not proven.
Every raw sample, including outliers, is retained.

Optional plots: with matplotlib installed, run python3 plot.py <artifact-directory>.
The paired plots use the same y-axis scale and display all 11 measured scan samples.
The .txt captures include every scan, whole-turn, and independent-client sample
summary, together with the functional checks from the read-only audit.
