GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(den): run Cloud instances through the runtime contract with Daytona as an adapter by reachjalil · Pull Request #4445 · different-ai/openwork

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Merge status

Merged into dev on September 14 as f2fb0c861140022d9c6d7ed928416b500e8e82f0, after current-head Warden approval of 83b0d755c283acd8317b847b793c201d036a299f and passing required, API, SDK and database CI checks. The explicitly deferred full Cloud lifecycle integration run below remains unclaimed. #4446 is the remaining neutral-storage layer.

Summary

Part 2 of the Cloud runtime provider stack: Daytona implements SandboxProvider, while provisioning, adoption, wake, checkpoint/recycle, idle-stop and deletion policy live in the provider-neutral orchestrator. Existing configuration aliases, ownership checks, bounded caching and recovery behavior remain supported.

September 14 review fixes

Head: 83b0d755c283acd8317b847b793c201d036a299f.
Base: dev@d3e5f28aa325d363ee5be7283f542199ac410258.

The runtime/privacy fixes were approved at 3dcfcfbfb; that clearance is historical after this CI refresh. The current head additionally refreshes generated Gateway request-count SDK fields and fixes existing migration-history tests so valid migrations after 0097 remain pending rather than failing an end-of-history assumption. No production authentication behavior, CI workflow or checker policy was changed for generation; fresh current-head CI and review remain authoritative.

  • PFQ-5K3 — private legacy discovery: provider lookup keys are opaque. Legacy compatibility uses an owner/provider-labelled list, then compares observed names locally in memory. Display names are never sent as lookup keys or filters. Original candidate priority, image matching, ownership checks and bounded conflict recovery are preserved.
  • LXP-WKV — credential transport: bootstrap uses the raw-script branch of an exclusive command-or-script contract; the unsafe token-bearing command wrapper is removed. Daytona creates a UUID staging directory as 0700, uploads with a bounded deadline, sets the script to 0600, then submits only a path-based command. The interpreter opens the raw script, which disables tracing and unlinks itself before normal supervision. Async session logs and exit polling remain intact.
  • Staging errors are sanitized without upload bodies/causes. Cleanup is bounded. An unacknowledged upload retains its private parent to protect late writes; an ambiguous launch is neither retried nor eagerly unlinked. This removes argv/command-metadata exposure, not root/same-UID, memory or environment access.
  • BU3-DCY — desktop availability: the remote-session family is available when the existing desktop runner runtime is enabled or Cloud hosting is available. Cloud-target resolution separately rejects unavailable hosting before worker access/provisioning. Membership, write scope, existing Web entitlement, ownership and presence/consent checks remain enforced; Cloud availability cannot enable a disabled desktop runner.
  • Helper-level attention tests now explicitly claim store/selector/serialization coverage, not execution of the registered session.list_sessions action.
  • The existing first-use journey and HTTP witness now inspect private-script transport requests. No new journey file, CI workflow, checker-policy or review-policy change was introduced.

The three inline review conversations have specific commit/test replies and are resolved. Fresh review clearance and repository approval remain separate from resolving those conversations.

Verification

Verdict: Incomplete for the full Cloud lifecycle journey. Scoped checks below passed; missing integration execution is not represented as a pass.

Passed on this head:

  • Cloud runtime package: 72 passed, 0 failed.
  • Daytona adapter package: 49 passed, 0 failed.
  • Remote-session capability/wire/unauthenticated HTTP selection: 33 passed, 0 failed, 0 skipped.
  • App-web runtime fixture: 6 passed, 0 failed, 0 skipped.
  • Attention helper regressions: 3 passed, 0 failed, 0 skipped.
  • Evals typecheck: 449 source files, no errors.
  • Browser-code check: 944 callbacks, no errors.
  • The repaired offline migration-history/readiness selection passed 31/31 with zero failures/skips. API lint reports zero errors and 39 unchanged baseline warnings; SDK typechecking passed.
  • Runtime-package and Den API production typechecks passed during implementation; diff whitespace checks passed.

