Native goal handoff proof for [PR #34827](https://github.com/pingdotgg/t3code/pull/34827)

BASE: 9efd960925f0899c0a6d045d128557c5d82818e8
HEAD: 89db4684700be6de306af54045495b3ed2d19af9
Real Linux web app, Chromium 151, light theme, 1280x633. Stock Codex gpt-6-luna and Claude claude-haiku-5-5. No model/protocol mocks.

These are noninteractive scripts used for the capture. Prerequisites: authenticated native providers, vp, Python3, agent-browser (install with npm install --prefix ./browser agent-browser alongside these scripts). They operate only on a fresh dev data home and a synthetic workspace. Never use a live T3 home.

1. Start the base app with T3CODE_DEV_SEED=0 T3CODE_CONTEXT_HANDOFF_TOKEN_CAP=3000 vp run dev --home-dir .t3/proof-seed. Add an empty synthetic Git workspace with node apps/server/src/bin.ts project add WORKSPACE --title 'Goal handoff proof' --base-dir .t3/proof-seed --json.
2. Run python3 seed.py --cwd CHECKOUT --home .t3/proof-seed --project PROJECT_ID. This uses the real app CLI to send /goal Without editing or creating files, list the first 400 prime numbers. Codeword ZEBRA-42. and /goal pause. Record the resulting native session ID and accounting. Stop the seed server.
3. For each comparison side, create its own fresh .t3/proof home using that commit's server (T3CODE_DEV_SEED=0), add the same empty project, and open its local web app in an agent-browser session. Authenticate with the local dev pairing URL; never publish it. Set the browser viewport to 1280x633. Through the app-supported import command run python3 import.py --session BROWSER_SESSION --project-id PROJECT_ID --native-id SEED_NATIVE_ID. Send /goal pause using the CLI thread send goal-ownership-proof '/goal pause' --wait --base-dir .t3/proof --json. This refreshes the paused native snapshot without a model turn. Stop each server before importing the seed into the other side: Codex native sessions permit only one writer.
4. With both servers stopped, temporarily move ONLY the synthetic seed rollout out of Codex's sessions directory. This produces a real native thread/resume error ('no rollout found'), without mocking the provider. Keep the file for restoration. Restart both apps against their own .t3/proof homes, with T3CODE_CONTEXT_HANDOFF_TOKEN_CAP=3000. The stored app projections retain exactly the same goal accounting and owner.
5. In each authenticated browser open the thread at /ENVIRONMENT_ID/goal-ownership-proof (use the thread's own CLI link if routing changes). Collapse the sidebar and thread details. Run each phase sequentially:
   python3 drive.py PHASE --cwd CHECKOUT --home .t3/proof --session BROWSER_SESSION --out OUTPUT_DIRECTORY
   PHASE order: switch, resume, tight, clear, cleared.
   The driver selects the real provider through the app's dispatch RPC, then fills and submits the actual composer, records video, waits for the app command receipt, requires two identical screenshots 500ms apart, and extracts the actual native outgoing prompts from that server's logs. It has no input() prompts.
6. The shared question is: What unfinished goal exists, what is its status and accounting, and which native session owns it? Do not use tools or resume or recreate any goal. Answer briefly.
   switch: Claude; resume: Codex (the missing rollout forces resume fallback); tight: Claude again; clear: Codex /goal clear; cleared: Claude question again.
7. Repeat fresh imports at cap 1800 for switch and resume. The head correctly refuses the replacement handoff before delivering a model turn. The supplied 1800 video is the first 12 seconds of the original real interaction recording. The 3000-cap videos are full phase recordings.
8. Stop both servers and browser sessions. Restore the synthetic seed rollout.

Observed shared seed: paused; objective exactly above; owner native session 01a1d6c5-a5ba-75d2-9c94-bc390c39e6f8; 31834 tokens; 41 seconds. Each side was imported sequentially from this single genuine native goal, rather than rerunning costly prime computation with different accounting. The initial objective lives in the native imported conversation; the local app's initial message is /goal pause. All subsequent comparison phases run the same script and messages on both commits. Provider responses and per-run timestamps naturally differ.

protocol-evidence.zip contains actual outgoing Claude prompt.offer and Codex thread/inject_items / turn/start payloads, native resume failures, and read-only synthetic app projection snapshots. Local workspace paths have been replaced with <workspace>; session IDs, goal accounting and prompt text are otherwise preserved. This is direct transport evidence, independent of what the receiving model says.

The tight-budget phase is not just an LLM answer: head's failed-resume outgoing context retains the ownership notice while reporting 'Selected 1 intact items; omitted 3 items'. The later Claude handoff also retains ownership with omitted history. After /goal clear, the new outgoing handoff contains /goal clear and 'No goal is set.' and no 'Unfinished thread goal owned by another provider session' notice. Historical assistant text in Claude's existing session may still refer to the earlier goal; the current clear supersedes it.

No scenario was run: the generic ACP replay provider cannot produce native Codex goal accounting or a real Codex resume failure. No automated tests are claimed as evidence.
