Skip to content

CLAUDE.md: confirm a mutant misbehaves before trusting a clean result - #22

Merged
cldellow merged 1 commit into
masterfrom
claude-md-mutant
Nov 21, 2026
Merged

cldellow merged 1 commit into
masterfrom
claude-md-mutant

Conversation

@cldellow

Copy link
Copy Markdown
Owner

Change

Adds one sentence to the mutation-test rule in CLAUDE.md: before trusting a clean mutation result, confirm that the mutant differs from the change on at least one query.

Why

A mutation test is only meaningful if the mutant really contains its deliberate bug. While testing #21, the first mutant was built from the branch before the change was committed, so the patch that should have broken it had nothing to apply to. The mutant was effectively master, and it reported 0 differences, which looks just like a passing test. Rebuilt from the committed change, the same mutant differed on 50 of 600 queries.

Documentation only.


Generated by Claude Code

A mutant that silently lacks its deliberate bug (here, one built from a
branch before the change was committed) gives a clean result that looks
like a passing test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
@cldellow cldellow added the query-perf Query performance change; collected on all-changes label Nov 21, 2026 — with Claude
@cldellow
cldellow merged commit b989b97 into master Nov 21, 2026
@cldellow cldellow added the docs Documentation only, e.g. CLAUDE.md label Nov 21, 2026 — with Claude
@cldellow cldellow removed the query-perf Query performance change; collected on all-changes label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation only, e.g. CLAUDE.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants