Issue 41380: headless Linux server measurement

This driver runs inside the real `t3 serve` process, with fresh synthetic data,
the production Orchestrator, EventSink, EventStore, ProjectionStore and SQLite
writer. It dispatches the real thread.visit command; it does not open a browser.
It does not use a test runner, mocked sink, or mocked database.

The reproduction is the triage report's scale model, not the original loaded
Docker host with 27 live Claude sessions. Slow processing and commit overhead
are imposed deterministically: 110 ms per backlog snapshot and 70 ms before/
after each production provider-batch commit. The 70 ms sleeps are outside the
real transaction, modeling round-trip overhead rather than actual disk latency.
The batcher, barrier, SQL transactions, event/projection writes and dispatch
are unmodified apart from these identical observation/load hooks on both sides.

instrument.py applies two scratch hooks to a clean checkout:
- EventSink: expose its own services to the workload and wrap provider commits.
- Orchestrator: expose the constructed service for thread.visit dispatch.
server-workload.ts holds the driver and observation state.
No hook is committed. Run on a clean base/head checkout with dependencies:

python3 instrument.py <checkout>
cd <checkout>
T3CODE_DEV_SEED=0 T3_EVIDENCE_OUTPUT=<new-output>/server.json node apps/server/src/bin.ts serve --host 127.0.0.1 --port <unused-port> --base-dir <new-output>/home --no-browser > <new-output>/private.log 2>&1

Stop the process normally after EVIDENCE COMPLETE appears. Private startup logs
include pairing credentials and must NOT be uploaded. Only server.json and
lines beginning EVIDENCE are public measurement captures. run-server.sh is an
equivalent wrapper; it instruments first, so use it only on a clean checkout.

Base: 977b7c7932020554df6aba8067b97fe56eede36b
Head: 65d261d2f801c74ca7a2727ef6c7c6a7b516473a
Both ran sequentially on the same Linux x86_64 machine with Node 26.13.1.
Each had a fresh base directory created at its own migration level, with no
live data copied, no provider turn, and no external accounts.

For each of no command / other-thread command / same-thread command, five runs:
1. Create a synthetic thread through EventSink (plus an unrelated control thread).
2. Gate a leading provider snapshot while enqueueing 30 distinct message.updated
   snapshots from one consumeProviderEvents stream.
3. Start thread.visit via Orchestrator.dispatch on the indicated thread, or none.
4. Release the gate and record monotonic time to backlog drain and command return.
5. Record provider transaction sizes. Drain includes the leading transaction's
   140 ms modeled overhead, but transactionSizes lists only the 30-event backlog.
6. Read persisted events and projected messages. Verify all 30 message texts,
   all 31 snapshot events (including leader), and visited state for same-thread.

The `receipt` field labels a successful orchestrator dispatch as accepted; the
orchestrator returns events/sequence, not the receipt object. Persisted command
receipts are also validated separately in validation.json, using the canonical
orchestration_command_receipts table. Validation checks all ten persisted
thread.visit-recorded events and final visit flags as well.

No screenshot/video is needed for this server-only output measurement.
Scenarios were not run: the repository docs explicitly exclude timing/perf
regressions from their scope. The UI interaction, real Claude load, Docker,
27 simultaneous sessions, and production-minute latency remain unverified.
