Repository navigation
chore(agents): own docs are not a test oracle - #2155
Merged
Benoît Cortier (CBenoit) merged 1 commit intoOct 27, 2026
Merged
Conversation
Documentation written with the code, or generated from it, describes what the code does rather than deciding what it must do, so a test whose expected value rests on it detects change, not bugs. The test-oracle-reviewer skill now lists such documentation, including a trait's rustdoc and an OpenAPI file generated from annotations, among self-derived sources, and limits the `reference` kind to another implementation, a capture, or a reference model. A property such as `encode` writing exactly `size()` bytes is an independent source only when an intent, contract, or spec states it. A test citing the code's own documentation is re-cited to the sentence that decides its value, kept as `mutant` when it alone catches a fault, or deleted, and test-pruner records it as self-derived so the pass flags it for removal. Changelog: ignore Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Lines changed (added/removed):
Note Human-tuned, LLM-assisted content. |
Benoît Cortier (CBenoit)
deleted the
chore/oracle-own-docs-not-reference
branch
October 27, 2026 11:38
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.
Documentation written with the code, or generated from it, describes what the code does rather than deciding what it must do, so a test whose expected value rests on it detects change, not bugs. The test-oracle-reviewer skill now lists such documentation, including a trait's rustdoc and an OpenAPI file generated from annotations, among self-derived sources, and limits the
referencekind to another implementation, a capture, or a reference model.A property such as
encodewriting exactlysize()bytes is an independent source only when an intent, contract, or spec states it. A test citing the code's own documentation is re-cited to the sentence that decides its value, kept asmutantwhen it alone catches a fault, or deleted, and test-pruner records it as self-derived so the pass flags it for removal.Changelog: ignore
🤖 Generated with Claude Code