administrator 1/8 — the built-in Administrator credential exists (#1948) #1949

Closed
opened 2026-09-28 03:04:51 +00:00 by matou-build-agent · 3 comments

Parent

What to build

Every IDIP community has an Administrator credential definition without
anyone creating it — the second built-in beside Membership. It is
synthesised rather than stored, so no steward act can retire, delete or edit it
away: it is the thing the access check will read, and a community that could
retire it could shut its own panel by accident.

Its display name and appearance are brandable, exactly as Membership's
already are (the appearance rides separately from the built-in definition), so a
community can call it what it likes and give it their own look. The slug never
moves
— a rename changes only what people see.

Nothing checks it yet and the panel offers no way to issue it (2/8 and 3/8 do
that). What this ticket delivers is that the definition is real, appears in the
community's credential list as a built-in, and can be issued by a steward from
their app.

Acceptance criteria

  • Given any IDIP community, when its credential definitions are read, then administrator is present as a built-in — synthesised, not a stored definition — beside membership.
  • Given the built-in, when a steward attempts to retire or delete it, then it is refused; no steward act removes it.
  • Given the credentials surface, when it lists what a community may define or edit, then the built-in is not offered as an ordinary definition.
  • Given a steward renames it or changes its look, when the change is saved, then it is stored the way Membership's appearance is, and the slug administrator is unchanged.
  • Given a renamed credential, when anything keys on it, then it keys on the slug and never the display name.
  • Given the definition exists, when a steward issues it from their app, then the issuance lands in the one community registry like any other credential.
  • Proven at internal/keria's definitions tests, beside Membership's.

Blocked by

None — can start immediately.

Task manifest

task: administrator-builtin-definition
implements_flow: administrator-credential
implements_edge: "the credential every other node refers to"
wireframe: docs/ux/wireframes/administrator-credential/ac-i1-issue-administrator.html
interface: |
  a second BUILT-IN definition beside membership:
    slug "administrator" (fixed), synthesised, not retirable, not deletable
    display name + appearance stored separately (the MembershipAppearance pattern)
seam: internal/keria definitions tests
acceptance:
  - given: any IDIP community
    when: definitions are read
    then: administrator is present as a built-in beside membership
  - given: a steward attempts to retire or delete it
    when: the act runs
    then: it is refused
  - given: a rename
    when: anything keys on the credential
    then: it keys on the slug, never the display name
depends_on: []
out_of_scope: [the access check (2/8), issuing from the panel (3/8), founding (7/8)]
needs_human_decision: []

Ticketed by /to-tickets from spec #1948 (ADR 0286); granularity, the cross-repo edge and the cut-over guard confirmed with Ben 2026-09-28. Slice-map skipped at his call — one feature, no cross-feature coupling left to find.

🤖 Generated with Claude Code

https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY

## Parent - **Spec:** [#1948 — the Administrator credential replaces the operator role](https://git.matou.nz/Matou/idss/issues/1948) (stories 1, 2) - **Design:** ADR 0286 d.1 · flow `docs/ux/flows/administrator-credential.mermaid` - **Wayfinder map:** #1293 ## What to build Every IDIP community has an **Administrator** credential definition without anyone creating it — the second **built-in** beside Membership. It is synthesised rather than stored, so no steward act can retire, delete or edit it away: it is the thing the access check will read, and a community that could retire it could shut its own panel by accident. Its **display name and appearance are brandable**, exactly as Membership's already are (the appearance rides separately from the built-in definition), so a community can call it what it likes and give it their own look. The **slug never moves** — a rename changes only what people see. Nothing checks it yet and the panel offers no way to issue it (2/8 and 3/8 do that). What this ticket delivers is that the definition is real, appears in the community's credential list as a built-in, and can be issued by a steward from their app. ## Acceptance criteria - [ ] **Given** any IDIP community, **when** its credential definitions are read, **then** `administrator` is present as a **built-in** — synthesised, not a stored definition — beside `membership`. - [ ] **Given** the built-in, **when** a steward attempts to retire or delete it, **then** it is refused; no steward act removes it. - [ ] **Given** the credentials surface, **when** it lists what a community may define or edit, **then** the built-in is not offered as an ordinary definition. - [ ] **Given** a steward renames it or changes its look, **when** the change is saved, **then** it is stored the way Membership's appearance is, **and** the slug `administrator` is unchanged. - [ ] **Given** a renamed credential, **when** anything keys on it, **then** it keys on the slug and never the display name. - [ ] **Given** the definition exists, **when** a steward issues it from their app, **then** the issuance lands in the one community registry like any other credential. - [ ] Proven at `internal/keria`'s definitions tests, beside Membership's. ## Blocked by None — can start immediately. ## Task manifest ```yaml task: administrator-builtin-definition implements_flow: administrator-credential implements_edge: "the credential every other node refers to" wireframe: docs/ux/wireframes/administrator-credential/ac-i1-issue-administrator.html interface: | a second BUILT-IN definition beside membership: slug "administrator" (fixed), synthesised, not retirable, not deletable display name + appearance stored separately (the MembershipAppearance pattern) seam: internal/keria definitions tests acceptance: - given: any IDIP community when: definitions are read then: administrator is present as a built-in beside membership - given: a steward attempts to retire or delete it when: the act runs then: it is refused - given: a rename when: anything keys on the credential then: it keys on the slug, never the display name depends_on: [] out_of_scope: [the access check (2/8), issuing from the panel (3/8), founding (7/8)] needs_human_decision: [] ``` --- *Ticketed by `/to-tickets` from spec [#1948](https://git.matou.nz/Matou/idss/issues/1948) (ADR 0286); granularity, the cross-repo edge and the cut-over guard confirmed with Ben 2026-09-28. Slice-map skipped at his call — one feature, no cross-feature coupling left to find.* 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Author
Member

swarm-claim host=bens-mac-04 run=34691
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=34691 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

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

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

close-report for #1949 — status success

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

envelope
{
  "issue": 1949,
  "status": "success",
  "commits": [
    "353e92229c765d4e43861587b0e48f2fbdec28eb"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/keria/appearance_test.go",
    "internal/keria/credential_lifecycle_test.go",
    "internal/keria/definitions.go",
    "internal/keria/definitions_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/keria/",
      "exit_code": 0
    },
    {
      "command": "go test ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/keria/ ./internal/controlapi/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "any IDIP community, definitions read → administrator present as a built-in (synthesised) beside membership": "internal/keria/definitions.go builtinAdministrator + List/Get place it second; TestDefinitions_AdministratorBuiltIn asserts list[1]==administrator BuiltIn on an empty community",
    "steward attempts to retire or delete it → refused; no steward act removes it": "Retire/Delete return ErrBuiltInImmutable for AdministratorSlug; TestDefinitions_AdministratorBuiltIn asserts both refusals",
    "credentials surface lists what a community may define/edit → the built-in is not offered as an ordinary definition": "BuiltIn:true flag flows through DefinitionAdapter.definitionView; serviceSideCandidates already skips BuiltIn; uniqueSlug reserves the slug so a created 'Administrator' never takes it (test asserts created.Slug != administrator)",
    "steward renames or changes look → stored the way Membership's appearance is, slug administrator unchanged": "Rename stores definitionsState.AdministratorName, SetAppearance stores AdministratorAppearance (MembershipAppearance pattern); TestDefinitions_AdministratorBuiltIn renames + re-looks, asserts slug fixed and both persist across a reopen",
    "renamed credential, anything keys on it → keys on the slug never the display name": "builtinAdministrator keeps Slug fixed; test asserts Get(display name) returns ok=false while Get(administrator) resolves the renamed/re-looked built-in",
    "definition exists, steward issues it from their app → issuance lands in the one community registry like any other credential": "issuance is generic via Registry.AnchorCredentialIssuance(aid, administrator, said, by) + ConfirmReceipt; TestDefinitions_AdministratorIssuesLikeAnyCredential asserts the Held entry settles CredIssued keyed on the slug",
    "Proven at internal/keria's definitions tests, beside Membership's": "internal/keria/definitions_test.go TestDefinitions_AdministratorBuiltIn + TestDefinitions_AdministratorIssuesLikeAnyCredential, beside TestDefinitions_MembershipFirstAndBuiltIn"
  },
  "binds": [
    {
      "symbol": "administrator",
      "defined_in": "internal/keria/definitions.go"
    }
  ],
  "summary": "Administrator is now the second built-in credential definition beside Membership — synthesised, never retirable/deletable, name and look brandable and stored separately, keyed on its fixed slug.",
  "blockers": []
}
**close-report** for #1949 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1949, "status": "success", "commits": [ "353e92229c765d4e43861587b0e48f2fbdec28eb" ], "changed_files": [ "STATUS.md", "internal/keria/appearance_test.go", "internal/keria/credential_lifecycle_test.go", "internal/keria/definitions.go", "internal/keria/definitions_test.go" ], "tests": [ { "command": "go test ./internal/keria/", "exit_code": 0 }, { "command": "go test ./...", "exit_code": 0 }, { "command": "go vet ./internal/keria/ ./internal/controlapi/", "exit_code": 0 } ], "criteria": { "any IDIP community, definitions read → administrator present as a built-in (synthesised) beside membership": "internal/keria/definitions.go builtinAdministrator + List/Get place it second; TestDefinitions_AdministratorBuiltIn asserts list[1]==administrator BuiltIn on an empty community", "steward attempts to retire or delete it → refused; no steward act removes it": "Retire/Delete return ErrBuiltInImmutable for AdministratorSlug; TestDefinitions_AdministratorBuiltIn asserts both refusals", "credentials surface lists what a community may define/edit → the built-in is not offered as an ordinary definition": "BuiltIn:true flag flows through DefinitionAdapter.definitionView; serviceSideCandidates already skips BuiltIn; uniqueSlug reserves the slug so a created 'Administrator' never takes it (test asserts created.Slug != administrator)", "steward renames or changes look → stored the way Membership's appearance is, slug administrator unchanged": "Rename stores definitionsState.AdministratorName, SetAppearance stores AdministratorAppearance (MembershipAppearance pattern); TestDefinitions_AdministratorBuiltIn renames + re-looks, asserts slug fixed and both persist across a reopen", "renamed credential, anything keys on it → keys on the slug never the display name": "builtinAdministrator keeps Slug fixed; test asserts Get(display name) returns ok=false while Get(administrator) resolves the renamed/re-looked built-in", "definition exists, steward issues it from their app → issuance lands in the one community registry like any other credential": "issuance is generic via Registry.AnchorCredentialIssuance(aid, administrator, said, by) + ConfirmReceipt; TestDefinitions_AdministratorIssuesLikeAnyCredential asserts the Held entry settles CredIssued keyed on the slug", "Proven at internal/keria's definitions tests, beside Membership's": "internal/keria/definitions_test.go TestDefinitions_AdministratorBuiltIn + TestDefinitions_AdministratorIssuesLikeAnyCredential, beside TestDefinitions_MembershipFirstAndBuiltIn" }, "binds": [ { "symbol": "administrator", "defined_in": "internal/keria/definitions.go" } ], "summary": "Administrator is now the second built-in credential definition beside Membership — synthesised, never retirable/deletable, name and look brandable and stored separately, keyed on its fixed slug.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1949
No description provided.