Skip to content

id(petname): skeleton look-alike map misses capital I (vs l) and 8 (vs B) — 'PayPaI' and '8ob' pass the anti-spoof guard that refuses 'PayPa1' and 'B0b' #2069

Closed

Description

@dezren39

id(petname): skeleton look-alike map misses capital I (vs l) and 8 (vs B) — "PayPaI" and "8ob" pass the anti-spoof guard that refuses "PayPa1" and "B0b"

Summary

Petnames::set refuses a petname that is confusable with another contact's
petname or alleged name, comparing skeleton() forms (pkgs/id/src/petname.rs:120
and :128). The skeleton's look-alike table (petname.rs:240-256) maps
0→o, 1→l, |→l, 3→e, 5→s, $→s, @→a, plus rn→m and vv→w — but
two classic look-alikes are missing:

  • Capital I for l. fold() lowercases first, so I becomes i,
    not l. In most sans-serif UI fonts I, l, and 1 are near-identical,
    yet only two of the three are mapped.
  • 8 for B. The digit look-alikes 0, 1, 3, 5 are all mapped;
    8 is not.

Evidence (verified this run, main 0fda29d1)

Verbatim-copy probe of fold/skeleton (petname.rs:233-256), compiled and
run on the laptop in ~/git/fleet/probe-2026-10-28-laneA-skeleton/:

skeleton("PayPa1")="paypal"  skeleton("PayPal")="paypal"  equal=true   (refused today)
skeleton("PayPaI")="paypai"  skeleton("PayPal")="paypal"  equal=false  (accepted today)
skeleton("AIice") ="aiice"   skeleton("Alice") ="alice"   equal=false  (accepted today)
skeleton("8ob")   ="8ob"     skeleton("Bob")   ="bob"     equal=false  (accepted today)
skeleton("B0b")   ="bob"     skeleton("Bob")   ="bob"     equal=true   (refused today)
controls: "M0m"/"Mom", "vvill"/"will", "Rnoon"/"moon" all equal, as designed

set(other, "PayPa1") vs alleged "PayPal": refused_by_guard=true
set(other, "PayPaI") vs alleged "PayPal": refused_by_guard=false
set(other, "8ob")    vs alleged "Bob":    refused_by_guard=false

So an owner can be talked into (or a crafted flow can set) a petname for one
contact that reads as another contact's name — exactly the spoof the module
exists to prevent ("Account names are alleged, so the store refuses a petname
that could be taken for someone else's name", petname.rs:1-6).

Display does not rescue it: labels() (petname.rs:311-321) only adds a
disambiguating fingerprint when two petnames collide after fold(), not
after skeleton() — "PayPal" and "PayPaI" petnames on two contacts would
both render bare, with no fingerprint.

Distinct from #1674 (format characters / Cf bypassing the same guards): this
is plain ASCII, no invisible characters involved.

Why it matters

The petname store is a trust surface: its one job is that a name the owner
sees cannot be mistaken for a different contact. An incomplete look-alike
table that maps 1 and | to l but not I leaves the most common
font-level l spoof open, and petnames are shown in contact lists where
the wrong identity can steer messages/payments to the wrong account key.

Acceptance criteria

  • skeleton("PayPaI") == skeleton("PayPal") and
    skeleton("AIice") == skeleton("Alice"): capital I maps to the
    same class as l/1/|.
  • skeleton("8ob") == skeleton("Bob"): 8 maps to the b class (or
    triage pins, with a test, why 8 is deliberately excluded while
    0/1/3/5 are included).
  • Petnames::set refuses "PayPaI" against an alleged/petname "PayPal"
    and "8ob" against "Bob", with regression tests beside
    a_confusable_name_is_refused in petname.rs.
  • Existing skeleton tests still pass (PayPa1, Rnoon/moon,
    Carol ≠ Bob) and no legitimate distinct name in the current test
    corpus becomes refused.
  • Consider (or explicitly defer with a note) whether labels() should
    fingerprint on skeleton collisions as well as fold collisions.

🤖 Filed by new-issue-creator-code-a (Lane A), 2026-10-28 run.

Activity

  1. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  2. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator-code-a (Lane A creator job)
    • Session / ID: new-issue-creator-code-a, 2026-10-28 20:05 CDT run
    • Found via: filed this run
    • Task: Filed this issue — petname skeleton look-alike map misses capital I (vs l) and 8 (vs B); verified by a verbatim-copy probe of fold/skeleton on the laptop against main 0fda29d.
    • Expectation: effort/xs triage — pin the mapping additions (I→l class, 8→b class), then a small fix with regression tests; consider the labels() skeleton-collision fingerprint question.
    • Links: probe ~/git/fleet/probe-2026-10-28-laneA-skeleton/ (laptop); queue packet enqueued to repo-health-code-pilot this run.
  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  5. 10 remaining items

  6. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  7. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  8. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 1, 2026
  9. added 2 commits that reference this issue on Nov 1, 2026
  10. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — fixed and merged

    • Agent: repo-worker-code (lane D)
    • Session / ID: queue task 5073
    • Result: PR fix(id): petname skeleton — capital-I class and 8->b, labels() skeleton collisions (#2069) #3360 merged (merge commit 139f491); this issue auto-closed via the PR's Fixes line.
    • Codex gate: the one P1 finding on head c0a309b (new tests missing the test_ prefix required by pkgs/id/AGENTS.md) was fixed in d04b8f7 (4 name-only renames), replied on the thread, thread resolved; Codex re-review of d04b8f7 came back clean (no findings).
    • Tests: implementation tests are in the PR (4 new petname regression tests); a laptop re-run of cargo test --lib petname this shift was blocked by a laptop infra failure — /home at 100% (5.6M free, os error 28) — not by any test failure. Repo CI runs on main per fleet policy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions