Repository navigation
test(evals): make the pooled Daytona lane honour per-spec surface isolation - #4730
Conversation
A second seed.web() in one spec relaunched Chromium against the same /tmp/daytona-chrome-<name> profile, hit the profile lock and never exposed CDP (HTTP 502 in signup-workspace-intent). Stamp the profile and log per spawn like spawnElectron already does.
DaytonaPlacementHost handed the worker's prepared sandbox to every surface,
so two-daytona-desktops received the same sandbox twice by construction.
Add seed.desktop({ ownSandbox: true }) so a journey about two sandboxes
provisions the second one instead of borrowing the pooled slot; every
other multi-desktop world keeps sharing the slot.
…off pooled slots scim-okta-lifecycle flips sso_connection in the testkit database, which only a local Den exposes: register it with placement local and declare the need so a Daytona run reports the missing prerequisite instead of failing. preview-world launches its own worlds, which refuse borrowed infrastructure; hide the pooled worker's slot overrides from them and restore the environment afterwards.
… selected one Since #4608 a public first launch provisions and selects an 'OpenWork Chat' workspace, so createAndSelectWorkspace saw a selected workspace and returned it without creating the requested folder (workspace() finished in 133 ms in the pooled lane). artifact-code-browser then wrote files into that workspace and chmod failed on the requested path. Create when the selected workspace is not at the requested folder.
command-palette-pin-rename picked Meta+K from the runner's platform and sent it to a Linux Daytona desktop, where the palette never opened. Choose from place.kind like streamed-markdown-answer does.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (104858 ms), confidentiality-review (130044 ms), spec-provenance-review (200523 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (99a56b7e98f1f63418c2e0204512621202ac6e7c). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Deploying openwork with
|
| Latest commit: |
a9b667b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8b3fb9cc.openwork.pages.dev |
| Branch Preview URL: | https://e2e-pooled-lane-harness.openwork.pages.dev |
Resync with
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (2bee390a9734aad3c5c2024afbe36fdfa8237aac). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (a9b667bc11fbbd28227587b37e8d8769063ab3ec). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Resynced with
|
…rst-launch default (closes the #4608 adoption trap for every world) (#4817) * test(evals): create the empty-session workspace at its declared tmp path The emptySession world declared /tmp/openwork-empty-session-<ts> but seed.workspace() adopted the existing first-launch default workspace instead ("OpenWork Chat" under the dev profile home). On Daytona that profile lives inside the repo checkout, so the engine merged /workspace/.opencode/opencode.json ("permission": "allow") over the workspace's own catch-all and composer-run-mode never saw the workspace MCP rule take effect. * test(evals): name the server error when a run-mode read is not 200 * fix(app): reuse the running OpenWork server when the selected workspace is server-owned Workspaces created from the app live only in the server registry, so a renderer reload reaches startServerWithoutDesktopWorkspace and restarted the embedded server (and its engine) although it was healthy and already serving that workspace. Reuse it when it is ready with the preferred remote-access mode; only restart when nothing usable is running. * test(evals): create the declared workspace when first launch already selected one Since #4608 a public first launch provisions and selects an 'OpenWork Chat' workspace inside the dev profile, which sits inside the repo checkout on both lanes. createAndSelectWorkspace saw that selection and returned it without creating the folder the world declared, so 68 seed.workspace() call sites ran in a workspace whose ancestor .opencode/opencode.json ('permission: allow') shadowed every workspace-level policy they wrote. Create when the selected workspace is not at the requested folder; create:true keeps forcing creation. Lifts commit 61f1089 from #4730 onto dev so it can land on its own; the Seed.workspace contract now states the semantics. * test(evals): make seed.session({ title }) wait until the app lists the title seed.sessions() already renames through renameSessionAndWait and verifies the titles are listed; seed.session() fired session.rename and returned. Running worlds in their declared (freshly created) workspace made that gap visible: specs clicked a sidebar row by its seeded title while the list still showed the placeholder, so the arrangement now settles the title before handing back.
Resolves evals/packages/testkit/src/spec/runtime.ts: both sides made the same change to seed.session() (wait through renameSessionAndWait like sessions()) and differed only in the comment; dev's landed wording is kept, so the merged file is identical to dev and its per-spec surface isolation, declared-workspace creation and lazy provisioning (#4730, #4817, #4762) are untouched.
Root cause
Triage
reports/e2e-red-2026-09-09/triage.md(local folder/Users/guillaume/OpenWork Chat/reports/e2e-red-2026-09-09/), Cluster 3 — Pooled Daytona lane vs. per-spec assumptions and Cluster 4 — Spec assumes runner platform. Five harness defects, no product change:hosts/src/daytona.ts#spawnChromeused one fixed/tmp/daytona-chrome-<name>profile, so a secondseed.web()in one spec (signup-workspace-intent, "mobile setup") relaunched Chromium against a locked profile and never exposed CDP (502). Only visible when both Chromes share a sandbox (pooled lane).env/src/place.tsDaytonaPlacementHost#provisionhanded the worker's prepared sandbox to every surface, sotwo-daytona-desktopsgot the same sandbox twice by construction.scim-okta-lifecycleflipssso_connectionin the testkit database, which only a local Den exposes;preview-worldlaunches worlds that refuse borrowed infrastructure and the pooled worker exportsOPENWORK_EVAL_DAYTONA_{DEN,DESKTOP}_SANDBOX.artifact-code-browser'schmod: cannot access …/restrictedwas not a sandbox mix-up: since Streamline first launch and complete onboarding before desktop return #4608 (51c0ab92f) a public first launch provisions and selects an "OpenWork Chat" workspace, socreateAndSelectWorkspacefound a selected workspace and returned it without creating the requested folder (workspace()finished in 133 ms in the failing trace vs ~9 s when it really creates). Files were written into the bootstrap workspace and the chmod hit the requested, never-created path. Race-dependent, so it also explains the CI flake on this spec since Sep 8.command-palette-pin-renamechoseMeta+Kfrom the runner'sprocess.platformand sent it to a Linux desktop.What changed (evals only)
spawnChromestamps profile + log per spawn (<name>-<stamp>-<port>), likespawnElectron; unit test added.seed.desktop({ ownSandbox: true })→ElectronSurfaceOptions.ownSandbox→DaytonaPlacementHost#provisionprovisions a fresh sandbox instead of the pooled slot. OnlytwoDaytonaDesktopsWorlduses it (desktopb); every other multi-desktop world keeps sharing the slot.journey-catalog.mjs:scim-okta-lifecycle→placement: 'local'; the spec also declaresplacement: "local"in itsneedsso a Daytona run reports the missing prerequisite instead of a bare failure.preview-worlddeletes the four slot overrides fromprocess.envaround itsworld up/downcalls and restores them.createAndSelectWorkspace: when a workspace is already selected, create anyway unless its reportedpathequals the requested one (window.__openwork.slice("route").workspaces[].path; typed inbrowser-globals.d.ts).command-palette-pin-rename: shortcut fromplace.kind, asstreamed-markdown-answeralready does.Proof — all at
99a56b7e98f1f63418c2e0204512621202ac6e7c(OPENWORK_EVAL_REFexported,source verifiedin every log)pnpm evals:e2e command-palette-pin-rename --daytonaplacement: daytona (--daytona)pnpm evals:e2e signup-workspace-intent --daytonaOPENWORK_EVAL_MAX_WORKERS=1, one prepared den+desktop slot, files run sequentially on it)OPENWORK_EVAL_MAX_WORKERS=1 pnpm evals:e2e two-daytona-desktops artifact-code-browser signup-workspace-intent --daytonaworkspace()now 10 s = real creation; restricted-folder step green); two-daytona-desktops died in provisioning of sandboxb(Daytona API 502 during source checkout, no assertion reached)OPENWORK_EVAL_MAX_WORKERS=1 pnpm evals:e2e two-daytona-desktops command-palette-pin-rename --daytonaaon the prepared slot,bon its own sandbox, both deleted--local, local MySQL/Redis)pnpm evals:e2e scim-okta-lifecycle --localplacement: local (--local)OPENWORK_EVAL_DAYTONA_DESKTOP_SANDBOX/_DEN_SANDBOXexported as placeholders; the spec never provisions through them, the guard only checks presence), Daytona CLI pinned to CI's v0.204.0pnpm evals:e2e preview-world --daytonadaytona sandbox list … -p 1→unknown shorthand flag: 'p'with CLI v0.204.0 (CI pin) and v0.210.0 alike. That test and the-pflag were added by #4713 (1e6e54c16), merged after the last nightly; it is red ondevindependently of this PR.Verdict for this PR's five defects: Passed for (1), (2), (4), (5) and for the
scim-okta-lifecyclehalf of (3); thepreview-worldhalf is Incomplete only because of the unrelated #4713-pregression in its second test.Unit checks:
node --test runner/*.test.ts packages/*/test/*.test.ts bin/*.test.mjs scripts/*.test.mjs→ 296/297 (the one failure ispackages/labs/test/mock-google.test.ts, pre-existing and unrelated).pnpm --dir evals typecheckreports no errors in touched files (the tree has pre-existing errors from unbuilt deps).Noticed, not touched
preview-worldtest 2 usesdaytona sandbox list -p <page>, which the Daytona CLI (v0.204.0 pinned in CI, v0.210.0 locally) rejects — regression from feat(preview): launch blank published desktop releases #4713, will fail the next nightly.update-preview.pyremote step fails (daytona exec … python3 -cnon-zero); passes with v0.204.0. CLI-version sensitivity in.opencode/skills/preview-my-work/scripts/update-preview.py.provisionDesktopSandboxonly deletes release-owned sandboxes when a gate fails after creation; a source sandbox whose checkout gate 502s is left running (I deletedopenwork-connector-b-20260910-021502-…by hand).pnpm --dir evals testis red ondevbefore this PR:lint:layers(39specs-use-testkit-onlyviolations),spec-channel-ratchet(stale/increased baselines) andspec-boundary-ratchet(opencode-v2-provider-hot-inject.test.ts).test-run.jsonrecords the runner worktree'sgitSharather thanOPENWORK_EVAL_REF(already listed in the triage).