Repository navigation
fix(evals): preview-world sandbox listing works with the pinned Daytona CLI - #4772
Conversation
The Daytona CLI has no page flag: every released version (v0.191.0 through v0.211.2, including the v0.204.0 CI pin) paginates `sandbox list` with -c/--cursor and returns nextCursor. Follow that instead of -p/totalPages, which failed with "unknown shorthand flag: 'p'" since #4713.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 (7372 ms), confidentiality-review (2123 ms), spec-provenance-review (8636 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 (3c8acd011f1e1e7cd3eb706bc108a63ad568396d). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 6/6 tests · 7/7 assertions · 5 images Commit |
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,preview-worlditem, as narrowed by #4730's proof table: test 2 ("preview-desktop retains an exact blank published release…") fails onThe
-p <page>/totalPagesloop inevals/specs/preview-world.e2e.test.ts#daytonaSandboxesarrived with #4713 (1e6e54c16) and never ran green. The Daytona CLI has no page flag in any released version: I checkeddaytona sandbox list --helpon v0.191.0, v0.204.0 (thedaytona-e2e.ymlpin), v0.210.0 (local) and v0.211.2 (latest) — all expose only-c/--cursor,-f/--format,-l/--limit, and the JSON body carriesnextCursor(same conventionscripts/prune-daytona-dev-snapshots.mjsalready follows against the API). Pagination matters here: the org currently has 352 sandboxes, so-l 200returns two pages.What changed (one spec, evals only)
daytonaSandboxes()followsnextCursorwith--cursorinstead of-p/totalPages, stops on a missing/empty cursor or empty page, and throws if the CLI ever repeats a cursor (turns a would-be infinite loop into a clear failure). No assertion changed; no product code touched. Base isorigin/dev— #4730 (e2e/pooled-lane-harness) changes this spec's placement handling (strips the pooled slot overrides aroundworld up/down), but a single-spec run never prepares a pooled slot (shouldPrepareSuiteis false for one explicit file), so this fix does not depend on it. The two PRs touch different lines of the same file; whichever lands second rebases trivially.Proof —
pnpm evals:e2e preview-world --daytonaat3c8acd011f1e1e7cd3eb706bc108a63ad568396dOPENWORK_EVAL_REF=3c8acd011f1e1e7cd3eb706bc108a63ad568396dexported; Daytona CLI pinned to v0.204.0 (the CI pin,daytona/clientsrelease binary) onPATHto match the lane exactly; single-spec, no pooled slot, no placeholder slot variables (see above for why they are unnecessary here).Verdict: Passed (2 passed / 0 failed / 0 skipped). Every world in the log except test 1's intentional "omitted ref defaults to remote dev" step built
ref 3c8acd011…. All sandboxes the run created were torn down by the spec; a full cursor walk ofdaytona sandbox listafterwards found none of this run's stage names.Also exercised the new loop standalone against the live org with both the v0.204.0 and v0.210.0 binaries: 2 pages, 352 items, 352 unique ids each.
pnpm --dir evals typecheckreports no errors inspecs/preview-world.e2e.test.ts(the tree has pre-existing errors from unbuilt deps, as #4730 noted).Noticed, not touched
.opencode/skills/preview-my-work/scripts/update-preview.py:83runsdaytona exec <sandbox> -- python3 -c <shlex.quote(program)>; test(evals): make the pooled Daytona lane honour per-spec surface isolation #4730 reports this fails with CLI v0.210.0 and passes with v0.204.0 (the quoting assumes the CLI re-joins argv through a shell). I reproduced test 1 green only under the v0.204.0 pin. Worth fixing before CI bumps its pin.pnpm --dir evals test(lint:layers,spec-channel-ratchet,spec-boundary-ratchet) is red ondevbefore this PR, as test(evals): make the pooled Daytona lane honour per-spec surface isolation #4730 already lists.API v0.213 vs CLI v0.210version warning; I did not observe it onsandbox list -f jsonstderr with either v0.204.0 or v0.210.0, so I have not relied on it.