Commands:

pnpm --filter @openwork-ee/cloud-runtime exec bun test --conditions development src
pnpm --filter @openwork-ee/cloud-runtime-daytona exec bun test --conditions development src
pnpm --filter @openwork-ee/den-api exec bun test --conditions development test/remote-session-capabilities.test.ts test/remote-session-capability-wire.test.ts test/agent-mcp-routes.test.ts
pnpm --dir evals exec node --test packages/env/test/app-web-runtime.test.ts
pnpm evals:pr specs/session-attention-rollup.test.ts
pnpm --dir evals typecheck
pnpm evals:check-browser

Deferred / known limits:

  • The SQL-backed remote-session-first-use.test.ts journey, actual connected-desktop delivery and live Web/VM canary were not run. Local MySQL/Redis remain unavailable; no replacement services or paid sandbox were started. Previous journey receipts apply only to their recorded heads.
  • Layer lint reports 54 violations also reproduced on clean dev@6ef027216; no layer/checker policy was weakened. A separate inherited environment-fixture type error was reproduced on that clean control and fixed without changing values or assertions.
  • Private staging residue is possible if filesystem operations or launch acknowledgement never complete. Normal script opening self-unlinks; failure cleanup does not claim cancellation of remote work.
  • The merge receipt and approved head are recorded above. No production deployment or full lifecycle run is claimed by these results.

Stack

#4444 is merged. This PR targets dev; #4446 remains stacked on this branch. Merge this layer first, then rebase/retarget #4446 to fresh dev and refresh its checks.

UI/UX impact

No layout, icon, color or navigation changes. Authorized desktop handoffs remain discoverable on deployments without Cloud hosting; unsupported Cloud targets receive a Cloud-specific error. Existing Cloud worker naming and endpoint behavior are retained. Launch failure diagnostics are sanitized rather than exposing provider request contents.

Risk and rollback

This is a substantial lifecycle extraction. The integration gap remains explicit. Reverting this PR restores the direct Daytona path without a schema migration; legacy PROVISIONER_MODE remains accepted. A new production hosting adapter is outside this PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 83b0d75
Status:🚫  Build failed.

View logs

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vercel

vercel Bot commented Sep 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 14, 2026 7:46pm UTC
openwork-den Ready Ready Preview Sep 14, 2026 7:46pm UTC
openwork-diagnostics Ready Ready Preview Sep 14, 2026 7:46pm UTC
openwork-landing Ready Ready Preview, v0 Sep 14, 2026 7:46pm UTC
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 4, 2026
feat(den): add the cloud runtime provider contract and move the sandbox bootstrap out of the Daytona module #4444
Merged
feat(den): store Cloud instances in a provider-neutral table and tell clients how endpoints behave #4446
Merged
@vercel
vercel Bot deployed to Preview – openwork-diagnostics September 4, 2026 20:40
View deployment
@vercel
vercel Bot deployed to Preview – openwork-app September 4, 2026 20:40
View deployment
@vercel
vercel Bot deployed to Preview – openwork-den September 4, 2026 20:40
View deployment
@vercel
vercel Bot deployed to Preview – openwork-landing September 4, 2026 20:40
View deployment
@benjaminshafii
benjaminshafii requested a review from OmarMcAdam September 4, 2026 20:48
@benjaminshafii

benjaminshafii commented Sep 4, 2026

Copy link
Copy Markdown
Member

@OmarMcAdam Please review the Cloud lifecycle orchestration and provider configuration alias in this stack. Live lifecycle journey proof is explicitly incomplete. Keep the dependency on #4444 until it is reviewed and merged.

