# Project defaults real-app proof

Commits: base f99ef08bb8d4e164a4d5270913bb2964637c7e6f; head bf255708b5254c62bc7610facd3a53f448950f8d.

Run each commit in its own checkout, with dependencies installed. No copied database is used.
The repository's `scripts/scenarios/start-app.ts` starts `vp run dev` with seed disabled, an isolated home and Replay (dev). Start base on port 15733 and head on 16733; set PROOF_SCRATCH to a new private scratch directory. For example, from each checkout:

```
node scripts/scenarios/start-app.ts web "$PROOF_SCRATCH/base-home" 127.0.0.1 15733
node scripts/scenarios/start-app.ts web "$PROOF_SCRATCH/head-home" 127.0.0.1 16733
```

The uploaded driver runs from the corresponding checkout. Its stages, run sequentially per side:

```
node driver.mjs base setup
node driver.mjs base set
node driver.mjs base seed-clear
node driver.mjs base clear
```

Use `head` instead of `base` for the other side. `reset` removes the override entry to repeat the set phase. Setup creates a synthetic repository/project and a completed Replay thread through the real server API/CLI, sets projectSettingsFolded=true with no project overrides, and sets explicit global controls (Replay/showcase, local checkout, auto-pull false). It obtains a full-access MCP credential through the real OAuth endpoints. No credential or private state file is uploaded.

Set calls t3_project_update with devReplay/default, worktree and autoPull=true, then t3_project_read; clear starts from the same explicit project overrides on both commits and calls t3_project_update with model=null, environment mode=null and autoPull=false, then t3_project_read. The JSON transcripts preserve request, update result, read result, saved project override and global controls; paths and unrelated project fields are omitted.

For each stage, use the signed-in real web client (Chromium, Linux, light theme, 1440x900 CSS pixels, device scale 2):

1. Navigate to the completed thread URL returned by setup, waiting for its heading and composer to render.
2. Start a recording and click the breadcrumb button with aria-label `New thread in Defaults demo`.
3. Wait for the `New thread` heading. Read `[data-chat-provider-model-picker-label]` and the workspace control, then capture.
4. Open the project-scoped Source control & issues page using the settings URL returned by setup, replacing `/settings/projects` with `/settings/source-control`. Capture the `Default automatic pull` switch.
5. Before each final still, take two screenshots at least 500 ms apart and verify zero changed pixels. Auto-pull images are matching crops of the top of the settings page, excluding unrelated account information. Every retained still and recording was visually inspected.

The UI calls were made using T3's preview browser tools. The click expression used on both sides was:

```js
document.querySelector('button[aria-label="New thread in Defaults demo"]').click();
```

Observed after set: base shows Showcase / Current checkout / auto-pull off; head shows Multi turn / New worktree / auto-pull on. Replay model ID `default` is displayed as `Multi turn`.

Observed after clear: base retains Multi turn / New worktree / auto-pull on; head returns to global Showcase / Current checkout / auto-pull off. Head's saved entry contains only defaultAutoPull:false; model and workspace keys are absent. A null model in the cleared MCP response means no project model override; the composer demonstrates the global fallback.

This is manual real-app evidence. The scenario runner attempt stopped on missing MCP authentication/CLI fixture dependencies before its assertion and is not used as proof. The head was independently started and exercised by this driver and the preview browser.
