Skip to content

refactor(mobile): send the last session-route raw-port calls as operations (step 6, migration 2) - #21083

Merged
Jinwoo-H merged 13 commits into
mainfrom
step6-migration-2
Sep 16, 2026
Merged

Jinwoo-H merged 13 commits into
mainfrom
step6-migration-2

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​116 $\color{#cf222e}{\Huge{\mathbf{−}}}$​22 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​94
Prod 37 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14350 $\color{#cf222e}{\Huge{\mathbf{−}}}$​133 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14217

Step 6, migration PR 2: the last four raw-port references in the session route — the startup effect's two worktree.activate sends, the New Tab terminal create and the terminal menu's display-mode toggle — now send through typed RpcOperations. No-behaviour-change contract proven by goldens recorded at the pin before the refactor and replayed unchanged after it.

The block these three files were listed under does not exist. All three were held back as "unrecorded, blocked on a WebView-ref substitute". None of them imports the terminal WebView, and all three send with no ref at all: the display toggle reads a {cols, rows} cell and a device-token cell, the create path calls scope callbacks, and the startup effect calls scope callbacks. The ref lives one layer down in use-mobile-session-terminal-subscription.ts, which none of the three imports. No substitute is added here; that decision belongs to whoever records terminal.subscribe.

Diff composition (vs origin/main)

Part Files Added Deleted What it is
Goldens 22 +12,607 0 22 added, 0 moved, 0 deleted; main's 705 byte-identical
Scenario manifest 1 +980 0 17 scenarios, pure insertion
Adapters 4 +467 0 3 mount adapter modules + their registration
Product source 6 +178 −105 the migration: 2 new single-reader operations, 1 reused; 4 refs off the raw port
Mutants and witness 2 +146 −8 6 mutations, the holes they close, and the property that makes an aborted mutant readable
Inventories 2 +20 −18 raw-port pending list, unchecked-reader counts
Parity pins 2 +24 −13 route parity, startup source
Recorder README 1 +43 −10 the fifth bounding fact, corpus counts, known-open holes
Salvage observation 1 +1 −1 the corpus count in its doc comment, 705 → 727

Commit order (the contract)

  1. 9f18985be0 adapters, scenarios and goldens, recorded at the pin a28085adbf before any product edit.
  2. 82d3866526 the refactor: product source only. git show --stat 82d3866526 -- mobile/rpc-foundation is empty.
  3. 6ac6429cfa inventories and the route-parity pins.
  4. c73ef53d5c one comment, naming the census survivor in the operation it belongs to.
  5. 043522e2f6 review round 1: the three scenarios that reach the empty arm of a guard, recorded at the same pin.
  6. a4aa079225 the three mutations those scenarios kill, and the README's fifth bounding fact.
  7. 65e9dadae5 TerminalCreateResult deleted; the migration left it with zero readers.
  8. 8fa72af89d review round 2: the create family's wire members become scenario arguments, with the four scenarios that reach the arms they open, recorded at the same pin.
  9. 5a7cb845fb the three mutations those scenarios kill, the manifest property the witness's abort-as-kill rests on, and the known-open-holes list.
  10. dabaec9b9f reportActivationOutcome takes the reply and interprets it itself.
  11. 8e4e5b128b the single merge of origin/main: main's 705 goldens and its 351 scenarios arrive untouched, this branch's 22 and 17 sit beside them.
  12. 7ed55efcb1 the determinism workaround comes out; the create family gets its declared mount step back.
  13. 9e78b27840 the corpus re-recorded at main's pin 9add08bb59, and the two counts that follow the corpus.

Migration (4 refs, 3 files)

Site Method Operation Acceptance parity
use-mobile-session-startup.ts ×2 worktree.activate reuses host-screen's worktreeActivate (worktree.activate-or-skip) Unchanged. The skip verdict had no reader before; the startup effect is its first. accepted && headlessActivationNeedsHostRenderer(value) is what main asked of response.ok ? response.result : null.
use-mobile-session-terminal-create-actions.ts session.tabs.createTerminal new sessionTabCreateTerminal, beside the other session-screen writes require-result-or-throw-message. The throw lands in the catch that already called reportCreateFailure with the host's message, including an empty message falling back to the screen's own copy. The reader is the unguarded .tab read, because that policy rethrows a reader's exception instead of converting it, which keeps a null or absent result failing where it failed.
use-mobile-session-terminal-stream-display.ts terminal.setDisplayMode new terminalDisplayModeSet success-result-or-skip, verdict unread, the way terminalBufferClear already works. Main awaited the envelope and looked at nothing in it; only a transport rejection was ever a failure.

Not reused: reviewTerminalCreateRun declares the same method and policy but creates a throwaway terminal for a review prompt and reads the handle to address a send, while this one adopts the tab into the session strip. Sharing would let either reply contract reach the other screen — the rule sessionWorktreeNotesWrite already states for worktree.set.

No new acceptance policies. No substitute member added anywhere.

The count was five, not six

The memo and the brief both say six raw references in these three files. The AST scanner says five: startup 2, create 2, display 1. Four are the methods in scope. The fifth is the prompt terminal.send the create drops into the terminal it just made, and it stays on the raw port with its own stated reason: it is the only terminal.send caller that falls back to its own copy when the host refuses with an empty message, so none of the three existing terminal.send operations carries its acceptance, and a fourth method is outside this migration. It is recorded either way — matrix-session.create-terminal-terminal.send-1 drives all eleven partitions at it — so whoever migrates it inherits the parity oracle.

Pending raw-port inventory 12 files / 21 refs → 10 / 17.

Recorded from the pin, because this branch does not repin

--record refuses any product tree that is not baseline, and this branch's tree is the migration itself. The README's detached-pin worktree recipe is the only one that runs here: a worktree at the pin, this branch's rpc-recording/ and manifest laid over it, goldens to a scratch directory, result copied back. All four recording passes used it, and the goldens then replay clean against this branch's tree, which is itself the proof that the migration moves no recorded observation.

The last pass records at main's own pin, 9add08bb59, which baseline has said since main repinned it. The control ran first: main's recorder, on that same pin worktree, reproduces main's 705 goldens byte-for-byte. The branch's recorder then reproduces the same 705 beside its own 22, so the corpus on this branch is main's corpus plus one family. baseline is never repinned here; the merge brought main's value in.

A determinism hazard the two runs caught, and what retired it

clientMutationId mixes Date.now() and Math.random(). Both are pinned by the scheduler, and that was still not enough: React draws one Math.random() of its own inside enqueueTask — ("require" + Math.random()).slice(0, 7), evaluated once per process to hide a require from bundlers — and runRecording flushes through await act after every step. With a scripted mount step, the create's draw was the second of the seeded sequence on the first recording in a process and the first on every later one, so the recorded key depended on test ordering and the two determinism runs disagreed: Request params mismatch: session.tabs.createTerminal#1, on clientMutationId alone. Until #21088 the create adapter mounted from its first action instead, ahead of any flush, which made its draw the first of the sequence whether React was warm or cold.

#21088 pays that draw in the scheduler, before it installs the seed. The workaround is gone: the create family mounts from a declared mount step like every other family, and the step carries the cells the hook reads as it renders — the worktree, the active tab, the device token — while the launch options stay on the create that passes them. The display-mode family always mounted from its own declared mount action, which is that same shape and was never the workaround, so nothing was deleted there.

Census

Applied and reverted by hand. Twelve against the raw-port code, before the refactor, plus one ordering mutation measured after it, each naming a golden it failed:

Mutation Verdict Golden
Wrong method, worktree.activate plain site killed session-startup-both-activation-sites
Wrong method, worktree.activate newly-created site killed session-startup-both-activation-sites
Wrong method, session.tabs.createTerminal killed session-create-terminal-replaces-active
Wrong method, terminal.setDisplayMode killed session-terminal-display-mode-to-desktop
Acceptance swapped, worktree.activate plain site killed matrix-session.startup-worktree.activate-2
Acceptance swapped, worktree.activate newly-created site killed matrix-session.startup-worktree.activate-1
Acceptance swapped, session.tabs.createTerminal killed session-create-terminal-refused
Acceptance swapped, prompt terminal.send killed session-create-terminal-with-prompt
Dropped unsubscribeTerminal on replace killed session-create-terminal-replaces-active
The two activation branches swapped killed session-startup-keeps-terminals-visible-on-reconnect
Dropped a delayed fetchTerminals pass killed session-startup-floating-route-skips-activation
Viewport pair not forwarded on setDisplayMode killed session-terminal-display-mode-auto-take-floor
Plain activation moved behind ensureSessionTabs killed session-startup-keeps-terminals-visible-on-reconnect

Two notes on how these were framed, because the brief's wording did not fit the code:

  • "Reordered the two worktree.activate sends" is not reachable as written: the two sites are mutually exclusive per pass, one on created !== '1' and one on created === '1'. What is reachable is swapping which branch each belongs to, and that is the twelfth row. The orderable pair that does exist is the plain send against ensureSessionTabs, and sent on the effect list pins it: moving the send after the tab load takes ensure-session-tabs from sent: 1 to sent: 0. That is the thirteenth row, and it kills.
  • The first recording of the site-A acceptance survived, because its scripted reply carried no sleeping-agent marker and the toast fired in neither arm. Fixed by giving that reply sleepingAgentWake: "unsupported-headless" before the census was finalised; it kills now. That is the scenario gap the census exists to find.

Seven more against the migrated code, after the refactor. Six kill: wrong method at all three operations, sessionTabCreateTerminal's acceptance and its reader, and worktreeActivate's acceptance.

Survivors

Seven mutations survived the suite as it stood before review. Six were guards or wire members, and each is now killed by a scenario that declares the cell it reads as empty; they live in mutants/operation-mutations.ts and mutants/probe-hole-witness.test.ts, which asserts the kill and that every other scenario of the same family still cannot see it.

Survivor Why nothing saw it Closed by Mutation
viewportRef.current && dropped, use-mobile-session-terminal-stream-display.ts every display scenario declared a measured viewport, so the member rode the wire in both arms session-terminal-display-mode-auto-without-viewport display-mode-unmeasured-viewport
the device-token conditional dropped beside it DEVICE_TOKEN was an adapter constant, so no scenario could empty the cell session-terminal-display-mode-auto-without-device-token display-mode-unconditional-client
.catch(() => null) dropped on ensureSessionTabs(), use-mobile-session-startup.ts the stub could only resolve, so the sequence never met a refused tab load session-startup-refused-tab-load-still-loads-terminals startup-tab-load-rejects-sequence
afterTabId: activeSessionTabId ?? undefined sending null, use-mobile-session-terminal-create-actions.ts the active tab was an adapter constant, so no scenario could reach the omission arm session-create-terminal-without-active-tab create-after-tab-id-null
the command and agentPrompt members swapped the adapter forwarded neither, so both rode the wire only as absent session-create-terminal-runs-a-quick-command, session-create-terminal-launches-an-agent-quick-command create-quick-command-keys
creatingTerminalRef.current dropped from the create guard no scenario tapped twice, so the in-flight arm was never entered session-create-terminal-ignores-a-second-create-in-flight create-second-tap-in-flight
terminalDisplayModeSet's acceptance swapped for require-result-or-throw-message open, and unpinnable at this site — —

The seventh is a property of the call site, not a gap in the recordings: the toggle reads no verdict and its own catch swallows a throw, so no acceptance policy is observable there and no scenario can make one so. c73ef53d5c says that in the operation itself. The first caller that reads a verdict is what makes it pinnable. The method, the params and the two conditional members are what the goldens do hold at that site.

Four of the six closures are detected at the transport's params assertion rather than as a golden divergence, because the mutant changes a param the scenario completes. The witness reads that one message as a kill, narrowed to it and taken only after the anchor is proved applied — and that reading now rests on an assertion over the whole manifest rather than on an argument: no scenario completes a request after its last checkpoint, so an aborted send always suppressed an observation a golden holds.

One more survivor is disclosed rather than closed, in the recorder README's known-open holes: deleting the activeHandleRef.current guard from the startup effect's 1800 ms created-session timer. Nothing a scenario can drive attaches a terminal between the mount and that timer, so the arm the guard exists for cannot occur here; in the product it can, and the mutant then sends a second worktree.activate for a live session. That section no longer states a count in prose — it is a list, and each entry names the site, the mutant and why no scenario sees it.

Scenarios and coverage

Seventeen scenarios, three families, twenty-two goldens (seventeen pilots, five reply matrices).

  • session.startup drives both activation sites in one scenario, the way the product does: the auto-create clears created off the route, the effect re-runs on the same mount and takes the other branch. That is what gives the matrix two sites instead of one. The others pin the floating-route gate, which sends nothing, the reconnect path that keeps the terminals visible, and a refused tab load that must not stop the terminal loads behind it.
  • session.create-terminal drives the prompt path as its base, so both the create and the prompt send get a matrix. The other six pin the plain replace, the host refusal, a create that returns no handle, a create on a session with no active tab, the two quick-command launch shapes — a shell command with its delivery and an agent prompt with its agent — and a second tap while the host is still answering the first.
  • session.terminal-display-mode pins both toggle directions — the auto direction is the one that forwards the viewport — the in-flight set dropping a second toggle, and the two auto sends a phone makes before it has measured itself or been given a device token.

The viewport pair, the device token, the tab-load outcome, the worktree, the active tab and the four launch options are scenario arguments, not adapter constants, so every member on the wire traces to a line in the manifest. A stub may reject where the product awaits it, on the scenario's instruction; it shapes no param and swallows no throw. The create's errorToast is now forwarded independently of the prompt, which is what the product does — the refused scenario had been declaring a toast the adapter dropped, and its golden recorded no effect for it.

Inventory changes

  • unvalidated-rpc-request-port-inventory.ts: startup and display-mode entries deleted, create lowered 2 → 1 with its own reason. 12 files / 21 refs → 10 / 17.
  • Three stale comments corrected. The three step-6 entries claimed a WebView-ref or subscription wall measurement did not find. The accounts screen's entry said the runner is request-only, which stopped being true when ScenarioStep gained frame; it now says what actually blocks it, which is that no scenario has been written for accounts.subscribe.
  • unchecked-rpc-reader-inventory.ts: mobile-session-write-operations.ts 8 → 10, named in the header the way refactor(mobile): send the subscription-gated holdouts through typed RpcOperations (step 6, migration 1) #20954's three are.
  • rpc-subscription-inventory.ts: unchanged. None of the three files calls client.subscribe; what they call are scope callbacks.
  • TerminalCreateResult deleted. Reusing it at the cast site would have kept the cast and only renamed it.

Evidence

  • Golden delta of the first recording pass, decoded through the value pool against the branch point: 705 identical, 0 header-only, 0 body moved, 15 added, 0 deleted.
  • Golden delta of review round 1, decoded the same way: 705 identical, 15 header-only, 0 body moved, 3 added, 0 deleted. The fifteen are this branch's own three families: adapterSha256 on all fifteen because their modules were edited, and scenarioSha256 on the seven derived from a scenario that now declares its device token. No body moved, which is the point — declaring the token changed no param.
  • Golden delta of review round 2, same decode: 717 identical, 5 header-only, 1 body moved, 4 added, 0 deleted. The five headers are the create family's own goldens on adapterSha256 and scenarioSha256. The one body is session-create-terminal-refused, which gains the failure toast its scenario always declared and the adapter had been dropping. Against the branch point the corpus reads 705 identical, 22 added, 0 moved, 0 deleted.
  • Golden delta of the re-record at main's pin, decoded against origin/main: 705 identical, 0 header-only, 0 body moved, 22 added, 0 deleted. Every golden main owns arrives from the merge and survives the recording untouched.
  • Decoded against this branch's previous head dabaec9b9f, the same pass reads 0 identical, 6 header-only, 721 body moved, 0 added, 0 deleted — main's work, not this branch's. Main replaced the sent request count with one shared write ordinal stamped on every sender call, payload and effect, so every golden carrying any of the three moved in body. The six that moved headers only are the scenarios that send nothing and write nothing: aivault-resume-prepare-skipped, clipboard-image-attachment-cancelled, native-chat-image-upload-cancelled, native-chat-session-option-pick-empty, sc-prerequisite-skipped, terminal-query-reply-unsubscribed. Headers moved on all 727 for baseline and recorderSha256, on 45 for adapterSha256 (35 of them main's shared client-context exposure, 10 this family's restored mount) and on 10 for scenarioSha256, all 10 the create scenarios that gained the mount step.
  • No pre-existing golden is touched in any pass, in body or in header.
  • All 22 new goldens carry baseline: 9add08bb59, main's own value, arrived through the merge. baseline is not repinned anywhere on this branch.
  • Refactor proven by replay, not re-record: 82d3866526 touches no file under mobile/rpc-foundation, and the recording suite passes unchanged across it.

Gates

All with ORCA_BACKGROUND_LAUNCH=1.

mobile typecheck                     0 errors
mobile full test suite               602 files, 5754 passed, 6 skipped
mobile recording suite               20 files, 888 passed, 3 skipped
root typecheck (all projects)        exit 0
check:code-quality:changed           0 new findings across 16 files
  (code quality, casting, type-aware, React Doctor, design system, SAFETY rationale)
oxlint, changed files                0
oxfmt --check, from mobile/          clean, 2623 files

One thing to know for anyone repeating this: running a root-level package-manager script in a node_modules-symlinked worktree triggers a pnpm lifecycle rebuild of the native deps in the shared tree. The root typecheck and quality gates above were run by invoking their scripts with node directly to avoid it. Nothing changed in the shared install or the lockfile.

…ilies

Three mount adapters and ten scenarios for the last raw-port sends in the
session route, recorded at the pinned main baseline before any product edit.

The three hooks were listed as blocked on a WebView-ref substitute. They are
not: none imports the terminal WebView, and all three send with no ref. The
display-mode toggle reads a `{cols, rows}` cell and a device-token cell; the
create path calls scope callbacks; the startup effect drives scope callbacks
only. Each stub is an effect sink, shapes no param and swallows no throw.

One scenario reaches both `worktree.activate` sites the way the product does:
the auto-create clears `created` off the route, the effect re-runs on the same
mount and takes the other branch, so the reply matrix drives both.

The create adapter mounts in its factory rather than as a scripted step. React
draws one `Math.random()` lazily the first time `enqueueTask` runs, and the
runner flushes through `await act` after every step, so a scripted mount would
make `clientMutationId` the second draw of the seeded sequence on the first
recording in a process and the first on every later one. The two determinism
runs caught it.

Recorded through the pinned-baseline worktree recipe, because main has moved
past `a28085adbf` in `src/shared` and this branch does not repin. 705 existing
goldens byte-identical, 15 added, 0 moved, 0 deleted.

Mutation census against the raw-port code, applied and reverted by hand, all
twelve killed: wrong method at each of the four sites; acceptance verdict
swapped at each of the four verdict-reading sites; dropped `unsubscribeTerminal`
on replace; the two activation branches swapped; a delayed `fetchTerminals` pass
dropped; the viewport pair not forwarded on `terminal.setDisplayMode`.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…tions

Four references, three files, no behaviour change. Proven by replay: the
fifteen goldens recorded at the pin before this commit pass unchanged, so no
re-record.

- `use-mobile-session-startup.ts` both `worktree.activate` sends reuse
  host-screen's `worktreeActivate`. Its skip verdict was never read before;
  the startup effect is its first reader, and it reads exactly what main read
  off the envelope — whether an accepted reply says the host is headless.
- `use-mobile-session-terminal-create-actions.ts` `session.tabs.createTerminal`
  gets `sessionTabCreateTerminal`, a single-reader operation beside the other
  session-screen writes. `require-result-or-throw-message` replaces the
  `if (response.ok)` branch because the throw lands in the catch that already
  reported the host's message, character for character, including the empty
  message falling back to the screen's own copy. The reader stays the unguarded
  `.tab` read, because that policy rethrows a reader's exception rather than
  converting it, which is what keeps a null or absent result failing where it
  failed before.
- `use-mobile-session-terminal-stream-display.ts` `terminal.setDisplayMode` gets
  `terminalDisplayModeSet`, a skip whose verdict the caller does not read, the
  way `terminalBufferClear` already works: the server does the resize and
  reports it on the terminal's existing subscription, so main looked at nothing
  in the envelope and only a transport rejection was ever a failure.

The prompt `terminal.send` in the create path stays on the raw port. It is the
only `terminal.send` caller that falls back to its own copy when the host
refuses with an empty message, so no existing operation carries its acceptance
and a new one is a fourth method outside this migration's scope. It is recorded
either way.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…ute pins

Pending raw-port inventory: two entries deleted and one lowered, 12 files / 21
references to 10 / 17. The startup and display-mode entries reach zero; the
create entry keeps the prompt `terminal.send` and states its own reason.

Three stale comments corrected. The startup, create and display-mode entries
claimed a WebView-ref or subscription wall that measurement did not find: none
of the three hooks imports the terminal WebView, the display-mode write is not
gated on an open subscription, and the create path's `subscribeToTerminal` is a
scope callback rather than a `client.subscribe`. The accounts screen's entry
said the runner is request-only, which stopped being true when `ScenarioStep`
gained `frame`; what actually blocks it is that no scenario has been written for
`accounts.subscribe`, so its entry now says that instead.

Unchecked-reader inventory: `mobile-session-write-operations.ts` 8 to 10 for the
two readers the migration added, named in the header the way #20954's three are.

Route parity: four pins refreshed with their reasons — the callback bodies for
the display-mode toggle, the effects for the startup activation pair, the nested
function bodies for the create, and the runtime strings, whose count falls 535 to
531 as four more method literals move to their operations' definitions. The
startup source pins now name `worktreeActivate` and still hold what they held:
the plain activation is fired rather than awaited, and it goes out before the tab
load.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…holds

Post-refactor census survivor, measured rather than assumed: swapping
`terminalDisplayModeSet`'s acceptance for `require-result-or-throw-message`
moves none of the fifteen goldens. The call site reads no verdict and its own
`catch` swallows a throw either way, so no policy is observable there. The
method, the params and the viewport pair are what the goldens hold at that site.
The six other operation-level mutations all kill.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Four raw-port sends migrated to typed operations — the startup effect's two worktree.activate sends now reuse the host screen's worktreeActivate; the New Tab create and the terminal menu's display-mode toggle get new sessionTabCreateTerminal / terminalDisplayModeSet in mobile-session-write-operations.ts. Operation names, methods and readers follow the established conventions, and bindDeferredRpcOperation.request forwards the same params bytes the raw port did.
  • Startup reads the operation verdict, not the envelope — reportActivationOutcome takes worktreeActivate.interpret(...) and tests accepted && headlessActivationNeedsHostRenderer(value). For success-result-or-skip that is exactly response.ok ? response.result : null, and both sites map a dropped reply to { accepted: false }, so the "open Orca on the host" toast gating is unchanged.
  • Create path's failure branch folded into the existing catch — require-result-or-throw-message throws the host's message on refusal and rethrows the native tab property-read exception on a null result; both reach reportCreateFailure(error.message), which is what the old if (response.ok) … else did. The scheduleDelayedAction(fetchSessionTabs) stays on the success path only.
  • Recording oracle and provenance — commit 9f18985be0 adds only the manifest, adapters and 15 goldens (all baseline: a28085adbf…, one recorderSha256); commit 82d3866526 is product source only and touches nothing under mobile/rpc-foundation. The three mount adapters match how the product reaches each hook — no WebView ref is substituted, and the create adapter mounts in its factory to pin the Math.random() sequence.
  • Inventories and pins updated honestly — raw-port inventory lowered 12/21 → 10/17 with the prompt terminal.send kept as a documented holdout; unchecked-reader inventory names the two new readers; the route-parity and startup-source pins are refreshed with comments explaining each moved hash; the three stale step-6 blocker comments are corrected to the real (no scenario) reason.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 0906be1b-d8af-46de-9e0b-22f16a02b727

📥 Commits

Reviewing files that changed from the base of the PR and between 65e9dad and dabaec9.

📒 Files selected for processing (17)
  • mobile/rpc-foundation/goldens/matrix-session.create-terminal-session.tabs.createterminal-1.json
  • mobile/rpc-foundation/goldens/matrix-session.create-terminal-terminal.send-1.json
  • mobile/rpc-foundation/goldens/session-create-terminal-ignores-a-second-create-in-flight.json
  • mobile/rpc-foundation/goldens/session-create-terminal-launches-an-agent-quick-command.json
  • mobile/rpc-foundation/goldens/session-create-terminal-refused.json
  • mobile/rpc-foundation/goldens/session-create-terminal-replaces-active.json
  • mobile/rpc-foundation/goldens/session-create-terminal-runs-a-quick-command.json
  • mobile/rpc-foundation/goldens/session-create-terminal-with-prompt.json
  • mobile/rpc-foundation/goldens/session-create-terminal-without-active-tab.json
  • mobile/rpc-foundation/goldens/session-create-terminal-without-handle.json
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/src/session/mobile-session-route-parity.test.ts
  • mobile/src/session/use-mobile-session-startup.ts
  • mobile/src/test-support/rpc-recording/README.md
  • mobile/src/test-support/rpc-recording/adapters/session-terminal-create-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/mutants/operation-mutations.ts
  • mobile/src/test-support/rpc-recording/mutants/probe-hole-witness.test.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • mobile/rpc-foundation/goldens/matrix-session.create-terminal-session.tabs.createterminal-1.json
  • mobile/rpc-foundation/goldens/session-create-terminal-without-handle.json
  • mobile/rpc-foundation/goldens/session-create-terminal-replaces-active.json

Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The change adds typed RPC operations for worktree activation, terminal creation, and terminal display-mode updates. It migrates the related mobile session flows and updates parity checks and RPC inventories. It adds recording adapters, scenario inputs, mutation witnesses, and corpus documentation. It adds Darwin golden recordings for startup, terminal creation, prompt sending, display-mode changes, refusals, transport failures, lifecycle effects, and pending states.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to dabae

Startup scenario recordings can include route-reset effects that are not caused by the created-route transition itself. Stabilize the fixture dependencies to keep the recording corpus accurate; this is bounded to test infrastructure.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 15 files. (12 skipped… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description gives detailed change, rationale, implementation, coverage, and validation information. However, it does not follow the required template and omits the required Linked Issue, Visual Pr… Add the required template sections and complete them. Include a valid issue reference after Fixes #; add before/after visual proof or state N/A with a reason; complete Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes…
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely identifies the main change: migrating the remaining mobile session-route raw-port calls to typed operations.
Full details: Docstring Coverage

Explanation

Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 15 files. (12 skipped: 12 unsupported.)

Full details: Description check

Explanation

The description gives detailed change, rationale, implementation, coverage, and validation information. However, it does not follow the required template and omits the required Linked Issue, Visual Proof or explicit N/A, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections.

Resolution

Add the required template sections and complete them. Include a valid issue reference after Fixes #; add before/after visual proof or state N/A with a reason; complete Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections; and provide the required ELI5 explanation.

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 1e819798-e81b-475b-83cb-3066ce5b47de

📥 Commits

Reviewing files that changed from the base of the PR and between 0cd05bc and c73ef53.

📒 Files selected for processing (29)
  • mobile/rpc-foundation/goldens/matrix-session.create-terminal-session.tabs.createterminal-1.json
  • mobile/rpc-foundation/goldens/matrix-session.create-terminal-terminal.send-1.json
  • mobile/rpc-foundation/goldens/matrix-session.startup-worktree.activate-1.json
  • mobile/rpc-foundation/goldens/matrix-session.startup-worktree.activate-2.json
  • mobile/rpc-foundation/goldens/matrix-session.terminal-display-mode-terminal.setdisplaymode-1.json
  • mobile/rpc-foundation/goldens/session-create-terminal-refused.json
  • mobile/rpc-foundation/goldens/session-create-terminal-replaces-active.json
  • mobile/rpc-foundation/goldens/session-create-terminal-with-prompt.json
  • mobile/rpc-foundation/goldens/session-create-terminal-without-handle.json
  • mobile/rpc-foundation/goldens/session-startup-both-activation-sites.json
  • mobile/rpc-foundation/goldens/session-startup-floating-route-skips-activation.json
  • mobile/rpc-foundation/goldens/session-startup-keeps-terminals-visible-on-reconnect.json
  • mobile/rpc-foundation/goldens/session-terminal-display-mode-auto-take-floor.json
  • mobile/rpc-foundation/goldens/session-terminal-display-mode-drops-second-toggle.json
  • mobile/rpc-foundation/goldens/session-terminal-display-mode-to-desktop.json
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/src/host-screen/host-screen-operations.ts
  • mobile/src/session/mobile-session-route-parity.test.ts
  • mobile/src/session/mobile-session-startup-source.test.ts
  • mobile/src/session/mobile-session-write-operations.ts
  • mobile/src/session/use-mobile-session-startup.ts
  • mobile/src/session/use-mobile-session-terminal-create-actions.ts
  • mobile/src/session/use-mobile-session-terminal-stream-display.ts
  • mobile/src/test-support/rpc-recording/adapters/mounted-operation-modules.ts
  • mobile/src/test-support/rpc-recording/adapters/session-startup-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/session-terminal-create-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/session-terminal-display-mode-mount-adapters.ts
  • mobile/src/transport/unchecked-rpc-reader-inventory.ts
  • mobile/src/transport/unvalidated-rpc-request-port-inventory.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment on lines +92 to +107
bufferedTerminalDraftState: {
resetDrafts: () => effect('reset-drafts', {}),
clearPendingRestorations: () => effect('clear-pending-restorations', {})
},
clearPendingLiveInputCommit: () => effect('clear-pending-live-input-commit', {}),
clearDelayedActionTimers: () => effect('clear-delayed-action-timers', {}),
showToast: (message: string, durationMs?: number) =>
effect('toast', { message, durationMs: durationMs ?? null }),
clearTerminalCache: () => effect('clear-terminal-cache', {}),
fetchTerminals: async (options) => {
effect('fetch-terminals', { allowEmptyLoaded: options?.allowEmptyLoaded ?? null })
return true
},
ensureSessionTabs: async () => {
effect('ensure-session-tabs', {})
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '32,146p' mobile/src/test-support/rpc-recording/adapters/session-startup-mount-adapters.ts
sed -n '1,230p' mobile/src/session/use-mobile-session-startup.ts
rg -n "bufferedTerminalDraftState|clearPendingLiveInputCommit|clearDelayedActionTimers|showToast|clearTerminalCache|fetchTerminals|ensureSessionTabs|useEffect" mobile/src/session/use-mobile-session-startup.ts

Repository: stablyai/orca

Length of output: 13344


🏁 Script executed:

set -eu
printf '%s\n' '--- hookMount definitions/usages ---'
rg -n --glob '*.ts' --glob '*.tsx' "function hookMount|const hookMount|hookMount\\s*=|export .*hookMount|hook\\.update\\(\\)" mobile/src/test-support mobile/src | head -160
printf '%s\n' '--- nearby adapter fixture patterns ---'
rg -n --glob '*.ts' --glob '*.tsx' "bufferedTerminalDraftState|sessionStartupMountAdapters|mountFixture<|const .* = \\(.*\\) => effect" mobile/src/test-support | head -220
printf '%s\n' '--- candidate harness files ---'
fd -i 'hook|record|mount' mobile/src/test-support | head -120

Repository: stablyai/orca

Length of output: 21384


🏁 Script executed:

set -eu
rg -n --glob '*.ts' --glob '*.tsx' "function hookMount|const hookMount|hookMount\\s*=|export .*hookMount|hook\\.update\\(\\)" mobile/src/test-support mobile/src | head -200
rg -n --glob '*.ts' --glob '*.tsx' "bufferedTerminalDraftState|sessionStartupMountAdapters|mountFixture<|effect\\('" mobile/src/test-support | head -240
fd -i 'hook|record|mount' mobile/src/test-support | head -140

Repository: stablyai/orca

Length of output: 38391


🏁 Script executed:

set -eu
printf '%s\n' '--- hook-mount.ts ---'
cat -n mobile/src/test-support/rpc-recording/hook-mount.ts
printf '%s\n' '--- recorder-fixture-shape.ts ---'
sed -n '1,55p' mobile/src/test-support/rpc-recording/recorder-fixture-shape.ts

Repository: stablyai/orca

Length of output: 4363


Keep fixture callback identities stable.

hookMount.update() reruns the Harness, and mountFixture does not stabilize its values. consume-created-route therefore creates new callback and bufferedTerminalDraftState identities even though it changes only created.

These identities are dependencies of both useMobileSessionStartup effects. React consequently cleans up and reruns both effects, including the route-reset effect.

Hoist the dependency callbacks and bufferedTerminalDraftState outside the hookMount render callback. The update should change only created.

Three session sends are gated on a cell every existing scenario filled: the
display-mode toggle carries `viewport` only once a surface has measured one and
`client` only once the phone holds a device token, and the startup sequence
swallows a refused tab load before loading terminals behind it. Every recording
declared those cells full, so the arm each guard exists for was never on the
wire and dropping the guard moved no golden.

The two device cells become scenario arguments rather than adapter constants, so
a scenario can declare them empty; the tab load may now be declared to reject,
which is the only way a refused scope callback is reachable at all. Declared, not
shaped: the stubs build no param and swallow no throw.

Three scenarios take the empty arm. The token and viewport ones send `auto`,
which is the direction both members ride, and the startup one records that the
terminal loads and the activation timer still run behind a refused tab load.

Recorded at the pinned baseline through the detached-pin worktree recipe, since
this branch may not repin. 705 goldens identical, 0 body moved, 3 added, 0
deleted; the 15 header-only moves are `adapterSha256` on the three edited
families and `scenarioSha256` on the four scenarios that now declare their token.

The create adapter's determinism comment now names the draw it works around:
React's lazy `("require" + Math.random())` in `enqueueTask`, the scheduler line
that seeds the sequence, and the mismatch a misplaced mount reports. #21088
retires the workaround.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
… pinned

Each mutation is the guard deleted: the display-mode send carries `client` with
an empty id, carries `viewport` before anything measured one, and the startup
sequence lets a refused tab load reject it so the terminal loads and activation
timer behind it never run. All three survived the whole suite before the
scenarios above; the witness asserts each is killed by its scenario and that
every other scenario of the same family still cannot see it.

A mutation that changes a param the scenario completes aborts at the transport's
params assertion instead of producing a divergent recording. That is the
scenario detecting it, so the witness reads that one message as a kill, narrowed
to it and taken only after the anchor is proved applied.

The README gains the class as its fifth bounding fact: a value an adapter holds
as a constant is a cell no scenario can empty, so the arm that reads it empty is
unreachable until the constant becomes an argument. Corpus counts refreshed to
what the suite measures.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
`TerminalCreateResult` wrapped the created tab for the old `sendRequest` reply
shape. The migrated call site reads the tab off the operation and names the tab
type directly, leaving the wrapper with zero readers repo-wide. Using it at the
cast site would have kept the cast and only renamed it, so it goes.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run covers the three commits pushed since the prior pullfrog review at c73ef53d5c — all test-support plus one dead-type deletion; no product behavior moves.

  • Recorded the empty arm of three session guards — session-terminal-display-mode-auto-without-viewport (token declared, no viewport), -auto-without-device-token (viewport declared, no token), and session-startup-refused-tab-load-still-loads-terminals (tabLoadRejects: true). The display-mode and create adapters now take deviceToken (and viewport) as scenario arguments rather than adapter constants, so a scenario can declare a cell empty. Each new scenario declares the other cell, so it isolates one guard and correctly survives the sibling's mutation.
  • Added the three mutations and tightened the witness — display-mode-unconditional-client, display-mode-unmeasured-viewport, startup-tab-load-rejects-sequence, whose before strings match the product source verbatim. probe-hole-witness.test.ts's verdict helper now maps a transport Request params mismatch: (only after assertMutationApplied()) to killed, because the two display-mode mutants abort at the params assertion instead of diverging a recording. The startup mutant diverges through the effect sequence as before.
  • Refreshed the README's fifth bounding fact and corpus counts — the constant-is-an-unfillable-cell lesson, and counts (364 scenarios / 723 goldens / 853 tests) that match the on-disk corpus exactly.
  • Deleted TerminalCreateResult — the migration left it with zero readers repo-wide, and a repo-wide grep confirms none remain.

Verification in this sandbox: probe-hole-witness.test.ts 32 passed; golden-header-digest, derived-goldens, and mutant-seam 8 passed; oxlint clean on the changed source. The full recording suite exceeded the sandbox's 2-minute shell cap, but the new goldens replay inside the witness run.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

…n the wire

The terminal-create adapter decided four of the members its own goldens hold:
the worktree, the tab a new one is inserted after, and every launch option but
the prompt and its two toasts. A value an adapter supplies itself is a cell no
scenario can empty, so `afterTabId`'s omission arm — the arm a fresh session and
a last-tab close both take — was unreachable, and the quick-command members were
recorded only as absent. All of it now comes from the scenario, and the mount
moves to the first action so the arguments are in place before the hook reads
them. It stays out of a scripted mount step for the determinism reason above it.

Four scenarios follow the new arguments: a create with no active tab, a shell
quick command, an agent quick command, and a second tap while the host is still
answering the first. The refused scenario stops declaring an `errorToast` the
adapter dropped: forwarding the toast independently of the prompt is what the
product does, so that golden now records the failure toast it always showed.

Recorded at the branch's pin, so 705 goldens stay byte-identical to the merge
base; five headers move on adapter and scenario digests and one body moves, the
refused create's new toast effect.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
…pinned

Each of the three new create scenarios closes a mutation that survived all 853
tests before it: putting the active tab on the wire as `null` instead of
omitting it, swapping the `command` and `agentPrompt` members the host reads,
and dropping the in-flight guard so a second tap opens a terminal nobody asked
for. The witness asserts the hole and the closure together, as the others do.

The params-mismatch abort the witness reads as a kill now rests on an assertion
rather than on an argument: no scenario in the manifest completes a request
after its last checkpoint, so a send whose params stopped matching always
suppressed an observation a golden holds.

Known-open holes loses its prose count and becomes a list that names the site,
the mutant and why no scenario can see it. Two entries join it: the display-mode
acceptance, which no call site reads, and the startup timer's attached-terminal
guard, which needs an adapter that can attach a terminal mid-scenario.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
`reportActivationOutcome` took a verdict, which left the timer site hand-building
`{ accepted: false }` for the case where there is no reply to interpret at all.
Taking `RpcResponse | null` and interpreting inside puts the operation's own
policy at both sites and spells the absent reply as absence. Nothing is lost:
`worktreeActivate` reads an unchecked payload and admits every success, so its
`interpret` cannot throw on a reply either site can receive.

No golden moves; the effect digest is repinned.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run covers the three commits pushed since the prior pullfrog review at 65e9dadae5 — the round-2 test-support work plus one behavior-preserving refactor.

  • The create family's wire members became scenario arguments — worktreeId, activeSessionTabId, the four launch options, the device token and agent now come from the scenario manifest rather than adapter constants, and errorToast is forwarded independently of the prompt. session-create-terminal-refused consequently gains the failure-toast effect its scenario always declared — the one body-moved golden in the delta, and the intended consequence of the adapter fix.
  • Four scenarios and their goldens reach the arms those arguments open — a create with no active tab, a shell quick command, an agent quick command, and a second tap while the first create is in flight. The corpus now reads 368 scenarios / 727 goldens, matching the refreshed README counts.
  • Three create mutants and the witness that keeps them closed — create-after-tab-id-null, create-quick-command-keys, create-second-tap-in-flight, each with a probe-hole-witness entry that asserts the closing scenario kills it and the rest of the family still cannot see it. The verdict helper's abort-as-kill reading now rests on a manifest-wide invariant test (never completes a request after the last checkpoint), which I verified holds by parsing pilot-scenarios.json directly.
  • reportActivationOutcome takes the reply and interprets it itself — dabaec9b9f retires the hand-built { accepted: false } the timer site passed when it had no reply, and both sites now feed the raw RpcResponse | null. For success-result-or-skip the resulting gate is exactly main's response.ok ? response.result : null plus the result read, so the sleeping-agent toast is unchanged.
  • The README's known-open holes list grew to four entries — the display-mode acceptance (unobservable at a call site that reads no verdict) and the 1800 ms attached-terminal guard join the two existing entries; prose counts that could not fail were replaced with the list.

The remaining notes are unchanged and non-blocking: the prompt terminal.send stays on the raw port with its stated reason, and the display-mode acceptance policy is unpinnable at its current call site (both documented in code and the README).

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Takes main's recorder corpus wholesale: the 705 goldens main re-recorded at
its new pin 9add08b arrive byte-for-byte, and the manifest merge is main's
351 scenarios untouched beside this branch's 17. This branch's 22 goldens are
still recorded at the old pin a28085a and are re-recorded in a later commit.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
The create adapter mounted inside its first action so the create would run
ahead of the flush that made React pay its one lazy `Math.random()` draw.
#21088 pays that draw in the scheduler before it installs the seed, so the
position of the mount no longer decides which seeded value `clientMutationId`
reads, and the family goes back to the shape every other one uses: a declared
`mount` step carrying the cells the hook reads as it renders — the worktree,
the active tab, the device token — and a `create` step carrying the launch
options it passes.

The display-mode family keeps mounting from its `mount` action, which is that
same declared shape and never was the workaround.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Recorded at main's baseline in a detached-pin worktree with this branch's
recorder, adapters and manifest. Main's own recorder on that pin reproduces
main's 705 goldens byte-for-byte first, and this run reproduces the same 705
beside the 22 this branch adds, so the corpus is main's plus this family.

Every body moved against the branch's previous recording: main replaced the
`sent` request count with the shared write ordinal, which stamps every sender
call, payload and effect. Six goldens moved headers only, all of them
scenarios that send nothing and write nothing, so they had no entry to stamp.

Counts follow the corpus: 727 goldens, 888 tests. The corpus still carries no
`reply-salvage` effect — the 22 added goldens contribute no checked read at
all, since this family's readers are the unchecked ones the inventory lists.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run covers the three commits pushed since the prior pullfrog review at dabaec9b9f — the merge of origin/main, a test-support mount-step refactor, and a golden re-record. No product source moves in the delta.

  • Merged origin/main — no main commit touches the branch's six product files, so the merge is a clean union. Main's 705 goldens arrive byte-identical and the branch's 22 sit beside them: git diff 533b0bd02e..HEAD -- mobile/rpc-foundation/goldens is exactly the branch's 22 additions, and origin/main has not changed anything under mobile/rpc-foundation since the merge tip.
  • Restored the create family's declared mount step — the adapter no longer mounts inside its first action; the scenario declares worktreeId, activeSessionTabId and deviceToken on mount, while the launch options stay on create. That is only sound because main's vitest-recording-scheduler.start() pays React's one lazy Math.random() draw before installing the seed, which I verified in-tree and which vitest-recording-scheduler.test.ts pins as the first-in-process oracle. All eight create pilots declare mount first.
  • Re-recorded the 22 branch goldens at main's pin 9add08bb59 — every body moved versus the branch's prior recording because main replaced the sent request count with the shared write ordinal. All 727 goldens now share one baseline, recorderSha256 and lockfileSha256, and the manifest baseline equals origin/main's. The README counts (368 scenarios / 727 goldens / 888 tests) match the corpus on disk, and the salvage-observation.test.ts comment follows to 727.

The remaining notes are unchanged and non-blocking: the prompt terminal.send stays on the raw port with its stated reason, and the display-mode acceptance policy is unpinnable at its current call site (both documented in code and the README).

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H merged commit ccb4d20 into main Sep 16, 2026
22 checks passed
@Jinwoo-H
Jinwoo-H deleted the step6-migration-2 branch September 16, 2026 23:39
Jinwoo-H added a commit that referenced this pull request Sep 17, 2026
Integration only, no behaviour: #21083's two new session-write readers
(`created-terminal-tab`, `terminal-display-mode-set`) come in exactly as
main wrote them, and the inventory carries the line for them under this
file's own merge rule. The next commit converts both and the session block
is empty again.

Goldens and the manifest take main's bytes for every path main has — 727
goldens and all 368 scenarios byte-identical, `baseline` left at main's
9add08b — with this branch's 31 goldens and 11 scenarios beside them.

Hand-resolved besides the inventory: `mobile-session-write-operations.ts`
keeps both sides' readers, `operation-mutations.ts` unions both mutant
sets, and `mobile-session-route-parity.test.ts` unions the two refresh
notes and repins all three body digests over the merged source.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Jinwoo-H added a commit that referenced this pull request Sep 17, 2026
Step 7 empties the session block of the unchecked-reader inventory, and
#21083 landed two readers into it after that: the New Tab create's member
read of `tab`, and the display-mode toggle's payload. Converting them is
what keeps the claim true — a session line reappearing would mean the
domain is not migrated.

`created-terminal-tab` requires `tab.id` and `tab.type === 'terminal'`,
because the strip keys the new tab on the id and spreads the rest into a
union whose arm `type` picks. `terminal`, `title` and `terminalTheme` stay
optional behind main's own guards, and unknown members pass through.
`terminal-display-mode-set` reads nothing, so it takes the same
`z.unknown()` the other five unread writes take.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Jinwoo-H added a commit that referenced this pull request Sep 17, 2026
All 736 goldens this branch already had move on `baseline` alone, and
#21083's 22 arrive beside them. One of the 22 moves against main's own
recording: `matrix-session.create-terminal-session.tabs.createterminal-1`,
where the New Tab create's five malformed partitions read
`Cannot read properties of undefined (reading 'tab')` and now read the
method's own message. Two of them also stop unsubscribing the terminal the
user was watching before the property read threw, so a create that never
happened no longer costs the live pane its subscription.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Jinwoo-H added a commit that referenced this pull request Sep 17, 2026
…7) (#21089)

* test(mobile): record main's session reply behaviour at every unrecorded read site

Step 7 for the session domain changes how 51 RPC readers read a *malformed*
reply. Eleven of the session read sites had no recording family, so main's
answer to a malformed reply at those sites was undocumented and the reader
change would have had nothing to move. This commit is the before picture, taken
from main's own tree with no product edit in it.

Ten new families, twelve scenarios, twenty-five goldens:

- `session.review-file-diff` / `session.review-branch-diff` — `git.diff` and
  `git.branchDiff` read through the review projection, which the Changes
  screen's verbatim readers do not cover.
- `session.review-git-mutations` — the single-file `git.stage` / `git.discard`
  and the bulk stage sweep's second `git.stage`.
- `session.review-send-sheet` — `session.tabs.list` read for the agent
  terminals the send sheet lists, the third reader on that method. Needs an
  `open-send-sheet` action on the review-action adapter, which re-digests that
  family's eight goldens on `adapterSha256` and nothing else.
- `session.browser-tab-create` — `browser.tabCreate`.
- `agentSession.structured-create` — `agentSession.create`, whose family base
  only ever covered the support probe.
- `session.tab-rename` / `session.tab-close-session` — `terminal.rename` and
  `session.tabs.close`.
- `settings.new-tab-local-agents` — `preflight.detectAgents`, the arm the
  new-tab loader takes for a workspace with no connection.

`baseline` is repinned to main's tip because two commits (#20659, #21004)
touched a fenced path after the pilot's pin, so `--record` refuses on main's own
tree until it moves. The repin is what rewrites `baseline` on all 705 existing
goldens; nothing else about them moves.

Decoded against origin/main through the value pool: 705 header-only (`baseline`
on every one, `adapterSha256` on the eight review-action goldens), 0 body-moved,
25 added, 0 deleted.

Not covered, with the reason: the chunked clipboard upload's
`appendImageUploadChunk`, `commitImageUpload` and `abortImageUpload` cannot be
matrixed, because `replyMatrixSites` takes every completion in the base scenario
and the chain's later params carry the `uploadId` the start reply named. Driving
`clipboard.startImageUpload#1` therefore makes main send an append whose params
no scripted step matches, and the recorder raises `Request params mismatch:
clipboard.appendImageUploadChunk#1` instead of recording. The two families were
written, probed and removed.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): checked reply readers for the session domain (step 7)

Fifty-one unchecked reply readers across nine files become checked zod readers,
so a malformed host reply surfaces as one readable error at the operation
boundary instead of a downstream `TypeError`, a rendered `undefined`, or a
screen left ready over garbage. Deliberately a behaviour change on malformed
replies only.

Eight schema modules, one per reply family, each recording the consumer line
behind every requirement and the host handler that publishes it:

- `clipboard-image-reply-schema.ts` — the upload slot's `uploadId`, the commit
  and single-frame path strings, and the two legs whose body nothing reads.
- `github-pr-mutation-reply-schema.ts` — the `{ ok, error }` status envelope as
  two variants, and the bare-boolean confirmation.
- `github-pr-entity-reply-schema.ts` / `github-pr-read-reply-schema.ts` — the
  seven PR sidebar reads. Every identity requirement the hand parsers had is
  kept, so a payload that degraded to null still degrades to null; what changes
  is a payload that is not the declared container at all.
- `diff-review-reply-schema.ts` — the normalized branch compare, the review
  notes on the worktree record, the three file-diff arms, and the file-level git
  mutations.
- `review-terminal-reply-schema.ts`, `session-launch-reply-schema.ts`,
  `session-read-reply-schema.ts`, `session-write-reply-schema.ts` — the review
  send sheet, the launch paths, the session screen's reads and its writes.

Requirements are exactly the members a consumer reads unguarded, everything else
is a salvaged optional with main's own default applied in the transform, and no
schema is `.strict()`: a member a newer host adds passes through untouched.
Enum arm sets that a reader compares against pass through or degrade to the arm
the reader handles most conservatively; the two closed sets — the committed
change status and the diff kind — are closed because main *dropped* an arm it
did not know rather than passing it through, and degrading them would draw a row
or render a diff main never did. No member is coerced on the way back to the
host.

`github-pr-parsers.ts`, `github-pr-comment-parsers.ts` and
`github-pr-value-readers.ts` are gone; their suite is now the parity record for
the schemas that replaced them, with the four cases that refuse rather than
degrade marked as such. Twelve call-site casts are deleted, and three dead
"response was invalid" branches with them: the reader refuses those replies now,
so the error names its method.

The nine session files come off `unchecked-rpc-reader-inventory.ts` entirely
rather than being lowered. `git show --stat` on this commit touches nothing
under `mobile/rpc-foundation`.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): unit-pin every session reply schema's decision

Three kinds of case, one per kind of decision the schemas encode: a member a
consumer reads unguarded is required and its absence refuses, an arm set a
reader compares against degrades to the arm that reader handles most
conservatively, and a reply whose arms need different members is declared as
variants and each arm is read.

The last suite is the wire-compatibility claim: a member no reader knows passes
straight through, on the markdown document, the upload slot and the terminal
inventory alike, so a newer host is never refused for a field mobile does not
read.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): refresh the corpus for the session domain's checked readers

Repins `baseline` to the last commit touching a fenced path and re-records all
730 goldens, which is the disclosed behaviour change taken as an observation.

Decoded through the value pool against the pre-refactor tree on this branch:
688 header-only with `baseline` the only key that moved, 42 body-moved, 0 added,
0 deleted. The 42 are seven named scenarios and thirty-five matrix goldens, and
every moved checkpoint's own reply is malformed or refused. Three `normal`
partitions appear in the list and none of them reads a well-formed reply
differently: the review file-diff family's base scenario drives three legs and
its third is scripted `{ kind: 'unknown' }`, so that leg's checkpoint moves in
every variant, the varied leg included. The same append-only-history effect puts
`pr-read-upstream-error`'s `no-pr` checkpoint in the list for the malformed PR
recorded before it.

What the corpus now records, in one sentence: a property read on null, a V8
destructuring message shown to the user, and four hand-written "response was
invalid" strings are replaced by one message that names the method, and four
screens that published a malformed payload as ready state now show an error
instead.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): split the expanded check run out of the PR read schemas

