How to Evaluate a Coding Model’s Real Delivery Capability
A coding model should be evaluated by how reliably it completes real repository work, not by benchmark scores alone. This article presents a practical framework for testing long-horizon coding, screenshot-driven debugging, and cross-domain programming through three reusable tasks, process-based scoring, bias controls, and safe integration boundaries.
Why “Can Get the Work Done” Matters More Than a Score
Model upgrades for software development are often promoted through longer context windows, higher benchmark scores, or support for more programming languages. For engineering teams, these signals only suggest that a model might be stronger. They do not prove that it will behave reliably in a specific codebase.
Real delivery usually involves reading legacy code, adding tests, changing interfaces, interpreting error screenshots, aligning implementation with requirements, and preserving behavior across multiple rounds of edits. If the model is weak in any of these areas, it becomes a draft generator that requires repeated manual rework rather than a useful engineering assistant.
Evaluation should therefore focus on three capabilities:
- Whether long-horizon coding can preserve the same goals and constraints across multiple steps.
- Whether visual information can be converted into executable code changes.
- Whether “general programming” covers scripts, services, data tasks, and interface-related work rather than only isolated functions.
The methods below focus on how to design tasks, record the process, and determine results without treating a one-time demo as proof of capability.
Break Capability Down into Observable Behaviors
Long-Horizon Coding
Long-horizon coding does not mean generating many lines in a single response. It means remaining aligned with the same objective throughout a multi-step task. A capable model will usually:
- Restate the constraints first, including the language version, directory boundaries, modules that must not be changed, and compatibility requirements.
- Work in stages: locate the entry point and data flow, modify the implementation, then add tests or perform a minimal validation.
- Preserve state: later changes should not overturn interface semantics confirmed in earlier rounds.
- Recover from failure: when compilation or tests fail, the model should use the error to identify a specific file or cause instead of rewriting the entire file.
During evaluation, record the number of rounds, the scope of each change, and whether unrelated refactoring was introduced. If a model frequently “optimizes” unrelated code, its long-horizon score should be reduced. Unnecessary changes expand the review surface and increase regression risk.
Bringing Visual Input into the Programming Loop
With visual input, the model no longer receives only text and diffs. Common materials include interface screenshots, error dialogs, architecture diagrams, photographs of tables, and terminal output.
The key question is not whether the model can recognize an image. It is whether it can turn information in the image into engineering constraints:
- Extract component hierarchy, text, and states such as disabled, loading, empty, and error states from a screenshot.
- Map visual differences to components, styles, or API fields instead of merely saying that something “looks wrong.”
- State assumptions about unclear areas rather than inventing buttons or fields that are not visible.
- When text and visual evidence conflict, explain which source takes priority and provide a way to verify the decision.
A screenshot without a repository can test interface description, but not programming ability. To evaluate the programming loop, the model must also receive code that it can modify.
The Boundaries of General Programming
General programming means that the same model can transfer engineering methods across script automation, backend APIs, frontend interactions, data cleaning, configuration, and documentation synchronization. It does not mean claiming that the model can write anything.
The important question is whether the model reuses the same engineering habits across domains:
- Define inputs and outputs clearly.
- Handle boundary conditions.
- Keep changes reversible.
- Use minimal validation to demonstrate behavior.
A single algorithm problem should not stand in for general programming. Algorithm problems measure local reasoning, while repository tasks measure retrieval, constraint following, and consistency across changes. Both are useful, but their conclusions should be reported separately.
Designing Three Tasks with Broad Coverage
The original evaluation scenario uses three tasks with significant differences in scope. This approach is useful, but the tasks should be expressed as reusable templates rather than tied to a specific product. The three tasks should stress long-horizon coding, visual understanding, and cross-domain consistency while using the same scoring framework.
Task One: Incremental Changes to a Legacy Project
Prepare a small service that runs but is not perfectly structured. It should include a legacy interface, a small test suite, and one known technical debt issue. The task should require adding a compatible field without breaking existing callers. Limit the model to a specified directory and prohibit framework rewrites.
Evaluate four areas:
- Whether the model reads the call chain before editing.
- Whether it defines the default and null behavior of the new field.
- Whether tests cover both the old and new paths.
- Whether the diff remains local.
An example acceptance record could look like this:
Task: Add an optional filter to a query endpoint while preserving default behaviorConstraints: Do not change the public authentication middleware; do not upgrade major dependenciesObservations: Round 1 located the entry point; Round 2 changed parameter parsing and the query; Round 3 added testsFailure signal: When omitted, the filter was treated as an empty string, causing the result set to become empty
This task specifically penalizes rewrites that appear more modern but silently change default semantics.
Task Two: Screenshot-Driven Bug Fixing
Provide an expected screenshot and an actual screenshot of the same page, along with the corresponding component code. The defect might involve spacing, incorrect error text, a missing loading state, or an incorrectly positioned form-validation message. Require the model to produce a list of visual differences before submitting the smallest reasonable patch.
Scoring should distinguish between correct description and correct modification. If the model correctly identifies that a button is misaligned but edits the wrong component, the visual-understanding portion may pass while the programming loop fails.
If the screenshot resolution is insufficient, the model should lower its confidence and state what additional information is needed. This is more consistent with engineering practice than inventing pixel-level details.
Task Three: A Cross-Domain Miniature Workflow
Use one business object to connect three types of work:
- A data-cleaning script.
- A thin query API.
- A short document explaining how to use the API results to verify the cleaning rules.
The architecture does not need to be complex. The field names, null conventions, and error codes must remain consistent across all three deliverables.
This task exposes one of the most common weaknesses in generalization. A script may use one naming convention, the API another, and the documentation a third. Cross-domain capability is not about stacking technologies. It is about preserving constraints across different outputs.
Do Not Score Only Whether the Final Code Runs
A five-level behavioral evaluation is preferable to a single pass rate. Every level should be supported by evidence rather than impression.
Use five dimensions:
- Goal alignment: Did the model restate the constraints and continue following them in later rounds?
- Change locality: Were edits limited to necessary files, without unrelated formatting or refactoring?
- Correctness: Do tests, manual procedures, or screenshot comparisons support the conclusion?
- Recoverability: After failure, did the model narrow its assumptions instead of starting over?
- Communication integrity: Did it identify uncertainty and assumptions, without inventing files or interfaces?
Each dimension can be scored from 0 to 2. A high total score should not qualify a model for production trials if its communication-integrity score is 0. Hallucinated dependencies and nonexistent interfaces can create false assumptions during code review.
At a minimum, retain the following process logs:
- A list of input materials.
- The number and sequence of rounds.
- The plan proposed by the model.
- A summary of the actual diff.
- Results from validation commands.
- Points where a human intervened.
Without process logs, a final result that “works” cannot show whether the model was capable or whether the evaluator continuously corrected it.
Evaluation Environment and Bias Control
For a fair comparison, keep at least the following conditions fixed:
- The same repository snapshot.
- The same locked dependencies.
- The same prompt structure.
- The same maximum number of rounds.
- The same permitted paths.
The prompt can require the model to plan before editing, but it should not disclose the solution steps. Otherwise, the evaluation measures the ability to follow instructions rather than the ability to reason about the task.
Common sources of bias include:
- Selecting only a language the model handles well and generalizing the result to full-stack work.
- Letting the model write its own tests and then using those tests for evaluation without checking whether their assertions are too weak.
- Revealing filenames or line numbers in a screenshot task, making the visual channel effectively irrelevant.
- Repeatedly supplying key design decisions during a long-horizon task and then attributing the result to the model.
- Using public benchmark tasks for internal acceptance, where memorization may replace reasoning.
Control experiments should include a pure-text baseline. For the same defect, compare the visual model with a version that receives only a textual description. If the text already provides enough information, visual input may not justify the additional complexity. If a text description would be long and likely to omit important states, visual input has greater engineering value.
Boundaries for Daily Development Use
Even after a model passes evaluation, it should remain an assistant rather than an automatic merge system. Safer uses include:
- Requirement clarification: Ask the model to list ambiguities, affected areas, and default behaviors that require product confirmation.
- Localization: Within a restricted directory, ask it to explain the call chain and identify candidate edit points. A human decides what to change.
- Drafting: Generate a patch and test draft while a human reviews semantics and security boundaries.
- Regression work: After feeding back failure logs, allow iteration only within the scope related to the failure.
Work that should not be handed to the model for final closure includes permission and secret-management policies, data deletion and migration, proofs of concurrency correctness, and core legacy modules without a test baseline. The model can draft checklists for these areas, but merge authority must remain with reviewers.
When a company connects a model to a cloud-based development environment, it should apply general access-isolation practices:
- Separate read-only code access from write access.
- Keep secrets out of prompts.
- Send build logs and artifacts to logging services and object storage for auditing.
- Trigger monitoring alerts for failed tasks.
These practices are platform capabilities and do not depend on a proprietary interface from any specific model. In a cloud environment such as Baidu AI Cloud, if code hosting, container builds, logging, and alerting are already available, evaluation jobs can run in an isolated project so that evaluation repositories do not share production credentials. This describes an isolation principle, not specific product parameters.
Preparing Prompts and Repositories
Effective prompts are short and firm. They should include the goal, non-goals, acceptance commands, and stop conditions. For example:
Goal: Add an optional status filter to the list query while preserving current behavior when the filter is omitted.Non-goals: Do not restructure directories, upgrade dependencies, or modify authentication.Acceptance: Run the existing tests; add one assertion each for the default case, a valid status, and an invalid status.Stop: If changing a public type is required and affects more than two callers, stop and explain the impact first.
The repository should be prepared with:
- A minimal runnable sample.
- A fixed random seed or fixed fixture data.
- A list of paths that must not be touched.
Visual tasks should also include screenshot collection details, such as resolution, whether sensitive information is present, and how the expected and actual states correspond. If the materials are incomplete, the task should be considered invalid rather than counted as a model failure.
How to Interpret a Model Upgrade
When a model expands from text-only code handling to visual input and broader programming, the evaluation set must evolve as well. Reusing old function-only tasks is not enough.
A sensible review sequence is:
- Check whether the model can make a correct, localized change in a legacy project.
- Check whether it can turn a screenshot observation into a working patch.
- Check whether field names, null conventions, and error conventions remain consistent across a script, an API, and documentation.
Only when all three are stable can an upgrade be said to improve delivery capability.
If the only improvement is a higher benchmark score, while the model frequently performs out-of-scope refactoring or limits visual understanding to description, treat the result as improved drafting ability rather than improved delivery reliability. Reduce the scope of automatic modifications and focus human review on interface semantics and regression risk.
Technology choices must remain tied to the task distribution. If a repository is dominated by text diffs, visual input may not be a priority. If many defects originate in interface states, screenshot-based evaluation should be part of the admission test.
Deployment Readiness Checklist
Before expanding usage, use the following internal checklist and require evidence for every item:
- The three broad-coverage tasks use the same repository snapshot and maximum number of rounds.
- The long-horizon task records the relationship between each round’s plan and the final diff.
- The visual task reports description accuracy separately from patch accuracy.
- The cross-domain task checks consistency of fields, null values, and error conventions.
- Failure cases are archived and classified as insufficient materials, constraint violations, or implementation errors.
- Secrets, production data, and customer interface screenshots are excluded from prompts.
- Human reviewers still approve merges, and the model cannot bypass tests or code owners.
This approach produces more than an impression of a particular model generation. It creates a repeatable capability profile showing which engineering actions reduce back-and-forth and where human ownership is still required. When later versions are evaluated with the same task set and scoring system, the comparison becomes meaningful.
