Skip to content

test: cut e2e to nine core journeys, security rules to API tests - #6055

Merged
benjaminshafii merged 8 commits into
devfrom
chore/evals-core-promises
Oct 15, 2026
Merged

benjaminshafii merged 8 commits into
devfrom
chore/evals-core-promises

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

What is this about?

The test suite. E2E is cut from 361 specs to nine core journeys, and the security rules they used to cover are now fast API tests next to den-api.

What problem does it solve?

Unit tests, mocks, database reads and app shortcuts had leaked into e2e, so green did not mean the product worked. Most specs ran only on the PR that added them, and a PR's e2e lane took 5–15 minutes.

What was the situation before?

evals/specs held 361 files and 187 world files. Security rules such as "a member can't make themselves admin" were proven only by slow browser specs, or by unit tests sitting in the e2e folder.

How is this implemented?

  • evals/journeys.ts lists the nine journeys in evals/core; evals/specs is retired.
  • ee/apps/den-api/test/api: 23 tests against the real app and a throwaway MySQL database (~14s) covering escalation, tenant isolation, member API keys, admin-only actions, MCP OAuth, skill access and audit secrets.
  • evals/scripts/spec-lint: three rules (allowed-files, real-product, honest), no baseline, one bad fixture each.
  • .github/workflows/core-journeys.yml runs the journeys on every PR and nightly; packaged smoke runs only app-smoke and packaged-update-install.

What else changed?

  • Removed: ratchets, test:core, Windows preview and live-proof PR lanes, live parity runner, the release-profile upgrade job; validate-a-release no longer boots released binaries.
  • eventually/selfHostServer moved to @openwork/env; testkit gains probe.url() and probe.linkTargets().
  • New verify-openwork skill; skills and docs updated.

Release note

none

Evidence

CI runs the nine journeys on this head (first run of the edited ones). pnpm --filter @openwork-ee/den-api test:api: 23/23 locally; disabling the permission-set check turns two escalation tests red.

@vercel

vercel Bot commented Oct 15, 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 Oct 15, 2026 11:32pm UTC
openwork-den Ignored Ignored Preview Oct 15, 2026 11:32pm UTC
openwork-diagnostics Ignored Ignored Preview Oct 15, 2026 11:32pm UTC
openwork-landing Ignored Ignored Preview Oct 15, 2026 11:32pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟡 Updating evidence a19ad66 View run 2026-10-15 23:41:05 UTC

A preview for this commit is being prepared.

@diff-warden

diff-warden Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Warden: not approved

Security review found 1 high severity finding. Fix it and push; Warden reviews again automatically. If it is a false positive, a maintainer can approve by hand.

Security findings (2 findings)

high: Verification commands execute PR-authored proof code with developer credentials in `.opencode/skills/verify-openwork/SKILL.md:46`
These commands execute the PR-authored proof with the developer’s inherited environment, allowing a malicious proof to exfiltrate credentials; run proofs only in a credential-free, network-isolated sandbox. Clear when: both proof runs use an environment without secrets and with outbound network access constrained.
low: PR-required packaged smoke no longer boots the enterprise artifact for activation-gated updater checks in `apps/desktop/scripts/packaged-smoke.mjs:84`
The required Linux packaged smoke now boots only the public artifact and runs `app-smoke`; it no longer exercises the packaged enterprise pre-activation updater path. Although an updater unit test covers the IPC guard, `ci-tests.yml` does not run that test in the PR lane. A regression in the enterprise artifact’s activation-gated update behavior could therefore pass required PR checks. Clear when: a PR-required lane exercises the packaged enterprise pre-activation updater guard.

Reviewed 66b14ce088a9 · Warden run · Updates after every Warden run.

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 15, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of 88d72c4bc501fcff93a6cfb6c6fa7a67a8ee3723 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 15, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of a727334b123e4efb0f336230dca75307598157db found no high or medium security findings and no confidentiality findings. 2 low-severity notes listed in the Warden comment. Any new push dismisses this approval. Analysis run

Benjamin Shafii added 7 commits October 15, 2026 16:14
Delete unit and integration tests that leaked into evals/specs, fold the
remaining e2e specs into 60 core journeys under evals/core (one or more per
promise in evals/promises.ts), and retire evals/specs.

spec-lint (evals/scripts/spec-lint) replaces the boundary and channel
ratchets: no baselines, one bad fixture per rule, and every error says what
to do instead and which core journey to extend. Tooling (test-files, journey
catalog, pr-proof, parity runner) finds journeys by basename in core/ and
proofs/.
PR proof caps changed specs at 32. A PR made only of core journeys and
proofs over that cap keeps the core chat journey as PR proof; the new Core
journeys workflow runs every non-packaged journey nightly, on demand, and on
a PR that changes the workflow.
…n-api API tests

- evals/core keeps the nine journeys in evals/journeys.ts; promises.ts,
  sharedWorlds and every other core journey are gone, along with the worlds
  and behaviors only they used (187 -> 28 world files).
