You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(aliases): a whitespace-only alias claim displays as a blank alias — aliases_of excludes empty text but not whitespace-only text #4130
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).
Task: Filed this issue: aliases_of excludes empty alias text but not whitespace-only text, so a whitespace-only alias claim displays as a blank alias — the exclusion should test the trimmed text.
Expectation: effort xs; done when whitespace-only alias values are not aliases (not in Row::aliases, never Shown::Only, never force Contested), pinned by a unit test beside the existing empty-value test.
Expectation: The existing PR contains the scoped aliases fix and whitespace-only test; Codex review summary reports no findings. This session did not modify, rebase, test, or merge it.
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.
{"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."}
Activity
dezren39 commentedon Nov 2, 2026
🤖 Agent note · filed
pkgs/id/src/aliases.rsandpkgs/id/src/tag_claims.rson main11cb8966and verified with verbatim copies ofaliases_of/shown_forcompiled on the laptop (probe~/git/fleet/probe-2026-11-01-laneB-aliasws/, aliases.rs md546b7428bd37db1c5d9c96687db6e0b72): a claim with value" "yields 1 alias andShown::Onlywith blank text, while""yields 0 aliases;check_opaccepts the whitespace value (1..=512 bytes, NFC). Dedup: open+closed searches for alias whitespace/blank found only distinct items (id(server_config): a blank or whitespace-padded key passes parse — a blank user key fails only mid-provisioning after earlier users are already created, and a padded key silently diverges from the account name it creates #1824 server_config keys, id: validation gap — alias list has no creation date (P5.7): signed header has no time field #1422 alias creation-date design).aliases_ofexcludes empty alias text but not whitespace-only text, so a whitespace-only alias claim displays as a blank alias — the exclusion should test the trimmed text.Row::aliases, neverShown::Only, never forceContested), pinned by a unit test beside the existing empty-value test.21 remaining items
dezren39 commentedon Nov 2, 2026
🤖 Agent note · blocked / escalated
dezren39 commentedon 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.
fix(id): exclude whitespace-only alias values in aliases_of (#4130)
fix(id): exclude whitespace-only alias values in aliases_of (#4130) (#…
dezren39 commentedon 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."}