Repository navigation
test: cut e2e to nine core journeys, security rules to API tests - #6055
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
f975229 to
88d72c4
Compare
Warden: not approvedSecurity 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
a727334 to
66b14ce
Compare
66b14ce to
d31bc6a
Compare
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.
b78fe38 to
bf8fbdb
Compare
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.
…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]>
…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]>
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.
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/specsheld 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.tslists the nine journeys inevals/core;evals/specsis 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.ymlruns the journeys on every PR and nightly; packaged smoke runs onlyapp-smokeandpackaged-update-install.What else changed?
test:core, Windows preview and live-proof PR lanes, live parity runner, the release-profile upgrade job;validate-a-releaseno longer boots released binaries.eventually/selfHostServermoved to@openwork/env; testkit gainsprobe.url()andprobe.linkTargets().verify-openworkskill; 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.