- spec-lint shrinks to three rules: allowed-files, real-product, honest.
- Security rules (escalation, tenant isolation, member API keys, admin-only
  actions, MCP OAuth, skill access, audit secrets) are now 23 API tests in
  ee/apps/den-api/test/api against the real app and a throwaway MySQL
  database (~14s), run in CI next to the Den unit tests.
- Core journeys run on every PR and nightly; packaged smoke runs only
  app-smoke and packaged-update-install.
- New verify-openwork skill: how to prove a change on the real product.
- secure-keys-in-chat declares the web surface its world now uses.
- agent-connection-journey stops clicking a folded 'Show steps' button the
  chat no longer renders for single-call runs (#5547).
- thread-restart world stops the leftover renderer dev server before waiting
  for its port, and fails if app processes outlive a quit.
- core-chat runs only in the PR Core journey lane (it needs a Freestyle world).
secure-keys-in-chat no longer re-proves member key isolation, team-leave key
removal and redirect/echo redaction through the UI; ee/apps/den-api/test/api
covers them in seconds. thread-continues-after-restart drops the folded
ArrowUp prompt-recall step, which is not part of surviving a restart.
#5975 added it to the retired evals/specs; its proof already ran on that PR.
Also removes a world no spec uses.
The app no longer issues the uncapped history read that case slowed down
(0 delayed reads in CI), so it could not fail on the behavior it named. The
crash and quit cases keep the user-visible claim.
@benjaminshafii
benjaminshafii merged commit ef455ca into dev Oct 15, 2026
51 of 53 checks passed
OmarMcAdam added a commit that referenced this pull request Oct 15, 2026
…s line

A one-off proof (evals/proofs) for this PR, since evals/specs and the
background shell tasks spec were retired in #6055. A member's agent leaves a
report export running, then keeps working on a second request: the Working
line must hold exactly one shimmer covering "Working Ns · 2 running
background tasks". After the turn, the count keeps its own single shimmer,
and it goes away once both commands finish.

The world starts the app on OpenCode v2 itself (background commands only
exist there) and turns backgroundShellTasks on before sign-in.

Locally: fails on origin/dev (ef455ca) with two shimmering parts
['Working 0s', '2 running background tasks']; passes on this branch.

Signed-off-by: OmarMcAdam <[email protected]>
OmarMcAdam added a commit that referenced this pull request Oct 16, 2026
…6070)

* fix(app): sweep one shimmer across the Working and background tasks line

While a turn runs with commands left in the background, the status line read
"Working 3m · 2 running background tasks" with two separate shimmers: each
part swept its own band at its own speed and phase, and the separator never
shimmered. One shimmer span now wraps the whole line; the count label skips
its own shimmer there (new shimmer prop) and keeps it on its standalone line
after the turn. A count the connection cannot confirm stays outside the
sweep, still, as before.

The background shell tasks spec now asserts the Working line has exactly one
shimmer covering the full text.

Signed-off-by: OmarMcAdam <[email protected]>

* test(evals): prove one shimmer sweeps the Working and background tasks line

A one-off proof (evals/proofs) for this PR, since evals/specs and the
background shell tasks spec were retired in #6055. A member's agent leaves a
report export running, then keeps working on a second request: the Working
line must hold exactly one shimmer covering "Working Ns · 2 running
background tasks". After the turn, the count keeps its own single shimmer,
and it goes away once both commands finish.

The world starts the app on OpenCode v2 itself (background commands only
exist there) and turns backgroundShellTasks on before sign-in.

Locally: fails on origin/dev (ef455ca) with two shimmering parts
['Working 0s', '2 running background tasks']; passes on this branch.

Signed-off-by: OmarMcAdam <[email protected]>

---------

Signed-off-by: OmarMcAdam <[email protected]>
benjaminshafii added a commit that referenced this pull request Oct 16, 2026
dev (#6055) retired evals/specs and limited evals/core to the nine listed
journeys. Resolutions:
- evals/specs/mcp-manual-oauth.e2e.test.ts -> evals/proofs/mcp-manual-oauth.proof.test.ts
  (one-off PR proof per evals/journeys.ts); dropped self-graded
  recordAssertionEvidence(..., true) calls that spec-lint rejects; every
  real expect/user.see assertion is unchanged.
- den-connector-catalog, den-manage-connectors, mcp-redirect-discovery specs
  and the den-library-manage world: accepted dev's deletion. The PR's
  issuer-mismatch behavior stays covered by den-api unit tests and the proof.

This branch was successfully deployed

4 active (outdated) and 1 inactive deployments
Preview – openwork-den — bf8fbdba Deployed Oct 15, 2026 by vercel[bot]
Preview – openwork-app — bf8fbdba Deployed Oct 15, 2026 by vercel[bot]
Preview – openwork-landing — bf8fbdba Deployed Oct 15, 2026 by vercel[bot]
Preview – openwork-diagnostics — bf8fbdba Deployed Oct 15, 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.

2 participants