# Real-app proof driver

Base: [42c9107983](https://github.com/pingdotgg/t3code/commit/42c9107983d8f65c38117501cbcde1ee5c82ef14).
Head: [c9e8d1a073](https://github.com/pingdotgg/t3code/commit/c9e8d1a073bb42918eab67a25f5af40ece9d9795).

The web scenario has one test. Its default PROOF_PATH=chat reproduces the unavailable assistant chip; PROOF_PATH=direct exercises the linked-thread route without reloading. Run it from current main with scenarios:prove and the commits above. Seeding uses the real project API, thread CLI and free Replay provider. The local replay transcript supplies synthetic thread links; no application implementation is patched.

The manual fixture runs inside the checkout whose app is under test. Set PROOF_HOME, PROOF_REMOTE_HOME and PROOF_OUT to separate fresh directories, all under one scratch directory. When invoking it from a separate runner checkout, set T3_SCENARIO_APP_DIR to the app checkout. Primary server port is 14090; the second server port is 14092. Use the repository's start-app helper in mobile mode for the primary backend and Metro. Set T3CODE_DEV_SEED=0, use the synthetic environment label Scenario, and prepare the remote home with the fixture's prepare-remote command before starting its server with --dev-url and that home. The fixture's setup command seeds both projects, a remote thread, and two parent conversations. Real providers are disabled by the start-app/prepareHome helpers.

## iOS chat

1. Install the checkout's cached iOS client with mobile:install. Open its Metro development-client link, wait for the app, and pair only with the primary server. The pool CLI drove an iPhone 18 Pro on iOS 27.2; the app's light theme and 402×874 capture size were the same on both commits.
2. Open Chat link proof and leave its composer mounted. Start recording.
3. Run the fixture's link command from a terminal, wait 15 seconds, then run send. This sends an agent-authored prompt and replays the assistant's markdown link to the remote thread.
4. In the real native composer, send `[User thread on B](t3-thread://v2/<linked>/<child>)` using the IDs in metadata.json. This additionally exercises user-message rendering. Wait for the replayed response to finish and the keyboard to dismiss.
5. Capture both chips. On base, both labels fall back to Thread; on head, they preserve Thread on B and User thread on B.
6. Tap the user-message chip. Base opens Choose project; head opens Remote design notes read-only through the primary server. The head assistant chip was also tapped and opened the same read-only thread. Expand the read sheet by swiping its grabber upward to show the complete header and transcript.
7. Before the next commit, remove the previous environment through Settings → Environments → Manage → expanded details → Remove environment, then pair the new primary server. Reinstalling the iOS client alone retained the saved connection.

## Subagent coverage, web and iOS

1. Keep the web client on Subagent link proof. Return iOS to Chats, expand the working-thread group, and open Subagent link proof. Its composer loads the names before the next external link.
2. Stop the original remote server. Prepare a new remote home and start a new server on the same remote port, yielding a new environment ID. Do not reload either client.
3. Start both recordings; run link with the new remote home, wait 15 seconds, then run delegate.
4. The fixture uses the replay provider's real thread-scoped MCP session to call orchestrator_capabilities and delegate_task on the new environment, explicitly selecting the free Replay provider. It patches only the replay fixture to hold the parent turn active until cancellation and retain that fixture's own MCP configuration locally. No credential file is uploaded.
5. Once the delegated task completes, stop the waiting parent turn through the web UI, capture the card, and open it. Capture the remote transcript and Read-only / On Scenario via Scenario footer. Close the iOS sheet and capture the completed card. Restore fixture files using restore.
6. Both base and head already open the subagent read-only view in this 15-second reproduction. These captures are coverage of the changed paths, not a claimed additional before/after failure.

Every manual still was checked against another capture after a 500 ms pause. The published iOS stills and recordings omit the system status bar. One expanded-sheet pair differed only in that bar's minute display; the published app content is pixel-identical. The synthetic workspace path in the base project picker is redacted. Web scenario recordings omit the last two seconds of teardown so stopping the remote server does not add an unrelated offline warning. No production state was copied, and no tests stand in for these captures.
