Skip to content

From-empty POC: scaffold -> real build gate -> delivery (6 defects fixed) - #13

Merged
trac41799 merged 1 commit into
mainfrom
hardening/production
Sep 29, 2026
Merged

trac41799 merged 1 commit into
mainfrom
hardening/production

Conversation

@trac41799

Copy link
Copy Markdown
Owner

From-empty milestone: an empty repo now becomes a type-checking, building app with the agent's work delivered. Found and fixed six defects along the way.

Result (test_real_poc_from_empty)

empty repo → scaffold 15 files → npm install (+prisma generate)
tsc Pass → next build Pass → .next/BUILD_ID Pass
delivery merged:[1-1.1] conflicts:[] → app/about/page.tsx in base project
verification passed=false → deploy skipped (fail-closed)
only failing check: E2E runtime test (server did not answer within 60s)

Defects fixed

  1. Scaffold emitted invalid TypeScript — {{/}} written literally into three non-format! strings (app/api/health/route.ts, lib/prisma.ts, lib/supabase.ts): every scaffolded app failed tsc and next build. Regression test scans every generated file.
  2. Prisma schema had no models → prisma generate exited 1 → npm install failed. Model added + postinstall: prisma generate.
  3. Scaffold missing typecheck/test scripts, a test, and the required env vars → added (including a real node:test file).
  4. npm/npx invoked directly — the same .cmd-shim bug as the agent adapter; build/typecheck checks could never run on Windows. Now via cmd /C.
  5. Build artifact check ran before the build → could never pass on a fresh project; also .next/BUILD_ID is now accepted for Next.js.
  6. Undiagnosable failures — tsc counted errors on the wrong stream ("0 errors" while failing), build failures discarded output, server output went to an undrained pipe. All three now report real diagnostics (this is what exposed defects 1–2), and server output goes to a log file whose tail is in the failure message.

Plus install_project_dependencies bootstraps .env from .env.example (Prisma's postinstall resolves the datasource URL during install), and the runtime E2E check no longer imposes the reference template's auth-flow contract on apps without auth routes.

Still open

E2E runtime test fails (dev server didn't answer in 60s) — now diagnosable via the captured server log. Run stays verification_failed, deploy stays skipped. GitHub delivery unchanged (EXTERNAL-VERIFICATION.md).

Gates

Rust 218 lib + 42 integration (2 real-agent tests ignored), Web 341, tsc/lint clean. Artifacts now written outside the repo so scaffolded files can't leak into the web test glob.

@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
source-forge Ready Ready Preview Sep 29, 2026 2:10pm UTC

@trac41799
trac41799 merged commit 500b7a1 into main Sep 29, 2026
8 checks passed
…d gate, delivery

From-empty acceptance run (test_real_poc_from_empty): an empty repo becomes an app that typechecks and builds, with the agent's feature merged into the base project. Six defects found and fixed:
1. scaffold wrote literal {{ }} into three non-format! strings (app/api/health/route.ts, lib/prisma.ts, lib/supabase.ts) - every scaffolded app failed tsc/next build; regression test scans all generated files.
2. prisma schema had no models so 'prisma generate' exited 1 and npm install failed: add a User model + postinstall generate.
3. scaffold lacked typecheck/test scripts, a test file, and the env vars the checks require.
4. verification called npm/npx directly - the same Windows .cmd-shim bug as the agent adapter; now routed through cmd /C.
5. the build artifact check ran before the build (could never pass); .next/BUILD_ID accepted for Next.js.
6. failures were undiagnosable: tsc counted errors on stderr only (reported '0 errors' while failing), build failures discarded output, server output went to an undrained pipe. Diagnostics now capture real errors and server logs.
Also: install bootstraps .env from .env.example (Prisma postinstall needs DATABASE_URL), the runtime E2E check no longer imposes the reference template's auth contract on apps without auth routes, and run artifacts are written outside the repo.
Still open: E2E runtime test (dev server did not answer within 60s) - now diagnosable; run fails closed and skips deploy.
Gates: Rust 218 + 42 (2 ignored), Web 341, tsc/lint clean.

This branch was successfully deployed

1 active deployment
Preview — d98087f7 Deployed Sep 29, 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