Holding for your review under the current merge instructions.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@reachjalil
reachjalil force-pushed the feature/cloud-runtime-daytona-adapter branch from b4dde7f to 778acbd Compare September 5, 2026 23:11
@vercel
vercel Bot deployed to Preview – openwork-diagnostics September 5, 2026 23:12
View deployment
@vercel
vercel Bot deployed to Preview – openwork-app September 5, 2026 23:12
View deployment
@vercel
vercel Bot deployed to Preview – openwork-landing September 5, 2026 23:12
View deployment
@vercel
vercel Bot deployed to Preview – openwork-den September 5, 2026 23:13
View deployment
@reachjalil
reachjalil force-pushed the feature/cloud-runtime-contract branch from 4a24ba4 to 58f2312 Compare September 6, 2026 00:03
@reachjalil
reachjalil force-pushed the feature/cloud-runtime-daytona-adapter branch from 778acbd to a79ef27 Compare September 6, 2026 00:03
@vercel
vercel Bot deployed to Preview – openwork-diagnostics September 6, 2026 00:04
View deployment
@vercel
vercel Bot deployed to Preview – openwork-den September 6, 2026 00:04
View deployment
@vercel
vercel Bot deployed to Preview – openwork-app September 6, 2026 00:04
View deployment
@vercel
vercel Bot deployed to Preview – openwork-landing September 6, 2026 00:04
View deployment
@reachjalil
reachjalil changed the base branch from feature/cloud-runtime-contract to dev September 6, 2026 00:51
@reachjalil
reachjalil force-pushed the feature/cloud-runtime-daytona-adapter branch from a79ef27 to 2e51daa Compare September 6, 2026 00:51
@vercel
vercel Bot deployed to Preview – openwork-diagnostics September 6, 2026 00:52
View deployment
@vercel
vercel Bot deployed to Preview – openwork-app September 6, 2026 00:52
View deployment
@vercel
vercel Bot deployed to Preview – openwork-landing September 6, 2026 00:52
View deployment
@vercel
vercel Bot deployed to Preview – openwork-den September 6, 2026 00:52
View deployment
github-actions[bot]
github-actions Bot reviewed Sep 6, 2026
View reviewed changes
Comment thread ee/packages/cloud-runtime/src/orchestrator/orchestrator.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@reachjalil
reachjalil force-pushed the feature/cloud-runtime-daytona-adapter branch from 2e51daa to e93e332 Compare September 6, 2026 06:56
@vercel
vercel Bot deployed to Preview – openwork-diagnostics September 6, 2026 06:57
View deployment
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 14, 2026
View reviewed changes

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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 (3dcfcfbfb8a252e4a7a10b745ea99308de8823bc). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
reachjalil added 25 commits September 14, 2026 12:42
@reachjalil
feat(den): run Cloud instances through the runtime contract with Dayt…
ffefeeb
…ona as an adapter

Move Den's Cloud lifecycle policy (provision, adopt on conflict, wake,
version-aware recycle, idle stop, checkpoint flush, deprovision) into a
provider-neutral orchestrator in @openwork-ee/cloud-runtime, driven only by
the SandboxProvider contract and a RuntimeInstanceStore. The former Daytona
module becomes @openwork-ee/cloud-runtime-daytona: SDK calls, state and error
mapping, signed preview endpoints, session exec, shared-volume storage, and
the short-lived probe and cleanup helpers. Den's lifecycle, access resolver,
cloud routes, automation executor, and remote-session gate now ask the
runtime registry whether a provider is configured instead of comparing the
provisioner name, and startup failures classify from typed error codes before
falling back to message text.

CLOUD_RUNTIME_PROVIDER names the host; PROVISIONER_MODE remains an alias. The
Daytona SDK is a dependency of the adapter package only. Instance records keep
their current table; the record type read by Den is already neutral
(endpointUrl, endpointExpiresAt, opaque sandbox reference).

