LLM Selection for Engineering: Evaluating Reasoning Ability and Agent Delivery

    A practical evaluation framework separates single-pass reasoning from agent delivery. It covers task definition, logic testing, controlled agent runs, self-testing, requirement coverage, visual and interaction checks, cost per accepted delivery, hallucination control, and ongoing assessment.

    1. Separate two kinds of capability when evaluating LLMs

    A common mistake in LLM evaluation is compressing every capability into one score. A high score on logic problems does not prove a model is suitable for programming. Fast responses do not prove it is suitable for automation. A low call price does not prove it will reduce project cost.

    Those judgments can miss the actual workflow.

    LLM capability should be treated as at least two layers:

    The first is single-pass reasoning. The model receives relatively complete information, analyzes it, and returns an answer, explanation, or code fragment. Math derivation, conditional judgment, and complex rule understanding mainly test this layer.

    The second is agent delivery. Across multiple turns, the model must understand the goal, read the environment, call tools, edit files, run tests, explain results, and revise the plan after failure. The core question is not whether one reply looks polished, but whether the final artifact meets the constraints.

    The two are related, but neither replaces the other. A model may handle complex reasoning well yet be unstable at tool use, state management, and task completion. Another may not lead on hard logic problems, yet finish common engineering tasks through a sound sequence of actions, moderate verification, and fewer useless edits.

    A professional evaluation should therefore answer two questions separately:

    • Can the model understand and derive correctly?
    • Can it complete an acceptable task within a given environment and budget?

    Only by observing the two capabilities separately can a single leaderboard be prevented from replacing engineering judgment.

    2. Define the business task before choosing metrics

    Evaluation should start from real requirements, not from collecting model scores and then looking for a place to use them.

    For a development team, tasks can be grouped into several levels:

    Task type Main risks Key metrics
    Rule judgment and logical analysis Incorrect derivation, missed conditions Accuracy, stability across repeated runs
    Local code changes Breaking existing behavior, edits beyond scope Test pass rate, change scope
    Full feature development Missed requirements, integration failure Requirement coverage, end-to-end acceptance
    UI and interaction implementation Incomplete state, missing visual detail Interaction completeness, visual review
    Long-running automation Lost state, tool misuse, stopping early Completion rate, recovery, total cost

    If the work is only a small amount of code generation, long tool orchestration does not need heavy attention. If the goal is automatic changes across files, the quality of a single answer is only a supporting metric.

    The task set should also cover normal inputs, boundary inputs, incomplete information, and execution failure. Testing only clear requirements in a clean environment tends to overestimate how usable a model will be in production.

    3. Logic tests: look at the distribution, not only the highest score

    Logic tests are useful for observing how a model handles constraints, derives conclusions, and detects contradictions. The design should reduce the role of chance.

    First, run the same task several times independently. Output can be affected by sampling, context organization, and prompt details. One success does not prove stable reliability.

    Second, report the median, the mean, and the spread together. The median shows typical behavior, the mean reflects the overall level, and score variation shows whether the model is clearly unstable. No single statistic describes the full result.

    Third, separate error types. For example:

    • The constraint in the problem was not understood.
    • The condition was understood, but an intermediate derivation was wrong.
    • The derivation was mostly correct, but the final answer was expressed incorrectly.
    • A definite conclusion was given when information was insufficient.
    • Different runs used different assumptions and produced inconsistent results.

    This classification is more useful than counting how many items were answered correctly. A model that often misses conditions needs clearer input structure. A model with many derivation errors needs independent verification. A model that answers confidently when information is missing needs stricter uncertainty handling.

    If the evaluation has a time limit, record quality and latency together. Fast but often wrong, and slower but stable, fit different business situations.

    4. Agent tests: fix the environment and evaluate the whole process

    Agent evaluation is more sensitive to external conditions than a single question-and-answer run. Tool capability, execution permissions, dependency state, network conditions, and test configuration can all change the result.

    When comparing models or configurations, keep the following as consistent as possible:

    1. Use the same initial files and task description.
    2. Provide the same tool capabilities and access permissions.
    3. Set the same runtime and resource budget.
    4. Apply the same acceptance rules.
    5. Restore the initial environment before each run.
    6. Record the full sequence of actions and failures.

    Pay particular attention to the execution framework version. An upgrade can change file reading, tool feedback, context compression, or error recovery. If the model and the framework change at the same time, the improvement cannot all be attributed to the model.

    The report should state which conditions stayed the same and which changed. Otherwise, a difference in results is hard to explain.

    5. Self-testing: coverage matters more than the number of runs

    Coding agents often run some checks after making changes. Running tests is not the same as completing effective verification.

    Effective self-testing needs a closed loop:

    Identify risk → design a check → run the check → analyze the result → fix the problem → verify again.

    If the model only confirms that the project can start and then declares the task done, it has verified the entry point, not the full behavior. Starting the project repeatedly still does not prove that boundary inputs, error handling, and interaction state are correct.

    A more reasonable check should be layered:

    • Basic checks: whether file structure, syntax, and required dependencies meet the requirements.
    • Local checks: whether key functions, data transforms, and boundary handling are correct.
    • Integration checks: whether data flow and state passing between modules are consistent.
    • End-to-end checks: whether a user can complete the intended operation.
    • Regression checks: whether existing behavior was affected by the change.

    More test runs may mean the model is more careful, or that it is stuck in inefficient retries. What matters is whether new checks found different kinds of problems, and whether a matching regression check followed the fix.

    Generated tests also need caution. A model may produce expected results from the code it wrote, rather than judging correctness against the requirement. Critical acceptance rules should come from an independent requirement standard, not entirely from the model proving its own work.

    6. Requirement coverage: turn natural-language requirements into acceptance items

    Models often finish the main feature while missing smaller requirements in the prompt. Examples include preventing a button from being submitted twice, keeping error messages, showing a prompt for empty data, or not affecting an existing interface.

    These requirements may look minor, but they decide whether the result can be put into use.

    The remedy is not to keep insisting that the model “be careful.” It is to split the requirement into checkable items. Each item should include at least:

    • the behavior to implement;
    • the condition that triggers it;
    • how success is judged;
    • side effects that must not occur.

    For example, “show a loading state on submit” can expand into: show an in-progress state after the action starts; block repeated submission while it runs; restore an actionable state after success; show an error and allow a retry after failure.

    Requirement coverage can be a supporting metric, but it should not be calculated simply by counting items. One unmet critical safety constraint can matter more than several style omissions. Acceptance items should therefore distinguish critical items from ordinary ones. If a critical item fails, the task is not successfully delivered even when the overall completion rate is high.

    7. Visual and interaction quality needs a separate review

    Code that runs does not mean an interface is easy to use.

    Common problems include text overflow, crowded layout, incomplete narrow-screen adaptation, hidden error messages, missing focus states, and no design for loading, empty data, or failure.

    Visual review should be separate from functional testing. Functional tests ask whether behavior is correct. Visual checks ask whether information is clear, layout is stable, and interaction feedback is understandable.

    Even if a model can observe the page, that does not mean it will find every detail. A screenshot shows one moment in one viewport. It does not cover every scroll position, dynamic content path, or interaction path.

    For interface tasks, use a state matrix covering the default, loading, success, failure, and empty-data states, plus different viewport sizes. Where accessibility matters, also check keyboard use, visible focus, and necessary text descriptions.

    8. Cost: measure accepted delivery, not the price of one call

    The economics of an LLM cannot be judged only by the fee for a single call.

    One task may include multiple reasoning turns, tool execution, failed retries, human review, and later rework. A cheap calling plan can cost more if people often have to repair the result. A more expensive plan can be more economical if it reliably reduces rework.

    Use this accounting approach:

    Total cost of one task = model call cost + tool and compute cost + human review cost + rework cost.

    For a batch of tasks, then calculate:

    Cost per accepted delivery = total cost of all tasks ÷ number of deliveries that meet the acceptance standard.

    Unsuccessful attempts belong in the total cost. Do not count only the successful samples.

    Time metrics should also be split. Time to the first output, total model runtime, human repair time, and time until the result is usable mean different things. Developers usually care more about how long it takes to get a usable artifact than how long it takes to see the first text.

    Adding tests and checks can make a run longer while reducing defects. Whether that tradeoff is worthwhile depends on business risk, human cost, and delivery quality together.

    9. Hallucination control: completion claims need evidence

    In engineering work, hallucination is not only invented knowledge. It can also be an invented execution history:

    • claiming tests passed without actually running them;
    • claiming a feature exists when the corresponding logic is not in the files;
    • describing a failed tool run as a success;
    • citing configuration items or dependency capabilities that do not exist;
    • giving a definite compatibility conclusion without environment information.

    The final report should distinguish three states: executed and verified, changed but not yet verified, and impossible to confirm because of environment limits.

    A completion claim must be traceable to evidence, such as change records, test output, execution logs, and acceptance results. If a check was not run, state why. Do not replace that with a vague claim that everything looks fine.

    In enterprise settings, also limit what the agent can do. Provide only the files, credentials, and execution rights the task needs, and put approval or isolation around high-risk actions. Model confidence does not replace access control or audit records.

    10. Build continuous evaluation, not a one-time selection

    Model capability, the execution environment, and business requirements can all change. One test describes performance under one set of conditions. It does not guarantee long-term stability.

    Use a layered evaluation process:

    In the first stage, use a small task set to screen out options that clearly do not meet the requirements.

    In the second stage, run repeated tests in a unified environment and record quality, speed, cost, and error types.

    In the third stage, trial tasks close to real business work, and keep human review and a rollback path.

    In the fourth stage, keep tracking production defects, rework, and anomalies, and update the task set regularly.

    The final report does not need an absolute ranking. It is more useful to define boundaries: which tasks can be delivered automatically, which must be reviewed by a person, and which should not be left to the model alone.

    The point of evaluating an LLM is not to find one option that leads on every dimension. It is to build a trustworthy engineering judgment. Putting reasoning quality, tool execution, self-test coverage, requirement adherence, hallucination risk, and cost per accepted delivery in one framework is what moves a result from “it looks good” to “it can be used reliably.”