administrator 7/8 — founding issues Administrator to the founder (#1948) #1955

Closed
opened 2026-09-28 03:05:01 +00:00 by matou-build-agent · 2 comments

Parent

What to build

A new community finishes founding with its control panel already open. The
ceremony that issues the founder's Membership issues them Administrator in
the same act, on the IDIP path.

Without this a founder would finish founding and meet AC-X0 at their own panel —
a bad first five minutes, and the reason ADR 0286 d.7 puts founding on a
different footing from an existing community's migration.

Acceptance criteria

  • Given a community being founded on the IDIP path, when the founder's Membership is issued, then Administrator is issued to them in the same ceremony, from the one community registry.
  • Given founding has finished, when the founder signs in to the control panel, then it opens with no further act from them.
  • Given a founding that fails partway, when it is retried or resumed, then the founder ends with exactly one live Administrator credential — never two, never none.
  • Given a kanidm-path founding, when it runs, then nothing about this changes (the credential is an IDIP concept).
  • Proven at the founding path's existing seam, beside the Membership issuance it joins.

Blocked by

  • 1/8 — the definition must exist to be issued.

Task manifest

task: founding-issues-administrator
implements_flow: administrator-credential
implements_edge: "F1 -> A1 (founding issues Membership and Administrator)"
wireframe: docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html
interface: "the IDIP founding ceremony issues Membership + Administrator to the founder"
seam: the founding path's existing seam, beside the Membership issuance
acceptance:
  - given: an IDIP founding
    when: the founder's Membership is issued
    then: Administrator is issued in the same ceremony
  - given: founding has finished
    when: the founder signs in
    then: the panel opens with no further act
  - given: a founding retried partway
    when: it completes
    then: the founder holds exactly one live Administrator credential
depends_on: [administrator-builtin-definition]
out_of_scope: [existing communities (they issue in the expand window — see 8/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 3) - **Design:** ADR 0286 d.7 · flow `docs/ux/flows/administrator-credential.mermaid` - **Wayfinder map:** #1293 ## What to build A new community finishes founding with its control panel already open. The ceremony that issues the founder's Membership issues them **Administrator** in the same act, on the IDIP path. Without this a founder would finish founding and meet AC-X0 at their own panel — a bad first five minutes, and the reason ADR 0286 d.7 puts founding on a different footing from an existing community's migration. ## Acceptance criteria - [ ] **Given** a community being founded on the IDIP path, **when** the founder's Membership is issued, **then** Administrator is issued to them in the same ceremony, from the one community registry. - [ ] **Given** founding has finished, **when** the founder signs in to the control panel, **then** it opens with no further act from them. - [ ] **Given** a founding that fails partway, **when** it is retried or resumed, **then** the founder ends with exactly one live Administrator credential — never two, never none. - [ ] **Given** a kanidm-path founding, **when** it runs, **then** nothing about this changes (the credential is an IDIP concept). - [ ] Proven at the founding path's existing seam, beside the Membership issuance it joins. ## Blocked by - 1/8 — the definition must exist to be issued. ## Task manifest ```yaml task: founding-issues-administrator implements_flow: administrator-credential implements_edge: "F1 -> A1 (founding issues Membership and Administrator)" wireframe: docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html interface: "the IDIP founding ceremony issues Membership + Administrator to the founder" seam: the founding path's existing seam, beside the Membership issuance acceptance: - given: an IDIP founding when: the founder's Membership is issued then: Administrator is issued in the same ceremony - given: founding has finished when: the founder signs in then: the panel opens with no further act - given: a founding retried partway when: it completes then: the founder holds exactly one live Administrator credential depends_on: [administrator-builtin-definition] out_of_scope: [existing communities (they issue in the expand window — see 8/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=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 #1955 — status success

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

envelope
{
  "issue": 1955,
  "status": "success",
  "commits": [
    "94d4a3c3832b1929852b794be15cef9847d5dfc1"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/fleetwire/founderroster.go",
    "internal/fleetwire/founderroster_test.go",
    "internal/founding/founderroster.go",
    "internal/founding/founderroster_test.go",
    "internal/founding/stdio.go",
    "internal/founding/testing/fakes.go",
    "internal/keria/adapter.go",
    "internal/keria/adapter_test.go",
    "internal/keria/founder_administrator_test.go",
    "internal/keria/registry.go",
    "internal/keriawire/wire.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/keria/ ./internal/founding/... ./internal/fleetwire/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/keria/ ./internal/founding/... ./internal/fleetwire/ ./internal/keriawire/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given an IDIP founding, when the founder's Membership is issued, then Administrator is issued to them in the same ceremony from the one community registry": "internal/keria/adapter.go RosterAdapter.Register settles Administrator (SettleFounderAdministrator) after settling Membership, keyed on RegisterRequest.AdministratorSAID; proven by TestRosterAdapter_RegisterFounderIssuesAdministrator and TestSettleFounderAdministrator_IssuesLiveInOneAct (internal/keria)",
    "Given founding has finished, when the founder signs in to the control panel, then it opens with no further act": "the founder ends holding a live Administrator credential (CredIssued) that the panel access check reads; TestSettleFounderAdministrator_IssuesLiveInOneAct asserts isIssued(admin)==true after the one act",
    "Given a founding that fails partway, when it is retried or resumed, then the founder ends with exactly one live Administrator credential — never two, never none": "SettleFounderAdministrator is idempotent (leaves an issued one, settles a pending one, re-issues from none/revoked); TestSettleFounderAdministrator_IdempotentOnRetry, _SettlesAPendingGrant, and TestRosterAdapter_RegisterFounderIssuesAdministrator (retry) assert exactly one holder",
    "Given a kanidm-path founding, when it runs, then nothing about this changes (the credential is an IDIP concept)": "an empty AdministratorSAID settles Membership alone; TestRosterAdapter_RegisterFounderWithoutAdministrator (no held credential) and TestRegisterFounder_KanidmPathCarriesNoAdministrator (internal/founding)",
    "Proven at the founding path's existing seam, beside the Membership issuance it joins": "the founder-register seam (#1018): RegisterFounderParams/founding.FounderRoster.RegisterFounder/fleetwire register body/RosterAdapter.Register — the same act that settles Membership; TestRegisterFounder_ThreadsTheAdministratorSAID and TestFounderRoster_RegistersOverTheAPIForwardAsOperator (Administrator SAID on the body)"
  },
  "binds": [
    {
      "symbol": "the IDIP founding ceremony issues Membership + Administrator to the founder",
      "defined_in": "internal/keria/registry.go"
    }
  ],
  "summary": "Founding settles the founder's Administrator credential in the same act it settles their Membership, idempotently, IDIP-only.",
  "no_code_change": ""
}
**close-report** for #1955 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1955, "status": "success", "commits": [ "94d4a3c3832b1929852b794be15cef9847d5dfc1" ], "changed_files": [ "STATUS.md", "internal/fleetwire/founderroster.go", "internal/fleetwire/founderroster_test.go", "internal/founding/founderroster.go", "internal/founding/founderroster_test.go", "internal/founding/stdio.go", "internal/founding/testing/fakes.go", "internal/keria/adapter.go", "internal/keria/adapter_test.go", "internal/keria/founder_administrator_test.go", "internal/keria/registry.go", "internal/keriawire/wire.go" ], "tests": [ { "command": "go test ./internal/keria/ ./internal/founding/... ./internal/fleetwire/ ./internal/controlapi/", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/keria/ ./internal/founding/... ./internal/fleetwire/ ./internal/keriawire/", "exit_code": 0 } ], "criteria": { "Given an IDIP founding, when the founder's Membership is issued, then Administrator is issued to them in the same ceremony from the one community registry": "internal/keria/adapter.go RosterAdapter.Register settles Administrator (SettleFounderAdministrator) after settling Membership, keyed on RegisterRequest.AdministratorSAID; proven by TestRosterAdapter_RegisterFounderIssuesAdministrator and TestSettleFounderAdministrator_IssuesLiveInOneAct (internal/keria)", "Given founding has finished, when the founder signs in to the control panel, then it opens with no further act": "the founder ends holding a live Administrator credential (CredIssued) that the panel access check reads; TestSettleFounderAdministrator_IssuesLiveInOneAct asserts isIssued(admin)==true after the one act", "Given a founding that fails partway, when it is retried or resumed, then the founder ends with exactly one live Administrator credential — never two, never none": "SettleFounderAdministrator is idempotent (leaves an issued one, settles a pending one, re-issues from none/revoked); TestSettleFounderAdministrator_IdempotentOnRetry, _SettlesAPendingGrant, and TestRosterAdapter_RegisterFounderIssuesAdministrator (retry) assert exactly one holder", "Given a kanidm-path founding, when it runs, then nothing about this changes (the credential is an IDIP concept)": "an empty AdministratorSAID settles Membership alone; TestRosterAdapter_RegisterFounderWithoutAdministrator (no held credential) and TestRegisterFounder_KanidmPathCarriesNoAdministrator (internal/founding)", "Proven at the founding path's existing seam, beside the Membership issuance it joins": "the founder-register seam (#1018): RegisterFounderParams/founding.FounderRoster.RegisterFounder/fleetwire register body/RosterAdapter.Register — the same act that settles Membership; TestRegisterFounder_ThreadsTheAdministratorSAID and TestFounderRoster_RegistersOverTheAPIForwardAsOperator (Administrator SAID on the body)" }, "binds": [ { "symbol": "the IDIP founding ceremony issues Membership + Administrator to the founder", "defined_in": "internal/keria/registry.go" } ], "summary": "Founding settles the founder's Administrator credential in the same act it settles their Membership, idempotently, IDIP-only.", "no_code_change": "" } ``` </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#1955
No description provided.