administrator 6/8 — promotion issues Administrator, demotion takes back exactly that one (#1948) #1954

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

Parent

What to build

A steward always has a panel, and a demotion never takes away access it did not
grant.

Promotion (AC-P1). When a rotation reaches its majority, two things land in
one act: the community group identity includes the member, and the promotion
issues them Administrator. The outcome names both, with the issued
credential's SAID on the face
— because it is load-bearing, not decoration:
the rotation record carries it, and the reverse rotation revokes exactly it.

Demotion (AC-P2), two cases. If the Administrator came from the promotion,
the reverse rotation revokes that SAID and the screen says the panel and the
services are closed to them — they are still a member. If they held
Administrator before
being promoted, the promotion issued nothing, so the
demotion revokes nothing: the screen says they keep the control panel, explains
why, and offers Revoke Administrator too as a separate act rather than
performing it.

Anywhere a member is described, the two facts — holds Administrator, is a
steward — are shown separately, each with its own act.

Acceptance criteria

  • Given a rotation that reaches the majority, when it lands, then the group identity includes the member and Administrator has been issued to them.
  • Given that landing, when AC-P1 renders, then it names both facts and shows the issued credential's SAID.
  • Given the rotation record, when it is read afterwards, then it carries that SAID.
  • Given a demotion of someone whose Administrator came from their promotion, when the reverse rotation lands, then exactly that credential is revoked and AC-P2 says the panel and services are closed while they remain a member.
  • Given a demotion of someone who held Administrator before the promotion, when the reverse lands, then nothing is revoked, and AC-P2's second frame says they keep the control panel and offers the separate revoke.
  • Given a member's detail, when it renders, then holding Administrator and being a steward appear as distinct facts with distinct acts.
  • Proven at internal/keria's rotation/registry tests (the SAID recorded, the reverse revoking exactly it, the pre-held case revoking nothing) and the dashboard's unit seam for both frames.

Blocked by

  • 3/8 — the issue and revoke paths the rotation drives.

Task manifest

task: promotion-issues-demotion-revokes-exactly-it
implements_flow: administrator-credential
implements_edge: "S9 -> P1, S9 -> P2, P2 -> A1 (kept)"
wireframe:
  - docs/ux/wireframes/administrator-credential/ac-p1-steward-now.html
  - docs/ux/wireframes/administrator-credential/ac-p2-no-longer-a-steward.html
interface: |
  the rotation record carries the SAID of the Administrator the promotion issued
  the reverse rotation revokes that SAID and nothing else
seam: internal/keria rotation + registry tests; dashboard/tests/unit for both outcome frames
acceptance:
  - given: a rotation reaching majority
    when: it lands
    then: the group includes them AND Administrator is issued, with the SAID recorded
  - given: a demotion of someone who held Administrator before the promotion
    when: the reverse lands
    then: nothing is revoked and the screen says they keep the control panel
depends_on: [issue-and-revoke-from-the-panel]
out_of_scope: [any change to the rotation's threshold or co-sign mechanics]
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 18, 19, 20) - **Design:** ADR 0286 d.4, d.5 · flow `docs/ux/flows/administrator-credential.mermaid` - **Wayfinder map:** #1293 ## What to build A steward always has a panel, and a demotion never takes away access it did not grant. **Promotion (AC-P1).** When a rotation reaches its majority, two things land in one act: the community group identity includes the member, **and** the promotion issues them Administrator. The outcome names both, with the **issued credential's SAID on the face** — because it is load-bearing, not decoration: the rotation record carries it, and the reverse rotation revokes exactly it. **Demotion (AC-P2), two cases.** If the Administrator came from the promotion, the reverse rotation revokes that SAID and the screen says the panel and the services are closed to them — they are still a member. If they **held Administrator before** being promoted, the promotion issued nothing, so the demotion revokes nothing: the screen says *they keep the control panel*, explains why, and offers *Revoke Administrator too* as a separate act rather than performing it. Anywhere a member is described, the two facts — holds Administrator, is a steward — are shown separately, each with its own act. ## Acceptance criteria - [ ] **Given** a rotation that reaches the majority, **when** it lands, **then** the group identity includes the member **and** Administrator has been issued to them. - [ ] **Given** that landing, **when** AC-P1 renders, **then** it names both facts and shows the issued credential's SAID. - [ ] **Given** the rotation record, **when** it is read afterwards, **then** it carries that SAID. - [ ] **Given** a demotion of someone whose Administrator came from their promotion, **when** the reverse rotation lands, **then** exactly that credential is revoked and AC-P2 says the panel and services are closed while they remain a member. - [ ] **Given** a demotion of someone who held Administrator **before** the promotion, **when** the reverse lands, **then** **nothing is revoked**, and AC-P2's second frame says they keep the control panel and offers the separate revoke. - [ ] **Given** a member's detail, **when** it renders, **then** holding Administrator and being a steward appear as distinct facts with distinct acts. - [ ] Proven at `internal/keria`'s rotation/registry tests (the SAID recorded, the reverse revoking exactly it, the pre-held case revoking nothing) and the dashboard's unit seam for both frames. ## Blocked by - 3/8 — the issue and revoke paths the rotation drives. ## Task manifest ```yaml task: promotion-issues-demotion-revokes-exactly-it implements_flow: administrator-credential implements_edge: "S9 -> P1, S9 -> P2, P2 -> A1 (kept)" wireframe: - docs/ux/wireframes/administrator-credential/ac-p1-steward-now.html - docs/ux/wireframes/administrator-credential/ac-p2-no-longer-a-steward.html interface: | the rotation record carries the SAID of the Administrator the promotion issued the reverse rotation revokes that SAID and nothing else seam: internal/keria rotation + registry tests; dashboard/tests/unit for both outcome frames acceptance: - given: a rotation reaching majority when: it lands then: the group includes them AND Administrator is issued, with the SAID recorded - given: a demotion of someone who held Administrator before the promotion when: the reverse lands then: nothing is revoked and the screen says they keep the control panel depends_on: [issue-and-revoke-from-the-panel] out_of_scope: [any change to the rotation's threshold or co-sign mechanics] 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=elitebook-distributed-server-03 run=34729
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=34729 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1954 — status success

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

envelope
{
  "issue": 1954,
  "status": "success",
  "commits": [
    "54e671e0abb80b2afdcd7d891d05e0a27141ad86"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/idip.test.ts",
    "dashboard/src/components/members/IdipRosterPanel.vue",
    "dashboard/src/components/members/RotationOutcome.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/stewardRotation.ts",
    "dashboard/tests/unit/idipRotation.test.ts",
    "dashboard/tests/unit/rotationOutcome.test.ts",
    "internal/keria/adapter.go",
    "internal/keria/promotion_administrator_test.go",
    "internal/keria/registry.go",
    "internal/keria/rotations.go",
    "internal/keriawire/wire.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "go test ./internal/keria/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/keria/... ./internal/keriawire/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/rotationOutcome.test.ts tests/unit/idipRotation.test.ts (dashboard)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/e2e/fixtures/idip.test.ts (app)",
      "exit_code": 0
    },
    {
      "command": "node packages/openapi-spec/scripts/generate-client.mjs --check",
      "exit_code": 0
    }
  ],
  "criteria": {
    "rotation reaching majority: group includes them AND Administrator issued, SAID recorded": "internal/keria/adapter.go land() calls Registry.Promote + Registry.SettlePromotionAdministrator and sets r.AdministratorSAID; proven by TestRotationAdapter_PromotionIssuesAdministratorAndRecordsSAID (promotion_administrator_test.go)",
    "AC-P1 names both facts and shows the issued credential's SAID": "dashboard/src/components/members/RotationOutcome.vue promotion-landed frame (promotion-signing + administrator-issued-by-promotion + administrator-said); proven by rotationOutcome.test.ts AC-P1 tests and idipRotation.test.ts",
    "rotation record read afterwards carries that SAID": "StewardRotation.AdministratorSAID (rotations.go) + StewardRotationView.administrator_said (wire.go/openapi); returned view carries it, proven by TestRotationAdapter_PromotionIssuesAdministratorAndRecordsSAID",
    "demotion of promotion-issued: exactly that credential revoked, AC-P2 says panel+services closed while still a member": "Registry.RevokePromotionAdministrator (registry.go) revokes exactly the ByPromotion SAID; RotationOutcome.vue demotion-administrator-revoked frame; proven by TestRotationAdapter_DemotionRevokesExactlyThePromotionSAID and rotationOutcome.test.ts AC-P2 revoked",
    "demotion of pre-held: nothing revoked, AC-P2 second frame keeps the panel + offers separate revoke": "SettlePromotionAdministrator issues nothing over a pre-held admin; RevokePromotionAdministrator leaves a non-ByPromotion admin; RotationOutcome.vue demotion-administrator-kept + data-action=revoke-administrator; proven by TestRotationAdapter_DemotionOfPreHeldKeepsAdministrator and rotationOutcome.test.ts AC-P2 kept",
    "member detail: holding Administrator and being a steward are distinct facts with distinct acts": "RotationOutcome frames name each fact separately with its own act; the panel routes both open-member-detail and revoke-administrator to the member detail where the held-Administrator revoke (from #1951) lives distinctly from the steward remove act",
    "proven at internal/keria rotation/registry tests and dashboard unit seam for both frames": "internal/keria/promotion_administrator_test.go (registry + RotationAdapter landing) and dashboard/tests/unit/rotationOutcome.test.ts (both frames)"
  },
  "binds": [
    {
      "symbol": "administrator_said",
      "defined_in": "internal/keriawire/wire.go"
    }
  ],
  "summary": "A steward-set promotion issues Administrator and records its SAID on the rotation; the reverse revokes exactly that SAID, leaving a pre-held Administrator untouched, with the AC-P1/AC-P2 outcome frames.",
  "blockers": []
}
**close-report** for #1954 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1954, "status": "success", "commits": [ "54e671e0abb80b2afdcd7d891d05e0a27141ad86" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/idip.test.ts", "dashboard/src/components/members/IdipRosterPanel.vue", "dashboard/src/components/members/RotationOutcome.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/stewardRotation.ts", "dashboard/tests/unit/idipRotation.test.ts", "dashboard/tests/unit/rotationOutcome.test.ts", "internal/keria/adapter.go", "internal/keria/promotion_administrator_test.go", "internal/keria/registry.go", "internal/keria/rotations.go", "internal/keriawire/wire.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "go test ./internal/keria/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/keria/... ./internal/keriawire/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "npx vitest run tests/unit/rotationOutcome.test.ts tests/unit/idipRotation.test.ts (dashboard)", "exit_code": 0 }, { "command": "npx vitest run tests/e2e/fixtures/idip.test.ts (app)", "exit_code": 0 }, { "command": "node packages/openapi-spec/scripts/generate-client.mjs --check", "exit_code": 0 } ], "criteria": { "rotation reaching majority: group includes them AND Administrator issued, SAID recorded": "internal/keria/adapter.go land() calls Registry.Promote + Registry.SettlePromotionAdministrator and sets r.AdministratorSAID; proven by TestRotationAdapter_PromotionIssuesAdministratorAndRecordsSAID (promotion_administrator_test.go)", "AC-P1 names both facts and shows the issued credential's SAID": "dashboard/src/components/members/RotationOutcome.vue promotion-landed frame (promotion-signing + administrator-issued-by-promotion + administrator-said); proven by rotationOutcome.test.ts AC-P1 tests and idipRotation.test.ts", "rotation record read afterwards carries that SAID": "StewardRotation.AdministratorSAID (rotations.go) + StewardRotationView.administrator_said (wire.go/openapi); returned view carries it, proven by TestRotationAdapter_PromotionIssuesAdministratorAndRecordsSAID", "demotion of promotion-issued: exactly that credential revoked, AC-P2 says panel+services closed while still a member": "Registry.RevokePromotionAdministrator (registry.go) revokes exactly the ByPromotion SAID; RotationOutcome.vue demotion-administrator-revoked frame; proven by TestRotationAdapter_DemotionRevokesExactlyThePromotionSAID and rotationOutcome.test.ts AC-P2 revoked", "demotion of pre-held: nothing revoked, AC-P2 second frame keeps the panel + offers separate revoke": "SettlePromotionAdministrator issues nothing over a pre-held admin; RevokePromotionAdministrator leaves a non-ByPromotion admin; RotationOutcome.vue demotion-administrator-kept + data-action=revoke-administrator; proven by TestRotationAdapter_DemotionOfPreHeldKeepsAdministrator and rotationOutcome.test.ts AC-P2 kept", "member detail: holding Administrator and being a steward are distinct facts with distinct acts": "RotationOutcome frames name each fact separately with its own act; the panel routes both open-member-detail and revoke-administrator to the member detail where the held-Administrator revoke (from #1951) lives distinctly from the steward remove act", "proven at internal/keria rotation/registry tests and dashboard unit seam for both frames": "internal/keria/promotion_administrator_test.go (registry + RotationAdapter landing) and dashboard/tests/unit/rotationOutcome.test.ts (both frames)" }, "binds": [ { "symbol": "administrator_said", "defined_in": "internal/keriawire/wire.go" } ], "summary": "A steward-set promotion issues Administrator and records its SAID on the rotation; the reverse revokes exactly that SAID, leaving a pre-held Administrator untouched, with the AC-P1/AC-P2 outcome frames.", "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#1954
No description provided.