How to Evaluate AI Agent Capabilities: From Task Constraints to Engineering Verification
This article explains why evaluating AI agents requires more than checking whether they "obey." It breaks capability into three layers—model, tools and environment, and collaboration workflow—and separates proactivity from reliability. Through two case studies (project cleanup and 3D mesh repair), it shows the difference between surface completion and engineering correctness, then proposes a reproducible evaluation method with layered tasks and multi-dimensional metrics, and finally covers how enterprises can build reliability into system design through least privilege, auditing, verification, and safe-stop rules.
1. Evaluating an Agent Is More Than Checking Whether It “Obeys”
Faced with agents that can write code, call tools, and modify files, people often reach sharply different conclusions. Some see accurate execution and strong engineering awareness; others find the agent insufficiently proactive, hard to communicate with, or even unable to handle simple cleanup.
Such differences do not necessarily mean one side is wrong. More often, the two sides are evaluating different things: one focuses on execution quality under complex constraints, the other on the experience of autonomous progress under vague requirements.
So evaluating an agent requires distinguishing at least three layers:
- Model capability: understanding requirements, reasoning about problems, generating solutions, and recognizing risks.
- Tool and environment capability: whether it can read necessary information, run tests, check dependencies, and modify resources within a controlled scope.
- Collaboration workflow capability: whether it can clarify goals, explain tradeoffs, obtain authorization, and deliver results as verifiable artifacts.
The final outcome is the combined effect of these factors. A model with strong reasoning may still fail to complete a task reliably if it lacks project context, file access, or verification tools. Conversely, an agent with smooth interaction may deliver results quickly without guaranteeing they are engineering-correct.
The meaningful question is not “is it willing to make decisions for me,” but “can it make explainable, verifiable, and reversible decisions within an appropriate scope of authorization.”
2. Proactivity and Reliability Are Two Different Dimensions
Proactive progress and cautious execution are not contradictory, but the two must match the risk of the task.
For example, adjusting a piece of explanatory text usually has limited impact, so the agent can propose a revised draft directly. Deleting historical data, replacing a dependency component, or changing a production configuration can cause irreversible loss and should not be executed on the basis of a single “help me tidy up.”
A sound decision framework needs to consider the following together:
- Goal clarity: has the user stated the success criteria?
- Evidence completeness: does the agent have enough context?
- Scope of impact: will the change affect a single file or the entire system?
- Reversibility: can it be recovered after an error?
- Level of authorization: does the user allow it to suggest, experiment, or execute directly?
For tasks with clear goals, limited impact, and easy rollback, the degree of autonomous execution can be increased. For tasks with insufficient information, broad impact, or difficult recovery, the agent should first inspect, explain the risks, and request confirmation when necessary.
But caution should not become an excuse for stagnation. A good agent should not merely say “I can’t do that”; it should further explain what evidence is missing, which parts can be done first, how to reduce risk, and what conditions must be met before it can proceed.
This is what reliability means in an engineering sense.
3. Case One: Why Project Cleanup Is Not Simply Deleting Files
AI-assisted programming produces large amounts of intermediate artifacts, including debugging scripts, test inputs, execution logs, temporary exports, old configurations, and experimental data. Without long-term management, the project directory becomes increasingly cluttered, and the costs of searching, storage, and accidental operations all rise.
However, “not used in the current main workflow” does not equal “no retention value.”
A data file not currently referenced by the program may be the only input for reproducing a past defect; an old configuration may be an important basis for restoring the runtime environment; an experimental script may record why a certain algorithm was abandoned.
So the core of file cleanup is not identifying files that “look old,” but judging their dependencies, regenerability, and recovery value.
1. Build a Four-Category File View
Before cleanup, files can be divided into four categories:
Source files and valid configurations
These usually constitute the project’s current state and should not be judged for deletion by modification time or file size alone. You need to check entry references, build dependencies, runtime configurations, and manually maintained notes.
Regenerable build or cache artifacts
If they can be regenerated from protected source files and clear steps, they can be listed as priority cleanup candidates. But “regenerable” must be confirmed and cannot be inferred from the filename alone.
Test and debugging assets
Test cases, defect-reproduction inputs, and reference outputs may not participate in daily runs but carry verification responsibilities. Before deletion, check the corresponding test cases, issue records, and acceptance goals.
Historical snapshots and archived data
These files may be used for rollback or may just be duplicate backups. You need to clarify the retention period, data ownership, and recovery path before deciding whether to archive or delete them.
2. Version Control Reduces Risk but Is Not a Complete Backup
Source code version control can record modification history, support diff comparison, and restore controlled files. However, it does not automatically cover all project assets.
Large data, database state, external resources, excluded directories, and uncommitted changes may all be absent from version records. Even if a project uses version control, you cannot assume all files can be safely deleted.
Before cleanup, answer the following clearly:
- Which files are already tracked in version records?
- Which files have not yet been saved to a reliable location?
- Which data depends on a separate backup?
- Has the backup been verified by a restore test?
- What external conditions are needed for rollback?
If these questions have no answers, deleting directly is not efficiency optimization but expanding recovery risk.
3. Use an “Inventory–Isolate–Verify–Delete” Workflow
A more robust cleanup plan can be divided into four steps:
Step 1: Read-only inventory.
Generate a candidate list recording path, size, category, reference status, regeneration method, and risk notes. The project state is not changed at this point.
Step 2: Isolate candidates.
After confirming reference relationships and obtaining authorization, move low-risk candidates into an isolation area rather than permanently deleting them immediately. Isolation itself may also affect the program, so the paths before and after the move must be recorded.
Step 3: Run verification.
Check whether the build, core tests, key runtime flows, and data-reading paths work normally. For important projects, also cover scheduled tasks, offline processing, and low-frequency features.
Step 4: Confirm deletion.
After an agreed observation period, completed acceptance, and a confirmed recovery path, delete the isolated content while keeping the operation records.
The value of this method is not only reducing accidental deletion, but also turning an implicit judgment process into a reviewable engineering artifact.
4. A Good Task Description Should Include Goals, Constraints, and Acceptance
“Clean up the project,” “optimize the code,” and “fix the model” are only directions, not complete tasks.
An agent can infer user intent from experience, but inference should not be treated as fact. Especially in complex engineering, different reasonable choices can produce completely different results: optimizing code may mean reducing latency or improving readability; fixing a mesh may mean closing holes or restoring a topology suitable for deformation.
An effective task description can use the following structure:
Goal: Reduce intermediate files that can be safely removed, without changing existing functionality.
Scope: Inspect only the specified working directory; do not touch raw data or external dependencies.
Constraints: No deletion in the first phase; do not modify business code; all suggestions must state their basis.
Deliverable: Output a candidate list, risk levels, estimated space to be freed, and a recovery plan.
Acceptance: Core tests pass after isolation, key data can be read, and retained files can be restored.
The most important thing here is not the word count, but stating clearly both “what to do” and “what not to do.”
However, providing all details should not become an extra burden on the user. The agent should also be able to clarify step by step: prioritize questions that affect safety and correctness, use clearly labeled default assumptions for low-risk details, and avoid throwing out a large number of irrelevant questions at once.
5. Case Two: 3D Mesh Repair Requires Structural Understanding, Not Just Filling Holes
3D tasks can equally illustrate the difference between “surface completion” and “engineering correctness.”
Generating an object that looks similar from a reference image and repairing the structure of an existing mesh are two different tasks. The former mainly concerns shape and visual similarity; the latter must also consider connectivity, normal direction, boundary conditions, and subsequent use.
Mesh defects usually include holes, duplicate vertices, degenerate faces, non-manifold connections, inconsistent normals, and self-intersections. Different defects require different handling and cannot all be understood as “covering the gap.”
1. Define the Final Purpose First
A mesh for static display can prioritize visual completeness; a mesh for animation deformation needs attention to edge flow and face distribution near joints; a mesh for physical manufacturing emphasizes closure, consistent orientation, and structural validity.
Quad topology is valuable in some modeling and deformation workflows, but not all scenarios require all-quads. A reasonable topology choice should be determined by purpose, not by a single form.
2. Establish Local Constraints Before Repair
For hole repair, at least check:
- Whether the hole boundary is continuous and whether there are multiple boundary loops;
- Whether the neighboring surface is flat or has significant curvature;
- Whether the gap crosses sharp edges, thin walls, or small structures;
- Whether symmetry relationships need to be preserved;
- Whether the repair area involves texture coordinates, material boundaries, or deformation weights;
- Which edges and vertices belong to no-modification zones.
If these conditions are unclear, a patch that is geometrically closed may still break the shape, the texture, or the subsequent editing workflow.
3. Verify Geometry and Topology Simultaneously
Geometry verification concerns whether the shape is correct, including silhouette deviation, curvature continuity, local convexity/concavity, and self-intersection.
Topology verification concerns whether connectivity is valid, including non-manifold edges, isolated elements, duplicate faces, degenerate faces, and boundary closure.
Therefore, a reliable repair workflow should be:
Identify defects → read local constraints → propose a repair plan → experiment on a copy → check geometry and topology → accept against the original model.
The agent can participate in analysis and operations, but it cannot declare success based on screenshot similarity alone. For complex spatial structures, sufficient geometric information and a tool environment capable of running detection are also required.
6. Build a Reproducible Method for Evaluating Agents
When evaluating agents, a single experience is easily affected by prompting style, context length, tool permissions, and task difficulty. A more reliable approach is to build a task set covering different risk levels and to keep evaluation conditions uniform.
1. Layer the Tasks
You can set up four types of tasks:
- Explicit execution: modifying content or generating code according to established rules.
- Information clarification: requirements have gaps and key uncertainties must be identified.
- Risk decision: involving deletion, overwriting, migration, or permission changes.
- Complex verification: requiring confirmation across files, across steps, or with external tools.
This avoids representing all capabilities by performance on one type of task.
2. Do Not Only Count “Completion Rate”
It is recommended to observe at least the following metrics:
| Evaluation Dimension | Question of Focus |
|---|---|
| Correctness | Does it meet the explicit acceptance criteria? |
| Constraint adherence | Does it stay within prohibited operations and authorization boundaries? |
| Risk recognition | Does it detect recovery, dependency, and data-loss risks? |
| Verification quality | Does it run effective checks rather than only giving conclusions? |
| Recoverability | Does it keep modification records and rollback paths? |
| Collaboration cost | How much supplementation, correction, and manual intervention does the user need? |
| Overall cost | Does it generate a lot of rework, tool calls, and repeated execution? |
Shorter output does not necessarily mean lower cost. If substantial debugging and rework are needed afterward, the end-to-end cost may still be higher. Likewise, asking more questions does not necessarily mean reliability; the key is whether the questions truly affect the decision.
3. Unify Conditions and Repeat Tests
When comparing, keep task inputs, available tools, resource scope, execution budget, and acceptance criteria as consistent as possible. Important tasks need multiple trials to observe result variance, rather than picking the single most successful run to present.
Also record failure types: whether it is a misunderstanding of requirements, a tool-call failure, missing information, or insufficient verification. Only by distinguishing these causes can evaluation results guide improvement.
7. Enterprise Adoption: Building Reliability into System Design
Enterprises cannot rely only on the model being “cautious enough.” Important constraints should be enforced at the permission, process, and tool layers.
First, apply the principle of least privilege. Analysis tasks are read-only by default; when modification is needed, open only the necessary directories and operations; set separate confirmation for high-risk behaviors such as deletion and overwriting.
Second, establish operation auditing. Record the task goal, authorization scope, key decisions, actual modifications, and verification results. Audit records should follow the principle of data minimization and avoid storing sensitive content unnecessarily.
Third, make verification a delivery condition. Code tasks should combine tests and diff checks; data tasks should check integrity and consistency; 3D tasks should combine structural detection and visual review. For critical business, also set up manual acceptance points.
Finally, design stop rules for failures. When unclear dependencies, failed verification, or insufficient recovery conditions are found, pause expanding the scope of modifications rather than continuing to try in order to mask the problem. Safely stopping and providing an actionable next step is often more valuable than barely completing the task.
Conclusion
Differences in agent experience relate not only to model capability but also to task expression, tool environment, and collaboration workflow. We cannot blame all failures on users not knowing how to use the tool, nor treat every smooth execution as technical progress.
An agent truly worth trusting should be able to understand goals, recognize uncertainty, respect authorization boundaries, and prove results with evidence. For developers, the most effective way to use agents is neither to refine prompts endlessly nor to fully let go, but to establish clear goals, appropriate authorization, reliable verification, and a usable rollback mechanism.
Once these conditions are in place, an agent is more likely to evolve from “a tool that generates answers” into a collaborator that can participate in complex engineering workflows.
