Skip to content

fix(evals): preview-world sandbox listing works with the pinned Daytona CLI - #4772

Merged
yomgui merged 1 commit into
devfrom
e2e/preview-world-sandbox-list-flag
Sep 11, 2026
Merged

yomgui merged 1 commit into
devfrom
e2e/preview-world-sandbox-list-flag

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

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-world item, as narrowed by #4730's proof table: test 2 ("preview-desktop retains an exact blank published release…") fails on

daytona sandbox list -f json -l 200 -p 1
Error: unknown shorthand flag: 'p' in -p

The -p <page> / totalPages loop in evals/specs/preview-world.e2e.test.ts#daytonaSandboxes arrived with #4713 (1e6e54c16) and never ran green. The Daytona CLI has no page flag in any released version: I checked daytona sandbox list --help on v0.191.0, v0.204.0 (the daytona-e2e.yml pin), v0.210.0 (local) and v0.211.2 (latest) — all expose only -c/--cursor, -f/--format, -l/--limit, and the JSON body carries nextCursor (same convention scripts/prune-daytona-dev-snapshots.mjs already follows against the API). Pagination matters here: the org currently has 352 sandboxes, so -l 200 returns two pages.

What changed (one spec, evals only)

daytonaSandboxes() follows nextCursor with --cursor instead 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 is origin/dev — #4730 (e2e/pooled-lane-harness) changes this spec's placement handling (strips the pooled slot overrides around world up/down), but a single-spec run never prepares a pooled slot (shouldPrepareSuite is 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 --daytona at 3c8acd011f1e1e7cd3eb706bc108a63ad568396d

OPENWORK_EVAL_REF=3c8acd011f1e1e7cd3eb706bc108a63ad568396d exported; Daytona CLI pinned to v0.204.0 (the CI pin, daytona/clients release binary) on PATH to match the lane exactly; single-spec, no pooled slot, no placeholder slot variables (see above for why they are unnecessary here).

selection: engine=legacy surface=legacy case=all; placement: daytona (--daytona)
 ✓ |e2e| specs/preview-world.e2e.test.ts (2 tests) 862185ms
   ✓ preview worlds expose Den and real Electron, preserve progress on frontend update, and tear down only their own stage  575984ms
   ✓ preview-desktop retains an exact blank published release and tears down its two owned sandboxes  286200ms
 Test Files  1 passed (1)
      Tests  2 passed (2)
{"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona",…,"passed":2,"failed":0,"skipped":0,"verdict":"passed"}

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 of daytona sandbox list afterwards 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 typecheck reports no errors in specs/preview-world.e2e.test.ts (the tree has pre-existing errors from unbuilt deps, as #4730 noted).

Noticed, not touched

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.
@vercel

vercel Bot commented Sep 10, 2026

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 10, 2026 4:58am UTC
openwork-den Ready Ready Preview Sep 10, 2026 4:58am UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 4:58am UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 4:58am UTC

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native 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

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

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

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 6/6 tests · 7/7 assertions · 5 images

Commit 3c8acd011f1e1e7cd3eb706bc108a63ad568396d · selected evidence

Open review report

@yomgui
yomgui merged commit d223343 into dev Sep 11, 2026
28 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 3c8acd01 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 3c8acd01 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 3c8acd01 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 3c8acd01 Deployed Sep 10, 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