idip-credentials: T8 — add a steward: majority rotation, co-sign strip, solo nudge (S9i) #1085

Closed
opened 2026-08-31 18:33:48 +00:00 by ben · 2 comments
Owner

Parent

Spec #1074 (IDIP Members credentials; DDR 0217). Source ticket #1065.

What to build

'Make a steward' on S4i starts the majority rotation (shipped add-rotate driver wired through the bundle): at 1-of-1 it lands on the founder's single signature; at N>1 the Members-tab strip shows the pending rotation to signed-in stewards who co-sign from S9i (co-sign table, majority line). Landing re-issues the member's Membership as role: operator then revokes the old one — never in neither group; operators tracks the steward set; rescue's operator-key mint is invoked and reported honestly (pending while rescue's engine adapters rest — never a fabricated key, ADR 0100). Pending rotations: cancellable by any steward, never auto-expire, one at a time; the promoted member sees nothing until it lands (DDR 0217 ruling 7).

Acceptance criteria

  • 1-of-1: promote lands immediately; the new steward can sign in and approve a member
  • N>1: strip appears for other stewards; sub-majority changes nothing and issues nothing (driver seam pins); last signature lands rotation + re-issue ordering
  • Cancel by any steward leaves everything unchanged; a second rotation is refused while one waits (named)
  • Solo nudge shows at 1-of-1 with the honest why; gone at two stewards
  • Operator-key mint called via rescue's ledger; surface shows pending/failed honestly while adapters unwired
  • The promoted member's surfaces are unchanged until landing

Blocked by

Task manifest

