Repository navigation
Name pitestDiff and both markers in the AGENTS.md note - #34
Merged
Merged
Conversation
The AGENTS.md note the README suggests named only `test` and left everything else to the guide. An agent that never printed the guide did not learn that `pitestDiff` exists, that `test` does not run it, or that a line can record a verdict with `// diff-coverage: ignore` or `// mutant: equivalent <id>`. The note now names both commands, both markers, where the id comes from (the brackets after each mutant in the pitestDiff report), and asks for the guide before the first measurement in a task. The syntax stays in the note because the coverage report never names its marker; only the guide does. The guides' marker section is cut to what changes what an agent writes: how the id is numbered, the `//` and `/* */` forms, comma- separated ids, the order next to `// diff-coverage: ignore`, and that a `#n` can come to name another mutant when the line changes. Text the report prints at the point of use goes: the counts line, and what to do with each kind of marker under `Markers to correct:`. So does the rule that a marker in a string literal or in Javadoc prose is not read, since neither form the guide prescribes puts one there. Refs cribro-dev#17 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The
AGENTS.mdnote that README step 3 suggests named onlytest. An agent that did not print the guide never learned thatpitestDiffexists, thattestdoes not run it, or that a line can record a verdict with// diff-coverage: ignore -- <reason>or// mutant: equivalent <id> -- <reason>. The note now names both commands and both markers, says the id is the text in brackets after the mutant in thepitestDiffreport, and asks for the guide before the first measurement in a task. It keeps the marker syntax because the diff coverage report never names its marker; only the guide does.The marker section of both guides is cut to what changes what an agent writes: how
#nis numbered, the//and/* */forms, comma-separated ids, the order next to// diff-coverage: ignore, and that an id can come to name another mutant when the line changes. What the report prints at the point of use is left to the report: the counts line, and what to do with each entry underMarkers to correct:(PitestSurvivors.MARKERS_TO_CORRECT). The rule that a marker in a string literal or Javadoc prose is not read is dropped too; neither prescribed form puts one there, and the report says nothing when one is ignored.Scope. The Maven note writes
mvn, while the guide prints./mvnwin a project with a wrapper; the existingtestline already had that gap.Refs #17
🤖 Generated with Claude Code