Commit Graph
12 Commits
Author SHA1 Message Date
Neil a541fcee3e feat(cloud): GH-ACTING-LINE who pushes and PRs go out as, in source control and the people tooltip
A cloud workspace's git acts as its solo owner, else the latest sender within the hour, else Orca's
bot; the control plane decides (#817's gitActor) and the desktop only says it, quietly:
- Source control, under Commit/Push: "Pushes and PRs go out as @login" / "as Orca bot" / "as Orca
  bot (no one has sent in the last hour)", with the approvals/merges caveat in its tooltip. The
  only place with an action: Connect GitHub, when it's the bot and the viewer isn't connected.
- The people chip: the same words as a second line in the acting member's avatar tooltip (the
  first avatar's when it's the bot). No new header chip.
- Read with feature `git-actor` from GET /v1/team/workspaces/:id (owner and members alike), one
  read per workspace shared by both places; re-read on focus, every 2 min, and when a shared
  workspace's hour lapses (`until`). Absent field (not GitHub, identities off, older control
  plane): nothing shown.
2026-11-15 22:52:32 -08:00
Neil ff6c7599c1 feat(cloud): OWNER-TRANSFER desktop says what an owner change does and tells the people it affects
- Make owner confirmation lists what happens (sleeps, share links stop, the
  disk goes with it, shared mode for good), stays open while the workspace
  goes to sleep, and shows a refusal in place.
- Whoever made the change is told whether the previous owner will see a notice.
- The previous owner gets a notice (until dismissed) advising them to rotate
  personal secrets; the new owner is told once that it runs like a shared
  workspace.
- "Owner changed" chip in the top bar and a line in the sidebar hover card.
- Audit log words Orca's "previous owner told" row, and a row cut short shows
  its whole sentence on hover (AUDIT-TRUNC-HOVER).
2026-11-13 08:03:56 -08:00
Neil 7a07d9cafb feat(cloud): PARITY-FOLLOW phase 2: Follow, followers and the Following section (#665)
* wip(cloud): PARITY-FOLLOW design fixtures (top-bar followers, sidebar Team and Following)

* feat(cloud): PARITY-FOLLOW phase 1: sidebar Team list and the top bar's people (creator and who is here now)

* test(cloud): PARITY-FOLLOW fixtures name the workspace a teammate is in

* fix(cloud): PARITY-FOLLOW fixture typecheck

* feat(cloud): PARITY-FOLLOW follow endpoint: workspace_follows (0055), PUT/DELETE /v1/team/workspaces/:id/follow, followers in workspace views

* fix(cloud): PARITY-FOLLOW lint: the hover action's wrapper owns its visibility; no Button restyles; no side effect in a state updater

* feat(cloud): PARITY-FOLLOW phase 2: Follow in the top bar, followers in the stack, Following section in the sidebar

* test(cloud): PARITY-FOLLOW no real-time wait in the live-read test
2026-11-13 02:59:54 -08:00
Neil 2642b3e4d0 feat(cloud): PARITY-FOLLOW follow endpoint: workspace_follows (0055), PUT/DELETE /v1/team/workspaces/:id/follow, followers in workspace views (#654) 2026-11-13 02:17:45 -08:00
Neil 766e0b23b6 Merge remote-tracking branch 'private/cloud/integration' into cloud/read-snapshot-signed
# Conflicts:
#	cloud/apps/sandbox-control/image/vm-scripts.generated.ts
#	src/main/ipc/cloud-workspaces.ts
2026-11-10 23:20:55 -08:00
Neil 8a2603a68e Merge private/cloud/integration into cloud/multiplayer-gaps (team-presence, routines) 2026-11-10 20:37:56 -08:00
Neil f2d3af0f74 feat(cloud-home): hide routine runs from Home by default, with a Routine runs filter (G15)
Home's team list leaves routine-run VMs out unless the new Routine runs switch is on. The switch is
offered only when the team has routines, counts the running runs it hides, and is remembered per
account. Hidden runs leave the workspace count but keep their sandbox hours in the total. Listed
runs carry a routine mark and 'Routine · <name>'. Control plane: GET /v1/team/workspaces
?routines=include, plus fromRoutine/routineName per row and a routineRuns summary.
2026-11-10 19:52:58 -08:00
Neil 8f28913dba feat(cloud): W-numbers, org slug links, and pins/order/sections that sync across desktops and the phone (G13, G14) 2026-11-10 19:50:22 -08:00
Neil f0a6d9d550 feat(cloud): clients verify VM signatures and persist read-snapshot pins; wake-failed copy 2026-11-10 04:12:59 -08:00
Neil 86aafd99c6 feat(cloud): read a sleeping workspace from an E2EE snapshot (desktop + phone clients) 2026-11-10 00:05:33 -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 777f078c76 feat(cloud): W4 team collaboration on cloud workspaces
## 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
2026-11-09 06:53:24 -08:00