Engineering Practices for AI Agent Full-Stack Development and Frontend Rendering
This article explores the engineering practices of evaluating AI agents in real-world full-stack development. Moving beyond benchmark scores, it focuses on verifiable outcomes across three dimensions: end-to-end delivery from UI to database, high-fidelity visual rendering, and enterprise deployment processes. It covers evaluation criteria, full-stack implementation details (including frontend interactions and backend concurrency control), multi-scenario rendering techniques, technical decomposition of agent workflows, and cloud service selection for production environments.
The capability evaluation of AI Agents is shifting from leaderboard benchmarking to practical delivery. Whether an agent can shorten development cycles and reduce rework in real projects is more valuable than a few extra points on a benchmark. This article does not discuss scores; it focuses on three verifiable outcomes: whether it can run the pipeline from interface to database, whether it can reproduce visual details of design drafts, and whether it can enter an enterprise delivery process.
I. Defining Evaluation Criteria
To judge an agent’s engineering capabilities, look at four outcomes:
- Runnable: Can the generated code install dependencies, start, and complete the main workflow in a clean environment without manual rewriting of core logic?
- Rework Volume: Time spent on manual modifications and which files were modified.
- Visual Fidelity: Checking colors, fonts, animation durations, and responsive breakpoints against the design draft.
- Business Consistency: Whether frontend data, backend states, and database records are consistent.
The three cases referenced come from public generation demos: an orbital travel website, a deep-sea research institution website, and a perfume brand website. The original texts did not provide complete prompts, model versions, generation times, or manual modification durations. Therefore, these cases only illustrate that agents can achieve corresponding results under given conditions, not that they can do so stably every time. The following descriptions are based on this premise.
II. Full-Stack Delivery: From Page to Database
- Frontend Visuals and Interactions
The orbital travel site interface includes several sections. The hero section uses a full-screen video background simulating a spacecraft porthole view. The Earth’s curvature slowly rotates via CSS3 animations, with blue halos at the atmosphere’s edge created using shadows and gradients. Page layout is done with Flexbox or Grid. The flight data panel in the bottom right uses monospaced fonts to display key parameters. The online status indicator in the top left uses keyframe animations for a slow breathing effect. The vertical timeline arranges flight phases from launch preparation to capsule splashdown recovery, with each node featuring orange data markers and scene images. The cabin layout uses SVG and supports click selection.
These effects require inspection to confirm quality. The following checklist is recommended for acceptance:
- Whether animation durations match the design draft and whether loop animations have abrupt jumps.
- Whether the timeline and data panel are misaligned or obscured at 375px, 768px, and 1280px breakpoints.
- Whether the video background has a static fallback image on mobile, and if the page remains readable if the video fails to load.
- Whether rotation and blinking animations stop or reduce when the “reduce motion” preference is enabled.
- Whether the clickable area of the cabin SVG is large enough and whether the selected state has clear visual feedback.
- Backend Logic and Data Persistence
The real test lies in the booking system. As the original text didn’t specify the database type, MySQL 8 is used as an example to explain the design. The principles remain the same for PostgreSQL, though specific syntax needs adjustment.
The booking feature requires at least three tables:
flights: Flight information, including flight number, date, and seat count. The business rule specifies 6 seats per flight, so the seat count is fixed at 6.seats: Seat information, including flight ID, seat number, status (free, locked, sold), and version. A unique index on (flight ID, seat number) prevents duplicate valid records for the same seat.bookings: Booking records, including seat ID, passenger info, status, and idempotency key. A unique constraint on the idempotency key prevents duplicate bookings caused by network retries.
The core of seat locking is the transaction boundary. One approach is to use SELECT ... FOR UPDATE within a transaction to lock the target seat row, confirm it’s free, update it to locked, write the booking record, and commit. Another is to execute a conditional update directly: UPDATE seats SET status='locked' WHERE id=? AND status='free', then check if the affected row count is 1. A count of 0 means the seat is occupied, returning a 409 Conflict. The latter method holds the lock for a shorter time, making it suitable for highly competitive seat booking scenarios.
Failure rollback also requires design. If payment or identity verification fails after locking, the lock must be released. A common practice is to set an expiration time for the lock, using a scheduled task to revert unconfirmed seats to free. Without this step, seats remain permanently occupied, breaking the 6-seat limit rule.
The 6-seat limit requires front-end and back-end consistency testing. It is recommended to cover at least these cases:
- Concurrency Test: 20 simultaneous requests for the same seat should result in only one success; the rest return 409.
- Capacity Test: The 7th passenger’s booking is rejected, and the number of valid records for that flight in the database remains 6.
- Idempotency Test: Sending the same Idempotency-Key twice generates only one booking record.
- Rollback Test: Simulating a payment failure should restore the seat status to free after a timeout.
- Interface Test: Upon receiving a 409, the frontend refreshes the cabin layout and prevents selecting occupied seats.
Security requirements cannot be omitted. All inputs must be validated on the backend, SQL must use parameterized queries, sensitive information like ID numbers must be encrypted, and APIs require rate limiting. These are basic production requirements not covered in the original demo.
In summary, the agent completed the pipeline from interface to database within the limited scope of the demo. This does not equate to production-grade full-stack capabilities. Before launch, authentication, payment integration, test coverage, monitoring, and operations plans must be added.
III. Multi-Scenario Aesthetic Adaptation and High-Fidelity Rendering
- Deep-Sea Site: Hero Animation, Parameter Cards, and Field Notes
The core effect of the hero section is a vertical dive from the sea surface into the water. This can be achieved using scroll-driven animations that change page elements based on scroll distance. Alternatively, JavaScript can listen to scroll events and update styles in requestAnimationFrame. The former is simpler to implement, with the browser handling performance optimization, making it suitable for purely visual camera movements. The latter is more flexible, allowing control over multiple element states based on scroll progress.
When crossing the waterline, the screen is divided horizontally into two parts: a light-colored sea surface above and progressively darker blue below. This effect can be achieved with linear gradients where color stop positions change with scroll progress. The warm yellow lights of distant submersibles can be made using absolutely positioned DOM elements with radial gradients and blur filters, without needing Canvas. Only per-frame calculated effects like floating particles warrant the use of Canvas.
Acceptance should check three points: whether there are noticeable frame drops during animations, whether color banding occurs at the waterline, and whether low-performance devices can switch to a static layered background.
The parameter cards for three submersibles need a unified structure. Fields like propulsion, observation window size, and maximum dive depth should use identical names and units, presented as definition lists for easy comparison. The field notes section displays articles from multiple authors, each requiring metadata like author attribution, date, and affiliated project, arranged in reverse chronological order. This section is suitable for semantic article tags with structured data for search engine recognition.
- Perfume Site: 3D Rendering and Typography
The perfume site demo demands higher rendering capabilities. The original mentions using WebGL or advanced CSS animations to render an amber perfume bottle on a marble counter, with the liquid inside slowly rotating and light passing through the glass to create caustic textures.
The implementation paths for these effects vary greatly. If using a WebGL scene built with libraries like Three.js, liquid rotation can be done via vertex animations or shaders, while caustics usually require dedicated shaders or pre-baked textures. Real-time caustic calculations are resource-intensive, especially on mobile. If using only CSS, it can only simulate liquid gloss and shadows, failing to present true refraction. The trade-off depends on the brand’s realism requirements and target device performance.
The demo achieved liquid rotation and caustic effects visually. Quality depends on the model version, prompt, asset quality, and manual review. Before launch, the following should be checked:
- Whether the frame rate is stable on mid-range phones. Test on target devices since the original lacks specific metrics.
- Whether GPU memory usage is acceptable and if the page stutters after the 3D scene loads.
- Whether there is a static image fallback if the device doesn’t support WebGL.
- Whether textures for marble and glass materials have copyright or licensing records.
Regarding typography, Cormorant Garamond is a serif font available via Google Fonts. Its license is typically an open-source font license, but commercial use should confirm the scope on the publishing page. Font loading should use a font-display strategy to prevent text from being invisible before loading completes. When letters overlay the bottle, testing across screen widths is necessary to ensure text isn’t obscured and maintains readable contrast.
IV. Technical Breakdown: How Agents Turn Intent into Code
The foundation of these achievements is the agent’s ability to decompose requirements. Generally, the process includes intent recognition, task decomposition, technology selection, and code generation. Users can verify this process’s reliability by inspecting intermediate artifacts. For instance, require the agent to output the page structure and API list before coding. If the list omits seat locking or idempotency design, correct it before coding to minimize modification costs.
Frontend tech selection can follow these principles:
- Use SVG for icons, paths, and interactive graphics because it scales well and binds easily to events.
- Use CSS3 Transform and Transition for simple translation, opacity, and rotation animations due to their low performance overhead.
- Use Canvas or WebGL only for particle effects or 3D scenes requiring per-frame calculations, and always provide a fallback plan.
Backend API style also requires selection. RESTful APIs are straightforward, facilitating caching, logging, and access control, making them suitable for resource-centric processes like booking. GraphQL is suitable for scenarios where frontend field combinations vary frequently but increases query complexity and access control difficulty on the server side. For the booking API, it can be designed as: POST /flights/{flightId}/bookings, with an Idempotency-Key in the request header. Return 201 on success, 409 if the seat is occupied, and 422 for invalid parameters.
V. Enterprise Implementation: Delivery Pipeline and Cloud Service Selection
Moving generated code into production requires a reliable delivery pipeline. A typical workflow is: committing code to a version control system, continuous integration executing tests, building container images, deploying to a container platform, placing media assets in object storage distributed via CDN, and covering APIs and servers with logging and monitoring systems.
Taking Baidu AI Cloud as an example, its container platform can host image deployments for frontend and backend services, supporting elastic scaling based on load. It scales out instances during booking peaks and reclaims resources during off-peak times. Object storage can save videos and images, managing historical files with lifecycle rules, while private assets use signed URLs for access. Logging services and monitoring alerts can set thresholds for error rates, P95 response times, and 409 ratios for the booking API.
However, this is just one option. Selection should consider the following:
- Compliance Requirements: Whether personal data must be stored within specific jurisdictions, and whether the cloud provider’s regions and certifications meet these needs.
- Cost Model: Billing methods for traffic and storage, and cost differences between peak and off-peak.
- Team Experience: Which cloud products the team is familiar with, and the time needed for migration and training.
- Lock-in Risk: The more proprietary services used, the higher the future migration cost.
- Alternatives: Similar services from AWS, Alibaba Cloud, Tencent Cloud, or self-hosted Kubernetes clusters. Self-hosting offers high control but high operational costs.
The selection conclusion should be based on your own compliance conditions and cost calculations, not just adopting a case’s configuration.
Regarding the boundaries of agent applicability, tasks can be divided into two categories. UI prototypes, CRUD operations, boilerplate code, and test scaffolding are suitable for agent generation, with humans primarily responsible for review. Code involving payments, identity authentication, fund settlement, permission models, and data migration must be reviewed line-by-line by experienced engineers, accompanied by security testing, even if the agent produces a runnable version.
VI. Conclusion
Current AI Agents can quickly transform requirements into runnable prototypes and cover partial full-stack pipelines. Their value lies in shortening the time from idea to a verifiable version. Requirement analysis, security auditing, performance validation, and long-term operations still need to be handled by engineers. Teams can use the four evaluation criteria in this article to test the agent’s performance in their own projects before deciding to expand its usage.
