Record Soul on the RS-L second fix and rule identity into the type's own equality

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-22 19:45:39 +02:00
commit 0d1e592b9a

View file

@ -6414,3 +6414,18 @@ as the `schemars` dependency, now in `epiphany-pipeline`.
- **Stated limit, accepted by Self:** U+3164, the Hangul Filler, is `Lo`, so `is_alphanumeric` accepts it. A title made only of such characters is invisible and valid. Hands pinned it as accepted rather than reintroduce a one-code-point denylist, which is what this rewrite removed. Closing this properly needs Unicode property data (Default_Ignorable_Code_Point), which is a dependency the leaf does not carry. **Follow-up, FU-Title-Ignorable**, if a display surface ever cares.
- **Recorded, not this cut's:** `epiphany-core`'s `process_observation` test is flaky in the container, with a different test name on each run. It reads `/proc` and is environmental.
- **Soul's pass on the new rules is dispatched.**
- **Soul on the RS-L second fix, 2026-09-22** (Opus, on Yggdrasil). **RS-L does not close.**
- **Held:** 37/37 tests twice; the schema pin; cargo-mutants 9/9 caught; all five required hand probes die; the bidi set is exactly Unicode's `Bidi_Control`; the byte bound is exactly 1–200 bytes; the dead check's deletion is sound; `a/b.git.git`, `a/.git` and `a/b..git` refuse while `a/git` and `a/.gitignore` are accepted.
- **S-1, high: `identity()` is exposed and never adopted.** It has no non-test call site. Key derivation still uses the raw string (`lib.rs:844,853`), so `GameCult/Epiphany` and `gamecult/epiphany` produce two store keys. `bounded_text!` derives `PartialEq`, `Ord` and `Hash` on the raw string, so `==` and every map key compare case-sensitively, and that is the path callers reach for. The doc comment claims the opposite. Two stewardships of one repository can each call the other unstewarded.
- **S-2, high: the `.git` refusal is case-sensitive.** `a/b.GIT`, `a/.GIT` and `A/B.GIT` are accepted, and their `identity()` is a string the validator refuses. The alias hazard survives through a case variant.
- **S-3, medium-high: the bidi class is unpinned.** Deleting U+2069, U+2066, U+061C, U+200F, U+200E or all of U+202A–D survives the suite. Only U+202E is pinned. Every other bidi assertion uses a lone control, which the alphanumeric rule already refuses, so it pins nothing. cargo-mutants does not generate class-member deletions.
- **S-4, medium: the rule widened where it should not have.** `is_control()` is `Cc` only, so U+2028 (`Zl`) and U+2029 (`Zp`) are now accepted inside a title. A one-line field can carry a hard line break. FEFF, U+200B, U+2060 and U+00AD embedded are also accepted now.
- **S-5, low-medium: the schema lost its caveat.** The description says "1 to 200 UTF-8 bytes" beside `maxLength: 200`, which a validator reads as 200 characters. A 200-character CJK title passes the schema and is refused by admission.
- **Recorded:** the Hangul-filler limit covers a class, not one code point: U+115F, U+1160 and U+FFA0 behave the same. **FU-Title-Ignorable names the class.**
- **Self's rulings on the RS-L third fix, 2026-09-22:**
- **S-1: make it structural, not advisory.** `OrgRepo` gets hand-written `PartialEq`, `Eq`, `Hash`, `PartialOrd` and `Ord` over `identity()`, so `==`, `BTreeMap` and `HashMap` are case-insensitive by default and a caller cannot reach the old behaviour by accident. Key derivation (`lib.rs:844,853`) goes through `identity()`. The raw string stays for display only, and the doc says so. Tests: equality, a map with both spellings holding one entry, and one store key.
- **S-2:** the `.git` refusal is ASCII-case-insensitive, and `identity()` is always itself a valid `OrgRepo`. Test `a/b.GIT`, `a/.GIT` and `A/B.GIT`.
- **S-3:** pin every bidi code point with an **embedded** fixture, such as `"a\u{2066}b"`, so the alphanumeric rule cannot mask it. All eleven.
- **S-4:** refuse U+2028 and U+2029 as well as `is_control()`. Everything else stays allowed, so ZWJ and ZWNJ still work. Test both embedded.
- **S-5:** restore the bytes-versus-characters caveat in the `Title` description.
- **In Hands (Sonnet).**