idip-credentials: T6 — standing II: remove + removal-incomplete + steward guard (S6i/S6x) #1083

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

Parent

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

What to build

Removal revokes EVERY credential in one ceremony (access ends first), then walks the per-service fate list (ADR 0075 unchanged), then archives the roster entry — with the honest identity-persists copy. An incomplete removal names each un-receipted revocation and each failed fate verb separately and retryably. Removing a steward-member is refused until they are rotated out (reads the steward set; the S9i rotation itself is T8/T9).

Acceptance criteria

  • Remove: revocations run first (Membership then the rest), each receipt-gated; fate verbs after; archive only when all complete
  • S6x names pending revocations ('anchored — waiting on the witness receipt') and failed fates separately; retry completes → S1i
  • Identity-persists copy shown (AID/KELs are not the community's to erase); re-admission later = fresh invitation
  • A steward-member's removal is refused with the rotate-out-first message (steward-remove-blocked contract)
  • No recovery-share warning surface exists on IDIP (ruling 8 — the steward guard replaces it)

Blocked by

Task manifest

task: idip-credentials-remove-fates
implements_flow: p6-members-idip
implements_edge: "S4i → S6i → S6x self-edge"
wireframe: docs/ux/wireframes/p6-members-idip/p6-s6i-remove-member.html + p6-s6x-removal-incomplete.html
seam: revocation-composition driver seam + adapter remove/archive tests + fate-verb reuse (member port) contract tests
depends_on: [idip-credentials:T5]
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 #1064. ## What to build Removal revokes EVERY credential in one ceremony (access ends first), then walks the per-service fate list (ADR 0075 unchanged), then archives the roster entry — with the honest identity-persists copy. An incomplete removal names each un-receipted revocation and each failed fate verb separately and retryably. Removing a steward-member is refused until they are rotated out (reads the steward set; the S9i rotation itself is T8/T9). ## Acceptance criteria - [ ] Remove: revocations run first (Membership then the rest), each receipt-gated; fate verbs after; archive only when all complete - [ ] S6x names pending revocations ('anchored — waiting on the witness receipt') and failed fates separately; retry completes → S1i - [ ] Identity-persists copy shown (AID/KELs are not the community's to erase); re-admission later = fresh invitation - [ ] A steward-member's removal is refused with the rotate-out-first message (steward-remove-blocked contract) - [ ] No recovery-share warning surface exists on IDIP (ruling 8 — the steward guard replaces it) ## Blocked by - #1082 (T5) ## Task manifest ```yaml task: idip-credentials-remove-fates implements_flow: p6-members-idip implements_edge: "S4i → S6i → S6x self-edge" wireframe: docs/ux/wireframes/p6-members-idip/p6-s6i-remove-member.html + p6-s6x-removal-incomplete.html seam: revocation-composition driver seam + adapter remove/archive tests + fate-verb reuse (member port) contract tests depends_on: [idip-credentials:T5] 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=15321
(automated multi-host claim — lowest live claim id works this ticket)

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

close-report for #1083 — status success

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

envelope
{
  "issue": 1083,
  "status": "success",
  "commits": [
    "e3895791"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/src/lib/memberRemoval.ts",
    "app/tests/unit/memberRemoval.test.ts",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/IdipRosterPanel.vue",
    "dashboard/src/components/members/RemovalIncompleteScreen.vue",
    "dashboard/src/components/members/RemoveMemberScreen.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/idipCredentialsClient.ts",
    "dashboard/src/lib/idip.ts",
    "dashboard/src/lib/idipCredentials.ts",
    "dashboard/tests/unit/credentialsSurface.test.ts",
    "dashboard/tests/unit/idipMemberCredentials.test.ts",
    "dashboard/tests/unit/removeMember.test.ts",
    "internal/controlapi/idip_removal.go",
    "internal/controlapi/idip_removal_test.go",
    "internal/keria/adapter.go",
    "internal/keria/registry.go",
    "internal/keria/removal.go",
    "internal/keria/removal_fatereuse_test.go",
    "internal/keria/removal_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 vet ./internal/keria/ ./internal/controlapi/ ./control-plane/cmd/control-plane/",
      "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": "dashboard: npx vue-tsc --noEmit && npx vitest run (1345)",
      "exit_code": 0
    },
    {
      "command": "app: npx vitest run tests/unit/memberRemoval.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Remove: revocations run first (Membership then the rest), each receipt-gated; fate verbs after; archive only when all complete": "internal/keria/removal.go Remove (gate.Deny first, revokeMembership then revokeHeld, runFatesAndFinalize archives only when allRevoked && fates complete); TestRemoval_RevokesEveryCredentialThenFatesThenArchives",
    "S6x names pending revocations ('anchored - waiting on the witness receipt') and failed fates separately; retry completes -> S1i": "RemovalIncompleteScreen.vue revoke-pending copy + fate-failed rows; keria RevokePendingCopy; TestRemoval_IncompleteNamesPendingRevocationAndFailedFateThenRetryCompletes; removeMember.test.ts S6x+retry",
    "Identity-persists copy shown (AID/KELs are not the community's to erase); re-admission later = fresh invitation": "keria RemovalIdentityPersistsCopy (Plan.IdentityCopy) rendered as identity-persists-note; TestRemoval_IdentityPersistsCopyIsHonest",
    "A steward-member's removal is refused with the rotate-out-first message (steward-remove-blocked contract)": "keria Removal.isSteward -> ErrStewardMustRotateOut + Plan.StewardBlocked/StewardRemoveBlockedCopy; TestRemoval_StewardMemberRefusedRotateOutFirst; TestIdipRemoval_StewardRefused; RemoveMemberScreen steward-remove-blocked",
    "No recovery-share warning surface exists on IDIP (ruling 8 - the steward guard replaces it)": "no share-holder field on RemovalPlan/RemovalPlanView/RemoveMemberScreen; documented in removal.go; the steward guard is the only advice-of-consequence surface"
  },
  "summary": "IDIP member removal (T6): revoke every credential in one receipt-gated ceremony, walk the reused ADR 0075 fate list, archive only when complete; steward-member refused until rotated out; S6i/S6x shipped.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1083 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1083, "status": "success", "commits": [ "e3895791" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/src/lib/memberRemoval.ts", "app/tests/unit/memberRemoval.test.ts", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/IdipRosterPanel.vue", "dashboard/src/components/members/RemovalIncompleteScreen.vue", "dashboard/src/components/members/RemoveMemberScreen.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/idipCredentialsClient.ts", "dashboard/src/lib/idip.ts", "dashboard/src/lib/idipCredentials.ts", "dashboard/tests/unit/credentialsSurface.test.ts", "dashboard/tests/unit/idipMemberCredentials.test.ts", "dashboard/tests/unit/removeMember.test.ts", "internal/controlapi/idip_removal.go", "internal/controlapi/idip_removal_test.go", "internal/keria/adapter.go", "internal/keria/registry.go", "internal/keria/removal.go", "internal/keria/removal_fatereuse_test.go", "internal/keria/removal_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 vet ./internal/keria/ ./internal/controlapi/ ./control-plane/cmd/control-plane/", "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": "dashboard: npx vue-tsc --noEmit && npx vitest run (1345)", "exit_code": 0 }, { "command": "app: npx vitest run tests/unit/memberRemoval.test.ts", "exit_code": 0 } ], "criteria": { "Remove: revocations run first (Membership then the rest), each receipt-gated; fate verbs after; archive only when all complete": "internal/keria/removal.go Remove (gate.Deny first, revokeMembership then revokeHeld, runFatesAndFinalize archives only when allRevoked && fates complete); TestRemoval_RevokesEveryCredentialThenFatesThenArchives", "S6x names pending revocations ('anchored - waiting on the witness receipt') and failed fates separately; retry completes -> S1i": "RemovalIncompleteScreen.vue revoke-pending copy + fate-failed rows; keria RevokePendingCopy; TestRemoval_IncompleteNamesPendingRevocationAndFailedFateThenRetryCompletes; removeMember.test.ts S6x+retry", "Identity-persists copy shown (AID/KELs are not the community's to erase); re-admission later = fresh invitation": "keria RemovalIdentityPersistsCopy (Plan.IdentityCopy) rendered as identity-persists-note; TestRemoval_IdentityPersistsCopyIsHonest", "A steward-member's removal is refused with the rotate-out-first message (steward-remove-blocked contract)": "keria Removal.isSteward -> ErrStewardMustRotateOut + Plan.StewardBlocked/StewardRemoveBlockedCopy; TestRemoval_StewardMemberRefusedRotateOutFirst; TestIdipRemoval_StewardRefused; RemoveMemberScreen steward-remove-blocked", "No recovery-share warning surface exists on IDIP (ruling 8 - the steward guard replaces it)": "no share-holder field on RemovalPlan/RemovalPlanView/RemoveMemberScreen; documented in removal.go; the steward guard is the only advice-of-consequence surface" }, "summary": "IDIP member removal (T6): revoke every credential in one receipt-gated ceremony, walk the reused ADR 0075 fate list, archive only when complete; steward-member refused until rotated out; S6i/S6x shipped.", "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#1083
No description provided.