Repository navigation
Require red/green proof before claiming a bug fix is verified - #68457
Merged
PureWeen merged 2 commits intoAug 14, 2026
Merged
Conversation
Adds two bullets to the "Running tests" section of the repo-wide Copilot pre-prompt so an agent cannot describe a bug fix as verified without actually observing the failure it claims to have fixed. Follows the convention established by dotnet#62046 and dotnet#62129 of making small, targeted additions in reaction to observed agent behavior. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repository-wide Copilot instructions to require stronger evidence before an agent claims a bug fix is “verified,” improving the quality and credibility of verification statements in PRs.
Changes:
- Adds guidance to require red/green proof (fail without fix, pass with fix) before claiming a bug fix is verified.
- Adds an explicit escape hatch requiring agents to state what they verified when red/green isn’t practical.
Show a summary per file
| File | Description |
|---|---|
| .github/copilot-instructions.md | Adds red/green verification requirements and an explicit exception/clarification to prevent unfounded “verified” claims. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two bullets to the
## Running testssection of.github/copilot-instructions.md.Problem
The repo-wide pre-prompt currently says nothing about what counts as proof that a bug is actually fixed. The common failure mode is an agent that reads the source, reasons that the change looks correct, adds a test that passes on the first run, and then reports the fix as "verified." A test that was never observed failing proves nothing about the bug — it may assert on the wrong thing, exercise a path that never regressed, or pass identically before and after the change. That produces confident but unfounded verification claims in PRs, which reviewers then have to catch by hand.
Change
Notes on the wording:
CONTRIBUTING.mdthat "if there is a scenario that is far too hard to test there does not need to be a test for it."Why here
Follows the convention established by #62046 and #62129, both of which made small, targeted additions to this file in reaction to observed agent behavior. Placed in
## Running testsbecause the rule is about executing tests and the standard of evidence drawn from them, rather than test-authoring style (### Testing, which is nested under## Formattingand holds only conventions like xUnit/Moq/naming).This is not duplicative of
src/Components/AGENTS.md. That guidance applies only tosrc/Components/**and asks for interactive browser reproduction in a sample app before starting a fix; this is repo-wide and concerns the evidence required before claiming the fix works.Markdown-only change.