cultcache-ts: tests pin the single-put judge's alias and key-pair order #108

Merged
libby merged 2 commits from ts-put-judge-pins into main 2026-11-11 13:56:36 +00:00
Member

Closes variants:follow_up:ts-put-judge-order-pins.

TS's single-put judge (#refuseIndexSharing, indexSharingRefusal) is reached by no TS-walkable pair-order vector row, so two mutants survived. Two tests in packages/cultcache-ts/test/unique-index.test.ts now kill both:

  • aliases U+FF21 / U+10400 colliding on one put: the alias least by UTF-16 code unit (U+10400) is named, not the least by code point;
  • held key U+00EA, put key e U+0302 (its NFD form): the pair is ordered by code unit, not by normalised form.

Both mutants applied locally fail exactly their test. Test-only change; vectors rows 1-37 and the other runtimes are untouched.

🤖 Generated with Claude Code

Closes variants:follow_up:ts-put-judge-order-pins. TS's single-put judge (`#refuseIndexSharing`, `indexSharingRefusal`) is reached by no TS-walkable pair-order vector row, so two mutants survived. Two tests in `packages/cultcache-ts/test/unique-index.test.ts` now kill both: - aliases `U+FF21` / `U+10400` colliding on one put: the alias least by UTF-16 code unit (`U+10400`) is named, not the least by code point; - held key `U+00EA`, put key `e U+0302` (its NFD form): the pair is ordered by code unit, not by normalised form. Both mutants applied locally fail exactly their test. Test-only change; vectors rows 1-37 and the other runtimes are untouched. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cultcache-ts: tests pin the single-put judge's alias and key-pair order (kills the code-point and NFD mutants)
Some checks failed
CultMesh QUIC native / Build win32-x64 (pull_request) Has been skipped
CultMesh QUIC native / Build linux-x64 (pull_request) Has been skipped
CultMesh QUIC native / Release native binaries (pull_request) Has been skipped
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Has been cancelled
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (pull_request) Has been cancelled
3c99485f3c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cultcache-ts: a put's alias order is pinned against normalised sorts too
Some checks failed
CultMesh QUIC native / Build win32-x64 (pull_request) Has been skipped
CultMesh QUIC native / Build linux-x64 (pull_request) Has been skipped
CultMesh QUIC native / Release native binaries (pull_request) Has been skipped
CultMesh QUIC native / Verify committed binaries match SHA256SUMS (pull_request) Has been cancelled
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Has been cancelled
5e7cb663da
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
libby merged commit f2bb0dd1dd into main 2026-11-11 13:56:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/CultLib!108
No description provided.