Repository navigation
mutants: add mutants for eight all-changes commits - #147
Merged
Merged
Conversation
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
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #145.
Targets
bench-tools.Change
Mutants in
bench/props/mutants-all-changes.jsonfor the eightall-changescommits from the recent performance work. Each one'soldtext occurs exactly once inall-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,arounda set of relations must equal the union ofaroundeach relation, collected in aforeach. This runs the samearoundstatement again with other relations.date around rel = around members: on the history database at each date,arounda relation must equalaroundits 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.mdlists them under "Consistency".Results
mutateworkflow (#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.date out meta(120 differ),diff,adiffarea ways(117 differ),shifted area waysout meta xml/json,out geom ways,out csvdate around rel = around members(175 and 95 differ)foreachcheck: needs data beyond the synthetic sets (below)props.pysets no limit[maxsize:], never a resultWhy 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
aroundcheck caught this mutant (#38). Theforeachcheck stays, since it would catch the bug on spread-out data.Each mutant's
noteandexpect_caughtrecord 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