Skip to content

test(evals): resolve grant-liveness witnesses from source exports - #4079

Closed
reachjalil wants to merge 2 commits into
devfrom
fix/mcp-grant-liveness-source-resolution
Closed

reachjalil wants to merge 2 commits into
devfrom
fix/mcp-grant-liveness-source-resolution

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Summary

  • fix the openwork-tests failure on the dev push after feat(connect): support stateless MCP 2026 #4055 merged: specs/mcp-grant-scoped-liveness.test.ts failed with FileNotFound while resolving package '@openwork-ee/utils/den-urls' in its final witness
  • the witnesses resolved @openwork-ee/utils and @openwork-ee/den-db through built dist output and prebuilt it at spec start, but other specs in the parallel eval lane (notably fix(den-api): enforce production build contract #4069's den-api production-package build) rebuild that shared output concurrently, and tsup removes dist before rewriting it — a witness that resolves during that window fails with a missing module
  • run the witnesses with bun --conditions=development so both packages resolve their sources directly, removing the dependency on generated build output entirely (the same approach specs/mcp-stateless-2026-transport.test.ts already uses); drop the now-unnecessary prebuild step

Verification

  • deleted ee/packages/utils/dist and ee/packages/den-db/dist, then ran pnpm evals:pr specs/mcp-grant-scoped-liveness.test.ts — passed 1/1 with all five witnesses green and no dist present, proving the spec no longer depends on shared build output

The grant-liveness witnesses resolved @openwork-ee/utils and
@openwork-ee/den-db through their built dist output, prebuilding it at the
start of the spec. Other specs in the same lane rebuild that shared output
concurrently, and tsup removes dist before rewriting it, so a witness
could fail mid-run with a missing module — as happened on the dev push
after #4055 landed alongside #4069's production-package build spec. The
witnesses now run bun with the repository's development export condition
and resolve package sources directly, with no dependency on generated
build output.
@vercel

vercel Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview Aug 25, 2026 3:42pm
openwork-den Ready Ready Preview Aug 25, 2026 3:42pm
openwork-den-worker-proxy Ready Ready Preview Aug 25, 2026 3:42pm
openwork-diagnostics Ready Ready Preview Aug 25, 2026 3:42pm
openwork-landing Ready Ready Preview, v0 Aug 25, 2026 3:42pm

diff-warden[bot]
diff-warden Bot previously approved these changes Aug 25, 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 security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (bf6cae4979fd999f6e3b86ca4a8a158e2807de45). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@reachjalil
reachjalil enabled auto-merge (squash) August 25, 2026 15:34
The three-core macOS runner cannot host three parallel eval workers plus
the build subprocesses heavier specs spawn: the saturated main process
misses vitest's worker RPC deadline and the lane fails with an unhandled
'Timeout calling onTaskUpdate' after every test passed, as on the last
three dev pushes. Cap the lane at two workers on macOS, matching the
existing Daytona constrained-environment default.
@reachjalil

Copy link
Copy Markdown
Member Author

Superseded by #4078, which landed the same grant-liveness source-resolution fix and resolved the macOS lane's onTaskUpdate hang at its root by making the den-api production build an async spawn. The dev push for 148c7a3 is green on all lanes. Keeping the macOS two-worker cap from this branch in reserve if the timeout signature ever reappears.

@reachjalil reachjalil closed this Aug 25, 2026
auto-merge was automatically disabled August 25, 2026 16:53

Pull request was closed

@reachjalil
reachjalil deleted the fix/mcp-grant-liveness-source-resolution branch August 25, 2026 16:53

This branch was successfully deployed

5 active deployments
Preview – openwork-den-worker-proxy — 92ebef5f Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-landing — 92ebef5f Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-den — 92ebef5f Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-diagnostics — 92ebef5f Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-app — 92ebef5f Deployed Aug 25, 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