# Real-server reproduction

Environment: Linux, Node server, real Claude provider through CLI hub, model `claude-haiku-5-5`. All databases are synthetic and created by the server. No test fixtures, direct database writes, copied user data, or provider stubs.

1. Check out legacy commit `8182e5301c`, install dependencies with `vp i`.
2. In a scratch directory, generate images with `convert -size 640x480 plasma:fractal images/shot1.png` and `convert -size 320x240 gradient:blue-red images/shot2.png`.
3. Start `T3CODE_DEV_SEED=0 node apps/server/src/bin.ts serve --base-dir <legacy> --port 3799`.
4. Use `node apps/server/src/bin.ts project add <images> --title 'Image migration proof' --base-dir <legacy>`.
5. Use `node apps/server/src/bin.ts thread start --provider claudeAgent --model claude-haiku-5-5 --wait --base-dir <legacy> <images> 'Use the Read tool to view shot1.png and then shot2.png. Briefly describe each image. Do not modify any files.'`.
6. Stop the server. Copy this synthetic legacy base directory into `before` and `after` under the scratch directory. Keep the original image files available. Both sides receive the identical database, including the same thread.
7. Switch the legacy checkout to base `f512f35ddf46c7ea2aa83a1177860609f17c534d` and run `vp i`. Install dependencies in a separate checkout at head `dbb3d5689f566f5f0df80ba395f3455732b6ff3c`.
8. Run `python3 driver.py <scratch> <base-checkout> before`, then `python3 driver.py <scratch> <head-checkout> after`. The driver starts the real server, waits for readiness, reads the database read-only, sends another real Claude Read through the thread CLI, reads again, then stops its own server.

The driver's thread ID is the one returned in this run; replace it with the ID returned in step 5 when repeating. The driver stores raw server logs locally only, since startup logs include ephemeral pairing credentials. Uploaded JSON contains the runtime result and read-only database summaries without credentials or private paths.

The comparison concerns legacy row payloads in both the projection and event log. SQLite page count and free-page count are included to distinguish reusable database space from physical file shrinkage. No VACUUM or doctor command was run.