`github-pr-read-reply-schema.ts` was 328 code lines against the 300-line cap.
The expanded check run and the annotations, jobs and steps listed under it are
one reply with no reader in common with the other six, so they move to
`github-pr-check-reply-schema.ts` whole. A move, not an edit: no schema changes
and no golden moves.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the branch's last fenced-path commit

The schema-module split touched `mobile/src`, so `--record` refuses on the pin
the previous refresh left behind. Repins to that commit and re-records. Decoded
against the previous corpus: 730 header-only with `baseline` the only key that
moved, 0 body-moved, 0 added, 0 deleted — the split is a move, and the corpus
says so.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): drop the worktree display-name cast's type import

The live-title read is typed by its schema now, so the cast it annotated is gone
and the import it needed with it. oxlint flags the leftover.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the branch tip

The unused-import removal touched a fenced path, so the pin moves with it.
Decoded against the previous corpus: 730 header-only on `baseline` alone,
0 body-moved, 0 added, 0 deleted.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* fix(mobile): contain a refused prChecks reply to the checks section

The checks read was the one phase-1 dependency that could take the whole PR
sidebar down. `loadPrSidebarData` routed `!checksOutcome.ok` through
`failureState`, so a host whose `github.prChecks` shape drifted cost the user
the title, body, comments, reviewers and merge controls — everything they
opened the sidebar for — over a section that renders a row of icons. Main
never noticed because its unchecked reader answered `[]` for the same reply;
this branch's reader refuses it, which is correct, and which is what makes the
containment necessary.

