idip: member-join-page — browser join: invite gates /boot, twelve words client-side, waiting state #780

Closed
opened 2026-08-25 04:27:10 +00:00 by ben · 2 comments
Owner

Parent

Feature spec: #767 (idip; wayfinder map #725).

What to build

The gateway-served member join page (ADR 0198) — a named member-facing surface owed wireframe-fidelity design in this slice (DDR 0200): an invitee opens a steward's single-use invite link in a plain browser (no wallet app); the page generates twelve words client-side (the phrase is NEVER carried in the invite link — inventory #728's anti-pattern), derives the passcode locally, boots their agent through the invite-token-gated /boot door, mints their witnessed AID, and submits their profile (name, email) — landing them in the waiting state: an AID with no membership ACDC, which the bridge refuses. The page rules its own phrase-storage honestly (no safeStorage in a browser, ADR 0195). Witness-down degrades JOIN with the honest row — sign-in is never named as affected.

Acceptance criteria

  • (story 20) Given a live invite link, when the invitee completes the join page, then words generate client-side, the agent boots via the token-gated /boot, a witnessed AID mints, the profile lands, and the member is waiting.
  • (story 19) Given no live invite token, when /boot is attempted, then it is refused — no drive-by AID minting.
  • (story 20) Given the invite link itself, then it carries only the token — never a phrase.
  • (story 20) Given the witness is down, when an invitee tries to join, then the page carries the honest join-degradation row and never names sign-in.

