Skip to content

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

Closed
yomgui wants to merge 3 commits into
e2e/lane-packaged-journeys-scriptsfrom
e2e/lane-packaged-journeys
Closed

yomgui wants to merge 3 commits into
e2e/lane-packaged-journeys-scriptsfrom
e2e/lane-packaged-journeys

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

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).

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 11, 2026 7:39pm UTC
openwork-den Ignored Ignored Preview Sep 11, 2026 7:39pm UTC
openwork-diagnostics Ignored Ignored Preview Sep 11, 2026 7:39pm UTC
openwork-landing Ignored Ignored Preview Sep 11, 2026 7:39pm UTC

@github-actions

github-actions Bot commented Sep 10, 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 (60020 ms), confidentiality-review (86752 ms), spec-provenance-review (84545 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

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

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Passed · 1/1 tests · 4/4 assertions · 4 images

Commit 1a9ee322f53ae0b71e019bc2972b899741ffa8bc · selected evidence

Open review report

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Heads-up for whoever lands this: #4771 (Ben, draft, ci(evals): consume explicit world plans in product journeys) edits the same four files (plan-journeys.mjs, journey-catalog.mjs, journey-ci.test.mjs, daytona-e2e.yml). Whichever merges second needs a rebase and a re-run of journey-ci.test.mjs; the needs metadata added here should be reconciled with the explicit world plans in #4771 rather than duplicated. An independent second review of this PR's framing is in progress and will be posted here.

@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Second opinion (independent review, GPT-6 Astra high)

Verdict: approve with changes, not as-is. The prerequisite diagnosis is sound; this removes wasted execution, not a coverage gap. Calling the result “Full regression — passed” without carrying coverage debt into downstream reporting is too strong. Reviewed head 9ce91b08d; independent of the interrupted review.

1. RCA: supported, but bound the history

gh run list --workflow daytona-e2e.yml --event schedule --limit 60 returned 13 schedules, September 4–10. Across all job pages: 18 appearances of these seven journeys, all failed; zero green appearances. First-launch/activated/updater/released appeared twice each, egress/quit once each, Computer Use eight times. Earlier runs predated their introduction: “seven permanent reds in every scheduled run” is inaccurate.

The workflow supplies no packaged binary (daytona-e2e.yml:235–260); missing prerequisites produce skipped test bodies → incomplete → exit 2 (evals.mjs:429–439). See September 10 morning and evening. Computer Use was Daytona, not local (job); this PR adds local placement. No historical green-to-red transition was found in this sample.

2. Coverage: real and blocking, but narrower than claimed

packaged-smoke.mjs:30–91 builds an actual Linux unpacked enterprise artifact and invokes five complete journey specs, not copied/subset smoke assertions. Head build job executed 10 enterprise tests plus one cloud test, zero skips.

Smoke → build → required aggregator is merge-blocking: ci-tests.yml:261–300, active dev ruleset 20914107. However, docs-only/model-snapshot-only PRs omit build; every push to dev selects full (ci-tests.yml:38–76). “Only released-enterprise-activated is uncovered” is true only of these six filenames: Linux/v1 smoke does not prove released installers or macOS-only assertions, including quit DiagnosticReports checks:53–91.

3. Framing/reporting: substantive change needed

The proof dispatch proves filtering, not restored coverage. Vacuous-green guards remain (plan:17, aggregate:20); they prevent zero execution, not an arbitrarily reduced denominator.

Concrete reporting defect: Test alerts consumes the report, but notify-journeys.mjs:7–31,70–72 drops notApplicable. I reproduced against the immutable head: one pass plus an excluded previous failure yields “Recovered — all selected checks passed”, removing that failure from incident state. nightly-flake-report.yml:70–83 does not consume this report; it repeats Vitest --project pr and cannot compensate.

  • Not-applicable/green: defensible for Linux-incompatible macOS work, misleading for fixable missing build provisioning unless coverage debt stays visible.
  • Neutral, counted “skipped: lane cannot satisfy needs”: preferred interim state, separate from product verdict; propagate count/reasons and selection changes through Slack/state.
  • Keep red: preserves pressure but wastes jobs and conflates infrastructure debt with product failures; not my preference.
  • Option A now: restores nightly Linux execution, but duplicates gated smoke and still needs separate release/macOS provision.

#4848 has no assignee, milestone or due date, and explicitly excludes released-enterprise-activated and Computer Use. Removing alert pressure makes indefinite deferral plausible. Give each residual gap an owner/deadline; #4848 alone is not closure.

4. Design and Ben’s stack

This is already more than duplicated vocabulary: TestNeeds:3–10 has no platform; the new catalog evaluates only env/platform. Missing metadata schedules inevitable skips; stale over-restrictive metadata silently removes runnable coverage. The released spec:14–21 needs a baseline binary for its update world, omitted by the catalog. Do not union prerequisites across a file: that would suppress its runnable launch world.

#4771 is an open draft stacked on #4762, touching the same four files. Its world-plan.ts:6–15,114–131 parses resources, not needs yet. Coordinate with Ben: extend shared static per-world discovery, never import/execute specs for planning. Interim metadata must explicitly mean whole-file blockers, with drift/mixed-world tests; rebase and rerun planner/workflow tests whichever lands second.

Minimum before merge

  1. Preserve counted coverage debt in report/Slack/state; test exclusion-only “recovery.”
  2. Correct claims, assign/date residual gaps, and agree the narrowly scoped metadata bridge with Ben.
  3. Comma-separated only is orthogonal: split it or document/test its empty-token behavior. Obtain human approval for .github/ and trusted planner changes; automated clearance is not that approval (workflow:77–82).

Suggested title: ci(evals): expose lane-blocked journeys without treating them as product failures

Suggested body framing: “Separate execution health from coverage completeness. Report seven lane-blocked journeys with reasons; no coverage is restored. Five packaged specs retain blocking Linux smoke coverage. Nightly packaging, released-profile verification and macOS coverage remain separately owned gaps.”

@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Note for the amendment in progress (from the audit session): the review above is the one to address; an earlier duplicate copy was removed. One correction to the amendment brief — do not union the baseline-binary requirement across released-enterprise-activated: only its update world needs OPENWORK_EVAL_RELEASED_BASELINE_BINARY; its launch world is runnable with the main binary alone. Declaring the baseline as a journey-level need would silently drop the runnable half. Keep the journey-level need at the main binary and let the update case skip itself with its own reason, counted as prerequisite-skipped. Also coordinate the needs vocabulary with #4771 / #4762 rather than adding a third authority.

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d2a6de
Status:🚫  Build failed.

View logs

yomgui added a commit that referenced this pull request Sep 11, 2026
…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.
yomgui added a commit that referenced this pull request Sep 11, 2026
…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.
@yomgui
yomgui deployed to scheduled-e2e-regression September 11, 2026 01:59 — with GitHub Actions Active
@yomgui yomgui changed the title ci(evals): report packaged and macOS-only journeys as not applicable in the CI lane ci(evals): distinguish unsatisfied lane prerequisites from executed journey failures Sep 11, 2026
@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Re second opinion — addressed at head 31131a4f7 (branch merged with origin/dev via merge commit d90d8c854; #4771 not pre-empted, noted in the body):

  • addressed: alert transitions (must fix) — notify-journeys.mjs keeps excluded (spec, name, reason) in the validated report and in incident state; failed → excluded is announced as "reclassified: prerequisite unsatisfied — not a recovery", "Recovered" only when nothing was reclassified; failure alerts carry the excluded count + reasons. Transition tests in new evals/scripts/notify-journeys.test.mjs (failed→excluded, genuine recovery, excluded persists quietly, excluded→passed, payload, escaping); added to ci-tests.yml openwork-tests-core. (31131a4)
  • addressed: visible coverage state — "not applicable" is gone. Label is skipped: lane cannot satisfy prerequisites; plan.json/report field renamed notApplicable → excluded (no external consumers). Plan and verdict step summaries print N journeys skipped (prerequisites unmet) + list every run; count line reads … · 7 skipped (prerequisites unmet). (12d31d0)
  • addressed: complete needs — catalog now declares OPENWORK_EVAL_RELEASED_BASELINE_BINARY for released-enterprise-activated (spec :18–20). platform added to TestNeeds (needs.ts) and checked by unmetNeeds; computer-use-window-scope declares needs: { platform: "darwin" } so spec and catalog share one vocabulary. Parity test scans each declared journey's spec + imported worlds (needs declarations, process.env.OPENWORK_EVAL_* / process.platform guards leading to SkipError) and fails on drift both ways. Scoped to declared journeys: shared worlds (first-run.ts:582,725) carry scenario-specific guards — per-scenario world plans stay with ci(evals): consume explicit world plans in product journeys #4771. (18d26d6)
  • addressed: filter guard — only=", ," (any nonblank delimiter-only input) now throws The only filter … names no journey; blank still selects everything. Unit-tested. (18d26d6)
  • addressed: framing — retitled; body opens with your framing; history claim is now "never successfully exercised by this scheduled lane since introduction" (evening 7 / morning 5; Computer Use ran on Daytona and needs local macOS/AppKit); "every PR" → "every full-lane PR and every dev push" (docs-only / snapshot-only skip the build); Warden guard excludes evals/scripts/ (warden-clearance.yml:212–219) while daytona-e2e.yml:77–82 includes it — human approval still required.
  • addressed: follow-up ownership — Nightly Full regression: build the packaged enterprise desktop once and run the packaged journeys against it #4848 rewritten with measurable acceptance criteria (six packaged journeys passed against a built enterprise binary in the scheduled lane; released-enterprise-activated with a released baseline). New Scheduled coverage still missing after #4848: native macOS crash-report assertions and updater download/install #4885 for native 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). Both unassigned on purpose — owner/date to be set by a human.

Proof: node --test evals/scripts/journey-ci.test.mjs evals/scripts/flake-report.test.mjs evals/scripts/notify-journeys.test.mjs → 27 pass / 0 fail / 0 skipped (local, Node 24.20). Dispatch on head 31131a4f7: https://github.com/different-ai/openwork/actions/runs/34552824982 — passed; journey-plan artifact has excluded ×7 (baseline binary included for released-enterprise-activated), journey-report has 1 passed · 0 failed · 0 not tested · 7 skipped (prerequisites unmet). Classification proof only; not packaged coverage.

Not done: nothing merged; needs human approval.

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
…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.
@yomgui
yomgui deployed to scheduled-e2e-regression September 11, 2026 02:11 — with GitHub Actions Active
@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Follow-up to my addressed list, now against the kept review (5628206745) and the audit correction, head 1a9ee322f:

Proof at 1a9ee322f: node --test evals/scripts/journey-ci.test.mjs evals/scripts/flake-report.test.mjs evals/scripts/notify-journeys.test.mjs → 29 pass / 0 fail / 0 skipped. Re-dispatch https://github.com/different-ai/openwork/actions/runs/34553623283 — passed; journey-plan excluded ×7 with set OPENWORK_EVAL_ELECTRON_BINARY (×6) / run on darwin; journey-report 1 passed · 0 failed · 0 not tested · 7 skipped (prerequisites unmet). Classification proof only. PR body updated; still needs human approval.

… 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]>
@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 11, 2026 19:23 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 11, 2026 19:23 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 11, 2026 19:23 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 11, 2026 19:23 Inactive
@yomgui yomgui changed the title ci(evals): distinguish unsatisfied lane prerequisites from executed journey failures ci(evals): run the journey alert tests in the PR-blocking core job (gated remainder of #4849; scripts in #4901) Sep 11, 2026
@yomgui
yomgui changed the base branch from dev to e2e/lane-packaged-journeys-scripts September 11, 2026 19:23
yomgui added a commit that referenced this pull request Sep 11, 2026
…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]>
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]>
@yomgui
yomgui deleted the branch e2e/lane-packaged-journeys-scripts September 11, 2026 19:58
@yomgui yomgui closed this Sep 11, 2026
@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Superseded: GitHub auto-closed this when its stacked base branch was deleted after the base PR merged. Recreated against dev with the same head branch and commits — see the linked PR above in the timeline (#4907 / #4908 / #4909 / #4910 respectively).

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