Contained the way phase 2 already is: a failed read keeps `kind: 'ready'`,
empties `checks`, and carries the message in a new `checksError` so the checks
section can say what happened. The sidebar can no longer reach `error` or
`blocked` on the checks read alone.

Also pins the enum departure this PR makes deliberately. The degrading arm
sets go through `salvagedOptional(name, z.enum(...))` rather than `openEnum`
because `openEnum` refuses a non-string where main mapped it to the
conservative arm; nothing held that, and all 2477 tests stayed green against
the swap. Six cases now hold both halves: a non-string degrades on the three
open sets, and an unknown arm drops the row on the closed ones.

Four deletions the reviewer found: a reaction-token alias with no importers,
the `errorType`/`fetchedAt` the branch-lookup reader fabricated to satisfy a
type whose only consumer reads neither, two bare schema aliases, and a
quick-commands pass-through with two callers.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the containment commit

`--record` refuses unless the product tree equals `baseline`, so the fix above
moves the pin. The corpus re-recorded in place against it: 730 goldens, every
one header-only on `baseline`, no observation moved.

No observation moved because no family reaches the code the fix changed. The
`github.pr-read` family calls the seven wrapper reads directly and records
their `{ ok, error }` outcomes; `loadPrSidebarData` sits a layer above that and
no scenario mounts it. The prChecks outcome is identical before and after —
what changed is what the sidebar does with it — so the unit suite is the only
oracle for the containment.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): record the PR sidebar's checks containment

