# Real-server upgrade proof for issue 42796

Environment: Linux x86_64, Node dev server, free devReplay/showcase provider; no client browser involved. All database reads used SQLite mode=ro. No tests were used as proof.

1. In the head worktree, temporarily check out 39a154ff85, install dependencies, and start `T3CODE_DEV_SEED=0 vp run dev:server` with fresh state.
2. Create an empty synthetic Git repository. Add it using `node apps/server/src/bin.ts project add <project> --base-dir .t3`.
3. Run `node apps/server/src/bin.ts thread start --provider devReplay --model showcase --wait --base-dir .t3 <project> 'secret-alpha-1 please explain'` and repeat with alpha-2.
4. Place delete-thread.ts under scripts/scenarios and run it from that worktree. This dispatches the same thread.delete command used by the UI, deleting only thread 1. Its synthetic thread ID is embedded in the script. It does not exercise the dialog.
5. Wait for the old server to write userdata/compacted-at itself. Stop the server. Save a copy of its synthetic userdata directory. The stamp was 1795610698951, created 2026-11-25 12:44:58.951 UTC.
6. Copy that identical stopped database and stamp into the isolated base worktree's .t3/userdata. Return the head worktree to 0c43f9b4f7e09ab2ba3394e28477586dd2d159d9. Base is f7d6796019709464d1ce1c10a19620eb129f638a. Start `T3CODE_DEV_SEED=0 vp run dev:server` on both, allowing migration 118 to apply normally.
7. Head listened at 12:45:22 UTC; base at 12:45:31 UTC. Run `python3 observe.py <worktree>/.t3 <output.json> <base|head>` on each. Observe every 30 seconds for 150 seconds. The observation clocks begin shortly after each server listened, so the capture labels are observation elapsed time, not exact server uptime.
8. render.py turns the captured JSON into identically sized 1440x810 dark data panels and real-time observation timelines. These are explicitly rendered read-only database output, not screenshots of the T3 client. Raw JSON is included so every value can be checked.

The deleted title and 3 message / 10 turn-item / 71 event rows persisted on base. Head replaced the title with Deleted thread, removed all message and turn-item rows, and reduced 71 events to 4 retained lifecycle events during its first startup maintenance pass. The legacy stamp stayed unchanged; only head created compacted-at-v2. Thread 2 remained active.

Unverified: delete dialog copy/scope, desktop/mobile UI, six-hour follow-up cycle. This proof isolates startup purge scheduling.

Additional read-only observations: base had 4 FTS rows, head 2; the active thread kept 3 message rows on both. Deleted-thread event payloads containing secret-alpha-1: base 6, head 0. The FTS table is contentless, so text-column reads cannot measure retained indexed text; the row counts are reported separately.
