AI-Assisted Engineering Needs Better Verification, Not Just Better Models

More capable AI coding agents do not eliminate the need for sound engineering judgment. This article proposes a change-and-evidence contract for controlling implementation scope, establishing correctness and governing the acceptance of AI-generated software changes.

A proposed code change stays inside an authorized boundary before passing a separate verification gate
On this page

An AI coding agent receives a development task, examines the repository, modifies several files, generates tests and executes the available verification commands. It reports that the implementation is complete and all checks have passed.

The engineering team now faces a decision that is more difficult than the original implementation task: determining whether the resulting change should be accepted.

Does the implementation satisfy the actual requirement? Has it preserved existing system behavior? Were all the modifications necessary? Did the agent change an architectural assumption without authorization? Were the verification commands appropriate for the affected functionality?

These questions cannot be answered simply by selecting a more capable AI model.

Model capability matters. Better reasoning, greater contextual understanding and more reliable tool use can improve the quality of generated software. However, the ability to produce a convincing implementation is different from the ability of an engineering organization to establish that the implementation is appropriate.

As AI becomes more capable of performing implementation work, verification becomes an increasingly important engineering capability in its own right.

The Changing Distribution of Engineering Work

Software development involves considerably more than writing source code.

Engineers investigate problems, interpret requirements, assess dependencies, evaluate architectural alternatives, implement changes, investigate failures and establish whether the resulting software is ready for use.

AI-assisted development changes the distribution of effort across these activities.

An engineer who previously spent considerable time implementing a feature may now spend more time defining its constraints, examining generated changes and verifying their consequences.

This redistribution creates an opportunity to improve engineering productivity. It also creates the possibility of a new bottleneck: an organization may become capable of producing software changes faster than it can meaningfully evaluate them.

The distinction is important because implementation throughput is not equivalent to delivery capability.

A team that generates more pull requests without improving its ability to evaluate their correctness, relevance and integration risk may accumulate additional review work rather than deliver additional value.

The 2025 DORA report on AI-assisted software development characterizes AI as an amplifier of existing organizational capabilities and weaknesses. Its findings emphasize the importance of the broader development environment rather than treating AI tools as isolated productivity improvements [1].

This perspective provides a useful starting point for engineering teams. Introducing a stronger coding agent into an environment with unclear requirements, unreliable tests, weak documentation and inconsistent review practices does not automatically resolve those underlying problems.

It may instead increase the rate at which their consequences appear.

The engineering opportunity is therefore not limited to automating implementation. It includes improving the system through which implementation becomes accepted software.

Why Model Capability Is Different From System-Level Correctness

A capable AI model can demonstrate impressive performance on programming tasks while still producing an unsuitable change within a particular software system.

The reason is that software correctness is contextual.

A technically valid implementation may contradict an existing business rule. An architectural improvement may violate compatibility requirements. A seemingly useful dependency may introduce deployment constraints that the project cannot support.

Consider a request to prevent duplicate appointment submissions in an online booking application.

An AI coding agent might implement a frontend mechanism that disables the confirmation button after the first interaction.

The resulting behavior could satisfy a narrow interpretation of the request. The button becomes unavailable, and repeated clicks no longer initiate additional submissions.

However, the underlying requirement might be substantially broader: the application must prevent duplicate bookings regardless of repeated requests, interrupted connections or retries.

The frontend mechanism improves the interaction but does not necessarily establish the required transaction-level guarantee.

Alternatively, an agent might address the problem by introducing server-side transaction handling, changing database constraints and restructuring the booking workflow.

That implementation could provide stronger protection, but it might also alter existing behavior, create migration requirements or interfere with legitimate appointment rescheduling.

The engineering question is not simply which implementation is more sophisticated.

It is which implementation satisfies the authorized requirement while preserving the relevant system contracts.

This reveals three distinct forms of correctness:

Dimension Question
Local correctness Does the modified code behave as intended within its immediate scope?
System correctness Does the change remain correct when interacting with the wider application?
Contextual correctness Does the change satisfy the actual business requirement and project constraints?

A change can satisfy the first dimension while failing the other two.

Model improvements may reduce implementation errors, but they cannot eliminate the need to establish which requirements, constraints and system behaviors define correctness in a particular project.

