Commit Graph
21126 Commits
Author SHA1 Message Date
Neil 4ececa2c61 fix: keep the runtime call site to its original size; one import per module 2026-11-10 03:00:43 -08:00
Neil 42cc4d5b86 fix: import and SSH store method name 2026-11-10 02:39:51 -08:00
Neil dd4baa98ed fix(cloud): security review of A6: offer and save only keys the proxy swaps; no desktop keys over SSH into a cloud workspace; orcad on a cloud VM drops carried keys
- 'Save as personal Cloud secret' is offered, and accepted by main, only for names the egress proxy
  swaps (a shared list the control-plane test holds equal to the proxy's); anything else would sit
  on the VM in full, so main answers not_swappable.
- SSH launches into an Orca Cloud workspace (orca-* aliases or an 'orca ssh-proxy' ProxyCommand
  surfaced through ~/.ssh/config Includes) get no desktop keys.
- Defense in depth on the VM: orcad with ORCA_IS_CLOUD=1 drops a carried keyEnv.
2026-11-10 02:37:29 -08:00
Neil f364c85f87 feat(cloud): this computer's Agent API Keys never reach an Orca Cloud VM; each can be saved as a personal Cloud secret (A6)
Desktop-sealed keys (Settings → Agent API Keys) ride every agent launch as plain env on other
hosts. An Orca Cloud VM would hold them in plaintext, so they are no longer sent there: runtime
calls to Orca Cloud environments skip them (provider record; otherwise any VM-provisioned host or a
Vercel Sandbox route counts, failing closed). The Add-an-agent view and the build sheet's key step
list each every-host key no Cloud secret covers yet, with its own 'Save as personal Cloud secret'
button: main unseals that one key and writes it to the user's personal Cloud secrets; the renderer
never sees the value, and nothing is uploaded without the click. The VM then gets a placeholder
the egress proxy swaps. Readiness no longer counts desktop keys as cloud access.
2026-11-10 02:30:18 -08:00
Neil b5a00612ca Merge pull request #205 from nwparker/cloud/w5-ui-ds26
fix(cloud): routine run failures in plain words; one page error on Orca API keys; Routines on Cloud workspaces (DS-26, DS-36)
2026-11-10 02:24:13 -08:00
Neil a4f5062278 Merge pull request #204 from nwparker/cloud/ds23-entitlement-classifier
refactor(cloud): shared classifyEntitlementDenial (DS-23)
2026-11-10 02:22:00 -08:00
Neil 7de9fe8f25 fix(cloud): DS-26 run failures in plain words via InlineError; DS-36 one page-level error on Orca API keys, MCP tag contrast, Routines entry on Cloud workspaces, availability probes don't cache rejections 2026-11-10 02:20:29 -08:00
Neil 10a9c7e3a3 fix(cloud): exhaustive switches over the denial classifier 2026-11-10 02:19:23 -08:00
Neil 92142679a5 refactor(cloud): one classifyEntitlementDenial in src/shared/orca-billing.ts (DS-23); run-on access, build failure, build log, workspace errors and the phone keep their own wording 2026-11-10 02:17:30 -08:00
Neil ebec244447 Merge pull request #203 from nwparker/cloud/agents-gaps2
feat(cloud): swap COPILOT_GITHUB_TOKEN and GOOGLE_API_KEY at egress; routines run all six image agents; AWS keys marked stored on workspace
2026-11-10 02:16:56 -08:00
Neil 42b5d60656 style: one import for cloud-secret-rules 2026-11-10 02:14:30 -08:00
Neil df8927b7f5 fix(cloud): security review: Copilot token limited to Copilot's GitHub endpoints; routine summaries are final messages with session secrets redacted; untrusted context capped
- COPILOT_GITHUB_TOKEN on api.github.com: GET /user and GET /copilot_internal/* only (normalized
  paths; dot or encoded segments refused); the Copilot API hosts are unchanged. It resolves like
  an env variable (personal beats team): it is one person's GitHub identity.
- Routine summaries for opencode (JSON events), cursor (JSON result) and copilot (--silent) are the
  agent's final message, and every summary has the session's secret values replaced before it can
  be posted as a comment or PR body.
- Webhook/GitHub context in a routine prompt is capped at 48 KiB (compact, then cut), so a prompt
  passed as one argv entry stays under Linux's 128 KiB limit.
- A test fails if an agent credential is neither swapped nor marked 'Stored on workspace'.
2026-11-10 02:13:11 -08:00
Neil e35ff0844a feat(cloud): COPILOT_GITHUB_TOKEN and GOOGLE_API_KEY swapped at egress; routines run all six image agents; AWS keys marked stored on workspace
- COPILOT_GITHUB_TOKEN: placeholder in the VM, swapped on api.github.com (Bearer or token form, next to
  the workspace token's own route) and on the Copilot API hosts (left open for Copilot's own session
  token). GOOGLE_API_KEY: swapped on generativelanguage.googleapis.com and aiplatform.googleapis.com
  (Vertex express). A credential may now route to several hosts.
- Routines accept claude, codex, opencode, gemini, cursor and copilot; the in-VM runner has a
  headless command for each (checked against a local stand-in model: prompts starting with '-' stay
  prompts). The editor picks the agent from a list.
- AWS_* keys (SigV4, signed in the VM) and Bedrock API keys can't be swapped: the secrets UI marks
  them 'Stored on workspace' with the reason, in the list, the .env preview, the effective view and
  the editor.
- Gemini's auth method is seeded for GOOGLE_API_KEY too (vertex-ai with GOOGLE_GENAI_USE_VERTEXAI);
  headless Gemini refuses to start without one.
2026-11-10 02:08:00 -08:00
Neil 209d658b03 Merge pull request #202 from nwparker/cloud/status-rate
feat(cloud): one overage constant ($1/h); workspaces show sandbox hours, not dollars
2026-11-10 01:57:47 -08:00
Neil d4653c15d3 feat(cloud): one overage constant (ORCA_CLOUD_OVERAGE_CENTS_PER_HOUR, $1) for billing and the control plane; workspaces show sandbox hours, not per-workspace dollars (desktop list, phone status) 2026-11-10 01:52:05 -08:00
Neil ff5fb6b631 Merge pull request #201 from nwparker/cloud/w9-eval
feat(cloud): acceptance — agent image/keys-swap rows, sub.size at 8/16, region/size AFTER benchmarks
2026-11-10 01:46:39 -08:00
Neil 8550787232 docs(cloud): region/size AFTER benchmarks — wake p95 5.85 s in pdx1 2026-11-10 01:45:21 -08:00
Neil 2920f1c173 feat(cloud): acceptance image.agents, agent.keys-swap (no model), sub.size at 8/16 (U18); more-agents owner-reported 2026-11-10 01:45:21 -08:00
Neil d2593a8605 Merge pull request #187 from nwparker/cloud/run-actions-ports
Run actions (orca.yaml scripts.run) + per-workspace ORCA_PORT blocks; Conductor import
2026-11-10 01:37:21 -08:00
Neil 01335d7cfc Merge pull request #200 from nwparker/cloud/agents-creds
fix(cloud): Copilot CLI sign-in works in cloud workspaces (GitHub placeholder no longer overrides /login)
2026-11-10 01:36:09 -08:00
Neil bf7477e1ce refactor(cloud): run-action wake relaunch subscribes to wake progress itself (store stays under max-lines) 2026-11-10 01:35:06 -08:00
Neil 1095b509fc fix(cloud): Copilot CLI sign-in works in cloud workspaces (GitHub placeholder no longer overrides /login)
Copilot prefers GH_TOKEN/GITHUB_TOKEN over a stored /login. In Orca Cloud those hold the workspace
GitHub App placeholder, so every Copilot start said 'Resource not accessible by integration' and a
user who signed in could never use it. A wrapper drops the two placeholders for Copilot only, unless
BYOK is configured (no GitHub sign-in needed; gh in Copilot's shell keeps working).
2026-11-10 01:33:29 -08:00
Neil 118c74fb51 Merge remote-tracking branch 'private/cloud/integration' into cloud/run-actions-ports 2026-11-10 01:33:03 -08:00
Neil 7f4ff74bde Merge pull request #188 from nwparker/cloud/agents-picker
Orca Cloud agent pickers list only the agents the image ships
2026-11-10 01:28:09 -08:00
Neil 084369b74c Merge pull request #199 from nwparker/cloud/overage-100
feat(billing): overage $1.00 per sandbox hour (interim)
2026-11-10 01:28:08 -08:00
Neil dc0bf820ea feat(billing): overage $1.00 per sandbox hour (interim); plans.ts is the single source (setup script, e2e and spend-cap math read it); new Stripe TEST price 2026-11-10 01:26:39 -08:00
Neil 440e6b2737 Merge pull request #198 from nwparker/cloud/w9-eval
feat(cloud): acceptance region/size bench tools, external-result import, checkpoints verified, agent caps for user e2e
2026-11-10 01:22:24 -08:00
Neil f1aa875edc docs(cloud): checkpoints verified independently by W9 (host path + real git tests) 2026-11-10 01:21:08 -08:00
Neil 1c50f70acc Merge pull request #197 from nwparker/cloud/w2-wake-polish
fix(cloud): waking pill clears the pane header icons; predictive pill counts from the intent
2026-11-10 01:20:43 -08:00
Neil c9c0a0c65e feat(cloud): acceptance records owner-reported results (import-external); checkpoints capped until independent run 2026-11-10 01:20:19 -08:00
Neil f6b6c5141c feat(cloud): acceptance create-bench (host CPU/size/region), wake-split region + CPU per wake, bench-summary 2026-11-10 01:20:19 -08:00
Neil f9cc0f0c89 docs(cloud): agent caps lifted only by the user's own e2e session (no gateway runs) 2026-11-10 01:20:19 -08:00
Neil 84fc2c87e3 Merge pull request #191 from nwparker/cloud/code-checkpoints
feat(native-chat): per-turn code checkpoints; Rewind can also restore files
2026-11-10 01:18:54 -08:00
Neil afcb876aa9 fix(cloud): waking pill sits below the pane header icons (split/close stay clickable); a predictive wake's pill counts from the intent, not from the resume after its checks 2026-11-10 01:17:03 -08:00
Neil 434b89f36d fix(run-actions): keep every run with a live tab across reloads (restart replaces it); local runs that ended while unobserved read as exited after startup 2026-11-10 01:16:42 -08:00
Neil 027ca19046 fix(checkpoints): newline-safe undo coverage, path-matched workspace busy, focus Cancel
- assertUndoCovers never asks batch-check about a path with a newline (counts as
  unsaved), so answers can't shift.
- The workspace-busy probe matches rows by workspace id or worktree realpath and
  treats a truncated listing as busy.
- Rewind dialog opens with focus on Cancel; a disabled option reads as disabled.
- Notes: unreadable tracked deletes keep their staged blob; the turn-starting
  mark is process-local by design.
2026-11-10 01:14:22 -08:00
Neil 80af83cb46 fix(checkpoints): nested repos, undo coverage, workspace-wide busy; W10 copy
- Refuse a restore that would write or delete inside a nested repository, and
  verify every on-disk path it touches is in the undo tree first (git add can
  skip a path without failing).
- A turn counts as busy from its snapshot until the hand-off; terminal agents
  working in the workspace make restores refuse; the preview reports busy and
  the dialog disables the files choice.
- W10 copy: statement description, i18n plurals, state-dependent detail line,
  option directly under the description, 'The chat was rewound, but…' errors.
- Index restore keeps skip-worktree bits; large-file scan honours the deadline.
- Component fixture for the rewind prompt states.
2026-11-10 01:08:53 -08:00
Neil ce388262db test(e2e): live spec settles on a quiet chat, logs dispatch state 2026-11-10 01:08:53 -08:00
Neil 94d0d4041f test(e2e): live rewind-with-restore against a real Claude Code agent 2026-11-10 01:08:53 -08:00
Neil 6e1905851c fix(checkpoints): address data-loss review
- A restore that fails partway names its undo point; the error toast offers Undo.
- Refuse when an ignored file sits where the checkpoint needs a folder, or when
  a file to overwrite is unreadable (neither could be saved first).
- Busy check runs inside the per-worktree queue and covers every chat in the
  worktree; the rewind stays pending until files are back.
- add --ignore-errors exit 1 (unreadable/nested repo) no longer disables
  checkpoints; untracked files over 10 MB are left out of snapshots (saved only
  if a restore would overwrite them); one deadline per capture.
- Skip-worktree/assume-unchanged entries are left alone; stale temp indexes swept;
  retention never prunes the checkpoint just written.
2026-11-10 01:08:53 -08:00
Neil c43d52f48b feat(native-chat): per-turn code checkpoints; Rewind can also restore files
Before each turn a message opens, the host snapshots the chat's worktree as a
stash-like commit under refs/orca/checkpoints/<session>/turn/<item> (working
tree incl. untracked files, staged tree as second parent), via a private temp
index. HEAD, the branch, the user's index and the stash list are untouched.

Rewind to here now offers 'Also restore files (N changed)', on by default when
a snapshot exists. Restore first saves an undo checkpoint (also covering ignored
files it overwrites), refuses on merge conflicts or file/folder clashes before
writing anything, never moves HEAD, and restores staging only while HEAD is
unchanged. The toast offers Undo. Retention: newest 50 turn / 10 undo
checkpoints per chat, nothing older than 30 days.

Measured: capture p50 356 ms on a 40k-file repo, 637 ms on 200k files; restore
0.44 s / 0.78 s.
2026-11-10 01:08:53 -08:00
Neil cc771c6b30 fix(run-actions): premerge gate — async port registry (no sync fs on main/orcad), no casts, theme tokens, menu primitives 2026-11-10 01:08:35 -08:00
Neil 63b6999dee feat(cloud): pdx1 default region, iad1 fallback, golden per region; Standard = 8 vCPU / 16 GB (U17, U18) (#194)
* feat(cloud): pdx1 default region with iad1 fallback and one golden per region; Standard is 8 vCPU / 16 GB (U17, U18)

- golden_images and environment_builds record their region (0040, backfilled iad1); rotation,
  git-source builds, smoke and activation run per region; lifecycle picks the region's golden.
- New creates default to pdx1; a create with no pinned region falls back to iad1 automatically on a
  capacity/provider error (VERCEL_FALLBACK_REGIONS). Until pdx1 has an image, creates use iad1.
- Environment builds boot and smoke in their own region; workspaces from a build boot there.
- One size: Standard = 8 vCPU / 16 GB (ORCA_CLOUD_SANDBOX_SPEC). Legacy 'large' requests map to
  standard; 0040 rewrites existing large rows.

* merge cloud/integration (ORCA_CLOUD_SANDBOX_SPEC landed in #196)
2026-11-10 01:07:56 -08:00
Neil 97a53a98b7 Merge remote-tracking branch 'private/cloud/integration' into cloud/run-actions-ports 2026-11-10 01:04:17 -08:00
Neil 20f252aa1d fix(run-actions): Run button tolerates partial stores (tab-group tests) 2026-11-10 01:03:47 -08:00
Neil 3b0e985a74 fix(run-actions): Run button in tab strips, shortcut dispatched from terminals, a finished one-shot doesn't take the button
Found on m4air: with the right sidebar open the titlebar strip isn't rendered, so the button also
sits next to Quick Commands in the (focused) tab strip; workspace.run is dispatched by the global
keybinding handler; the primary action is the last one still running, else the default.
2026-11-10 01:02:02 -08:00
Neil b22512a759 Merge pull request #196 from nwparker/cloud/standard-8vcpu-copy
feat(cloud): one sandbox size (8 vCPU · 16 GB, 1×): billing and copy
2026-11-10 01:00:13 -08:00
Neil c893c5d570 Merge pull request #195 from nwparker/cloud/agents-node-ca
fix(cloud): orcad and its terminals trust the egress proxy's CA (Gemini CLI hung in cloud terminals)
2026-11-10 00:59:02 -08:00
Neil c997f9cf3c fix(cloud): orcad and its terminals trust the egress proxy's CA (Gemini CLI hung in every cloud terminal)
Hosts with credential rules (model APIs, api.github.com) are answered by Vercel's egress proxy with a
certificate from its CA. Vercel's command env trusts it (NODE_USE_SYSTEM_CA, NODE_EXTRA_CA_CERTS,
SSL_CERT_FILE) but orcad starts under env -i, so Node clients in terminals used Node's bundled roots:
Gemini CLI retried forever ('This is taking a bit longer') while the same call from a command
returned at once. Found on the live proof of the new agents; NODE_USE_SYSTEM_CA=1 in the terminal
fixed it there (1 s to the provider's answer).
2026-11-10 00:57:32 -08:00
Neil ff12245a82 feat(cloud): one sandbox size (8 vCPU · 16 GB, 1×) — billing counts every size 1×, plans/usage/run-on/env/CLI/phone copy from ORCA_CLOUD_SANDBOX_SPEC, size pickers removed 2026-11-10 00:54:28 -08:00