Mutation claims in PROSE are outside testing.mutation-claims-are-executed — 4 false ones in #812, each caught by a separate review round
#881
Closed
opened 2026-08-29 21:21:06 +02:00 by timothy
·
3 comments
No Branch/Tag Specified
main
renovate/meziantou.analyzer-3.x
renovate/dotnet-monorepo
renovate/lucene.net
renovate/sqlitepclraw.bundle_e_sqlite3-3.x
renovate/cliwrap-3.x
913-scripted-playout-401
release/v26.15.0-notes
issue-806-guard-populations
scratch/767b-poisoned
scratch/767b-control
release/v26.14.0-notes
release/v26.14.0
docs/510-skill-logo-bug-policy
fix/510-watermark-resolution-policy
fix/629-verdict-classifier-falseopens
fix/609-decisions-edit-token-scope
issue-135-clear-to-none
release/v26.12.0-notes
fix/409b-lastscan-api-parity
fix/401-updatechannel-mirror-422
fix/327-playlist-rename-validation
fix/410-scancancel-log-level
fix/409-447-librariesscreen-neverscanned
fix/338-zap-exit-code
fix/367-plex-budget-message
fix/310-debom-legacy-cs
ci/604-lane-rebalance
feat/388-design-mirror
feat/247-test-ownership
feat/247-primary-action
feat/357-player-owned-playback
feat/357-jellyfin-plugin-poc
fix/289-mcp-hardening
issue58-mcp
feat/244-channels-extract
ci/auto-bump-prod-compose
feat/multi-rerun-collections-api
feat/collections-api
feat/quick-wins
feat/185-docs-part2
feat/140-collections-screen
feat/146-channel-edit
feat/147-classic-ui-link
issue22-renovate-dashboard
feat/91-cutover
feat/63-composite-create
feat/65-library-browse
feat/85-epg
feat/86-schedule-editor
feat/109-dashboard-data
feat/99-session-tracking
fix/dockerfile-node-tag
feat/59-spa-foundation
docs/59-ui-redesign-brief
feat/102-json-guide
feat/111-schedule-durations
feat/104-artwork-upload
feat/103-media-sources-api
feat/playouts-read-api
feat/108-health-api
feat/105-picker-list-endpoints
issue-97-channel-state-api
issue42-jellyfin-musicvideos
issue46-rest-api-error-contract
dependabot/nuget/ErsatzTV.FFmpeg.Tests/multi-d307a2e06f
qsv-improvements
hdr-vulkan-cuda-test
v26.16.0
v26.15.0
v26.14.0
v26.13.0
v26.12.0
v26.11.0
v26.10.0
v26.9.0
v26.8.0
v26.7.0
blazor-final
v26.6.0
v26.5.0
v26.4.0
v26.3.1
v26.3.0
v26.2.0
v26.1.1
v26.1.0
v25.9.0
v25.8.0
v25.7.1
v25.7.0
v25.6.0
v25.5.0
v25.4.0
v25.3.1
v25.3.0
v25.2.0
v25.1.0
v0.8.8-beta
v0.8.7-beta
v0.8.6-beta
v0.8.5-beta
v0.8.4-beta
v0.8.3-beta
v0.8.2-beta
v0.8.1-beta
v0.8.0-beta
v0.7.9-beta
v0.7.8-beta
v0.7.7-beta
v0.7.6-beta
v0.7.5-beta
v0.7.4-beta
v0.7.3-beta
v0.7.2-beta
v0.7.1-beta
v0.7.0-beta
v0.6.9-beta
v0.6.8-beta
v0.6.7-beta
v0.6.6-beta
v0.6.5-beta
v0.6.4-beta
v0.6.3-beta
v0.6.2-beta
v0.6.1-beta
v0.6.0-beta
v0.5.8-beta
v0.5.7-beta
v0.5.6-beta
v0.5.5-beta
v0.5.4-beta
v0.5.3-beta
v0.5.2-beta
v0.5.1-beta
v0.5.0-beta
v0.4.5-alpha
v0.4.4-alpha
v0.4.3-alpha
v0.4.2-alpha
v0.4.1-alpha
v0.4.0-alpha
v0.3.8-alpha
v0.3.7-alpha
develop
v0.3.6-alpha
v0.3.5-alpha
v0.3.4-alpha
v0.3.3-alpha
v0.3.2-alpha
v0.3.1-alpha
v0.3.0-alpha
v0.2.5-alpha
v0.2.4-alpha
v0.2.3-alpha
v0.2.2-alpha
v0.2.1-alpha
v0.2.0-alpha
v0.1.5-alpha
v0.1.4-alpha
v0.1.3-alpha
v0.1.2-alpha
v0.1.1-alpha
v0.1.0-alpha
v0.0.62-alpha
v0.0.61-alpha
v0.0.60-alpha
v0.0.59-alpha
v0.0.58-alpha
v0.0.57-alpha
v0.0.56-alpha
v0.0.55-alpha
v0.0.54-alpha
v0.0.53-alpha
v0.0.52-alpha
v0.0.51-alpha
v0.0.50-alpha
v0.0.49-prealpha
v0.0.48-prealpha
v0.0.47-prealpha
v0.0.46-prealpha
v0.0.45-prealpha
v0.0.44-prealpha
v0.0.43-prealpha
v0.0.42-prealpha
v0.0.41-prealpha
v0.0.40-prealpha
v0.0.39-prealpha
v0.0.38-prealpha
v0.0.37-prealpha
v0.0.36-prealpha
v0.0.35-prealpha
v0.0.34-prealpha
v0.0.33-prealpha
v0.0.32-prealpha
v0.0.31-prealpha
v0.0.30-prealpha
v0.0.29-prealpha
v0.0.28-prealpha
v0.0.27-prealpha
v0.0.26-prealpha
v0.0.25-prealpha
v0.0.24-prealpha
v0.0.23-prealpha
v0.0.22-prealpha
v0.0.21-prealpha
v0.0.20-prealpha
v0.0.19-prealpha
v0.0.18-prealpha
v0.0.17-prealpha
v0.0.16-prealpha
v0.0.15-prealpha
v0.0.14-prealpha
v0.0.13-prealpha
v0.0.12-prealpha
v0.0.11-prealpha
v0.0.10-prealpha
v0.0.9-prealpha
v0.0.8-prealpha
v0.0.7-prealpha
v0.0.6-prealpha
v0.0.5-prealpha
v0.0.4-prealpha
v0.0.3-prealpha
v0.0.2-prealpha
v0.0.1-prealpha
Labels
Clear labels
ad-hoc
api
bug
ci-cd
content
dependencies
enhancement
frontend
in-progress
jellyfin
parked
priority: high
priority: low
priority: medium
review
security
One-off / ad-hoc work not tracked by a dedicated issue
REST API / HTTP endpoints
Something isn't working
Build, test, deploy pipeline
Channel content / schedules / playlists
Dependency updates (Renovate)
New feature or improvement
ChicoryTV React SPA frontend
Claimed by an active session — do not pick up
Jellyfin tuner / IPTV integration
Excluded from automatic queue pickup; work only when explicitly selected
Adversarial review finding
Security / vulnerability fix
No labels
priority: medium
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: timothy/ersatztv#881
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Spawned by #812, where the documentation half was clean from review round 5 onward (two independent rounds traced every deleted line and found no loss) but four consecutive rounds each found one defect in the same narrow place: prose asserting what a proof establishes. Every fix round introduced the next one.
The four, and what each drifted from
count("/") <= 3cap alters no real path's verdict; only the synthetic arm catches it. A comment 32 lines below in the same function said so.the script comment's "written once and never revised"git grepfound it in exactly one place: the record line asserting it.path.split("/", 2)[1]— the second. The quoted fragment also omitted thepath.count("/") > 1guard that makes the claim true; without it the expression fails 25 of 38 tests.Not four unrelated slips. One shape: a prose assertion about a verifiable referent, with nothing binding the prose to the referent.
The mechanism already exists — its population is too narrow
testing.mutation-claims-are-executedis exactly the right rule:But
mutation_manifest.py's own docstring scopes it: "one perMUTATION-graded row ofdocs/guard-inventory.md". So a mutation claim written in a test docstring, a decision record, or a commit message is outside it by construction — and that is where all four of #812's defects lived.This is the #773 shape: a rule established where it was first noticed and never extended to its class. Which is the same shape #812 itself was remediating, and the same shape as #784 and #743. Worth stating plainly because the rule that would have prevented these was already written, already good, and simply not reachable from where the claims were being made.
Why the existing advice did not prevent it
"Verify claims about other files before asserting" is already recorded (#609), and it did not fire — because advice fires when you remember it, and these were all written while answering a review finding, which is the moment of least slack.
docs.no-session-narrativenames that mechanism itself:The rule predicted the defects in the commentary about applying the rule. So the fix has to be mechanical, not exhortative.
Proposed — to be argued, not assumed
<=3cap is caught only by the synthetic arm" should have been a parametrized case; prose would then point at the manifest and could not go stale.process.consistency-fix-new-code-scrutiny, which already says this for code fixes.The carve-out, stated so this does not get over-applied
Over-application is the likelier failure, exactly as in
docs.no-session-narrative. Not every sentence near a test becomes a manifest entry. The trigger is narrow: a claim that a specific mutation produces a specific outcome, which is checkable and therefore must be checked. "This arm exists because the corpus cannot see rules it has no instance of" is rationale and stays prose — it is the why behind a non-obvious choice, which the carve-out protects.Note also the manifest's own doctrine, which any implementation must not violate: "no count is kept here, because a count of the entries below is a second copy of them." Do not add a count of prose claims either.
Done-when
testing.mutation-claims-are-executedis extended in place or a sibling record is added, with the choice argued — extending in place is the #773-shaped fix, adding a sibling is what created the gapClaiming #881. Branch
881-mutation-claim-prose-scope, worktree/Users/timothy/orca/workspaces/ersatztv/wt-881. Four-way check clean at claim time: no open PR references #881,git ls-remote --heads origin '*881*'empty, no prior comments on the issue.Implementation complete on
881-mutation-claim-prose-scope(head252830594), local gate green, not pushed — awaiting adversarial review of the worktree at/Users/timothy/orca/workspaces/ersatztv/wt-881.Done-when 1 — population, derived from source. Not the issue's four. A mechanical over-approximation (a mutation verb within 80 chars of an outcome word, over tracked
scripts/,.claude/,.gitea/,docs/decisions/,web/src/, fixtures excluded) returns 128 lines across 65 files atefadbec29, against the 27MUTATION-graded rows the rule reached. 47 of the 128 carry the NEGATIVE direction ("left the suite green", "reddens nothing"), which noMUTATIONrow can express — so the rule was literally unsatisfiable for them. 128 is a CANDIDATE count, not a population: no predicate separates machinery prose from real claims, which is the argument for declaring the referent rather than detecting it.Done-when 2 — extended IN PLACE, argued. A sibling record recreates the exact defect this issue is about: a rule per site class, with the next site class outside both (#773/#784/#743). The subject is unchanged — a mutation-outcome claim is executed or not written — only the population widens, and a reader resolving the key must not need a second key. Counter-argument considered and rejected: the record is far past the 60-line ceiling, but that is formatting pressure, and answering it by forking a key buys a shorter file with a wider hole.
Done-when 3.
CLAIMSentry carries the trackedsiteand the verbatimquote, checked exactly-once every run, so a reworded sentence reports as a RETARGET. The general form (any quotation anywhere) is rejected with the same reason the harness refuses to infer clauses: a quotation whose referent is unnamed has nothing to resolve.the last edit to,the only X that,as of today, …) matched 16 lines across the scanned corpus on 2026-09-04 and every one was legitimate rationale prose (0/16 true positives), 5 of them in the wholesale-exemptdocs/decisions/. A detector that is pure false positives is what makes an advisory check stop being read. Kept as a phrasing rule underdocs.no-session-narrative; inside this rule's own population the anchor is the manifest entry, which re-executes.The mechanism falsified a shipped claim on its first run.
scripts/post-review-verdict.shasserted that disarming its array-TYPE read-back test left the suite green. It does not: jq refuses to iterate anull.statuses, the script dies with the parse message, andtest_a_readback_whose_statuses_array_is_NULL_is_refusedreddens. Comment corrected, entry gradedRED. Three further claims written by this change were falsified by this change and fixed in the second commit (anis_filecontradiction, a quotation of the docstring the same commit rewrote, and aPOPULATION_EXEMPTdocstring that counted its own entries).Gate (rebased onto
92db6dc81and re-run there):scripts/testsin four chunks — 792 + 491 + 295 passed, 3 skipped, 0 failed.ruff check scripts/clean,ruff format --checkclean on all touched files.decisions-validate: OKwith the catalog regenerated.check-doc-narrative.py --diff origin/main— 7 files scanned, 0 warnings. No.cs, no SPA, no write path or screen touched, so the .NET/web/live-E2E legs do not apply.For the reviewer, two things I could not do from here.
docs/README.mdis owned by a parallel slot; its guard row's parenthetical ("aMUTATIONgrade carries a DECLARED clause mutation that is re-run every suite") is still true but no longer the whole rule, and wants a clause aboutCLAIMS. And the seed set is three entries, not the 128 candidates — the sweep is deliberately not done, because each existing claim needs a judgement about whether it is still executable and a bulk declaration would manufacture the unverified coverage the rule refuses.Closing record
Outcome: PR http://192.168.1.95:3000/timothy/ersatztv/pulls/914 (
881-mutation-claim-prose-scope, head0f8e73ab0) — not merged, not closing this issue from here. Extendstesting.mutation-claims-are-executedin place to cover prose mutation-outcome claims wherever written (docstring, comment, decision record), via a newCLAIMStuple inscripts/tests/mutation_manifest.pywith a per-entrysite/quote/outcomeand a three-gate GREEN-direction check (exit status, vacuity, and — after round 3 found the gate was missing — relevance: a required second mutation proving the named proof reaches the mutated clause).Root cause:
testing.mutation-claims-are-executedwas written scoped todocs/guard-inventory.md'sMUTATIONrows only. #812's four consecutive review-round defects were the same shape one level up (an unbound prose claim about a mutation's outcome) but outside that population by construction — the #773 shape: a rule fixed where first noticed, not extended to its class.Decisions/conventions changed:
docs/decisions/records/testing/mutation-claims-are-executed.mdextended in place (not a sibling record — that would recreate the same per-site-class gap). Catalog regenerated (no other record touched).Reusable knowledge: A GREEN mutation claim (asserting a mutation is not noticed) cannot be verified by exit-status + a passing test alone — a proof that never touches the mutated file produces exactly that signature. Round 3 of review demonstrated this directly by retargeting a shipped GREEN entry's proof to an unrelated test file and showing it still passed; the fix is a required relevance gate (a second, declared mutation of the same clause that must redden the same proof).
Verification: Finisher local gate —
PYTHONPATH=. python3 -m pytest scripts/tests -q: 1580 passed, 3 skipped, 875.33s.ruff checkon all touched.py: clean.scripts/decisions_validate.py: OK. Catalog regeneration: no diff.check-doc-narrative.py --diff origin/main: 0 advisory warnings. No.cs/web/files touched, so .NET/SPA gates don't apply. Gitea CI armed on head0f8e73ab0(read once to start the monitor; 14 checks pending at read time).Deferred: None new from this issue.
docs/README.md's task-signal parenthetical for this key now mentions theCLAIMSpopulation — the earlier deferral was slot-ownership against #907, which merged.Docs updated:
docs/decisions/records/testing/mutation-claims-are-executed.md(extended),docs/decisions/README.md(catalog regenerated),docs/README.md(task-signal row parenthetical),docs/guard-inventory.md(referenced, unchanged in population).Done-when evidence (orchestrator ticks from this; none ticked here):
efadbec29, 47/128 unsatisfiable-direction, against 27 existingMUTATIONrows.scripts/tests/mutation_manifest.pyCLAIMStuple (site/quotefields), record's "A QUOTATION of another file…" sentence.efadbec29for round 2 (58 lines, invariant restated per round-3 should-fix).mutation_harness_lib.pyverify_claim's third gate (GREEN_RELEVANCE), commitsf34828806/0f8e73ab0, cost re-measured 2026-09-05 (+31.7–43.6%).PYTHONPATH=. python3 -m pytest scripts/tests -qoutput above,ruff/decisions-validate/catalog/narrative checks above.