Open-Source LLM Full-Stack Development: Capability Boundaries and Implementation Practices

    This article examines whether open-source LLMs can deliver runnable full-stack web applications from natural-language requirements. Using three demo scenarios, it explains capability boundaries across requirements understanding, architecture planning, code generation, and logic closure; provides an executable prompt template; describes methods for detecting code hallucination and verifying concurrency logic; and outlines cloud-service selection boundaries and pre-delivery risks.

    Open-source LLMs are already close to closed-source models on code benchmarks, but the question developers really care about is this: given one natural-language requirement, can the model deliver a web application that runs, persists data, and passes basic tests? Benchmarks cannot answer this question. Using three demo scenarios as a thread, this article explains the capability boundaries, validation methods, and implementation prerequisites for full-stack generation. The cases in this article come from the original description. The original does not include complete code or specify the model names and versions, so effect judgments should be based on readers’ own reproduction.

    What capabilities are needed for agents to do full-stack development?

    Full-stack generation includes at least four stages: requirements understanding, architecture planning, code generation, and logic closure. Each stage can be checked separately.

    Requirements understanding refers to whether the model can translate vague descriptions such as “premium feel” and “immersive” into concrete design choices, for example a dark background, monospace font, fixed color values, and animation durations. The validation method is to list design requirements as a checklist and compare each item against page screenshots.

    Architecture planning refers to whether the model divides frontend and backend responsibilities and determines API routes, data models, and table structures. The validation method is to check whether API documentation and table structures correspond one-to-one with the code.

    Code generation refers to whether the code runs. Dependency versions are stated, the startup command works, and the build passes. These should be actually executed in a clean environment.

    Logic closure refers to whether business rules are correctly implemented and covered by tests. This stage is most easily overestimated; the next section expands on it.

    What do the three demo scenarios validate?

    The original article gives three scenarios. The table below lists each scenario’s focus and validation method.

    Scenario Input requirement Frontend focus Backend focus Validation Common failure
    Orbital travel website Official website with seat selection and flight booking Full-screen background, timeline, status indicator animations Storage and retrieval of date, seat, and passenger information Refresh the page after submission to confirm data persists; submit the same seat concurrently Duplicate seat occupancy; data loss after refresh
    Deep-sea research institution page First-screen sinking visual and multi-role articles Gradient layers, scroll animations, mobile adaptation Mostly static content; low backend demand Compare screenshots across devices; check whether article bylines and styles are consistent Mixed role styles; mobile layout misalignment
    Perfume brand page Marble countertop, rotating liquid, typography Canvas drawing, font loading, lighting effects Basically a display page; backend optional Frame rate test on low-end devices; fallback effect when fonts are missing Font not loaded causing layout shift; frame rate drop

    The original article states that the booking system “accurately implements concurrency control and state update logic.” This claim needs verification. There are three criteria: whether seats have a unique constraint, whether seat availability checks and writes are completed within the same transaction, and whether conflicts have a clear response or retry mechanism. The page being able to submit a form does not prove concurrency handling is correct.

    How to write executable prompts?

    Structured prompts can reduce the model’s room for free interpretation. The following template separates role, constraints, and acceptance criteria.

    1. [Role] You are a backend engineer familiar with Python 3.11 and Flask, and you can also complete a native HTML, CSS, and JavaScript frontend.
    2. [Goal] Generate a flight booking web application that can be started locally with one command.
    3. [Frontend]
    4. - Dark theme, no more than three primary colors, body text uses a monospace font.
    5. - Seat map uses SVG; show a prompt when clicking an occupied seat.
    6. [Backend]
    7. - Use SQLite; foreign keys and unique constraints must be declared in the table creation statements.
    8. - Each flight has a maximum of 6 seats; seat selection must be completed in a single transaction.
    9. [Output]
    10. - Provide a complete directory tree and full contents for each file.
    11. - requirements.txt must specify version numbers.
    12. - README explains the startup command.
    13. [Tests]
    14. - Provide pytest cases covering duplicate seat selection, exceeding the upper limit, and concurrent submission.
    15. [Prohibited]
    16. - Do not introduce third-party services not declared in the output.
    17. - Do not write secrets into the code.
    18. [Acceptance]
    19. - After starting with the README command, all pytest cases pass.

    The acceptance criteria in the template are commands and results that can be executed, making them easier to check than descriptions such as “implement complete booking functionality.”

    How to avoid code hallucination and verify backend logic?

    Code hallucination usually manifests as calling nonexistent library functions, referencing undeclared configuration items, or claiming to implement a feature while no corresponding code can be found. The following three steps can find most problems.

    First, install dependencies and start the application in a clean environment. If any step fails, ask the model to fix it based on the error rather than guessing and making manual changes.

    Second, turn the acceptance criteria into a checklist, with each item corresponding to a test or a reproducible operation. Features without corresponding tests are considered unverified.

    Third, write concurrency tests for business rules. Take the seat limit as an example. The database layer should set a unique constraint on the flight and seat number so that the same seat can be written only once. In SQLite, BEGIN IMMEDIATE can be used to acquire a write lock at the start of the transaction. In PostgreSQL and other databases, SELECT ... FOR UPDATE can be used to lock the relevant rows. During testing, have multiple threads submit seat selection requests simultaneously and count the number of successes. The result should equal the number of seats and must not exceed 6.

    How to choose cloud services and where are the boundaries?

    The original article mentions Baidu AI Cloud’s Cloud Database RDS, Object Storage BOS, and container platform CCE. They can respectively handle data persistence, static asset hosting, and application deployment. Before use, the following points need to be confirmed. Specific specifications and prices are subject to the official documentation.

    • Configuration prerequisites: RDS requires creating an instance, setting whitelists, and configuring accounts. Grant the application account only read/write permissions on the required database tables; do not connect using an administrator account.
    • Data compliance: order and passenger information is personal information. The data storage region, encryption method, and access log retention period must comply with the regulations of the relevant region.
    • Cost estimation: instance specifications, storage capacity, public network traffic, and the number of container replicas all count toward the cost. Before launch, estimate based on expected traffic and set budget alerts.
    • Alternatives: if the team already has self-hosted PostgreSQL or MySQL, or plans to use another cloud provider, business code usually only needs connection configuration changes. The application layer should not bind to a vendor’s proprietary interfaces; otherwise migration costs will rise significantly.

    Pre-delivery risk checklist

    The generated code is a prototype, not a product that can be launched directly. Before delivery, at least check the following categories of issues.

    • Security: check whether input validation, authentication, and authorization controls exist. Payment-related steps should be handled by mature payment services; generated code should not directly handle card numbers and similar information.
    • Copyright: the usage authorization for video backgrounds, images, and fonts needs to be confirmed separately. Third-party resources referenced in generated code should also have their licenses checked.
    • Reproducibility: the model name, version, original prompt, and runtime environment should all be recorded. After a model upgrade, the output of the same prompt may differ.
    • Human review: the correctness of business rules still needs to be confirmed through testing and manual review. Agents are suitable for repetitive coding and initial scaffolding; final judgment should still be made by developers.