Evaluating and Engineering Full-Stack Delivery in LLM Agents

    Public benchmark scores measure an LLM's performance on closed-form, single-turn tasks with comparable answers, but they say little about whether an agent can actually deliver working software. This article reframes agent evaluation around artifact quality rather than answer quality, breaking "full-stack delivery" into four layers—presentation, interaction, data, and engineering—and illustrates each with three site-generation tasks of different themes. It walks through scroll-driven storytelling with accessibility, an accessible SVG seat map, and a booking system's data layer that prevents overbooking through database constraints, atomic seat holding with row locks, and idempotency with timeout release. It also covers a reusable six-part prompt structure, a pre-launch checklist, guidance for building your own repeatable evaluation set, and a deployment path built on standard cloud capabilities.

    1. First, Correct a Misconception: Benchmark Scores Are Not Delivery

    Public evaluations published when a model is released usually measure the ability to solve “closed problem statements, in a single attempt, with comparable answers”: one algorithm problem, one code completion, the expected output of a terminal command. Their value lies in being horizontally comparable and reproducible, but there is a clear gap between this kind of evaluation and real engineering work.

    Real delivery has at least four characteristics that benchmark scores do not capture:

    • The problem statement is vague. A requirement is often a single sentence of business description. The model has to fill in the information architecture, state definitions, and exception branches on its own, rather than waiting for a given input and output.
    • The artifacts are multi-layered. A website that can “be demoed” has at least four layers: the presentation layer, an interaction state machine, a data model, and interface contracts. If any layer is missing, it will surface under real traffic.
    • Correctness is defined by rules. Whether a flight seat is oversold, or whether an idempotent submission deducts a seat twice, is business correctness. It cannot be judged by whether something “looks right.”
    • They need long-term maintenance. Naming, directory structure, error codes, logging, and observability determine whether a team can take over the artifact.

    So to assess whether an agent has full-stack delivery capability, the evaluation should shift from “answer quality” to “artifact quality.” The three site-generation tasks below serve as samples for breaking down this capability.

    2. Breaking “Full-Stack Delivery” into Four Layers

    Layer Focus Typical failure mode
    Presentation Visual system consistency, typographic hierarchy, color and whitespace Mixed component styles, palette drift
    Interaction State machine, scroll storytelling, keyboard and accessibility Animations that can’t degrade, lost focus
    Data Table structure, constraints, transaction boundaries, concurrency control No unique constraints, oversell, duplicate submission
    Engineering Directory conventions, tests, error handling, observability Pages only, with no tests or logs

    Of the four layers, the easiest to make “look finished” is the first, and the most easily overlooked yet most fatal is the third. Most demo sites produced by generative tools stop at the data layer with in-memory arrays or local storage. This works fine for a single-user trial, but the moment multiple people book concurrently, it fails immediately.

    3. Case 1: A Space Tourism Business Site

    The first task is to build an official website for a low-Earth-orbit travel company, including cabin seat selection and flight booking. What makes this theme special is that it has to carry both “extreme visuals” and “real transactions” at the same time.

    3.1 Scroll-Driven Flight Narrative

    The hero uses a dynamic background from a cabin-window perspective. As the viewport scrolls down, it enters a vertical timeline whose nodes run from pre-flight preparation, ascent load, microgravity entry, to splashdown return. Implementation-wise, no complex animation engine is needed; the core is to normalize the document scroll progress and map it to a phase array:

    1. const PHASES = [
    2. { t: 'T-60:00', title: 'Pre-flight prep', g: 0, alt: '0 km' },
    3. { t: 'T+03:00', title: 'Powered ascent', g: 3.5, alt: '86 km' },
    4. { t: 'T+08:00', title: 'Microgravity', g: 0, alt: '320 km' },
    5. { t: 'T+92:00', title: 'Splashdown', g: 0.8, alt: '0 km' }
    6. ];
    7. function activePhase() {
    8. const max = document.documentElement.scrollHeight - innerHeight;
    9. const p = max > 0 ? Math.min(Math.max(scrollY / max, 0), 1) : 0;
    10. return PHASES[Math.min(Math.floor(p * PHASES.length), PHASES.length - 1)];
    11. }

    Engineering practice requires two things here. First, use prefers-reduced-motion to detect the user’s preference; when it matches, disable parallax and video and keep only the static hero image. Second, videos and animated GIFs must have a fallback path, so that a blank first screen is avoided on weak networks.

    3.2 An Interactive Seat Map with Accessibility

    An inline SVG is more suitable for the seat map than a bitmap: each seat is a focusable graphic element, states (available, occupied, selected) map directly to fill and stroke, and it naturally adapts to scaling.

    1. <svg role="grid" aria-label="Cabin seat map">
    2. <g role="row">
    3. <rect role="gridcell" tabindex="0" aria-selected="false"
    4. data-seat="1A" x="40" y="40" width="48" height="48" rx="8"/>
    5. <rect role="gridcell" tabindex="0" aria-selected="false" aria-disabled="true"
    6. data-seat="1B" x="104" y="40" width="48" height="48" rx="8"/>
    7. </g>
    8. </svg>

    The key points: aria-selected and aria-disabled must update in real time as users interact; color must not be the only carrier of state (color-blind users need to distinguish states by stroke style or icons); and every click must have an equivalent keyboard operation. These are the dividing line for whether something “can actually be used by real users,” not nice-to-haves.

    4. Case 2: Data Layer Design for the Booking System

    This part is the core of telling a “pretty shell” apart from a “deliverable system.” The business rules are simple: pick a date and seat, fill in passenger information, a fixed maximum seat count per flight, automatic lockout when sold out. Implementing simple rules correctly is harder than complex ones, because it is more sensitive to concurrency and edge cases.

    4.1 Enforcing No Oversell Through Constraints, Not Code

    A seat should be a first-class entity, not a string field written into the flight record. Inventory must be enforced by constraints at the data layer:

    1. CREATE TABLE flight (
    2. flight_id TEXT PRIMARY KEY,
    3. depart_at TIMESTAMP NOT NULL,
    4. seat_cap INT NOT NULL CHECK (seat_cap > 0)
    5. );
    6. CREATE TABLE flight_seat (
    7. flight_id TEXT NOT NULL REFERENCES flight(flight_id),
    8. seat_no TEXT NOT NULL,
    9. status TEXT NOT NULL DEFAULT 'AVAILABLE'
    10. CHECK (status IN ('AVAILABLE','HELD','BOOKED')),
    11. holder_id TEXT,
    12. version INT NOT NULL DEFAULT 0,
    13. PRIMARY KEY (flight_id, seat_no)
    14. );
    15. CREATE TABLE booking (
    16. booking_id TEXT PRIMARY KEY,
    17. idem_key TEXT NOT NULL UNIQUE,
    18. payload JSON NOT NULL,
    19. created_at TIMESTAMP NOT NULL DEFAULT now()
    20. );

    The 6-seats-per-flight rule lives in flight.seat_cap, and the guarantee that “the actual number of available seats does not exceed the cap” is provided jointly by the row count and status of flight_seat. Here we deliberately avoid putting the cap only in a frontend or application-layer in-memory check—that is the first thing to break under concurrency.

    4.2 Atomic Seat Holding and Rollback

    A booking must “pick and hold seats within a single transaction,” using row-level locks to prevent two requests from selecting the same seat at the same time:

    1. -- Parameters: $1 flight_id, $2 requested seat list, $3 session identifier
    2. WITH picked AS (
    3. SELECT seat_no FROM flight_seat
    4. WHERE flight_id = $1
    5. AND seat_no IN ($2)
    6. AND status = 'AVAILABLE'
    7. FOR UPDATE SKIP LOCKED
    8. )
    9. UPDATE flight_seat f
    10. SET status = 'HELD', holder_id = $3, version = version + 1
    11. FROM picked
    12. WHERE f.flight_id = $1 AND f.seat_no = picked.seat_no
    13. RETURNING f.seat_no;

    After the application layer receives the returned seat list, it must check whether the count matches the request. If it is fewer than requested, there is contention: roll back directly and return “some seats are no longer available,” while sending the still-selectable seats back to the frontend. The purpose of SKIP LOCKED is to let concurrent requests skip rows that are already locked rather than queue up, turning serial waiting into fast failure—which is critical for the response time of booking-type endpoints.

    4.3 Idempotency and Timeout Release

    Network retries cause duplicate submissions, so the submission endpoint needs an idempotency key: the unique constraint on booking.idem_key is the last line of defense—a repeated request hits the same row and returns the same result. Held status also needs timeout reclamation, for example automatically releasing a hold that goes unpaid 10 minutes after placement. This is usually done either by a scheduled job that scans HELD records that have timed out, or by a message queue with delayed messages. The judgment logic should be centralized in one place, to avoid two implementations—a scheduled job and a delayed message—fighting each other.

    5. Case 3: Migration Capability—Same Structure, Different Themes

    With the same prompt structure, swapping the business subject to a deep-sea research institute and a high-end fragrance brand actually tests whether the model can extract a design system that is independent of the theme.

    The deep-sea site’s hero uses a “vertical descent” transition: the frame splits in two with a clipping mask at the moment it crosses the waterline, with sea-surface highlights above and a gradient from light blue to deep navy below, while two warm light sources are kept in the distance as visual anchors. The submersible’s parameters are presented in a card grid, and the fields themselves (propulsion method, observation-window size, dive depth) should be abstracted into a unified parameter table structure, rather than hard-coding a set of styles for each card. The field-notes section introduces an attribution system: article objects carry author, title, and publication-time fields, mapped consistently at render time.

    The fragrance brand site tests “restrained aesthetics”: generous whitespace, a single accent color, a high-contrast classic serif carrying the brand name, and a monospace or geometric sans-serif carrying body text and numbers. The translucency of glass and liquid is usually achieved by stacking multiple gradients, blur, and glow, rather than by introducing bitmap sequences—the former scales losslessly, while the latter brings size and sharpness problems.

    The shared conclusion across the three cases: what really matters in a prompt is not adjectives but structure. When the prompt explicitly specifies the information architecture, field list, visual tokens, and acceptance criteria, output across different themes can hold the same engineering standard.

    6. A Reusable Prompt Structure

    A stable generation prompt should contain six parts, and a missing part shows up directly in the artifact:

    1. [Role] You are a senior full-stack engineer; produce a project that runs and can be tested directly.
    2. [Business model] Entities, fields, state machine, and transition conditions (e.g., seat: selectable -> held -> confirmed/released)
    3. [Information architecture] Page list, the content and order of each block, navigation hierarchy
    4. [Visual spec] Palette (including accent color), typographic hierarchy, spacing grid, radius and shadow tokens, animation timing curves
    5. [Technical constraints] Tech stack, directory conventions, interface contracts, error-code conventions, required test cases
    6. [Acceptance criteria] Functional cases, boundary and concurrency cases, accessibility requirements, performance targets

    Among these, “acceptance criteria” is the most often omitted, yet it determines whether the output can be automatically verified. Given explicit cases, the result can be judged by test pass rate rather than subjective impression.

    7. From Demo to Operable: A Pre-Launch Checklist

    • Accessibility: keyboard reachable, visible focus, text contrast no lower than WCAG AA’s 4.5:1, and animations that respect the system’s reduced-motion preference.
    • Performance budget: render the main hero content within 2.5 seconds, respond to interactions within 200 milliseconds, and keep cumulative layout shift close to zero; load background video on demand and provide a static hero image.
    • Security: validate and length-limit all input on the server; add rate limiting and CAPTCHA to form submissions; escape by default in template rendering to avoid injection; do not put secrets in frontend config.
    • Testing: write concurrency cases at the data layer (two requests competing for the same seat, over-limit requests, duplicate idempotency keys), write contract tests at the interface layer, and keep a few end-to-end cases at the page layer to cover the main flows.
    • Observability: structured logs should carry a request identifier and flight identifier, and key metrics (seat-hold success rate, rollback rate, remaining inventory) should feed into monitoring and alerting, so that production isn’t limited to learning about problems from user reports.

    8. How to Build Your Own “Full-Stack Delivery” Evaluation Set

    It’s best to draw tasks from a pool of real requirements, giving each task three types of cases at once—functional, boundary, and concurrency—and scoring along these dimensions:

    Dimension How it’s judged
    Functional completeness Automated test pass rate
    Business rule correctness Concurrency and boundary cases (oversell, duplicate submission, timeout release)
    Design consistency Whether visual tokens are unified, whether styles are hard-coded
    Accessibility and performance Automated audit tools + performance thresholds
    Maintainability Directory and naming conventions, test coverage, centralized error handling

    The value of this evaluation lies in repeatability: the same task can be automatically re-run after a model iteration, quantifying whether an improvement truly shows up in delivery quality rather than stopping at the demo level.

    9. Deployment Path and Common Cloud Capability Combinations

    To put a generated artifact into production usually doesn’t require a complex architecture: host static assets in object storage and put them behind a content delivery network for edge acceleration; deploy stateful booking endpoints on a container platform with load balancing and auto-scaling; store business data in a managed relational database, and use a distributed cache to relieve database pressure for hot seat queries and idempotency keys; route delayed-release jobs through a message queue; and connect logs, metrics, and distributed tracing to a logging service and monitoring/alerting to form a “can locate the problem when something goes wrong” loop. Platforms like Baidu AI Cloud provide exactly this class of general-purpose cloud capability—what matters is whether the architecture matches the read/write characteristics of the business, not how many components are piled up.

    10. Conclusion

    To judge whether an agent has full-stack delivery capability, the standard should not be whether the hero looks impressive, but four bottom lines: whether business rules can be enforced at the data layer, whether correctness holds under concurrency, whether non-typical users can use it smoothly, and whether the artifact can be taken over and maintained by others. Write these four into your prompts and acceptance criteria, and what generative tools produce will move from “demo” to “production.”