Defining the Boundaries of an Authorized Change

One of the most consequential decisions in AI-assisted engineering occurs before the agent modifies any code.

The team must establish what the agent is authorized to change.

A development request such as “improve the booking workflow” describes a desired direction, but it leaves substantial decisions unresolved. The agent might interpret improvement as a change to interface design, interaction behavior, data validation, architectural structure or business rules.

Each interpretation carries different implications.

A more precise development task should distinguish between four elements:

  • Required behavior: the outcome that must be established.
  • Preserved behavior: existing functionality and contracts that must remain unchanged.
  • Implementation freedom: decisions the agent is permitted to make independently.
  • Restricted decisions: changes that require additional authorization.

These elements are particularly important in mature software systems, where the visible feature may depend on years of accumulated business decisions.

For example, improving the reliability of appointment confirmation should not automatically authorize changes to appointment capacity, cancellation policies, staff permissions or the definition of a valid booking.

A technically coherent change can still be inappropriate if it resolves decisions that belong to product owners, business stakeholders or system maintainers.

Distinguishing implementation decisions from product decisions

AI agents should have sufficient freedom to solve technical problems effectively. Requiring human approval for every variable name or internal helper function would remove much of the benefit of automation.

However, technical implementation freedom should not be confused with authority over product behavior.

An agent may be authorized to reorganize a private function while preserving its contract. It may not be authorized to redefine eligibility conditions, change access permissions or remove existing functionality because those changes simplify the implementation.

The distinction depends on consequences rather than file types.

A one-line change to an authorization condition can represent a more consequential decision than restructuring hundreds of lines of internal code.

The appropriate boundary is therefore not simply the number of files an agent may modify. It is the set of behavioral and architectural commitments that the change is permitted to affect.

Verification Across Code, Integration and User Experience

A common weakness in automated development workflows is treating successful command execution as comprehensive verification.

An agent may report that the application builds successfully, the test suite passes and no linting errors remain.

These are useful results. Their significance depends on what the commands actually evaluate.

A build establishes that the application can be constructed under the tested configuration. Static analysis evaluates particular properties of the source code. Automated tests evaluate the expectations represented by their assertions.

None of these establishes, independently, that the complete engineering task has been satisfied.

A more dependable verification process examines the change at several levels.

Change integrity

The first responsibility is to understand what has actually been modified.

This includes identifying unrelated edits, unexpected dependency changes, configuration modifications, altered interfaces and changes to existing verification mechanisms.

A reviewer should be able to explain why each consequential modification belongs to the task.

When a small functional correction also changes deployment configuration, replaces a shared dependency or restructures an unrelated module, the additional scope deserves separate justification.

This does not mean that every large change is inappropriate. Some defects genuinely require changes across several components. The objective is to distinguish necessary complexity from unrequested expansion.

Behavioral correctness

Verification should establish the intended behavior using expectations derived from the requirement rather than solely from the generated implementation.

For the appointment example, the relevant checks would include repeated submission, interrupted communication and the preservation of legitimate booking operations.

The verification should also investigate whether the underlying requirement has been interpreted correctly.

If multiple bookings are permitted under certain business conditions, a mechanism that indiscriminately rejects repeated requests might prevent valid behavior while appearing to resolve the original defect.

Integration and compatibility

Local changes must be examined in the context of the surrounding application.

A modification to appointment persistence may affect reporting, notifications, capacity calculations, cancellation workflows or interfaces used by other components.

Integration verification should therefore follow the actual dependencies and affected contracts rather than rely exclusively on the location of the modified code.

This is especially important when an agent changes shared functionality used by multiple features.

User experience

Software can satisfy technical checks while creating an unsuitable interaction.

A confirmation button may correctly prevent repeated submissions but leave a customer unable to continue after a recoverable network failure.

An interface may correctly display an error but fail to communicate it to users navigating with assistive technology.

Where the task affects an interaction, verification should examine the relevant user journey under representative conditions, including appropriate devices, input methods, loading states and recovery behavior.

The type and depth of this evaluation should depend on the actual change.

Operational readiness

Some modifications introduce obligations that extend beyond source code.

