Repository navigation
ci(evals): consume explicit world plans in product journeys - #4771
Draft
benjaminshafii wants to merge 1 commit into
Draft
benjaminshafii wants to merge 1 commit into
benjaminshafii wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
yomgui
added a commit
that referenced
this pull request
Sep 11, 2026
…e 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.
yomgui
added a commit
that referenced
this pull request
Sep 11, 2026
…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.
yomgui
added a commit
that referenced
this pull request
Sep 11, 2026
…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]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stack and dependency
Second PR, stacked on #4762 (
test/explicit-web-desktop-worlds). Requires its shared world parser and resource declarations. Review this PR against that branch; merge the core first, then retarget this follow-up to dev. No automatic merges.Scope
Verification — narrow diagnostics passed
Node 24.15.0 on candidate ab6cddf. Each command exited 0, with 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: 9 passed, including all 3 moved workflow tests.pnpm exec node --test evals/packages/hosts/test/provision.test.ts: 30 passed.Total: 75 passed, 0 failed, 0 skipped. Frozen evals dependency install succeeded. No heavy runtime journeys rerun, per requester scope.
Historical runtime/ratchet evidence and unresolved typecheck classification remain documented in #4762; these diagnostics do not replace deferred Daytona/v2/native/multi-file runtime proof.
Review status — incomplete
Live Warden workflow schema accepts only pull_request events targeting dev, with no workflow_dispatch. This stacked base therefore has no supported Warden trigger; no clearance claimed. Keep draft pending independent review / Warden after retargeting. No merge requested or enabled.