The containment landed with no golden: no scenario mounted `loadPrSidebarData`,
so the row in the delta table rested on unit tests alone. `PrSidebarLoadDeps` is
five client-taking functions, so a new adapter drives phase 1 directly and
records the `PrSidebarState` it resolves to — no React host, and no edit to an
existing adapter, so no recorded golden moves.

Two scenarios: a normal load, and one whose checks leg answers a shape the
reader refuses. The matrix over the base then drives all eleven partitions at
`github.prChecks#1`, and every one of them records `ready` with a `checksError`
where main took the whole sidebar to `error`. `pr-sidebar-checks-failure-state`
is the mutant that routes the refusal back through `failureState`; it moves both
`pr-sidebar-checks-refused` and the prChecks matrix golden.

Also pins two closed-and-required enum decisions that were free to become
defaults — an unknown check-summary state drops the summary block, an unknown
reaction content drops the reaction — deletes four exported type aliases and
five enum constants with no reader outside their own file, makes
`PRChecksSection`'s `checksError` required so a second caller cannot silently
lose the message, and stops the header reading "No checks" when the checks were
unreadable rather than absent.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the pr-sidebar family commit

Six new goldens — two pilots and the four matrix sites the base scenario
scripts — and `baseline` on the 730 that already existed. No body moved and no
`adapterSha256`: the family is a new adapter module, so nothing recorded through
another one re-digests.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): re-record the corpus against the merged main

