idip-credentials: T3 — invite preset + merged approve form + multi-issue (S2i, S1i) #1080

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

Parent

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

What to build

Minting an invite picks the credential preset (Membership fixed, operator never offered); the pending-approvals section is grouped by invite with ONE merged approve form per member — credential picker pre-ticked from the preset and editable, Decline beside Sign-and-approve; approve-all signs once for the whole cohort issuing each member the preset as minted. Approval issues Membership first then each selected credential, each receipt-gated; partial failure = active member with the missing credential named and retryable on S4i (DDR 0217 rulings 4–5).

Acceptance criteria

  • S2i preset picker: Membership fixed; operator absent by construction; preset rides mint and shows on the invites box row
  • Approve form: preset pre-ticked, editable per member; a since-retired preset entry is dropped with the note
  • Approve-all: one unlock+ceremony approves everyone from the invite, each issued the preset as minted (no per-row edits in bulk)
  • Ordering: Membership first; a later credential failing leaves an ACTIVE member and the issuance-incomplete state on S4i with retry (driver seam pins ordering + partial surfacing)
  • Decline consumes the invite, archives the roster entry, shows the member no reason (S5x)
  • The retired standalone approve row is gone — the picker IS the approval form (wireframe contract)

Blocked by

Task manifest

task: idip-credentials-preset-approve-multiissue
implements_flow: p6-members-idip
implements_edge: "S1i approve edges + S2i → S3i"
wireframe: docs/ux/wireframes/p6-members-idip/p6-s2i-invite-preset.html + p6-s1i-members.html (pending-section)
seam: renderer multi-issue driver seam + invite-preset round-trip contract tests + adapter
depends_on: [idip-credentials:T1, 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 #1062. ## What to build Minting an invite picks the credential preset (Membership fixed, operator never offered); the pending-approvals section is grouped by invite with ONE merged approve form per member — credential picker pre-ticked from the preset and editable, Decline beside Sign-and-approve; approve-all signs once for the whole cohort issuing each member the preset as minted. Approval issues Membership first then each selected credential, each receipt-gated; partial failure = active member with the missing credential named and retryable on S4i (DDR 0217 rulings 4–5). ## Acceptance criteria - [ ] S2i preset picker: Membership fixed; operator absent by construction; preset rides mint and shows on the invites box row - [ ] Approve form: preset pre-ticked, editable per member; a since-retired preset entry is dropped with the note - [ ] Approve-all: one unlock+ceremony approves everyone from the invite, each issued the preset as minted (no per-row edits in bulk) - [ ] Ordering: Membership first; a later credential failing leaves an ACTIVE member and the issuance-incomplete state on S4i with retry (driver seam pins ordering + partial surfacing) - [ ] Decline consumes the invite, archives the roster entry, shows the member no reason (S5x) - [ ] The retired standalone approve row is gone — the picker IS the approval form (wireframe contract) ## Blocked by - #1078 (T1) - #1079 (T2) ## Task manifest ```yaml task: idip-credentials-preset-approve-multiissue implements_flow: p6-members-idip implements_edge: "S1i approve edges + S2i → S3i" wireframe: docs/ux/wireframes/p6-members-idip/p6-s2i-invite-preset.html + p6-s1i-members.html (pending-section) seam: renderer multi-issue driver seam + invite-preset round-trip contract tests + adapter depends_on: [idip-credentials:T1, 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=15324
(automated multi-host claim — lowest live claim id works this ticket)

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

close-report for #1080 — status success

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

envelope
{
  "issue": 1080,
  "status": "success",
  "commits": [
    "bea1b3e4"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/src/lib/memberApproval.ts",
    "app/tests/unit/memberApproval.test.ts",
    "dashboard/src/components/members/IdipRosterPanel.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/idipClient.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/idipRosterPanel.test.ts",
    "dashboard/tests/unit/removeMember.test.ts",
    "internal/controlapi/idip_roster.go",
    "internal/controlapi/idip_roster_test.go",
    "internal/controlapi/idip_standing.go",
    "internal/controlapi/idip_standing_test.go",
    "internal/controlapi/member_join_idip.go",
    "internal/controlapi/member_join_idip_integration_test.go",
    "internal/keria/adapter.go",
    "internal/keria/adapter_test.go",
    "internal/keria/invite.go",
    "internal/keria/invite_test.go",
    "internal/keria/registry.go",
    "internal/keria/stack_smoke_test.go",
    "internal/keria/standing.go",
    "internal/keria/view.go",
    "internal/keriawire/wire.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "go test ./internal/keria/... ./internal/controlapi/... ./internal/keriawire/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./...",
      "exit_code": 0
    },
    {
      "command": "pnpm --filter @idss/openapi-spec run check:client",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard + app)",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vitest run (dashboard, 1344 passed)",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vitest run tests/unit/memberApproval.test.ts (app)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "S2i preset picker: Membership fixed; operator absent by construction; preset rides mint and shows on the invites box row": "IdipRosterPanel.vue mint form data-field=credential-preset with preset-membership (checked+disabled) + preset-<slug> for issuableDefs (operator is never a credential definition, so absent by construction); mint() calls client.mintInvite({preset,multiUse}); openInvites row renders inviteSummary (Membership + preset · uses). keria.BootInvite.Preset round-trips (TestMint_PresetRoundTrips). Test: 'mints an invite with a credential preset ... shows the link once'.",
    "Approve form: preset pre-ticked, editable per member; a since-retired preset entry is dropped with the note": "issue-<slug> checkboxes v-model=selectionFor(aid), seeded from member.preset (pre-ticked, editable); retiredPresetNames() drops slugs not in issuableDefs and renders data-field=retired-preset-note. Tests: 'groups waiting members ... pre-ticked and editable', 'a since-retired preset entry is dropped with a note'.",
    "Approve-all: one unlock+ceremony approves everyone from the invite, each issued the preset as minted (no per-row edits in bulk)": "approveAll(group) loops the cohort using presetCredentials(m) (as minted, ignoring per-row edits) behind the one session unlock. Test: 'approve-all signs once for the cohort, each issued its preset AS MINTED'.",
    "Ordering: Membership first; a later credential failing leaves an ACTIVE member and the issuance-incomplete state on S4i with retry (driver seam pins ordering + partial surfacing)": "app/src/lib/memberApproval.ts approveWithCredentials issues Membership first (propagates on fault) then each credential caught-as-pending. Seam test memberApproval.test.ts ('issues Membership FIRST', 'a preset credential failing leaves an ACTIVE member ... retryable', 'a Membership fault propagates and issues NO credential'). Panel test 'partial issuance leaves an ACTIVE member with the missing credential named + retryable'; retry via the S4i IdipMemberCredentials '+ issue a credential'.",
    "Decline consumes the invite, archives the roster entry, shows the member no reason (S5x)": "Registry.Decline archives ONLY a waiting entry (nothing revoked); Standing/StandingAdapter.Decline; controlapi POST /idip/members/{aid}/decline (TestIdipStanding_Decline); a returning declined AID → keriawire.ErrDeclined → member_join_idip.renderNotApproved (data-status=not-approved, no reason). Panel Decline button → credentials.decline(aid) ('decline consumes the invite and archives the roster entry').",
    "The retired standalone approve row is gone — the picker IS the approval form (wireframe contract)": "IdipRosterPanel.vue rewritten: the standalone data-action=idip-approve row + phrase ceremony removed; the merged idip-approve-ceremony form (credential picker + idip-approve-sign + decline) IS the approval. No data-action=idip-approve remains."
  },
  "summary": "IDIP invites carry a credential preset that rides join to a merged approve form issuing Membership-first then the preset (receipt-gated, partial-safe), with decline and approve-all.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1080 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1080, "status": "success", "commits": [ "bea1b3e4" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/src/lib/memberApproval.ts", "app/tests/unit/memberApproval.test.ts", "dashboard/src/components/members/IdipRosterPanel.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/idipClient.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/idipRosterPanel.test.ts", "dashboard/tests/unit/removeMember.test.ts", "internal/controlapi/idip_roster.go", "internal/controlapi/idip_roster_test.go", "internal/controlapi/idip_standing.go", "internal/controlapi/idip_standing_test.go", "internal/controlapi/member_join_idip.go", "internal/controlapi/member_join_idip_integration_test.go", "internal/keria/adapter.go", "internal/keria/adapter_test.go", "internal/keria/invite.go", "internal/keria/invite_test.go", "internal/keria/registry.go", "internal/keria/stack_smoke_test.go", "internal/keria/standing.go", "internal/keria/view.go", "internal/keriawire/wire.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "go test ./internal/keria/... ./internal/controlapi/... ./internal/keriawire/... ./control-plane/...", "exit_code": 0 }, { "command": "go build ./... && go vet ./...", "exit_code": 0 }, { "command": "pnpm --filter @idss/openapi-spec run check:client", "exit_code": 0 }, { "command": "pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard + app)", "exit_code": 0 }, { "command": "pnpm exec vitest run (dashboard, 1344 passed)", "exit_code": 0 }, { "command": "pnpm exec vitest run tests/unit/memberApproval.test.ts (app)", "exit_code": 0 } ], "criteria": { "S2i preset picker: Membership fixed; operator absent by construction; preset rides mint and shows on the invites box row": "IdipRosterPanel.vue mint form data-field=credential-preset with preset-membership (checked+disabled) + preset-<slug> for issuableDefs (operator is never a credential definition, so absent by construction); mint() calls client.mintInvite({preset,multiUse}); openInvites row renders inviteSummary (Membership + preset · uses). keria.BootInvite.Preset round-trips (TestMint_PresetRoundTrips). Test: 'mints an invite with a credential preset ... shows the link once'.", "Approve form: preset pre-ticked, editable per member; a since-retired preset entry is dropped with the note": "issue-<slug> checkboxes v-model=selectionFor(aid), seeded from member.preset (pre-ticked, editable); retiredPresetNames() drops slugs not in issuableDefs and renders data-field=retired-preset-note. Tests: 'groups waiting members ... pre-ticked and editable', 'a since-retired preset entry is dropped with a note'.", "Approve-all: one unlock+ceremony approves everyone from the invite, each issued the preset as minted (no per-row edits in bulk)": "approveAll(group) loops the cohort using presetCredentials(m) (as minted, ignoring per-row edits) behind the one session unlock. Test: 'approve-all signs once for the cohort, each issued its preset AS MINTED'.", "Ordering: Membership first; a later credential failing leaves an ACTIVE member and the issuance-incomplete state on S4i with retry (driver seam pins ordering + partial surfacing)": "app/src/lib/memberApproval.ts approveWithCredentials issues Membership first (propagates on fault) then each credential caught-as-pending. Seam test memberApproval.test.ts ('issues Membership FIRST', 'a preset credential failing leaves an ACTIVE member ... retryable', 'a Membership fault propagates and issues NO credential'). Panel test 'partial issuance leaves an ACTIVE member with the missing credential named + retryable'; retry via the S4i IdipMemberCredentials '+ issue a credential'.", "Decline consumes the invite, archives the roster entry, shows the member no reason (S5x)": "Registry.Decline archives ONLY a waiting entry (nothing revoked); Standing/StandingAdapter.Decline; controlapi POST /idip/members/{aid}/decline (TestIdipStanding_Decline); a returning declined AID → keriawire.ErrDeclined → member_join_idip.renderNotApproved (data-status=not-approved, no reason). Panel Decline button → credentials.decline(aid) ('decline consumes the invite and archives the roster entry').", "The retired standalone approve row is gone — the picker IS the approval form (wireframe contract)": "IdipRosterPanel.vue rewritten: the standalone data-action=idip-approve row + phrase ceremony removed; the merged idip-approve-ceremony form (credential picker + idip-approve-sign + decline) IS the approval. No data-action=idip-approve remains." }, "summary": "IDIP invites carry a credential preset that rides join to a merged approve form issuing Membership-first then the preset (receipt-gated, partial-safe), with decline and approve-all.", "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#1080
No description provided.