{
  "failsOnBase": true,
  "passesOnHead": true,
  "baseSha": "f83f829ce752c3e3606c5434859eeb631c22de4f",
  "headSha": "5cb39f7670e039c75b6c299faf32f01ed304bea6",
  "method": "Real Linux web app in Chromium, driven by the repository e2e/scenarios:prove runner from current main. Each comparison starts separate real server and Vite instances at the requested base and head commits, on fresh isolated databases seeded with t3.project and t3.thread and a recorded Replay agent. The primary reproduction leaves the commit message blank and uses real Pi (openai/gpt-6-luna) for message generation; a separate real Git process switches the checkout after Preparing feature branch... becomes visible. Both sides use English, light theme, a 1920×1080 viewport, and native 1920×1080 MP4 recordings with no scaling. Only the exact synthetic checkout-path text is redacted in the DOM as [demo checkout], with no overlay; host-pressure notices are hidden identically on both sides. For the supplemental byte-identical committed scenario only, the unrelated Replay conversation and model badge are also hidden identically. Every selected still follows two byte-identical screenshots at least 500 ms apart. All selected stills and video storyboards were inspected. Captured by gpt-6.1-sol through Codex.",
  "steps": "1. Seed main with README.md and one initial commit. Create terminal-work with an extra empty commit named Unrelated branch commit; switch back to main and edit README.md. 2. Open the seeded thread with t3.open, choose Git action options → Commit, leave the message blank, and click Commit on new branch. 3. After Preparing feature branch... is visible, execute git switch terminal-work in a separate Git process. Wait for the result, then show git branch --show-current, git rev-parse --short HEAD, the full branch list, git log, and git status in the integrated terminal. 4. Repeat on a fresh repository starting detached at main; while preparing, execute git switch --detach terminal-work. This keeps HEAD detached while changing its SHA and directly exercises the new starting-commit guard. 5. Independently run the PR’s unchanged feature-commit-keeps-its-starting-base.e2e.ts: type Add local notes, and let its Git shim forward real Git commands and trigger a real switch during branch listing. Same steps and seeds on base and head for each comparison.",
  "captures": [
    {
      "label": "named branch starting checkout",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/de821fa5765b6998/005-named-branch-starting-checkout.png"
    },
    {
      "label": "named branch starting checkout",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a6c03b9a865060b8/005-named-branch-starting-checkout.png"
    },
    {
      "label": "named branch result",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/64ca73fe02a5d0be/012-named-branch-result.png"
    },
    {
      "label": "named branch result",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/24e3d56c463c408d/012-named-branch-result.png"
    },
    {
      "label": "named branch git state",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d3720b225a2d8041/017-named-branch-git-state.png"
    },
    {
      "label": "named branch git state",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/6dd7c7e2f1944189/017-named-branch-git-state.png"
    },
    {
      "label": "detached starting checkout",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e70488a1feaacb36/024-detached-starting-checkout.png"
    },
    {
      "label": "detached starting checkout",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/60ca56fc460824df/022-detached-starting-checkout.png"
    },
    {
      "label": "detached result",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/86944e2d2b04ef3a/031-detached-result.png"
    },
    {
      "label": "detached result",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2fb2a2b463883035/029-detached-result.png"
    },
    {
      "label": "detached git state",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/fa57226f7913c77d/036-detached-git-state.png"
    },
    {
      "label": "detached git state",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/9fbd4996520ac2b3/036-detached-git-state.png"
    },
    {
      "label": "Primary recording, named branch and detached HEAD, 1920×1080",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f58b51fb7ea336f5/before.mp4"
    },
    {
      "label": "Primary recording, named branch and detached HEAD, 1920×1080",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3eb825f36bac978b/after.mp4"
    },
    {
      "label": "Byte-identical committed PR scenario",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bd6b57bacbdcc6cb/007-feature-commit-after-switch.png"
    },
    {
      "label": "Byte-identical committed PR scenario",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7857c335b2f2236f/007-feature-commit-after-switch.png"
    },
    {
      "label": "Committed scenario recording, 1920×1080",
      "side": "before",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2e91f1ef6752fdc6/committed-final-before.mp4"
    },
    {
      "label": "Committed scenario recording, 1920×1080",
      "side": "after",
      "url": "https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a4d23c03d135417e/committed-final-after.mp4"
    }
  ],
  "markdown": "## Evidence\n\nObserved in the real app: base reports success and creates a branch whose history includes **Unrelated branch commit**. The fix shows a clear checkout-change error, leaves the external checkout in place, creates no branch or commit, and preserves the README edit. Detached-to-detached movement produces **The starting commit is no longer checked out**.\n\n**Environment:** Linux web client, Chromium, English, light theme; screenshots and recordings are native **1920×1080**. Fresh synthetic data on each side. Real Pi generates the blank-message commit in the primary run.\n\n1. Start on `main` with an edited README and an unrelated commit on `terminal-work`.\n2. Choose **Commit → Commit on new branch**, leaving the message blank. While **Preparing feature branch...** is visible, run `git switch terminal-work` externally.\n3. Inspect the result and Git state in the app terminal. Repeat from detached HEAD with `git switch --detach terminal-work`, so both starting and ending states are detached.\n\n| Before | After |\n| --- | --- |\n| Base [f83f829ce7](https://github.com/pingdotgg/t3code/commit/f83f829ce752c3e3606c5434859eeb631c22de4f) | Fix [5cb39f7670](https://github.com/pingdotgg/t3code/commit/5cb39f7670e039c75b6c299faf32f01ed304bea6) |\n| **Starting on main**<br>![Before: Starting on main](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/de821fa5765b6998/005-named-branch-starting-checkout.png) | **Starting on main**<br>![After: Starting on main](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a6c03b9a865060b8/005-named-branch-starting-checkout.png) |\n| **Named-branch result and Git state**<br>![Before: Named-branch result and Git state](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d3720b225a2d8041/017-named-branch-git-state.png) | **Named-branch result and Git state**<br>![After: Named-branch result and Git state](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/6dd7c7e2f1944189/017-named-branch-git-state.png) |\n| **Starting detached**<br>![Before: Starting detached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e70488a1feaacb36/024-detached-starting-checkout.png) | **Starting detached**<br>![After: Starting detached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/60ca56fc460824df/022-detached-starting-checkout.png) |\n| **Detached result and Git state**<br>![Before: Detached result and Git state](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/fa57226f7913c77d/036-detached-git-state.png) | **Detached result and Git state**<br>![After: Detached result and Git state](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/9fbd4996520ac2b3/036-detached-git-state.png) |\n| [Primary recording, 1920×1080](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f58b51fb7ea336f5/before.mp4) | [Primary recording, 1920×1080](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3eb825f36bac978b/after.mp4) |\n| **Committed PR scenario**<br>![Before: unchanged committed PR scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bd6b57bacbdcc6cb/007-feature-commit-after-switch.png) | **Committed PR scenario**<br>![After: unchanged committed PR scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7857c335b2f2236f/007-feature-commit-after-switch.png) |\n| [Committed-scenario recording, 1920×1080](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2e91f1ef6752fdc6/committed-final-before.mp4) | [Committed-scenario recording, 1920×1080](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a4d23c03d135417e/committed-final-after.mp4) |\n\n[Primary scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4b5125b9bc733037/external-switch-proof.e2e.ts) · [Primary runner setup](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1120f9331839ee87/external-runner.patch) · [Unchanged committed scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/712f9d33139da7bf/feature-commit-keeps-its-starting-base.e2e.ts) · [Supplemental capture setup](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/cb2bf5554935ae07/committed-capture-runner.patch)\n\nThe committed scenario uses its typed message and deterministic Git shim; the primary reproduction uses an external real Git process during real Pi generation. The uploaded committed scenario matches the PR file byte for byte (SHA-256 `7717d84ce75c308c3400c7fe8b68a732c46b6b8dd88906ac8ec85502d0c089fe`). Both comparisons exited 0 with `failsOnBase: true` and `passesOnHead: true`.\n\nCapture treatment: exact synthetic checkout paths become `[demo checkout]` text, without overlays. Host-pressure notices are hidden on both sides; the supplemental committed-scenario pair also hides only the unrelated Replay conversation and model badge. Branch names, error verdicts, and terminal Git output remain visible. Selected stills follow identical frames 500 ms apart.\n\nModel and harness: gpt-6.1-sol, Codex.",
  "unverified": [],
  "friction": [
    "Pi’s Haiku route returned HTTP 400 during setup; selecting the verified Luna model avoided the failed generation.",
    "Long terminal commands were truncated during browser typing; atomic terminal RPC writes avoided interrupted evidence captures."
  ]
}