Commit Graph
20724 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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
Neil 0af3774c35 fix(cli): name the vmCliEnabled toggle when a workspace token is rejected
Turning in-workspace CLI access off revokes every workspace token, so the
in-VM CLI sees 401, not 403 vm_cli_disabled. Say so and point at the
setting first (verified on a real VM).
2026-11-09 15:28:40 -08:00
Neil 77d6aecb6e fix(sandbox-control): source golden builds finish even when Vercel keeps reporting the command as running (#108)
Seen live twice: source-build.sh had exited (provision done, no processes left) but GET cmd kept
exitCode null for 40 min, so the build hit its deadline. source-build.sh now writes its exit code
(/tmp/source-build.exit) and the provision report (/tmp/source-build.report); the operator rotation
and the Worker's stepBuild fall back to the marker. The operator script reads the report from the
file instead of the command log stream (which never ends in that state) and prints the running build
step every ~2 min.
2026-11-09 15:22:47 -08:00
Neil fa71365bf8 Merge remote-tracking branch 'private/cloud/integration' into cloud/integration-health-green 2026-11-09 15:22:17 -08:00
Neil 72afdc3972 fix(cloud-integration): lint green on HEAD after the w2-ttfk merge
- wake-input pump uses installWindowVisibilityInterval (recurring-timer ratchet), stops when idle
- pane user-input memory split into pane-user-input.ts (max-lines)
- drop type assertions in interrupted-turn-continue and sidebar activation
- dialog overlay follows content exitMotion via a static sibling selector (static-classes gate)
- wake-input test pins Date (no wall clock); remove unused orcaCloudWorkspace.overlay.pendingInput
- path-gate test reads the store mock lazily (import cycle TDZ)
2026-11-09 15:21:49 -08:00
Neil 2e1d5123a4 Merge pull request #106 from nwparker/cloud/w6-mcp-syncer
W6: per-computer MCP sync ledger (shared sandboxes don't flap)
2026-11-09 15:21:16 -08:00
Neil 9634bb7049 fix(cloud): per-computer MCP sync ledger and Codex block, so two computers on one shared sandbox keep each other's servers (first computer adopts the shared ledger once) 2026-11-09 15:20:58 -08:00
Neil 31d9699af5 fix(sandbox-control): let VMs reach the control plane their workspace token names
Workspace tokens tell the in-VM orca cloud CLI to call publicOrigin(env), but
that host was only reachable when EGRESS_EXTRA_HOSTS listed it (previews did,
the dev Worker did not), so every in-VM call failed with 'fetch failed'.
extraEgressHostsFor(env) now always adds the public API host. The CLI's
cloud_unreachable hint inside a VM names the egress allowlist.
2026-11-09 15:20:42 -08:00
Neil a1676f8109 Merge pull request #105 from nwparker/cloud/staging-test-accounts
chore(cloud): durable staging test-account setup
2026-11-09 15:17:25 -08:00
Neil d843e88b18 chore(cloud): durable staging test-account setup (provision, headless desktop sign-in, >100-invites live check) 2026-11-09 15:16:59 -08:00
Neil 44e7c9fdf6 fix(sandbox-control): register the workspace project in orcad at every start (API, MCP, routines, phone see the repo) (#104)
orcad listed the cloned project only after a client called repo.add, which only the desktop does on
connect. orca-sandbox-start now runs 'orca repo add --path /vercel/sandbox/project' (folder kind
when it is not a git checkout) in the background once orcad is ready; re-adding is a no-op. Verified
on a VM from the active golden: repo list shows /vercel/sandbox/project right after start.
2026-11-09 15:14:54 -08:00
Neil fe0aa07c0a Merge pull request #103 from nwparker/cloud/w6-egress-default
W6: model-key egress swap on by default (per-team kill switch)
2026-11-09 15:13:38 -08:00
Neil d7497308c1 feat(sandbox-control): egress key swap on by default for every team, per-team kill switch SECRETS_EGRESS_PLACEHOLDERS_OFF 2026-11-09 15:13:19 -08:00
Neil 604ce7c913 Merge pull request #99 from nwparker/cloud/w6-mcp-final
W6: MCP config sync into Orca Cloud sandboxes (egress hosts + OAuth loopback relay)
2026-11-09 15:10:16 -08:00
Neil 53dced42c8 fix(cloud): MCP sync review — generic OAuth relay accepts only a loopback GET for its port (2-min TTL, never displaces a sign-in), first sync is an explicit consent before tokens leave this computer, no '.' on the image PATH 2026-11-09 15:09:45 -08:00
Neil fa70f42ae1 fix(sandbox-control): honest create timing (create_ms/wake_ms, migration 0035); operator golden rotation script (#102)
* feat(sandbox-control): operator golden rotation from a git ref (image/rotate-golden-from-source.ts)

Fallback while the Worker's git-source build can't read the repo: uploads git archive of the ref
(default private/cloud/integration) into a managed-image build sandbox, runs source-build.sh (now
accepts an uploaded ORCA_SRC_DIR), wipes, snapshots, smoke-boots (SOURCE_COMMIT matches, tools, orca
CLI reaches orcad, stop/resume), and registers a smoking golden_images row with bundle_sha256
git:<sha>. Refuses a desktop-less image when the manifest pins one. Durable ledger in
~/.orca-cloud-ops (survives /tmp wipes); --cleanup deletes orphans of an interrupted run.

* fix(sandbox-control): honest create timing: create_ms/wake_ms written once per start, not ready_at - created_at

GET /v1/config said create p95 23 s. Its source, ready_at - created_at, moves on every wake, so every
sandbox slept and woken within two minutes of creation (bench and smoke cycles: 15-23 s, 35-90 s) counted
as a slow create. Real creates on dev are p50 2.9 s / p95 4.0 s. Migration 0035 adds create_ms
(write-ahead row to first ready) and wake_ms (resume claim to ready); createTiming reads create_ms.
2026-11-09 15:08:16 -08:00
Neil 04305cecbe Merge pull request #101 from nwparker/cloud/w4-name
feat(cloud): label teammates from the token name claim (W4, migration 0034)
2026-11-09 15:04:19 -08:00
Neil 119ffb907e feat(cloud): label teammates from the token name claim (member_names, migration 0034)
Each member's own /v1/team request records the sanitized name claim for their account;
workspace views return memberNames for owner, creator, last active and presence ids. Home
falls back to these when the org roster has no entry (dev orgs, members who left). Labels
only; access never reads them. Write failures never fail the request.
2026-11-09 15:03:14 -08:00
Neil a3f66462cc Merge pull request #97 from nwparker/cloud/core-ui-finish
Build sheet round 4 + create-path errors (GitHub not connected, no GitHub remote) + Orca Cloud host label
2026-11-09 15:02:26 -08:00
Neil 387c672cd2 fix(cli): reconcile orca cloud with cloud env after rebase
- drop the duplicate 'cloud' launch root (cloud env already registers it)
- keep cloud env on the runtime: only the cloud API commands ignore --environment
- list cloud messages in root help
- register the 'sender' launch root (parity test was red on integration)
2026-11-09 15:00:38 -08:00