Full-Stack Delivery by AI Coding Agents: Acceptance Criteria for Three Scenarios

    Benchmark scores only measure an AI model's ability to solve coding problems, but they cannot answer the most critical question for development teams: can the generated project go live, handle real traffic, and be traced when errors occur? This article explores full-stack delivery by AI coding agents using three website projects as examples, detailing acceptance criteria across frontend, backend, and cloud deployment to help teams ensure production readiness.

    Beyond Benchmarks: Can Agents Deliver Full-Stack Projects?

    Benchmark scores indicate a model’s proficiency in solving coding problems, but they cannot answer the questions teams care about most: Can the generated project go live? Can it handle real traffic? Can errors be traced when they occur? This article examines three website projects to inspect the frontend, backend, and cloud deployment phases sequentially. The cases described are illustrative, and actual results depend on the assets, model versions, and runtime environment. The metrics provided are for reference only; real projects should rely on your own test results.

    1. Frontend Visuals: Graceful Degradation on Low-End Devices

    Take a commercial spaceflight website as an example. The hero section requires a full-screen background video simulating the view of Earth slowly rotating from a spacecraft window. Full-screen backgrounds are typically handled by the <video> tag, set with autoplay muted loop playsinline, and provided with a static poster image as a placeholder before loading. backdrop-filter serves a different purpose: it blurs panels above the video, making it ideal for semi-transparent overlays on data panels or navigation bars.

    AI agents can usually distinguish between these two correctly. What requires manual verification is the performance budget. Large video files will slow down the first screen load; you should compress the bitrate and cache it via a CDN. For looping animations, the prefers-reduced-motion media query should be read. If users enable reduced motion in their system settings, breathing/blinking effects and parallax should stop.

    The flight data panel uses monospace fonts, such as Courier New or Fira Code. Declaring a complete font stack with fallbacks in your styles prevents layout shifts if the font file fails to load.

    Frontend acceptance can be checked item by item:

    • Before the video loads, the hero section displays a static poster without blank areas.
    • Mobile devices have alternative solutions, such as replacing the video with a static image.
    • Looping animations stop when reduced motion is enabled.
    • No horizontal scrollbars appear at 1280px and 390px widths.

    2. Deep Sea Website: Prioritize Gradients and SVG Over WebGL

    The hero section of a deep-sea website features a camera movement dropping vertically from the ocean surface into the water, with a blue gradient transitioning from light to dark. This effect can be achieved using a CSS linear gradient combined with absolutely positioned SVGs. The code footprint is small, and compatibility is excellent. WebGL shaders are only worth introducing when real-time lighting or a massive number of particles is required.

    An AI agent can output SVG structures, including the shape of the submersible thrusters and the size of the observation window. Manual verification is needed to ensure the proportions match the real equipment and to check the SVG clarity across different screen densities.

    3. Perfume Website: Calculate the Cost of 3D Models Separately

    In the hero section of a perfume website, an amber bottle sits on a marble countertop, with the liquid rotating slowly. An AI agent can use Three.js to set up the scene, achieve rotation by controlling the model’s Y-axis, and enhance its realism by loading texture maps and ambient occlusion maps.

    The performance of such pages is affected by three factors: the model’s polygon count, texture resolution, and the target device’s GPU capability. The team should measure the frame rate on mid-to-low-end smartphones. If the frame rate is unacceptable, prepare a fallback plan, such as replacing the real-time 3D model with a pre-rendered image.

    For typography, the “ÆTHER” text uses the Cormorant Garamond font. text-shadow and mix-blend-mode can create a layered relationship between the text and the model. In commercial scenarios, you also need to verify the licensing terms of the font files.

    4. Backend: Seat Locking Must Be Guaranteed by the Database

    In a flight booking system, a common mistake is to first check if a seat is available and then write the booking record. When two requests arrive simultaneously, both might see the same seat as empty, resulting in the seat being sold twice. This is known as a race condition.

    The correct approach is a three-layer protection:

    1. Lock the flight row within a transaction so that bookings for the same flight execute sequentially.
    2. Create a unique index on (flight_id, seat_number) so the database rejects duplicate seats.
    3. Roll back the transaction on any exception to ensure the sold count remains consistent with passenger records.

    Below is a sample code snippet using Python pseudocode to express the logic:

    1. class SeatError(Exception):
    2. pass
    3. def book_seat(db, flight_id, seat_number, passenger):
    4. with db.transaction():
    5. # Lock the flight row, serialize bookings for the same flight
    6. flight = db.fetch_one(
    7. "SELECT id, capacity, sold_count FROM flights WHERE id = %s FOR UPDATE",
    8. (flight_id,),
    9. )
    10. if flight.sold_count >= flight.capacity:
    11. raise SeatError("Flight is fully booked")
    12. try:
    13. # Unique index (flight_id, seat_number) rejects duplicate writes
    14. db.execute(
    15. "INSERT INTO bookings (flight_id, seat_number, passenger_name, passenger_id_enc) "
    16. "VALUES (%s, %s, %s, %s)",
    17. (flight_id, seat_number, passenger.name, passenger.id_encrypted),
    18. )
    19. except UniqueViolation:
    20. raise SeatError("Seat is already booked")
    21. db.execute(
    22. "UPDATE flights SET sold_count = sold_count + 1 WHERE id = %s",
    23. (flight_id,),
    24. )
    25. return {"status": "success", "seat": seat_number}

    The key to this code is that seat availability is determined by database locks and unique indexes, not by an if statement in the application layer. FOR UPDATE causes bookings for the same flight to queue. During peak traffic, wait times will increase, so load testing is required to confirm whether the latency is acceptable.

    Database table design can refer to the following structure:

    • flights: Contains id, capacity (6 in this case), and sold_count.
    • bookings: Contains id, flight_id, seat_number, passenger information fields, and created_at, with a unique index on (flight_id, seat_number).
    • Field notes table: The author role uses an enum field (e.g., Chief Scientist, Marine Biologist, Documentary Director) to avoid data inconsistency caused by free text.

    Passenger identity information should be encrypted. Logs should not print full passenger details; only record the order number or desensitized data.

    5. Cloud Deployment: Select Components Based on Load

    The deployment phase can be broken down into functional components, but specific products and parameters should be chosen based on the team’s cloud environment and traffic estimates. Common components include:

    • Object Storage + CDN: Stores background videos, deep-sea images, and perfume model texture files.
    • Managed Relational Database: Enables automatic backups and conducts regular recovery drills. A backup is only considered valid if it can be successfully restored.
    • Container Platform: Uses Kubernetes to run backend services, configuring liveness and readiness probes so abnormal instances are replaced promptly.
    • Autoscaling: Scales based on CPU or request latency. Scaling thresholds should be determined by load testing results rather than directly using defaults.
    • Logging and Alerting: Log fields should include at least trace_id, flight_id, seat_number, duration (milliseconds), and error code. Alert rules can be set to notify on-call personnel if p95 latency exceeds a set value or if the 500 error rate exceeds 1% within 5 minutes. Specific thresholds must be adjusted according to business needs.

    6. Acceptance Checklist

    Before delivery, it is recommended to check item by item across the following four dimensions:

    • Frontend: First screen load time, mobile alternative solutions, reduced motion support, responsive layout.
    • Backend: Concurrent booking tests (e.g., only one of concurrent requests for the same seat succeeds), exception branch testing, data rollback testing.
    • Deployment: Health check configuration, autoscaling rules, backup recovery drill records, alerting rules.
    • Security: No secrets hardcoded, passenger information encrypted, dependency versions available in official repositories.

    7. Common Failure Modes

    • Only implementing the happy path without handling exception branches.
    • No transactions or locks between seat checks and writes, leading to overselling under concurrency.
    • Focusing solely on visual effects without testing on low-end devices.
    • Hardcoding API keys or database passwords into the code repository.
    • Generated dependency versions being outdated or non-existent in the package manager.

    8. FAQ

    How do you evaluate an Agent’s full-stack delivery capability?
    Use a complete small feature for an end-to-end test, including page operations, API calls, database writes, and deployment. Looking only at the generation quality of a single phase cannot reflect overall delivery capability.

    Which phases require the most manual review?
    Concurrency and transaction logic, data security, performance budgets, and deployment parameters require the most manual review. Visual effects also need review, but issues there are usually the easiest to spot.

    Does a high benchmark score mean a model is suitable for backend development?
    Not necessarily. Benchmarks reflect performance on specific test tasks. Backend projects also depend on whether the model understands business constraints and whether the concurrency control code it generates can pass load testing.

    Conclusion

    AI coding agents can quickly generate frontend and backend code with a certain level of completeness, handling common page layouts, API designs, and container deployment configurations. However, their output still needs to be checked item by item against an acceptance checklist, especially concerning concurrency control, data security, and performance. Before adopting an agent, teams should first complete an end-to-end test with a small feature and use the test results as the basis for scaling up.