Why LLM Agents Score High but Underperform in Production

    This article explains why LLM agents that perform well in standardized benchmarks often fail in long-running engineering tasks, a gap commonly described as "high scores, low capability." It breaks the problem into four observable failure modes—goal drift, execution inertia, verbose output, and defensive phrasing—and traces them to mismatches between evaluation goals and engineering goals, missing external state management, sparse feedback, and weak output constraints. The article then presents five practical engineering remedies with YAML, state machine, and Python examples: goal contracts, state machine orchestration, verification loops, output constraints, and observability. It also recommends long-horizon evaluation metrics and lists common pitfalls to avoid.

    1. The Problem: Why “High Scores, Low Capability” Is the Core Obstacle to Deployment

    Over the past year, many teams integrating LLM agents into real projects have run into the same gap: models that stand out in standardized evaluations start to drift from their goals, stall, or lose focus once they are assigned long-running, multi-constraint engineering tasks. The industry often summarizes this state as “high scores, low capability”—the benchmark numbers look great, but actual productivity takes a hit.

    A few scenarios from the original discussion are representative. An agent running a long-horizon task stops after about two hours and asks a trivial question, such as whether a particular audio file needs to be renamed differently. When asked why the project has slowed down, the model produces four long paragraphs without ever landing on the key reason. The issue here is not a lack of capability but unreliability: users cannot predict what the agent will do next or tell whether it is actually making progress.

    It is worth stressing that “being able to do something” and “doing it well” are two different dimensions. The former is the capability ceiling; the latter is the combined result of stability, controllability, and output quality. Engineering environments care far more about the latter.

    2. Breaking Down the Problem: Four Observable Failure Modes

    Turning a vague sense that an agent “is not good to use” into observable, measurable failure modes is the first step toward addressing it.

    1. Goal drift. In long tasks, the agent gradually moves away from the original objective and puts its energy into peripheral details.
    2. Execution inertia. Without a drive to decompose and keep executing, the agent tends to wait for instructions instead of completing the task.
    3. Verbose output. Simple questions get expanded into multi-paragraph explanations with low information density, burying the conclusion.
    4. Defensive phrasing. Heavy use of vague qualifiers and “safe” wording makes conclusions impossible to act on.

    These four problems often appear together and amplify one another: goal drift creates more useless work, execution inertia stalls the task, and verbose, defensive expression makes it hard for users to judge real progress.

    3. Root Causes: Mismatches Between Model Traits and System Design

    First, evaluation goals and engineering goals are not aligned. Standardized evaluations favor short-horizon, single-point questions that can be judged automatically; engineering tasks are long-horizon, multi-constraint, and have implicit acceptance criteria. The better a model is optimized for the former, the more likely it is to expose a “failure to converge” problem in the latter.

    Second, external constraints and state management are missing. Handing a long task entirely to the model for autonomous planning amounts to cramming the state machine, priorities, and acceptance criteria into the context. The longer the context, the more easily early goals get diluted.

    Third, feedback signals are sparse and delayed. Without staged acceptance checks, the model cannot tell whether it is on the right path, so it fills the uncertainty with questions and long explanations.

    Fourth, the output layer lacks hard constraints. If there are no requirements on output structure, length, and conclusion-first ordering, the model defaults to a “say a bit more to be safe” strategy.

    4. A Practical Framework: Five Engineering Measures

    1. Formalize Goals as Contracts: Turn “Intent” into Verifiable Clauses

    Before execution begins, rewrite the goal as a contract: inputs, outputs, constraints, acceptance criteria, and failure handling. The contract must be verifiable, avoiding descriptions like “improve the experience” that cannot be checked.

    1. goal_contract:
    2. objective: "Rename audio files in a specified directory according to rules"
    3. constraints:
    4. - "Only process files with a 48kHz sample rate"
    5. - "Do not modify file content; change names only"
    6. acceptance:
    7. - "Sample 20 files and verify a 100% hit rate on the naming rules"
    8. - "Write failures to a report without blocking the remaining items"
    9. escalation:
    10. - "Ask only when contract clauses conflict, and ask one blocking question at a time"

    The key role of the contract is to limit the “right to ask questions”: leave decisions that can be made autonomously on the execution side, and converge genuinely blocking issues into a small number of high-value questions.

    2. State Machine Orchestration: Replace Model Self-Discipline with External Structure

    Do not make the model “remember what it is supposed to do” on its own. Use a state machine or task orchestration to split a long task into stages: planning, execution, verification, and reporting. Each stage has clear entry and exit conditions.

    1. [Plan] -> [Execute] -> [Verify] -> [Report]
    2. ^ | |
    3. | v v
    4. +---- [Escalate] <---- [Fail]

    Once state is externalized, execution inertia eases significantly: stage transitions are driven by the orchestrator rather than depending on the model’s initiative.

    3. Verification Loops: Give Every Step Objective Feedback

    Define automated checks for each stage: whether files exist, whether an API returns the expected structure, whether tests pass, and whether metrics are out of bounds. On a failed check, roll back or escalate instead of passing the error downstream.

    1. def verify(stage_result, contract):
    2. if not contract.check_schema(stage_result):
    3. return ("retry", "schema mismatch")
    4. if contract.metric("hit_rate") < 1.0:
    5. return ("retry", "naming rule not fully applied")
    6. return ("pass", stage_result)

    Verification loops also solve part of the “verbose output” problem: when conclusions come from check results, the model no longer needs long explanations to prove it is thinking.

    4. Output Constraints: Conclusion First, Limited Length, Consistent Terminology

    Constrain output at both the prompt and post-processing layers: lead with the conclusion, then give at most three supporting points; cap the total length; maintain a glossary to avoid invented abbreviations and vague qualifiers.

    1. Output specification:
    2. 1. State the conclusion on the first line (no more than 30 characters)
    3. 2. Then give at most 3 supporting points, each no more than 40 characters
    4. 3. Prohibit qualifiers that carry no information
    5. 4. When a question is needed, ask only one blocking question and provide a default option

    5. Observability: Turn the Process into Replayable Data

    Connect logging services, monitoring alerts, and distributed tracing to record each stage’s inputs and outputs, check results, and elapsed time. When something like “two hours with no output” happens, you can pinpoint whether the cause is planning divergence, a failed tool call, or repeated verification retries. Observability is the prerequisite for turning a vague “it feels unusable” into a locatable problem.

    5. Upgrading the Evaluation System: From Single-Point Scores to Long-Horizon Metrics

    Teams are advised to build their own evaluation sets that are close to their business, and to introduce long-horizon metrics:

    • Task completion rate and first-pass rate;
    • Average number of steps to progress and stall duration;
    • Number of human takeovers and escalation questions;
    • Conclusion effectiveness (the proportion of conclusions that are adopted);
    • Output redundancy (the share of effective information).

    These metrics predict production performance better than a single leaderboard score. Evaluation sets should include real-world disturbances such as “dirty data,” “conflicting constraints,” and “tool failures.”

    6. Common Pitfalls

    1. Trying to solve everything with longer prompts. Prompt bloat worsens goal dilution.
    2. Chasing full automation. Keeping human confirmation at key checkpoints actually improves overall throughput.
    3. Looking only at the model and not the system. Most instability comes from missing orchestration and verification.
    4. Ignoring the output layer. A loss of focus in expression directly lowers collaboration efficiency and trust.

    7. Conclusion

    “High scores, low capability” is not a single-point model problem but a mismatch among capability, constraints, and system design. Only by formalizing goals as contracts, externalizing state, closing the verification loop, writing expression into specifications, and bringing the process into an observability system can agents deliver reliably in real projects. If an organization needs to support this kind of engineering pipeline, it can build on general-purpose cloud capabilities such as container platforms, object storage, message queues, logging services, and monitoring alerts. Baidu AI Cloud can support end-to-end agent engineering on this kind of general-purpose infrastructure.