Database changes may require migration and recovery procedures. New dependencies may introduce deployment or security constraints. Changes to important transactions may require additional monitoring.

These obligations should remain visible in the acceptance decision.

A successful implementation is not necessarily operationally ready simply because its development environment passes every available check.

Designing Quality Gates for Different Levels of Risk

Requiring the same verification process for every software change can create unnecessary overhead.

An editorial correction, a responsive styling adjustment and a modification to payment authorization do not carry equivalent consequences.

The verification process should therefore be proportional to the risk introduced by the change.

The following classification is proposed as a practical starting point rather than a universal standard.

Change category Example Verification expectations
Local presentation Correcting text or isolated spacing Focused review and relevant visual checks
Functional behavior Changing validation or interaction logic Requirement-based tests and relevant regression checks
Shared system behavior Modifying shared components or application interfaces Dependency analysis, integration testing and broader regression verification
Business-critical behavior Changing authorization, transactions or persistent data Independent acceptance, negative-path testing, security review and recovery assessment

The category should be determined by potential consequences, not merely implementation size.

For example, a small change to a shared validation function may require broader verification than a considerably larger change to an isolated informational page.

Security provides a useful illustration of this principle. NIST’s Secure Software Development Framework recommends incorporating security practices into the software development lifecycle rather than treating security evaluation as an isolated activity at the end of implementation [2].

The same general reasoning applies to AI-assisted engineering. Important constraints should inform the task, implementation and verification process from the beginning.

Protecting the verification mechanisms themselves

There is an additional consideration when coding agents are permitted to modify tests, build configurations and continuous integration workflows.

A passing quality gate is meaningful only if the mechanism establishing the result remains appropriate.

An agent might legitimately update tests when requirements change. However, it might also remove a failing assertion, weaken a type-checking rule or exclude an affected test from execution while attempting to resolve implementation difficulties.

The resulting pipeline may appear successful despite a reduction in verification strength.

Changes to quality gates therefore deserve explicit review.

Repository platforms provide mechanisms for enforcing this separation. GitHub, for example, supports branch protection rules that can require pull request approvals and successful status checks before changes are merged [3].

However, configuration alone does not establish that the selected checks are sufficient. GitHub’s documentation also explains that certain skipped jobs can report successful status [4].

Engineering teams must understand what their automated controls actually execute, which revision they evaluate and whether the checks address the consequences of the proposed change.

Distinguish a check executed with a relevant successful result, a check that was skipped or did not exercise the required behavior, and a check with a failure. Record what was executed, against which candidate and with which inputs. If the agent changed the verification configuration, review that change against the previous gate before treating the new result as equivalent evidence.

Establishing Accountability in Human–Agent Collaboration

The increasing autonomy of AI coding agents makes the separation of responsibilities more important.

An agent may perform substantial implementation and verification work. It may identify architectural weaknesses, recommend improvements and investigate failures independently.

Nevertheless, responsibility for accepting a consequential software change remains with the people and organizations authorized to make that decision.

This responsibility should be explicit rather than implied.

A developer reviewing an AI-generated change must understand enough about its behavior and consequences to make a meaningful acceptance decision.

A business stakeholder must retain authority over changes to business rules and product commitments.

A release owner must determine whether deployment conditions, operational risks and recovery arrangements are acceptable.

These responsibilities can overlap in small organizations, but their underlying decisions remain distinct.

GitHub’s documented security controls for its Copilot cloud agent provide one concrete implementation of this separation. The platform restricts agent permissions and requires human involvement before agent-created draft pull requests can be merged [5].

Such controls do not guarantee that a human review will be effective. They do, however, demonstrate an important design principle: the ability to generate and submit a change does not necessarily confer the authority to accept it.

The change-and-evidence contract

A useful approach is to define two complementary contracts for consequential AI-assisted development tasks.

The change contract establishes what the implementation is expected and permitted to do.

The evidence contract establishes what must be demonstrated before the implementation can be accepted.

Together, they separate the production of software from the judgment that the software is appropriate.

Consider the illustrative appointment-confirmation task.