Repins `baseline` to the merge commit and re-records all 736 goldens in
place. Against `origin/main` the 705 shared goldens move only on
`baseline` (672 of them header-only), leaving the same 33 body moves and
the same partitions the branch carried before the merge, plus its 31
added goldens.

Every body also takes main's recorder shape from #21088: `sent` becomes
`ordinal` over one interleaved write counter, subscriptions record a
cleanup checkpoint, and a salvaging read now reports a `reply-salvage`
effect naming what it dropped.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* fix(mobile): keep an explicit null on the two tri-state PR flags

`autoMergeAllowed` and `mergeQueueRequired` carry three answers, not two:
`null` is GitHub saying auto-merge is not allowed, `undefined` is the host
not carrying the member at all. The readers coalesced the null away, so a
well-formed reply read differently from the parsers they replaced, which
preserved it explicitly. Both shared types already declare `boolean | null`.

No consumer separates the two today — `pull-request-auto-merge-availability`
compares with `=== true` and `!== false` — so this is parity, not a visible
fix, which is exactly why it needed a test.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the tri-state flag commit

All 736 goldens move on `baseline` alone: no scenario scripts an explicit
null on either flag, so preserving it changes no recorded screen.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): check the two session-write readers #21083 brought

Step 7 empties the session block of the unchecked-reader inventory, and
#21083 landed two readers into it after that: the New Tab create's member
read of `tab`, and the display-mode toggle's payload. Converting them is
what keeps the claim true — a session line reappearing would mean the
domain is not migrated.

