Skip to content

Mutants for the memory commits on all-changes - #153

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

cldellow merged 3 commits into
bench-toolsfrom
mutants-memory

Conversation

@cldellow

Copy link
Copy Markdown
Owner

Part of #145: the memory commits' half. #147 adds the performance commits' mutants.

Change

bench/props/mutants-all-changes.json gets one mutant for each of nine all-changes commits from the memory work. Each old text occurs exactly once in all-changes at 686a701.

Commit Change PR Mutant Expected Result
1b30bbb bbox query: collect and filter nodes in chunks at a past date #104 the chunk loop drops each chunk's attic nodes yes caught: adiff, date bbox nodes, date out meta
3f7cfa8 bbox query: count the accumulated result in the chunk loop's size checks #104 the chunk loop stops counting the result built so far no not caught
180c620 Collect_Items: count elements, not only indexes, in way and relation history collection #87 way history collection counts indexes only again no not caught
7d39a64 print: reserve the id-sorted element references exactly #121 the reservation counts only the last index's elements no not caught
0ec8fa9 Filter bbox and past-date results in place, without vector slack #130 the in-place bbox filter advances its output only after a move yes caught: 18 checks, among them bbox nodes, bbox + tag, adiff, diff, union, difference, out csv
1ef6664 Tag_Store: generate the id list once, and keep only a chunk's attic tags #128 the attic prefetch_chunk keeps earlier chunks' tags no not caught
7b11467 Tag_Store: keep only a chunk's ids when printing in chunks #140 a chunk's id list leaves out its first id yes caught: 10 checks, among them out center, out csv, out geom ways and rels, out meta json and xml
f7274dc print: reference id-sorted elements in 8 bytes #150 past-date output treats current elements as attic and the reverse yes caught: date out geom ways, date out meta
686a701 print: look up current and attic references the same way #150 attic elements are stepped through with the size of a current element yes caught: 17 checks, among them date bbox nodes, date rel >, date uid, uid_touched

The four that aren't caught are expected, and their notes say why:

  • 7d39a64 and 1ef6664 are memory-only. Their mutants can't change any result.
  • 180c620 and 3f7cfa8 change only when a size check runs. A result can differ only for a query over [maxsize:].

1b30bbb and 7b11467 were first marked "maybe" and were caught. The second commit raises them to "yes".

Testing

The mutate workflow, run 45106469415: only set to the nine commits, ref 686a701, tools_ref this branch (at its first commit), seeds 1–40. The table above is its per-commit summary.


Generated by Claude Code

One mutant for each of nine all-changes commits from the memory work:
the past-date bbox chunking and its size check (#104), element counting
in history collection (#87), the reserved and the 8-byte output
references (#121, #150), in-place filtering (#130) and the Tag_Store
changes (#128, #140). Four are equivalent for results or need a query
over [maxsize:], and say so in their notes. Each old text occurs once
in all-changes at 686a701.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJTiuJPoCWZs7RtFYjm
The mutate workflow (run 45106469415, all-changes at 686a701, seeds
1-40) caught the past-date bbox chunking mutant (1b30bbb) and the
per-chunk id list mutant (7b11467), which were marked "maybe".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01736kJTiuJPoCWZs7RtFYjm
# Conflicts:
#	bench/props/mutants-all-changes.json
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