Evaluating AI Agents: From Constrained Decisions to Engineering Practice
Evaluating AI agents requires more than checking whether they complete a task proactively. This article examines task competence, collaboration, and execution reliability through project file cleanup and 3D mesh repair. It outlines how to define task boundaries, verify results, preserve recovery options, design fair evaluations, and build reliable enterprise workflows.
1. Evaluating Agents Requires More Than Proactive Task Completion
The same AI agent can receive very different assessments on a complex task. One user may find it cautious and reliable, while another sees it as hesitant and difficult to use. These differences often reflect more than the model’s reasoning ability: they also depend on the information provided, the tools and resources available, and whether success criteria are clearly defined.
For example, “Remove unused files from the project” sounds straightforward, but leaves several questions unresolved. Which files can be regenerated? Which are referenced indirectly by the application? Which support recovery? How will the agent demonstrate that the project still works after cleanup?
Without answers, deleting files immediately does not necessarily demonstrate strong capabilities. It may simply turn uncertainty into irreversible risk. Yet refusing to act is not a satisfactory delivery either. A better approach is to identify information gaps, propose checks, and develop a staged plan.
Agent evaluation should therefore distinguish three dimensions:
- Task competence: Can the agent understand the problem, analyze dependencies, and produce a correct plan?
- Collaboration: Can it explain key decisions, ask necessary clarifying questions, and reduce the user’s communication burden?
- Execution reliability: Can it act within its permissions and constraints while preserving verification and recovery options?
These dimensions are related, but none substitutes for another. Writing code well does not imply the ability to modify a project safely. Communicating effectively does not guarantee trustworthy execution.
2. An Agent’s Value Lies in Turning Goals into Constrained Actions
Traditional question-answering systems primarily generate information. Agents may also call tools, modify files, run checks, and affect real business operations. The central question is therefore no longer just whether an answer is reasonable, but whether an action satisfies both the objective and its boundaries.
A complete task specification should include at least six elements:
- Objective: What final result must be delivered?
- Context: What environment, input materials, and existing state are involved?
- Constraints: Which behaviors, structures, and data must remain unchanged?
- Permissions: Which resources may be read, modified, deleted, or submitted?
- Acceptance criteria: Which checks will establish that the task is complete?
- Recovery plan: How can the system return to a usable state if something fails?
For example, replacing “Organize the project directory” with the following specification is usually more useful than adding emphatic demands:
Analyze reproducible artifacts in the project directory, prioritizing build caches and temporary outputs. Do not directly delete source files, configuration, original data, or regression fixtures. First produce a candidate list that explains the classification rationale, dependency checks, and recovery method. After confirmation, process the files in batches and validate the build and key functionality.
The benefit comes not from a longer prompt, but from supplying information needed for decisions.
At the same time, failures should not all be blamed on users. A capable agent should help organize requirements. When constraints are missing, it should ask a small number of essential questions rather than require the user to write a complete technical plan in advance. The goal is to establish sufficiently clear boundaries with minimal communication overhead.
3. Cleaning Up Coding Artifacts: Confirm Recovery Before Deletion
AI-assisted coding can produce temporary scripts, debugging outputs, intermediate data, validation fixtures, and multiple records of changes. As iterations accumulate, these files can consume substantial storage and interfere with later searches and decisions.
However, “takes up space,” “has not changed recently,” and “safe to delete” are not equivalent.
An old data file may reproduce an edge-case defect. A temporary script may be the only record of a data repair. Apparently duplicate fixtures may cover different business conditions. Conversely, recovery value does not mean an asset must remain in the working directory forever. Archiving, relocation, and indexing can also reduce directory complexity.
Classify Files by Purpose, Not by Name
Project files can be grouped into several broad categories:
| File category | Primary value | Handling principle |
|---|---|---|
| Source files and configuration | Define application behavior and the runtime environment | Protect by default; review changes |
| Reproducible artifacts | Can be regenerated from existing inputs and processes | Verify reproducibility before cleanup |
| Original data and annotations | May be impossible to obtain again | Back up separately and control access |
| Regression fixtures | Verify that known issues do not recur | Manage as test assets |
| Temporary debugging files | Support short-term investigation | Archive or delete after confirming no dependencies |
| Historical snapshots | Support recovery and traceability | Apply a defined retention policy |
Classification cannot rely on file extensions alone. A file labeled “temporary” may be read by a production workflow, while a file labeled “backup” may no longer be useful. Decisions should consider references, generation records, runtime configuration, and input from the responsible business owner.
Version Control Does Not Protect Every Asset
Source code version control records changes and supports comparison and restoration, but it does not automatically cover every project asset.
Large datasets, runtime-generated files, private local configuration, and untracked directories may not be recoverable from code history. Even when a file exists in that history, the restoration procedure must still be practical and meet data security requirements.
Conversely, a lack of version control does not mean no files can be removed. Artifacts with a known origin, a verified regeneration process, and no runtime dependencies can be processed after establishing a backup or quarantine mechanism. What matters is not the presence of a particular tool, but a verified recovery path.
Use an Inventory–Quarantine–Validate–Delete Workflow
Immediate deletion minimizes the number of steps, but not necessarily the total cost. A safer cleanup process is:
- Create an inventory: Record each candidate’s location, size, purpose, references, and classification rationale.
- Establish a baseline: Preserve current test results, key configuration, and necessary data snapshots.
- Quarantine first: Move candidates to a controlled location instead of permanently deleting them.
- Validate in batches: Run builds, tests, and checks of critical business workflows.
- Delete after observation: Perform final deletion after an agreed retention period.
The quarantine area also needs access controls and a retention deadline. Sensitive data must not be moved into an uncontrolled location. When moving files between storage locations, verify content integrity rather than assuming the transfer completed successfully.
The control flow can be illustrated as follows:
candidates = scan_files_within_specified_scope()For each candidate file:If it belongs to a protected directory:Keep itElse if its purpose is unclear or recovery is unconfirmed:Add it to the manual review listElse:Record the rationale and add it to the quarantine listAfter authorization:Save the baseline and recovery inventoryQuarantine candidate files in batchesRun validationIf validation fails:Restore the affected batchesRecord the cause of failureElse:Retain the quarantined files until the agreed deadline
This is illustrative pseudocode, not an executable program. An implementation must also handle files in use, path changes, access permissions, and concurrent modifications.
4. 3D Mesh Repair: Visual Hole Filling Does Not Establish Topological Correctness
3D modeling is another area where constrained decision-making matters. A model may look complete in a rendered image while still containing non-manifold connections, duplicate faces, self-intersections, incorrect normals, or unsuitable edge flow.
“Repair the damaged mesh” is therefore not a single operation. It describes a set of geometry tasks whose requirements depend on the model’s intended use.
Establish the Model’s Downstream Use
Different uses place different demands on mesh structure:
- Static presentation emphasizes silhouette, surface continuity, and visual appearance.
- Animation emphasizes edge flow around joints and stable deformation.
- Physical fabrication generally requires a closed structure without significant self-intersections and with appropriate thickness.
- Physics simulation may impose additional requirements on mesh quality, scale, and boundary conditions.
“More quads is better” is not a universal rule. Quad topology offers advantages for some editing and deformation tasks, but triangle meshes are also widely applicable. The relevant question is whether the topology meets downstream requirements.
Distinguish Defect Types
A reliable repair process begins by identifying the defects:
- Boundary holes: Open boundaries exist, but they may be intentional.
- Non-manifold structures: Local connectivity does not match the expected surface structure.
- Self-intersections: Faces intersect in unintended ways.
- Degenerate faces: Faces have near-zero area or invalid vertex relationships.
- Duplicates and overlaps: Multiple pieces of geometry occupy the same region.
- Inconsistent normals: Adjacent regions have conflicting orientations that affect rendering or subsequent calculations.
Several defects can coexist. Filling visible holes alone may leave deeper structural problems unresolved.
Specify Verifiable Repair Constraints
A task description should make the boundaries and checks explicit:
Repair the open boundaries in the specified region while preserving the outer silhouette, sharp features, and existing material boundaries. Do not modify other regions. After filling the holes, check for non-manifold edges, self-intersections, normal consistency, and local face quality. Provide a before-and-after summary of the changes.
For animation, specify which regions require continuous edge flow. For fabrication, add closure and thickness requirements.
The assistance an agent can provide also depends on its data and tools. Reference images alone cannot reliably reveal hidden structures, and rendered images are insufficient for validating mesh topology. Actual repair requires access to geometry data and suitable inspection capabilities. A written analysis must not be presented as completed geometric validation.
Make Local, Reversible Changes
Mesh repair should preserve the original asset, operate on a copy, and limit the modification scope. After each pass, inspect boundaries, connectivity, normals, and deviations from the original shape before deciding whether to continue.
Large-scale automatic reconstruction may quickly eliminate surface defects while damaging detail, material mapping, or deformation structure. More extensive modification does not necessarily mean a better repair. The best approach is usually to satisfy the acceptance criteria while minimizing unnecessary changes.
5. Designing Fair Agent Evaluations
Testing an agent once with a vague instruction and judging whether its answer looks appealing produces results that are vulnerable to incidental factors. A more reliable evaluation fixes task conditions and records the full execution process.
Standardize Inputs and Resource Conditions
When comparing approaches, keep input materials, tool permissions, available time, and acceptance criteria as consistent as possible. Otherwise, gains from additional file access or richer context may be incorrectly attributed to the model.
Test both well-specified tasks and tasks with missing constraints. The former assess execution; the latter assess clarification and risk identification. Both are valuable in practice.
Measure Outcomes and Process
Useful evaluation metrics include:
- Task success rate: Does the result meet predefined acceptance criteria?
- Constraint compliance: Did the agent make unauthorized changes or damage protected assets?
- Validation quality: Did it actually run checks and disclose anything left unverified?
- Recovery capability: Can it return to the baseline after a failure?
- Collaboration cost: How much information must the user supply, and how often must they correct the agent?
- Total resource cost: Include reasoning, tool calls, waiting, and rework.
- Repeatability: Does the agent perform reliably across repeated, similar tasks?
Shorter output is not necessarily more economical. A fast, unverified modification may lead to much more expensive troubleshooting and recovery. Efficiency should be measured across the entire task lifecycle, not only during generation.
6. Enterprise Deployment: Build Reliability into the Workflow
Enterprise agents should not depend on “Please be careful” as their primary safeguard. Reliability requires permissions, procedures, and verification mechanisms working together.
Assign Execution Permissions by Risk
Read-only analysis can generally be more automated. File modifications in test environments should preserve change records. Data deletion, production configuration changes, and actions affecting external systems require stricter approval.
Authorization should apply to a specific operational scope rather than grant broad, one-time permission. An agent proposing a plan, a user approving that plan, and a system permitting execution are three distinct steps.
Verify Independently Rather Than Trusting Self-Reports
An agent can generate tests and explain results, but its description cannot replace actual checks. A test environment, rule-checking program, or human reviewer should independently validate critical outcomes.
In particular, safeguards should prevent the agent from changing acceptance criteria merely to “pass the tests.” Changes to tests and acceptance rules should be recorded and reviewed separately.
Preserve Audit and Recovery Information
Audit records should capture task objectives, authorization scope, key actions, file differences, validation results, and human confirmations. The records themselves must avoid exposing sensitive data and remain subject to appropriate access controls.
Recovery procedures also need practical rehearsal. Writing “rollback is available” does not demonstrate that rollback works.
7. Conclusion: Strong Capabilities Should Produce Verifiable Deliverables
An agent’s value is not whether it always responds quickly or agrees to execute every request. It lies in recognizing constraints, controlling risk, and advancing a task toward a verifiable result.
For developers, clearly defining objectives, protecting project assets, and establishing recovery paths are foundations for effective agent use. For agents, organizing requirements, explaining uncertainty, and proposing low-risk next steps are also essential capabilities.
Project artifact cleanup and 3D mesh repair belong to different domains, but follow the same principles: understand assets and dependencies first, constrain the scope of changes, verify results independently, and preserve the necessary recovery options.
A mature agent workflow neither delegates every judgment to the model nor makes the user responsible for every decision. It assigns appropriate responsibilities to people and systems, enabling efficient, reliable collaboration within clear boundaries.
