Commit Graph
433 Commits
Author SHA1 Message Date
Jinwoo-H bb9463eee5 Merge remote-tracking branch 'origin/main' into mobile-rearch
# Conflicts:
#	src/main/runtime/rpc/methods/native-chat.ts
2026-09-07 17:01:06 -04:00
Jinwoo-H 65829b8b09 Merge branch 'ota-w-csp' of /tmp/orca-fix/csp into ota-wave-integrate 2026-09-07 16:39:34 -04:00
Jinwoo-H 1bb84fe281 Merge branch 'ota-w-files' of /tmp/orca-fix/files into ota-wave-integrate
# Conflicts:
#	docs/reference/mobile-hybrid-webview-architecture.md
#	mobile/src/mobile-web/mobile-web-capability-authorities.ts
#	mobile/src/mobile-web/mobile-web-capability-broker.ts
#	mobile/src/mobile-web/mobile-web-capability-dispatch-census.test.ts
#	mobile/src/mobile-web/mobile-web-capability-execution-dependencies.ts
#	mobile/src/mobile-web/mobile-web-mutation-authorization-race.test.ts
#	mobile/src/mobile-web/mobile-web-mutation-reauthorization-census.test.ts
#	mobile/src/mobile-web/mobile-web-production-grants.ts
#	mobile/src/mobile-web/mobile-web-terminal-artifact-authority.test.ts
#	mobile/src/mobile-web/mobile-web-workspace-capability.ts
#	src/main/runtime/rpc/methods/mobile-web-host-rpc-allowlist.ts
#	src/mobile-web/src/mobile-web-markdown-request-client.test.ts
#	src/shared/mobile-web/bridge-operation-echo-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry.ts
2026-09-07 16:32:14 -04:00
Jinwoo-H 3578831932 Merge branch 'ota-w-workspace' of /tmp/orca-fix/workspace into ota-wave-integrate
# Conflicts:
#	docs/reference/mobile-hybrid-webview-architecture.md
#	mobile/src/mobile-web/mobile-web-browser-operations.test.ts
#	mobile/src/mobile-web/mobile-web-browser-streams.test.ts
#	mobile/src/mobile-web/mobile-web-capability-broker.ts
#	mobile/src/mobile-web/mobile-web-capability-dispatch-census.test.ts
#	mobile/src/mobile-web/mobile-web-capability-execution-arms.ts
#	mobile/src/mobile-web/mobile-web-capability-execution-dependencies.ts
#	mobile/src/mobile-web/mobile-web-capability-subscriptions.ts
#	mobile/src/mobile-web/mobile-web-cross-workspace-mutation-race.test.ts
#	mobile/src/mobile-web/mobile-web-mutation-reauthorization-census.test.ts
#	mobile/src/mobile-web/mobile-web-production-grants.ts
#	mobile/src/mobile-web/mobile-web-shell-response-schema-corpus.test.ts
#	mobile/src/mobile-web/mobile-web-subscription-closure-frames.test.ts
#	mobile/src/mobile-web/mobile-web-subscription-error-code.test.ts
#	mobile/src/tasks/web-host-task-preference-operations.test.ts
#	mobile/src/tasks/web-host-task-preference-operations.ts
#	src/mobile-web/src/mobile-web-bridge-subscription-setup.ts
#	src/mobile-web/src/mobile-web-operation-response-correlation.test.ts
#	src/shared/mobile-web/bridge-operation-echo-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry-census.test.ts
2026-09-07 16:31:14 -04:00
Jinwoo-H 17f8081b77 Merge branch 'ota-w-task' of /tmp/orca-fix/task into ota-wave-integrate
# Conflicts:
#	docs/reference/mobile-hybrid-webview-architecture.md
#	mobile/src/mobile-web/mobile-web-capability-dispatch-census.test.ts
#	mobile/src/mobile-web/mobile-web-mutation-reauthorization-census.test.ts
#	mobile/src/mobile-web/mobile-web-shell-response-schema-corpus.test.ts
#	mobile/src/mobile-web/mobile-web-task-read-roundtrip.test.ts
#	src/main/runtime/rpc/methods/index.ts
#	src/shared/mobile-web/bridge-operation-echo-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry.ts
#	src/shared/mobile-web/shell-payload-tolerance-census.test.ts
2026-09-07 16:25:25 -04:00
Jinwoo-H 6d0827d31e Merge branch 'ota-w-browser' of /tmp/orca-fix/browser into ota-wave-integrate
# Conflicts:
#	docs/reference/mobile-hybrid-webview-architecture.md
#	mobile/src/mobile-web/mobile-web-capability-broker.ts
#	mobile/src/mobile-web/mobile-web-capability-dispatch-census.test.ts
#	mobile/src/mobile-web/mobile-web-capability-execution-dependencies.ts
#	mobile/src/mobile-web/mobile-web-mutation-reauthorization-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry.ts
2026-09-07 16:24:53 -04:00
Jinwoo-H c77338c8c3 Merge branch 'ota-w-review' of /tmp/orca-fix/review into ota-wave-integrate
# Conflicts:
#	docs/reference/mobile-hybrid-webview-architecture.md
#	mobile/src/mobile-web/mobile-web-capability-dispatch-census.test.ts
#	mobile/src/mobile-web/mobile-web-capability-execution-arms.ts
#	mobile/src/mobile-web/mobile-web-cross-workspace-mutation-race.test.ts
#	mobile/src/mobile-web/mobile-web-mutation-reauthorization-census.test.ts
#	mobile/src/mobile-web/mobile-web-provider-review-creation.ts
#	mobile/src/mobile-web/mobile-web-provider-review-state.ts
#	src/main/runtime/rpc/methods/index.ts
#	src/main/runtime/rpc/methods/mobile-web-host-rpc-allowlist.ts
#	src/shared/mobile-web/bridge-operation-echo-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry-census.test.ts
2026-09-07 16:24:13 -04:00
Jinwoo-H 3577dc2e15 Merge branch 'ota-w-git' of /tmp/orca-fix/git into ota-wave-integrate
# Conflicts:
#	mobile/src/mobile-web/hosted-ios-source-control-review-journey.test.ts
#	src/mobile-web/src/mobile-web-source-control-sync-request-client.test.ts
#	src/shared/mobile-web/bridge-operation-echo-census.test.ts
#	src/shared/mobile-web/bridge-operation-registry-census.test.ts
2026-09-07 16:23:01 -04:00
Jinwoo-H 11fa93854a refactor(mobile): delete the desktop handle ledgers for artifacts and history
A terminal artifact is now addressed by the tab plus the terminal text that
named it. The desktop re-resolves the path and re-earns the file grant on every
chunk, so a retired terminal cannot keep serving bytes and there is no token,
TTL or record cap to keep. `artifactRelease` has nothing left to release.

