Skip to content

mutants: add mutants for eight all-changes commits - #147

Merged
cldellow merged 3 commits into
bench-toolsfrom
mutants-perf-commits
Nov 23, 2026
Merged

cldellow merged 3 commits into
bench-toolsfrom
mutants-perf-commits

Conversation

@cldellow

@cldellow cldellow commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Part of #145.

Targets bench-tools.

Change

  • Mutants in bench/props/mutants-all-changes.json for the eight all-changes commits from the recent performance work. Each one's old text occurs exactly once in all-changes (checked at 686a701).

  • Two consistency checks in props.py, added because the first run missed the around: take candidate ranges for relation inputs from their members #38 mutants:

    • foreach around rel = around rels: on current data, around a set of relations must equal the union of around each relation, collected in a foreach. This runs the same around statement again with other relations.
    • date around rel = around members: on the history database at each date, around a relation must equal around its direct member nodes and ways. It prefers relations edited after the date, so the relation used is an old version.

    Both pass on all-changes and on upstream/master, 6 seeds with history, with no failures and no output differences. bench/README.md lists them under "Consistency".

Results

mutate workflow (#146), 40 seeds with history, against upstream/master at the merge base: run 45105163523 for all eight, then run 45107388498 for the two #38 mutants with the new checks.

Commit PR Mutant Result
7b7d798 #126 placeholder tags are never removed caught: date out meta (120 differ), diff, adiff
9945057 #136 area queries split each way into segments without its last vertex caught: area ways (117 differ), shifted area ways
e643105 #138 the tag lookup cursor never starts over caught: 12 output checks, including out meta xml/json, out geom ways, out csv
634d377 #38 (second commit) relations at a past date lose their way members' candidate ranges not caught at first; caught by the new date around rel = around members (175 and 95 differ)
5df9912 #38 (third commit) the cached member ranges are kept when the input relations change not caught, also with the new foreach check: needs data beyond the synthetic sets (below)
2273b99 #8 (second commit) the work-weighted time-limit check never runs not caught, as expected: it only decides when a query out of time stops, and props.py sets no limit
358e322 #117 the end iterators are passed by value again not caught, as expected: equivalent, since the commit adds no logic
4033566 #122 the running size counts only indexes, not objects not caught, as expected: it changes only chunk boundaries and [maxsize:], never a result

Why 5df9912 can't be caught here: the cached ranges only narrow the candidates. They're whole index tiles, widened by the radius, and the exact distance test still uses the right relation. The synthetic data spans so few tiles that the first relation's ranges already cover the others, so stale ranges return the same result. On the Nova Scotia history database, where relations lie far apart, the targeted around check caught this mutant (#38). The foreach check stays, since it would catch the bug on spread-out data.

Each mutant's note and expect_caught record these results.

Merging

Please squash-merge. The last commit's message carries a wrong session link, and squashing replaces it.

https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT


Generated by Claude Code

For #8's weighted time-limit check, #38's two follow-ups (past-date member
ranges, member-range cache), #117 (end iterators by reference), #122 (running
size at past dates), #126 (placeholder tag cleanup), #136 (way geometry once)
and #138 (tag lookup cursor). Each note says what the mutant breaks; the
expect_caught field gives the expected result, with the reason where a mutant
can't change props.py's results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
The mutants for 5df9912 (around's member-range cache) and 634d377 (member
ranges for relations at a past date) weren't caught: no check ran an around
statement again with other relations, or around with relation input at a past
date. Two consistency checks cover them:

- around a set of relations = the union of around each one, collected in a
  foreach (current data);
- at each history date, around a relation = around its direct member nodes and
  ways, preferring relations edited after the date.

On 6 seeds both pass on all-changes and on upstream master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJWpJaGbt8ML6jz9N35
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.

2 participants