`created-terminal-tab` requires `tab.id` and `tab.type === 'terminal'`,
because the strip keys the new tab on the id and spreads the rest into a
union whose arm `type` picks. `terminal`, `title` and `terminalTheme` stay
optional behind main's own guards, and unknown members pass through.
`terminal-display-mode-set` reads nothing, so it takes the same
`z.unknown()` the other five unread writes take.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin and re-record over #21083's corpus

All 736 goldens this branch already had move on `baseline` alone, and
#21083's 22 arrive beside them. One of the 22 moves against main's own
recording: `matrix-session.create-terminal-session.tabs.createterminal-1`,
where the New Tab create's five malformed partitions read
`Cannot read properties of undefined (reading 'tab')` and now read the
method's own message. Two of them also stop unsubscribing the terminal the
user was watching before the property read threw, so a create that never
happened no longer costs the live pane its subscription.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* docs(mobile): say what carries a refused create reply to the catch

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…tions (step 6, migration 2) (stablyai#21083)

* test(mobile): record the session startup, create and display-mode families

Three mount adapters and ten scenarios for the last raw-port sends in the
session route, recorded at the pinned main baseline before any product edit.

The three hooks were listed as blocked on a WebView-ref substitute. They are
not: none imports the terminal WebView, and all three send with no ref. The
display-mode toggle reads a `{cols, rows}` cell and a device-token cell; the
create path calls scope callbacks; the startup effect drives scope callbacks
only. Each stub is an effect sink, shapes no param and swallows no throw.

One scenario reaches both `worktree.activate` sites the way the product does:
the auto-create clears `created` off the route, the effect re-runs on the same
mount and takes the other branch, so the reply matrix drives both.

The create adapter mounts in its factory rather than as a scripted step. React
draws one `Math.random()` lazily the first time `enqueueTask` runs, and the
runner flushes through `await act` after every step, so a scripted mount would
make `clientMutationId` the second draw of the seeded sequence on the first
recording in a process and the first on every later one. The two determinism
runs caught it.

Recorded through the pinned-baseline worktree recipe, because main has moved
past `a28085adbf` in `src/shared` and this branch does not repin. 705 existing
goldens byte-identical, 15 added, 0 moved, 0 deleted.

Mutation census against the raw-port code, applied and reverted by hand, all
twelve killed: wrong method at each of the four sites; acceptance verdict
swapped at each of the four verdict-reading sites; dropped `unsubscribeTerminal`
on replace; the two activation branches swapped; a delayed `fetchTerminals` pass
dropped; the viewport pair not forwarded on `terminal.setDisplayMode`.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): send the last session-route raw-port calls as operations

Four references, three files, no behaviour change. Proven by replay: the
fifteen goldens recorded at the pin before this commit pass unchanged, so no
re-record.

- `use-mobile-session-startup.ts` both `worktree.activate` sends reuse
  host-screen's `worktreeActivate`. Its skip verdict was never read before;
  the startup effect is its first reader, and it reads exactly what main read
  off the envelope — whether an accepted reply says the host is headless.
- `use-mobile-session-terminal-create-actions.ts` `session.tabs.createTerminal`
  gets `sessionTabCreateTerminal`, a single-reader operation beside the other
  session-screen writes. `require-result-or-throw-message` replaces the
  `if (response.ok)` branch because the throw lands in the catch that already
  reported the host's message, character for character, including the empty
  message falling back to the screen's own copy. The reader stays the unguarded
  `.tab` read, because that policy rethrows a reader's exception rather than
  converting it, which is what keeps a null or absent result failing where it
  failed before.
- `use-mobile-session-terminal-stream-display.ts` `terminal.setDisplayMode` gets
  `terminalDisplayModeSet`, a skip whose verdict the caller does not read, the
  way `terminalBufferClear` already works: the server does the resize and
  reports it on the terminal's existing subscription, so main looked at nothing
  in the envelope and only a transport rejection was ever a failure.

The prompt `terminal.send` in the create path stays on the raw port. It is the
only `terminal.send` caller that falls back to its own copy when the host
refuses with an empty message, so no existing operation carries its acceptance
and a new one is a fourth method outside this migration's scope. It is recorded
either way.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): lower the raw-port inventory and refresh the session route pins

