test(mutants): X2 -- a rejected document the bundle holds (H2, red)
PM wrote this mutant outside the tree 2026-09-18 and it survived 155 green tests. Reproduced here on the mutant as committed: `98 passed`, rc 0, the pattern applied exactly once. `_document_unit` refuses a report that declares a document `rejected` while a concept in the bundle names it -- one of the six refusals B-1 introduced, and the only one no test drives from either side. The check works; nothing stops the next refactor removing it. With H4 in place the harness now exits 1 on this survivor, so the red is the harness's own verdict and not a line in its output. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
f5b263f5ef
commit
a59898ee8f
1 changed files with 9 additions and 0 deletions
|
|
@ -265,6 +265,15 @@ MUTANTS: tuple[Mutant, ...] = (
|
||||||
" role = _sts_role_json(tag, parent, grandparent)",
|
" role = _sts_role_json(tag, parent, grandparent)",
|
||||||
" role = _sts_role_xml(tag, parent, grandparent)",
|
" role = _sts_role_xml(tag, parent, grandparent)",
|
||||||
),
|
),
|
||||||
|
# PM's own mutant, written outside this file 2026-09-18 and SURVIVING 155
|
||||||
|
# green tests (H2). B-1 gave the judge six refusals; this was the one
|
||||||
|
# nothing held from either side.
|
||||||
|
Mutant(
|
||||||
|
"X2 a report may declare a document rejected while the bundle holds it",
|
||||||
|
GATE,
|
||||||
|
' if status == "rejected" and persisted:\n invalid += 1',
|
||||||
|
' if False:\n invalid += 1',
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue