Evaluating AI Agent Engineering Capability: From Code Generation to Task Delivery

    Large language models can understand long documents, generate application interfaces, and analyze data, but this does not mean they can reliably deliver complex engineering tasks. This article argues that evaluation should focus on task delivery rather than answer quality alone. Using a financial report monitoring application as an example, it examines how to define acceptance criteria, build traceable extraction pipelines, separate facts from analysis, set calculation boundaries, test execution loops, manage retries, assess multi-agent collaboration, calculate cost per qualified task, design reproducible evaluations, and include security and maintainability in acceptance. Readers gain a practical framework for judging whether AI agents can operate under real constraints and deliver verifiable results.

    1. Shift the Evaluation Focus from Answer Quality to Task Delivery

    A large model can understand long materials, generate application interfaces, and analyze data. That does not mean it is already capable of reliably delivering complex engineering tasks. For developers and enterprise users, the real question is whether a system can operate under explicit constraints, execute multiple steps continuously, identify intermediate errors, complete necessary repairs, and finally deliver a verifiable result.

    A complete software development task usually involves requirement clarification, solution design, code changes, dependency handling, environment configuration, test execution, and result explanation. Strong performance at any one stage does not replace reliability across the entire chain.

    Evaluation should therefore distinguish three layers:

    • Content generation capability: Can the system produce well-structured explanations, code, and analytical conclusions?
    • Tool execution capability: Can it correctly read files, modify projects, run tests, and understand outputs?
    • Engineering delivery capability: Can it complete work that meets acceptance standards under permission, time, and resource constraints?

    These three layers are related, but they should not be conflated. A polished interface is only one output. The core of engineering delivery is that the result runs, can be verified, and can be maintained.

    2. Use a Financial Report Monitoring Application to Define “Done”

    Financial report monitoring is a suitable scenario for testing an agent’s comprehensive capability. It combines long-document understanding, structured data processing, application development, and continuous updates. It also tends to produce a common problem: something that looks finished but is actually only a demo page.

    A basic financial report monitoring application can be divided into the following modules:

    1. Company list and reporting period management.
    2. Financial material import and source recording.
    3. Core metric extraction and basis annotation.
    4. Year-over-year, quarter-over-quarter, and trend calculations.
    5. Abnormal change alerts and evidence display.
    6. Page query, filtering, and detail views.
    7. Data updates, failure retries, and run logs.

    If the system only generates static pages and sample data, it has completed an interactive prototype, not a complete system. A prototype is valuable for validating information layout and workflow, but its boundaries must be made clear.

    2.1 Turn Requirements into Acceptance Criteria

    Instead of saying “build a financial report monitoring application,” it is better to specify:

    • Users can maintain a list of companies to monitor.
    • After a report is imported, the system preserves the original material and its source information.
    • Each key metric includes the reporting period, currency, unit, and evidence location.
    • When data is missing, the system displays “missing” or “pending confirmation” and does not automatically fill in zero.
    • Filter conditions actually affect query results.
    • If an update fails, the previous valid data is not overwritten.
    • Core calculations have automated tests.

    This kind of description turns subjective evaluation into checkable behavior and reduces the chance that the agent guesses requirements on its own.

    2.2 Distinguish Sample Data, Real Data, and Inferred Results

    Using sample data during development is reasonable, but it should be clearly labeled on pages and in documentation. Real data, manually entered data, and model-extracted results should also have different source statuses.

    In particular, the model must not generate realistic-looking financial numbers simply to fill a page. For content that cannot be confirmed, keeping a null value and explaining why is more reliable than producing fluent but unverifiable conclusions.

    3. The Key to Long-Text Capability Is Not “Fitting It In” but “Finding It Accurately”

    Long context can reduce the burden of splitting materials, but context capacity does not equal accurate understanding. Financial reports often contain cross-page tables, repeated headers, footnote revisions, unit changes, and differences in accounting basis. Even if the entire document can be input, validation is still required.

    3.1 Build a Traceable Extraction Chain

    A more reliable process is:

    Material import → text and table parsing → section location → metric extraction → basis validation → evidence linking → human review

    In this process, the model is suitable for semantic recognition, candidate information extraction, and explanation generation. Deterministic work such as unit conversion and ratio calculation should be handled by programs whenever possible.

    For each metric, it is advisable to retain the following information:

    Field Purpose
    Metric name Identifies what is being extracted
    Value and unit Avoids magnitude ambiguity
    Currency Prevents direct comparison across currencies
    Reporting period Distinguishes quarterly from cumulative data
    Accounting basis Records differences such as consolidation or adjustments
    Source location Supports checking back against the original text
    Review status Distinguishes confirmed data from data pending confirmation

    3.2 Separate Fact Extraction from Analytical Judgment

    “What is the revenue” is fact extraction. “Why did revenue change” is explanatory judgment. The latter may involve management statements, business structure, and other external factors, and it cannot be directly inferred from a single number.

    The system should clearly distinguish:

    • Facts explicitly disclosed in the source text.
    • Results calculated from confirmed data.
    • Explanations based on the materials that still require verification.

    This layering helps review and reduces the risk that the model presents speculation as fact.

    3.3 Set Boundary Conditions for Calculations

    Year-over-year growth can usually be expressed as:

    Growth rate = (current period value − prior-year value) ÷ prior-year value

    However, if the prior-year value is zero or negative, or if the accounting basis differs between the two periods, directly applying the formula may be misleading. The program should not only implement the formula but also define exception-handling rules.

    For data that is not suitable for conventional comparison, the system can show the absolute change, note differences in basis, or flag that human judgment is required, rather than forcing a percentage.

    4. Test Intelligent Coding Capability Through an Execution Loop

    Generating a large amount of code once does not prove that an agent is suitable for long-term development. It is more meaningful to observe how it understands an existing project, handles errors, and controls the scope of changes.

    An ideal execution loop is:

    Inspect environment → understand requirements → create plan → modify in steps → run validation → analyze failures → fix or escalate → report results

    4.1 Evaluate with Existing Projects, Not Only Blank Projects

    Real development work usually happens in existing codebases. An agent needs to understand directory structure, existing conventions, data models, and testing methods, and avoid replacing the original system with a completely different implementation.

    The following tasks can be used:

    • Fix a defect that can be reproduced reliably.
    • Add a field to an existing interface while maintaining compatibility.
    • Add tests for a module with insufficient coverage.
    • Optimize query logic without changing business results.
    • Adjust page interactions and verify historical functionality.

    These tasks are more likely to expose problems such as insufficient context understanding, uncontrolled change scope, and missing regression validation.

    4.2 Self-Iteration Is Not Unlimited Retry

    The ability to continue modifying code based on error messages is valuable. But if the agent merely keeps changing code and repeating the same failing path, it may waste budget and introduce more problems.

    Explicit stop conditions should be set, for example:

    • Several consecutive attempts have failed to narrow down the problem.
    • New sensitive permissions are required.
    • An irreversible data operation is about to be executed.
    • Key requirements conflict.
    • The task budget or execution time is approaching its limit.

    When a boundary is reached, the agent should output the failure symptoms, hypotheses that have been verified, current changes, and questions that require user confirmation, rather than continuing to try blindly.

    4.3 Prevent “Lowering Standards to Pass Tests”

    An agent may make tests appear to pass by deleting assertions, skipping failing cases, or broadening exception handling. Such changes must be reviewed carefully.

    To judge whether a fix is effective, at least three questions should be answered:

    1. Has the original defect actually disappeared?
    2. Do the original business constraints still hold?
    3. Do the tests still have the ability to detect similar problems?

    Passing tests is only part of the evidence. It cannot replace review of the intent behind the change and the business behavior.

    5. Multi-Agent Collaboration: Suitable for Parallel Research, Not Automatically Better

    Financial intelligence processing has a certain degree of parallelism. For example, material parsing tasks can be assigned by company, or different execution units can handle extraction, verification, and aggregation separately.

    However, multi-agent systems are not inherently better than single-agent systems. They add costs for task distribution, context passing, result merging, and conflict handling. For small, tightly coupled tasks, a single agent may actually be more efficient.

    5.1 Split by Independently Verifiable Work Units

    A reasonable split should meet the following conditions:

    • Input boundaries are clear.
    • Output structures are consistent.
    • Subtasks are loosely coupled where possible.
    • Each result can be verified independently.
    • Failures can be retried locally.

    For example, extracting core metrics for different companies is usually easier to control than having multiple agents modify the same core business code at the same time.

    5.2 Use Structured Results to Reduce Merge Costs

    Subtask output should not be only a paragraph of natural-language summary. It should include task identifiers, processing status, metric records, source evidence, and open questions.

    During aggregation, the system should first validate structure, then handle differences in units, periods, and accounting basis, and finally generate textual analysis. Otherwise, even if each subtask looks reasonable on its own, the merged output may contain double counting or incorrect comparisons.

    5.3 Independent Verification Matters More Than Simple Repetition

    Multiple agents reaching the same conclusion does not mean the conclusion is correct. They may rely on the same faulty parsing result or adopt the same incorrect assumption.

    A more effective approach is to arrange different verification paths: one unit extracts information, another checks back against the original text, and another uses deterministic rules to check units, periods, and calculation relationships. Verification should add independent evidence, not just increase the number of opinions.

    6. Cost Evaluation Should Focus on “the Cost per Qualified Task”

    A cheap single call does not mean a low total task cost. Generous subscription quota does not mean high long-term delivery efficiency.

    A more reasonable calculation is:

    Cost per qualified task = total input cost ÷ number of tasks that pass acceptance

    Total input should include at least model calls, execution environment, repeated attempts, manual review, and rework. For enterprise scenarios, operation and maintenance costs and failure handling costs should also be considered.

    During evaluation, it is advisable to record:

    • Task completion rate and first-pass acceptance rate.
    • Total time from start to delivery.
    • Number and duration of human interventions.
    • Number of tool call failures.
    • Retry consumption and number of ineffective changes.
    • Number of defects after delivery.
    • Impact of quota limits on continuous work.

    It is not valid to infer general cost-effectiveness directly from a single experience or the remaining quota of an account. Different plans, account entitlements, task complexity, and execution environments can all affect results.

    7. Establish a Reproducible Evaluation Process

    Personal experience can provide clues, but technical selection requires more stable evidence.

    7.1 Fix Inputs and Acceptance Rules

    Keep the same requirement description, project snapshot, sample data, and runtime conditions. Key constraints should be clarified before the task starts to avoid changing goals continuously during testing.

    7.2 Cover Both Normal and Exception Paths

    In addition to verifying successful completion, tests should also cover:

    • Missing document pages or table parsing failures.
    • Inconsistent data units.
    • Network interruptions.
    • Temporary unavailability of external data.
    • Missing local dependencies.
    • Ambiguous user instructions.
    • Insufficient tool permissions.

    These situations can test whether the agent identifies uncertainty, preserves valid state, and requests necessary assistance.

    7.3 Distinguish Model, Tool, and Environment Issues

    File permission errors, incomplete test environments, and unavailable external interfaces should not all be attributed to the model. However, whether the agent can correctly locate these causes is still part of its engineering capability.

    Evaluation records should separately state where the problem occurred, how the agent judged it, what action was taken, and whether the impact expanded.

    8. Security and Maintainability Must Be Included in Acceptance

    The fact that an agent can execute tools also means it may modify files, read sensitive information, or trigger external operations. The stronger the execution capability, the clearer the permission boundaries need to be.

    In practice, the principle of least privilege should be applied:

    • By default, allow access only to directories required by the task.
    • Isolate development and production environments.
    • Do not expose secrets in prompts or logs.
    • Require confirmation for operations such as deleting data or publishing to production.
    • Keep change records and support rollback.
    • Limit the number of parallel tasks and cumulative resource consumption.

    In addition, financial reports, web pages, and other external materials should be treated as data to be processed, not as new operating instructions. If material contains text asking the system to read credentials, change permissions, or ignore constraints, the system should not execute it directly.

    Final delivery should also include more than code: it should include run instructions, test results, known limitations, and maintenance recommendations. Without this information, a short-term usable result may quickly become a burden that is difficult to take over.

    9. Openness Deserves Attention but Cannot Replace Engineering Validation

    When discussing model openness, it is also necessary to distinguish open weights, open code, open interfaces, and license conditions. These concepts are not equivalent. Whether local deployment is possible, whether commercial use is allowed, and whether modification and redistribution are permitted should be based on the actual release materials and license text.

    Even when deployment conditions are available, hardware resources, inference throughput, concurrency requirements, operational complexity, and data governance costs still need to be evaluated. Openness provides more room for control, but it does not automatically bring lower cost or higher reliability.

    Conclusion

    The most important question when evaluating large models and intelligent coding assistants is not which one has the highest score on a single metric. It is whether the system can complete work stably under real constraints.

    For comprehensive tasks such as financial report monitoring, evaluation should start with traceable data extraction, support analysis with deterministic calculations, test development results through executable acceptance criteria, and assess actual benefits using task success rate, manual intervention, and total cost.

    When long-text understanding, tool execution, test validation, resource management, and security governance form a closed loop, an agent truly moves from “an assistant that can generate content” to “a collaborator that can take on engineering tasks.”