Evaluating How Well LLMs Turn Requirements Documents into Complete Working Projects
As LLMs move from writing single functions to delivering entire applications from a requirements document, evaluation must shift from one-shot correctness to long-range delivery. This article breaks the "requirements to code" pipeline into a six-layer capability chain, explains why complex pages degrade in quality, and proposes a structured, checklist-driven evaluation method with reproducible test cases, pass-rate scoring, and automated verification. It also offers realistic expectations per page type and engineering practices to turn unreliable generation into a controllable, reviewable workflow.
1. The Evaluation Target Has Shifted: From “Writing Correct Code” to “Delivering a Project”
When we used to evaluate code generation, tasks were mostly single-function implementation, algorithm problems, or local refactoring, with relatively objective scoring: were the inputs and outputs correct, was the complexity reasonable? But as LLMs are increasingly used to take on tasks like “turn a product requirements document into a working frontend project,” the nature of the evaluation target has changed fundamentally. It is no longer about point correctness but about long-range delivery.
The difference shows up across three dimensions:
- Constraint count. A single page may be governed simultaneously by field rules, linkage relationships, style conventions, and routing agreements. These constraints are coupled, not parallel.
- Long-range consistency. A field defined on page 2 of the document—does it still keep the same name, the same enum, and the same default value when it is implemented on page 6?
- Verifiability. Whether the code can build, can preview, and can pass an acceptance checklist matters far more than whether it merely “looks right.”
The right way to measure this capability, therefore, is not to judge the impression left by a single demo, but to design reproducible test cases and track the task pass rate.
2. Breaking “Requirements to Code” into a Capability Chain
Going from a document to a delivered project actually passes through six layers of capability, and the earlier the layer, the greater its impact on the final outcome:
| Layer | What the capability means | Typical failure mode |
|---|---|---|
| L1 Requirements parsing | Identify the page list, terminology definitions, and implicit constraints | Missed pages, misunderstood business terms |
| L2 Information architecture | Navigation relationships, routing, state ownership | All pages present but navigation is tangled |
| L3 Data and state modeling | Entities, field types, enums, optionality | Arbitrary field types, missing enum values |
| L4 Interaction logic | Events, linkage, conditional display, validation order | Filters that don’t work, missing linkage |
| L5 Engineering implementation | Component splitting, style system, directory structure, dependency convergence | One giant file, styles overriding each other |
| L6 Delivery completeness | Buildable, previewable, no placeholders | Leftover TODOs, cannot start with one click |
The key insight: errors at L1 through L3 are “understanding errors” that are expensive to fix; errors at L4 through L6 are “implementation errors” that are relatively cheap to fix but numerous. If a model is stable at L1–L3 and only wobbles at L4–L5, that can usually be contained through engineering means (decomposition, acceptance checks, automated validation). Conversely, if it is unstable at L1–L3, any prompt technique will yield only limited gains.
3. Why Complex Pages Tend to “Slow Down” in Understanding
The most common phenomenon in practice: the login page turns out well, but quality drops noticeably once you reach the list page or form page. This is not random noise but has structural causes.
1. Constraint count grows super-linearly with field count.
Suppose a form has n fields. The show/hide, mutual-exclusion, and linkage relationships between pairs can reach O(n²) in the worst case. A login page has only 2–3 fields with almost no linkage, so the model gets it right easily. But a business form with 20 fields requires keeping a dozen or more rules from being forgotten simultaneously.
2. Implicit defaults override explicit conventions.
Models carry a large amount of industry convention internally: boolean filters are usually toggles, pagination defaults to 20 rows, amounts keep two decimal places. When the document is silent, these conventions are a plus. But when the document explicitly defines different rules, the prior can sometimes “override” the explicit instruction in the context—appearing as “it implemented things its own way instead of following your document.”
3. Lack of executable criteria.
The phrase “supports filtering” is vague in natural language. What counts as support? A dropdown is enough, or does it need multi-select, does it need to backfill URL parameters, does it need to reset the page number in coordination with pagination? Models tend to generate structures that are shaped right but empty inside: the UI has filter controls, but the onChange handler does nothing. This kind of defect is easiest to overlook by eye and easiest to expose during acceptance.
4. Context attention is diluted by global tasks.
When the prompt packs in global style requirements, component conventions, directory rules, and multi-page requirements all at once, the “effective attention” allocated to a single page’s details drops. The more pages there are, the more pronounced the quality decay on later pages.
4. Evaluation Method: Replacing Prose Descriptions with Structured Specifications
To evaluate reliably, the first step is to turn requirements from “prose” into a “decidable specification.” Compare the two:
Prose style: “The list page needs to support filtering by category and price, and also needs a stock status filter.”
Structured style:
project: order-consoleglossary:sku: minimum inventory unit; format is 2 uppercase letters + hyphen + 6 digitsvirtual: virtual goods with no physical shipmentpages:- id: loginfields: [account, password, captcha]rules:- captcha shows a 60s countdown after clicking; repeated requests are blocked during the countdown- account is locked for 10 minutes after 5 consecutive failures- id: product-listfilters:- category: multi-select- priceRange: [min, max], inclusive range- inStock: booleanbehaviors:- when category changes => clear priceRange and reset page to 1- when any filter is non-default => show applied-condition tags and a "Clear all" action- filter conditions are synced to the URL query and restorable after refresh- id: product-formvalidation:- sku: required, pattern '^[A-Z]{2}-\d{6}$- price: required, > 0, at most 2 decimal places- when category == virtual => hide the logistics block and skip its validation
The benefit of structure is not just that it “says things more clearly”—it naturally converts into an acceptance checklist, turning subjective impression into an objective score.
Pair it with a checklist-driven scoring script (illustrative):
const checklist = [{ id: 'R-01', page: 'login', desc: 'Captcha 60s countdown, blocks repeated clicks during countdown' },{ id: 'R-07', page: 'product-list', desc: 'Category change clears the price range and resets the page number' },{ id: 'R-09', page: 'product-list', desc: 'Filter conditions written to the URL and restorable after refresh' },{ id: 'R-12', page: 'product-form', desc: 'Logistics block hidden and its validation skipped for virtual categories' },{ id: 'R-14', page: 'product-form', desc: 'Error message pointing to the field when the SKU fails the regex' },];function evaluate(result) {const detail = checklist.map(item => ({...item,passed: runAcceptance(item, result), // automated test or manual review}));const passed = detail.filter(d => d.passed).length;return {functionalPassRate: passed / checklist.length, // functional fidelitybuildable: canBuild(result), // builds with zero errorspreviewable: canPreview(result), // preview URL reachable directlytypeClean: isTypeClean(result), // type / static checks are cleanplaceholderCount: countTodos(result), // count of remaining placeholder implementationsdetail,};}
Five suggested dimensions and weights (adjustable per team):
- Functional fidelity, 40%: acceptance checklist pass rate, the highest weight
- Runnability, 20%: builds and opens with one click, a deliverable product rather than a code snippet
- Code quality, 15%: component splitting granularity, type completeness, absence of duplicate implementations
- Visual and consistency, 15%: whether it follows design tokens and whether style stays consistent across pages
- Generation efficiency, 10%: end-to-end time and whether multiple rounds of rework are needed
One important methodological detail: sample at least 3 times per test case and look at the variance, not a single run. One impressive one-off case says nothing about stability; low variance is the prerequisite for engineering usability.
5. Difficulty Gradient: Realistic Expectations for Different Pages
Based on the dimensions above, we can give a fairly pragmatic distribution of expectations.
Login page: close to saturation. A form plus a carousel plus a graphic captcha is one of the most common templates, and the model’s prior here is extremely well developed. This layer can basically be handed to automatic generation with confidence; humans only need to review security and error handling (such as failure lockout and password strength hints).
List page: right skeleton, missing flesh. The page structure, table columns, and pagination are usually correct, but the “interactive flesh”—filters, sorting, bulk actions, empty states—tends to be missing or empty-implemented. The reason is that the correctness of these features depends on linkage rules, not layout ability.
Form page: the hardest tier. It simultaneously tests data modeling, validation order, conditional show/hide, and error localization. Field relationships are implicit knowledge, and if the document does not spell them out, the model can only guess. This is also where human involvement yields the highest return.
Visual presentation: engineering-usable > design standout. Without design-system constraints, output generally has a “generic admin panel feel”: presentable and editable, but lacking a visual point of view. To improve it, you have to explicitly provide design tokens rather than expect the model to exercise its own aesthetic judgment.
:root {--color-primary: #2f6feb;--color-danger: #d93025;--space-unit: 4px;--radius-md: 6px;--font-size-body: 14px;}
Externalizing design decisions into variables means the model only has to “comply” rather than “invent,” and consistency improves markedly.
Speed: strongly correlated with page count, dependency installation, and rework rounds. Half-hour-scale end-to-end time is not unusual for multi-page projects, and a substantial share of it goes into dependency resolution and multiple rounds of fixes. It is also worth distinguishing model-capability issues from product rate-limiting issues—experience fluctuations caused by queuing or quota limits should not count toward the capability evaluation.
6. Engineering Practices: Converging “Unreliable” into “Controllable”
To make this capability truly land in practice, what matters is not switching to a longer prompt, but embedding it in a workflow with a feedback loop.
1. Contract first. First have the model produce only type definitions and interface signatures; after a human or tool confirms them, generate the implementation. The contract is the anchor for long-range consistency, and changing a contract costs far less than changing implementations scattered everywhere.
interface ProductFilter {categories: string[];priceRange?: [number, number];inStock?: boolean;}interface ProductFormValues {sku: string;name: string;category: 'physical' | 'virtual';price: number;logistics?: { carrier: string; weightGrams: number };}
2. Page-level splitting and dependency orchestration. Replace one giant prompt with “shared contract + a separate task per page.” This both lowers per-round context pressure and makes parallel work and page-by-page acceptance easier. Be sure to agree on a shared list of components and utility functions, so that pages don’t each build their own set.
3. Acceptance-driven generation. Write the checklist from Section 4 directly into the prompt, and require the model to self-check before delivery and to explain item by item where each requirement is implemented. This step significantly reduces “missing implementation,” because it turns implicit requirements into explicit to-dos.
4. Automated closed-loop verification. After each generation, automatically run: build, type check, static check, and unit tests, adding visual regression screenshot comparison when necessary. With automated gates, you know whether the model actually improved or broke things in this round.
5. Sandbox preview. The generated project should have a reachable preview URL, and humans can spot-check key interaction paths. A product that you can “run and look at” costs an order of magnitude less to review than reading a diff.
6. Small-step iteration rather than one-shot completion. First ask for a runnable skeleton, then fill in page by page, and finally polish the visuals and edge states (empty data, loading, error, overlong text) in one pass. Demanding “complete and polished” all at once usually gets you comprehensive mediocrity.
7. Open Weights vs. Hosted Services: No Longer an Either/Or Question
The reason capability benchmarking is worth discussing is, at its core, that it changes the space of architecture choices. Open-weight models and hosted services each have clear boundaries of applicability.
The value of open weights
- Can be deployed privately, with data staying inside your boundary, satisfying compliance and audit requirements
- Can be fine-tuned on your own corpus to fit private business terminology
- A predictable cost structure, with unit cost more controllable as scale grows
- Reproducible weights, so evaluation results are auditable and unaffected by silent changes on the service side
The value of hosted services
- No operations burden; elastic scaling and long-context engineering optimizations are ready out of the box
- Usually come with toolchain integration, quota and rate-limit management, and stability guarantees
- Fast iteration, with no need to bear upgrade and adaptation costs yourself
For developers, the more pragmatic shape is a layered combination: put understanding and generation of sensitive data on self-hosted weight models, and hand planning tasks that need top-tier reasoning and long-context capability to hosted services; wrap a unified internal adapter layer so that models are replaceable, can be rolled out gradually, and can be rolled back. Major cloud providers offer LLM services alongside general-purpose capabilities such as object storage, container platforms, logging, and monitoring/alerting, so on the model-calling side you only need to focus on the interface contract and observability, without coupling to the underlying infrastructure.
8. Conclusion and a Practical Checklist
The real conclusion here is not “this model is good and that one isn’t,” but that the evaluation method itself needs to be upgraded: from watching demos and looking at benchmark scores to looking at task pass rate and deliverable quality. Once you have a structured requirements document, an acceptance checklist, and an automated verification pipeline in hand, the capability improvements brought by model iteration become immediately quantifiable, instead of staying at the level of gut feeling.
A checklist you can follow directly:
- Structure requirements first; convert prose descriptions into a spec file with rules and acceptance items
- Fix the evaluation test-case set, sample each case multiple times, and look at pass rate and variance
- Score on five dimensions: functional fidelity, runnability, code quality, visual consistency, and generation efficiency
- Contract first, page-level splitting, and explicitly agree on the shared component list
- Automated gates: build + type check + static check + tests + visual regression
- Externalize design tokens so the model complies with visual conventions rather than inventing them
- Keep models replaceable at the architecture level: sensitive scenarios go to private deployment, reasoning-heavy scenarios go to hosted services
- Distinguish “model-capability issues” from “service rate-limiting issues” to avoid misattribution
Once you have this workflow in place, no matter how the underlying models are replaced, your evaluation conclusions and delivery quality will stay stable—and that is the most reliable technical moat when facing a rapidly iterating model ecosystem.
