Evaluating Full-Stack Delivery Capabilities of Open-Source AI Agents: A Practical Guide

    This article explores how evaluating open-source AI agents should evolve from measuring code completion to assessing complete application delivery. It breaks full-stack delivery into design-system consistency, interactive state management, business and data constraints, and engineering standards. It also includes a minimal flight-seat reservation example, an acceptance checklist, and practical guidance for production readiness.

    1. Shifting the Evaluation Criteria: From Writing Correct Code to Delivering a System

    In the past, code generation was often evaluated by single-file completion pass rates. As the way agents are used changes from “complete a function” to “accept one requirement and deliver an application,” the old evaluation dimensions show a clear gap. To call an application “delivered,” it should pass at least three checks:

    1. Runs correctly: dependencies can be installed, the build has no errors, and key paths do not break after startup;
    2. Looks coherent: visual hierarchy, grid spacing, typography, and color palettes follow a consistent system rather than being a page of stacked class names;
    3. Closes the loop: business rules are actually encoded, data can be persisted, and boundary conditions such as capacity limits, duplicate submissions, and concurrent contention are explicitly handled.

    These three checks map to three layers of agent capability: visual expression, interaction implementation, and business modeling. Many demos look impressive because they complete only the first two layers. Production failures, however, often concentrate on the third.

    2. Four Layers of Full-Stack Delivery Capability

    2.1 Visual and Design System Layer

    High-quality generation is not merely a randomly attractive interface; it reflects consistency in an implicit design system. Four observable characteristics help judge this:

    • Typographic hierarchy: font sizes and weights are proportional across headings, body text, and data labels; monospace fonts are used for numerical or code-like information;
    • Grid and whitespace: spacing uses multiples of a consistent base value, and module alignment does not rely on manual visual tuning;
    • Color semantics: primary, secondary, and status colors (success, warning, locked) have clear responsibilities, and contrast meets readability requirements;
    • Restrained animation: transitions support narrative and state feedback, such as cinematic scrolling on the first screen or breathing status dots, rather than meaningless movement.

    2.2 Interaction and Graphics Layer

    The real difficulty is not drawing a graphic but giving it a state machine. Take seat selection as an example. A deliverable graphic component must maintain at least four states: available, selected, locked by another user, and sold. When states change, it should synchronize accessibility attributes such as keyboard reachability and screen-reader labels, as well as the reverse data requests. The judgment is straightforward: does the selection still exist after refreshing the page? If the state exists only in front-end memory, only the presentation layer has been built.

    2.3 Business Logic and Data Layer

    This is the dividing line between full-stack delivery and a front-end demo. Constraints that need to be explicitly encoded include:

    • Capacity invariants: for example, a single flight has six seats. Overselling must be rejected at the storage layer, not merely grayed out in the front end;
    • Locking and timeout release: temporary holds need expiration times to prevent inventory from being permanently blocked after a user abandons the flow;
    • Idempotency: duplicate clicks or network retries must not create duplicate orders;
    • Auditability: who locked which seat and when must be traceable.

    2.4 Engineering Standards Layer

    This includes directory layering (routes/services/repositories/domain models), externalized configuration, input validation, error code standards, observability instrumentation, and testability. A delivery without tests and logs is just an upfront payout of technical debt.

    3. Example: A Minimal Working Reservation Loop

    Data Model (Illustrative)

    1. CREATE TABLE flight_seat (
    2. id BIGSERIAL PRIMARY KEY,
    3. flight_id BIGINT NOT NULL,
    4. seat_no VARCHAR(4) NOT NULL,
    5. status SMALLINT NOT NULL DEFAULT 0, -- 0 available, 1 locked, 2 sold
    6. hold_expires TIMESTAMPTZ,
    7. version INT NOT NULL DEFAULT 0,
    8. UNIQUE (flight_id, seat_no)
    9. );

    Atomic Locking: Let the Database Be the Only Arbitrator

    1. UPDATE flight_seat
    2. SET status = 1,
    3. hold_expires = now() + interval '10 minutes',
    4. version = version + 1
    5. WHERE flight_id = $1
    6. AND seat_no = ANY($2::varchar[])
    7. AND status = 0
    8. RETURNING seat_no;

    The key is to compare the number of rows returned by RETURNING with the number of requested seats. If they do not match, some seats have already been taken. The whole transaction should roll back and return a conflict so the front end can ask the user to choose again. Do not use a two-step “read first, then update” approach. Under high concurrency, it will inevitably lead to overselling.

    Server-Side Flow (Illustrative)

    1. async function holdSeats(req: HoldRequest) {
    2. return db.transaction(async (tx) => {
    3. // 1. Idempotency: if the same idempotency key has already been processed, return the original result.
    4. const existed = await tx.order.findByIdempotencyKey(req.idempotencyKey);
    5. if (existed) return existed;
    6. // 2. Capacity invariant validation (reject invalid requests, such as 20 seats in one request).
    7. if (req.seats.length === 0 || req.seats.length > MAX_SEATS) {
    8. throw new BizError('SEAT_COUNT_INVALID');
    9. }
    10. // 3. Atomic locking
    11. const locked = await tx.lockSeats(req.flightId, req.seats);
    12. if (locked.length !== new Set(req.seats).size) {
    13. throw new BizError('SEAT_CONFLICT', { available: locked });
    14. }
    15. // 4. Create the order and write the idempotency key.
    16. return tx.order.create({ ...req, status: 'PENDING_PAY' });
    17. });
    18. }

    Expired locks can be released through scheduled batch cleanup, or through lazy reclamation when querying the seat map. The former has weaker real-time behavior but lower cost; the latter is simpler to implement. In production, the two are often used together.

    4. How to Verify Whether an AI Agent Can Really Deliver

    Do not rely on subjective impressions. Use a reproducible checklist. It helps to break a requirement into a requirement coverage matrix and judge each item:

    Dimension Verification question Typical failure
    Executability Can a clean environment build and start on the first try? Missing dependencies, hard-coded ports, non-portable paths
    Requirement coverage Can every requirement be traced to code? Only static presentation, no interaction callbacks
    Constraint adherence Are hard business rules enforced at the storage layer? Limits are only grayed out in the UI; APIs can bypass them
    Edge cases Are null values, boundary values, concurrency, and duplicate submissions handled? Uncaught exceptions are thrown directly
    Maintainability Are modules layered and naming consistent? A single 1,000-line file mixes logic with views
    Security baseline Are validation, authentication, and secret management in place? Credentials are embedded in code; APIs lack authentication

    It is recommended to turn this matrix into an automated process: build → static analysis → unit and API tests → end-to-end critical paths → security scanning. Agents are suitable for generating and iterating code, but the right to decide should belong to machines and pipelines rather than first impressions.

    5. Collaboration Methods for Stable Delivery Quality

    • Specifications first: ask the agent to produce acceptance criteria and data models first, confirm them, then generate interfaces. Changing specifications early is far cheaper than changing architecture later.
    • Layered generation: skeleton and routes → data models and migrations → APIs and business rules → interfaces and interactions. Each layer can be validated independently.
    • Context governance: feed only necessary files and interface contracts, and use retrieval to obtain relevant snippets. The noisier the context, the more likely the agent will generate code that looks right but does not connect.
    • Closed-loop feedback: allow the agent to run builds and tests, read error output, and make multiple rounds of self-correction. This is far more efficient than manually inspecting generated code line by line.
    • Human checkpoints: architecture selection, data models, and permission/security policies must be confirmed by humans. Errors in these three areas have the highest rework cost.

    6. From Generation to Launch: What Production Requires

    What an agent usually delivers is an artifact that can run locally. Productionization requires additional pieces:

    • Runtime: containerize the application, inject configuration through environment variables, and use the same image locally and in production;
    • Static assets: place front-end build outputs in object storage and connect them to a content delivery network; route API traffic through a unified API gateway;
    • Data layer: use managed databases with automatic backups and point-in-time recovery, and make slow queries searchable in logs;
    • Observability: centrally collect logs, and set thresholds for monitoring and alerting on error rates, latency, and resource usage;
    • Secret management: credentials should exist only in a secret management service or environment variables, and should never be committed to repositories;
    • Release strategy: canary releases and one-click rollback are the minimum safeguards for handling occasional failures in generated code.

    On Baidu AI Cloud, these capabilities correspond to general product categories such as containers, object storage, managed databases, logging services, and monitoring/alerting. They can be combined as needed. For specific selection and pricing, refer to the official documentation.

    7. Capability Boundaries and Risk Checklist

    • Implicit assumptions: agents may automatically fill in rules not stated in the requirement, such as lock duration or rescheduling policies. These must be made explicit and confirmed one by one.
    • Hallucinated APIs: agents may reference nonexistent libraries or parameters. Installing dependencies and type checking are the only reliable ways to intercept such issues.
    • Security debt: generated APIs often default to no authentication, no rate limiting, and no input validation. A dedicated security review is required before launch.
    • Compliance: licensing for external assets, fonts, and dependency licenses should be included in pre-release checks.
    • Benchmark overfitting: scores on public evaluation sets can differ greatly from real business distributions. Selection should be based on small-scale tests on your own scenarios.
    • Cost: long contexts and multiple rounds of self-correction increase invocation costs. Use caching, retrieval, and task splitting to control them.

    8. Conclusion

    The real change brought by open-weight availability is that agents have moved from being code completion tools to becoming collaborators capable of taking on delivery roles. The criteria for evaluating delivery capability, however, remain the same: builds must be reproducible, constraints must be encoded, edge cases must be handled, and changes must be rollbackable. Put the agent in the generation seat, and put acceptance standards in human review and pipelines. That is how to gain efficiency without surrendering quality.