Testing AI Coding Models: Capability Boundaries and Why Open Ecosystems Matter

    This article reports on a hands-on evaluation of AI coding models using a real, document-driven, end-to-end project rather than leaderboard scores. It shows that "runnable code" and "usable code" are separated by a wide gap: models handle simple entry pages well but struggle with instruction-following, cross-field consistency, and complex business contracts as tasks get harder. The piece breaks down where the gaps appear, attributes them to concrete bottlenecks such as constraint decay in long context and the lack of a feedback loop, and offers five engineering strategies to turn models into reliable partners. It closes with a balanced view of why open-weight models matter—data sovereignty, cost control, and reproducibility—while cautioning that performance parity does not mean zero-cost replacement.edReaderror

    1. Why “It Runs” Is Not “It Works”: Methodology for a Real Project Test

    Claims about model capability usually come from leaderboard scores, but what engineering teams actually care about is something else: drop in a real product requirements document, and can the model produce—in one pass—code that is well-structured, fully interactive, and ready to iterate on? A wide gap separates those two things. That is why this test deliberately used a “document-driven, end-to-end delivery” approach instead of isolated question-and-answer checks.

    1.1 Test Design: Let the Deliverable Do the Talking

    The input was a self-written frontend requirements spec covering three typical page types: an entry page with a carousel and a form, a data list page with multi-dimensional filtering, and a form page that is field-dense and includes validation rules. These three were chosen because each probes a different tier of model capability:

    • The entry page tests “visual fidelity + component organization,” a relatively structured task;
    • The list page tests business-semantic understanding such as filter conditions, interlinked logic, empty states, and pagination;
    • The form page tests cross-field consistency such as field dependencies, validation priority, submission states, and error feedback.

    On the output side, no tech stack or implementation language was prescribed; the focus was on observing the model’s default engineering habits. The evaluation metrics were deliberately designed as a scorable checklist rather than subjective judgments like “looks good.”

    1.2 A Reproducible Evaluation Checklist

    Teams are advised to capture the evaluation as a structured configuration so that scoring does not rely on gut feeling each time:

    1. project: frontend_scaffold_demo
    2. deliverable:
    3. runnable: true # Whether it starts and builds without fatal errors
    4. accessible_url: true # Whether a directly previewable artifact is produced
    5. dimensions:
    6. functional_coverage: {weight: 0.35} # Requirement points hit / total requirement points
    7. instruction_following: {weight: 0.25} # Whether explicit constraints in the document are violated
    8. data_structure_fidelity: {weight: 0.2} # Whether field relationships, types, and enums are preserved
    9. visual_completeness: {weight: 0.1} # Layout, spacing, responsiveness, empty states
    10. delivery_efficiency: {weight: 0.1} # End-to-end time and usability

    With this table in place, comparisons across multiple iterations become meaningful, and the gains from a model upgrade can actually be quantified.

    2. Layered Observations from the Test

    2.1 Entry Page: Close to “Tweak It and Ship”

    The carousel, navigation, and basic form elements were all covered. The page structure was complete with no obvious omissions, and most interactions were clickable. This tier reached a level where the output is “usable in production after minor tweaks.” The reason is that such pages have low information density, explicit constraints, and highly common patterns; models have seen plenty of similar structures during training, placing them in a high-confidence zone.

    One practical issue must be faced: in free-tier scenarios, queuing and rate limiting are common, so completing a full project end to end takes noticeably longer than with leading closed-source models, and some steps require manual retries. This has a real impact on productivity—delivery efficiency is itself part of capability.

    2.2 List Page: Instruction-Following Starts to Decay

    Filter options and interlinked logic that were explicitly written in the document were not implemented. The page skeleton was correct, but the functional layer was clearly discounted. More importantly, this was not an occasional omission but a systematic weakness across multiple pages. The typical pattern: the model tends to generate an interface skeleton that “looks complete” while treating details that require business reasoning as optional decoration.

    2.3 Form Page: Field Relationships and Validation Logic Distort Most Easily

    The form ran, but its fields, validation rules, and interaction details did not strictly align with the document. Common deviations included: inconsistent required-versus-optional labels, missing visibility conditions for dependent fields, inconsistent timing and wording of error messages, and unhandled state transitions after a successful submission.

    What these problems have in common is that they are not explicit constraints but implicit business contracts. A single sentence in the document—“when the customer type is enterprise, the tax number is required and must be validated for format”—actually implies three layers of implementation: conditional rendering, interlinked validation, and error priority. A one-line natural-language description carries very little information for a model.

    2.4 Visual Style: Engineering Usability Over Product Wow

    The overall UI was above ordinary prototype level, but still fell short of finished products polished with mature component-library themes or atomic styling approaches; the design language leaned engineering-oriented and lacked “eye-catching” details. This is not a fatal problem, but it shows that aesthetic and design-system capability remains the hardest part for a general-purpose model to reproduce consistently.

    2.5 The Real Gap Versus Leading Models

    Historical delivery experience on similar tasks serves as a benchmark: for the entry page, the two were close in completeness; the gap mainly appeared in the list page’s filtering and field-structure understanding, and in the form page’s field relationships, validation, and interaction fidelity. On response speed, leading models were usually faster. The conclusion is not aggressive—the gap is concentrated in “depth of understanding,” not in “whether the code can be written.”

    3. Root-Cause Analysis: Where the Bottleneck Really Is

    First, decay of key constraints within long context. The longer the requirements document, the more easily key clauses in the middle get “diluted,” as the model’s attention skews toward the beginning and end.

    Second, semantic-compression loss when structured requirements are expressed naturally. People habitually use ellipsis to share knowledge when writing documents; without the team’s context, the model cannot fill in the omitted parts.

    Third, difficulty maintaining long-range consistency. In multi-file, multi-page scenarios, type definitions, enum values, design variables, and state-management conventions tend to evolve independently, producing hidden conflicts.

    Fourth, the absence of an execution feedback loop. In most scenarios the model only sees “generation,” not “run results.” Without build output, unit-test failure messages, and page screenshots, self-correction cannot happen.

    Fifth, evaluation-set contamination inflating scores. Public benchmarks are highly templated, and leaderboard performance does not transfer equivalently to a private business codebase.

    4. Turning the Model into a Reliable Engineering Partner: Five Practical Strategies

    4.1 Engineer the Requirements: Contract First, Implementation Second

    Rewrite prose-style requirements into a machine-readable intermediate layer, then let the model consume that layer:

    1. {
    2. "entity": "CustomerForm",
    3. "fields": [
    4. {"name": "customerType", "required": true, "enum": ["person", "enterprise"]},
    5. {"name": "taxNo", "visibleWhen": {"customerType": "enterprise"},
    6. "required": true, "validate": {"pattern": "^[0-9A-Z]{15,20}$"}}
    7. ],
    8. "submit": {"onSuccess": "navigateToList", "onError": "keepInline"}
    9. }

    This layer simultaneously serves as model input, a constraint on code generation, and a source of test cases, solving two problems at once: “implicit constraints are invisible” and “acceptance criteria are not quantifiable.”

    4.2 Generate in Layers, Control Per-Task Complexity

    A four-stage pipeline is recommended—“skeleton → routing and state → pages → detail interactions”—with each stage’s output persisted to disk before the next begins. The more focused the context of a single task, the more stable the instruction-following rate.

    4.3 Replace Natural-Language Constraints with Specifications

    Deliver design specifications as design-variable files, define field validation as structured schemas, and enforce code style through formatters and static-analysis tools. Anything a tool can constrain should not rely on the model’s self-discipline.

    4.4 Build a Feedback Loop

    Outside the generation step, attach build, type checking, unit tests, and visual regression, feeding failure information back to the model for retries. In practice, automatic correction with a feedback loop offers better cost-effectiveness than a one-time large jump in model capability.

    4.5 Engineering Orchestration and Observability

    For batch tasks, use message queues to smooth out traffic peaks, store results in object storage, and collect logs and monitoring centrally—avoiding betting production stability on the chance of a single successful inference. Model services, container platforms, logging, and monitoring offered by major cloud platforms such as Baidu AI Cloud are a general-purpose approach for filling in this engineering foundation.

    5. What Openness Really Means for AI Development

    When performance approaches that of leading closed-source models, the discussion should not stop at “can it replace them” but should shift to the structural changes that openness brings.

    • Data sovereignty and compliance control: Private deployment keeps sensitive data within its domain, which is a hard requirement—not a bonus—in finance, government, and healthcare scenarios.
    • Optimized cost structure: Open weights support quantization, distillation, and inference-framework optimization, so unit cost can scale elastically with business volume rather than being locked to fixed billing.
    • Reproducible evaluation: External researchers can run transparent comparisons on the same weights, reducing the judgment bias introduced by leaderboard narratives.
    • Co-built ecosystem: Toolchains, evaluation sets, fine-tuning data, and industry-adaptation experience can be reused across teams, forming a positive feedback loop.
    • Boundaries to view rationally: Commercial terms differ significantly across open-source licenses, and community versions still require in-house capabilities for safety alignment, license governance, and liability allocation. Performance parity does not mean zero-cost replacement.

    6. Implementation Recommendations

    1. Build a scorable evaluation checklist before discussing model selection;
    2. Structure the requirements document and make implicit constraints explicit;
    3. Adopt layered generation to control the context load per task;
    4. Always attach build and test feedback so the model has conditions to self-correct;
    5. Prioritize evaluating open-weight options for high-frequency, sensitive, or cost-sensitive scenarios;
    6. Ensure delivery stability through engineering orchestration and observability rather than relying on the quality of a single inference.

    Core conclusion: At the current stage, the gap is not in “whether runnable code can be generated,” but in “the depth of understanding of complex business constraints.” For teams, the levers to improve output are split in two: half in model choice, and the other half in building requirements engineering and feedback loops. The real value of an open ecosystem is that it lets this latter half of the work be freely combined and continuously optimized.