Evaluating AI Agents: From Model Performance to Engineering Practice
Evaluating an AI agent requires more than measuring how quickly it acts or how polished its answers look. This article examines model capability, system support, and human–agent collaboration through code directory cleanup and 3D mesh repair. It outlines a goal–constraint–evidence–execution–validation framework, practical evaluation criteria, and enterprise controls for turning agent capabilities into verifiable, recoverable engineering outcomes.
1. Agent Evaluation Goes Beyond Autonomous Task Completion
The same AI agent may seem accurate, restrained, and well suited to complex engineering work to one user, yet overly cautious and less useful than a system that produces immediate results to another. These experiences are not necessarily contradictory. They may reflect differences in task definitions, tool permissions, context organization, and user expectations.
However, attributing every negative experience to users who “do not know how to use the system” is equally unjustified. The model may misunderstand the task, or the agent’s interaction design may fail to explain risks clearly. A rigorous evaluation should examine three areas:
- Model capability: Can it understand the problem, analyze dependencies, propose reasonable solutions, and recognize uncertainty?
- System capability: Does it have the file access, execution tools, validation mechanisms, state tracking, and permission controls needed for the task?
- Collaboration capability: Can the user communicate the goal clearly, and can the system proactively clarify critical conditions and deliver understandable results?
The central question is not whether a model is sufficiently obedient. It is whether the agent can consistently produce verifiable, useful results within a defined goal, set of constraints, and risk budget.
2. Initiative and Reliability Are Different Dimensions
An agent shows initiative by breaking down tasks, selecting tools, adding necessary steps, and continuing execution independently. Reliability means respecting constraints, producing results that can be checked, and recovering from failures.
These qualities are not inherently opposed. A well-designed agent should act proactively in low-risk situations and seek confirmation for high-risk actions. It can independently scan a directory and map file dependencies, for example, without deleting large amounts of data when recovery conditions are unclear.
Immediate execution does not necessarily demonstrate strong capability, and pausing does not necessarily demonstrate sound judgment. Evaluation should ask:
- Is the pause based on specific evidence rather than a vague claim of risk?
- Does the agent identify the critical missing conditions?
- Does it offer an alternative path that moves the task forward?
- Does it minimize the decisions that require user input?
A reliable agent should do more than say, “These files cannot be deleted.” It should explain which files may support recovery, what evidence supports that assessment, and how backups, isolation, or reproducibility tests can help establish a safe deletion scope.
This is a core principle of engineering collaboration: turn uncertainty into actionable validation steps rather than handing every decision back to the user.
3. Code Directory Cleanup: A Simple Request with Recovery Implications
Natural-language-driven programming can leave project directories full of experimental scripts, temporary outputs, test fixtures, data snapshots, and intermediate results. As disk usage grows, users often make a straightforward request: “Clean up the files we no longer need.”
The difficulty is that “no longer needed” is not a precise technical category.
An old script may contain a fix that has not yet been merged into the main codebase. A large data file may be the only input available for reproducing a bug. Apparently duplicate output directories may contain comparison runs with different parameters. File names, modification times, and sizes provide clues, but none independently proves that a file is safe to delete.
Identify File Roles Before Choosing a Cleanup Strategy
Directory contents can be classified by their purpose:
| File category | Primary value | Recommended treatment |
|---|---|---|
| Source code and configuration | Define system behavior and runtime conditions | Keep under version control and review changes |
| Build artifacts and caches | Usually reproducible from existing inputs | Remove after verifying rebuild requirements |
| Test fixtures and benchmark data | Support regression testing and result comparisons | Define retention scope and maintenance ownership |
| Experimental outputs and intermediate data | Support research reproducibility or failure analysis | Archive according to value and retention period |
| Failure evidence and recovery snapshots | Support troubleshooting, rollback, and auditing | Protect according to recovery requirements |
| Files of unknown origin | Purpose and dependencies remain unconfirmed | Isolate first; avoid direct deletion |
A common misconception needs correcting: version control does not guarantee that everything can be recovered.
Large datasets, uncommitted changes, local configuration, and ignored files may not exist in version history. Conversely, the absence of version control does not make every file undeletable. The key is to determine what has been reliably preserved, what can be rebuilt, and whether the recovery path has been tested.
Use a Staged Cleanup Workflow
A safer workflow is:
Inventory → Classify → Check dependencies → Create a cleanup manifest → Isolate candidate files → Validate the project → Confirm deletion
Each stage serves a distinct purpose:
- Inventory: Record paths, sizes, modification times, and likely purposes to establish a baseline.
- Classify: Distinguish reproducible content from irreplaceable content instead of simply sorting by size.
- Check dependencies: Inspect references in code and configuration, paths read by tests, and relationships between runtime inputs and generated files.
- Create a manifest: Document the proposed targets, expected benefits, risks, and recovery methods.
- Isolate and validate: Move candidates to a controlled location, then run builds, tests, and representative workflows.
- Confirm deletion: Delete isolated content only after the observation period and recovery requirements have been satisfied.
Static reference checks cannot cover every dynamically constructed path. Passing tests also does not prove that every business workflow is unaffected. Production data, critical test fixtures, and failure records may still require confirmation from the responsible owner.
Include Acceptance Criteria in the Task Instructions
Instead of asking an agent to “remove all useless files,” use instructions such as:
Begin with a read-only directory scan. List cleanup candidates and the evidence supporting each recommendation; do not delete anything. Prioritize reproducible caches and build artifacts. Preserve source code, configuration, benchmark data, and bug reproduction materials. Mark files with an unclear purpose for review. After approval, isolate the candidates, run regression tests, and provide a cleanup report with recovery instructions.
This is safer and reduces the need for the agent to guess the user’s intent.
4. 3D Mesh Repair: Visual Similarity Does Not Establish Structural Correctness
3D workflows also illustrate why constraints matter.
Generating a model from a reference image primarily emphasizes appearance, silhouette, and visual similarity. Repairing an existing mesh requires working with vertices, edges, faces, normals, and local connectivity. Both are 3D tasks, but their input requirements and acceptance criteria differ.
A single reference image generally cannot uniquely determine an object’s complete 3D structure. Hidden surfaces, internal structures, and occluded regions require additional assumptions or information.
“Broken Faces” Can Describe Several Different Defects
A user’s description of “broken faces” may refer to:
- Holes caused by missing faces;
- Inconsistent normals between adjacent faces;
- Overlapping vertices or duplicate faces;
- Non-manifold connectivity;
- Geometric self-intersections;
- Sliver or degenerate faces;
- Intentional open boundaries mistaken for defects.
These problems cannot all be resolved with the same hole-filling strategy. An open boundary may be a designed opening in a component; closing it would change its function. Even a hole filled into a closed surface may disrupt the edge flow required for later deformation.
The agent should therefore identify the defect type before deciding whether to fill faces, weld vertices, adjust normals, or rebuild local topology.
Topology Requirements Depend on the Model’s Intended Use
Meshes intended for static display, character deformation, manufacturing checks, or physical simulation have different structural requirements.
Static hard-surface models typically prioritize silhouette, preservation of planar surfaces, and local curvature. Deformable models also need appropriate edge flow and face distribution around joints. Closed solids intended for manufacturing often place greater emphasis on geometric closure, dimensions, and solid validity.
Quads are not universally optimal, and triangles are not inherently wrong. Whether a mesh should be predominantly quad-based or allow local triangulation depends on its downstream use.
Provide Sufficient Geometric Constraints
An effective repair specification can include:
- The location of the defect and marked boundaries;
- Silhouettes, openings, and sharp edges that must be preserved;
- Whether existing vertices may be moved;
- Whether new faces may be added;
- Requirements for local mesh density and surface smoothness;
- Whether the model will undergo subdivision, deformation, or manufacturing checks;
- Acceptable dimensional deviation and structural acceptance checks.
An agent with access to reliable mesh data and geometry-processing tools can assist with analysis and propose repairs. A textual explanation or a single screenshot, however, does not establish that a correct topology repair has been completed. The final mesh still needs checks for boundaries, normals, manifoldness, self-intersections, and performance in its intended use.
5. Build a Goal–Constraint–Evidence–Execution–Validation Loop
Code cleanup and mesh repair can use the same collaboration framework.
Goal: Define the Desired End State
A goal should describe an observable outcome rather than merely specify an action.
For example, “Reduce storage used by reproducible artifacts while preserving existing functionality and the ability to reproduce known issues” expresses the actual need more clearly than “Delete large files.”
Constraints: Identify What Must Not Be Compromised
Constraints may include data integrity, compatibility, geometric silhouette, permission boundaries, and operational budgets. Critical constraints should be prominent rather than buried in extensive background material.
Evidence: Separate Facts from Assumptions
The agent should distinguish:
- Confirmed information;
- Evidence supporting its conclusions;
- Unverified assumptions;
- Checks that can resolve uncertainty.
This separation helps prevent “looks like a cache” from becoming “confirmed safe to delete.”
Execution: Match Permissions to Risk
Read-only analysis, localized modifications, and irreversible actions should not share the same authorization level.
An enterprise may allow an agent to scan, classify, and prepare plans autonomously while requiring explicit approval for bulk deletion, production configuration changes, or overwriting important data. Batch operations should also have a limited scope so that one incorrect judgment does not affect an entire project.
Validation: Make Results Reviewable and Recoverable
A delivery should include more than “completed.” It should provide a change manifest, validation procedures and results, unresolved issues, and recovery instructions.
Validation limits must also be documented: which tests ran, which scenarios they covered, and which risks remain unresolved.
6. Establish a Fair Agent Evaluation Framework
Agent evaluation should not rely only on response speed, output length, or interface experience from a single task. It should examine the complete workflow under comparable task conditions, tool permissions, and acceptance criteria.
At minimum, consider these dimensions:
- Task success rate: Does the result pass predefined acceptance checks?
- Constraint compliance: Were protected resources preserved, and did any unauthorized actions occur?
- Failure recovery: Can the agent restore state and continue after a failure?
- Human intervention cost: How much clarification, correction, and additional work does the user need to provide?
- Explainability: Can the agent explain important decisions and their uncertainties?
- Total resource cost: Include inference resources, tool execution, rework time, and maintenance costs.
Shorter output does not necessarily mean lower cost. If omitted checks cause rework, the total cost may increase. Likewise, an initial result that looks complete is no substitute for engineering validation.
Evaluation tasks should cover multiple risk levels. Low-risk tasks reveal the agent’s ability to make autonomous progress; high-risk tasks reveal its ability to recognize boundaries and plan recovery. Testing both helps avoid mistaking aggressive execution for well-rounded capability.
7. Enterprise Adoption: Turn Collaboration Practices into System Controls
Mature human–agent collaboration should not require every user to become an expert prompt writer. Enterprises should reduce that burden through process and system design.
Useful mechanisms include:
- Standardized task templates: Collect goals, inputs, constraints, acceptance criteria, and risk levels consistently.
- Controlled execution environments: Separate validation from production and restrict unnecessary access.
- Versioning and snapshots: Protect code, configuration, and critical data, and regularly rehearse recovery procedures.
- Operation auditing: Record important instructions, modified resources, execution results, and approvals.
- Automated validation: Embed builds, tests, and structural checks into workflows rather than relying on verbal confirmation.
- Risk-based approval: Require human confirmation for irreversible actions while keeping low-risk steps automated.
- Failure reviews: Distinguish model errors, missing information, tool failures, and process defects, then address each appropriately.
These mechanisms are not intended simply to constrain agents. They enable greater effective autonomy within clear boundaries.
Conclusion
An AI agent’s value does not lie in immediately satisfying every vague instruction. It lies in understanding goals, recognizing risks, using evidence to advance the task, and delivering results that can be verified and recovered.
Reliability should not become an excuse for inefficient interaction, either. A strong system identifies critical gaps proactively, proposes a safe next step, and reduces unnecessary decision-making for the user.
Agent evaluation should ultimately move from “Was the answer satisfying?” to “Is the engineering outcome trustworthy?” When goals, constraints, permissions, and validation form a closed loop, model capability is more likely to translate into dependable productivity.
