# Remote follow-up cancellation proof driver

Run the same driver from each revision checkout after `vp i`, using a Node version supported by the repository:

```sh
PROOF_ARTIFACT_DIR=<existing-empty-artifact-directory> PROOF_PAUSE_UI=1 T3CODE_DEV_SEED=0 node <driver.ts>
```

The driver starts two real web/server stacks, creates fresh synthetic projects and threads through the CLI, links the environments through real pairing, and invokes tools with the originating replay session's own MCP credentials. The replay wrapper holds explicitly marked long turns until released; it does not implement task cancellation, remote delegation, queueing, or run status. Those paths run through the application.

Each run creates a unique `manual-*` subdirectory. `observer.json` gives the peer URL and thread to view. To pair the browser, navigate to the peer URL plus the contents of `peer/pairing-path`; never publish that credential. Open `/<environmentId>/<threadId>` and hide thread details. Captures use dark theme and 1280x800 CSS pixels at DPR 2.

The driver pauses at three stages so a browser recording can show the live state:

1. `before-cancel`: active long turn and two queued follow-ups. Start recording, wait for initial frames, then create `before-cancel.continue` in the run directory.
2. `after-cancel`: inspect the peer. Create `after-cancel.continue` to resume its queue and release the long turn.
3. `after-resume`: inspect the final transcript and capture it. Create `after-resume.continue` to shut down both stacks.

Without `PROOF_PAUSE_UI`, the same sequence runs without capture gates. `responses.ndjson` records real MCP responses, the retained target taskId/runId, and run snapshots. `observations.json` summarizes the observed states. The driver records observations without substituting assertions or unit tests for app evidence. Do not upload private server homes or pairing files.
