Repository navigation
ci(evals): distinguish unsatisfied lane prerequisites from executed journey failures (split of #4849, no workflow change) - #4901
Conversation
…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.
…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.
…isfy 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.
…ecovered 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.
…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.
…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.
…ourney 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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
… workflow lines The planner/report/alert changes now live in #4901 (self-clearable by Warden). This branch keeps only the two one-line .github/workflows edits; the tree is unchanged. Signed-off-by: Guillaume Loret <[email protected]>
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 (43227 ms), confidentiality-review (64101 ms), spec-provenance-review (57624 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 (0eed3f04f88db8fa06ddaf534d07061af9a0704d). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (ef8ca24cbc46796683a63b16159be586c83a5fcb). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…ocker #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]>
|
Resynced with
Head |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (c877a381d89789d675eff7beaea618127c6b9e17). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
|
|
…merge) Signed-off-by: Guillaume Loret <[email protected]>
Split of #4849 (2026-09-11): this PR carries every behavioural change so Warden can self-clear it; #4849 is reduced to its two one-line
.github/workflowsedits, stacked on this branch, and waits for a human approving review.This PR stops scheduling journeys whose prerequisites the CI lane lacks and reports the resulting coverage exclusions explicitly. It adds no packaged or macOS execution coverage; reclassification is not recovery.
Problem (from #4849)
The scheduled Full regression in
daytona-e2e.ymlselects six packaged enterprise journeys andcomputer-use-window-scopeaslocaljobs, but no job in that workflow builds a packaged desktop binary or runs on macOS. Their world guards reject the missing prerequisite, the skip records not tested,evals/bin/evals.mjsexits 2, and the job is red. These journeys have never been successfully exercised by that lane since their introduction, so it neither confirms nor refutes #4809 / #4787 / #4805 for those paths.Change (all in
evals/)evals/packages/env/src/needs.ts:platformis aTestNeedsfield;computer-use-window-scope.e2e.test.tsdeclares it.evals/scripts/journey-catalog.mjs: journeys declareneeds: { env: [...] }/needs: { platform }in theTestNeedsvocabulary; theonlyfilter is a comma-separated list, and delimiter-only input (", ,") is rejected instead of selecting everything.evals/scripts/plan-journeys.mjs: journeys the lane (ciLane: Linux, no packaged binary) cannot satisfy are excluded from the matrix and reported asskipped: lane cannot satisfy prerequisiteswith each unmet need, inplan.jsonand the step summary; a filter matching only excluded journeys still fails the plan job (naming them).evals/scripts/journey-report.mjs: the verdict printsN journeys skipped (prerequisites unmet)+ the list on every run; excluded journeys count toward neither passed, failed nor not tested;okstill requires ≥1 executed journey.evals/scripts/notify-journeys.mjs(+ newnotify-journeys.test.mjs): the alert payload and incident state carry the excluded journeys; failing → excluded is announced as reclassified, not a recovery; a newly skipped journey is announced once as "coverage changed"; persisting exclusions stay quiet.evals/scripts/journey-ci.test.mjs: parity test — for every declared journey, the catalogneedsmust equal the intersection of the spec'sneeds: { env }and theSkipErrorguards in imported world bodies; drift in either direction fails.Full rationale, the
released-enterprise-activatedcase-level exception, the relationship to #4771, and follow-ups #4848 / #4885 are in #4849's body.Not in this PR (stays in #4849)
daytona-e2e.yml: theonlyinput's description string ("Comma-separated…"). The parsing lives here; the workflow still passesinputs.onlythroughONLY_FILTERunchanged, so comma-separated filters already work after this PR merges; only the dispatch form's help text lags.ci-tests.yml: addingevals/scripts/notify-journeys.test.mjsto the explicitCheck journey selection, reporting, and alertsstep ofopenwork-tests-core. Without it the new alert tests run only in the extended lane'spnpm test:eval-runnerglob (schedule/dispatch), not as a PR gate — so that one line is the part with real value in ci(evals): run the journey alert tests in the PR-blocking core job (gated remainder of #4849; scripts in #4901) #4849.Verification (head
c877a381d, resynced with dev; see the resync comment, local lane — CI planner/report/alert scripting with no runtime spec path;pnpm evals:e2e --publishdoes not apply)node --test evals/scripts/journey-ci.test.mjs evals/scripts/flake-report.test.mjs evals/scripts/notify-journeys.test.mjsONLY_FILTER=packaged node scripts/plan-journeys.mjs(evals)No automated journeys matched … 4 matched journey(s) are skipped because this lane cannot satisfy their prerequisitesONLY_FILTER=", ," node scripts/plan-journeys.mjs(evals)The only filter ", ," names no journeygit diff origin/dev...HEAD -- .githubThe live
daytona-e2e.ymldispatch on the pre-split head1a9ee322f(https://github.com/different-ai/openwork/actions/runs/34553623283:planexcluded exactly the 7 journeys with reasons, onelocal-journeyjob scheduled and passed, verdictok: true,excluded: 7) exercised the sameevals/scriptscode as this head; the only difference between the two trees is the two workflow lines above.