1 minor finding · 2 suggestions
Findings
[minor] · The example's hunk counts make the mutant diff malformed
Source inspection shows that the example declares seven lines per side but supplies only five, so ordinary git apply would reject the displayed mutant diff as corrupt.
Location: doc/developer-notes.md:707 (head).
Details and suggested fix
The header @@ -459,7 +459,7 @@ counts seven old and seven new lines, but the body contains four context lines and one changed line per side. The body otherwise matches src/script/interpreter.cpp, starting at line 460 rather than 459. This prevents reviewers from copying and applying the example as the following paragraph describes. Change the header to @@ -460,5 +460,5 @@ to match the displayed body.
Optional improvements
[suggestion] · The MutantHub prerequisite leaves submission and fallback unclear
The submit-before-writing instruction reads as a prerequisite, but the guidance neither distinguishes a requirement from a recommendation nor explains submission or how to proceed when MutantHub cannot be used.
Location: doc/developer-notes.md:721 (head).
Details and suggested fix
The development guidelines introduce themselves as recommendations, while CONTRIBUTING.md says the developer-notes coding conventions must be followed. Against that background, “Before writing a test” followed by “submit it” can reasonably read as requiring an external-service step before test development. Keeping the inline diff protects reproduction but does not explain whether contributors may proceed without registration. State whether registration is required or recommended. If required, document the submission path and a fallback when the service cannot be used; otherwise, make the step explicitly optional while retaining the inline diff.
[suggestion] · The duplicate-work check stops at whether a mutant is listed
The documented check establishes only that an entry exists, not whether a PR already targets it or current master kills it; MutantHub's status and linked-PR features were not inspected.
Location: doc/developer-notes.md:720 (head).
Details and suggested fix
Two contributors can both follow the listed-or-submit procedure and then write tests for the same recorded mutant. Including its URL makes duplicate PRs searchable, but the instructions never ask contributors to use that information before starting. Add a check for open or recently merged PRs targeting the mutant and confirm that it still survives on current master. If MutantHub exposes linked PRs and kill status, point contributors to those fields rather than merely asking whether the entry exists.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
There is concrete precedent for supplying a MutantHub link alongside a complete mutant diff. PR #36438 describes the test behavior, links mutant 3746, and embeds the exact deletion that the test is intended to detect.
This demonstrates the combined link-and-diff presentation proposed by the documentation. It documents an existing contribution practice, but does not state why registration must be mandatory or establish an agreement that all contributors must use the service.