Repository navigation
From-empty POC: scaffold -> real build gate -> delivery (6 defects fixed) - #13
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)Defects fixed
{{/}}written literally into three non-format!strings (app/api/health/route.ts,lib/prisma.ts,lib/supabase.ts): every scaffolded app failedtscandnext build. Regression test scans every generated file.prisma generateexited 1 →npm installfailed. Model added +postinstall: prisma generate.typecheck/testscripts, a test, and the required env vars → added (including a realnode:testfile).npm/npxinvoked directly — the same.cmd-shim bug as the agent adapter; build/typecheck checks could never run on Windows. Now viacmd /C..next/BUILD_IDis now accepted for Next.js.tsccounted 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_dependenciesbootstraps.envfrom.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 testfails (dev server didn't answer in 60s) — now diagnosable via the captured server log. Run staysverification_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.