The provisioning, wake-convergence, recycle, and name-lookup scenarios move
from the Daytona test file to the orchestrator suite against the in-memory
fake provider; the adapter carries its own mapping tests; the lifecycle tests
drive a real orchestrator over the fake host.
@reachjalil
fix(den): read helper results before deleting Daytona sandboxes
d0ecb88
Capture checkpoint probe and cleanup command outcomes while the helper toolbox still exists. Make the existing provider fixture reject result reads after deletion.
@reachjalil
test(den): extend first-use proof through cloud lifecycle recovery
6683824
Cover same-worker wake, endpoint refresh, failed restore preservation, and version recycle with an unaffected second member. Use a stateful SDK HTTP witness with ambient assertions, not Linux bootstrap execution.

Local Den proof remains incomplete: MySQL refuses connections, Docker storage is read-only, and Redis rejects writes. Provider regression tests and direct SDK HTTP lifecycle smoke pass; rerun the Den journey after local services recover.
@reachjalil
fix(den): keep Cloud labels neutral and prove member isolation
4b100f7
@reachjalil
fix(den): isolate Cloud runtime names and adoption by owner
3e01af5
@reachjalil
test(den): use synthetic worker identities in collision proof
7d1a01d
@reachjalil
test(den): scope provisioning proof to HTTP API behavior
9d19582
@reachjalil
test(den): assert owner-only provider labels
6f2119a
@reachjalil
test(den): account for neutral SDK language metadata
95b6930
@reachjalil
test(den): preserve legacy Cloud availability boundaries
c65a894
@reachjalil
fix(den): refresh recovery state and snapshot orphan cleanup
c87edb9
@reachjalil
fix(den): bound Daytona cache and recover all Cloud resources
807b9ac
@reachjalil
test(den): prove Cloud recovery and orphan cleanup failures
6bcd01b
@reachjalil
test(den): add attached managed Web browser canary
359cee6
@reachjalil
test(den): distinguish CLI-managed Web restart smoke
11b41b2
@reachjalil
test(den): require headed Chrome for live canary
655fe02
@reachjalil
test(den): quote CLI runtime restart command
a62c98d
@reachjalil
test(den): assert the ready Web workspace contract
8b2786b
@reachjalil
test(den): wait for CLI runtime state transitions
1001472
@reachjalil
test(web): align CLI canary with UI and worker contracts
364f1a7
@reachjalil
test(web): reject explicit engine write denials
a077ad6
@reachjalil
test(web): scope canary evidence to engine read results
ef0c160
@reachjalil
test(evals): align runtime fixtures with current contracts
ceef13e
@reachjalil
fix(den): secure runtime launch and legacy discovery
a697d69
Keep bootstrap credentials out of command arguments, match legacy names only within owner-scoped results, and preserve desktop dispatch without Cloud hosting. Align the covering fixtures and their verification claims with these boundaries.
@reachjalil
fix(den): refresh generated contracts and migration expectations
83b0d75
@reachjalil
reachjalil dismissed diff-warden[bot]’s stale review via 83b0d75 September 14, 2026 19:44
diff-warden[bot]
diff-warden Bot approved these changes Sep 14, 2026
View reviewed changes

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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 (83b0d755c283acd8317b847b793c201d036a299f). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@reachjalil reachjalil mentioned this pull request Sep 15, 2026
fix(cloud): never restart a busy Web sandbox #5007
Merged
@yomgui yomgui mentioned this pull request Sep 16, 2026
docs(declarative-org): add mcpConnections example, conditional-write handling and per-resource omission semantics #4976
Merged

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 83b0d755 Deployed Sep 14, 2026 by vercel[bot]
View deployment
Preview – openwork-app — 83b0d755 Deployed Sep 14, 2026 by vercel[bot]
View deployment
Preview – openwork-den — 83b0d755 Deployed Sep 14, 2026 by vercel[bot]
View deployment
Preview – openwork-diagnostics — 83b0d755 Deployed Sep 14, 2026 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@github-actions github-actions[bot] github-actions[bot] left review comments
@diff-warden diff-warden[bot] diff-warden[bot] approved these changes
@OmarMcAdam OmarMcAdam Awaiting requested review from OmarMcAdam

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@reachjalil @benjaminshafii
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.