| Filename | Latest commit message | Latest commit date |
|---|---|---|
Soul's attack on tools/eureka-mutations.ps1 found two faults. M0 proved the I/O path by writing the target and comparing hashes, so a broken write path corrupted the target in the act of checking it, and the harness could not put it back because it had only ever read text. And "exactly once" counted non-overlapping matches, so an anchor that overlaps itself, `}\n}\n` in `}\n}\n}\n`, counted as one site and the splice at the first would have changed a region the entry does not describe. The harness now reads every target as bytes and keeps those bytes as the restore source. M0 decodes, re-encodes through the one path every write uses, and compares the result to the original bytes before anything is written; a difference names the target and the first differing offset, writes nothing, and runs no entry. Only then is the target rewritten through the write path and hashed, with the original bytes written back before the throw if the write lands other bytes. After every entry the original bytes are written back and the file is hashed against them; the offset reverse edit is gone, since the bytes it reconstructed were in hand all along. Anchor sites are counted by an IndexOf loop advancing one character per hit, so an overlapping anchor is two and refused. The usage comment records that -Test is split on whitespace with no quoting, so a path with a space cannot be expressed. Soul's attack script, re-targeted at the new Write-Text line: the Set-Content variant, the BOM-encoder variant and the BOM-bearing second target all leave every target byte-identical, the first two stopping at M0 with no entry run; the overlapping anchor throws "matches 2 times". The Cut 6b suite runs green through the fixed harness: M0 green, nine entries killed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
| .. | ||
| eureka-cut5-mutations.psd1 | ||
| eureka-cut6-mutations.psd1 | ||
| eureka-cut6b-mutations.psd1 | ||
| eureka-mutations.ps1 | ||