Commit Graph
20743 Commits
Author SHA1 Message Date
Neil 7e19d48a0f Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-fastwake 2026-11-09 17:39:31 -08:00
Neil ae3605bbf3 fix(cloud): review fixes for fast wake (stale background re-pair guarded by resume generation, no reconnect over a socket already dialing, pane recovery scoped to the host again, ready poll backs off) 2026-11-09 17:39:19 -08:00
Neil 60377d3364 feat(cloud): remote desktop Beta — single-use tickets, fit, clipboard, keyboard release (W10 RD-1..6) (#122)
* feat(cloud): remote desktop single-use tickets, fit, clipboard and keyboard release

- VM: Xvnc on a 0600 socket with no VNC auth plus an X cookie; orca-desktop-proxy (websockify
  subclass) admits one WebSocket per unused 60 s ticket from the same localhost origin, refuses
  rebinding Hosts, scrubs tickets from logs, serves the page with connect-src 'self'.
- Worker: POST /desktop mints a fresh ticket per call (schemaVersion 2).
- Desktop: no secret in the tab URL; main hands the page tickets on load and reconnect (backoff,
  floor, pause with Reconnect), only for the exact URL of a live forward it opened; keyboard stays
  in the desktop until Ctrl+Cmd / Ctrl+Alt; a paste key pushes this computer's clipboard; sandbox
  copies reach this computer after a copy gesture.
- UI: keyboard hint, asleep/starting neutral tone and mapping, persistent error toasts, Beta badge.

* fix(cloud): remote desktop review fixes

- Security review: noVNC host/port/encrypt pinned to the page's origin, CSP connect-src 'self',
  exact-URL + live-forward trust, mint floor and per-minute cap, copy gate on copy gestures only,
  X display cookie.
- Design review: archived is its own neutral state, starting covers waking, page messages say
  "Wake it in Orca", pause overlay is a status for calm states and focuses Reconnect, hint wraps
  and hides from assistive tech when faded.
- FE review: paste follows the keyboard layout, AltGr never releases, page calls settle on
  navigation, state notices only on change, hint once per load/release, paste always pushes,
  no committed bytecode, session tests.

* fix(cloud): remote desktop archived page message, hint layout, fixtures

* fix(cloud): remote desktop copy gate counts double-clicks (pointer events have no click count)

* chore(cloud): remote desktop lint (exhaustive pause reasons, no test casts or wall clock)
2026-11-09 17:36:19 -08:00
Neil 04e6a800d8 fix(cloud): env builds finish without a reader: bounded wait=true exit probe (#123)
* fix(sandbox-control): read the orgRole claim that Orca Cloud auth mints (#29)

Auth mints the live org role as orgRole on sandbox tokens (same claim as billing
tokens, stablyai/orca-cloud#695); the verifier read org_role, so admins would
never have been recognized.

* wip(cloud): environment builds control plane

* wip(cloud): environment build boot path, staleness, routes

* wip(cloud): env build tests, anonymous staleness fallback

* wip(cloud): migration 0008 (claimed), quieter recovered clone errors

* fix(cloud): env build review: interrupted-snapshot recovery, bounded log reads, secret redaction, activation guard, hook/prelude fixes

* fix(cloud): wait briefly for the build exit code after its log ends; print the base image and package manager

* wip(desktop): org environments client, IPC, CLI, settings UI, orcad disk usage + low-disk banner

* perf(cloud): smoke-boot each environment build before activating it; skip the redundant prelude fetch

* fix(cloud): a GitHub token error fails the build as github_unavailable instead of cloning anonymously

* perf(cloud): warm pool VMs per hot environment build, so a create from an org environment skips the provider boot

* wip(desktop): cloud environment UI round-3 fixes

* fix(cloud): pool-per-build review: smoke race safety, provider hiccups skip smoke, usage-based hot builds with caps, bounded boots, index

* fix(desktop): Configure with an agent hands the prompt over at launch (trust dialog swallowed the pasted Enter); CLI builds table widths

* polish(desktop): W10 P2s — InlineError action slot, shared focus-ring, copy

* feat(cloud): build event stream heartbeat every 20 s

* fix(desktop): FE review — stable virtualizer, shadow-buffer replays, heartbeat-aware build watch, CLI follower restarts, repo import path checks, poll races

* feat(cloud): meter environment build sandbox time to the member who started it; no setup-script nudge for workspaces booted from an env build

* fix(cloud): environment builds progress server-side on a Durable Object alarm, not only while someone streams their log

* fix(cloud): advance env builds with a bounded wait=true exit probe (Vercel reports exit codes only to waiting readers)
2026-11-09 17:33:04 -08:00
Neil e05329a3f1 Merge pull request #116 from nwparker/cloud/plans-copy-sync
copy(plans): sync Team card with /cloud pricing
2026-11-09 17:31:29 -08:00
Neil 8ca59fb6f5 copy(cloud): W10 — cap off the pricing fine print; 'You can run N'; start error matches the card 2026-11-09 17:31:06 -08:00
Neil 4b83727d23 Merge pull request #115 from nwparker/cloud/w3-download-ship
feat(files): downloads from cloud workspaces — files, folders as ZIP, open on this computer
2026-11-09 17:29:18 -08:00
Neil cfdc95c667 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-fastwake 2026-11-09 17:29:12 -08:00
Neil e74d775884 feat(cloud): Orca Cloud workspaces on the phone (W8) (#113)
* feat(cloud): Orca Cloud workspaces on the phone (W8)

Home gets a Cloud section that lists the team's cloud workspaces straight from
the control plane (phone-signed device-session tokens; no desktop in the path).
A workspace screen wakes the sandbox (W2 long-poll wake), gets this phone its
own revocable orcad device through a W4 sealed grant (opened with the shared
opener on pure-JS primitives for Hermes), pairs directly over E2EE to the stable
sandbox endpoint, and delivers prompts queued on the phone while it was asleep
(agent.launchReplay, deduped by operation id). Create a workspace from the
phone (repo, branch, agent, first prompt, sandbox size), sleep, archive, live
status and spend, per-phone access management with revoke and disconnect, and
team share links (orca://cloud/w/<id>) open on the phone. Copy follows the
Orca Cloud glossary; dark/light, Reduce Motion, VoiceOver announcements.

* fix(w8): design round 2 (honest spend, can't-connect state, queue states, distinct titles, neutral archive, hairline groups)

* fix(w8): FE + W10 round 2 (retry ids, pairing give-up, create idempotency, neutral dots, waking composer, a11y values, salvage storage)

* fix(w8): tell same-named cloud workspaces apart by when they were made

* fix(w8): agent names from the shared table; localized repo placeholder

* fix(w8): round 3 (agent-started card with terminal sign-in path, transport-safe retries, open waits for the connection, single wake timer, created-ago rows)

* fix(w8): FE round 4 (open never blocked on worktree lookup, one connect deadline per run, mid-delivery prompts never stranded, no blank terminal on open session)

* fix(w8): prompts interrupted mid-delivery count as waiting (Open and retry resume them)
2026-11-09 17:29:05 -08:00
Neil 4220d3f837 Merge pull request #121 from nwparker/cloud/w9-eval
feat(cloud): real-VM acceptance harness (W9) — parity checks, benchmarks, desktop run, evaluation report
2026-11-09 17:29:03 -08:00
Neil 2fca518200 Merge pull request #120 from nwparker/cloud/w6-precedence-test
W6: test + doc that the egress swap uses the same precedence as plain injection
2026-11-09 17:28:53 -08:00
Neil d84196a177 docs(cloud): acceptance findings — W6 precedence confirmed 2026-11-09 17:28:51 -08:00
Neil 7c9abb57f1 copy(cloud): state the running-sandbox cap where it's enforced (limit cards, workspace start error) and in the plans fine print 2026-11-09 16:30:34 -08:00
Neil e95a147837 fix(cloud): env builds progress server-side on a Durable Object alarm, not only while streamed (#118)
* fix(sandbox-control): read the orgRole claim that Orca Cloud auth mints (#29)

Auth mints the live org role as orgRole on sandbox tokens (same claim as billing
tokens, stablyai/orca-cloud#695); the verifier read org_role, so admins would
never have been recognized.

* wip(cloud): environment builds control plane

* wip(cloud): environment build boot path, staleness, routes

* wip(cloud): env build tests, anonymous staleness fallback

* wip(cloud): migration 0008 (claimed), quieter recovered clone errors

* fix(cloud): env build review: interrupted-snapshot recovery, bounded log reads, secret redaction, activation guard, hook/prelude fixes

* fix(cloud): wait briefly for the build exit code after its log ends; print the base image and package manager

* wip(desktop): org environments client, IPC, CLI, settings UI, orcad disk usage + low-disk banner

* perf(cloud): smoke-boot each environment build before activating it; skip the redundant prelude fetch

* fix(cloud): a GitHub token error fails the build as github_unavailable instead of cloning anonymously

* perf(cloud): warm pool VMs per hot environment build, so a create from an org environment skips the provider boot

* wip(desktop): cloud environment UI round-3 fixes

* fix(cloud): pool-per-build review: smoke race safety, provider hiccups skip smoke, usage-based hot builds with caps, bounded boots, index

* fix(desktop): Configure with an agent hands the prompt over at launch (trust dialog swallowed the pasted Enter); CLI builds table widths

* polish(desktop): W10 P2s — InlineError action slot, shared focus-ring, copy

* feat(cloud): build event stream heartbeat every 20 s

* fix(desktop): FE review — stable virtualizer, shadow-buffer replays, heartbeat-aware build watch, CLI follower restarts, repo import path checks, poll races

* feat(cloud): meter environment build sandbox time to the member who started it; no setup-script nudge for workspaces booted from an env build

* fix(cloud): environment builds progress server-side on a Durable Object alarm, not only while someone streams their log
2026-11-09 16:26:55 -08:00
Neil 721d726c4a chore(cloud): register the acceptance harness test runner 2026-11-09 16:26:37 -08:00
Neil 5f4e84fd6d test(sandbox-control): egress swap and plain injection resolve keys with the same precedence (team > repository > personal for agent keys) 2026-11-09 16:19:02 -08:00
Neil 7b77b86547 Merge remote-tracking branch 'private/cloud/integration' into cloud/w2-fastwake 2026-11-09 16:17:41 -08:00
Neil cb7e4d0075 perf(cloud): pre-open the control socket on a hosted wake; advance pane recovery backoffs when a host's control socket comes back; wake timeline test 2026-11-09 16:17:30 -08:00
Neil 36ef6c1f65 test(cloud): acceptance harness unit tests 2026-11-09 16:17:06 -08:00
Neil be86278bb5 feat(cloud): acceptance desktop import, build event-stream wait, routine creds, key revocation, summary 2026-11-09 16:16:40 -08:00
Neil 0ae00f029c Merge pull request #117 from nwparker/cloud/w5-followups
feat(sandbox-control): role changes re-cap API keys and MCP grants; Idempotency-Key on workspace create; teammate names
2026-11-09 16:16:39 -08:00
Neil 86390320c8 feat(cloud): desktop Electron acceptance run (create, keystroke, ports, ssh, sleep/wake, transfer, destroy) 2026-11-09 16:16:39 -08:00
Neil 947813d4fc fix(cloud): acceptance check fixes (seat true-down, repo object, ssh probe, ports bound, kid from key file, load notes) 2026-11-09 16:16:39 -08:00
Neil f0192658c8 feat(cloud): acceptance checks for W1 builds, W2 lifecycle, W3 shares/ssh/ports, W4 team, W5 API/MCP/routines, W8 devices 2026-11-09 16:16:39 -08:00
Neil d904c66d96 feat(cloud): acceptance seat proration and dunning checks (test clocks) 2026-11-09 16:16:38 -08:00
Neil 8433de5032 feat(cloud): acceptance checks for agents, findings, 3DS, kill switch on a slept box 2026-11-09 16:16:38 -08:00
Neil 664a5206df feat(cloud): real-VM acceptance harness skeleton (checks, benchmarks, ledger, report) 2026-11-09 16:16:38 -08:00
Neil 9f21a6a375 copy(plans): comment placement 2026-11-09 16:14:07 -08:00
Neil 26ee19ee0d copy(plans): Team card bullets match the final /cloud pricing strings 2026-11-09 16:13:25 -08:00
Neil 8fec6ef31e feat(sandbox-control): role changes re-cap keys and MCP grants; Idempotency-Key on workspace create; teammate names in API views and the sender envelope 2026-11-09 16:12:43 -08:00
Neil b969ccbc0a copy(plans): drop the per-seat concurrent-sandbox line from the Team card to match the /cloud pricing page 2026-11-09 16:10:10 -08:00
Neil 1f734a34f5 chore(files): name the archive runtime type and format counts for the UI language 2026-11-09 16:08:33 -08:00
Neil 24f94c9f85 Merge pull request #114 from nwparker/cloud/integration-health-2
fix(cloud-integration): lint green after w5-cli (#112)
2026-11-09 15:52:35 -08:00
Neil c22f5eb530 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration-health-green 2026-11-09 15:52:19 -08:00
Neil 04bcdbe8f4 fix(cloud-integration): lint green after w5-cli (#112)
- --on cloud reads origin through @orca/process-host runProcessSync
- isCloudAgent guard replaces agent casts; credentials and API error bodies read through jsonFields
- client's generic response boundary carries a SAFETY note; test fixtures typed (vi.fn<typeof fetch>)
2026-11-09 15:52:08 -08:00
Neil 5b030242fe fix(files): refuse a re-pointed archive root, block bare-extension names, drop links that climb after a normal segment, keep the orcad bundle ASCII 2026-11-09 15:50:23 -08:00
Neil 52c676cf8a Merge pull request #107 from nwparker/cloud/integration-health-green
fix(cloud-integration): lint + tests green on HEAD after w2-ttfk merge
2026-11-09 15:44:33 -08:00
Neil 0dba221289 fix(files): middle-truncate long names in download toast titles so the extension stays visible 2026-11-09 15:42:47 -08:00
Neil 5e02fb0418 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration-health-green 2026-11-09 15:41:08 -08:00
Neil 590c34a1b3 fix(cloud-integration): lint + tests green after #99-#106
- loopback-callback-listener runs lsof through @orca/process-host
- MCP egress ledger read is async; cloud-mcp-sync's two memoized one-shot reads and the
  loopback grant's liveness poll (a heartbeat with a stop) are baseline-listed
- auth-callback-forward under max-lines; VmBuildFailureActions uses Button variant quiet
- test casts replaced by typed fixtures (Translate, WorktreeCreationRequest builders,
  typed HostedSandboxRequest, LegacyRenameRuntime); one SAFETY-annotated store stub
- runtime catalog + protected-copy keys synced
- workspace-resume lost-contact tests partially mock ssh-target-registry (new import chain)
2026-11-09 15:40:56 -08:00
Neil 265c588da3 chore(i18n): sync runtime-required and protected-copy catalogs 2026-11-09 15:38:07 -08:00
Neil b490cde491 Merge pull request #112 from nwparker/cloud/w5-cli
feat(cli): orca cloud commands + in-VM cloud access (VMs can reach the control plane their token names)
2026-11-09 15:37:43 -08:00
Neil 244a7c5134 fix(files): harden runtime downloads and rework the toasts after security, design and FE review
Host archive: fd realpath must stay under the folder (Linux /proc/self/fd), O_NONBLOCK opens,
directories re-verified (realpath + dev/ino) before and after listing, reads capped at the walked
size, links that leave the folder dropped, case/NFC twins renamed, Windows-invalid and reserved
names and bidi/zero-width characters mapped, slots reserved before the walk and limited per client.

Desktop: hard byte caps against a host that keeps sending, executable types are never opened
(Download only) and every saved file gets the OS downloaded-file mark, open-locally cache under
userData, busy limit counts transfers not dialogs.

Toasts: InlineError layout=toast with one action, neutral tone for limits/refusals/no-app,
Refresh for moved files, errors stay until dismissed, ETA, zip size label, title-only live
region, stable store subscription, one transfer per path and intent, renderer tests.
2026-11-09 15:35:49 -08:00
Neil b6418aeb45 chore(files): drop casts and real-time waits flagged by the quality gates 2026-11-09 15:35:48 -08:00
Neil 3384c5b08c feat(files): download lane, glossary toasts with InlineError and one next action, fixtures 2026-11-09 15:35:47 -08:00
Neil f1752cbe28 fix(files): refuse files swapped after the archive walk, sanitize zip names, prefetch small files 2026-11-09 15:35:45 -08:00
Neil 9d48206ac8 feat(files): stream runtime file and folder downloads with progress, cancel and open-locally 2026-11-09 15:35:45 -08:00
Neil 923a1504b9 fix(cloud): grants register the workspace project on the VM so a phone (which can't add projects) can open it (#111) 2026-11-09 15:32:36 -08:00
Neil 7c0ebc5eee Merge pull request #110 from nwparker/cloud/w4-copy
fix(cloud): W10-approved reassign-owner copy + Cancel focus (W4)
2026-11-09 15:30:43 -08:00
Neil 64ca9caa47 fix(cloud): W10-approved reassign-owner copy; Cancel focused when you give away your own access 2026-11-09 15:30:21 -08:00