Evaluating Agent Capabilities: From Constrained Decisions to Engineering Practice
This article examines how to evaluate AI agents beyond raw model strength. It breaks outcomes into model capability, task expression, execution environment, permissions and interaction design, and verification and recovery mechanisms. Through code cleanup and 3D mesh repair examples, it discusses conflicting constraints, reversible operations, tiered authorization, and evaluation metrics that support fair comparison.
1. Evaluating Agents: First Distinguish Capability from Experience
The same agent system can receive very different evaluations. Some users may see it as cautious, reliable, and suitable for complex engineering tasks. Others may find it insufficiently proactive, requiring repeated explanations of requirements and struggling to deliver results directly.
This difference cannot simply be attributed to model strength, nor can it all be blamed on user skill. A more reasonable approach is to break the final outcome into several interacting parts:
- Model capability: understanding requirements, reasoning, generating code, identifying risks, and handling complex constraints.
- Task expression quality: whether goals, context, constraints, and acceptance criteria are clear.
- Execution environment quality: whether the agent can access necessary files, run tests, inspect logs, and record operations.
- Permissions and interaction design: which operations can be completed autonomously and which require confirmation.
- Verification and recovery mechanisms: whether results can be checked and whether the system can return to a usable state after failure.
The actual value of an agent is therefore not a direct mapping of any single capability, but the combined output of the entire workflow. A model with strong generation ability may still create hard-to-locate problems if it lacks a test environment and recovery mechanisms. A system with very smooth interaction is also unsuitable for high-risk tasks if it deletes important data without authorization.
Professional evaluation needs to answer two questions at the same time: whether the agent can complete the task, and whether it can complete it in a controllable, verifiable, and recoverable way.
2. Why Stronger Reasoning Does Not Always Mean Easier Use
2.1 Complex tasks contain decisions that cannot be omitted
Simple tasks usually have clear answers, such as revising a paragraph or explaining a concept. Engineering tasks are different because they often contain multiple conflicting objectives.
Consider project cleanup. Reducing disk usage may conflict with retaining regression test data or preserving the ability to reproduce historical issues. Consider 3D mesh repair. Filling a gap may conflict with preserving the original silhouette or avoiding new non-manifold structures.
These conflicts cannot necessarily be eliminated automatically through model reasoning. Some choices depend on business priorities, asset value, and risk tolerance, and the task owner must provide the basis for those choices.
A more reliable agent may expose these decisions rather than silently making them on the user’s behalf. The additional confirmation that results from this is not necessarily a sign of insufficient capability.
2.2 Caution can also become an excuse for inefficiency
On the other hand, not every hesitation should be explained as safety awareness. A good agent should distinguish between missing information that truly affects the outcome and information that can be obtained through low-risk exploration.
For example, it can first read the directory structure, analyze file references, and count file sizes before asking specific questions, rather than asking the user to explain the purpose of every file at the start. For operations that are clearly reversible and have limited impact, it should not repeatedly ask irrelevant details.
The ideal behavior is: complete investigation within a safe scope first, then confirm the key tradeoffs in a focused way.
2.3 Usability should not depend on users becoming experts
Professional users can often provide accurate constraints, so they are more likely to obtain high-quality results. But this does not mean that a poor experience for ordinary users is the user’s responsibility.
Agent systems should lower the barrier through templates, default protection policies, risk explanations, and structured follow-up questions. The model should help users form effective requirements, not require them to master all engineering knowledge first.
3. Code Cleanup: Establish an Asset Judgment Before Deleting Files
In AI-assisted programming, project directories tend to accumulate temporary scripts, build artifacts, experiment data, test samples, and legacy configurations. Files that look messy may actually serve different roles.
The hard part of cleanup is not finding large files, but determining whether deletion will remove necessary capabilities.
3.1 File value cannot be judged only by name and modification time
A file with words such as “old” or “temp” in its name is not necessarily safe to delete. A sample that has not been modified for a long time may still be used by regression tests.
The following should be checked together:
- whether it is referenced by code, configuration, or automation workflows;
- whether it is an artifact that can be reliably regenerated;
- whether it contains input data that cannot be obtained again;
- whether it is used to reproduce historical defects;
- whether it involves delivery, audit, or compliance retention requirements;
- whether verified copies and a recovery path exist.
In particular, note that the absence of references only means that no dependency was found within the current scan scope. It does not prove that no external calls or manual usage scenarios exist.
3.2 Version control and backups solve different problems
Version control is suitable for tracking source code, configuration, and text changes, but it is not equivalent to a complete backup. Large data files, directories that are not managed, runtime state, and external resources may fall outside its protection.
Therefore, “it is already under version control” is not a sufficient condition for arbitrary deletion, and “it is not under version control” does not mean all cleanup must stop. What really needs to be confirmed is: whether the asset proposed for deletion can be reliably recovered, and whether recovery has been verified.
3.3 Replace direct deletion with staged governance
A safer process is:
- Build an inventory: record paths, types, sizes, references, and initial classifications.
- Output recommendations: explain the reasons for keeping, isolating, or deleting items, and mark uncertain items.
- Isolate: move candidate files to a separate location instead of permanently deleting them immediately.
- Validate: run builds, tests, and key business checks.
- Observe and confirm: for assets that may have low-frequency dependencies, set an appropriate observation period before deciding final disposition.
The decision logic can be expressed as:
For each candidate file:If it is a critical input or retention asset:Keep it and explain whyElse if a valid reference exists:Keep it and record the dependencyElse if the recovery method cannot be confirmed:Mark it for confirmationElse:Recommend isolationAfter authorization, perform isolationComplete validation and record resultsIf validation passes and disposal conditions are met, request permanent deletion
The key here is not to make the agent “more willing to delete,” but to enable it to explain its judgment, control impact, and leave a recovery path.
4. 3D Mesh Repair: Geometric Plausibility Is Not Topological Correctness
3D tasks further illustrate the importance of constraints. Generating a visually similar model and repairing a mesh that meets downstream production requirements are two different problems.
The former emphasizes overall shape, while the latter must consider mesh connectivity, local structure, and intended use.
4.1 Identify the problem type before choosing a repair plan
A so-called “broken surface” may refer to boundary holes, missing faces, abnormal normals, self-intersections, or non-manifold structures. Different problems require different handling.
Without diagnosis, directly asking the agent to “fix the model” may lead it to use global reconstruction or local filling. Although this may visually cover the gap, it can damage the original structure.
The task description should at least specify:
- which regions are problematic and which regions must not be modified;
- whether the model is used for static display, deformation animation, or physical manufacturing;
- whether the original silhouette and texture coordinates must be preserved;
- what requirements exist for face count, face type, and edge flow;
- whether global reconstruction is allowed or only local repair.
4.2 Quad topology is not a universal answer
Appropriate quad topology can help certain editing and deformation workflows, but it should not be treated as a universal optimal standard. Static display, manufacturing checks, and animation deformation have different topology requirements.
Even when all faces are quads, edge density, pole placement, and local flow can affect the result. A repair plan should be based on downstream use rather than mechanically pursuing one face type.
4.3 Validation should cover multiple levels
After repair, at least the following should be checked:
- Geometry: whether the silhouette has shifted noticeably, and whether spikes or collapse have appeared.
- Topology: whether abnormal boundaries, degenerate faces, or non-manifold structures that do not meet target requirements remain.
- Surface: whether normals, textures, and material appearance have been damaged.
- Use case: whether the model meets the actual requirements of display, deformation, or manufacturing workflows.
For regions with insufficient constraints, the agent should provide candidate plans and explain their impact rather than presenting one automatic patch as a verified optimal solution.
5. Turning Vague Wishes into Executable Tasks
An effective agent task usually contains five types of information: goal, context, boundaries, authorization, and acceptance criteria.
For example, instead of saying only “clean up the project,” you can say:
Analyze the cleanable assets in the project. First generate an inventory; do not delete files. You must retain original data, regression samples, and deployment configuration. Prioritize identifying reproducible build artifacts, and record references and recovery methods. After confirmation, isolate candidate items and run builds and key tests.
This description does not specify every operation detail, but it clearly defines the boundaries that must not be crossed, allowing the agent to work autonomously within a safe space.
At the same time, avoid over-constraining the task. Writing every step as a fixed instruction may limit the agent’s ability to find a better solution. A more effective approach is usually to specify the outcome, risk bottom line, and acceptance method while leaving moderate flexibility in the execution path.
6. Enterprise Deployment Requires Tiered Authorization, Not All-or-Nothing
Agent permissions can be layered by risk:
- Analysis layer: read information within the authorized scope and generate reports and plans.
- Restricted execution layer: modify local files, run tests, and keep change records.
- High-impact operation layer: delete assets, migrate data, perform batch rewrites, or adjust production configuration, requiring additional approval.
Permission design should follow the principle of least privilege and limit the scope of effect as much as possible. For example, place experimental tasks in isolated environments and restrict modifiable directories, so the agent does not change the entire system just to achieve a local goal.
In addition, each key operation should record its basis, inputs, change scope, and validation results. Logs are not only for incident tracking; they also help teams determine whether a problem comes from unclear requirements, a model judgment error, or an incomplete execution environment.
7. Building Truly Comparable Evaluation Methods
When evaluating agents, counting only whether a task was completed once can easily miss hidden costs. More comprehensive metrics include:
- Correctness: whether explicit requirements and key boundary conditions are met.
- Safety: whether unauthorized operations, irreversible operations, or unverified changes occur.
- Verification quality: whether critical paths are checked, not just a simple sample.
- Interaction efficiency: whether follow-up questions are necessary and whether the main uncertainties can be explained in one round.
- Recovery capability: whether the impact can be located and reversed after failure.
- Total cost: time, compute resources, human review, and rework required to complete the task.
The test set should also cover different scenarios, such as complete requirements, missing requirements, conflicting goals, and execution failures. For tasks that may be stochastic, tests should be run multiple times to avoid using one success or failure to represent overall capability.
Fair comparison also requires unified inputs, permissions, available tool scope, and acceptance criteria. Otherwise, evaluation results may reflect environment differences rather than differences in agent capability.
8. Conclusion: Reliable Autonomy Comes from Clear Boundaries
The value of an agent is not in acting quickly at all times, nor in stopping work whenever risk appears. It lies in identifying which tasks can be completed autonomously, which tradeoffs require confirmation, and how to turn uncertainty into an executable next step.
Although code cleanup and mesh repair belong to different domains, they follow the same engineering logic: understand assets and goals first, then establish constraints; perform reversible operations first, then validate impact; for steps whose safety cannot be proven, clearly state the risks and alternatives.
Users need to learn how to express goals and judge results, and systems must also help users fill in missing information and understand tradeoffs. Only when model capability, interaction design, and engineering governance mature together can agents move from “seemingly able to do work” to “reliably delivering results.”
