Skip to content

Name pitestDiff and both markers in the AGENTS.md note - #34

Merged
vlsi merged 1 commit into
cribro-dev:mainfrom
vlsi:claude/pr31-agents-docs-9e8451
Dec 1, 2026
Merged

vlsi merged 1 commit into
cribro-dev:mainfrom
vlsi:claude/pr31-agents-docs-9e8451

Conversation

@vlsi

@vlsi vlsi commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

The AGENTS.md note that README step 3 suggests named only test. An agent that did not print the guide never learned that pitestDiff exists, that test does 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 the pitestDiff report, 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 #n is 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 under Markers 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 ./mvnw in a project with a wrapper; the existing test line already had that gap.

Refs #17

🤖 Generated with Claude Code

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>
@vlsi
vlsi merged commit 371dd0c into cribro-dev:main Dec 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant