Release Evidence Contracts for AI-Generated Code
AI coding agents can produce pull requests quickly, but reviewers still need evidence that the right tests and validation actually ran. Elliot Gardiner explains how release evidence contracts can make missing, stale and incomplete validation visible before review.

AI coding tools have made it much faster to produce a pull request. They have not made it equally fast for another engineer to understand whether that change is ready to ship.
As more code arrives this way, the expensive part of development moves from producing a patch to establishing confidence in it. When I moved into site reliability engineering, I learned that the answer to growing system complexity was not simply to ask every engineer to be more vigilant. We needed systems that exposed what was happening and helped people correct problems before they became incidents.
I think coding agents need that same feedback loop. A release evidence contract is a practical way to provide it: define what a change should demonstrate, observe what the agent actually does, and make the missing work visible while the agent can still address it.
The review bottleneck moved downstream
Imagine an agent updating an invoice calculation. It changes the code, writes a confident summary, and opens a pull request. The reviewer asks whether the new behavior was exercised against a realistic database, whether the rounding edge cases were covered, and whether the tests ran after the last edit.
The agent’s summary says the change was tested, but the answers still require investigation. At that point, the reviewer has become the person responsible for discovering work that should have happened before the handoff. The agent may need another round of instructions, another test run, and another request for review.
A green build in CI is useful, but it does not explain why the agent chose the validation it performed or whether it investigated the specific risk of this change.
The goal is not to make reviewers demand longer reports. It is to move this conversation earlier.
If the development workflow knows which checks matter, it can identify that the unit suite has become stale or the database integration test was never completed before the pull request arrives. The agent can then be directed to rerun a test, repair its environment, ask for missing context, or report an unresolved blocker.
A review starts with a better-prepared change, not a better-written excuse for why work is missing.
Make the definition of done executable
Teams already have expectations scattered across contributor guides, repository instructions, CI workflows, and the knowledge of senior engineers. A coding agent needs those expectations to be concrete enough to act on.
Rather than one universal “AI quality” score, I would define a few requirements at three levels: the organization, the repository, and the assigned task. An organization might expect lint and unit tests to run. A service repository might require an integration suite. An authorization change might demand a specific denial test, whereas a schema change might require migration validation.
The relevant task determines which additional evidence is useful. This is not a reason to run every possible check on every change; it is a way to keep the agent focused on the work that matters.
Code Telemetry’s own public grader-issue-lab demonstration repository makes that design tangible. Its failures were deliberately staged to demonstrate validation behavior, while the agent-session observations and GitHub Actions checks are real. The example is therefore a reproducible demonstration rather than independent production evidence.
The repository contains a small Python order-processing service and six assigned GitHub issues, with required checks published at organization, repository, and issue level. A pull request closing the currency-rounding issue needs a different acceptance command from one restricting access to customer orders. The issue-specific checks are selected from versioned policy through GitHub’s issue linkage rather than chosen by the agent’s own PR description.
The repository also includes 18 clearly labeled synthetic scenarios that developers can run offline. Those fixtures are separate from the historical live GitHub Grader results. The repository’s public traceability table provides additional detail on the recorded examples.
The interesting part is not the number of checks; it is that the expected work is visible before the agent begins.
My aim with a Grader is to see whether the agent used the instructions, context, and tools needed for the actual change, not merely whether it produced code that compiled. For some work, that may include inspecting an API contract, querying a database-backed environment, or running a browser check.
A development session can provide a useful account of those activities without making the reviewer read every prompt and tool response. When the requirements are explicit, a missing action becomes something the workflow can address rather than a surprise discovered in review.
Give the agent a chance to finish the job
Return to the hypothetical invoice change. Suppose the agent passes the unit suite, edits the shared rounding function afterward, and then completes a successful build. The database-backed integration environment is temporarily unavailable.
A record of that session should not collapse into “tests passed” or “tests failed.” It should make the next actions clear.
| Evidence | Status |
|---|---|
| Build | passed on the final revision |
| Unit tests | stale after the rounding edit |
| Integration | not verified; environment unavailable |
With that feedback available during development, the next step is straightforward: rerun the unit tests against the current revision and try to restore the integration environment.
If the environment remains unavailable, the agent should identify the blocker for a human decision rather than silently claiming completion. The earlier unit-test success was not useless; it simply applied to an older source state. What matters is helping the agent close that gap before the reviewer inherits it.
This changes the purpose of telemetry. A record of command outcomes and source revisions is useful after the fact, but it is more valuable when it supports an intervention in the current workflow.
If an agent repeatedly misses the same acceptance test, perhaps the repository instructions are unclear. If integration environments consistently fail to start, perhaps the developer platform is slowing the work rather than the coding model. If agents validate successfully and then edit again, perhaps the handoff sequence needs a final verification step.
Those are actionable engineering problems, not just audit findings.
The same lesson in a real pull request
In Code Telemetry’s public demonstration repository, PR #11 remains open as a draft by design. It was not merged or released.
In the recorded workflow, the agent implemented cursor pagination, ran the required checks successfully, edited the code again, and pushed without rerunning them.
A historical validation attempt recorded a numerical score of 100 for the previously successful checks but failed the release gate because those tests preceded the final edit and the evidence was therefore stale. That original 100 / stale failure is preserved in GitHub Actions.
After a fresh recorded validation session on the same head commit, with no additional application-code edits, a later validation attempt passed with a score of 100. The successful job log records the validation threshold as met.
No application-code fix was needed for that remediation; what was missing was current validation.
A reviewer who had only seen a green post-push CI run would not have learned that distinction about the agent’s earlier workflow.
The result illustrates why development evidence should be connected to the specific source it exercised. The issue lab records the Git head and clean working-tree status around its required checks so the evaluator can associate the results with the candidate being pushed.
That is implementation detail with an operational payoff: it tells the team exactly what to repeat after a later edit. It also gives engineers a way to improve how agents use Git, tests, and development environments, rather than responding to every disappointing PR by rewriting the prompt.
Make feedback useful across the organization
For a pilot, I would start with one repository and a handful of consequential changes. Choose the required checks, make their outcomes observable, and show the result next to the ordinary GitHub CI checks.
Then study the reasons agents fall short: missing context, incomplete execution, stale results, unstable environments, or tests that don’t exercise the actual task.
The first useful metric is not how many gates you have added. It is how often developers and agents can resolve an identified gap before the code reaches a reviewer.
Other useful signals include repeated requests for validation, time spent repairing test environments, and the number of reviews delayed by missing information. These are measurements to collect during a pilot, not improvements I would claim without a baseline.
An enterprise still needs owners for the rules and a sensible trust boundary for recording results.
The agent should not be free to weaken its own acceptance requirements or manufacture the outcome of a check. A runner or separately controlled evaluator can publish a concise result while retaining the supporting evidence; supply-chain provenance work such as SLSA offers a useful model for thinking about that boundary.
When a check genuinely cannot run, a release owner may approve a bounded exception and retain the reason. Those controls should make the feedback credible, not turn every agent session into a paperwork exercise.
Build confidence before the PR
Passing checks do not establish that a requirement was correct or that the tests covered every important behavior. That is still why we have domain knowledge, independent CI, and code review.
But those limitations are not a reason to ignore the work an agent performs before the PR exists. The better question is how to turn the agent’s tool use, test outcomes, and development context into feedback it can act upon.
I want teams to be able to improve the environment in which their coding agents work, not merely produce a more elaborate record of why a release was approved.
Production engineering became more reliable when we stopped treating the incident report as our main source of visibility and started instrumenting the system while it was running. The same opportunity exists between a prompt and a pull request.
A release evidence contract should not be another document a reviewer has to inspect. It should be a working definition of done that helps the agent arrive with the job actually finished.
Primary references and example repository
- GitHub — REST API endpoints for check runs (head_sha and check-run fields)
- Git — git-status documentation (HEAD, index, working tree and untracked files)
- GitHub — Troubleshooting required status checks (head versus merge, skipped/neutral)
- SLSA v1.2 — Build provenance and builder trust boundary
- CodeTelemetry/grader-issue-lab — public policy and reproducible examples
- CodeTelemetry/grader-issue-lab — public traceability table
- Issue lab PR #11
- PR #11 — original score 100 / stale validation failure
- PR #11 — later score 100 / passing validation
- Previously published company essay — More Confidence, Not More Code Review
About the author
Elliot Gardiner is the founder of Code Telemetry, an observability platform for AI coding workflows. He has approximately 15 years of software engineering experience, including principal engineering roles at Mastercard, JPMorgan Chase, and Kustomer.
His work focuses on the reliability, security, and observability of developer infrastructure and AI-assisted software development. At Code Telemetry, he applies production engineering practices to coding-agent workflows, investigating the tools agents use, the failures they encounter, and the validation evidence that connects a proposed change to the work performed before it was submitted.



