cultcache-rs: a unique-index refusal names the least violation by UTF-16 order; walk refusals.msgpack #102
Loading…
Reference in a new issue
No description provided.
Delete branch "hands/variants-pair-order-rs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spec
variants:cut_spec:cut-pair-order-rs.r1, rulevariants:question:unique-index-refusal-pair-rule(least-pair).judge_againstcollects every violation (alias, two least holders, schema) and names the least, each field compared by UTF-16 code unit (utf16_cmp), not UTF-8/BTreeSet order. Holders, released/taken change and image judge are unchanged; holder identity stays ordinal (case-sensitive).vectors_refusals_hold_the_rulewalks all 24 rows oftests/vectors/unique-index/refusals.msgpack(asserts 24). Deletedthe_refusal_names_the_ordinal_pair_whatever_the_order: every case it held is a vector row.hands/variants-holder-case(rows 23-24,holder-case-store.cc).Tests:
cargo test -p cultcache-rs215 passed, 0 failed (unique_index 23). cargo-mutants over the changed lines: 3 mutants, 1 caught, 2 unviable, 0 survivors. Hand mutants, each failsvectors_refusals_hold_the_rule: UTF-8 byte order (batch-surrogate-keys), case-insensitive holders (batch-key-case), first-found violation (batch-interleaved-types).🤖 Generated with Claude Code
Round 2: merged origin/main
a57397aa(rows 1-33; superseded the holder-case merge); the PR diff is Rust only (lib.rs, unique_index.rs). The walk asserts 33. cargo test -p cultcache-rs: 215 passed, 0 failed. Hand mutants killed: case-insensitive holders (batch-key-case), group without type (batch-interleaved-types), value lowercase/trim/NFC/NFKC (batch-distinct-values), key NFC and NFD (batch-keys-by-normal-form), held-key exclusion case-insensitive (batch-replaced-by-case), alias descending (batch-two-aliases), alias case-fold (batch-alias-case). Survivor: alias by code point (bytes) instead of UTF-16, equivalent for every vector alias (ASCII); the known unpinned alias-code-unit (cut-pair-order-cs.s6), the UTF-16 compare is kept.🤖 Generated with Claude Code