Blocked by

  • #775 — idip:keria-adapter-core
  • #772 — idip:keri-client-core
  • members:invites (#34 arc) (done — satisfied)

Task manifest

task: idip:member-join-page
implements_flow: p6-members
implements_edge: invite→join (IDIP counterpart of the join half of join-approval)
interface: 'the gateway-served join page: invite-token redemption → client-side mnemonic + passcode →
  /boot → witnessed AID → profile submit → waiting; honest witness-down degradation; browser-honest phrase
  storage'
seam: 'join page against the real packaged stack: token-gated /boot (with/without), client-side generation
  (no phrase in link or server), waiting = bridge-refusable AID; witness-down row'
acceptance:
- given: a live invite link
  when: join completes
  then: client-side words, /boot via token, witnessed AID, profile, waiting state
- given: no live token
  when: /boot attempted
  then: refused
- given: witness down
  when: join attempted
  then: honest degradation row; sign-in never named
depends_on:
- keria-adapter-core
- keri-client-core
- members:invites
out_of_scope:
- approval — steward-approve-issue
- sign-in — idss-idp-bridge
- member-side native apps (spec Out of Scope)
needs_human_decision: []
## Parent Feature spec: #767 (idip; wayfinder map #725). ## What to build The gateway-served member join page (ADR 0198) — a named member-facing surface owed wireframe-fidelity design in this slice (DDR 0200): an invitee opens a steward's single-use invite link in a plain browser (no wallet app); the page generates twelve words client-side (the phrase is NEVER carried in the invite link — inventory #728's anti-pattern), derives the passcode locally, boots their agent through the invite-token-gated /boot door, mints their witnessed AID, and submits their profile (name, email) — landing them in the waiting state: an AID with no membership ACDC, which the bridge refuses. The page rules its own phrase-storage honestly (no safeStorage in a browser, ADR 0195). Witness-down degrades JOIN with the honest row — sign-in is never named as affected. ## Acceptance criteria - [ ] (story 20) Given a live invite link, when the invitee completes the join page, then words generate client-side, the agent boots via the token-gated /boot, a witnessed AID mints, the profile lands, and the member is waiting. - [ ] (story 19) Given no live invite token, when /boot is attempted, then it is refused — no drive-by AID minting. - [ ] (story 20) Given the invite link itself, then it carries only the token — never a phrase. - [ ] (story 20) Given the witness is down, when an invitee tries to join, then the page carries the honest join-degradation row and never names sign-in. ## Blocked by - #775 — idip:keria-adapter-core - #772 — idip:keri-client-core - members:invites (#34 arc) (done — satisfied) ## Task manifest ```yaml task: idip:member-join-page implements_flow: p6-members implements_edge: invite→join (IDIP counterpart of the join half of join-approval) interface: 'the gateway-served join page: invite-token redemption → client-side mnemonic + passcode → /boot → witnessed AID → profile submit → waiting; honest witness-down degradation; browser-honest phrase storage' seam: 'join page against the real packaged stack: token-gated /boot (with/without), client-side generation (no phrase in link or server), waiting = bridge-refusable AID; witness-down row' acceptance: - given: a live invite link when: join completes then: client-side words, /boot via token, witnessed AID, profile, waiting state - given: no live token when: /boot attempted then: refused - given: witness down when: join attempted then: honest degradation row; sign-in never named depends_on: - keria-adapter-core - keri-client-core - members:invites out_of_scope: - approval — steward-approve-issue - sign-in — idss-idp-bridge - member-side native apps (spec Out of Scope) needs_human_decision: [] ```

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

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

close-report for #780 — status success

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

envelope
{
  "issue": 780,
  "status": "success",
  "commits": [
    "7a02119f0bae61b15e55097d8a6e66bcd65640e2"
  ],
  "changed_files": [
    "internal/controlapi/member_join_idip.go",
    "internal/controlapi/member_join_idip_integration_test.go",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "go test ./internal/controlapi/ -run IdipJoin",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/keria/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 20 — live invite: client-side words, /boot via token, witnessed AID, profile, waiting state": "member_join_idip.go renderJoin serves the branded form (data-field recovery-phrase/your-name/your-email, data-action generate-phrase/join); POST /idip/join/{token}/submit lands {aid,name,email} as the waiting roster entry. TestIdipJoin_LiveInviteCompletesToWaiting asserts the element contract, the waiting state (data-status awaiting-approval), that the AID is on the roster and reads NOT issued (bridge-refusable), and the recorded profile.",
    "story 19 — no live token: /boot refused, no drive-by AID minting": "TestIdipJoin_NoLiveToken_BootRefusedAndNoForm drives the real controlapi.WithKeriBootGate: empty and dead tokens 403, the live one 204 (single-use). The GET dead-token page serves the honest dead-invite end (data-status dead-invite) with NO join/generate-phrase affordance.",
    "story 20 — link carries only the token, never a phrase": "The route is /idip/join/{token}; renderJoin generates words client-side via window.idssKeriJoin and has no name=phrase/passcode/mnemonic field; the submit struct has only aid/name/email. TestIdipJoin_LinkCarriesOnlyToken_PhraseNeverTravels asserts the client-side generation, the absent server phrase field, the token-only submit action, and that a posted phrase is ignored.",
    "story 20 — witness down: honest join-degradation row, sign-in never named": "renderDegraded emits data-status join-degraded with honest JOIN copy and withholds the boot action. TestIdipJoin_WitnessDown_HonestRow_NeverNamesSignIn asserts the row, that JOIN is named, and case-insensitive absence of sign in / sign-in / signin."
  },
  "summary": "Built the gateway-served IDIP member join page: invite-gated /boot, twelve words client-side, profile submit to the bridge-refusable waiting state, and the honest witness-down degradation row, driven at the seam against a fake keria adapter.",
  "blockers": []
}
**close-report** for #780 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 780, "status": "success", "commits": [ "7a02119f0bae61b15e55097d8a6e66bcd65640e2" ], "changed_files": [ "internal/controlapi/member_join_idip.go", "internal/controlapi/member_join_idip_integration_test.go", "STATUS.md" ], "tests": [ { "command": "go test ./internal/controlapi/ -run IdipJoin", "exit_code": 0 }, { "command": "go test ./internal/controlapi/", "exit_code": 0 }, { "command": "go test ./internal/keria/", "exit_code": 0 }, { "command": "go vet ./internal/controlapi/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/controlapi/", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 } ], "criteria": { "story 20 — live invite: client-side words, /boot via token, witnessed AID, profile, waiting state": "member_join_idip.go renderJoin serves the branded form (data-field recovery-phrase/your-name/your-email, data-action generate-phrase/join); POST /idip/join/{token}/submit lands {aid,name,email} as the waiting roster entry. TestIdipJoin_LiveInviteCompletesToWaiting asserts the element contract, the waiting state (data-status awaiting-approval), that the AID is on the roster and reads NOT issued (bridge-refusable), and the recorded profile.", "story 19 — no live token: /boot refused, no drive-by AID minting": "TestIdipJoin_NoLiveToken_BootRefusedAndNoForm drives the real controlapi.WithKeriBootGate: empty and dead tokens 403, the live one 204 (single-use). The GET dead-token page serves the honest dead-invite end (data-status dead-invite) with NO join/generate-phrase affordance.", "story 20 — link carries only the token, never a phrase": "The route is /idip/join/{token}; renderJoin generates words client-side via window.idssKeriJoin and has no name=phrase/passcode/mnemonic field; the submit struct has only aid/name/email. TestIdipJoin_LinkCarriesOnlyToken_PhraseNeverTravels asserts the client-side generation, the absent server phrase field, the token-only submit action, and that a posted phrase is ignored.", "story 20 — witness down: honest join-degradation row, sign-in never named": "renderDegraded emits data-status join-degraded with honest JOIN copy and withholds the boot action. TestIdipJoin_WitnessDown_HonestRow_NeverNamesSignIn asserts the row, that JOIN is named, and case-insensitive absence of sign in / sign-in / signin." }, "summary": "Built the gateway-served IDIP member join page: invite-gated /boot, twelve words client-side, profile submit to the bridge-refusable waiting state, and the honest witness-down degradation row, driven at the seam against a fake keria adapter.", "blockers": [] } ``` </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#780
No description provided.