GeezerVison is showing github.com — id(aliases): a whitespace-only alias claim displays as a blank alias — aliases_of excludes empty text but not whitespace-only text · Issue #4130 · developing-today/code
id(aliases): a whitespace-only alias claim displays as a blank alias — aliases_of excludes empty text but not whitespace-only text #4130Labels 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/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DescriptionProblem
In pkgs/id, a tag claim whose alias value is only whitespace is treated as a real alias and displayed as the object's name, even though the alias module's own rule is that an empty alias is not an alias.
pkgs/id/src/tag_claims.rs — check_op accepts a tag.set value of 1..=512 bytes that is NFC. A value of " " (spaces) passes every check, so such a claim is a valid, signed, syncable event.
pkgs/id/src/aliases.rs:105-118 — aliases_of filters out only a bare tag or a value where text.is_empty(). A whitespace-only value is not empty, so it becomes an Alias { text: " " }.
pkgs/id/src/aliases.rs module docs state the intended rule: "A bare tag, or an alias with empty text, is not an alias." A whitespace-only alias renders as blank — indistinguishable from empty — but is not excluded.
Evidence (verified this run)
Laptop probe ~/git/fleet/probe-2026-11-01-laneB-aliasws/ with aliases_of/shown_for copied verbatim from pkgs/id/src/aliases.rs @ 11cb8966 (md5 46b7428bd37db1c5d9c96687db6e0b72, identical in the sandbox clone and the laptop checkout):
- value
Some(" ") → aliases_of returns 1 alias with text " ", and shown_for returns Shown::Only(..) — the view shows a blank alias as the object's only name.
- value
Some("") (control) → 0 aliases, as documented.
- value
Some(" Ann ") → stored/displayed verbatim with padding (related display wart; the whitespace-only case is the bug).
Why it matters
Alias display is what views show instead of a raw ID (aliases::rows / Shown::Only). Any peer can publish a whitespace-only alias claim on a group or user subject; a lone such claim makes the object display with a blank alias, and alongside a real claim it forces the row to Contested with one visibly-empty contender. The fix belongs in one place (aliases_of is documented as "the one place that decides what a view shows for an object's aliases").
Acceptance criteria
aliases_of treats a value whose trimmed form is empty the same as an empty value: it is not an alias (does not appear in Row::aliases, does not make a row Contested, does not become Shown::Only).
- A unit test covers whitespace-only alias values (spaces/tabs) next to the existing empty-value test in
pkgs/id/src/aliases.rs.
- Existing alias behaviour for non-blank values is unchanged (no silent trimming of real alias text unless that is decided and tested separately).
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/triageQueue packet kind: verify, reproduce, and route this item app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/xsTrivial: expected under 30 minutes of work on Nov 2, 2026dezren39 commented on Nov 2, 2026 dezren39 commented on Nov 2, 2026 🤖 Agent note · blocked / escalated
dezren39 commented on Nov 3, 2026 agent-note:v1
event: revalidated + still blocked (escalated)
task: 6373 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane c8b9355e-319a-4640-8096-7ad19480d151)
state: re-claimed for resume; fix artifact unchanged and still untouchable by this worker.
verified: Fresh 2026-11-03T09:55Z: PR #4467 OPEN, authored by dezren39 (single commit aa125ea), head queue/6373-4130-aliases-whitespace. No Drew release/delegation and no Drew decision comment since the 2026-11-02T18:32Z escalation. One change since last shift: blocker #4454 (pre-existing references.rs compile breakage) is now CLOSED, so the test/merge path is unblocked — but the Drew-ownership guardrail still forbids this worker from rebasing, testing, or merging #4467.
blocker: Drew decision required — release/delegate #4467 to the queue worker, or confirm the fix landed another way and mark this task already_done.
labels: user/escalated + queue/blocked + status/blocked retained; work/assigned retained while blocked.
bookkeeping: sandbox backlog and sweep log deferred to fleet reconciliation.
dezren39 commented on Nov 8, 2026
{"event":"done","worker":"repo-worker-code","queue":"repo-health-code-pilot","task_id":13391,"lane":"code-y","note":"Task 13391 COMPLETE (fixed_merged). PR #4467 squash-merged, merge SHA 19ace0f; issue #4130 CLOSED by the merge. Fresh verification: merge-tree clean vs main (branch 45 commits behind, 1 ahead); Codex review on final head e9aac4b completed with no findings; targeted tests on laptop worktree: cargo test --manifest-path pkgs/id/Cargo.toml --lib aliases — 105 passed, 0 failed (incl. new test_a_whitespace_only_alias_is_not_an_alias). CI checks were QUEUED >2h (systemic runner stall, also seen by lanes code-n/code-p on this PR) with 1 SUCCESS / 1 SKIPPED / CodeRabbit NEUTRAL and none failed; merged under the standing merge criteria on local test evidence per fleet rules. The user/escalated label on #4130 traced to the superseded Drew-authorship rule (replaced 2026-11-07) and is removed as resolved."}
MetadataMetadataapp/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/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DevelopmentNo branches or pull requestsIssue actions
|