Skip to content

ci(evals): run the journey alert tests in the PR-blocking core job (gated remainder of #4849; scripts in #4901) - #4909

Open
yomgui wants to merge 14 commits into
devfrom
e2e/lane-packaged-journeys
Open

yomgui wants to merge 14 commits into
devfrom
e2e/lane-packaged-journeys

Conversation

@yomgui

@yomgui yomgui commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Remainder to review (head 029af621d, +2/−2 in 2 files): one line in .github/workflows/ci-tests.yml adding evals/scripts/notify-journeys.test.mjs to the PR-blocking openwork-tests-core check, and one only input description line in .github/workflows/daytona-e2e.yml; all scripts/tests already landed on dev via #4901 (3a2e03a3d), and the branch was resynced with one signed --no-ff merge of origin/dev (no conflicts) so the diff is now exactly this.

Reduced on 2026-09-11 to the approval-gated part. All planner/report/alert changes, the TestNeeds.platform field and the spec needs declaration were split out to #4901, which Warden can self-clear; this PR is now stacked on that branch. The original description is preserved below for history.

What is left here (needs one human approving review)

Two files, one changed line each:

File Line Why it matters
.github/workflows/ci-tests.yml Check journey selection, reporting, and alerts in openwork-tests-core also runs evals/scripts/notify-journeys.test.mjs This is the valuable line. openwork-tests-core is the PR-blocking job. Without it the new alert-transition tests (reclassified ≠ recovered, coverage-changed announced once, excluded persists quietly) only run in openwork-tests-extended's pnpm test:eval-runner glob, and that job runs on schedule / workflow_dispatch only (ci-tests.yml:226).
.github/workflows/daytona-e2e.yml only input description: "Comma-separated substring filters…" Discoverability only. The parsing lives in journey-catalog.mjs (#4901) and the workflow passes inputs.only through ONLY_FILTER unchanged, so comma-separated filters already work once #4901 merges. Could be dropped without loss; kept so the dispatch form does not lie.

Warden never self-clears a PR touching .github/ (warden-clearance.yml:100-107), so this needs @benjaminshafii or another human approver. Merge order: #4901 first, then this (GitHub retargets it to dev when #4901's branch is deleted; the added test file only exists with #4901 in the tree).

Head after the split: 401f6afb1 (a -s ours merge of #4901's branch; tree unchanged, no history rewritten).


Original description (pre-split, evidence refers to head 1a9ee32)

This PR stops scheduling journeys whose prerequisites this lane lacks and reports the resulting coverage exclusions explicitly. It adds no packaged or macOS execution coverage. Full-lane PR checks already run five packaged specs; released-binary and native-macOS gaps remain. Reclassification is not recovery.

Problem

The scheduled Full regression in daytona-e2e.yml selects six packaged enterprise journeys and computer-use-window-scope as local jobs, but no job in that workflow builds a packaged desktop binary or runs on macOS (daytona-e2e.yml:225–260 uses Linux and prepares development dependencies only). Their world guards reject the missing prerequisite (evals/worlds/packaged-first-launch.ts:132–134, packaged-preactivation-updater.ts:53–55, packaged-preactivation-egress.ts:91–93, desktop-quit-path.ts:50–52, released-enterprise-activated.ts:302–304, computer-use.ts:71–82), the skip records not tested, evals/bin/evals.mjs:429–439 exits 2, and the job is red.

packaged-first-launch, packaged-activated-launch, packaged-preactivation-updater, packaged-preactivation-egress (#4809), released-enterprise-activated, desktop-quit-path (#4787), computer-use-window-scope.

These journeys have never been successfully exercised by this scheduled lane since their introduction. The evening run had seven incomplete jobs; the morning run had five (quit and egress landed later that day, #4787/#4809). Computer Use ran on Daytona, and its world requires local macOS/AppKit. The lane therefore neither confirms nor refutes #4809 / #4787 / #4805 for these paths; see reports/e2e-gate-baseline-2026-09-10.md.

Change

Journeys declare what they need beyond placement in journey-catalog.mjs (needs: { env: [...] }, needs: { platform }) in the same TestNeeds vocabulary the specs use — platform is now a TestNeeds field (evals/packages/env/src/needs.ts) and computer-use-window-scope declares it. plan-journeys.mjs compares each selected journey against what the lane provides (ciLane: Linux, no packaged binary):

  • journeys the lane cannot satisfy are excluded from the matrix and reported as skipped: lane cannot satisfy prerequisites with each unmet need, in plan.json, in the plan step summary, and in the verdict summary — on every run, as N journeys skipped (prerequisites unmet) followed by the list;
  • they count toward neither passed, failed nor not tested. Green means "executed checks passed; coverage incomplete", and the incompleteness is printed next to the verdict;
  • the alert script (notify-journeys.mjs) carries the excluded journeys (counts + reasons) in its payload and incident state. A journey that moves from failing to excluded is announced as reclassified: prerequisite unsatisfied — not a recovery; "Recovered" is only said when nothing was reclassified. A selection change (a journey newly skipped that was not failing) is announced once as "coverage changed"; persisting exclusions stay quiet;
  • catalog needs explicitly mean whole-file blockers. A parity test computes, for every declared journey, the intersection of the spec's needs: { env } declarations plus SkipError guards in imported world bodies (process.env.OPENWORK_EVAL_*, process.platform), and fails on drift in either direction, with a mixed-world unit test. released-enterprise-activated keeps the main binary as its only journey-level need: its update case alone needs OPENWORK_EVAL_RELEASED_BASELINE_BINARY (released-enterprise-activated.e2e.test.ts:18–20) and skips itself with its own reason — a journey-level baseline need would have silently dropped the runnable launch case. The verdict counts that case skip as not tested, so the lane that runs this journey must provide both binaries (Nightly Full regression: build the packaged enterprise desktop once and run the packaged journeys against it #4848);
  • the existing vacuous-green guards are untouched: a filter matching only excluded journeys still fails the plan job (naming them), ok still requires ≥1 executed journey, and a stray result for an excluded journey cannot count as coverage;
  • the only dispatch input accepts a comma-separated list; nonblank delimiter-only input (", ,") is rejected instead of selecting everything.

What this does not do

It does not build the enterprise binary in this lane (option A, #4848) and adds no macOS execution. Coverage of the packaged journeys against a real enterprise build exists today only in apps/desktop/scripts/packaged-smoke.mjs (ci-tests.yml full lane), which runs the same five spec files unfiltered against an electron-builder --linux --dir enterprise package on every full-lane PR and every dev push (docs-only and model-snapshot-only PRs skip the build, ci-tests.yml:38–56). It is indirectly blocking through openwork-tests-required. Still uncovered anywhere automatically: released-enterprise-activated against a released binary with a released baseline (#4848), macOS crash-report assertions (desktop-quit-path.e2e.test.ts:76–90) and updater download/install rather than attempt (packaged-preactivation-updater.e2e.test.ts:72–90) — tracked in the follow-up issue linked below.

Flake statistics are unchanged: nightly-flake-report.yml runs --project pr and never consumes the journey report.

Not in scope, still red/not-tested in the nightly for other reasons (owners in the gate report): role-change-session-survival (placement metadata), cross-server-handoff-atomic-commit (Next dev lock), POLICY-ROLLBACK (opencode2 on runner).

Proof

Lane: GitHub Actions (Blacksmith Linux) for the workflow; local for the unit tests. This change is CI planner/report/alert scripting, one TestNeeds field, one spec needs declaration, and workflow input/test-list edits; it has no runtime spec path of its own, so pnpm evals:e2e --publish does not apply.

Unit tests (the suite ci-tests.yml openwork-tests-core runs), at PR head:

node --test evals/scripts/journey-ci.test.mjs evals/scripts/flake-report.test.mjs evals/scripts/notify-journeys.test.mjs
ℹ tests 29 · pass 29 · fail 0 · skipped 0     (exit 0)

Covers: exactly the 7 journeys above are excluded in ciLane with the expected reasons; a lane with OPENWORK_EVAL_ELECTRON_BINARY leaves only computer-use-window-scope excluded; whole-file catalog/spec/world parity for every declared journey plus the mixed-world case; delimiter-only only rejected; excluded entries never alter counts/ok; alert transitions failed→excluded (reclassified, not Recovered), genuine recovery, excluded persists (quiet), excluded→passed, passed→excluded (announced once), payload counts/reasons, escaping.

Live workflow dispatch on this branch — https://github.com/different-ai/openwork/actions/runs/34553623283 (head 1a9ee322f) — passed:

gh workflow run daytona-e2e.yml --ref e2e/lane-packaged-journeys -f suite=full \
  -f only="packaged,desktop-quit-path,released-enterprise-activated,computer-use-window-scope,mcp-oauth-start-unreadable-response"
  • plan: success. journey-plan artifact → entries: [mcp-oauth-start-unreadable-response]; excluded: the 7 journeys with reasons set OPENWORK_EVAL_ELECTRON_BINARY (×6) and run on darwin (computer-use). No notApplicable field remains.
  • Only one local-journey job was scheduled; it passed.
  • Full regression verdict: success. journey-report artifact: ok: true, counts: {passed: 1, failed: 0, "not tested": 0}, excluded: 7.
  • Step summaries (plan job and verdict job) print 7 journeys skipped (prerequisites unmet) followed by the seven journeys and their needs — the same planner/report code produces this line locally for the same filter (quoted below); the rendered summary is on the run page for a signed-in viewer.
## Full regression
1 spec files selected. Each can contain multiple tests.
- Read why a connection sign-in could not start — local

7 journeys skipped (prerequisites unmet) — this lane cannot satisfy them, so they are not scheduled and not counted; the coverage gap stays visible here.
- computer use window scope — needs: run on darwin
- Quit an enterprise install cleanly — needs: set OPENWORK_EVAL_ELECTRON_BINARY
- Open an already-activated enterprise install — needs: set OPENWORK_EVAL_ELECTRON_BINARY
- Open a fresh cloud or enterprise install — needs: set OPENWORK_EVAL_ELECTRON_BINARY
- Keep an unactivated enterprise install off the network — needs: set OPENWORK_EVAL_ELECTRON_BINARY
- Keep an unactivated enterprise install from updating itself — needs: set OPENWORK_EVAL_ELECTRON_BINARY
- Open and update an activated enterprise install against its Den — needs: set OPENWORK_EVAL_ELECTRON_BINARY

This dispatch proves classification and reporting only; it does not exercise the scheduled-only alert path (unit-tested above) and is not packaged coverage.

Control (local, same head): ONLY_FILTER=packaged node evals/scripts/plan-journeys.mjs exits 1 with No automated journeys matched … 4 matched journey(s) are skipped because this lane cannot satisfy their prerequisites: …; ONLY_FILTER=", ," exits 1 with The only filter ", ," names no journey.

Review note

This PR touches .github/workflows/ (daytona-e2e.yml input description, ci-tests.yml test list) and evals/scripts/. Warden's self-clear guard covers .github/, warden.toml, .warden/ and skills paths (warden-clearance.yml:212–219) — it does not include evals/scripts/ — while the journey authorization guard in daytona-e2e.yml:77–82 does. Either way this PR needs a human approval to merge; a green Warden is not approval.

#4771 (draft, stacked on #4762, ci(evals): consume explicit world plans in product journeys) edits the same files; this PR does not pre-empt it. The needs vocabulary here is TestNeeds, not a third authority; the parity test is deliberately scoped to journeys with declared needs because shared worlds carry scenario-specific guards — per-scenario/per-world plans are #4771/#4762's job.

Follow-ups: #4848 (build the enterprise binary in the scheduled lane; released-enterprise-activated with a released baseline) and #4885 (native macOS crash-report assertions; updater download/install).


Recreated from #4849, which GitHub auto-closed when its stacked base branch was deleted after the base PR merged. Same head branch (e2e/lane-packaged-journeys), same commits; base is now dev. Reviewers: see the original thread on #4849 for context and Warden discussion.

…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]>
… 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]>
…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]>
@vercel

vercel Bot commented Sep 11, 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 11, 2026 8:07pm UTC
openwork-den Ready Ready Preview Sep 11, 2026 8:07pm UTC
openwork-diagnostics Ready Ready Preview Sep 11, 2026 8:07pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
openwork-landing Ignored Ignored Preview Sep 11, 2026 8:07pm UTC

@github-actions

github-actions Bot commented Sep 11, 2026 •

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 (8830 ms), confidentiality-review (2264 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 2
  • Distinct heads in retained window: 2
  • 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: 2/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.

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 029af621d47d7d6de855042aed8b530873e4cd08 · selected evidence

Open review report

This branch was successfully deployed

3 active deployments
Preview – openwork-app — 029af621 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-den — 029af621 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-diagnostics — 029af621 Deployed Sep 11, 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