---
title: "When AI Writes the Code, What Counts as Evidence?"
description: "Coding agents increasingly investigate and fix failures in private sessions, delivering patches while discarding the reasoning, failed attempts and environmental context that teams used to preserve as shared troubleshooting knowledge."
url: "https://swe.quest/articles/when-ai-writes-the-code-what-counts-as-evidence-b44b970cb226fefb"
canonical: "https://stackoverflow.blog/2026/11/25/when-ai-writes-the-code-what-counts-as-evidence/"
source: "Stack Overflow Blog"
published: "2026-11-25"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 7
tags: ["ai-coding","ai-agents","documentation","testing","developer-productivity"]
---

# When AI Writes the Code, What Counts as Evidence?

A post on [Stack Overflow Blog](https://swe.quest/sources/stack-overflow.md), published 2026-11-25, 7 min read, Opinion. Original: [https://stackoverflow.blog/2026/11/25/when-ai-writes-the-code-what-counts-as-evidence/](https://stackoverflow.blog/2026/11/25/when-ai-writes-the-code-what-counts-as-evidence/)

## Summary

Coding agents increasingly investigate and fix failures in private sessions, delivering patches while discarding the reasoning, failed attempts and environmental context that teams used to preserve as shared troubleshooting knowledge. A staged example shows an authorization acceptance test catching a case that lint, unit and integration checks missed: raising KeyError for unknown order IDs leaked existence, and the fix maps it to AccessDenied. The proposed direction is to capture failure facts and execution traces from agent sessions, search existing authorized knowledge before drafting sanitized questions, and keep human review to separate plausible guesses from verified fixes. Success should be measured by whether later agents and engineers resolve recurring failures faster, not by how many questions or answers get generated.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Documentation](https://swe.quest/tags/documentation.md) (Engineering practices)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- automated testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

Stack Overflow, Stack Overflow Developer Survey 2026, grader-issue-lab

## Related posts

- [Why coding agents fail in large codebases (and what to do about it)](https://swe.quest/articles/why-coding-agents-fail-in-large-codebases-and-what-to-do-about-it-67302cc99ae40bda.md): Sourcegraph · 2026-05-08 · Medium · 8 min read · AI for coding, AI agents, Search, Evaluation, RAG & retrieval
  Across 1,281 scored agent runs on 40+ large open-source repos (CodeScaleBench), coding agents fail in five repeatable ways: getting lost in exploration, picking the wrong file or symbol, partial completion, tool thrashing, and context overflow.
- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Replaying merged changes: how we test whether a knowledge base makes coding agents better](https://swe.quest/articles/replaying-merged-changes-how-we-test-whether-a-knowledge-base-makes-coding-76795194d6a248c9.md): Grab Engineering · 2026-11-23 · Medium · 12 min read · AI for coding, Evaluation, AI agents, LLMs
  Grab evaluates its per-service knowledge base for coding agents by replaying merged MRs: rewind to the pre-merge commit, scrub the request of solution hints, have two otherwise identical agents plan the change with and without the knowledge base, and have an LLM grader score each plan against the merged diff on an 8-point rubric.
- [Your AI agent fixed the bug, but what else did it change?](https://swe.quest/articles/your-ai-agent-fixed-the-bug-but-what-else-did-it-change-4b4967c8420473e1.md): Trail of Bits · 2026-10-21 · Medium · 8 min read · AI agents, AI for coding, Security, Testing, Open source
  Trail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
