idip: community-unique display names — the roster resolves Ben, Ben_2…, the bridge mints them as name #1916

Closed
opened 2026-09-27 18:44:12 +00:00 by ben · 2 comments
Owner

Parent

#1915

What to build

The roster resolves each AID a community-unique display name, beside the #1908 unique-handle rule: first taker keeps it, later ones get the lowest free _N (N ≥ 2), case-insensitive. A declined join (archived, never issued) holds none; a removed member keeps theirs; a name already handed out is sticky. The bridge mints it as the name claim, and Grist's SCIM name sync (ADR 0283) uses it. Nextcloud and Grist show unique names.

Acceptance criteria

  • Two AIDs whose credentials both say "Ben" are shown as "Ben" and "Ben_2"; "ben" and "Ben" collide
  • A declined join holds no display name; a removed member still holds theirs
  • A name already handed to an AID never changes when others join or leave
  • The bridge's name claim and the Grist display name are the resolved name (claims-seam test)
  • No display name given → falls back to the unique handle

Blocked by

None — can start immediately

## Parent #1915 ## What to build The roster resolves each AID a community-unique display name, beside the #1908 unique-handle rule: first taker keeps it, later ones get the lowest free `_N` (N ≥ 2), case-insensitive. A declined join (archived, never issued) holds none; a removed member keeps theirs; a name already handed out is sticky. The bridge mints it as the `name` claim, and Grist's SCIM name sync (ADR 0283) uses it. Nextcloud and Grist show unique names. ## Acceptance criteria - [ ] Two AIDs whose credentials both say "Ben" are shown as "Ben" and "Ben_2"; "ben" and "Ben" collide - [ ] A declined join holds no display name; a removed member still holds theirs - [ ] A name already handed to an AID never changes when others join or leave - [ ] The bridge's `name` claim and the Grist display name are the resolved name (claims-seam test) - [ ] No display name given → falls back to the unique handle ## Blocked by None — can start immediately

swarm-claim host=matou-dev-server-01 run=34315
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=34315 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1916 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1916,
  "status": "success",
  "commits": [
    "41345bf4674e0f263035f9bdda175b8da6f638da"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/controlapi/idip_roster.go",
    "internal/controlapi/idip_roster_test.go",
    "internal/idp/appdoor.go",
    "internal/idp/presented_seam_test.go",
    "internal/idp/presentedwriter.go",
    "internal/keria/adapter.go",
    "internal/keria/backendemail_test.go",
    "internal/keria/presented_test.go",
    "internal/keria/registry.go",
    "internal/keriawire/wire.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/keria/... ./internal/idp/... ./internal/controlapi/... ./internal/keriawire/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/... ./internal/member/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/keria internal/idp internal/controlapi internal/keriawire",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Two AIDs whose credentials both say \"Ben\" are shown as \"Ben\" and \"Ben_2\"; \"ben\" and \"Ben\" collide": "keria.resolveDisplayName (registry.go) suffixes case-insensitively with _N; TestRegistry_RecordPresentedMakesDisplayNameUnique (Ben/ben/BEN -> Ben, ben_2, BEN_3) and idp TestSeam_AppDoor_CollidingDisplayNamesGetDistinctNameClaim",
    "A declined join holds no display name; a removed member still holds theirs": "resolveDisplayName skips declined() members but keeps archived-after-issue ones; TestRegistry_DeclinedHoldsNoDisplayNameRemovedKeepsIt (declined Ben -> presenter keeps Ben; removed Mere -> presenter Mere_2)",
    "A name already handed to an AID never changes when others join or leave": "stability check keeps the AID's stored name via baseDisplayName; TestRegistry_DisplayNameNeverShiftsUnderAMember",
    "The bridge's name claim and the Grist display name are the resolved name (claims-seam test)": "appDoor.recordPresented adopts the resolved name onto identity.Claims.Name -> id_token/userinfo name (setUserinfo); DisplayName returns the stored resolved row name (Grist SCIM, ADR 0283). TestSeam_AppDoor_CollidingDisplayNamesGetDistinctNameClaim asserts the id_token name; keria tests assert DisplayName == resolved value",
    "No display name given -> falls back to the unique handle": "empty desired name is stored empty; DisplayName falls back to the already-unique handle. TestRegistry_NoDisplayNameFallsBackToTheUniqueHandle (DisplayName -> ben, ben-2)"
  },
  "summary": "The IDIP roster projection resolves a community-unique display name per AID (case-insensitive, _N suffix, sticky), minted as the OIDC name claim and Grist's SCIM display name, beside the #1908 unique-handle rule.",
  "blockers": []
}
**close-report** for #1916 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1916, "status": "success", "commits": [ "41345bf4674e0f263035f9bdda175b8da6f638da" ], "changed_files": [ "STATUS.md", "internal/controlapi/idip_roster.go", "internal/controlapi/idip_roster_test.go", "internal/idp/appdoor.go", "internal/idp/presented_seam_test.go", "internal/idp/presentedwriter.go", "internal/keria/adapter.go", "internal/keria/backendemail_test.go", "internal/keria/presented_test.go", "internal/keria/registry.go", "internal/keriawire/wire.go" ], "tests": [ { "command": "go test ./internal/keria/... ./internal/idp/... ./internal/controlapi/... ./internal/keriawire/...", "exit_code": 0 }, { "command": "go test ./internal/clan/... ./internal/member/... ./control-plane/...", "exit_code": 0 }, { "command": "gofmt -l internal/keria internal/idp internal/controlapi internal/keriawire", "exit_code": 0 }, { "command": "go vet ./internal/...", "exit_code": 0 } ], "criteria": { "Two AIDs whose credentials both say \"Ben\" are shown as \"Ben\" and \"Ben_2\"; \"ben\" and \"Ben\" collide": "keria.resolveDisplayName (registry.go) suffixes case-insensitively with _N; TestRegistry_RecordPresentedMakesDisplayNameUnique (Ben/ben/BEN -> Ben, ben_2, BEN_3) and idp TestSeam_AppDoor_CollidingDisplayNamesGetDistinctNameClaim", "A declined join holds no display name; a removed member still holds theirs": "resolveDisplayName skips declined() members but keeps archived-after-issue ones; TestRegistry_DeclinedHoldsNoDisplayNameRemovedKeepsIt (declined Ben -> presenter keeps Ben; removed Mere -> presenter Mere_2)", "A name already handed to an AID never changes when others join or leave": "stability check keeps the AID's stored name via baseDisplayName; TestRegistry_DisplayNameNeverShiftsUnderAMember", "The bridge's name claim and the Grist display name are the resolved name (claims-seam test)": "appDoor.recordPresented adopts the resolved name onto identity.Claims.Name -> id_token/userinfo name (setUserinfo); DisplayName returns the stored resolved row name (Grist SCIM, ADR 0283). TestSeam_AppDoor_CollidingDisplayNamesGetDistinctNameClaim asserts the id_token name; keria tests assert DisplayName == resolved value", "No display name given -> falls back to the unique handle": "empty desired name is stored empty; DisplayName falls back to the already-unique handle. TestRegistry_NoDisplayNameFallsBackToTheUniqueHandle (DisplayName -> ben, ben-2)" }, "summary": "The IDIP roster projection resolves a community-unique display name per AID (case-insensitive, _N suffix, sticky), minted as the OIDC name claim and Grist's SCIM display name, beside the #1908 unique-handle rule.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1916
No description provided.