Skip to content

feat: run web automations in OpenWork Cloud - #3716

Merged
reachjalil merged 4 commits into
devfrom
codex/automation-runtime-placement
Aug 12, 2026
Merged

reachjalil merged 4 commits into
devfrom
codex/automation-runtime-placement

Conversation

@reachjalil

@reachjalil reachjalil commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

Summary

  • make the creating surface own immutable runtime placement: Desktop creates Desktop Automations; Web and Cloud Chat create OpenWork Cloud Automations
  • expose a Cloud-only createCloudAutomation capability while keeping the legacy creation route available only to first-party Desktop clients
  • run ordinary Cloud agent Automations as native headless OpenWork threads in the owner’s existing Cloud worker, waking stopped workers without requiring a desktop
  • persist worker, workspace, native thread, and deterministic user-message identities before prompt admission so lease recovery observes or submits exactly one turn
  • require current model authority and usable OpenWork Connect delivery before execution, with durable needs-attention receipts when access is unavailable
  • add bounded requests, absolute run deadlines, abort-and-observe cancellation, serializable cross-replica admission, and atomic wake/idle-stop reservations
  • retain answer, tool, terminal, and usage evidence in Den while leaving full native thread data in OpenWork Cloud
  • complete Den Web management for Cloud Automations: create/edit schedules, activate/deactivate, Run now, cancel, archive, live receipt refresh, native thread identity, events, and usage
  • keep Desktop copy and controls truthful for Desktop-owned versus Cloud-owned Automations
  • retain the saved Script Code Mode path introduced by Add MCP Apps provider foundation for Dynamic Artifacts #3689 and include the shared headless-thread package in the Den image

Runtime contract

  • Cloud creation requires Cloud to be enabled, an existing per-user Cloud worker, and a currently authorized model; it never silently allocates compute
  • a stopped worker remains eligible and is started when an occurrence becomes due
  • execution placement is immutable; moving an Automation between Desktop and Cloud requires recreating it from the intended surface
  • agent runs are never automatically replayed after prompt admission or an ambiguous failure, avoiding duplicate external side effects
  • Desktop and Web read the same Den schedules, run history, and durable receipts

Verification

  • Den API, Den Web, Desktop app, server, and eval TypeScript checks
  • Den API production build
  • 27 headless-thread client/transcript tests
  • 13 portable Automation tests
  • 17 Den Automation protocol tests
  • 10 Cloud lifecycle tests plus Cloud artifact-state tests
  • 40 focused server MCP sync, runtime guidance, and semantic-tool tests
  • Desktop cross-surface Automation receipt tests
  • Den Web test suite: 106 passing
  • repository diff check

The full Desktop app suite currently retains five failures also present outside this change: one stale Connect inventory assertion and four Bun SSR tests missing browser globals. The server suite is otherwise green but the local Bun runtime cannot resolve node:sqlite for its Node-specific test. A deployment-shaped Daytona journey—stopped container wake, live Connect/model execution, durable receipt, cancellation, and idle stop—remains required before merge and is not claimed by the mocked/local proof above.

@vercel

vercel Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview Aug 12, 2026 11:18am
openwork-den Ready Ready Preview Aug 12, 2026 11:18am
openwork-den-worker-proxy Ready Ready Preview Aug 12, 2026 11:18am
openwork-diagnostics Ready Ready Preview Aug 12, 2026 11:18am
openwork-landing Ready Ready Preview, v0 Aug 12, 2026 11:18am

diff-warden[bot]
diff-warden Bot previously approved these changes Aug 12, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (18cb24fbbaad24910df487a83d21d98da6e15237). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Aug 12, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (89d282228c77909c4e98fb63dfb51277ced53391). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (5a6d6942ec3d31b2cf7675d15d2bff13ac46ed11). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (ee54863f7246f04a72131ef1b8408af5b34c6504). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@reachjalil
reachjalil merged commit 3fe1478 into dev Aug 12, 2026
30 checks passed
@reachjalil
reachjalil deleted the codex/automation-runtime-placement branch August 12, 2026 14:10

This branch was successfully deployed

5 active deployments
Preview – openwork-den-worker-proxy — ee54863f Deployed Aug 12, 2026 by vercel[bot]
Preview – openwork-den — ee54863f Deployed Aug 12, 2026 by vercel[bot]
Preview – openwork-landing — ee54863f Deployed Aug 12, 2026 by vercel[bot]
Preview – openwork-app — ee54863f Deployed Aug 12, 2026 by vercel[bot]
Preview – openwork-diagnostics — ee54863f Deployed Aug 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant