idip-credentials: T2 — issue & revoke one credential + the session signing unlock (S7i/S4i) #1079

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

Parent

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

What to build

The first new signing surface. A steward issues a credential to an active member from S7i (or S4i) and revokes it singly; the member's OIDC groups claim gains/loses exactly committee: (ADR 0196 untouched). The twelve words are asked ONCE per dashboard session — the unlock primitive (DDR 0217 ruling 9): first signing act shows UNLOCK SIGNING, later acts show the unlocked chip with an explicit lock; the derived passcode lives in tab memory only, never any storage. Per-credential registry states mirror membership's escrow (pending-issue/issued/pending-revoke/revoked, receipt-gated); the anchor verbs generalise to any credential SAID.

Acceptance criteria

  • Issue from S7i: ceremony runs in-browser, the holder row appears only after witness receipt; the member's next token carries committee:
  • Revoke from S4i or S7i: membership stands; the claim is gone at next refresh; a restricted door closes
  • Unlock asked at first signing act only; unlocked chip + lock affordance thereafter; lock or tab close re-asks (driver seam: fake store asserts NO persistence call ever)
  • IsIssued for a credential reads true only between receipt-confirmed issue and receipt-confirmed revoke (adapter escrow tests mirror membership's)
  • Every ceremony names exactly what is being signed (issue X to Y / revoke Z)
  • Membership itself is not singly revocable from these surfaces (standing moves own it)

Blocked by

Task manifest

task: idip-credentials-issue-revoke-unlock
implements_flow: p6-members-idip
implements_edge: "S7i → S4i (issues it / revokes one credential edges)"
wireframe: docs/ux/wireframes/p6-members-idip/p6-s7i-credential-detail.html + p6-s4i-member-detail.html
seam: renderer driver seam (fake KERI client + anchor ports; komitiCredentials driver wired) + adapter registry seam + contract tests
depends_on: [idip-credentials:T1]
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 #1061. ## What to build The first new signing surface. A steward issues a credential to an active member from S7i (or S4i) and revokes it singly; the member's OIDC groups claim gains/loses exactly committee:<slug> (ADR 0196 untouched). The twelve words are asked ONCE per dashboard session — the unlock primitive (DDR 0217 ruling 9): first signing act shows UNLOCK SIGNING, later acts show the unlocked chip with an explicit lock; the derived passcode lives in tab memory only, never any storage. Per-credential registry states mirror membership's escrow (pending-issue/issued/pending-revoke/revoked, receipt-gated); the anchor verbs generalise to any credential SAID. ## Acceptance criteria - [ ] Issue from S7i: ceremony runs in-browser, the holder row appears only after witness receipt; the member's next token carries committee:<slug> - [ ] Revoke from S4i or S7i: membership stands; the claim is gone at next refresh; a restricted door closes - [ ] Unlock asked at first signing act only; unlocked chip + lock affordance thereafter; lock or tab close re-asks (driver seam: fake store asserts NO persistence call ever) - [ ] IsIssued for a credential reads true only between receipt-confirmed issue and receipt-confirmed revoke (adapter escrow tests mirror membership's) - [ ] Every ceremony names exactly what is being signed (issue X to Y / revoke Z) - [ ] Membership itself is not singly revocable from these surfaces (standing moves own it) ## Blocked by - #1078 (T1) ## Task manifest ```yaml task: idip-credentials-issue-revoke-unlock implements_flow: p6-members-idip implements_edge: "S7i → S4i (issues it / revokes one credential edges)" wireframe: docs/ux/wireframes/p6-members-idip/p6-s7i-credential-detail.html + p6-s4i-member-detail.html seam: renderer driver seam (fake KERI client + anchor ports; komitiCredentials driver wired) + adapter registry seam + contract tests depends_on: [idip-credentials:T1] 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=15297
(automated multi-host claim — lowest live claim id works this ticket)

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

close-report for #1079 — status success

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

envelope
{
  "issue": 1079,
  "status": "success",
  "commits": [
    "e02033a5954e69f6fb796c312eeeef2c61d11efe"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/src/lib/identityLegs.ts",
    "app/src/lib/sessionUnlock.ts",
    "app/tests/unit/sessionUnlock.test.ts",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/CredentialsSurface.vue",
    "dashboard/src/components/members/IdipMemberCredentials.vue",
    "dashboard/src/components/members/IdipRosterPanel.vue",
    "dashboard/src/components/members/MembersSurface.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/idipCredentialsClient.ts",
    "dashboard/src/lib/idip.ts",
    "dashboard/src/lib/idipCredentials.ts",
    "dashboard/src/lib/signingSession.ts",
    "dashboard/tests/unit/credentialsSurface.test.ts",
    "dashboard/tests/unit/idipMemberCredentials.test.ts",
    "internal/controlapi/idip_credentials.go",
    "internal/controlapi/idip_credentials_test.go",
    "internal/keria/adapter.go",
    "internal/keria/held_credentials_test.go",
    "internal/keria/registry.go",
    "internal/keriawire/wire.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/keria/ ./internal/controlapi/ ./internal/keriawire/ ./internal/credschema/",
      "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/... ./internal/keriawire/...",
      "exit_code": 0
    },
    {
      "command": "node packages/openapi-spec/scripts/generate-client.mjs --check",
      "exit_code": 0
    },
    {
      "command": "dashboard: vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "dashboard: vitest run (1306 tests)",
      "exit_code": 0
    },
    {
      "command": "app: vitest run tests/unit/sessionUnlock.test.ts",
      "exit_code": 0
    },
    {
      "command": "eslint (changed files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Issue from S7i: ceremony runs in-browser, the holder row appears only after witness receipt; the member's next token carries committee:<slug>": "CredentialsSurface.vue issue-to-member drives the steward bundle's issue() over KomitiCredentialDriver (committee ACDC, COMMITTEE_SCHEMA_SAID) in the browser, then records anchor+confirm; Registry.Holders(slug) excludes pending-issue (holder row only after ConfirmReceipt) — TestHeldCredential_HoldersFollowReceipts + credentialsSurface.test.ts 'unlock once, then issue'.",
    "Revoke from S4i or S7i: membership stands; the claim is gone at next refresh; a restricted door closes": "revoke-holder (S7i) and revoke-credential-<slug> (S4i IdipMemberCredentials.vue) drive bundle.revoke(); Registry.AnchorCredentialRevocation → pending-revoke → ConfirmReceipt → IsIssued false; membership untouched — TestHeldCredential_IsIssuedFlipsOnlyAfterReceipt + the two revoke vitest tests.",
    "Unlock asked at first signing act only; unlocked chip + lock affordance thereafter; lock or tab close re-asks (driver seam: fake store asserts NO persistence call ever)": "app/src/lib/sessionUnlock.ts holds the passcode in tab memory only, handed a PersistenceStore it never touches; sessionUnlock.test.ts asserts rec.calls === 0 across unlock/sign/lock/re-unlock; the S7i/S4i signing strip shows UNLOCK SIGNING then the unlocked chip + explicit lock (data-status signing-locked/signing-unlocked).",
    "IsIssued for a credential reads true only between receipt-confirmed issue and receipt-confirmed revoke (adapter escrow tests mirror membership's)": "Registry.IsIssued generalised to Held credentials over the same CredentialState.issued() gate — TestHeldCredential_IsIssuedFlipsOnlyAfterReceipt (mirrors TestIsIssued_FlipsOnlyAfterWitnessReceipt).",
    "Every ceremony names exactly what is being signed (issue X to Y / revoke Z)": "the bundle's issue/revoke status lines and the S7i/S4i data-field=ceremony-names ('issue <credential> to <member>') name the act; credentialsSurface + idipMemberCredentials tests assert the ceremony-names text.",
    "Membership itself is not singly revocable from these surfaces (standing moves own it)": "membership SAID is never a HeldCredential, so AnchorCredentialRevocation refuses it (ErrNotHeld) and the control-API revoke words it 409 — TestHeldCredential_MembershipNotSinglyRevocable + TestIdipCredentials_IssueRevokeReads; the S4i held-membership row carries the 'never revoked singly' chip and no revoke action."
  },
  "summary": "Shipped idip-credentials T2: per-credential escrow generalisation (IsIssued/holders/held), the operator-gated issue/revoke control-API, the once-per-session tab-memory signing unlock, and the S7i/S4i issue+revoke screens behind one shared unlock.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1079 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1079, "status": "success", "commits": [ "e02033a5954e69f6fb796c312eeeef2c61d11efe" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/src/lib/identityLegs.ts", "app/src/lib/sessionUnlock.ts", "app/tests/unit/sessionUnlock.test.ts", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/CredentialsSurface.vue", "dashboard/src/components/members/IdipMemberCredentials.vue", "dashboard/src/components/members/IdipRosterPanel.vue", "dashboard/src/components/members/MembersSurface.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/idipCredentialsClient.ts", "dashboard/src/lib/idip.ts", "dashboard/src/lib/idipCredentials.ts", "dashboard/src/lib/signingSession.ts", "dashboard/tests/unit/credentialsSurface.test.ts", "dashboard/tests/unit/idipMemberCredentials.test.ts", "internal/controlapi/idip_credentials.go", "internal/controlapi/idip_credentials_test.go", "internal/keria/adapter.go", "internal/keria/held_credentials_test.go", "internal/keria/registry.go", "internal/keriawire/wire.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/keria/ ./internal/controlapi/ ./internal/keriawire/ ./internal/credschema/", "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/... ./internal/keriawire/...", "exit_code": 0 }, { "command": "node packages/openapi-spec/scripts/generate-client.mjs --check", "exit_code": 0 }, { "command": "dashboard: vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "dashboard: vitest run (1306 tests)", "exit_code": 0 }, { "command": "app: vitest run tests/unit/sessionUnlock.test.ts", "exit_code": 0 }, { "command": "eslint (changed files)", "exit_code": 0 } ], "criteria": { "Issue from S7i: ceremony runs in-browser, the holder row appears only after witness receipt; the member's next token carries committee:<slug>": "CredentialsSurface.vue issue-to-member drives the steward bundle's issue() over KomitiCredentialDriver (committee ACDC, COMMITTEE_SCHEMA_SAID) in the browser, then records anchor+confirm; Registry.Holders(slug) excludes pending-issue (holder row only after ConfirmReceipt) — TestHeldCredential_HoldersFollowReceipts + credentialsSurface.test.ts 'unlock once, then issue'.", "Revoke from S4i or S7i: membership stands; the claim is gone at next refresh; a restricted door closes": "revoke-holder (S7i) and revoke-credential-<slug> (S4i IdipMemberCredentials.vue) drive bundle.revoke(); Registry.AnchorCredentialRevocation → pending-revoke → ConfirmReceipt → IsIssued false; membership untouched — TestHeldCredential_IsIssuedFlipsOnlyAfterReceipt + the two revoke vitest tests.", "Unlock asked at first signing act only; unlocked chip + lock affordance thereafter; lock or tab close re-asks (driver seam: fake store asserts NO persistence call ever)": "app/src/lib/sessionUnlock.ts holds the passcode in tab memory only, handed a PersistenceStore it never touches; sessionUnlock.test.ts asserts rec.calls === 0 across unlock/sign/lock/re-unlock; the S7i/S4i signing strip shows UNLOCK SIGNING then the unlocked chip + explicit lock (data-status signing-locked/signing-unlocked).", "IsIssued for a credential reads true only between receipt-confirmed issue and receipt-confirmed revoke (adapter escrow tests mirror membership's)": "Registry.IsIssued generalised to Held credentials over the same CredentialState.issued() gate — TestHeldCredential_IsIssuedFlipsOnlyAfterReceipt (mirrors TestIsIssued_FlipsOnlyAfterWitnessReceipt).", "Every ceremony names exactly what is being signed (issue X to Y / revoke Z)": "the bundle's issue/revoke status lines and the S7i/S4i data-field=ceremony-names ('issue <credential> to <member>') name the act; credentialsSurface + idipMemberCredentials tests assert the ceremony-names text.", "Membership itself is not singly revocable from these surfaces (standing moves own it)": "membership SAID is never a HeldCredential, so AnchorCredentialRevocation refuses it (ErrNotHeld) and the control-API revoke words it 409 — TestHeldCredential_MembershipNotSinglyRevocable + TestIdipCredentials_IssueRevokeReads; the S4i held-membership row carries the 'never revoked singly' chip and no revoke action." }, "summary": "Shipped idip-credentials T2: per-credential escrow generalisation (IsIssued/holders/held), the operator-gated issue/revoke control-API, the once-per-session tab-memory signing unlock, and the S7i/S4i issue+revoke screens behind one shared unlock.", "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#1079
No description provided.