From Requirements Document to Working App: An AI Code Generation Evaluation Where Understanding Depth Decides the Outcome
Abstract: Most tests of LLM code generation stay at the atomic level — can it write a function, can it complete a snippet — and that framing produces optimistic results. This article evaluates code generation differently: it hands a model a complete, structured product requirements document covering login, list, and form pages, sets no technical stack, and scores the result page by page on two axes, structural fidelity and functional correctness. Login and carousel pages come out close to production-ready, while list and form pages expose a systematic gap: the layout is right but filtering, validation, and conditional behavior are missing. The examples show the difference between UI that looks like it filters and filtering that actually works. The findings frame the real metric as semantic reconstruction accuracy rather than syntactic correctness, and connect that shift to what it means for open-source ecosystems, engineering infrastructure, and how developers should divide work between people and tools.
1. Why the Evaluation Has to Start From a Real Requirements Document
Discussion of LLM code generation has long stayed at an atomic, fragmented level: can the model write a function, can it complete a snippet. Tests framed this way tend to produce optimistic conclusions, because they slice the requirement into isolated tasks with clean boundaries — which is not how real engineering works.
In an actual project, a product requirements document typically spans multiple pages, cross-page data relationships, a system of interaction conventions, and field-level constraints. Whether a model can hold those interdependent rules in a limited context window and turn them into a runnable application is the scenario that actually tests capability. So the most effective way to evaluate a code generation tool is not to hand it an algorithm problem, but to give it a complete, structured product requirement and observe how it performs building the whole project from zero to one.
That is the approach taken here. The input is a front-end requirement covering login, list, and form pages, with no technical stack prescribed, and the model is left to carry out the full path from requirement parsing to project artifacts. Each page is then assessed on two axes: structural fidelity and functional completeness. The value of this method is that it makes explicit a variable that is usually overlooked — depth of understanding.
2. Overall Experience: Availability, Speed, and Output Shape
The first impression comes from availability itself. Tools in this category often face concurrency pressure at peak times, showing up as exhausted capacity, queuing, or a nudge toward a paid channel. That reflects the tension between inference-side compute supply and user scale — a general characteristic of generative services today, not an isolated defect.
Once generation actually starts, a few measurable dimensions matter:
- Generation speed: Completing an entire project under no additional constraints takes tens of minutes. Compared with lightweight completion that responds in seconds, end-to-end generation of a full application is a long-chain task, and slow throughput is expected rather than anomalous.
- Output shape: The better outcome is a complete, directly runnable project rather than scattered code fragments. That means the model produced not only static code but also the directory structure, dependency declarations, and build configuration — the engineering completeness of something that works as soon as it is opened.
Taken together, these two points show that generative tools have moved past the “snippet completion” stage and can now produce a full application skeleton. But the balance among speed, concurrency, and cost remains a practical constraint on real adoption.
3. Page-by-Page Breakdown: Where Capability Degrades
Looking only at the overall result, it is easy to conclude “not bad.” The useful judgment comes from taking the pages apart one by one, because different page types expose very different weaknesses.
Login page: high fidelity, close to usable
Login and carousel pages are relatively standard in structure, with well-defined elements and linear interaction paths. In testing, the model reproduced the carousel requirement in full even though it was spelled out in the document; the pages were functionally complete with no obvious omissions. This is roughly “a few edits and it ships” territory, and it is currently the most mature band for generative tools.
The reason is straightforward: these page types have abundant public patterns to draw on, the mapping from requirement to implementation is close to one-to-one, and the demand on depth of understanding is inherently low.
List pages: understanding starts to fall behind
Problems concentrate on list pages. The document explicitly specified the filter conditions and interaction logic, yet the generated result was missing the filter controls entirely. More importantly, this was not an occasional omission — it recurred across multiple list pages, which makes it a systematic weakness rather than a fluke.
The pattern is telling: the page skeleton is correct — layout, list rendering, and pagination structure are all there — but the functional layer is visibly discounted. This exposes a deeper rule: when a requirement involves dynamically filtering data by conditions, which requires state management and coupled logic, the model tends to reproduce only the visual structure and drop the behavioral contract.
The following illustrative code captures the gap between structural fidelity and functional completeness:
// Requirement: "Support filtering by category and price range, with combinable conditions"// Insufficient understanding: only the UI skeleton was reproduced<div className="filters"><Select placeholder="Category" /><Input placeholder="Price range" /></div>// Sufficient understanding: state is bound and the filtering logic is implementedconst [category, setCategory] = useState(null);const [range, setRange] = useState([0, Infinity]);const filtered = useMemo(() => products.filter(p =>(!category || p.category === category) &&p.price >= range[0] && p.price <= range[1]),[products, category, range]);
The same page structure: the first version only looks like it has filtering; the second one actually filters. The distance between them is the distance in understanding depth.
Form pages: the difficulty of reconstructing complex logic
Form pages amplify the problem further. The result runs overall, but fields, validation logic, and interaction details do not fully follow the document. These pages are hard because they stack several constraints at once: dependencies between fields, conditional requiredness, format validation, and conditional visibility. A misreading at any one point pushes the final output away from the requirement.
// Requirement: "Phone number is required and must be well-formed; email is optional, but if filled it must be valid"const rules = {phone: [{ required: true, message: 'Phone number is required' },{ pattern: /^1\d{10}$/, message: 'Invalid phone number format' }],email: [// Optional fields still need validation: if provided, the value must be valid{ pattern: /^[\w.-]+@[\w.-]+\.\w+$/, message: 'Invalid email format' }]};
Implicit constraints like “optional, but validate if present” are exactly the details models tend to simplify away. They do not test syntax; they test whether the requirement semantics were absorbed in full.
4. UI Style: Engineering-Usable vs. Product-Polished
On visual presentation, the generated UI is serviceable: clearly better than the crudest prototype, but short of the polish achievable by applying a mature component library template. The design language is engineering-oriented and functional rather than a striking product expression.
That positioning is fairly accurate: engineering usability is there, product aesthetics are not. For many internal tools, back-office systems, and low-to-mid-frequency pages, this is enough. For end-user-facing scenarios where brand tone matters, a second pass of visual and interaction polish by a human is still required. It also points to a pragmatic collaboration model — let the generative tool own the skeleton and the logic, and leave design sensibility to a dedicated step.
5. Core Conclusion: The Gap Is Understanding Depth, Not Generation Ability
Comparing the results side by side, one clear thread emerges:
- On simple, standardized pages with mature patterns to follow (login, carousels), capability differs little across generations and model families, and fidelity is close to usable in every case;
- On complex pages that require interpreting requirement semantics, maintaining field relationships, and implementing coupled logic, capability diverges, and the side with more complete understanding pulls clearly ahead;
- On speed, free or low-cost channels are generally much slower than mature commercial offerings, but this mostly reflects compute capacity and scheduling strategy rather than the model’s semantic understanding.
The conclusion follows directly: the core metric for evaluating generative coding tools is shifting from “can it produce code” to “can it deeply understand requirements.” Syntactic correctness stopped being the bottleneck long ago; semantic reconstruction accuracy is the dividing line. Whoever absorbs requirements more completely within a limited context, maintains cross-page consistency, and reconstructs implicit constraints holds the advantage in the next generation of these tools.
6. What This Means for AI Progress and the Open-Source Ecosystem
That leads to a more forward-looking question: when open-source or regional models close in on the most advanced closed-source options on some dimensions, what does it mean for AI progress and the open-source ecosystem? From a technical evolution standpoint, the significance shows up on three levels.
First, the capability ceiling keeps rising, with a strong spillover effect. Once the open-source side covers standardized scenarios such as login and lists and approaches top-tier quality, that capability spreads quickly through the community and becomes a shared baseline for the whole ecosystem. Narrowing the gap between the frontier and open source means ordinary developers and small teams can obtain high-quality tooling at a lower threshold, which raises the overall starting point for innovation.
Second, competition is shifting from parameter scale to understanding depth. The weakness this evaluation revealed — semantic reconstruction of complex requirements — points to where the next phase of work lies: longer effective context, stronger instruction following, and more stable cross-file consistency. Open-source communities often iterate faster on these directions than closed systems, and more transparently and reusably, which helps turn understanding depth from a vague concern into a measurable, improvable engineering problem.
Third, adoption cost and controllability improve. The stronger the generation capability and the more complete the usable output, the more inclined organizations are to bring these tools into real development workflows. At that point, the supporting engineering capabilities — build pipelines, code hosting, logging and monitoring, on-demand compute scaling, and other general-purpose cloud services — determine whether the tool can reliably support production at scale. The model is responsible for understanding accurately; the infrastructure is responsible for running reliably. Together they close the loop on adoption.
7. Practical Recommendations for Developers
Based on the above, a few engineering practices that can be adopted directly:
- Allocate trust by page complexity. Hand simple, standardized pages to the tool with confidence; for complex interactions, multi-field coupling, and strict validation, have a human review the logic contract.
- Write the requirements document in a structured, verifiable form. A vague “it should support filtering” is weaker than an explicit list of fields, combination rules, and edge cases. The shortfall in understanding depth can be mitigated to a large extent by clearer input.
- Use functional acceptance, not structural acceptance, as the standard. Do not stop at whether the page renders; verify item by item that filtering takes effect and validation triggers. This is the most effective way to surface understanding gaps.
- Adopt a human-machine division of labor. Let the tool handle scaffolding, styling, and routine logic, and reserve visual polish, complex business rules, and performance and security for dedicated roles. This is currently the most cost-effective collaboration model.
Ultimately, generative coding tools have moved from “can write code” to “must understand requirements.” Understanding depth is both the current dividing line of capability and the main battlefield for the next round of evolution in open-source ecosystems and the wider AI field. Seeing that clearly is what lets you use these tools well in real projects without being misled by their surface-level completeness.