An agent session is addressed by the agent and provider session id the scan
already reports, and paging is a caller-supplied offset. The vault's own row id
embeds the transcript path, so the projection publishes the provider id instead
of the composite. The resume mutation key is derived from the session, and the
host's existing create-result TTL owns its lifetime.

The agent-history host calls now go through the typed runtime functions the
sibling RPC handlers call, with no dispatch by method name and no re-parsing.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 16:21:50 -04:00
Jinwoo-H 6baa0f7557 docs(mobile): record how frame scripts leave the native CSP
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 16:18:48 -04:00
Jinwoo-H 7f41268f05 Merge branch 'ota-w-native-store' of /tmp/orca-fix/native-store into ota-wave-integrate
# Conflicts:
#	mobile/app/hybrid.tsx
#	mobile/src/mobile-web/hosted-android-mobile-web-cache.test.ts
#	mobile/src/mobile-web/hosted-ios-build-activation.test.ts
#	mobile/src/mobile-web/hosted-ios-mobile-web-cache.test.ts
#	mobile/src/mobile-web/hosted-webview-cdp-session.test.ts
2026-09-07 16:12:50 -04:00
Jinwoo-H ee2edcfbb8 Merge branch 'ota-w-testprune' of /tmp/orca-fix/testprune into ota-wave-integrate
# Conflicts:
#	mobile/src/mobile-web/mobile-web-shell-response-schema-corpus.test.ts
2026-09-07 16:12:03 -04:00
Jinwoo-H e9e168c364 docs(mobile): record the page-side host sender and the declared deadline
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 16:09:28 -04:00
Jinwoo-H d7d67b1e7f refactor(mobile): drive the package shell from one reducer and drop rollback
The download now buffers each asset in memory, verifies it, and hands the store
one complete file, so the chunk protocol and its per-chunk hashes go with the
stage ids. The session/recovery/refresh/capability hook chain collapses into one
reducer-driven hook with no prop-drilled refs, and A/B rollback goes with it:
there is no earlier generation to promote, so a page that cannot load makes the
shell delete that host's cache and download again, once per host selection.

