AI DevelopmentFramework4 min readPublished September 5, 2026

Give a Coding Agent a Bug Report It Can Actually Verify

Give a coding agent reproducible bug evidence: exact steps, expected behavior, safe sample data and a failure it can observe before proposing a fix.

DA
Digital Applied Team
Research and practical implementation
PublishedSeptember 5, 2026
ReviewedSeptember 7, 2026

Give a coding agent the steps that expose the bug and the result that would count as a fix. “The form is broken” invites a guess. “Submit this safe sample from this starting page; an error appears and no confirmation is shown” gives the agent something it can observe before editing code.

The most useful bug report separates observation from diagnosis. You may suspect validation or a network problem, but keep that suspicion outside the reproduction steps. Otherwise the agent can produce a convincing fix for a cause nobody established.

Key takeaways
  1. 01
    Preserve the starting state.The same clicks can behave differently with another account, record or browser state.
  2. 02
    Show expected and observed results.The gap between them defines the task better than a proposed implementation.
  3. 03
    Verify the original complaint.A successful build is useful evidence, but it does not alone prove the reported defect is gone.

01Send a compact reproduction packetSend a compact reproduction packet

A reproduction is a repeatable way to observe the failure. Use the packet below, with safe sample data that preserves the relevant shape. These are recommended reporting fields, not a requirement to collect sensitive customer information.

Digital Applied proposed bug-report packet, reviewed September 7, 2026.
FieldUseful contentWhat to avoid
EnvironmentPage, app revision and relevant browser or deviceA vague claim that it fails everywhere
Starting stateRequired sign-in state and safe sample recordLive credentials or unnecessary personal data
StepsThe shortest ordered actions that still failA diagnosis disguised as an instruction to change code
Expected resultObservable behavior grounded in a requirementA preferred implementation without a user outcome
Observed resultExact error, screenshot or relevant log referenceA screenshot with no action or time context
FrequencyObserved attempts and conditionsAn invented failure percentage
Verification ruleRepeat the original steps and check adjacent behaviorOnly checking whether a file was edited

02Describe one failure without guessing its causeDescribe one failure without guessing its cause

Consider an illustrative contact form. With a valid sample address and a message, selecting Submit displays a spinner that never clears. A useful report states the page, starting state, inputs, action and visible result. It also says whether a confirmation message was expected under the current requirement.

The spinner does not prove the request failed. A diagnostic check might reveal that the submission was saved while the response handler failed. Repeating live submissions could create duplicates, so reproduce with controlled test data and inspect the resulting state.

Attach the smallest relevant evidence. A timestamp helps correlate a log entry; a screenshot shows what was visible. Neither substitutes for the steps. For unknown completion, the tool-error reference provides a useful decision boundary.

03Keep the acceptance behavior observableKeep the acceptance behavior observable

Anthropic’s long-running harness report describes explicit feature lists and browser checks used to address premature completion. The lesson we apply here is to keep the requested behavior observable throughout a coding task.

Its agent-evaluation guide emphasizes well-specified coding tasks, stable test environments and tests of the generated code. A customer report becomes more useful when it provides the inputs for such a task.

04Preserve uncertainty when the bug disappearsPreserve uncertainty when the bug disappears

If the agent cannot reproduce the issue, keep the report open as unreproduced. Record what was tried and under which conditions. Ask for the missing detail that could distinguish the failing case: account state, sample shape, timing or a particular revision.

Do not silently broaden the claim from one report to a universal defect. Conversely, one successful attempt does not refute an intermittent complaint. A useful next step is focused instrumentation or another controlled attempt with the relevant conditions preserved.

Protect the report from speculative edits. A refactor that makes the code look cleaner may be worthwhile for another reason, but it is not evidence that the original defect was fixed. The reviewer evidence guide explains why a second approving opinion does not settle that question.

05Close with evidence tied to the original stepsClose with evidence tied to the original steps

At closure, record the revised code’s result on the original reproduction and any adjacent behavior the change could affect.

If the agent needed to change the acceptance rule because the original expectation was wrong, document that decision and its owner. Do not alter a test merely to make a failing result disappear.

Separate local verification from publication. A tested change still needs the project’s release process. When work moves to another agent or reviewer, use the handoff ownership guide to preserve the remaining responsibility.

06DecisionWhat to do next

Practical decision

Make the reported failure the acceptance test.

Send the agent a reproducible observation, keep the diagnosis provisional and close the report only against the original behavior or an explicitly revised requirement.

For implementation support, explore our AI transformation services.

Build reliable AI workflows

Turn a promising workflow into work you can verify.

Digital Applied helps teams define acceptance checks, connect the right tools and make AI work reviewable.

Clear scopeReviewable resultsPractical implementation
Implementation

From evidence to operation

  • Define the decision and its limits
  • Choose the appropriate tool access
  • Verify results before delivery
Questions and answers

Common questions

Include what happened immediately before it, the relevant environment and the expected result. The screenshot alone may not identify the failing action.