Pending raw-port inventory: two entries deleted and one lowered, 12 files / 21
references to 10 / 17. The startup and display-mode entries reach zero; the
create entry keeps the prompt `terminal.send` and states its own reason.

Three stale comments corrected. The startup, create and display-mode entries
claimed a WebView-ref or subscription wall that measurement did not find: none
of the three hooks imports the terminal WebView, the display-mode write is not
gated on an open subscription, and the create path's `subscribeToTerminal` is a
scope callback rather than a `client.subscribe`. The accounts screen's entry
said the runner is request-only, which stopped being true when `ScenarioStep`
gained `frame`; what actually blocks it is that no scenario has been written for
`accounts.subscribe`, so its entry now says that instead.

Unchecked-reader inventory: `mobile-session-write-operations.ts` 8 to 10 for the
two readers the migration added, named in the header the way stablyai#20954's three are.

Route parity: four pins refreshed with their reasons — the callback bodies for
the display-mode toggle, the effects for the startup activation pair, the nested
function bodies for the create, and the runtime strings, whose count falls 535 to
531 as four more method literals move to their operations' definitions. The
startup source pins now name `worktreeActivate` and still hold what they held:
the plain activation is fired rather than awaited, and it goes out before the tab
load.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* docs(mobile): say which part of the display-mode operation no golden holds

Post-refactor census survivor, measured rather than assumed: swapping
`terminalDisplayModeSet`'s acceptance for `require-result-or-throw-message`
moves none of the fifteen goldens. The call site reads no verdict and its own
`catch` swallows a throw either way, so no policy is observable there. The
method, the params and the viewport pair are what the goldens hold at that site.
The six other operation-level mutations all kill.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): record the empty cells the session guards are written for

Three session sends are gated on a cell every existing scenario filled: the
display-mode toggle carries `viewport` only once a surface has measured one and
`client` only once the phone holds a device token, and the startup sequence
swallows a refused tab load before loading terminals behind it. Every recording
declared those cells full, so the arm each guard exists for was never on the
wire and dropping the guard moved no golden.

The two device cells become scenario arguments rather than adapter constants, so
a scenario can declare them empty; the tab load may now be declared to reject,
which is the only way a refused scope callback is reachable at all. Declared, not
shaped: the stubs build no param and swallow no throw.

Three scenarios take the empty arm. The token and viewport ones send `auto`,
which is the direction both members ride, and the startup one records that the
terminal loads and the activation timer still run behind a refused tab load.

Recorded at the pinned baseline through the detached-pin worktree recipe, since
this branch may not repin. 705 goldens identical, 0 body moved, 3 added, 0
deleted; the 15 header-only moves are `adapterSha256` on the three edited
families and `scenarioSha256` on the four scenarios that now declare their token.

The create adapter's determinism comment now names the draw it works around:
React's lazy `("require" + Math.random())` in `enqueueTask`, the scheduler line
that seeds the sequence, and the mismatch a misplaced mount reports. stablyai#21088
retires the workaround.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): witness the three session guards the recordings had not pinned

Each mutation is the guard deleted: the display-mode send carries `client` with
an empty id, carries `viewport` before anything measured one, and the startup
sequence lets a refused tab load reject it so the terminal loads and activation
timer behind it never run. All three survived the whole suite before the
scenarios above; the witness asserts each is killed by its scenario and that
every other scenario of the same family still cannot see it.

A mutation that changes a param the scenario completes aborts at the transport's
params assertion instead of producing a divergent recording. That is the
scenario detecting it, so the witness reads that one message as a kill, narrowed
to it and taken only after the anchor is proved applied.

The README gains the class as its fifth bounding fact: a value an adapter holds
as a constant is a cell no scenario can empty, so the arm that reads it empty is
unreachable until the constant becomes an argument. Corpus counts refreshed to
what the suite measures.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): drop the terminal-create result type nothing reads

`TerminalCreateResult` wrapped the created tab for the old `sendRequest` reply
shape. The migrated call site reads the tab off the operation and names the tab
type directly, leaving the wrapper with zero readers repo-wide. Using it at the
cast site would have kept the cast and only renamed it, so it goes.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): let the create scenarios declare what the create puts on the wire

The terminal-create adapter decided four of the members its own goldens hold:
the worktree, the tab a new one is inserted after, and every launch option but
the prompt and its two toasts. A value an adapter supplies itself is a cell no
scenario can empty, so `afterTabId`'s omission arm — the arm a fresh session and
a last-tab close both take — was unreachable, and the quick-command members were
recorded only as absent. All of it now comes from the scenario, and the mount
moves to the first action so the arguments are in place before the hook reads
them. It stays out of a scripted mount step for the determinism reason above it.

Four scenarios follow the new arguments: a create with no active tab, a shell
quick command, an agent quick command, and a second tap while the host is still
answering the first. The refused scenario stops declaring an `errorToast` the
adapter dropped: forwarding the toast independently of the prompt is what the
product does, so that golden now records the failure toast it always showed.

Recorded at the branch's pin, so 705 goldens stay byte-identical to the merge
base; five headers move on adapter and scenario digests and one body moves, the
refused create's new toast effect.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): witness the three create guards the recordings had not pinned

Each of the three new create scenarios closes a mutation that survived all 853
tests before it: putting the active tab on the wire as `null` instead of
omitting it, swapping the `command` and `agentPrompt` members the host reads,
and dropping the in-flight guard so a second tap opens a terminal nobody asked
for. The witness asserts the hole and the closure together, as the others do.

The params-mismatch abort the witness reads as a kill now rests on an assertion
rather than on an argument: no scenario in the manifest completes a request
after its last checkpoint, so a send whose params stopped matching always
suppressed an observation a golden holds.

Known-open holes loses its prose count and becomes a list that names the site,
the mutant and why no scenario can see it. Two entries join it: the display-mode
acceptance, which no call site reads, and the startup timer's attached-terminal
guard, which needs an adapter that can attach a terminal mid-scenario.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): interpret the activation reply where it is reported

`reportActivationOutcome` took a verdict, which left the timer site hand-building
`{ accepted: false }` for the case where there is no reply to interpret at all.
Taking `RpcResponse | null` and interpreting inside puts the operation's own
policy at both sites and spells the absent reply as absence. Nothing is lost:
`worktreeActivate` reads an unchecked payload and admits every success, so its
`interpret` cannot throw on a reply either site can receive.

No golden moves; the effect digest is repinned.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): give the create family its mount step back

The create adapter mounted inside its first action so the create would run
ahead of the flush that made React pay its one lazy `Math.random()` draw.
stablyai#21088 pays that draw in the scheduler before it installs the seed, so the
position of the mount no longer decides which seeded value `clientMutationId`
reads, and the family goes back to the shape every other one uses: a declared
`mount` step carrying the cells the hook reads as it renders — the worktree,
the active tab, the device token — and a `create` step carrying the launch
options it passes.

The display-mode family keeps mounting from its `mount` action, which is that
same declared shape and never was the workaround.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): re-record the corpus at main's pin 9add08b

Recorded at main's baseline in a detached-pin worktree with this branch's
recorder, adapters and manifest. Main's own recorder on that pin reproduces
main's 705 goldens byte-for-byte first, and this run reproduces the same 705
beside the 22 this branch adds, so the corpus is main's plus this family.

Every body moved against the branch's previous recording: main replaced the
`sent` request count with the shared write ordinal, which stamps every sender
call, payload and effect. Six goldens moved headers only, all of them
scenarios that send nothing and write nothing, so they had no entry to stamp.

Counts follow the corpus: 727 goldens, 888 tests. The corpus still carries no
`reply-salvage` effect — the 22 added goldens contribute no checked read at
all, since this family's readers are the unchecked ones the inventory lists.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…7) (stablyai#21089)

* test(mobile): record main's session reply behaviour at every unrecorded read site

Step 7 for the session domain changes how 51 RPC readers read a *malformed*
reply. Eleven of the session read sites had no recording family, so main's
answer to a malformed reply at those sites was undocumented and the reader
change would have had nothing to move. This commit is the before picture, taken
from main's own tree with no product edit in it.

Ten new families, twelve scenarios, twenty-five goldens:

- `session.review-file-diff` / `session.review-branch-diff` — `git.diff` and
  `git.branchDiff` read through the review projection, which the Changes
  screen's verbatim readers do not cover.
- `session.review-git-mutations` — the single-file `git.stage` / `git.discard`
  and the bulk stage sweep's second `git.stage`.
- `session.review-send-sheet` — `session.tabs.list` read for the agent
  terminals the send sheet lists, the third reader on that method. Needs an
  `open-send-sheet` action on the review-action adapter, which re-digests that
  family's eight goldens on `adapterSha256` and nothing else.
- `session.browser-tab-create` — `browser.tabCreate`.
- `agentSession.structured-create` — `agentSession.create`, whose family base
  only ever covered the support probe.
- `session.tab-rename` / `session.tab-close-session` — `terminal.rename` and
  `session.tabs.close`.
- `settings.new-tab-local-agents` — `preflight.detectAgents`, the arm the
  new-tab loader takes for a workspace with no connection.

`baseline` is repinned to main's tip because two commits (stablyai#20659, stablyai#21004)
touched a fenced path after the pilot's pin, so `--record` refuses on main's own
tree until it moves. The repin is what rewrites `baseline` on all 705 existing
goldens; nothing else about them moves.

Decoded against origin/main through the value pool: 705 header-only (`baseline`
on every one, `adapterSha256` on the eight review-action goldens), 0 body-moved,
25 added, 0 deleted.

Not covered, with the reason: the chunked clipboard upload's
`appendImageUploadChunk`, `commitImageUpload` and `abortImageUpload` cannot be
matrixed, because `replyMatrixSites` takes every completion in the base scenario
and the chain's later params carry the `uploadId` the start reply named. Driving
`clipboard.startImageUpload#1` therefore makes main send an append whose params
no scripted step matches, and the recorder raises `Request params mismatch:
clipboard.appendImageUploadChunk#1` instead of recording. The two families were
written, probed and removed.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): checked reply readers for the session domain (step 7)

Fifty-one unchecked reply readers across nine files become checked zod readers,
so a malformed host reply surfaces as one readable error at the operation
boundary instead of a downstream `TypeError`, a rendered `undefined`, or a
screen left ready over garbage. Deliberately a behaviour change on malformed
replies only.

