Repository navigation
test(evals): declare web-first worlds and provision resources lazily - #4762
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
|
Passed · 6/6 tests · 7/7 assertions · 5 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 (164934 ms), confidentiality-review (283148 ms), spec-provenance-review (344815 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 (3a9ec167e62f3ae8d0f0a872a375dbbdc0ee0c4b). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…line a case-level need Second-opinion review of #4849 (comment 5628206745, §4) and the audit correction (comment 5628261660): "Do not union prerequisites across a file: that would suppress its runnable launch world." 18d26d6 had declared OPENWORK_EVAL_RELEASED_BASELINE_BINARY as a journey-level need for released-enterprise-activated; only its update case needs it (released-enterprise-activated.e2e.test.ts:18-20), the launch case runs with the main binary alone. - The catalog declares the main binary only again and documents that `needs` means a whole-file blocker; case-level prerequisites stay in that case's own `needs` and skip with their own reason (the verdict counts such a skip as not tested, so the lane that runs this journey must provide both binaries to pass it — #4848). - The parity guard now computes whole-file blockers explicitly: the intersection of every `needs: { env }` declaration in the spec, plus env reads / platform checks leading to `throw new SkipError` in imported world bodies (which every case runs). Mixed-world unit test: a need one case declares is never promoted to the file; world-body guards always are; an optional env read without a SkipError is not a blocker. - `needs` vocabulary stays TestNeeds (needs.ts); no third authority. Per- scenario world plans remain #4771/#4762. node --test evals/scripts/journey-ci.test.mjs: 17 pass, 0 fail.
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.
…ourney failures (split of #4849, no workflow change) (#4901) * ci(evals): report packaged and macOS-only journeys as not applicable in the CI lane The scheduled Full regression selected six packaged enterprise journeys and computer-use-window-scope as local jobs, but no job in daytona-e2e.yml builds a packaged desktop binary or runs on macOS, so each one threw SkipError, recorded 'not tested', and turned red on every run. The lane could neither confirm nor refute changes to activation, updater or quit paths. Journeys now declare what they need beyond placement (an env var or a platform) in the catalog. The planner compares those needs with what the lane provides, excludes journeys it cannot satisfy from the matrix, and lists them in the plan and the verdict as 'not applicable' with the missing need. They no longer count toward passed, failed or not tested, so red means red. The packaged journeys stay covered against a real enterprise build by apps/desktop/scripts/packaged-smoke.mjs in ci-tests.yml on every PR and push. Building that binary inside the nightly is a follow-up. The 'only' dispatch input accepts a comma-separated list so a targeted run can name several journeys. * ci(evals): declare every lane prerequisite a journey guards and refuse delimiter-only filters Second-opinion review of #4849 (9ce91b0), §4 "Requirements and scope": - journey-catalog.mjs:26 declared only OPENWORK_EVAL_ELECTRON_BINARY for released-enterprise-activated, but the spec's update case also requires OPENWORK_EVAL_RELEASED_BASELINE_BINARY (released-enterprise-activated .e2e.test.ts:18-20). A lane providing only the main binary would have scheduled it and skipped. The catalog now names both. - TestNeeds (evals/packages/env/src/needs.ts:3-10) had no `platform`, so the catalog's `needs: { platform }` was planner-only vocabulary. `platform` now lives in TestNeeds and unmetNeeds checks it, and computer-use-window-scope declares `needs: { platform: "darwin" }` alongside its world guard (evals/worlds/computer-use.ts:73), so specs and catalog share one vocabulary. - Parity guard: for every catalog entry with `needs`, journey-ci.test.mjs statically scans the spec and the worlds it imports for `needs: { env, platform }` declarations and for `process.env.OPENWORK_EVAL_*` / `process.platform` checks leading to `throw new SkipError`, and fails on drift in either direction (spec-only addition -> red; catalog-only addition -> silently dropped coverage). Scoped to declared journeys because shared worlds (first-run.ts:582,725) carry scenario-specific guards; per-scenario world plans remain #4771's job. - selectJourneys (journey-catalog.mjs:76-78) treated `only=", ,"` as "run everything". Nonblank delimiter-only input now throws a clear error; blank input still selects everything. Unit-tested. node --test evals/scripts/journey-ci.test.mjs: 16 pass, 0 fail. * ci(evals): report unschedulable journeys as "skipped: lane cannot satisfy prerequisites" in every run Second-opinion review of #4849 (9ce91b0), §3 "Framing and downstream effects": unqualified "not applicable" makes an infrastructure omission sound intentional. The state is a coverage gap and is now named as one. - plan.json / journey-report.json field renamed `notApplicable` -> `excluded` (the only consumers are plan-journeys.mjs, journey-report.mjs and notify-journeys.mjs in the same workflow; nothing external reads it). - Human label everywhere: "skipped: lane cannot satisfy prerequisites" (journey-report.mjs EXCLUDED_LABEL). - The plan step summary and the Full regression verdict summary both print `N journeys skipped (prerequisites unmet)` followed by the list with each journey's unmet need, on every run — not only inside the artifact. The count line reads `P passed · F failed · N not tested · X skipped (prerequisites unmet)`. - Excluded journeys still count toward neither passed, failed nor not tested, a stray result for one cannot count as coverage, and an all-excluded selection still fails the plan job (now with the new wording). node --test evals/scripts/journey-ci.test.mjs: 16 pass, 0 fail. * ci(evals): alert on reclassified journeys as reclassified, never as recovered Second-opinion review of #4849 (9ce91b0), §3 "Must fix": notify-journeys.mjs:7-14 dropped the excluded journeys when validating the report, and :20-28 built incident state from executed entries only, so a journey that went failed -> excluded disappeared from `failures` and the next scheduled run would have announced "Recovered — all selected checks passed" without that journey ever passing. - validateReport keeps `excluded` (spec, name, reason; capped, no overlap with executed results) next to `entries` and `counts`. - Incident state gains `excluded: [spec]`. State written before this field existed reads as "nothing excluded". - A previously failing journey that is now excluded is reported as "reclassified: prerequisite unsatisfied (needs: ...)" with the summary "Executed checks passed — not a recovery"; "Recovered" is only said when nothing was reclassified. Failure alerts carry the excluded count in their count line and list excluded journeys with reasons. Healthy runs with persisting exclusions stay quiet; excluded -> passed is a healthy run. - Transition tests in evals/scripts/notify-journeys.test.mjs: failed -> excluded (reclassified, not Recovered), genuine recovery, excluded persists, excluded -> passed, payload counts/reasons, untrusted reasons escaped. - ci-tests.yml `openwork-tests-core` runs the new file alongside journey-ci.test.mjs and flake-report.test.mjs (evals `pnpm test` already globs scripts/*.test.mjs). node --test evals/scripts/journey-ci.test.mjs evals/scripts/flake-report.test.mjs evals/scripts/notify-journeys.test.mjs: 27 pass, 0 fail. * ci(evals): catalog needs mean whole-file blockers; keep released baseline a case-level need Second-opinion review of #4849 (comment 5628206745, §4) and the audit correction (comment 5628261660): "Do not union prerequisites across a file: that would suppress its runnable launch world." 18d26d6 had declared OPENWORK_EVAL_RELEASED_BASELINE_BINARY as a journey-level need for released-enterprise-activated; only its update case needs it (released-enterprise-activated.e2e.test.ts:18-20), the launch case runs with the main binary alone. - The catalog declares the main binary only again and documents that `needs` means a whole-file blocker; case-level prerequisites stay in that case's own `needs` and skip with their own reason (the verdict counts such a skip as not tested, so the lane that runs this journey must provide both binaries to pass it — #4848). - The parity guard now computes whole-file blockers explicitly: the intersection of every `needs: { env }` declaration in the spec, plus env reads / platform checks leading to `throw new SkipError` in imported world bodies (which every case runs). Mixed-world unit test: a need one case declares is never promoted to the file; world-body guards always are; an optional env read without a SkipError is not a blocker. - `needs` vocabulary stays TestNeeds (needs.ts); no third authority. Per- scenario world plans remain #4771/#4762. node --test evals/scripts/journey-ci.test.mjs: 17 pass, 0 fail. * ci(evals): announce a selection change (newly skipped journey) once, quietly thereafter Second-opinion review of #4849 (comment 5628206745, §3): "propagate count/reasons and selection changes through Slack/state". 31131a4 carried excluded journeys in state and distinguished reclassification from recovery, but a journey that moved from passing to excluded (a lane or catalog change removing coverage) stayed silent. - When prior state exists, journeys excluded now but not in `previous.excluded` (and not reclassified failures) are announced once as "Executed checks passed — coverage changed: N journey(s) newly skipped (prerequisites unmet)" with each journey's need; the next run with the same exclusions is quiet. State from before the field existed announces the current exclusions once. No prior state at all stays quiet. - Failure alerts already list every excluded journey with reasons and are unchanged. node --test evals/scripts/journey-ci.test.mjs evals/scripts/flake-report.test.mjs evals/scripts/notify-journeys.test.mjs: 29 pass, 0 fail. * ci(evals): distinguish unsatisfied lane prerequisites from executed journey failures, without workflow edits Split of #4849: every behavioural change lives in evals/scripts (planner, report, alert), evals/packages/env (TestNeeds.platform) and one spec's needs declaration. The two one-line .github/workflows edits (the `only` input description in daytona-e2e.yml and the explicit notify-journeys test in ci-tests.yml's core job) are dropped here so Warden can self-clear this PR; they stay in #4849, stacked on this branch, for a human review. Signed-off-by: Guillaume Loret <[email protected]> * test(evals): count a hard-error prerequisite guard as a whole-file blocker #4814 (merged after #4849 was written) turned the packaged-launch world's missing-binary SkipError into a plain Error. The catalog/spec/world parity test only recognised SkipError guards, so packaged-first-launch and packaged-activated-launch looked like drift although the lane still cannot run them. Recognise `throw new Error` in the same guard window, with a unit case. Signed-off-by: Guillaume Loret <[email protected]> --------- Signed-off-by: Guillaume Loret <[email protected]>
Stack and scope
First/core PR. CI follow-up: #4771, stacked on this branch. Review and merge the core first, then retarget the follow-up to dev. No automatic merges.
Verification — narrow diagnostics passed
Candidate: 3a9ec16. Node 24.15.0. Each command exited 0, zero skipped:
pnpm exec node --test evals/bin/evals.test.mjs: 23 passed.pnpm exec node --test evals/scripts/journey-ci.test.mjs: 13 passed.pnpm exec node --test evals/runner/stack-suite.test.ts: 6 passed.pnpm exec node --test evals/packages/hosts/test/provision.test.ts: 30 passed.Total: 72 passed, 0 failed, 0 skipped. Workflow and CI planner match the dev base exactly. The follow-up restores the exact original combined tree at 43b5ba2; validation was moved, not discarded.
Historical verification — not rerun on the split
Candidate bb6e10d, Node 24.15.0:
pnpm evals:e2e streamed-markdown-answer --local --engine v1 --case CONT-01: passed, exit 0. One selected case passed; three unrelated cases not selected. Real headless browser, server, engine and continuity assertions retained.Warden / readiness — incomplete
Warden automatically started on split head 3a9ec16: https://github.com/different-ai/openwork/actions/runs/34438673209 . CI/review completion remains pending; no clearance claimed.
Historical local
pnpm warden:checkon bb6e10d exited 1 with auth_failed. Expected diff-security-review, confidentiality-review and spec-provenance-review all had skipped scope and zero model usage; this was not a completed review. Historical refs were unchanged before/after (HEAD bb6e10d, origin/dev 4e63490). No native finding IDs were emitted.Readiness remains incomplete pending review and deferred proof. Do not merge automatically.