Contract element Definition
Objective Prevent unintended duplicate bookings caused by repeated submission or request retries.
Required behavior Retrying the same logical booking operation must not create an additional appointment.
Preserved behavior Legitimate subsequent bookings, cancellation and rescheduling must remain available under existing rules.
Authorized scope Booking submission, relevant persistence behavior and associated interaction handling.
Restricted decisions Changes to booking eligibility, appointment capacity and cancellation policies.
Acceptance evidence Repeated-request and interruption scenarios, persisted-record checks and regression verification of existing booking operations.
Release evidence Relevant migration assessment, operational monitoring and an appropriate recovery procedure, where required.

This is not a complete booking specification. It demonstrates how a development task can establish both implementation boundaries and the evidence required for acceptance.

The distinction becomes particularly useful when an agent encounters an unexpected dependency.

Suppose the agent discovers that the current database structure cannot enforce the required duplicate-booking protection without a schema modification.

Rather than silently introducing the migration, the agent should identify the dependency, explain the available alternatives and determine whether the existing authorization permits the change.

If the proposed modification introduces a new operational risk, the evidence contract must also change.

The task has not necessarily failed. The investigation has exposed a decision that the original scope did not resolve.

Making the evidence traceable

An acceptance record should identify the exact revision being evaluated, the relevant commands or procedures, their results and any remaining limitations.

A compact record might contain the following fields:

Field Purpose
Candidate revision Identifies the exact software version evaluated
Authorized change Connects the implementation to its agreed scope
Scope deviations Records additional changes and their justification
Verification results Identifies completed checks and observed outcomes
Unverified conditions Prevents absent evidence from being interpreted as a pass
Residual risks Records material limitations and unresolved concerns
Acceptance decision Identifies whether the change is accepted, rejected or requires further work

The record need not become an extensive administrative document.

For a small change, a clear pull request description and reliable automated evidence may be sufficient. For a consequential modification, additional acceptance and operational records may be appropriate.

The important property is traceability.

Verification performed against an earlier revision should not automatically establish confidence in subsequent changes. GitHub’s required-status-check documentation illustrates this principle: required checks must be current, and when a test merge commit has a status, it must pass instead of the head commit’s status [6]. A successful platform status may also include a skipped or neutral conclusion. Record the evaluated revision and actual execution evidence rather than inferring execution from merge eligibility.

The engineering responsibility is to ensure that acceptance evidence continues to correspond to the actual candidate being accepted.

Verification as an Engineering Capability

AI-assisted development should not be evaluated exclusively through the quality of generated code or the speed at which implementation tasks are completed.

Its practical value depends on the ability to convert generated work into reliable, maintainable and appropriately accepted software.

Better models can improve that process. They can interpret requirements more effectively, investigate systems more thoroughly and identify defects that weaker models might overlook.

However, even a highly capable model operates within an engineering environment whose requirements, permissions, architectural decisions and verification practices determine what constitutes acceptable work.

The organizations most capable of benefiting from AI-assisted engineering may therefore be those that invest not only in generation capabilities but also in the mechanisms through which generated changes are evaluated.

This includes explicit requirements, maintained system knowledge, meaningful quality gates, proportionate verification and clearly defined decision authority.

Verification should not be understood as an obstacle placed between AI-generated implementation and delivery. It is the engineering activity that establishes whether implementation deserves to become delivery.

The objective of AI-assisted engineering is not to generate more software changes.

It is to increase the organization’s capacity to deliver changes that are justified by evidence, appropriate to their intended purpose and accepted with a clear understanding of their consequences.

References

[1] DORA. State of AI-assisted Software Development 2025. Google Cloud, 2025. https://dora.dev/research/2025/dora-report/

[2] Souppaya, M., Scarfone, K., and Dodson, D. Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities. NIST Special Publication 800-218, 2022. https://doi.org/10.6028/NIST.SP.800-218

[3] GitHub Docs. About protected branches. https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches

[4] GitHub Docs. Status checks. https://docs.github.com/en/pull-requests/reference/status-checks

[5] GitHub Docs. Risks and mitigations for GitHub Copilot cloud agent. https://docs.github.com/en/copilot/concepts/security-governance-and-network-settings/risks-and-mitigations

[6] GitHub Docs. Troubleshooting required status checks. https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks