Skip to content

fix(den-api): enforce production build contract - #4069

Merged
benjaminshafii merged 2 commits into
devfrom
fix/den-api-production-build-contract
Aug 25, 2026
Merged

benjaminshafii merged 2 commits into
devfrom
fix/den-api-production-build-contract

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Summary

  • replace Den API hand-maintained production dependency builds with pnpm graph traversal
  • fail builds when a production workspace export target is missing
  • make Docker invoke the same Den API build and expand image-smoke path coverage
  • preserve the externally consumed focused MCP Apps build utility
  • add production-condition startup proof and the deployment incident runbook

Partially addresses #4064. External Render notification and on-call configuration is tracked in #4070.

Verification

Local fallback lane; these app-less artifact contracts do not require Daytona services. All commands ran on clean PR head f7eb2d4d8.

  • pnpm --filter @openwork-ee/den-api exec bun test test/sentry-sourcemaps-build.test.ts (4 passed, 0 failed, 0 skipped)
  • pnpm --filter @openwork-ee/den-db exec tsx --test test/migration-readiness.test.ts (8 passed, 0 failed, 0 skipped)
  • pnpm evals:pr specs/den-api-production-package.test.ts (1 passed, 0 failed, 0 skipped)
  • pnpm evals:pr specs/mcp-agent-standalone-get.test.ts (1 passed, 0 failed, 0 skipped)
  • pnpm evals:pr specs/connect-flow-mcp-apps.test.ts (1 passed, 0 failed, 0 skipped)
  • pnpm evals:pr specs/skill-created-mcp-app.test.ts (2 passed, 0 failed, 0 skipped)

Verdict: Passed for repository-owned build, startup, and focused MCP build compatibility claims. Testkit evidence is published on this PR. The image workflow remains the MySQL-backed /health proof.

Rollback

Revert this PR to restore the explicit production package build commands. No persisted data or schema changes are included.

@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 11:57am
openwork-den Ready Ready Preview Aug 25, 2026 11:57am
openwork-den-worker-proxy Ready Ready Preview Aug 25, 2026 11:57am
openwork-landing Ready Ready Preview, v0 Aug 25, 2026 11:57am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Aug 25, 2026 11:57am

@benjaminshafii

benjaminshafii commented Aug 25, 2026 •

Copy link
Copy Markdown
Member Author

Test evidence — the-den-api-production-package-resolves-workspace-artifacts-and-starts-listening — 0/0 screenshots passed · 1 assertion

✅ 0/0 screenshots passed · 1 assertion · 1 expectations passed · 0 failed · 0 pending

ℹ️ ASSERTION — 1. The production Den API artifact resolves and starts

The spec rebuilt the workspace dependency graph, validated every workspace export target, removed development Node conditions, and started dist/main.js through its server-listening marker. The Docker image smoke separately asserts /health with MySQL.

  • ✅ PASS The production Den API artifact resolves and starts — The spec rebuilt the workspace dependency graph, validated every workspace export target, removed development Node conditions, and started dist/main.js through its server-listening marker. The Docker image smoke separately asserts /health with MySQL.

Test run created 2026-08-25T11:56:52.942Z · Source: evals/results/test-runs/2026-08-25T11-56-52-941Z-the-den-api-production-package-resolves-workspace-artifacts-and-starts-listening/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4069 --test-run 2026-08-25T11-56-52-941Z-the-den-api-production-package-resolves-workspace-artifacts-and-starts-listening

@benjaminshafii

Copy link
Copy Markdown
Member Author

External Render and incident-system configuration is tracked in #4070.

@benjaminshafii
benjaminshafii merged commit a39b71f into dev Aug 25, 2026
26 checks passed

This branch was successfully deployed

4 active and 1 inactive deployments
Preview – openwork-den-worker-proxy — f7eb2d4d Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-landing — f7eb2d4d Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-den — f7eb2d4d Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-app — f7eb2d4d Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-diagnostics — f7eb2d4d 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.

2 participants