# Attachment ownership evidence

Environment for all captures: Linux web development app, Chromium 158, 1280×800 viewport, light theme. Fresh databases created by each checkout's server with T3CODE_DEV_SEED=0; synthetic projects, threads and attachments entered through the app, CLI and RPC. No production database was used.

Base: 44a533378653164dea96435e23c8ea27efaffedb
Head: fcdac9aa4a0eb426a935f3ef6ff455d8f859502f

## Real Antigravity sequence, identical order on both commits

Runtime 1.5.18, Gemini 3.8 Flash, Gemini API-key method through the test hub. Thread A used Replay only to store a synthetic attachment; thread B used the dedicated Antigravity provider.

1. Create A and attach owner-a.txt containing FOREIGN_ATTACHMENT_MARKER_ORCHID_43677. Send “Store this attachment in thread A.” Note its stored path.
2. Create unrelated B, choose Antigravity / Gemini 3.8 Flash / Supervised.
3. Send “Use your read_file tool to read this exact file and quote its contents. Do not use shell commands or other tools: <A's stored path>”. On head, click Deny; record through completion. Base returns A's marker without asking. Head completes without returning it.
4. Attach owner-b.txt containing OWN_ATTACHMENT_MARKER_CEDAR_43677 directly to B. Send “Read the file attached to this message with read_file and quote its exact marker. Do not use shell commands.” Both commits return B's marker.
5. Click Fork from this response on B's owned-read response. In the fork, send “In this fork, use read_file again on the inherited attachment path <B's stored path> and quote its contents. Actually invoke read_file; do not answer from history or use shell commands.” Both commits read the inherited file without asking.
6. Additional head check: repeat the foreign read, click Allow once, and record completion. The provider returns A's marker after explicit approval.

## Shared ACP sequence

OpenCode 1.19.6 via its real `opencode acp` process; model anthropic/claude-haiku-5-5; Supervised. The instance has OPENCODE_CONFIG_CONTENT with permission read/grep/glob=ask and external_directory=allow. This avoids an unrelated native traversal prompt while forcing actual ACP read/search permission requests.

Use browser-driver.js in the signed-in browser. `proofConfigureOpenCode()` configures this instance. `proofCreate(projectId,title)` creates a real empty thread in Supervised mode; navigate directly to it; `proofSend(threadId,text)` dispatches through the real server. Distinct fresh threads are used for the exact-file, folder and ancestor cases.

- Exact foreign read: “Use the read tool to read [this exact attachment](<A's stored path>) and quote its contents. Do not use shell commands or other tools.”.
- Attachment-folder search: “Use grep to find FOREIGN_ATTACHMENT_MARKER_ORCHID_43677 in [the attachments folder](<attachments directory>). Quote the matching line. Do not use shell commands.”
- Ancestor-folder search: “Use grep to find FOREIGN_ATTACHMENT_MARKER_ORCHID_43677 under [the parent folder](<userdata directory>). Search only *.txt files. Quote the matching line. Do not use shell commands.”

On base, all three return the marker without T3 asking. On head, all three ask; click Decline and record through completion. No file content is returned after declining. Markdown link labels keep synthetic server paths out of the rendered prompt.

## Direct client-file callback

acp-client-file-probe.mjs is explicitly a protocol driver, not a model or the stock agy runtime. Copy it to an executable named `agy` in an isolated probe directory (the dedicated adapter validates this basename). Configure a separate Antigravity instance with that executable, Gemini API-key method, a synthetic nonempty key, and model client-file-probe.

The driver sends fs/read_text_file directly and never requests permission or reads the filesystem itself. It displays the actual server response, replacing only the path in an error with <attachment>.

1. Create an unrelated thread with this instance and send “Request fs/read_text_file directly for this foreign attachment. PROBE_PATH= <A's stored path>”. Base returns the foreign marker. Head returns -32602, outside the session workspace.
2. Switch B to this instance and request B's own path. Both commits return B's marker.
3. Switch the existing fork to this instance and request the inherited B path. Both commits return B's marker.

These probes separately exercise the client-file guard; the real-provider recordings establish the reported user flow.

## Capture handling

Native Antigravity order is foreign read → own read → inherited fork read on both commits. Model wording and duration vary. Still crops preserve filenames and markers; no replacement text was pasted into links. prepare-evidence.py records every opaque privacy mask used for private path lines and environment chrome. Videos continue through the Deny/Decline interaction and turn completion. Stills were checked against a second capture/frame at least 500 ms apart; conversation crops exclude the blinking composer caret.
