# Issue 17114 — proof audit pass 1

Read-only source audit of branch `fix/issue-17114`, e54e71d725..ef5a154378, in /home/ubuntu/wt/issue-17114. Issue: [#17114](https://git.cafe/pingdotgg/t3code/issues/17114). No PR. This is a capture plan, not executed evidence. No servers, browser, simulator, captures, or repository edits performed by this audit.

## Scope and equivalence classes

Changed rendering: web ServerBrowserSurface auth inputs, Sign in label, credential reset; mobile PreviewStreamWebView full-screen native auth inputs, secure password, Sign in label, credential reset. Shared server dialog abstraction also affects existing JS alert/confirm/prompt/beforeunload behavior. Web dialog owner sees inputs/actions; agent/another-viewer/unclaimed share the message plus “Take control to respond.” render branch, but differ in control affordances and acquisition behavior. Read-only permission is a separate control-affordance state. Mobile compact floating view suppresses all dialog chrome and control toolbar; full-screen is required to answer.

**Desktop native tabs are not fixed.** ServerBrowser explicitly excludes desktop pages from Fetch auth interception (`handleAuthRequests: !desktop`) and authRequired registration. Electron keeps handling auth. List this as a scope limitation in the eventual report; web/server-stream evidence does not establish a fix for desktop native tabs.

Theme and width classes: W = web app CSS viewport 1440×900 and 390×844, each light and dark. M = real native mobile 390 logical-point width, portrait height recorded (target 844), each light and dark. Native pixels/device scale must be reported separately. Mobile 1440 is not a phone requirement; do not stretch native screenshots to claim it. Web at 390 does not substitute for native mobile. Theme means app chrome, not only page prefers-color-scheme. Hold streamed page viewport setting, zoom=100%, OS text scale default, locale English, safe-area settings, and fixture content fixed and record them. A 1440 app viewport can contain a much narrower preview panel: record actual panel width too.

## Fixture matrix

Every row involving input, state transition, ownership change, retry, navigation, reconnect, or time is explicitly a **RECORDING**. Still frames can supplement a recording, never replace transition proof. “Affected” distinguishes new UI (A), shared behavior regression (R), and unchanged guard (G).

| ID | Affected path / fixture | Expected proof | Minimum capture |
|---|---|---|---|
| S1 | A: owner auth, empty draft, short server realm | Origin/realm message, Username and masked Password fields, Dismiss and Sign in; no Dialog response field | STILL: W all four + M both themes |
| S2 | A: owner auth, very long realm/origin with long unbroken token; empty realm | Narrow wrapping, no horizontal overflow, fields/buttons reachable, contrast; empty realm omits “It says” | STILL: W390 light/dark + M390 light/dark; empty-realm one representative W390 frame |
| I1 | A: fill then submit correct test:test | Username visible, password masked, sign in removes overlay and reaches unmistakable authenticated marker; subsequent page interaction proves navigation/queue released | RECORDING: W1440 light + M390 light; include mobile keyboard open, focus, scroll and dismissal |
| I2 | A: Dismiss / cancel, then reload or navigate to fresh challenge | Dialog disappears; 401/terminal state is visible; fresh challenge can be answered, no old draft leaks | RECORDING: W390 dark + M390 dark |
| I3 | A: wrong nonempty credentials → same-realm rechallenge → correct retry | No queue hang; capture whether draft clears or persists, password stays masked; correct retry reaches success. Do not assert reset without observing intermediate null broadcast | RECORDING: W1440 light + M390 light |
| I4 | A: empty username/password submission | Browser/server outcome is visible, not silent stuck spinner; retry/cancel remains available | RECORDING: append W390 dark + M390 dark sequences |
| I5 | A: edit drafts while repeated control broadcasts arrive; close/reopen same message; switch to different realm | Draft survives unchanged challenge broadcasts; clears after dialog null→auth and message change; no previous credentials shown in new challenge | RECORDING: W390 dark + M390 dark; wire/fixture checkpoints identify each transition |
| I6 | A/R: navigate away while auth pending; close challenged tab | Auth request released, dialog removed, destination loads; tab close does not poison next tab | RECORDING: W1440 light + M390 light |
| I7 | A: fresh tab opened directly to protected URL, plus existing blank tab→navigate | Both return promptly with pending auth and allow submit/cancel; distinguish direct-open queue regression from normal navigation | RECORDING: W1440 light; native existing-tab route covered I1; add native direct-open if exposed there |
| O1 | A: agent owns auth; viewer takes control, answers, releases | Non-owner has message/hint without credentials/actions; takeover reveals owner UI; submit works; release returns appropriate state | RECORDING: W1440 light + M390 light |
| O2 | A: another viewer owns auth, then releases; observing viewer acquires | No credential fields while observing; mobile takeover disabled while another viewer owns; acquisition reveals fields only for new owner | RECORDING: W390 dark + M390 dark, second authenticated viewer required |
| O3 | A: unclaimed auth → take control; permission read-only observer | Unclaimed shares non-owner dialog branch; can take control if permitted. Read-only has no enabled control acquisition. Do not collapse read-only with unclaimed behavior | RECORDING: append W390 dark + M390 dark; read-only may use a separate paired session |
| O4 | A: owner types, loses control, later reacquires | No credentials visible to non-owner; explicitly observe local retained/cleared draft after reacquisition (current code resets by dialog identity text, not ownership). Do not claim ownership change clears drafts | RECORDING: append O2 on both clients |
| T1 | A: disconnect/reconnect or background/foreground with auth pending, and closed/reopened same-realm auth while disconnected | Accurate current dialog after reconnect; no stale fields/draft shown; controls remain operable; check mobile reconnect resets dialogRef | RECORDING: W390 dark + M390 dark |
| M1 | G: mobile compact floating preview with pending auth → open full screen | Compact shows no auth controls; full screen shows prompt and allows answer; no claim floating preview supports sign-in | RECORDING: M390 light; dark compact STILL optional because no new dialog renderer |
| J1 | R: JS prompt with default value → edit→Accept; reopen→Dismiss | Dialog response input/default/draft behavior retained; Accept label, no auth fields; both response and cancel outcomes visible in fixture DOM | RECORDING: W1440 light + M390 light |
| J2 | R: JS confirm Accept and Dismiss; alert Accept and Dismiss if exposed | Message/actions retained without input fields; fixture records actual JS result; no credential payload confusion | RECORDING: append J1 both clients |
| J3 | R: beforeunload stay/leave where Chromium actually emits dialog | Existing generic dialog controls remain, navigation outcome matches choice; browser gesture requirement documented | RECORDING: append J1 both clients; label harness only if Chromium cannot emit reliably |
| J4 | R: prompt under non-owner, acquire control and answer; prompt/null→auth and auth/null→prompt | Owner gating still works; prompt default resets correctly; auth credentials never appear in prompt UI | RECORDING: append O1/J1 both clients |
| N1 | G: no pending dialog after success/cancel | No leftover dialog/credential UI; regular preview still renders and can be controlled | RECORDING: endpoints of I1/I2, no extra capture |

## Minimum capture package (collapse without dropping transitions)

Static coverage: S1 = six stills (web 1440/390 × light/dark; native390 × light/dark). S2 = four narrow long-message stills plus one empty-realm representative; these may be extracted from labeled recordings. For unchanged JS styling, one prompt still per client/theme at narrow width is sufficient, extracted while recording J1/J4. No Cartesian product of all behavior × all themes is needed: theme/width coverage proves layout, representative recordings prove behavior.

Record six composite sequences: web1440/light (I1,I3,I6,I7,O1,J1–J4), web390/dark (I2,I4,I5,O2–O4,T1), native390/light (I1,I3,I6,O1,M1,J1–J4), native390/dark (I2,I4,I5,O2–O4,T1), plus supplemental web390/light and native390/light long-message/empty-realm layout only if still extraction is unavailable. Split recordings at logical boundaries for review; every interaction row above must have a timestamp in the final manifest. Counts are capture sessions, not a mandate for one long video. Obtain before/after S1 on base and head in identical environments; baseline may show 401/no prompt, which is the expected before, not a fabricated auth overlay. Capture before/after short sign-in flow if claiming behavior improvement. New queue repair must be included in final tested SHA even if it changes no rendering.

## Real application fixture/seeding requirements

Lead reports existing isolated web8640/server16680, Basic fixture18914 with dummy test:test; real after login and cancel work. These are supplied observations, not independently verified here. Fresh-tab preview_open queue bug is known, repair forthcoming: I7 stays pending until retested on repaired SHA. Never attach live ~/.t3/userdata read-write. Never publish pairing tokens or real credentials; dummy test:test is intentional public fixture data.

Commit a small deterministic fixture service/script (not evidence assets) if none currently committed: routes for /public, /basic short realm, /basic-long, /basic-empty, distinct challenge realm/origin, /dialogs with user-triggered alert/confirm/prompt/beforeunload and visible outcome log. Auth responses must return WWW-Authenticate Basic, 401 on wrong/empty credentials and a stable authenticated marker on success. Include no-store, deterministic realm/URLs and a reset/new-context recipe to avoid Chromium HTTP auth cache bypassing later challenges. A second origin/port may be needed to guarantee fresh challenge; document its actual reachability from server. Long realm should include a nonbreaking token. Proxy-origin wording is a distinct server message branch: use a real local auth proxy if available; otherwise a clearly labeled control-message harness for that text only, never claim proxy end-to-end proof.

Commit a repeatable seed/driver script that uses supported app commands/RPC to create a stopped V2 project/thread and real server preview tab, emits IDs privately, and connects two authorized viewer sessions plus read-only access as needed. Runtime dialog is not a persisted database row: trigger it through real navigation/fixture gestures after pairing. Do not try to SQL-insert dialog state or seed a static screenshot. It must expose deterministic checkpoints for ownership, null→auth, retry and reconnect, log outcomes without passwords, and clean only its own resources. Record base/head SHA, OS/browser/native build fingerprint, viewport/panel size/device scale, theme, fixture version, thread/tab IDs (private manifest as appropriate), route and ownership per artifact.

Mobile path: BrowserPreviewRouteScreen reads actual environmentId/threadId/tabId and useThreadServerBrowserTabs; it closes if no tabs. Pair the native app to the same isolated environment using a fresh standard pairing credential; create/select a genuine V2 thread and preview tab first, then open Browser from that thread. Existing scripts/mobile-showcase.ts has pairing helpers and --showcasePairingUrl/theme launch machinery, but scripts/mobile-showcase-environment.ts explicitly seeds V1 projection_threads/messages/sessions and warns V2 clients do not read those rows. Do not use its stock thread seed as proof of a seeded V2 browser. No dedicated static auth fixture mode was identified in this bounded investigation. Prefer adapting supported V2 command creation, not copying legacy SQL.

EAS whoami and simulator:availability succeeded for pingdotgg per lead; no simulator started. That establishes account/availability only. Native verification still needs a compatible dev client, Metro and simulator/device, pairing to a reachable server origin and server-to-fixture reachability. A remote EAS simulator cannot reach this machine's localhost: expose the isolated T3 origin by the supported share/tunnel path; fixture18914 can remain server-local because server Chromium fetches it. Do not bake VITE origins into bundles. Use native390 logical width with real OS keyboard and app theme; iOS/Android inputs differ, so one platform's captures are representative render proof only, not both-platform keyboard validation. If claiming both platforms, repeat I1/I2 on the other platform.

Harness fallback only after a documented real seed/trigger failure: mount the actual production renderer with typed stream control messages for otherwise unseedable proxy/rare dialog or broadcast races; label every artifact “HARNESS — not end-to-end”, record injected message and owner state, and keep real Basic submit/cancel/retry proof separate. Harness cannot prove Fetch auth continuation, queue release, native keyboard, ownership enforcement or real transport. Missing simulator or seed script is a prerequisite to complete, not evidence a state is unseedable.

## Friction log

FRICTION category|happened|prevention
- navigation queue|Lead found fresh-tab direct preview_open queue bug; existing-tab login/cancel reportedly work|Retest I7 after repair; pin final SHA, keep direct-open and navigate as separate trigger classes.
- mobile seed|Showcase thread fixture still writes V1; browser route requires genuine V2 thread and live tab|Commit supported V2 seed/driver; reuse pairing helpers only, validate thread/tab before mobile capture.
- environment reachability|Remote EAS account/availability passed, but no simulator or network path exercised|Use reachable isolated T3 share origin and compatible native client; keep HTTP fixture server-local.
- capture scope|Native desktop interception deliberately excluded|State desktop-native limitation explicitly; do not label web/native-mobile proof as all-client fix.
- evidence integrity|This audit has no captured proof; lead's observations are supplied, not audit runs|Mark every matrix row pending until artifact/timestamp exists; record final repair SHA and use identical baseline/head settings.
