# Issue 44417 real-app evidence

## Environment

Two detached worktrees, base 6696eefe21103dcf353659c2fc69815f62faf3cb and head efe9e44429ba28823e20fe049e5c6d5dd7e0af3c. Each ran `vp i`, then `T3CODE_DEV_SEED=0 GOOGLE_GEMINI_BASE_URL=<provided-hub> vp run dev`, with its own fresh database. Web browser: 1280x800 CSS pixels, DPR 2, light theme. Both used the actual Antigravity CLI v1.5.18, Gemini API key sign-in, Gemini 4 Neon, and Auto-accept edits. No replay, fake provider, or fake forge API was used.

## Seed

Run `python3 seed.py <scratch-directory>`. It creates identical synthetic Git repos on each side, each with a main commit pushed to its own local bare remote and an unpushed feature commit. It configures `core.hooksPath=.vite-hooks/_`, the generated pre-commit/pre-push/reference-transaction shims, the runner that exits when the script above it does not exist, and a real pre-commit script. The real-hook fixture additionally defines `.vite-hooks/pre-push`, which appends a marker under `.git` if run.

To avoid the earlier synthetic-origin GitHub lookup error while respecting this step's prohibition on opening PRs, the origin is the real [T3 Code repository](https://github.com/pingdotgg/t3code), and the feature branch is `factory/issue-44417`, which already has [#44439](https://github.com/pingdotgg/t3code/pull/44439). Git's pushInsteadOf redirects every push to the fixture's local bare remote. The real GitHub API reads the existing PR. No branch, PR, comment, or other forge object is written by the reproduction. The tool's success has `created:false`; this is not evidence that a fresh PR was created.

## Real-hook run (both sides)

1. Pair the web client using its own server's startup URL.
2. Settings > Providers > Add provider > Antigravity; leave instance ID `antigravity`; choose Gemini API key and a nonempty test value. Add instance, then Connect. Check Authenticated and v1.5.18.
3. Add the `real-hook/push-hook-repro` fixture through `node apps/server/src/bin.ts project add <fixture-path> --title 'Real push hook' --base-dir .t3`.
4. Open a new thread in that project, select Gemini 4 Neon and Auto-accept edits. Hide the sidebar and thread details so host identifiers and paths are not captured.
5. Start browser recording, submit this exact prompt, then leave it running through the final response:

   > Call T3 Code's pull_request_create tool exactly once with title 'Repro change', body 'Push-hook reproduction', and base 'main'. Do not run any shell commands, edit files, or retry. Report the exact tool result, including any note about push hooks.

6. Base: in 21 seconds, the agent reported “The person declined to run this repository's push hooks. Nothing was pushed and no PR was opened.” No approval UI appeared. The trace records an elicitation answered in 17.25 ms. The remote has only main.
7. Head: in 33 seconds, the agent reported the successful existing-PR result and the exact note “The repository's push hooks were not run, because this client cannot ask a person to approve them.” The remote now has the feature commit; the marker is absent. The trace records askApproval with no elicitation, followed by a successful push.

## No-op shim run (both sides)

1. Add the `noop-shim/push-hook-repro` fixture as a second project using the same project-add CLI.
2. Settings > Threads > Default permissions: Auto-accept edits.
3. Start the thread through the app's CLI with the same prompt, `--title 'No-op Vite shim' --provider antigravity --model gemini-4-neon --base-dir .t3 --json`. Open the returned thread in the web client, hide its details panel, and inspect the result. Both persisted threads have runtime mode auto-accept-edits.
4. Base: the same false decline, no feature ref, elicitation answered in 22.00 ms.
5. Head: success, existing PR returned, no hooks-skipped note. The feature ref matches local HEAD. The trace has no askApproval for this run.

## Captures and observation

The real-hook videos capture the main interaction from submission to final response. The no-op stills are supplemental. Before each final still, blur the composer and compare two screenshots separated by at least 500 ms; all four final pairs were pixel-identical. Each final still and sampled frames across both uploaded recordings were visually inspected. No spinner, clipped result, private path, or host identifier appears in the uploaded evidence.

`observe.py <base-worktree> <head-worktree> <seed-run-directory> <output-json>` reads only these runs' databases, selected trace spans, and synthetic bare refs. `observed.json` contains the actual tool-call inputs/status, modes, absence of approval items, remote refs, hook-marker checks, and selected trace timings. It omits credentials, filesystem paths, and stack traces.

## Limits

Fresh PR creation is not tested: the brief forbids opening PRs, so the successful tool result reopens an existing real PR. Antigravity does not show T3's approval card here; the documented hooks-off fallback is what was verified. These are API-key-mode runs through the provided hub, matching the triage reproduction, not Google-account sign-in runs.
