The composer offers Add an agent the moment Orca Cloud is chosen for the first time, so a warm
sandbox that starts in seconds cannot outrun the build-sheet step. Copy follows the Orca Cloud
glossary (sandbox, agent sign-ins, Repository, Ask an owner or admin, nothing-lost errors).
Counts use i18next plural forms.
Secrets IPC reads the baked-in control-plane URL like the sandbox client (packaged integration
builds have no shell env). Effective view gives the value hint its own column. The build step keeps
a row for every outcome (saved, signing in, skipped), moves focus to it and announces it; a
multi-line paste keeps focus; failed deletes keep focus; Settings' Subscription tab ends in Got it.
Exact security copy for the pane, value fields, subscription sign-in, desktop keys and the plans
page. .env paste becomes rows at once (names visible, values masked) and the raw text is dropped.
Values keep pasted newlines. Agent setup keeps a draft per tab with manual activation, the same
four tabs in the build sheet and dialog, a steady dialog height, a team status banner and a
Got it / Sign in when ready primary. Add secret leads the list; Delete is labelled and Keep takes
focus; saves are announced through one status region; precedence reads as sentences.
Effective names no longer truncate; refused subscription tokens offer Sign in instead inline under
the field; editor errors sit under their field; ready row names only the covered agent; queued
sign-in can be cancelled; paste preview lists lines needing a fix first; Escape from portaled menus
no longer closes the form; model-value rule limited to the agent model names.
Build step is one compact row (sign in when ready, use a key, later) that collapses to a single
line once saved, signing in, or already covered; the settings dialog adds a Subscription tab.
Gateway preset takes Claude and Codex models (free-tier hint). Secrets list keeps columns aligned
for every role, sorts names, labels model/base-URL names as agent settings, returns focus after
forms and deletes, and ignores writes that land after a repo switch. .env paste survives a stray
quote; client rules mirror the server's ASCII-only model and base URL values.
Settings > Orca account gets Cloud secrets (Personal / Shared / Repo / Effective): names, kind,
hints and who changed what; add, replace, delete, .env paste with per-line preview over the batch
route; precedence explainer; read-only Shared for members. The first Orca Cloud build shows
'Add an agent' beside provisioning (subscription sign-in in the VM, API key, AI Gateway, custom
provider, share with team) or a one-line confirmation when desktop keys or the team already cover it.
Shares the control-plane call (token, base URL, redirect guard, zod) between the sandbox and
secrets clients. Values go renderer -> control plane only; failures cross IPC as codes.
Adds the .env paste parser and the client-side mirror of the server's name/value rules.
Plans said 15 minutes, the desktop slept at 20. The shared wire module now owns the value; the
control plane serves it at GET /v1/config (public product constants), the desktop driver's idleStopMs,
billing's Team plan idleSleepMinutes and the billing fixtures read the constant, and the idle-sleep
toast already prints the scheduler's value from the event.
Exhaustive switches instead of default arms; merged duplicate type imports; Badge 'tag' and Button
'statusAction' variants replace className restyles; SmartWorkspaceSourceTabs list back to upstream's
classes (TabsList owns spacing); dropped five locale keys no source references; installCloudSsh moves
into registerEphemeralVmRuntimeHandlers so ephemeral-vm.ts stays under 300 lines.
## W4: team collaboration on Orca Cloud workspaces
### Control plane (`cloud/apps/sandbox-control`)
- **Registry** (`0024_workspace_registry.sql`, applied on dev D1): owner (reassignable), `created_by`, branch, `visibility` (private default / team), section, last activity, token spend. Reuses 0020's `name`/`archived_at`.
- **Routes under `/v1/team/*`** (W5 owns `/v1/workspaces`): list with Mine/Team/All, By, In, Archived filters; PATCH (rename, share or make private, section, archive, reassign owner); presence heartbeats; wake and lease for teammates; links resolve; org prompts/PR instructions (compare-and-set).
- **Security fix:** `/v1/sandboxes/:id` used to be account-scoped, so any org member could resume a teammate's sandbox and receive its orcad pairing code. It is now owner-only; admins can still suspend and destroy.
- **Per-member, per-device E2EE grants:**
- The VM mints a single-device orcad offer and seals it to the requesting device's X25519 key.
- The control plane stores only the orcad device id.
- Revocation runs `orca pair --revoke`, which closes the device's live sockets, plus an on-disk registry removal.
- When the VM is asleep, the revoke is queued and applied at boot before orcad starts.
- Triggers: explicit revoke, making a workspace private, archive, reassign, member removal (internal route), and phone device-session revoke (W8).
- VMs from older images get the entry points installed on demand.
- **Git as the sender:** a member's own GitHub user-to-server token (App OAuth, envelope-encrypted) is swapped in at egress only for the workspace repo. The VM gets per-member git configs and `orca-git-as`.
- **Cost:** metered compute × billing rate, plus optional token spend.
### orcad (generic)
- New owner-only RPC `pairing.revokeDevice` and `orca pair --revoke <device-id>`: revokes a device and closes its open connections immediately.
### Desktop
- A "Cloud workspaces" section on Home: Team/Mine, By, In and Archived filters; sections; live presence; cost; last activity. Single-click Open on a teammate workspace pairs this device through an E2EE grant. Also a row menu (share/private, move to section, reassign, archive) and copy link.
- Deep links `orca://cloud/w/<id>[/c/<chat>]` (open-url, argv, second instance, sidecar handoff) and the `cloudWorkspace.copyLink` keybinding.
- Messages to agents in shared workspaces carry a sender envelope.
- Uses the W10 shared primitives.
- Two rounds of adversarial design and frontend review.
### Evidence
Real Vercel VMs; see the W4 report. Numbers:
- grant issued in 0.55 s, paired in 1.35 s
- revoke closes the live desktop socket ~30 ms after the PATCH returns
- two members' pushes land on GitHub with their own author identities (shared dev Worker, preview alias w4); a push to another repo gets 403