AI Coding Evaluation Framework: Acceptance Criteria for 3D and Frontend Tasks
This guide sets out a fixed framework for comparing AI coding tools on two task types: WebGL 3D display pages and frontend admin pages with data tables, forms, and dialogs. It covers the preparation steps, a 100-point scoring table across six dimensions, and the acceptance checks for 3D scenes.
1. Why a Fixed Acceptance Standard Is Needed
Many developers judge AI coding tools by whether the generated page looks good. That judgment is highly subjective. Change the task or the prompt, and the conclusion may reverse. To compare tools fairly, use the same set of tasks and the same standards, and record the result of every step.
This article covers two types of tasks: 3D display pages built on WebGL, and frontend admin pages that include data tables, forms, and dialogs. Both require the tool to complete the full chain, from understanding requirements to running and verifying the result. The scores and thresholds given here are starting reference values. Teams can adjust the weights to fit their own projects, but the adjusted weights must stay the same across all tools.
2. Preparation Before Evaluation
Before the evaluation starts, fix the following conditions:
- Record the tool name, version number, and test date. Results may change after the model version of a tool is updated.
- Lock the runtime environment, including the browser version, Node.js version, and dependency versions, and commit the lock file.
- Select a fixed task set. For 3D tasks, choose a display page that includes model loading, camera control, lighting, and window resizing. For frontend tasks, choose an order management page that includes table filtering, form validation, dialogs, and an empty-data state.
- Use a unified prompt template with five parts: goal, input, output, interaction, and constraints. Attach the acceptance criteria. Do not add or remove anything in the prompts for different tools.
- Set a limit on repair rounds. This article recommends a limit of 5 rounds. Tasks that exceed the limit are recorded as failed.
3. Scoring Table
This framework totals 100 points across six dimensions.
| Dimension | Points | Scoring Method | Evidence Source |
|---|---|---|---|
| Requirement Understanding | 10 | Identify 5 boundary conditions. Deduct 2 points for each one missed. | First-round response and generated code |
| 3D Scene | 21 | 7 basic parts, 3 points each | Runtime screenshots and code inspection |
| Frontend Visual Reproduction | 20 | Structure 7, visuals 7, interaction 6 | Desktop and mobile screenshots |
| Multi-file Structure and Maintainability | 15 | Reasonable file splitting, correct imports, no duplicated logic | Directory structure and code review |
| Error Fixing | 14 | Fixed within 2 rounds: 14 points. 3 rounds: 9 points. 4 rounds: 5 points. More than 5 rounds: 0 points. | Repair log |
| Cost and Iteration | 20 | See Section 7 | Timing records and usage statistics |
The 5 boundary conditions under Requirement Understanding are: mobile adaptation, display when data is empty, undoing or restoring operations, placeholder prompts during loading, and resetting the 3D viewpoint.
4. Acceptance Steps for 3D Scenes
Check each 3D item in both the code and the running result. Every item should be verifiable through a specific action.
- Scene objects: Models, lights, and helper elements should be mounted under a single root object in the scene. Grid helper lines should be hidden before formal delivery.
- Camera: Check whether the field of view, near clipping plane, and far clipping plane of the perspective camera are reasonable. The initial view should show the full model. Confirm this by calculating the size of the model’s bounding box.
