Evaluating LLM Coding Capabilities: From Demos to Engineering Delivery

    This article explains why impressive generated output is not enough to judge an LLM’s coding ability. It covers the full execution loop, evidence-based debugging, why compile failures should not be blamed on cache first, guardrails against blind edits, validation of visual and interactive applications, checks for reinforcement learning demos, and how to design credible coding evaluations.

    1. Evaluating LLMs: Do Not Judge Only by What They Generate

    When discussing an LLM’s coding ability, the most eye-catching evidence is often visual: generating a page in minutes, building a 3D scene, or producing an interactive interface with dynamic effects. Such demos show code generation speed and visual organization, but they do not prove that the model can reliably complete real engineering tasks.

    Real development is not about turning requirements into code that merely looks reasonable. It is about maintaining system correctness under existing constraints. The model must understand the current structure, identify dependencies, follow interface contracts, and prove that changes work through compilation, tests, and actual execution.

    The core problems exposed in the original experience material fall into two categories:

    The first is a broken engineering loop. The model claims to have completed a stage, but the code does not compile. When facing errors, it repeatedly blames the environment and keeps making changes without evidence.

    The second is a disconnect between demo effects and functional correctness. The interface appears, but interactions do not work; the training curve seems to stabilize, but the character position does not match the map; the 3D scene renders, but the game rules and physics parameters are unreasonable.

    Therefore, when evaluating intelligent coding ability, it is necessary to distinguish “can generate” from “can deliver.” The former focuses on output; the latter focuses on verified results.

    2. The Capability That Matters: A Complete Execution Loop

    2.1 Requirement Understanding and Task Decomposition

    A good task plan should not contain only vague descriptions such as “complete the module” or “optimize the interface.” It should specify inputs, outputs, dependencies, and acceptance conditions.

    For example, a maze training demo can be decomposed into the following steps:

    • Define map data and obstacle rules;
    • Define states, actions, rewards, and termination conditions;
    • Implement the training process and result logging;
    • Implement the display of the map, character, and numerical information;
    • Connect training, pause, reset, and demo controls;
    • Verify training results and interactive behavior.

    These steps are not suitable for fully independent generation. Map definitions affect state encoding, state encoding affects training, and training outputs determine how the demo reads the policy. If the model ignores dependencies, later stages often require large-scale rework.

    A valuable plan should verify the highest-risk and most dependency-heavy parts first, rather than prioritizing the visual effects that are easiest to demonstrate.

    2.2 Error Localization and Use of Evidence

    After a compilation failure, whether the model can explain the source of the error is an important observation point for engineering ability.

    Reliable analysis should cite actual diagnostic information and point to the files, code locations, and constraints involved. For example, it should identify whether the issue is a type mismatch, an invisible symbol, an incorrect interface call, or missing dependency configuration.

    Unreliable analysis often starts with broad explanations such as “environment anomaly” or “cache invalidation,” without proving that these explanations are related to the current error.

    The key is not whether the model can propose hypotheses, but whether it can design verification steps and revise its judgment based on the results. A model that can admit a hypothesis has been disproved and narrow the scope of changes in time is usually more suitable for engineering collaboration than one that keeps producing new explanations.

    2.3 Self-Verification and Completion Criteria

    “The code has been written” is not a completion criterion.

    At least four states should be distinguished:

    • Generated: the relevant code has been produced;
    • Built: the code passes syntax, type, and linking checks;
    • Verified: the agreed tests and runtime checks have passed;
    • Accepted: the implementation meets the requirements and no unacceptable regressions have been found.

    The model should clearly report which state it is in. If the runtime environment does not allow tests to be executed, it should state which conclusions remain unverified rather than treating expected results as facts.

    3. When Compilation Fails, Do Not Assume It Is a Cache Problem First

    Build caches can indeed affect results, but they are only one of many possible causes. Directly attributing persistent compilation errors to the cache can easily hide real code problems.

    A more reliable diagnostic process should include four steps.

    Step 1: Preserve the Original Error

    First, record the first valid error and its context. Many subsequent errors may be chain reactions from the same root cause, and fixing every error one by one is often inefficient.

    At the same time, preserve the current code diff to avoid being unable to determine which change introduced the problem after consecutive modifications.

    Step 2: Distinguish Environment Failures from Code Failures

    Environment failures usually appear as unavailable build dependencies, missing required components, insufficient permissions, or version incompatibility.

    Code failures usually point to clear semantic constraints, such as an incorrect number of arguments, inconsistent return types, or state updates that violate language rules.

    Both types of problems may exist simultaneously, but they need to be verified separately. “Environment problem” cannot summarize all failures.

    Step 3: Make Each Hypothesis Correspond to a Check Action

    If stale build artifacts are suspected, the relevant artifacts can be cleaned and rebuilt. However, “cleanup is complete” does not prove that the problem is solved.

    Only the diagnostic results after rebuilding can help determine whether the cache was involved. If the same error continues at the same source location, the cache hypothesis should be deprioritized and the focus should shift to code analysis.

    Step 4: Apply the Minimal Fix and Verify Immediately

    A single fix should target one root cause as much as possible. After the change, run the most relevant build or test first, then decide whether to proceed.

    This approach may seem slower than modifying multiple files at once, but it significantly reduces error accumulation and makes rollback and review easier.

    4. Preventing Blind Modifications: Establishing Constraints for Intelligent Coding

    Blind modification means that the model lacks a stable diagnostic basis, repeatedly changes unrelated locations, and tries to eliminate errors by expanding the scope of changes.

    The main risk is not only wasted time. It also includes introducing new defects, breaking the original design, and causing developers to lose understanding of the project state.

    4.1 Set Stage Acceptance Gates

    Multi-step tasks should proceed in a “complete one part, verify one part” manner.

    A stage should not be allowed to proceed to the next stage unless it meets the following conditions:

    • The code related to this stage can be built;
    • New behavior has corresponding verification;
    • Existing key tests have not regressed;
    • The scope of changes matches the plan;
    • Unresolved issues have been clearly recorded.

    Passing tests does not mean absolute correctness, but it at least provides a repeatable basis for checking. For high-risk changes, human review and independent acceptance should also be added.

    4.2 Require a Causal Chain Before a Fix

    Before modifying code, the model should be able to answer three questions:

    “What error was observed?”

    “Why do you think the current code caused this error?”

    “What check will verify the fix?”

    If these questions cannot be answered, adding more changes usually will not improve certainty.

    4.3 Set Resource Budgets and Stop Conditions

    Time budgets, retry counts, and change size should be determined in advance according to task complexity. A uniform threshold is not appropriate here, because the reasonable investment for fixing a local error differs from that for refactoring multiple modules.

    However, stop conditions can be clear: if multiple changes still leave the same type of error, or if each fix introduces new unrelated failures, automatic execution should be paused. The model should organize evidence, roll back unnecessary changes, and let the developer decide the next step.

    Human takeover is not a failure; it is a normal mechanism for controlling risk.

    5. Visualization Tasks Must Verify Visuals, Interaction, and Logic Together

    5.1 Visual Completeness Does Not Equal Functional Completeness

    An interface can have lighting, particles, and animations but still be unusable. For example, a background that is too dark makes the main subject hard to recognize, buttons are not bound to events, or an animation layer blocks the interactive area.

    During evaluation, check separately:

    • Whether information is clearly readable;
    • Whether operations can change system state;
    • Whether state changes are correctly reflected in the interface;
    • Whether abnormal states have understandable messages.

    Visual quality should be an independent dimension, not a substitute for functional acceptance.

    5.2 Rules and Parameters Must Be Explicitly Defined

    Take a ball simulation as an example. Object placement, size, collision range, and motion parameters all affect whether the game is reasonable.

    If objects are merely placed in a scene without clear rule constraints, the result may be a scene that looks valid but gameplay that does not work. For simulations with clear industry rules, the rule basis should be provided in advance. For freely designed interactions, the target experience and acceptable simplifications should be specified.

    Testing should not only verify that the scene loads successfully. It should also check whether typical operations produce reasonable results.

    5.3 Maps and Characters Should Share Coordinate Mapping

    Maze demos often show characters that are too large, positions that are offset, or an action layer misaligned with the terrain layer. This is usually related to multiple coordinate definitions.

    The following should be unified:

    • Which direction row and column indices correspond to;
    • Where the screen coordinate origin is;
    • How cell size is calculated;
    • Whether a character is at the cell center or boundary;
    • How the mapping is updated after scaling.

    Map drawing, character movement, path display, and numerical annotations should reuse the same mapping rules to avoid calculating offsets separately.

    Character size should be defined relative to the cell, rather than using a fixed value unrelated to the container. This reduces proportion problems after window changes.

    6. A Stable Training Curve Does Not Mean an Effective Policy

    In maze tasks, common tabular reinforcement learning methods maintain value estimates for states and actions. The basic update relationship can be expressed as:

    Q(s, a) ← Q(s, a) + α × [r + γ × max Q(s′, a′) − Q(s, a)]

    Here, α controls the update magnitude, γ controls the weight of future returns, and r is the immediate reward.

    Even if value changes stabilize, it cannot be directly concluded that the system has learned to reach the goal reliably. Stability may come from reasonable learning, but it may also come from insufficient exploration, poor reward design, or implementation errors.

    Therefore, verification should be performed at multiple levels:

    First, check environment rules. Are invalid actions handled correctly? Does reaching the terminal state end the episode? Does reset clear the necessary state?

    Second, check the training process. Do rewards, step counts, and success counts come from actual execution rather than independent counters in the interface?

    Finally, check policy performance. After training, run an independent evaluation. Observe the success rate, path length, and failure types for reaching the goal from the agreed starting point or multiple starting points, and state the action selection method used during evaluation.

    The value numbers displayed on the map should also match the actual training data. Otherwise, attractive numerical visualization is only decoration and cannot help determine whether learning is effective.

    7. How to Design a Credible Coding Capability Evaluation

    7.1 Control Experimental Conditions

    Evaluation should keep the initial code, task description, execution environment, tool permissions, and acceptance criteria as fixed as possible. Human prompts also need to be recorded, because additional explanations affect the difficulty of completing the task.

    If different execution processes use different permissions or receive different levels of guidance, the results cannot simply be attributed to differences in model capability.

    7.2 Distinguish Multiple Capability Metrics

    At least the following should be recorded:

    Dimension Main Observation
    Correctness Whether build, tests, and requirement acceptance pass
    Diagnostic ability Whether the root cause is located based on real errors
    Execution efficiency Effective progress, repeated attempts, and human intervention
    Change quality Whether changes are focused, reviewable, and rollbackable
    Interaction consistency Whether interface display corresponds to real state
    Report credibility Whether completed and unverified items are accurately described

    It is especially important to distinguish between a model proactively clarifying requirements and a model demanding user troubleshooting without evidence. The former may reduce ambiguity; the latter may shift diagnostic responsibility.

    7.3 Use Multiple Tasks and Repeated Runs

    A single success or failure can illustrate a specific problem, but it is not enough to represent overall capability.

    A more reasonable task combination should cover existing project modification, local defect fixing, interactive applications, state management, and cross-module integration, with repeated runs.

    Conclusions should also be limited in scope. For example, one can say “persistent build failures occurred under this task and execution condition,” but should not infer that a certain class of models is unusable in all development scenarios.

    8. The Key to Engineering Adoption: Make Every Progress Evidence-Based

    LLMs have practical value in requirement organization, code drafting, interface construction, and local fixes. But this value can only become reliable delivery when it enters a verifiable process.

    Developers should retain requirement definition, architecture decisions, and acceptance responsibility, and limit the model’s autonomous execution to a reviewable and rollbackable scope. Production credentials, sensitive data, and high-risk deployment permissions should not be opened casually just because they make task execution more convenient.

    Ultimately, whether intelligent coding ability is mature should not be judged only by whether it quickly generated a complex visual, nor only by how it describes its progress.

    More importantly: Does it diagnose errors based on evidence? Does it complete verification after changes? Does it maintain system consistency? Does it truthfully explain unresolved issues?

    A truly reliable coding assistant does not necessarily succeed on the first try every time, but it should make failures locatable, changes traceable, and results reproducible, so that developers always understand the true state of the project.