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
commented
Sep 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Deploying openwork with Cloudflare Pages
| Latest commit: |
83b0d75
|
| Status: | 🚫 Build failed. |
View logs
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
vercel
Bot
commented
Sep 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Sep 4, 2026
|
@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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
…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.
Capture checkpoint probe and cleanup command outcomes while the helper toolbox still exists. Make the existing provider fixture reject result reads after deletion.
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.
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.
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.
This branch was successfully deployed
4 active
deployments
Reviewers
OmarMcAdam
Awaiting requested review from OmarMcAdam
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|