That retires the health deadline, the process-failure tracker, the cached-build
probe, rejected build ids, and the whole recovery toolbar.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 16:02:29 -04:00
Jinwoo-H 0cfed794a8 refactor(mobile): move agent history reads and resume to the desktop
Session handles and page cursors are now desktop state keyed by connection, so
the page never sees a cwd, a transcript path or a provider session id. The pure
resume target, launch plan, scope-path and session-worktree modules move to
src/shared so the desktop and the released native app run one implementation.

A cross-workspace resume no longer navigates: the page can only route to a
workspace it already holds a shell-minted handle for, so the desktop reports
whether the resume landed in the current workspace instead of naming another.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:51:29 -04:00
Jinwoo-H 6a44e5129c docs(mobile): record Source Control on the generic host lane
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:39:21 -04:00
Jinwoo-H ec05bd0545 refactor(mobile-web): parse shell payloads with the plain contract schema
The tolerant rewrite existed to absorb skew between a shell and a page that
ship separately, but the protocol version is the compat gate and hybrid has no
released users. Deleting it means the host must emit exactly what the page
declares, so the mobile-web transcript read reshapes blocks to the contract
instead of relying on the page to strip host-only detail. Two gaps the rewrite
was hiding are now closed in the contract: the pending-snapshot flag the shared
chat view consumes, and the block fields the page never named.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:29:49 -04:00
Jinwoo-H d440e03eec docs(mobile): record Hosted Tasks on the generic host lane
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:27:18 -04:00
Jinwoo-H fb69f030af docs(mobile): record what the workspace translator still owns
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:25:31 -04:00
Jinwoo-H e568c6acf4 docs(mobile): record the desktop-owned provider review lane
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:20:12 -04:00
Jinwoo-H 490c08669e docs(mobile): record the desktop-owned browser lane
Also ends the stream on a frame the page contract cannot describe, which is what
an error event means on this lane.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 15:09:24 -04:00
Jinwoo-H 05ed3770f8 docs(mobile): drop the deleted CDP-session spec from the DevTools gate
A vitest path that no longer exists is a filter, not an error, so the gate
would have kept reporting green over half a run.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 14:47:20 -04:00
Jinwoo-H b68f2246e9 Merge ota-p1-routes into ota-p1-integrate
Resolve the catalog rename against the readability deletion: drop the old
host-catalog module and remove the readability entry from the allowlist.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 14:37:11 -04:00
Jinjing 9fed61e5c2 Persist agents sidebar search visibility as pairing-local preference (#19313)
* Persist agents sidebar search field visibility as pairing-local preferen

- Add `agentsShowSearch` to workspace UI state with default on
- Include in pairing-local fields so preference syncs across clients
- Convert search from menu action to checkbox menu item for explicit toggle
- Update activity thread options menu to reflect checkbox state
- Add localization strings across all supported languages
- Update RPC schemas and preference persistence layer
- Includes readiness validation reports confirming feature is clean

* rm review

* fix documentation
2026-09-07 11:27:40 -07:00
Jinwoo-H a04c0ae995 refactor(mobile): delete the host catalog and shell feature negotiation
The page reached a desktop method by first reading `mobileWeb.host.catalog` for
a grant, then forwarding through it. Every grant field duplicated something the
desktop already enforced: the allowlist is the mobile-scope socket gate, the
byte budgets are the bridge envelope, `workspaceParam` was `worktree` in every
entry, and `scope` was "did the page send a workspaceId".

The shell now forwards `workspace.hostRequest` and `workspace.hostSubscribe`
straight through. It rewrites the opaque workspace handle when the payload
carries one, checks one envelope in both directions, and derives a stream's
desktop cancel name from its subscribe name: `X.watch` to `X.unwatch` and
`X.subscribe` to `X.unsubscribe`. Unary versus stream is decided by which shell
operation the page called. `files.unwatch` and `nativeChat.unsubscribe` keep
their names for the released native app and gain `mobileWeb.`-prefixed aliases
sharing the same handler.

Shell feature negotiation goes with it: `init.shellFeatures` had no consumer
beyond its own tests, so the protocol version is the bridge's only compat gate.
That constant and the package bridge range move into `bridge-limits.ts`, and
`bridge-protocol-version.ts`, `bridge-release-policy.ts` and
`shell-feature-contract.ts` are deleted.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 14:26:39 -04:00
Jinwoo-H 906f7491a5 refactor(mobile): retarget page diagnostics in-page and delete the native route handoff
The hosted page owned two shell destinations. `terminalSettings` was already
dead: the page's own device operations push `/terminal-settings`, which
`host-web-app/` serves. `connectionLog` was the last live one, and the hosted
`/connection-log` route renders the same `ConnectionDiagnosticsScreen` over the
same bridge-backed native diagnostics operations, so the host screen's
diagnostics link now navigates in place instead of tearing down the session
view to reach the shell copy.

With no destinations left, `MobileWebNativeRouteHandoff` and everything that
carried a request id to it go: the route enum members, the handoff record and
replay, the broker-message wrapper that existed only to complete it, and the
page-document and navigation-authority plumbing. `handleMobileWebBrokerMessage`
collapsed to a single broker `handle` call, so the shell calls that directly.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 14:21:08 -04:00
Jinwoo Hong 33af0af4ea fix(relay): stop rejecting the near region on a cold first probe (#19233)
* fix(relay): stop rejecting the near region on a cold first probe

The region probe counted the process's first /health request, which pays TCP
and TLS setup, as a latency sample. The resulting spread rejected the near
region on essentially every cold run, leaving the far region as the sole
survivor and pinning US desktops to Asia cells for 24 hours.

Discard a warm-up probe per origin, compare regions by minimum latency, and
keep the spread check only for a genuinely flapping path. A region now wins
only against a measured competitor; a rejected or unmeasurable peer sends no
hint, which is remembered for an hour so a reconnect does not re-probe. An
origin that fails its warm-up is dropped before the sampling rounds, so an
unreachable region costs one probe timeout instead of four.

After a control socket registers, probe the cell we landed on once per
process, and delete the cache only when it names a region other than the best
measured one and that cell is more than 3x slower -- a far cell under a
correct cache is the director declining the hint, and re-measuring would
return the same answer.

* test(relay): audit the region probe's global fetch call site
2026-09-07 13:11:04 -04:00
Jinwoo-H 89d733a9ca Merge remote-tracking branch 'origin/main' into mobile-rearch
# Conflicts:
#	config/reliability-gates.jsonc
#	src/main/git/command-runner/gh-exec-file.ts
2026-09-07 05:13:00 -04:00
Jinwoo-H 89b365ca16 docs(mobile): record the long-lived shell decisions and update the architecture note
Replaces the removed implementation worklog with a decision record that a
reader on main can act on, and corrects the architecture note now that the
page addresses host tabs by host ids and the catalog is cached per connection.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 05:08:12 -04:00
Jinwoo-H 24bc25e685 docs: retire the mobile shell worklog and drop machine-local evidence paths
The long-lived shell note was an agent worklog, not a decision record. The
simplification audit cited /tmp run directories that no reader can open, and
opened with a validation hold that duplicated what the validation section says.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 04:40:30 -04:00
Jinwoo-H 15d19c308b feat(mobile): move mobile sessions and settings into the hosted page
Session snapshot/feed/activate/close/createBrowser/createTerminal,
quick commands and agent options now run as Desktop mobileWeb.* adapters
behind the generic host-request forwarder instead of shell translators.
Voice, notification, terminal, browser, chat, About and diagnostics
settings render as hosted page routes with native-*/web-* operation
backends. Adds the hosted WebView e2e journeys used to validate them.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-07 04:16:39 -04:00
Neil 314506003a fix: retain MSYS shell descendants in their terminal job (#19068)
* fix: retain MSYS shell descendants in their terminal job

* test: complete MSYS regression CI registration and teardown contract

* fix(windows): deny job breakaway for the whole Cygwin/MSYS shell family

The per-PTY job probed only msys-2.0.dll, and only for bash.exe/sh.exe.
Cygwin ships the same spawn.cc breakaway logic under cygwin1.dll, and an
MSYS2 zsh escapes exactly like its bash does, so both kept the orphan bug.

Probe the runtime DLL on the shell's own search path instead of matching
shell names: that is the property that decides whether the runtime will
ask for CREATE_BREAKAWAY_FROM_JOB, and it drops the name special-casing.

* chore(patch): restore the conpty.cc index line

The earlier hand-edit dropped it while every sibling section kept one.
Recomputed against the real blobs: applying this patch to 7b286d3d
yields exactly 4b06d185, so git apply -3 has its fallback back.
2026-09-07 00:35:55 -07:00
Jinwoo Hong d53cbed43f revert: hold mobile push feature for user testing (#19203)
Reverts 3160b54c69. Restore through a separate draft PR after user validation.
2026-09-07 00:30:21 -04:00
Jinwoo-H 83f35c079b refactor(mobile): remove unshipped hybrid compatibility paths
Require the first-release hybrid baseline and remove 23 superseded shell operations, fallback adapters, and optional settings paths while preserving native RPC compatibility. Keep large Files, Source Control, and native-chat responses bounded in Desktop adapters, and serialize Terminal preference reads within bridge admission limits. Validate all code gates, rebuild and export, and pass serial iOS and Android adversarial journeys; record remaining domain work and certification gaps.
2026-09-06 23:45:53 -04:00
Jinwoo Hong 3160b54c69 feat: real background push notifications for the mobile app (#8129) (#18554)
* feat(cloud): add the mobile push gateway and its contract package (#8129)

A small open-source service that holds the APNs key and FCM credentials and
sends background push to paired phones on the desktop's behalf. Hosts
authenticate with a box challenge and HMAC proof on their pairing key, the
same shape the relay uses, so signed-in and accountless desktops share one
path. Tokens are stored; alert text is held only for the coalescing window.

The contract doc in docs/reference is the source of truth for every wire
shape. The interop test runs the real desktop answerer against a real
gateway-issued challenge so transcript drift fails in CI.

* feat(push): register phones and send background push from the desktop (#8129)

Adds the notifications.remote-push.v1 capability, the registerPush and
unregisterPush RPCs on the mobile allowlist, a gateway client with a cached
session and 401 re-auth, a durable unregister outbox, and a dispatcher that
offers every mobile notification to the gateway after the socket fan-out.
The dispatcher is fire-and-forget with one retry and drops registrations the
gateway reports dead.

Puts agentState on the mobile frame and fixes the #4375 wording so a working
agent is never announced as finished. The relay host-proof code moves onto a
shared envelope module with no behaviour change.

* feat(mobile): background push registration, receive, and settings (#8129)

Fetches the native APNs or FCM token, registers it with every paired host
that advertises the capability, and re-registers on token change. Foreground
pushes are suppressed inside handleNotification against the same seen set
the socket path uses, so nothing shows twice. Taps route by host fingerprint.
One Background notifications switch, off by default, with the disclaimer and
needs-input / finished sub-switches; hidden until a paired desktop is new
enough. Adds google-services.json and the expo-notifications plugin.

* chore(cloud): Terraform and deploy workflow for the push gateway (#8129)

Declares the Cloud Run service, runtime account, secrets, and orca_push
database behind push_gateway_enabled, true only in production. The deploy
workflow is gated like the relay's, deploys with no traffic, probes /ready
and a validate-only FCM send, then shifts traffic. It runs as the shared
production deploy account because the Cloud SQL rollout lease grant is
foundation-owned; its extra authority is three bindings on the push service.
docs/push-gateway.md carries the import commands for the resources created
by hand and the APNs key rotation procedure.

* docs: describe background notifications on the phone (#8129)

* docs: check in the mobile push contract (#8129)

Seven committed files cite it as the source of truth for every wire shape;
docs/reference is allowlisted per file, so add the entry.

* test(push): replay one checked-in host-proof vector on both sides (#8129)

Cloud Verify installs only the cloud workspace, so the gateway suite cannot
import the desktop answerer. Replace the cross-workspace import with a fixed
challenge vector generated from the contract package; the gateway fixture and
the desktop answerer each replay it and must produce the same HMAC. A
transcript drift on either side now fails in that side's own suite.

* fix(cloud): open the push gateway with invoker_iam_disabled, not an allUsers binding (#8129)

The production domain-restricted-sharing policy rejects an allUsers
run.invoker member, which the runbook anticipated. Opt the service out of
invoker IAM the way the relay director already does; the host proof is the
authentication either way.

* docs(cloud): the push.onorca.dev record exists and is hand-managed (#8129)

* fix(push): close review findings in the gateway (#8129)

- Quota reservation takes a per-host advisory lock; READ COMMITTED admitted
  a whole burst past the cap (80/80 without, 60/80 with, against Postgres 16).
- Challenge issuance no longer writes push_hosts; the row lands on proof
  verification. Stale hosts prune after 30 days. Per-IP token bucket on the
  two unauthenticated routes.
- Streaming body limit via hono bodyLimit; a chunked body bypassed the
  Content-Length check.
- registrationIds deduped in the schema; per-host device cap of 64; list
  bounded to its schema.
- Gateway-side challenge TTL is the specified 10 s, not 40 s.
- APNs stream settles on close as well as end/error.

* fix(push): close review findings in the desktop client (#8129)

- A gateway registration the registry cannot persist is enqueued for delete
  instead of leaking a live token.
- Unregister outbox re-reads pending per pass, honours enqueues during a
  drain, and retries with backoff instead of waiting for the next launch.
- Dispatcher batches registrations by 20 rather than starving the rest.
- 401 compare-and-clear; a 401 after re-auth is unreachable; refused
  handshakes and 429s are cached briefly instead of re-handshaking per event.
- Service is stopped on quit.

* fix(mobile): close review findings in push registration and receive (#8129)

- Consent generation guards a register that finishes after the switch went
  off; the host is re-queued for unregister instead of recorded live.
- Foreground pushes seed the watermark before adopting the epoch, so a push
  on a never-connected session cannot wipe a valid watermark.
- aps-environment follows the build via app.config.js; the iOS release
  workflow sets it to production. A bare plugin entry wrote development.
- Pushes the OS showed while closed are marked seen before catch-up replay.
- Token null result is not cached; failed capability probes are retried and
  never block an unregister; coalesced summaries are shown but not marked.
- Unresolvable fingerprint routes nowhere and is suppressed in foreground.
- Android channel ensured at boot; capability hook diffs clients by identity.

* fix(cloud): harden the push deploy workflow and size the gateway to the budget (#8129)

- Roll traffic back on a failed post-shift check; delete a candidate that
  never took traffic; retry the origin probe and the FCM probe.
- Assert Terraform-owned scaling instead of mutating it from the workflow.
- Build before taking the Cloud SQL rollout lease.
- Declare the database pool in Terraform (2 per instance, max 2 instances)
  and add the gateway to the connection budget; the previous default put the
  shared instance 65 connections over its ceiling.
- State plainly that the shared deploy identity's relay authority is inherited.

* fix(push): read the runtime from shared state at push startup (#8129)

Threading the runtime through launchDesktopMode put the launch module one
line over the 300-line lint budget after the rebase.

* fix(push): key the unauthenticated rate limit on the hop Cloud Run wrote (#8129)

Cloud Run appends the connecting peer to x-forwarded-for; the limiter read
the left-most value, which the caller controls, so a forged first hop earned
a fresh bucket per request.

* fix(push): close the final security review findings in the gateway and infra (#8129)

- app.onError logs only the error name and answers a bare 500; hono's default
  handler printed the whole error, and a pg error carries the row in detail
- a second per-IP bucket (240/min) runs ahead of the bearer lookup on every
  authenticated route, so forged bearers cannot spend the two-connection pool
- one live session per host: minting deletes the host's earlier row
- device-less hosts are pruned after 1 h, not 30 d; any keypair mints one free
- notificationId is printable ASCII, since it becomes the APNs collapse header
- the impersonated FCM probe token is masked in the workflow log
- prevent_destroy on the Apple secrets and the orca_push database

* fix(push): close the final security review findings in the desktop client (#8129)

- fetch never follows a redirect: a 307 would replay the host proof and the
  phone's token to whatever origin the redirect named
- registerPush params are strict and the paired identity is spread last
- a per-device bucket (10/min) bounds a phone looping registerPush, which
  costs a gateway write and a synchronous registry write each time

* fix(mobile): close the final security review findings in push receive (#8129)

- a push with no epoch can no longer claim a seq-derived dedup key, in the
  foreground or from the tray; a forged seq:N could otherwise swallow the
  real bell at that seq
- a provider-delivered push with no host catalog, or no fingerprint at all,
  stays unrouted instead of falling back to the hostId its raw data carries

* docs(push): record the ip buckets, session and host retention, and the token-ownership limit (#8129)

* fix(push): apply the schema on an untimed pool and retry statement-timeout aborts (#8129)

Ports the relay's #18722 pattern to the gateway: DDL runs on a one-connection
pool with statement_timeout 0 that is closed before the serving pool opens, and
SQLSTATE 57014 joins the bounded transaction retry path.

* fix: harden mobile push delivery and deployment recovery

* feat: align mobile notification preferences with desktop delivery

* fix: accept variable-length APNs device tokens

* fix: deduplicate native APNs and background socket notifications
2026-09-06 23:16:29 -04:00
Jinwoo-H c25d2b50ff docs(mobile): audit unshipped hybrid compatibility paths
Identify removable hybrid fallbacks and shell branches while preserving native-client RPCs, SSH compatibility and active domain paths. Document the final hybrid baseline prerequisite and update the implementation scope. Audit only; runtime behavior is unchanged.
2026-09-06 22:35:12 -04:00
Jinwoo-H 6e949ece6c docs(mobile): reconcile validated OTA migration checkpoint
Record session/host forwarding, Terminal/About migrations, exact code and platform evidence, and remaining domain work. Defer additional crash-loop and resume enhancements under the requested YAGNI scope.
2026-09-06 21:34:07 -04:00
Jinwoo-H de45372b66 docs(mobile-web): reconcile verified OTA migration progress
Record integrated iOS recovery and preference evidence, focused commits and remaining host-scope, session, settings and OTA rollback work.
2026-09-06 20:56:58 -04:00
Jinwoo-H 9be7d26db9 feat(mobile-web): host chat preferences in the page
Reuse the Chat UI settings screen with paired-host page storage and grant-gated navigation. Verify persistence and theme rendering in the full iOS adversarial journey; retain native recovery presentation.
2026-09-06 20:32:21 -04:00
Jinwoo-H ca6c17a9cd feat(mobile): move native chat actions to host-advertised RPC
Resolve host-owned chat resources and reuse terminal.send for authenticated TUI actions. Feature-gate the page consumer on dispatch fencing, share the action deadline across binding and execution, and preserve unknown delivery without fallback after mutation dispatch. Keep native image and persistence capabilities and old shell/host paths. Record green gates and corrected iOS evidence.
2026-09-06 20:07:23 -04:00
Jinwoo-H 2b354df146 fix(mobile): authorize cataloged host adapters on Desktop
Use exact Desktop catalog membership and declared cleanup routes alongside the legacy mobile allowlist. Reproduce the forbidden adapter failure at authenticated dispatch, verify file-result privacy and future fields, and update the legacy unsubscribe census for generic cleanup syntax.
2026-09-06 19:52:32 -04:00
Jinwoo-H ceeacb1572 fix(mobile): revalidate generic requests at transport dispatch
Bound catalog and request lifetime and check page/workspace authority after connection waits. Fence retired physical requests across logical cutover, preserve existing response ambiguity, and advertise dispatch support without changing protocol 2. Record the discovered catalog authorization gap in the tracker.
2026-09-06 19:45:40 -04:00
Jinwoo-H bfb06bad72 feat(mobile): persist hosted page preferences per paired host
Add bounded native preference storage and route hosted AsyncStorage through it. Preserve namespace and credential isolation, serialize writes, and reject unavailable or corrupt storage. Remove the inert adapter and reconcile the implementation tracker with completed generic streams and platform evidence.
2026-09-06 19:34:44 -04:00
Jinwoo-H 041e40265b feat(mobile): forward native-chat feeds through generic subscriptions
Retain future transcript fields, validate host-owned bindings for every event, and use per-stream cleanup tokens. Preserve legacy host/shell fallback and cancellation semantics. Required gates and page export pass.
2026-09-06 19:08:04 -04:00
Jinwoo-H e14164f974 feat(mobile): read native chat through host-owned opaque resources
Scope resource handles to the connection, workspace and shell-injected page session. Desktop validates current chat bindings and retains future transcript fields; hosted reads use the generic lane with legacy fallback. All required gates and page export pass.
2026-09-06 19:01:27 -04:00
Jinwoo-H a0eee2fc21 feat(mobile): forward host-advertised subscriptions
Add bounded generic streams with Desktop cleanup metadata, direct and relay cancellation, and page-owned source-control invalidation. Preserve legacy fallback and protocol 2. Required code gates and page export pass; platform journeys remain tracked.
2026-09-06 18:45:47 -04:00
Jinwoo-H 42c031d85e fix(mobile-web): preserve chat bindings across unavailable host reads
Keep authority on failed or malformed tab snapshots. Exercise headless terminal file links through line-addressed hosted previews, since renderer-backed file tabs require a Desktop renderer. Record the observed native tap and host resolution evidence.
2026-09-06 18:31:37 -04:00
Jinwoo-H d39be4951d fix(mobile): repair hosted journey accessibility and route checks
Label standalone toolbar actions, match WebView accessibility values, and fence workspace return checks by pathname. Reuse Android labelled navigation and support adversarial journeys without native screenshot baselines. Record passing iOS file parity and the unresolved terminal file-link gate on both platforms.
2026-09-06 18:11:18 -04:00
Jinwoo-H 31024ff031 feat(mobile-web): serve page-safe file searches and text reads from desktop
Reuse host file methods behind Desktop-owned identity redaction and move list/text presentation into the hosted page. Preserve older shells and Desktop versions through legacy fallback, without changing the generic bridge contract.
2026-09-06 17:35:23 -04:00
Jinwoo-H a8bbed52da feat(mobile-web): move directory and chunk reads to the generic bridge
Advertise page-safe file reads from Desktop and project their raw results in the hosted page. Preserve legacy handlers and fallback for older shells and oversized replies. Track the remaining long-lived shell implementation and platform evidence.
2026-09-06 17:24:03 -04:00