How to Evaluate AI Agent Capabilities: From Task Constraints to Engineering Validation

    Evaluating AI agents goes beyond assessing their responsiveness to commands. This article explores a comprehensive framework for evaluating agent capabilities across understanding, execution, and risk control. Through practical scenarios like engineering directory cleanup and 3D mesh repair, it illustrates how to transform vague requests into executable task contracts. Additionally, it provides metrics and strategies for engineering teams to assess agents based on task completeness, constraint adherence, and recovery capabilities, ultimately highlighting that the true value of a reliable agent lies in verifiable actions.

    1. Evaluating Agents: Beyond Mere Obedience

    When observing the same type of AI agent, some users find it precise and reliable, while others perceive it as sluggish or insufficiently proactive. This discrepancy does not necessarily indicate fluctuating model capabilities; rather, it often reflects different user approaches to task articulation, workflow design, and evaluation criteria.

    General users typically expect a single command to yield a fully completed task. Professional developers, however, focus more on whether the system understands constraints, identifies risks, retains evidence, and produces verifiable results. The former emphasizes operational convenience, while the latter prioritizes engineering reliability. Both needs are valid but should not be conflated as the same capability.

    Therefore, evaluating an agent should at least distinguish the following three dimensions:

    • Understanding and Reasoning Capability: Can it identify goals, analyze dependencies, detect conflicts, and propose reasonable solutions?
    • Execution and Collaboration Capability: Can it perform operations through authorized tools, manage intermediate states, and exchange necessary information with the user?
    • Risk Control Capability: Can it distinguish between reversible and irreversible operations, and restrict its scope of action when evidence is insufficient?

    A system might be adept at rapidly generating results but lack a reliable verification mechanism. Another system might frequently request confirmation but effectively protect the project state. Judging their value in real-world engineering solely by response fluency or execution proactivity is insufficient.

    It is also crucial to emphasize that caution does not equate to capability. If an agent merely repeatedly refuses actions, fails to explain risks, and cannot propose actionable alternative paths, its performance remains inadequate. High-quality caution should manifest as “explaining uncertainty and providing next-step solutions.”

    2. Enhanced Capabilities Do Not Necessarily Reduce User Decisions

    An agent is typically a system composed of a model, context, tool calls, state management, and execution strategies. The model handles understanding and reasoning, tools access and modify the external environment, and the workflow dictates which operations can be automated and which require human review.

    In tasks with clear boundaries, enhanced capabilities can reduce user intervention. For example, organizing temporary files according to fixed rules or supplementing tests based on pre-defined acceptance criteria.

    However, in tasks with ambiguous goals and broad impact, a more capable system may actually identify more questions that require clarification:

    • Does “clean project” allow deleting historical data?
    • Does “optimize program” allow altering output precision?
    • Does “fix model” allow changing the visual contour?
    • Does “reduce costs” allow sacrificing response time?

    These questions are not implementation details; they are business or engineering decisions. A system cannot reliably infer a user’s preferences for all trade-offs based solely on a single natural language instruction.

    Therefore, an excellent agent does not simply return all choices to the user. Instead, it compresses choices into a few clear decision points: explaining the default plan, listing major risks, providing alternative paths, and continuing execution within the authorized scope.

    This approach is far more practical than either “making all decisions for the user” or “requesting confirmation for every single step.”

    3. Scenario 1: Why Engineering Directory Cleanup is Error-Prone

    1. File Size is Not a Deletion Criterion

    In an AI-driven programming workflow, a project directory can quickly accumulate temporary scripts, experimental outputs, test samples, debug logs, intermediate data, and legacy configurations. They may appear cluttered but are not necessarily without value.

    A single file might serve multiple purposes:

    • Reproducing a previously identified defect;
    • Serving as a baseline for comparing results between old and new implementations;
    • Saving the input conditions of a specific experiment;
    • Supporting runtime reads or offline processing;
    • Acting as recovery material that has not yet been formally archived.

    Indicators like “long unmodified,” “filename contains legacy version tag,” or “large file size” can only serve as filtering clues; they cannot independently prove a file is safe to delete. Conversely, a file’s potential use does not justify permanently retaining all content.

    The real challenge in engineering cleanup is determining file value at a reasonable cost and controlling the consequences of accidental deletion.

    2. Version Control is Necessary, But Not a Complete Recovery Solution

    Source code and text configurations are suitable for version control, but large data, runtime logs, generated artifacts, and external dependencies may not be suited for the same storage method.

    A reliable recovery mechanism should be considered separately:

    Content Type Primary Concern Common Management Method
    Source code & text configs Change history, diffing Version control
    Large input data Source, integrity, traceability Data archiving, object storage
    Reconstructable artifacts Build method, environment dependencies Build records, retention policies
    Failure reproduction samples Corresponding issue, expected result Regression sample library
    Temporary logs & caches Retention period, sensitive info Lifecycle management

    It is crucial to note that the ability to revert code does not mean the entire runtime environment can be restored. If original data, dependency specifications, or key configurations are missing, restoring old code may still fail to reproduce old results.

    3. Safe Cleanup Should Be Executed in Phases

    It is recommended to split the agent’s cleanup task into five phases.

    Phase 1: Read-Only Inventory.
    Gather statistics on directory structure, file types, sizes, and modification times. Perform a preliminary search for configuration references, script references, and read paths. No deletions occur in this phase.

    Phase 2: Classification and Labeling.
    Categorize candidate files into groups like “confirmed reconstructable,” “confirmed needs retention,” and “unclear purpose,” and document the rationale. Static reference checks cannot cover dynamically concatenated paths, external tasks, and manual workflows, so “no references found” should not be directly equated with “useless.”

    Phase 3: Establish Recovery Conditions.
    Save necessary code states, configurations, and data, and verify that the recovery materials are readable. For critical assets, an actual recovery verification should be performed rather than just confirming the existence of an archive directory.

    Phase 4: Quarantine Instead of Immediate Deletion.
    For files that remain in question, prioritize moving them to a quarantined area with a manifest. Quarantining is also a state change that might affect running tasks, so an appropriate execution window should be chosen, and original path information must be retained.

    Phase 5: Delete After Validation.
    Execute builds, automated tests, representative business workflows, and data read checks. Final deletion should only occur after validation passes and retention policies are satisfied; if validation fails, restore according to the manifest.

    This process is not about achieving “absolute error-free” execution. Rather, it makes errors easier to discover and keeps recovery costs manageable.

    4. A More Effective Task Description

    Instead of demanding “clean up all useless files,” provide clear boundaries:

    First, perform a read-only scan of the project and list cleanup candidates with reasons. Do not modify source code, runtime configurations, input data, or failure reproduction samples. For files with unclear purposes, only provide quarantine suggestions without auto-deleting. Record original paths before executing any moves, and run existing validation flows upon completion; paths not covered must be listed as residual risks.

    This type of instruction does not require the user to know all the answers in advance. It clearly defines the goal, prohibitions, execution phases, and acceptance criteria.

    4. Scenario 2: Why 3D Mesh Repair Requires Topology Constraints

    3D model repair further illustrates that visually “looking complete” does not equate to engineering correctness.

    Issues within a mesh might include missing faces, duplicate vertices, inconsistent normal directions, self-intersections, and non-manifold structures. Non-manifold structures typically refer to local connectivity that does not meet standard surface mesh requirements, such as an edge connected to too many faces, or discontinuous connections in a vertex’s neighborhood.

    Different issues require different repair strategies. Directly filling visible gaps might mask deeper structural anomalies.

    1. Define the Model’s Purpose First

    Models intended for static display, animation deformation, physical simulation, and manufacturing preparation have varying requirements for mesh structure.

    Static display might prioritize contour and surface effects; animation models also need to consider edge flow near joints, local density, and deformation continuity; manufacturing-related tasks might require closed surfaces and reasonable wall thickness.

    Therefore, “fix broken faces” is not a complete requirement. You should also specify:

    • Whether the gap is accidental damage or an intentional design opening;
    • Whether the repair must maintain the original contour;
    • Whether continuous quadrilateral edge flow is required;
    • Whether altering local vertex positions is allowed;
    • Whether material partitions, texture coordinates, and hard edge attributes need to be preserved.

    Without these conditions, the system might produce results that look reasonable but do not match the use case.

    2. Quadrilateral Topology is Not a Universally Correct Answer

    Quadrilateral structures offer advantages in many subdivision and deformation tasks, but this does not mean all regions should be forcibly converted to quads.

    Repair strategies need to comprehensively consider boundary vertex counts, curvature changes, hard edge locations, and downstream processing workflows. Introducing twisted faces, overly dense local structures, or illogical pole points in the pursuit of quadrilaterals can degrade model quality.

    Users can provide cross-section diagrams, expected edge flow directions, and feature lines to retain, helping the agent narrow the search space. The value of this information lies in expressing purpose and design intent, not in pre-completing all calculations for the system.

    3. Repair Results Must Undergo Multi-Layer Validation

    It is recommended to check at least three levels:

    • Topological Level: Are there still non-manifold edges, duplicate elements, abnormal connections, or unexpected openings?
    • Geometric Level: Are there self-intersections, obvious creases, contour offsets, or local curvature anomalies?
    • Application Level: Do subdivision, deformation, rendering, or downstream processing meet expectations, and are attributes correctly preserved?

    Only an agent capable of invoking geometry checking and editing tools can perform these checks on actual files. Proposing repair suggestions based solely on text or a single image does not equate to verifying mesh correctness.

    5. Turning Vague Wishes into Executable Task Contracts

    From code cleanup to mesh repair, reliable collaboration depends on a concise task contract. It can contain six elements:

    1. Goal: What state should be achieved upon completion.
    2. Input: Which materials are authoritative, and which are for reference only.
    3. Invariants: Which behaviors, data, or structures cannot be changed.
    4. Permissions: What is allowed to be read, modified, moved, or deleted.
    5. Acceptance: What checks will confirm the result is qualified.
    6. Recovery: How to return to the pre-execution state if it fails.

    The task contract need not be lengthy, but avoid replacing acceptance criteria with terms like “better,” “cleaner,” or “as correct as possible.”

    For example, “maintain existing public behavior unchanged” is still too broad; if supplemented with representative inputs/outputs, error handling requirements, and compatibility scopes, the agent can more easily form a verifiable execution plan.

    Simultaneously, the system should proactively identify gaps in the contract. For low-risk issues, it can adopt clearly disclosed default values; for irreversible or high-impact issues, it should pause the operation and request confirmation.

    6. How Teams Should Evaluate Agents

    1. Evaluate Complete Tasks, Not Single-Turn Responses

    Single-turn responses can measure expression and partial reasoning capabilities but struggle to cover tool usage, environment recovery, and result validation. Engineering evaluations should record the entire process from input to acceptance and standardize context, permissions, and testing conditions.

    If different systems receive varying amounts of information or tool access, their results cannot be simply compared horizontally.

    2. Measure Both Results and Processes

    It is recommended to focus on the following metrics:

    • Task Completion: Did it meet the preset acceptance criteria?
    • Constraint Adherence: Did it modify prohibited content?
    • Manual Intervention Cost: How many clarifications, reviews, and patches were required?
    • Recovery Capability: Can it reliably recover after a failure?
    • Overall Resource Cost: Including reasoning, tool execution, waiting, and manual rework.
    • Evidence Completeness: Are conclusions supported by verifiable records?

    Shorter outputs or lower reasoning consumption do not necessarily mean lower costs. If omitting key validations leads to rework, the total cost might actually be higher.

    3. Set Up Tasks with Different Risk Levels

    The evaluation set should include low-risk information organization, reversible file modifications, and high-impact operations requiring strict approval. Observing whether the system adjusts its execution strategy based on risk is more meaningful than simply comparing “who is more proactive.”

    You should also introduce missing information, conflicting requirements, and misleading clues to test whether it can identify uncertainty rather than executing along a false premise.

    7. Conclusion: The Value of Reliable Agents Lies in Verifiable Actions

    Differences in agent usage stem from model and tool capabilities, but also from task design, context quality, and user engineering habits. We cannot attribute all failures to users “not knowing how to use it,” nor can we interpret all conservative behavior as the system being “more professional.”

    A system truly worth commending should execute effectively when information is sufficient, point out specific gaps when information is insufficient, provide reversible plans when risks are high, and use evidence to demonstrate whether the results meet requirements.

    For developers and enterprise teams, the most important change is not learning more prompting tricks, but establishing clear task boundaries, reliable state management, and repeatable acceptance processes. Only by embedding agents into such an engineering system can their generation and reasoning capabilities translate into stable, controllable production value.