From Benchmarks to Delivery: A Practical Guide to Full-Stack AI Agent Engineering

    The score that matters is not a model's leaderboard rank but whether an AI agent can finish a real, well-defined, maintainable project under your business constraints. This guide explains how to read benchmarks correctly, how to judge full-stack deliverables across five capability layers, and how four hands-on cases—a space-travel marketing site, a deep-sea research site, a luxury fragrance site, and a concurrency-safe seat-booking backend—expose the gap between a pretty demo and a production system. It also covers turning vague prompts into structured specs, generating in layers, automating acceptance (visual regression, contract tests, static checks, performance gates), keeping secrets and costs in check, a pre-launch checklist, and the limitations that still require human judgment.

    1. Introduction: Benchmarks Get You in the Door, Delivery Is the Finish Line

    Over the past two years, foundation models have iterated at a noticeably faster pace. With every open-source release, the community tends to fixate on leaderboard rankings: how many points a model scored on a reasoning benchmark, which software-engineering benchmark it beat against a closed model, how many percentage points it gained on a terminal-task evaluation. These numbers are useful references, but they answer a very narrow question—“under a fixed set of question types, how many did the model get right?”

    The question developers actually need to answer is a different one: can you hand it a job that has complete acceptance criteria, real business constraints, and long-term maintenance, and trust it to finish?

    Between “answering questions” and “delivering” lies a whole gulf of engineering capability: is the requirements understanding sound, is the information architecture sensible, are the visuals and interactions self-consistent, can the backend support real business, can errors be located and fixed, can results be verified automatically. Using several high-complexity sites and business systems as examples, this article systematically breaks down where an agent’s capabilities begin and end in full-stack delivery, along with the implementation details and practical methods for getting it right.


    2. Read the Benchmarks, but Don’t Read Only the Benchmarks

    To judge whether a model is suited to engineering work, understanding what each mainstream benchmark actually measures matters more than memorizing scores.

    2.1 The division of labor across four benchmark types

    • Long-tail knowledge and reasoning benchmarks: These test accuracy in obscure domains where training data is extremely scarce. Such benchmarks are usually written by domain experts, and even the human baseline only scores in the twenties or thirties. They measure whether the model “knows,” not whether it “does well.”
    • Real-repository bug-fixing benchmarks: The model is given a real project repository and a bug description and must locate, fix, and pass the tests itself. These measure long-context localization ability + engineering common sense + self-verification awareness, and are the closest to day-to-day development.
    • Terminal/command-line task benchmarks: The model must complete composite tasks such as building, debugging, configuring, and running in a Unix-like environment. These measure tool-use ability and multi-step planning, directly corresponding to whether “AI can run commands on your behalf.”
    • Aggregated leaderboards from third-party independent evaluation platforms: These usually compare dozens of models side by side and provide multi-dimensional information such as price, throughput, latency, and context length. Their value lies not in “who is first” but in helping you make trade-offs among capability, cost, and latency.

    2.2 Three traps when reading leaderboards

    1. Limited transferability of question types. A high score on bug-fixing doesn’t mean a model can write a new module with clean, maintainable architecture; conversely, a model that writes stunning code may be poor at locating a subtle bug in an unfamiliar repository. When selecting a model, you must run regression tests against your own business samples.
    2. Inconsistent methodology makes comparisons invalid. Some leaderboards allow tool calls, others allow only single-turn generation; some bill token cost separately, others count the reasoning process too. Cross-leaderboard ranking comparisons are often meaningless.
    3. Leaderboards ignore “aesthetics” and “maintainability.” These two are hard to score automatically, yet they are exactly what determines whether a product succeeds or fails.

    Conclusion: The leaderboard decides whether you can pick a model; your business samples decide whether you should use it.


    3. Five-Layer Criteria for Judging Full-Stack Delivery

    Treat the agent’s output as a real engineering deliverable and review it across five layers.

    Layer Question to ask Typical failure
    Requirements Does it grasp the real business constraints, not just restate the brief Ships a “pretty homepage” and misses business rules like capacity limits
    Architecture & visuals Is the information architecture coherent and the visual language consistent Every page looks like a different author; colors and fonts don’t agree
    Front-end engineering Are interactions genuinely usable and the performance budget controlled Scroll animations drop frames; uncompressed images cause a multi-second blank first paint
    Data & backend Is there persistence, concurrency consistency, and validation Page data vanishes on refresh; concurrent orders oversell
    Operability Can it be monitored, tested, and iterated No logs or alerts; problems can only be found by eye

    A common mistake is to let a model’s “good-looking page” create the illusion that delivery is complete. In reality, correctness of business logic, data persistence, and concurrency safety are the three things that separate a “demo prototype” from a “production-ready system.”


    4. Case 1: A High-Narrative-Density Marketing Site (Space Travel)

    Requirements: build a marketing site for a commercial space-travel company, including capsule seat selection and flight booking, with a strong sense of brand quality above the fold.

    4.1 How the visual system holds together

    The key here isn’t “how many animations were used” but a unified visual grammar. Broken down, it comes to four things:

    • Parallax and video backgrounds: The hero uses a full-screen video of a slowly rotating arc of the Earth, paired with a synchronized gradient overlay to create a first-person “in orbit” feeling. In practice this is usually <video autoplay muted playsinline> with a semi-transparent gradient mask on top to guarantee text contrast.
    • Telemetry data panel: The lower right lists a set of parameters (orbital altitude, velocity, crew count) in a monospace font, while a status dot in the upper left pulses slowly at low frequency. This kind of “simulated instrument” element greatly boosts credibility, but the update frequency must be controlled—updating every second looks cheap; changing once every 2 to 3 seconds feels more like real telemetry.
    • Vertical timeline narrative: A single flight is broken into T-60:00 suiting up, T+03:00 the g-force segment, T+08:00 weightlessness, T+92:00 splashdown and recovery, each stage paired with a key data point and a scene illustration.
    • Complete information architecture from a single prompt: From brand colors and typographic hierarchy to an interactive seat map, the style is highly consistent.

    4.2 The scroll-driven timeline: the core implementation

    The soul of the timeline is “progress awareness.” Using IntersectionObserver to determine which stage is active is more performance-friendly than frame-by-frame calculation and naturally adapts to mobile.

    1. // Stage timeline: scroll-driven highlighting + telemetry panel sync
    2. const stages = [...document.querySelectorAll('.flight-stage')];
    3. const phaseReadout = document.querySelector('#telemetry-phase');
    4. const observer = new IntersectionObserver((entries) => {
    5. entries.forEach((entry) => {
    6. if (!entry.isIntersecting) return;
    7. entry.target.classList.add('is-active');
    8. // Key point: drive the UI from data attributes, don't hardcode the copy in the logic
    9. phaseReadout.textContent = entry.target.dataset.phase;
    10. readoutDetail.textContent = entry.target.dataset.metric;
    11. });
    12. }, { rootMargin: '-45% 0px -45% 0px', threshold: 0 });
    13. stages.forEach((stage) => observer.observe(stage));

    Three easy traps:

    1. Don’t read/write the DOM directly inside a scroll handler. Scroll events can fire hundreds of times per second, and synchronous layout reads force reflow. The correct approach is to batch updates with requestAnimationFrame, or switch to IntersectionObserver altogether.
    2. Always handle the “reduced motion” preference. System-level motion reduction isn’t optional; it’s the baseline for accessibility compliance:
    1. @media (prefers-reduced-motion: reduce) {
    2. .bg-video, .caustic, .pulse-dot { animation: none; }
    3. .flight-stage { opacity: 1; transform: none; }
    4. }
    1. Don’t forget accessibility. The timeline should be semantically an ordered list (<ol>), the video background must be muted and provide a pause control, and every state conveyed by color alone needs a text label.

    5. Case 2: A Content-Driven Institutional Site (Deep-Sea Research)

    Requirements: build a marketing site for a deep-sea research institution where the hero descends vertically from the surface into the water, featuring spec cards for three submersibles, an educational split-screen of six deep-sea creatures, and bylined field notes.

    5.1 Implementing the hero camera move

    The core of this case is doing the “descent” with CSS rather than video:

    • Use a very long vertical gradient as the water body, panning it with background-position as a function of scroll progress to create a continuous sense of diving;
    • When crossing the “waterline,” switch once via an overlay so the frame splits in two—sky and waves above the surface, deep blue below;
    • Simulate the submersibles’ searchlights in the distance with two warm-yellow radial gradients whose brightness decreases with depth—light attenuation suggests depth more convincingly than a color change does;
    • Render background particles with a small number of DOM nodes and transform: translate3d for parallax, avoiding heavy filters that would explode the number of compositing layers.

    5.2 Spec cards and information density

    The layout of the three device cards follows one principle: align with a table, not with cards. Fields such as propulsion method, dive depth, viewport size, and crew count are aligned vertically in a monospace font so readers can compare them horizontally at a glance. Specifications are the “credentials of credibility” for this kind of site, so the layout must read like a spec sheet, not a marketing page.

    5.3 Designing for content credibility

    The three articles in the field-notes section are bylined to a chief scientist, a marine biologist, and a documentary director, each with the expedition number and shoot date attached. This “metadata density” is the key to building authority for educational sites: real names, expedition numbers, and dates are more persuasive than any adjective.


    6. Case 3: A High-Aesthetic Brand Site (Fragrance)

    Requirements: a marketing site for a luxury fragrance brand, where the hero shows an amber perfume bottle on a marble surface, the liquid inside slowly rotating, light passing through the glass to cast caustic patterns, and the brand name set in a serif face over the bottle.

    In this category, what sets sites apart isn’t functionality but the expressiveness of materials. Three technical points:

    1. Glass texture comes from “layered stacking,” not a single filter

    Glass gets its visual character from three layers: highlight edges, internal refraction, and external reflection. CSS can get quite close:

    1. .bottle {
    2. border-radius: 18% 18% 12% 12% / 8% 8% 6% 6%;
    3. background:
    4. /* highlight band */
    5. linear-gradient(105deg, transparent 18%, rgba(255,255,255,.55) 26%,
    6. transparent 34%),
    7. /* interior liquid */
    8. radial-gradient(120% 90% at 50% 78%, rgba(214,150,58,.92), transparent 68%),
    9. /* refraction base */
    10. linear-gradient(180deg, rgba(255,255,255,.16), rgba(90,40,10,.28));
    11. backdrop-filter: blur(6px) saturate(130%);
    12. box-shadow:
    13. inset 0 0 40px rgba(255,255,255,.22),
    14. 0 30px 60px -20px rgba(0,0,0,.55);
    15. }

    2. Caustic patterns via “pseudo-random perturbation”

    Real caustics are the interference pattern of light refracted through a curved surface, and simulating them precisely is very costly. The common engineering solution is to stack 2 to 3 layers of low-opacity Gaussian noise textures, giving each layer a different animation-delay and a slow transform; visually this is enough to fool the human eye. Note: use will-change sparingly to hint at compositing layers—too many layers actually cause dropped frames.

    3. Serif type is the “temperament switch” for these sites

    Set the brand name in a high-contrast serif (thin horizontals, thick verticals) with a large size and very tight tracking; use a sans-serif for body copy with generous line height. Once this contrast is established, the whole page immediately takes on a “quiet luxury” tone.


    7. Case 4: A Backend That Actually Runs—Booking Consistency

    The previous three cases show what “looks good”; this section is the dividing line: the booking system must genuinely work, and be concurrency-safe.

    7.1 Data model: express business constraints as database constraints

    The correct implementation of the requirement “each flight has 6 seats; when full, it locks automatically” is not “check the count in the application layer” but making the database the single source of truth:

    1. -- Bookings table: the primary key naturally guarantees "the same seat on the same flight can only be sold once"
    2. CREATE TABLE booking (
    3. flight_id BIGINT NOT NULL,
    4. seat_no SMALLINT NOT NULL CHECK (seat_no BETWEEN 1 AND 6),
    5. passenger TEXT NOT NULL,
    6. created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    7. PRIMARY KEY (flight_id, seat_no) -- Key: the composite primary key is the unique constraint
    8. );
    9. -- Flights table: records capacity, making ops adjustments and front-end validation easier
    10. CREATE TABLE flight (
    11. flight_id BIGINT PRIMARY KEY,
    12. capacity SMALLINT NOT NULL DEFAULT 6,
    13. depart_at TIMESTAMPTZ NOT NULL
    14. );

    7.2 Concurrent ordering: three things that must be done right

    • Rely on the unique constraint to catch duplicate submissions: When two people grab the same seat, the second INSERT will necessarily trigger a primary-key conflict. Let the database throw the error rather than doing a SELECT followed by an INSERT—the latter will inevitably produce a double-write under concurrency.
    • Use a transaction to guarantee the atomicity of “reserve seat + decrement inventory”: After the insert succeeds, update the remaining seats within the same transaction; if either step fails, roll back the whole thing.
    • Make the API idempotent: Submitting the same request_id again should return the result of the first submission, not occupy another seat. This is essential for weak-network retry scenarios on mobile.
    1. BEGIN;
    2. -- 1) Reserve the seat (the unique constraint guarantees it won't be double-sold)
    3. INSERT INTO booking (flight_id, seat_no, passenger)
    4. VALUES ($1, $2, $3);
    5. -- 2) Decrement remaining seats and check whether it's sold out
    6. UPDATE flight
    7. SET remaining = remaining - 1
    8. WHERE flight_id = $1 AND remaining > 0;
    9. -- 3) Validate: 0 rows updated means sold out; roll back proactively
    10. COMMIT;

    7.3 The principle of layered validation

    Front-end validation handles experience (instant feedback, disabled states), server-side validation handles correctness (never trust values from the client), and database constraints handle the safety net (even if there’s a bug in the application layer, the data won’t be corrupted). The three layers’ responsibilities cannot substitute for one another—this is one thing you must re-check before any “agent-generated code” ships.


    8. Plugging Agents into a Real Engineering Pipeline

    Generating one stunning page from a single prompt isn’t hard; the hard part is stable reproduction and continuous iteration. Here are practical engineering methods.

    8.1 Structure the requirements input

    A vague prompt only yields a vague result. Write the requirements as a structured spec and fill it in yourself before handing it to the agent:

    1. ## Site spec
    2. - Business goal:
    3. - Target users:
    4. - Core information architecture (primary nav / secondary pages):
    5. - Visual direction (primary color / accent color / font roles / radius and shadow strategy):
    6. - Key interactions (list each one, including empty and error states):
    7. - Business constraints (capacity limits / permission rules / state machine):
    8. - Performance budget (first-load JS ≤ X KB, LCP ≤ Y s, image formats and sizes):
    9. - Accessibility requirements (keyboard reachable / contrast / reduced motion):

    This spec is worth far more than the prompt itself—it’s the reference table for later acceptance and the only basis on which the team reaches consensus on what “done” means.

    8.2 Generate in layers, not all at once

    The recommended order is: information architecture → design tokens (colors / fonts / spacing) → component skeletons → page assembly → APIs and the data layer. Each layer first produces a reviewable “intermediate artifact” before moving to the next. Generating an entire site in one shot most commonly fails as “locally pretty, globally fragmented”: each page looks fine on its own, but put together, the style drifts.

    8.3 Automated acceptance: let machines find the flaws first

    Turn manual review into machine-checkable items:

    • Visual regression: screenshot comparison on key pages, alerting when a threshold is exceeded;
    • Contract tests: positive and negative-case checks on APIs like booking, especially concurrency and idempotency scenarios;
    • Static checks: missing accessibility attributes, images without alt, insufficient contrast—handled by automated rules;
    • Performance gates: block the release when LCP, CLS, or first-load asset size exceeds budget.

    8.4 Security and cost can never be skimped

    Agent-generated front-end code must never contain secrets. Any credentials for calling third-party capabilities must stay on the server, proxied through your own backend API, with the front end holding only a session token. Also: apply allowlist validation to all user input, use parameterized queries to avoid SQL injection, validate the origin of cross-origin requests, and don’t echo stack traces in error messages.

    On the cost side, add a lightweight cache layer on the front end: long-cache static assets, set API-result TTLs by business freshness, and centralize expensive generative calls on the server with result reuse. Keeping reusable computation on the server is the single most effective way to control unit cost.

    If your site needs containerized deployment, object storage to host static assets, log collection, and monitoring/alerting, general-purpose cloud products from platforms like Baidu AI Cloud (container services, object storage, log services, monitoring and alerting) can carry this directly, avoiding the duplicated investment of building your own ops stack.


    9. Acceptance Checklist: Confirm Each Item Before Launch

    • Do the business constraints land simultaneously across all three layers—front end, server, and database?
    • Is there any fake implementation that “looks usable but never persists to the database”?
    • Have concurrency scenarios been tested (not just the single-user path)?
    • Are empty states, loading states, error states, and timeout/retry handled?
    • Do animations have a prefers-reduced-motion fallback?
    • Do first-load asset size and image formats meet the targets?
    • Is there any leftover secret or internal address in the front-end code?
    • Do visual assets have copyright and source records?
    • Are there baseline screenshots and automated regression tests?

    10. Limitations and Boundaries: Three Things to Admit

    1. Attention decay in long contexts. The longer the task chain, the more easily early constraints get forgotten. The solution is to write key constraints explicitly into the spec file for every round, rather than expecting the model to “remember.”
    2. High homogenization of aesthetics. When all agents learn style from the same batch of excellent designs, the sites they produce converge. Differentiation ultimately comes from business insight and human judgment, not from stronger generation ability.
    3. “Runnable” doesn’t equal “maintainable.” Code that runs without layering, comments, or boundary handling becomes a liability three months later. This part of the work still depends heavily on humans.

    11. Conclusion

    Leaderboards tell us where a model’s ceiling is, but what determines a project’s success or failure is whether it can deliver stably, safely, and verifiably under your specific business constraints.

    As the cases above show, a genuinely qualified agent delivery should include all of the following at once: a self-consistent information architecture, a restrained visual language, a data layer that holds up under concurrency, and an automatable acceptance system. Only when all four are present is it a “delivery”; miss one, and it’s still just a “demo.”

    For developers, the most worthwhile preparation now isn’t chasing leaderboard rankings but building your own structured requirements template and automated acceptance pipeline—because no matter how the underlying models iterate, the quality of the input and the standard of acceptance always remain in your hands.