task: idip-credentials-add-steward
implements_flow: p6-members-idip
implements_edge: "S4i → S9i → S4i / S1i edges + strip"
wireframe: docs/ux/wireframes/p6-members-idip/p6-s9i-pending-rotation.html + p6-s1i-members.html (strip, nudge)
seam: stewardAddRotate driver seam (shipped tests extended) + rotation-state routes contract tests
depends_on: [idip-credentials:T2]
out_of_scope: [credential-gated presentation (#1063), custom fields, kanidm-path changes, rescue engine adapters]
needs_human_decision: []
## Parent Spec #1074 (IDIP Members credentials; DDR 0217). Source ticket #1065. ## What to build 'Make a steward' on S4i starts the majority rotation (shipped add-rotate driver wired through the bundle): at 1-of-1 it lands on the founder's single signature; at N>1 the Members-tab strip shows the pending rotation to signed-in stewards who co-sign from S9i (co-sign table, majority line). Landing re-issues the member's Membership as role: operator then revokes the old one — never in neither group; operators tracks the steward set; rescue's operator-key mint is invoked and reported honestly (pending while rescue's engine adapters rest — never a fabricated key, ADR 0100). Pending rotations: cancellable by any steward, never auto-expire, one at a time; the promoted member sees nothing until it lands (DDR 0217 ruling 7). ## Acceptance criteria - [ ] 1-of-1: promote lands immediately; the new steward can sign in and approve a member - [ ] N>1: strip appears for other stewards; sub-majority changes nothing and issues nothing (driver seam pins); last signature lands rotation + re-issue ordering - [ ] Cancel by any steward leaves everything unchanged; a second rotation is refused while one waits (named) - [ ] Solo nudge shows at 1-of-1 with the honest why; gone at two stewards - [ ] Operator-key mint called via rescue's ledger; surface shows pending/failed honestly while adapters unwired - [ ] The promoted member's surfaces are unchanged until landing ## Blocked by - #1079 (T2) ## Task manifest ```yaml task: idip-credentials-add-steward implements_flow: p6-members-idip implements_edge: "S4i → S9i → S4i / S1i edges + strip" wireframe: docs/ux/wireframes/p6-members-idip/p6-s9i-pending-rotation.html + p6-s1i-members.html (strip, nudge) seam: stewardAddRotate driver seam (shipped tests extended) + rotation-state routes contract tests depends_on: [idip-credentials:T2] out_of_scope: [credential-gated presentation (#1063), custom fields, kanidm-path changes, rescue engine adapters] needs_human_decision: [] ```

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

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

close-report for #1085 — status success

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

envelope
{
  "issue": 1085,
  "status": "success",
  "commits": [
    "8371d613c3df6307fa94e8b15efa2b8256697182"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/unit/stewardAddRotate.test.ts",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/IdipRosterPanel.vue",
    "dashboard/src/components/members/MembersSurface.vue",
    "dashboard/src/components/members/PendingRotationScreen.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/stewardRotationClient.ts",
    "dashboard/src/lib/mountRegistry.ts",
    "dashboard/src/lib/stewardRotation.ts",
    "dashboard/tests/unit/idipRotation.test.ts",
    "dashboard/tests/unit/stewardRotation.test.ts",
    "internal/controlapi/idip_stewards.go",
    "internal/controlapi/idip_stewards_test.go",
    "internal/keria/adapter.go",
    "internal/keria/registry.go",
    "internal/keria/rotation_adapter_test.go",
    "internal/keria/rotations.go",
    "internal/keria/rotations_test.go",
    "internal/keriawire/wire.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/keria/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/keria/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "node packages/openapi-spec/scripts/generate-client.mjs --check",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p dashboard/tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (dashboard, 1314 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run app/tests/unit/stewardAddRotate.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "1-of-1: promote lands immediately; the new steward can sign in and approve a member": "keria.Rotations.Start lands on the starter's single signature at threshold 1 and Registry.Promote flips role->operator (TestRotation_SoloLandsImmediately, TestRotationAdapter_SoloLandsPromotesAndMintPending); dashboard S4i Make-a-steward lands in one call (idipRotation.test.ts '1-of-1 lands immediately')",
    "N>1: strip appears for other stewards; sub-majority changes nothing and issues nothing (driver seam pins); last signature lands rotation + re-issue ordering": "GET envelope serves the pending strip, sub-majority co-sign changes nothing until threshold (TestStewardRotation_StripAndCosignToMajority, TestRotation_SubMajorityChangesNothingThenLands); the re-issue-then-revoke ordering + issues-nothing-sub-majority stay pinned by the shipped stewardAddRotate.ts seam tests",
    "Cancel by any steward leaves everything unchanged; a second rotation is refused while one waits (named)": "Rotations.Cancel clears + fresh start allowed (TestRotation_CancelLeavesEverythingUnchanged); a distinct steward cancels via the route (TestStewardRotation_CancelByAnySteward); ErrRotationPending -> 409 named (TestRotation_OneAtATime, TestStewardRotation_SecondRefused409, TestRotationAdapter_OneAtATimeIsAWireConflict)",
    "Solo nudge shows at 1-of-1 with the honest why; gone at two stewards": "soloStewardNudge + the S1i solo-steward-nudge shown at 1 operator, gone at two (stewardRotation.test.ts, idipRotation.test.ts 'solo nudge')",
    "Operator-key mint called via rescue's ledger; surface shows pending/failed honestly while adapters unwired": "RotationAdapter.mint invokes OperatorKeyMinter (rescue.Keyring.GrantOperator shape); nil minter reports pending, a fault reports failed, never a fabricated key (TestRotationAdapter_WiredMinterReportsMinted / _MintFailureReportedHonestly / _SoloLandsPromotesAndMintPending, ADR 0100); S9i surfaces operator-key-mint-<status>",
    "The promoted member's surfaces are unchanged until landing": "Registry.Promote runs only on the landing call; a sub-majority rotation leaves the member role: member (TestRotationAdapter_OneAtATimeIsAWireConflict asserts Hana still member); the strip/S9i are steward-only chrome and the member row is untouched pre-land"
  },
  "summary": "Add-a-steward as the majority co-signed rotation: a cross-steward rotation-state store + four operator-gated routes, the S1i strip + solo nudge + S4i Make-a-steward + S9i co-sign screen, promotion to operator on land, and rescue's operator-key mint reported honestly pending while its adapters rest.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1085 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1085, "status": "success", "commits": [ "8371d613c3df6307fa94e8b15efa2b8256697182" ], "changed_files": [ "STATUS.md", "app/tests/unit/stewardAddRotate.test.ts", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/IdipRosterPanel.vue", "dashboard/src/components/members/MembersSurface.vue", "dashboard/src/components/members/PendingRotationScreen.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/stewardRotationClient.ts", "dashboard/src/lib/mountRegistry.ts", "dashboard/src/lib/stewardRotation.ts", "dashboard/tests/unit/idipRotation.test.ts", "dashboard/tests/unit/stewardRotation.test.ts", "internal/controlapi/idip_stewards.go", "internal/controlapi/idip_stewards_test.go", "internal/keria/adapter.go", "internal/keria/registry.go", "internal/keria/rotation_adapter_test.go", "internal/keria/rotations.go", "internal/keria/rotations_test.go", "internal/keriawire/wire.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/keria/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/keria/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "node packages/openapi-spec/scripts/generate-client.mjs --check", "exit_code": 0 }, { "command": "npx vue-tsc -p dashboard/tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx vitest run (dashboard, 1314 tests)", "exit_code": 0 }, { "command": "npx vitest run app/tests/unit/stewardAddRotate.test.ts", "exit_code": 0 } ], "criteria": { "1-of-1: promote lands immediately; the new steward can sign in and approve a member": "keria.Rotations.Start lands on the starter's single signature at threshold 1 and Registry.Promote flips role->operator (TestRotation_SoloLandsImmediately, TestRotationAdapter_SoloLandsPromotesAndMintPending); dashboard S4i Make-a-steward lands in one call (idipRotation.test.ts '1-of-1 lands immediately')", "N>1: strip appears for other stewards; sub-majority changes nothing and issues nothing (driver seam pins); last signature lands rotation + re-issue ordering": "GET envelope serves the pending strip, sub-majority co-sign changes nothing until threshold (TestStewardRotation_StripAndCosignToMajority, TestRotation_SubMajorityChangesNothingThenLands); the re-issue-then-revoke ordering + issues-nothing-sub-majority stay pinned by the shipped stewardAddRotate.ts seam tests", "Cancel by any steward leaves everything unchanged; a second rotation is refused while one waits (named)": "Rotations.Cancel clears + fresh start allowed (TestRotation_CancelLeavesEverythingUnchanged); a distinct steward cancels via the route (TestStewardRotation_CancelByAnySteward); ErrRotationPending -> 409 named (TestRotation_OneAtATime, TestStewardRotation_SecondRefused409, TestRotationAdapter_OneAtATimeIsAWireConflict)", "Solo nudge shows at 1-of-1 with the honest why; gone at two stewards": "soloStewardNudge + the S1i solo-steward-nudge shown at 1 operator, gone at two (stewardRotation.test.ts, idipRotation.test.ts 'solo nudge')", "Operator-key mint called via rescue's ledger; surface shows pending/failed honestly while adapters unwired": "RotationAdapter.mint invokes OperatorKeyMinter (rescue.Keyring.GrantOperator shape); nil minter reports pending, a fault reports failed, never a fabricated key (TestRotationAdapter_WiredMinterReportsMinted / _MintFailureReportedHonestly / _SoloLandsPromotesAndMintPending, ADR 0100); S9i surfaces operator-key-mint-<status>", "The promoted member's surfaces are unchanged until landing": "Registry.Promote runs only on the landing call; a sub-majority rotation leaves the member role: member (TestRotationAdapter_OneAtATimeIsAWireConflict asserts Hana still member); the strip/S9i are steward-only chrome and the member row is untouched pre-land" }, "summary": "Add-a-steward as the majority co-signed rotation: a cross-steward rotation-state store + four operator-gated routes, the S1i strip + solo nudge + S4i Make-a-steward + S9i co-sign screen, promotion to operator on land, and rescue's operator-key mint reported honestly pending while its adapters rest.", "reason": "", "blockers": [], "no_code_change": "" } ``` </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#1085
No description provided.