Eight schema modules, one per reply family, each recording the consumer line
behind every requirement and the host handler that publishes it:

- `clipboard-image-reply-schema.ts` — the upload slot's `uploadId`, the commit
  and single-frame path strings, and the two legs whose body nothing reads.
- `github-pr-mutation-reply-schema.ts` — the `{ ok, error }` status envelope as
  two variants, and the bare-boolean confirmation.
- `github-pr-entity-reply-schema.ts` / `github-pr-read-reply-schema.ts` — the
  seven PR sidebar reads. Every identity requirement the hand parsers had is
  kept, so a payload that degraded to null still degrades to null; what changes
  is a payload that is not the declared container at all.
- `diff-review-reply-schema.ts` — the normalized branch compare, the review
  notes on the worktree record, the three file-diff arms, and the file-level git
  mutations.
- `review-terminal-reply-schema.ts`, `session-launch-reply-schema.ts`,
  `session-read-reply-schema.ts`, `session-write-reply-schema.ts` — the review
  send sheet, the launch paths, the session screen's reads and its writes.

Requirements are exactly the members a consumer reads unguarded, everything else
is a salvaged optional with main's own default applied in the transform, and no
schema is `.strict()`: a member a newer host adds passes through untouched.
Enum arm sets that a reader compares against pass through or degrade to the arm
the reader handles most conservatively; the two closed sets — the committed
change status and the diff kind — are closed because main *dropped* an arm it
did not know rather than passing it through, and degrading them would draw a row
or render a diff main never did. No member is coerced on the way back to the
host.

`github-pr-parsers.ts`, `github-pr-comment-parsers.ts` and
`github-pr-value-readers.ts` are gone; their suite is now the parity record for
the schemas that replaced them, with the four cases that refuse rather than
degrade marked as such. Twelve call-site casts are deleted, and three dead
"response was invalid" branches with them: the reader refuses those replies now,
so the error names its method.

The nine session files come off `unchecked-rpc-reader-inventory.ts` entirely
rather than being lowered. `git show --stat` on this commit touches nothing
under `mobile/rpc-foundation`.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): unit-pin every session reply schema's decision

Three kinds of case, one per kind of decision the schemas encode: a member a
consumer reads unguarded is required and its absence refuses, an arm set a
reader compares against degrades to the arm that reader handles most
conservatively, and a reply whose arms need different members is declared as
variants and each arm is read.

The last suite is the wire-compatibility claim: a member no reader knows passes
straight through, on the markdown document, the upload slot and the terminal
inventory alike, so a newer host is never refused for a field mobile does not
read.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): refresh the corpus for the session domain's checked readers

Repins `baseline` to the last commit touching a fenced path and re-records all
730 goldens, which is the disclosed behaviour change taken as an observation.

Decoded through the value pool against the pre-refactor tree on this branch:
688 header-only with `baseline` the only key that moved, 42 body-moved, 0 added,
0 deleted. The 42 are seven named scenarios and thirty-five matrix goldens, and
every moved checkpoint's own reply is malformed or refused. Three `normal`
partitions appear in the list and none of them reads a well-formed reply
differently: the review file-diff family's base scenario drives three legs and
its third is scripted `{ kind: 'unknown' }`, so that leg's checkpoint moves in
every variant, the varied leg included. The same append-only-history effect puts
`pr-read-upstream-error`'s `no-pr` checkpoint in the list for the malformed PR
recorded before it.

What the corpus now records, in one sentence: a property read on null, a V8
destructuring message shown to the user, and four hand-written "response was
invalid" strings are replaced by one message that names the method, and four
screens that published a malformed payload as ready state now show an error
instead.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): split the expanded check run out of the PR read schemas

`github-pr-read-reply-schema.ts` was 328 code lines against the 300-line cap.
The expanded check run and the annotations, jobs and steps listed under it are
one reply with no reader in common with the other six, so they move to
`github-pr-check-reply-schema.ts` whole. A move, not an edit: no schema changes
and no golden moves.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the branch's last fenced-path commit

The schema-module split touched `mobile/src`, so `--record` refuses on the pin
the previous refresh left behind. Repins to that commit and re-records. Decoded
against the previous corpus: 730 header-only with `baseline` the only key that
moved, 0 body-moved, 0 added, 0 deleted — the split is a move, and the corpus
says so.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): drop the worktree display-name cast's type import

The live-title read is typed by its schema now, so the cast it annotated is gone
and the import it needed with it. oxlint flags the leftover.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the branch tip

The unused-import removal touched a fenced path, so the pin moves with it.
Decoded against the previous corpus: 730 header-only on `baseline` alone,
0 body-moved, 0 added, 0 deleted.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* fix(mobile): contain a refused prChecks reply to the checks section

The checks read was the one phase-1 dependency that could take the whole PR
sidebar down. `loadPrSidebarData` routed `!checksOutcome.ok` through
`failureState`, so a host whose `github.prChecks` shape drifted cost the user
the title, body, comments, reviewers and merge controls — everything they
opened the sidebar for — over a section that renders a row of icons. Main
never noticed because its unchecked reader answered `[]` for the same reply;
this branch's reader refuses it, which is correct, and which is what makes the
containment necessary.

Contained the way phase 2 already is: a failed read keeps `kind: 'ready'`,
empties `checks`, and carries the message in a new `checksError` so the checks
section can say what happened. The sidebar can no longer reach `error` or
`blocked` on the checks read alone.

Also pins the enum departure this PR makes deliberately. The degrading arm
sets go through `salvagedOptional(name, z.enum(...))` rather than `openEnum`
because `openEnum` refuses a non-string where main mapped it to the
conservative arm; nothing held that, and all 2477 tests stayed green against
the swap. Six cases now hold both halves: a non-string degrades on the three
open sets, and an unknown arm drops the row on the closed ones.

Four deletions the reviewer found: a reaction-token alias with no importers,
the `errorType`/`fetchedAt` the branch-lookup reader fabricated to satisfy a
type whose only consumer reads neither, two bare schema aliases, and a
quick-commands pass-through with two callers.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the containment commit

`--record` refuses unless the product tree equals `baseline`, so the fix above
moves the pin. The corpus re-recorded in place against it: 730 goldens, every
one header-only on `baseline`, no observation moved.

No observation moved because no family reaches the code the fix changed. The
`github.pr-read` family calls the seven wrapper reads directly and records
their `{ ok, error }` outcomes; `loadPrSidebarData` sits a layer above that and
no scenario mounts it. The prChecks outcome is identical before and after —
what changed is what the sidebar does with it — so the unit suite is the only
oracle for the containment.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): record the PR sidebar's checks containment

The containment landed with no golden: no scenario mounted `loadPrSidebarData`,
so the row in the delta table rested on unit tests alone. `PrSidebarLoadDeps` is
five client-taking functions, so a new adapter drives phase 1 directly and
records the `PrSidebarState` it resolves to — no React host, and no edit to an
existing adapter, so no recorded golden moves.

Two scenarios: a normal load, and one whose checks leg answers a shape the
reader refuses. The matrix over the base then drives all eleven partitions at
`github.prChecks#1`, and every one of them records `ready` with a `checksError`
where main took the whole sidebar to `error`. `pr-sidebar-checks-failure-state`
is the mutant that routes the refusal back through `failureState`; it moves both
`pr-sidebar-checks-refused` and the prChecks matrix golden.

Also pins two closed-and-required enum decisions that were free to become
defaults — an unknown check-summary state drops the summary block, an unknown
reaction content drops the reaction — deletes four exported type aliases and
five enum constants with no reader outside their own file, makes
`PRChecksSection`'s `checksError` required so a second caller cannot silently
lose the message, and stops the header reading "No checks" when the checks were
unreadable rather than absent.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the pr-sidebar family commit

Six new goldens — two pilots and the four matrix sites the base scenario
scripts — and `baseline` on the 730 that already existed. No body moved and no
`adapterSha256`: the family is a new adapter module, so nothing recorded through
another one re-digests.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): re-record the corpus against the merged main

Repins `baseline` to the merge commit and re-records all 736 goldens in
place. Against `origin/main` the 705 shared goldens move only on
`baseline` (672 of them header-only), leaving the same 33 body moves and
the same partitions the branch carried before the merge, plus its 31
added goldens.

Every body also takes main's recorder shape from stablyai#21088: `sent` becomes
`ordinal` over one interleaved write counter, subscriptions record a
cleanup checkpoint, and a salvaging read now reports a `reply-salvage`
effect naming what it dropped.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* fix(mobile): keep an explicit null on the two tri-state PR flags

`autoMergeAllowed` and `mergeQueueRequired` carry three answers, not two:
`null` is GitHub saying auto-merge is not allowed, `undefined` is the host
not carrying the member at all. The readers coalesced the null away, so a
well-formed reply read differently from the parsers they replaced, which
preserved it explicitly. Both shared types already declare `boolean | null`.

No consumer separates the two today — `pull-request-auto-merge-availability`
compares with `=== true` and `!== false` — so this is parity, not a visible
fix, which is exactly why it needed a test.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin the corpus to the tri-state flag commit

All 736 goldens move on `baseline` alone: no scenario scripts an explicit
null on either flag, so preserving it changes no recorded screen.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* refactor(mobile): check the two session-write readers stablyai#21083 brought

Step 7 empties the session block of the unchecked-reader inventory, and
stablyai#21083 landed two readers into it after that: the New Tab create's member
read of `tab`, and the display-mode toggle's payload. Converting them is
what keeps the claim true — a session line reappearing would mean the
domain is not migrated.

`created-terminal-tab` requires `tab.id` and `tab.type === 'terminal'`,
because the strip keys the new tab on the id and spreads the rest into a
union whose arm `type` picks. `terminal`, `title` and `terminalTheme` stay
optional behind main's own guards, and unknown members pass through.
`terminal-display-mode-set` reads nothing, so it takes the same
`z.unknown()` the other five unread writes take.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(mobile): repin and re-record over stablyai#21083's corpus

All 736 goldens this branch already had move on `baseline` alone, and
stablyai#21083's 22 arrive beside them. One of the 22 moves against main's own
recording: `matrix-session.create-terminal-session.tabs.createterminal-1`,
where the New Tab create's five malformed partitions read
`Cannot read properties of undefined (reading 'tab')` and now read the
method's own message. Two of them also stop unsubscribing the terminal the
user was watching before the property read threw, so a create that never
happened no longer costs the live pane its subscription.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* docs(mobile): say what carries a refused create reply to the catch

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant