# Real Claude session retry proof

Environment: Linux web app, Chromium, 1280x800 CSS viewport (2560x1600 captures), light theme; Claude Code 2.1.336 through the configured custom endpoint; real ClaudeAdapterV2 and Sonnet 4.6 (200k). No replay, stubs, copied database, or injected usage.

Use separate checkouts of base 7d43fb81192e67db133bcfc5118802257a757ca3 and head d134a88088175775cbb3026f89314bf7a980405f. Install each with `vp i`; run each with `T3CODE_DEV_SEED=0 vp run dev`. Set `idleCompaction` to `off` in each checkout's own `.t3/userdata/settings.json` before growing context. Open each app's pairing URL. The CLI below drives the same real app server; the web client shows its events live.

1. Run `python3 seed.py --checkout <checkout> --project-dir <synthetic-project> --output <evidence-directory>`. This generates deterministic 40,000-byte text files and sends the same three prompts used on both sides. The head was seeded with these exact generation and CLI operations manually before they were packaged into seed.py; the base used seed.py directly.
2. Observe real provider token usage after reading five files: base 154099/200000, head 154097/200000. Both exceed the old 150000 budget cutoff and remain below Claude's auto-compaction point.
3. Capture the idle Claude PID launched by this server (its provider-process registry records it), confirm its native session ID and server ancestry. Run `python3 reproduce.py --checkout <checkout> --thread <thread-id> --server-pid <server-pid> --idle-pid <idle-claude-pid> --output <evidence-directory>`. It kills that idle process, sends `Reply with the word CHERRY.`, freezes the newly spawned exact `claude --resume=<native-id>` child, waits five seconds, then kills it. Both runs failed before startup, as expected.
4. Send `node apps/server/src/bin.ts thread send --base-dir .t3 --wait --json <thread-id> Continue` from the checkout. Inspect the app and read the provider-thread native ID and latest provider-turn usage through a read-only connection to the fresh dev database.
5. Base: native ID ca001b46-dffe-4a28-810b-c45658ffea41 changed to cee1eb3a-4517-4beb-935f-a90ac87836ea. UI displayed Context handoff; server logged handoff_budget_exhausted. Context fell to 33129 and cached input to 14260 (shared prefix cache remained, but the large native history cache was lost).
6. Head: native ID acb5ee4f-6059-4736-a070-8e4673762459 stayed unchanged. UI returned CHERRY without Context handoff. Context remained 155188 and cached input was 154091.

Screenshots show the complete app viewport with side panels hidden. Each final still was compared with another screenshot taken more than 500ms later and was pixel-identical. Videos are real recordings of the same failed-start/retry sequence. The base recording has its side panels masked to exclude private environment metadata; the central conversation is unchanged. The head recording has its side panels hidden in the app. Both videos and final screenshots were visually inspected before upload.

The 1M model case and natural provider outages were not exercised; this uses the triage's equivalent 200k model and controlled startup failure.
