IDIP child spec: self-sovereign identity (KERI/ACDC) as a founding-time alternative to kanidm behind the OIDC seam #767

Open
opened 2026-08-25 02:44:57 +00:00 by ben · 3 comments
Owner

Parent

Wayfinder map: #725 — IDIP as a core identity alternative to kanidm (closed 2026-08-24; every decision needed here is ruled — ADRs 0194–0199, 0201, DDR 0200, research #726–#728, prototype #732).

Problem Statement

A community founder who wants their members to truly own their identities has no way to get that from IDSS today. Founding always stands up kanidm: members prove who they are with a password an administrator can reset, and the community's identity records live in an IdP database the operator controls. For communities whose whole reason to self-host is sovereignty — no resettable accounts, no administrator who can impersonate a member, identity that survives the community's own infrastructure — that is the wrong substrate, and the wider Mātou programme (matou-app) already runs the right one: KERI/ACDC, where members hold their own keys and membership is a verifiable credential.

Solution

Founding asks one identity question. On a dedicated screen between Brand kit and Access, the founder answers "How will members prove who they are?" — Passwords & passkeys (kanidm, preselected, one click through, byte-identical to today) or Self-sovereign identity (IDIP). Choosing IDIP swaps which core service answers behind the ADR 0016 OIDC seam and nothing else: the gateway runs KERIA (+ witness + credential schema server) and an IDSS-owned OIDC bridge (idss-idp) at id.<apex> instead of kanidm, and every catalogue service, the auth gate, and Netbird keep consuming OIDC at the same door, noticing nothing.

Instead of setting an admin password, the founder writes down a 12-word recovery phrase (shown once, confirmed by re-typing three words) before Create fires. Stand-up provisions the IDIP services, then — driven by signify-ts in the operator app's renderer, never by gateway-held keys — boots the founder's agent, mints their witnessed AID, incepts the community's group AID as a 1-of-1 native multisig, creates the credential registry, and issues the founder's membership credential with role: operator. Members join through a single-use invite link in a plain browser: twelve words generated client-side, an AID minted on the community's KERIA, and a membership ACDC issued by a steward on approval. Standing lives in the registry: suspension is revocation, sign-in is a key challenge plus credential presentation at the bridge, and the whole identity is one port-declared backup dataset that restores atomically with the members roster.

User Stories

Founding — the identity question (P1-S3a; ADR 0194)

  1. As a founder, I want founding to ask me one identity question with a recommended default, so that I can choose self-sovereign identity without the default path costing anyone else a single extra thought.

    • Given a founder on S3 Brand kit, When they continue, Then S3a Identity appears between Brand kit and Access asking "How will members prove who they are?" with Passwords & passkeys preselected and marked recommended, and one click on Continue proceeds to S4 Access with behaviour byte-identical to today's kanidm path.
    • Given the S3a screen, When the founder reads the IDIP card, Then it states in plain words that members hold their own keys, that nobody can reset them but the member, that the founder will write down a 12-word recovery phrase instead of setting an admin password, and that mail arrives later on this path.
  2. As a founder, I want my identity choice to be re-choosable while it is still cheap and fixed once it is not, so that I can change my mind before deploy but never wreck a live community.

    • Given a reopened walk before deploy, When the founder navigates to S3a, Then re-choice is legal in both directions (like S4/S5 under DDR 0142).
    • Given a Founded community, When the founder reopens the walk, Then S3a is a locked step that refuses navigation, like S2/S3.
  3. As a founder on the IDIP path, I want the wizard's step numbering to reflect my path, so that progress reads honestly.

    • Given IDIP chosen, Then title bars show "Create · n of 7" (S3a and S6a inserted); Given kanidm chosen, Then "n of 5" is untouched.

The founder ceremony (P1-S6a; ADR 0195, DDR 0200)

  1. As a founder on the IDIP path, I want the recovery phrase shown once and confirmed before anything is created, so that stand-up can never start with my identity unsaved.

    • Given IDIP chosen, When the founder confirms S6 Review, Then S6a "Write down your recovery phrase" appears before any carrier stand-up: twelve BIP-39 words in a grid, generated locally in the app.
    • Given S6a, When the founder has not yet re-entered the 3 randomly-picked confirmation words, Then Create does not fire.
    • Given S6a, Then the screen carries the honest loss statement: "If you lose this phrase and this device, no one — not even Mātou — can restore your identity."
    • Given the kanidm path, When the founder confirms S6 Review, Then stand-up starts directly — no S6a.
  2. As a founder, I want a fresh set of words on demand, so that I can discard a phrase I may have exposed.

    • Given S6a, When the founder picks "Give me different words", Then a new mnemonic is generated locally and any prior confirmation progress resets.
  3. As a founder, I want the app to keep only what daily use needs, so that my recovery phrase exists nowhere but on my paper.

    • Given the ceremony completes, Then the mnemonic is never written to disk by the app; only the derived passcode is persisted in the OS keychain (Electron safeStorage), and daily use never asks for the words.
  4. As a founder, I want an abandoned ceremony to leave nothing dangerous behind, so that returning later is safe.

    • Given a reopened walk that returns to IDIP, When S6a is reached again, Then a fresh phrase is minted (S6a is not re-openable; the old phrase is void).
    • Given the founder switches to kanidm at S3a after having seen a phrase, Then the phrase is discarded and nothing derived from it persists.

Stand-up (carrier + identity legs; DDR 0200, ADRs 0196–0198)

  1. As a founder on the IDIP path, I want the gateway's seed leg to provision the identity stack instead of kanidm, so that the community's key infrastructure is declaratively owned like every other core service.

    • Given IDIP chosen and Create fired, When the seed leg runs on any carrier (rented S7, own-VPS S7a, at-your-place S7b, private VAR), Then it provisions KERIA, a witness, the credential schema server and idss-idp — each with its own unit and declared health check (ADR 0112) — and no kanidm.
    • Given the front door, Then the KERIA admin, CESR, boot, witness-HTTP and schema doors are served as apex subdomains behind the front door with real certificates, exempt from the ADR 0074 browser gate, with /boot gated by invite-token forward-auth; the witness's TCP port stays private.
  2. As a founder, I want the identity legs to run only after the doors are proven live, so that agent boot never races TLS.

    • Given the carrier's door probe has passed, Then the identity legs append in order: agent boot with the S6a-derived passcode → witnessed founder AID → community group AID (native multisig inception, 1-of-1) → credential registry → founder membership ACDC with role: operator.
  3. As a founder, I want to watch identity stand up in the same honest checklist as everything else, so that the IDIP path feels like founding, not a side quest.

    • Given the identity legs run, Then four rows append to whichever carrier journey ran and fold into DDR 0144's single weighted bar: "Identity service", "Your identity", "Community identity", "Your membership".
    • Given a row fails, Then that row shows its own retry and names its evidence (ADR 0088), and stand-up does not silently continue past it.
    • Given a witness-class fault, Then the row names what it actually blocks: new members can't join until this recovers — signing in still works (#732).
  4. As a security-conscious community, I want no identity keys on the gateway or in the control plane, so that compromise of the infrastructure never equals compromise of identities.

    • Given any signing act during founding, Then it executes in the operator app's renderer via signify-ts against the public doors; the Go control plane orchestrates rows and retries but never holds or touches key material.

Sign-in and the OIDC bridge (idss-idp; ADRs 0196, 0199; prototype #732)

  1. As a member of an IDIP community, I want to sign in to any community service with my twelve words, so that one identity opens every door.

    • Given an active member at any OIDC-gated service, When they are redirected to id.<apex>, Then the bridge's sign-in page accepts their recovery phrase, reconnects their agent from the derived passcode, runs the KERI challenge/response, verifies their membership ACDC (right issuer, right schema, TEL issued-not-revoked via the issuer-side check), and completes the OIDC code flow back to the service.
    • Given a repeat sign-in where the bridge already holds the presented credential, Then only the challenge/response runs (prototype: ~2.5 s; full first sign-in ~7 s).
  2. As a member whose community is degraded, I want sign-in to survive a witness outage, so that a flaky witness never locks the community out.

    • Given the witness is down, When an existing member signs in, Then challenge/response and presentation still succeed (all parties are agents on the same gateway KERIA; no new witnessed event is needed).
  3. As a waiting (not-yet-approved) member, I want the bridge to refuse me honestly, so that "awaiting approval cannot authenticate" holds on IDIP exactly as on kanidm.

    • Given an AID with no membership ACDC, When its holder attempts sign-in, Then the bridge refuses with the waiting state's honest wording — no token is ever minted.
  4. As an operator, I want the bridge to wear my community's brand natively, so that members always know whose door they are at.

    • Given the sign-in page renders, Then it wears the full brand kit (logo, palette, greeting — ADR 0007) as a native page; no override.css/oneshot push machinery is involved.
  5. As a catalogue service (or the auth gate, or Netbird), I want to consume OIDC at id.<apex> exactly as with kanidm, so that the identity substrate is invisible to me.

    • Given an IDIP community, Then sub is the member's AID prefix (stable across key rotation); preferred_username, name, email come from the membership ACDC; and groups mirror kanidm 1:1 — membership = members, role: operator = operators, each committee credential = committee:<slug>.
    • Given Nextcloud's files door and the claim-alone landing (DDRs 0158/0173), Then both work unchanged over these claims.
    • Given Netbird management auth, Then the flows it uses (authorization-code; device-code if used) are served by the bridge — a named build-time verification.
  6. As a community, I want revocation to bite within a bounded window, so that suspension means suspended.

    • Given tokens (ID/access 1 h; refresh 30 d, rotating; bridge session cookie 12 h; PKCE S256 required for every client), When a member's credential is revoked, Then every refresh re-checks the issuer-side issued/not-revoked answer and is refused, and with the gate session kill a missed kill is bounded to one access-token hour.
  7. As an operator, I want the bridge to be stateless about people, so that losing it loses nothing that matters.

    • Given a wiped and re-provisioned bridge, Then only live sessions are lost: it persists only its signing keys (a Nix-managed secret), auth-code/refresh-token records, and a short-lived verified-key-state cache — never member records.

Member lifecycle (ADR 0198)

  1. As a steward, I want to invite someone with a single-use link, so that joining stays as frictionless as today.

    • Given a steward mints an invite, Then the invite token is the sole authorisation for the KERIA /boot door: no live invite token, no agent boot, no drive-by AID minting.
  2. As an invitee, I want to join from a plain browser with no wallet app, so that the doorway to self-sovereign identity is a link.

    • Given a live invite link, When the invitee opens the gateway-served join page, Then twelve words are generated client-side, the passcode derives locally, their agent boots, their witnessed AID mints, and they submit their profile (name, email) — landing in the waiting state.
    • Given the witness is down, When an invitee tries to join, Then the join page carries the honest degradation row (join blocked until the witness recovers) — sign-in is never named as affected.
  3. As a steward, I want to approve a waiting member alone, so that nobody waits on a committee to get in.

    • Given a waiting member, When any steward approves them, Then the community group AID issues their membership ACDC (kt = 1 of N) through the multisig exchange, the grant is gated on witness receipt of the group anchor, and the member becomes active.
  4. As an operator, I want suspension to pause access everywhere in one switch, so that ADR 0074's contract holds on IDIP.

    • Given an active member, When a steward suspends them, Then their membership ACDC is revoked, the auth-gate deny projection kills their sessions fleet-wide, and the bridge refuses new tokens and refreshes.
  5. As an operator, I want removal to un-member without pretending to erase, so that the community is honest about what a KEL is.

    • Given a member is removed, Then the revocation stands, the roster entry is archived, and the surface states plainly that the identity's existence and history persist (KERI working as designed; the audit trail).
    • Given a removed or suspended-then-removed member re-admitted later, Then re-admission is a fresh issuance — a TEL never un-revokes.
  6. As an operator, I want committee membership independently grantable and revocable, so that komiti changes never touch core membership.

    • Given a member added to a committee, Then a distinct committee ACDC is issued from the group AID; revoking it removes exactly committee:<slug> from their groups and nothing else.
  7. As an operator, I want the roster to be runtime people, so that a redeploy can never delete a member.

    • Given the roster (AID, username, email, role, committees) on the gateway, Then it is control-plane members state, never re-rendered from declarative config (ADR 0105), and issued/revoked transitions are recorded only after witness-receipt confirmation, anchoring the roster to the TEL.

Stewards and the group AID (ADR 0197)

  1. As a founder, I want the community's key machinery exercised from day one, so that adding stewards later can't hit an untested path.

    • Given founding, Then the group AID is incepted and every subsequent group event (interaction, rotation) runs KERIA's multisig exchange, starting at 1-of-1 — the exchange, not the threshold, is what makes a KEL fork impossible.
  2. As a steward, I want to add a second steward as a v1 feature, so that the community isn't one lost phrase from ending.

    • Given an existing steward initiates "add a steward", Then a multisig rotation runs and is co-signed to the rotation threshold (majority of N), and the new steward's membership ACDC is re-issued with role: operator so the operators group tracks the steward set.
    • Given a solo (1-of-1) founder, Then the surface nudges — never forces — adding a second steward, naming why: with one steward, losing phrase and device ends control of the community; with two, the survivors rotate the lost one out.
  3. As a community, I want issuance cheap and control-changes deliberate, so that daily membership work never waits while takeovers can't happen quietly.

    • Given issuance/revocation (interaction events), Then any single steward acts alone (kt = 1 of N); Given rotation (adding/removing stewards, key changes), Then a majority of N must co-sign.
    • Given the group AID's signing keys, Then they exist only in stewards' agents — never on the gateway.

Rescue (ADRs 0195, 0201 — the 0088 ladder)

  1. As a founder who lost the device but kept the phrase, I want full recovery from the twelve words, so that paper is a real backup.

    • Given a fresh install, When the founder enters the 12 words, Then the passcode re-derives, the agent reconnects to the community's KERIA, and their AIDs are found (matou-app's recovery flow).
  2. As a founder who lost the phrase but still has a signed-in device, I want to re-key now, so that a lost paper isn't a countdown to disaster.

    • Given a working signed-in device, When the founder runs re-key, Then a new phrase is generated and rotated to; the old phrase is dead. (Mechanism verified at build time; if disproven the rung degrades to the honest warning "your identity is one device failure from loss.")
  3. As a founder who lost both, I want an honestly-named end state, so that nobody sells me false hope.

    • Given phrase and device both lost, Then the ladder's last rung states "No one can restore control of this identity" — history persists in the gateway's KERIA state, control does not; community continuity follows the steward rulings (a co-steward can rotate the lost founder out).
  4. As a community that never configured backups and lost its gateway, I want identities to survive anyway, so that only what genuinely can't be saved is lost.

    • Given no backup and a rebuilt gateway, Then members and the founder re-boot fresh agents from their passcodes and re-derive the same AIDs (deterministic derivation — a named build-time verification), the community re-creates its registry, and a steward bulk-reissues memberships. The rung's honest wording: "identities recovered; memberships reissued by a steward."

Backup and restore (ADR 0201)

  1. As an operator, I want the community identity to be one dataset in the backup engine, so that P7's coverage story includes the most precious thing.

    • Given an IDIP community, Then the keria adapter's port declares one identity dataset — the whole keripy root plus the witness's state dirs; member keys are not in it (client-side, derived from passcodes).
    • Given a backup run, Then it quiesces (stops KERIA + witness units), snapshots, restarts — and the seconds of sign-in blip are recorded honestly in the backup ledger (ADR 0083).
    • Given the same quiesce window, Then the control-plane members roster snapshots atomically with the identity dataset — never separately.
  2. As an operator restoring a rebuilt gateway, I want identity and roster back in one act, so that the bridge can never be lied to by a mismatch.

    • Given a restore, Then agents, KELs, TELs, registry and roster return mutually consistent, members reconnect with just their passcodes, and what was lost since the snapshot is named, not hidden — members who joined since appear on a printable re-invite list.

Honest limits (ADR 0199)

  1. As a founder choosing IDIP, I want the path's limits stated at the moment of choice, so that I am never ambushed later.
    • Given the S3a IDIP card, Then it carries "mail arrives later on this path" — IDIP-v1 communities get no mail (IMAP/submission need IdP-minted app passwords IDIP lacks).
    • Given the IDIP path, Then no passkey is offered anywhere (ADR 0170's credential floor stays kanidm-only; no password exists to floor).

Implementation Decisions

  • The seam is the whole trick (ADR 0194 amending 0004/0016): everything consumes OIDC and only OIDC; choosing IDIP swaps which core service answers at id.<apex>. Catalogue services, the auth gate, the front door's routes, and the gate-oidc client shape do not change.
  • The bridge (ADR 0196): its own core service idss-idp, a separate Go binary wrapping zitadel/oidc/v3's op package (ory/fosite is the fallback if the API fights us; never hand-roll the OIDC surface). Own systemd unit + declared health check (ADR 0112), provisioned in Nix the way the kanidm block is, served at id.<apex> — kanidm's slot. Its OIDC clients are declared in Nix. Verification is a thin verifier against the gateway's KERIA (vlei-verifier's checks as the reference).
  • The sign-in sequence (from prototype #732, lifted from its flow script): reconnect agent from passcode → bridge resolves the member's OOBI (first time only) → KERI challenge/response (generate → respond → verify) → ACDC presentation (skippable when the bridge already holds it) → issuer-side issued/not-revoked check → OIDC code + tokens. Proven ~7 s first / ~2.5 s repeat.
  • Revocation is issuer-side (prototype #732's headline finding): a verifier agent never learns revocation on KERIA 0.2.0-rc1, so the authoritative issued/not-revoked answer is served by the keria adapter (IsIssued) and consulted by the bridge at sign-in and on every refresh. (KERIA 0.4.0 propagation is a build-time check; the issuer-side check is correct regardless.)
  • The keria adapter (ADR 0198): a third binding behind the existing member-orchestrator port family (fake, kanidm, keria — ADR 0077). It signs nothing: signing acts (issue, revoke, rotation) execute client-side in a steward's signify session through the multisig exchange with witness-receipt gating. The adapter owns the unsigned surface — invite-token mint/spend (the /boot gate), the roster, orchestration state, and IsIssued.
  • Native multisig from founding (ADR 0197): the group AID runs the /multisig/* exchange on every group event from inception (1-of-1). Issuance/revocation at kt=1 of N; rotation by majority. "Add a steward" is v1. Stewards == operators, kept consistent by re-issuing the membership ACDC on rotation (agent-ruled two-way door).
  • Ceremony persistence (ADR 0195): the mnemonic is never written to disk; the derived passcode goes in the OS keychain (Electron safeStorage). The browser member-side rules its own storage honestly (the join page cannot use safeStorage).
  • Where signify lives (DDR 0200): signify-ts in the Electron renderer (matou-app's client core reused per inventory #728) against the public doors; the Go control plane orchestrates rows/retries, never keys. Rejected: a Go sidecar, gateway-side keys.
  • Provisioning (research #727): nothing KERI is in nixpkgs — four pure-Python derivations (hio, multicommand, keri, keria) plus a NixOS module; signify-ts is npm-ready. One witness (not the 6-AID demo topology). Footprint fits the gateway floor (KERIA ~40 MiB idle / ~120 MiB peak, witness ~40 MiB, ~3 MiB LMDB per agent). Version pins: matou-app runs KERIA 0.2.0-rc1 / signify-ts 0.3.0-rc2, five tags behind upstream 0.4.0/0.4.0 — the pin is a build-time decision informed by the prototype's rc1 behaviours; the hard-won matou-app rails (witness-anchor polling, KEL push, agent-reboot detection, escrow-until-receipt) travel with the adapter regardless.
  • Ingress (research #727): KERIA admin / CESR / boot / witness-HTTP / schema as apex subdomains behind the front door on 443, exempt from the ADR 0074 browser gate; /boot behind invite-token forward-auth; witness TCP private. The identity stand-up legs are sequenced after the carrier's door probe (liveBoxHost gate) so agent boot never races TLS.
  • Schemas: IDSS mints its own credential schemas (matou-app's pins communityName: MATOU as a const) — membership (with role, optional email) and per-committee; served by the community's schema server, which must be gateway-reachable for member agents.
  • Claims/groups (ADR 0196): sub = AID prefix; profile claims from the membership ACDC; groups mirror kanidm 1:1 (members, operators, committee:<slug> — one ACDC per committee, independently revocable). Rejected: a groups list inside one ACDC.
  • Lifetimes (ADR 0196): ID/access 1 h; refresh 30 d rotating with the issuer-side re-check each refresh; bridge session 12 h; PKCE S256 for every client.
  • Backup (ADR 0201): one port-declared dataset (keripy root + witness state), quiesce-then-copy, atomic with the roster snapshot; restore is one act; the no-backup rung rides deterministic passcode→key derivation.
  • Named build-time verifications (each degrades to an honest warning/wording if disproven, never a silent assumption): signify/KERIA passcode rotation (re-key rung); deterministic AID re-derivation (no-backup rung); KERIA 0.4.0 revocation propagation (does not change the issuer-side design); Netbird's OIDC flows against the bridge; whether a raw TEL read over KERIA's public CESR routes can make the bridge's check independently cryptographic (hardening spike, noted not ruled).
  • New member-facing surfaces named by DDR 0200 and deliberately not wireframed there (they are this spec's to carry as build-time design work at wireframe fidelity, brand-kit-worn): the bridge's sign-in page and the gateway-served member join page.

Testing Decisions

A good test proves external behaviour at a seam, never implementation detail. Four seams, all pre-existing; no new seam classes:

  1. The e2e drive (highest seam). The founding journey driven end-to-end through the operator app with IDIP chosen at S3a: ceremony → carrier stand-up with the four identity rows → hand-off → a member invite/join/approve → sign-in at the bridge → a catalogue service (Nextcloud) opened over OIDC. The ADR 0183 driver contract applies (verdict + eyeballed screenshots); prior art is the existing --drive founding and nextcloud journeys. The kanidm path's drive must stay green untouched — the strongest regression statement the seam ruling makes.
  2. The OIDC seam over HTTP. idss-idp proven at its public surface: discovery, auth-code + PKCE, claims/groups content, refusal of a credential-less AID, refresh with the issuer-side re-check, revocation mid-session. Prior art: the smoke-idp pattern — a faithful in-process double for CI plus the real stack on the clan-lab; the prototype's flow script is the reference for the double's KERI conversation.
  3. The member-orchestrator port. The keria adapter as a third binding behind the existing port family, run through the existing port contract tests (invite, waiting-cannot-authenticate, approve, suspend = deny projection + refusal, removal, re-admission-as-fresh-issuance, komiti grant/revoke), plus its own IsIssued contract. Prior art: the kanidm adapter's contract tests and the memberorbit projection tests.
  4. The backup dataset port. The identity dataset declared, quiesced, snapshotted atomically with the roster, restored, and verified mutually consistent (roster row ⇄ TEL state agree via IsIssued after restore). Prior art: smoke-backups.

The signify-ts renderer legs get no seam of their own — they are proven through the drive — with one unit-level exception: the mnemonic → passcode → AID determinism claim (the ADR 0201 rung's named verification).

Out of Scope

  • The wider IIP programme: trust graphs, sybil scoring, elder attestations, COM/CTR/UTIL tokens.
  • any-sync spaces (matou-app's data layer) — IDSS has Files.
  • Migrating an existing kanidm community to IDIP (or the reverse) — founding-time opt-in only; post-Founded substrate change is a fresh effort.
  • Mātou-app interop: bring-your-own AID, wallet-held credentials, cross-community ACDCs (the v2 direction ADR 0004 keeps).
  • Witness topology beyond the gateway's own witness (multi-witness pools, Mātou-run witnesses).
  • Sharing credential schemas with matou-app — v1 mints its own.
  • Mail on IDIP-v1 (ADR 0199 — the S3a card states it; revisiting app-password minting is a fresh effort).
  • Passkey-wrapped mnemonics or any passkey offering on the IDIP path (ADR 0195).
  • Member-side native apps — v1 members join and sign in from a browser.

Further Notes

  • Reuse before writing (inventory #728): matou-app's any-sync-free KERI client core (mnemonic → bran → connect-or-boot → witnessed AID → group AID → registry → schema OOBI → issue + IPEX grant; recovery = re-derive + list AIDs) reuses near-verbatim, as do the recovery screen and admin-approve step shapes. Drop its /identity/set, /spaces/*, space-invites smuggled in IPEX, and X-User-AID RBAC. Its live reds are this spec's guardrails: multi-steward kt=1 issuance without the exchange forks the KEL (hence ADR 0197's native multisig), escrow until witness receipt, rc1 never saving received ACDCs.
  • Sequencing note for the slice map: the bridge (seam 2) and the adapter (seam 3) are independently buildable against the provisioned stack; the founding wizard legs and the member join page both converge on the drive (seam 1) last.
  • The reopened-walk interactions (S3a re-choice, S6a fresh-phrase) ride DDR 0142's existing machinery; only the two nodes' rules above are new.
  • Invite links on matou-app carry the recovery phrase in the link — IDSS's join page generates client-side instead (inventory #728 surfaced it; ADR 0198 rules it); never copy the link-carried-phrase shape.
## Parent Wayfinder map: [#725 — IDIP as a core identity alternative to kanidm](https://git.matou.nz/Matou/idss/issues/725) (closed 2026-08-24; every decision needed here is ruled — ADRs 0194–0199, 0201, DDR 0200, research #726–#728, prototype #732). ## Problem Statement A community founder who wants their members to truly own their identities has no way to get that from IDSS today. Founding always stands up kanidm: members prove who they are with a password an administrator can reset, and the community's identity records live in an IdP database the operator controls. For communities whose whole reason to self-host is sovereignty — no resettable accounts, no administrator who can impersonate a member, identity that survives the community's own infrastructure — that is the wrong substrate, and the wider Mātou programme (matou-app) already runs the right one: KERI/ACDC, where members hold their own keys and membership is a verifiable credential. ## Solution Founding asks one identity question. On a dedicated screen between Brand kit and Access, the founder answers "How will members prove who they are?" — **Passwords & passkeys** (kanidm, preselected, one click through, byte-identical to today) or **Self-sovereign identity (IDIP)**. Choosing IDIP swaps which core service answers behind the ADR 0016 OIDC seam and nothing else: the gateway runs KERIA (+ witness + credential schema server) and an IDSS-owned OIDC bridge (`idss-idp`) at `id.<apex>` instead of kanidm, and every catalogue service, the auth gate, and Netbird keep consuming OIDC at the same door, noticing nothing. Instead of setting an admin password, the founder writes down a 12-word recovery phrase (shown once, confirmed by re-typing three words) before Create fires. Stand-up provisions the IDIP services, then — driven by signify-ts in the operator app's renderer, never by gateway-held keys — boots the founder's agent, mints their witnessed AID, incepts the community's group AID as a 1-of-1 native multisig, creates the credential registry, and issues the founder's membership credential with `role: operator`. Members join through a single-use invite link in a plain browser: twelve words generated client-side, an AID minted on the community's KERIA, and a membership ACDC issued by a steward on approval. Standing lives in the registry: suspension is revocation, sign-in is a key challenge plus credential presentation at the bridge, and the whole identity is one port-declared backup dataset that restores atomically with the members roster. ## User Stories ### Founding — the identity question (P1-S3a; ADR 0194) 1. As a founder, I want founding to ask me one identity question with a recommended default, so that I can choose self-sovereign identity without the default path costing anyone else a single extra thought. - Given a founder on S3 Brand kit, When they continue, Then S3a Identity appears between Brand kit and Access asking "How will members prove who they are?" with **Passwords & passkeys** preselected and marked recommended, and one click on Continue proceeds to S4 Access with behaviour byte-identical to today's kanidm path. - Given the S3a screen, When the founder reads the IDIP card, Then it states in plain words that members hold their own keys, that nobody can reset them but the member, that the founder will write down a 12-word recovery phrase instead of setting an admin password, and that mail arrives later on this path. 2. As a founder, I want my identity choice to be re-choosable while it is still cheap and fixed once it is not, so that I can change my mind before deploy but never wreck a live community. - Given a reopened walk before deploy, When the founder navigates to S3a, Then re-choice is legal in both directions (like S4/S5 under DDR 0142). - Given a Founded community, When the founder reopens the walk, Then S3a is a locked step that refuses navigation, like S2/S3. 3. As a founder on the IDIP path, I want the wizard's step numbering to reflect my path, so that progress reads honestly. - Given IDIP chosen, Then title bars show "Create · n of 7" (S3a and S6a inserted); Given kanidm chosen, Then "n of 5" is untouched. ### The founder ceremony (P1-S6a; ADR 0195, DDR 0200) 4. As a founder on the IDIP path, I want the recovery phrase shown once and confirmed before anything is created, so that stand-up can never start with my identity unsaved. - Given IDIP chosen, When the founder confirms S6 Review, Then S6a "Write down your recovery phrase" appears before any carrier stand-up: twelve BIP-39 words in a grid, generated locally in the app. - Given S6a, When the founder has not yet re-entered the 3 randomly-picked confirmation words, Then Create does not fire. - Given S6a, Then the screen carries the honest loss statement: "If you lose this phrase and this device, no one — not even Mātou — can restore your identity." - Given the kanidm path, When the founder confirms S6 Review, Then stand-up starts directly — no S6a. 5. As a founder, I want a fresh set of words on demand, so that I can discard a phrase I may have exposed. - Given S6a, When the founder picks "Give me different words", Then a new mnemonic is generated locally and any prior confirmation progress resets. 6. As a founder, I want the app to keep only what daily use needs, so that my recovery phrase exists nowhere but on my paper. - Given the ceremony completes, Then the mnemonic is never written to disk by the app; only the derived passcode is persisted in the OS keychain (Electron safeStorage), and daily use never asks for the words. 7. As a founder, I want an abandoned ceremony to leave nothing dangerous behind, so that returning later is safe. - Given a reopened walk that returns to IDIP, When S6a is reached again, Then a fresh phrase is minted (S6a is not re-openable; the old phrase is void). - Given the founder switches to kanidm at S3a after having seen a phrase, Then the phrase is discarded and nothing derived from it persists. ### Stand-up (carrier + identity legs; DDR 0200, ADRs 0196–0198) 8. As a founder on the IDIP path, I want the gateway's seed leg to provision the identity stack instead of kanidm, so that the community's key infrastructure is declaratively owned like every other core service. - Given IDIP chosen and Create fired, When the seed leg runs on any carrier (rented S7, own-VPS S7a, at-your-place S7b, private VAR), Then it provisions KERIA, a witness, the credential schema server and `idss-idp` — each with its own unit and declared health check (ADR 0112) — and no kanidm. - Given the front door, Then the KERIA admin, CESR, boot, witness-HTTP and schema doors are served as apex subdomains behind the front door with real certificates, exempt from the ADR 0074 browser gate, with `/boot` gated by invite-token forward-auth; the witness's TCP port stays private. 9. As a founder, I want the identity legs to run only after the doors are proven live, so that agent boot never races TLS. - Given the carrier's door probe has passed, Then the identity legs append in order: agent boot with the S6a-derived passcode → witnessed founder AID → community group AID (native multisig inception, 1-of-1) → credential registry → founder membership ACDC with `role: operator`. 10. As a founder, I want to watch identity stand up in the same honest checklist as everything else, so that the IDIP path feels like founding, not a side quest. - Given the identity legs run, Then four rows append to whichever carrier journey ran and fold into DDR 0144's single weighted bar: "Identity service", "Your identity", "Community identity", "Your membership". - Given a row fails, Then that row shows its own retry and names its evidence (ADR 0088), and stand-up does not silently continue past it. - Given a witness-class fault, Then the row names what it actually blocks: new members can't join until this recovers — signing in still works (#732). 11. As a security-conscious community, I want no identity keys on the gateway or in the control plane, so that compromise of the infrastructure never equals compromise of identities. - Given any signing act during founding, Then it executes in the operator app's renderer via signify-ts against the public doors; the Go control plane orchestrates rows and retries but never holds or touches key material. ### Sign-in and the OIDC bridge (`idss-idp`; ADRs 0196, 0199; prototype #732) 12. As a member of an IDIP community, I want to sign in to any community service with my twelve words, so that one identity opens every door. - Given an active member at any OIDC-gated service, When they are redirected to `id.<apex>`, Then the bridge's sign-in page accepts their recovery phrase, reconnects their agent from the derived passcode, runs the KERI challenge/response, verifies their membership ACDC (right issuer, right schema, TEL issued-not-revoked via the issuer-side check), and completes the OIDC code flow back to the service. - Given a repeat sign-in where the bridge already holds the presented credential, Then only the challenge/response runs (prototype: ~2.5 s; full first sign-in ~7 s). 13. As a member whose community is degraded, I want sign-in to survive a witness outage, so that a flaky witness never locks the community out. - Given the witness is down, When an existing member signs in, Then challenge/response and presentation still succeed (all parties are agents on the same gateway KERIA; no new witnessed event is needed). 14. As a waiting (not-yet-approved) member, I want the bridge to refuse me honestly, so that "awaiting approval cannot authenticate" holds on IDIP exactly as on kanidm. - Given an AID with no membership ACDC, When its holder attempts sign-in, Then the bridge refuses with the waiting state's honest wording — no token is ever minted. 15. As an operator, I want the bridge to wear my community's brand natively, so that members always know whose door they are at. - Given the sign-in page renders, Then it wears the full brand kit (logo, palette, greeting — ADR 0007) as a native page; no override.css/oneshot push machinery is involved. 16. As a catalogue service (or the auth gate, or Netbird), I want to consume OIDC at `id.<apex>` exactly as with kanidm, so that the identity substrate is invisible to me. - Given an IDIP community, Then `sub` is the member's AID prefix (stable across key rotation); `preferred_username`, `name`, `email` come from the membership ACDC; and groups mirror kanidm 1:1 — membership = `members`, `role: operator` = `operators`, each committee credential = `committee:<slug>`. - Given Nextcloud's files door and the claim-alone landing (DDRs 0158/0173), Then both work unchanged over these claims. - Given Netbird management auth, Then the flows it uses (authorization-code; device-code if used) are served by the bridge — a named build-time verification. 17. As a community, I want revocation to bite within a bounded window, so that suspension means suspended. - Given tokens (ID/access 1 h; refresh 30 d, rotating; bridge session cookie 12 h; PKCE S256 required for every client), When a member's credential is revoked, Then every refresh re-checks the issuer-side issued/not-revoked answer and is refused, and with the gate session kill a missed kill is bounded to one access-token hour. 18. As an operator, I want the bridge to be stateless about people, so that losing it loses nothing that matters. - Given a wiped and re-provisioned bridge, Then only live sessions are lost: it persists only its signing keys (a Nix-managed secret), auth-code/refresh-token records, and a short-lived verified-key-state cache — never member records. ### Member lifecycle (ADR 0198) 19. As a steward, I want to invite someone with a single-use link, so that joining stays as frictionless as today. - Given a steward mints an invite, Then the invite token is the sole authorisation for the KERIA `/boot` door: no live invite token, no agent boot, no drive-by AID minting. 20. As an invitee, I want to join from a plain browser with no wallet app, so that the doorway to self-sovereign identity is a link. - Given a live invite link, When the invitee opens the gateway-served join page, Then twelve words are generated client-side, the passcode derives locally, their agent boots, their witnessed AID mints, and they submit their profile (name, email) — landing in the **waiting** state. - Given the witness is down, When an invitee tries to join, Then the join page carries the honest degradation row (join blocked until the witness recovers) — sign-in is never named as affected. 21. As a steward, I want to approve a waiting member alone, so that nobody waits on a committee to get in. - Given a waiting member, When any steward approves them, Then the community group AID issues their membership ACDC (`kt = 1` of N) through the multisig exchange, the grant is gated on witness receipt of the group anchor, and the member becomes **active**. 22. As an operator, I want suspension to pause access everywhere in one switch, so that ADR 0074's contract holds on IDIP. - Given an active member, When a steward suspends them, Then their membership ACDC is revoked, the auth-gate deny projection kills their sessions fleet-wide, and the bridge refuses new tokens and refreshes. 23. As an operator, I want removal to un-member without pretending to erase, so that the community is honest about what a KEL is. - Given a member is removed, Then the revocation stands, the roster entry is archived, and the surface states plainly that the identity's existence and history persist (KERI working as designed; the audit trail). - Given a removed or suspended-then-removed member re-admitted later, Then re-admission is a fresh issuance — a TEL never un-revokes. 24. As an operator, I want committee membership independently grantable and revocable, so that komiti changes never touch core membership. - Given a member added to a committee, Then a distinct committee ACDC is issued from the group AID; revoking it removes exactly `committee:<slug>` from their groups and nothing else. 25. As an operator, I want the roster to be runtime people, so that a redeploy can never delete a member. - Given the roster (AID, username, email, role, committees) on the gateway, Then it is control-plane members state, never re-rendered from declarative config (ADR 0105), and issued/revoked transitions are recorded only after witness-receipt confirmation, anchoring the roster to the TEL. ### Stewards and the group AID (ADR 0197) 26. As a founder, I want the community's key machinery exercised from day one, so that adding stewards later can't hit an untested path. - Given founding, Then the group AID is incepted and every subsequent group event (interaction, rotation) runs KERIA's multisig exchange, starting at 1-of-1 — the exchange, not the threshold, is what makes a KEL fork impossible. 27. As a steward, I want to add a second steward as a v1 feature, so that the community isn't one lost phrase from ending. - Given an existing steward initiates "add a steward", Then a multisig rotation runs and is co-signed to the rotation threshold (majority of N), and the new steward's membership ACDC is re-issued with `role: operator` so the `operators` group tracks the steward set. - Given a solo (1-of-1) founder, Then the surface nudges — never forces — adding a second steward, naming why: with one steward, losing phrase and device ends control of the community; with two, the survivors rotate the lost one out. 28. As a community, I want issuance cheap and control-changes deliberate, so that daily membership work never waits while takeovers can't happen quietly. - Given issuance/revocation (interaction events), Then any single steward acts alone (`kt = 1` of N); Given rotation (adding/removing stewards, key changes), Then a majority of N must co-sign. - Given the group AID's signing keys, Then they exist only in stewards' agents — never on the gateway. ### Rescue (ADRs 0195, 0201 — the 0088 ladder) 29. As a founder who lost the device but kept the phrase, I want full recovery from the twelve words, so that paper is a real backup. - Given a fresh install, When the founder enters the 12 words, Then the passcode re-derives, the agent reconnects to the community's KERIA, and their AIDs are found (matou-app's recovery flow). 30. As a founder who lost the phrase but still has a signed-in device, I want to re-key now, so that a lost paper isn't a countdown to disaster. - Given a working signed-in device, When the founder runs re-key, Then a new phrase is generated and rotated to; the old phrase is dead. (Mechanism verified at build time; if disproven the rung degrades to the honest warning "your identity is one device failure from loss.") 31. As a founder who lost both, I want an honestly-named end state, so that nobody sells me false hope. - Given phrase and device both lost, Then the ladder's last rung states "No one can restore control of this identity" — history persists in the gateway's KERIA state, control does not; community continuity follows the steward rulings (a co-steward can rotate the lost founder out). 32. As a community that never configured backups and lost its gateway, I want identities to survive anyway, so that only what genuinely can't be saved is lost. - Given no backup and a rebuilt gateway, Then members and the founder re-boot fresh agents from their passcodes and re-derive the same AIDs (deterministic derivation — a named build-time verification), the community re-creates its registry, and a steward bulk-reissues memberships. The rung's honest wording: "identities recovered; memberships reissued by a steward." ### Backup and restore (ADR 0201) 33. As an operator, I want the community identity to be one dataset in the backup engine, so that P7's coverage story includes the most precious thing. - Given an IDIP community, Then the keria adapter's port declares one identity dataset — the whole keripy root plus the witness's state dirs; member keys are not in it (client-side, derived from passcodes). - Given a backup run, Then it quiesces (stops KERIA + witness units), snapshots, restarts — and the seconds of sign-in blip are recorded honestly in the backup ledger (ADR 0083). - Given the same quiesce window, Then the control-plane members roster snapshots atomically with the identity dataset — never separately. 34. As an operator restoring a rebuilt gateway, I want identity and roster back in one act, so that the bridge can never be lied to by a mismatch. - Given a restore, Then agents, KELs, TELs, registry and roster return mutually consistent, members reconnect with just their passcodes, and what was lost since the snapshot is named, not hidden — members who joined since appear on a printable re-invite list. ### Honest limits (ADR 0199) 35. As a founder choosing IDIP, I want the path's limits stated at the moment of choice, so that I am never ambushed later. - Given the S3a IDIP card, Then it carries "mail arrives later on this path" — IDIP-v1 communities get no mail (IMAP/submission need IdP-minted app passwords IDIP lacks). - Given the IDIP path, Then no passkey is offered anywhere (ADR 0170's credential floor stays kanidm-only; no password exists to floor). ## Implementation Decisions - **The seam is the whole trick (ADR 0194 amending 0004/0016):** everything consumes OIDC and only OIDC; choosing IDIP swaps which core service answers at `id.<apex>`. Catalogue services, the auth gate, the front door's routes, and the `gate-oidc` client shape do not change. - **The bridge (ADR 0196):** its own core service `idss-idp`, a separate Go binary wrapping `zitadel/oidc/v3`'s `op` package (`ory/fosite` is the fallback if the API fights us; never hand-roll the OIDC surface). Own systemd unit + declared health check (ADR 0112), provisioned in Nix the way the kanidm block is, served at `id.<apex>` — kanidm's slot. Its OIDC clients are declared in Nix. Verification is a thin verifier against the gateway's KERIA (vlei-verifier's checks as the reference). - **The sign-in sequence** (from prototype #732, lifted from its flow script): reconnect agent from passcode → bridge resolves the member's OOBI (first time only) → KERI challenge/response (generate → respond → verify) → ACDC presentation (skippable when the bridge already holds it) → issuer-side issued/not-revoked check → OIDC code + tokens. Proven ~7 s first / ~2.5 s repeat. - **Revocation is issuer-side (prototype #732's headline finding):** a verifier agent never learns revocation on KERIA 0.2.0-rc1, so the authoritative issued/not-revoked answer is served by the keria adapter (`IsIssued`) and consulted by the bridge at sign-in and on every refresh. (KERIA 0.4.0 propagation is a build-time check; the issuer-side check is correct regardless.) - **The keria adapter (ADR 0198):** a third binding behind the existing member-orchestrator port family (fake, kanidm, keria — ADR 0077). It signs nothing: signing acts (issue, revoke, rotation) execute client-side in a steward's signify session through the multisig exchange with witness-receipt gating. The adapter owns the unsigned surface — invite-token mint/spend (the `/boot` gate), the roster, orchestration state, and `IsIssued`. - **Native multisig from founding (ADR 0197):** the group AID runs the `/multisig/*` exchange on every group event from inception (1-of-1). Issuance/revocation at `kt=1` of N; rotation by majority. "Add a steward" is v1. Stewards == operators, kept consistent by re-issuing the membership ACDC on rotation (agent-ruled two-way door). - **Ceremony persistence (ADR 0195):** the mnemonic is never written to disk; the derived passcode goes in the OS keychain (Electron safeStorage). The browser member-side rules its own storage honestly (the join page cannot use safeStorage). - **Where signify lives (DDR 0200):** signify-ts in the Electron renderer (matou-app's client core reused per inventory #728) against the public doors; the Go control plane orchestrates rows/retries, never keys. Rejected: a Go sidecar, gateway-side keys. - **Provisioning (research #727):** nothing KERI is in nixpkgs — four pure-Python derivations (hio, multicommand, keri, keria) plus a NixOS module; signify-ts is npm-ready. One witness (not the 6-AID demo topology). Footprint fits the gateway floor (KERIA ~40 MiB idle / ~120 MiB peak, witness ~40 MiB, ~3 MiB LMDB per agent). Version pins: matou-app runs KERIA 0.2.0-rc1 / signify-ts 0.3.0-rc2, five tags behind upstream 0.4.0/0.4.0 — the pin is a build-time decision informed by the prototype's rc1 behaviours; the hard-won matou-app rails (witness-anchor polling, KEL push, agent-reboot detection, escrow-until-receipt) travel with the adapter regardless. - **Ingress (research #727):** KERIA admin / CESR / boot / witness-HTTP / schema as apex subdomains behind the front door on 443, exempt from the ADR 0074 browser gate; `/boot` behind invite-token forward-auth; witness TCP private. The identity stand-up legs are sequenced after the carrier's door probe (liveBoxHost gate) so agent boot never races TLS. - **Schemas:** IDSS mints its own credential schemas (matou-app's pins `communityName: MATOU` as a const) — membership (with `role`, optional `email`) and per-committee; served by the community's schema server, which must be gateway-reachable for member agents. - **Claims/groups (ADR 0196):** `sub` = AID prefix; profile claims from the membership ACDC; groups mirror kanidm 1:1 (`members`, `operators`, `committee:<slug>` — one ACDC per committee, independently revocable). Rejected: a `groups` list inside one ACDC. - **Lifetimes (ADR 0196):** ID/access 1 h; refresh 30 d rotating with the issuer-side re-check each refresh; bridge session 12 h; PKCE S256 for every client. - **Backup (ADR 0201):** one port-declared dataset (keripy root + witness state), quiesce-then-copy, atomic with the roster snapshot; restore is one act; the no-backup rung rides deterministic passcode→key derivation. - **Named build-time verifications** (each degrades to an honest warning/wording if disproven, never a silent assumption): signify/KERIA passcode rotation (re-key rung); deterministic AID re-derivation (no-backup rung); KERIA 0.4.0 revocation propagation (does not change the issuer-side design); Netbird's OIDC flows against the bridge; whether a raw TEL read over KERIA's public CESR routes can make the bridge's check independently cryptographic (hardening spike, noted not ruled). - **New member-facing surfaces named by DDR 0200 and deliberately not wireframed there** (they are this spec's to carry as build-time design work at wireframe fidelity, brand-kit-worn): the bridge's sign-in page and the gateway-served member join page. ## Testing Decisions A good test proves external behaviour at a seam, never implementation detail. Four seams, all pre-existing; no new seam classes: 1. **The e2e drive (highest seam).** The founding journey driven end-to-end through the operator app with IDIP chosen at S3a: ceremony → carrier stand-up with the four identity rows → hand-off → a member invite/join/approve → sign-in at the bridge → a catalogue service (Nextcloud) opened over OIDC. The ADR 0183 driver contract applies (verdict + eyeballed screenshots); prior art is the existing `--drive` founding and nextcloud journeys. The kanidm path's drive must stay green untouched — the strongest regression statement the seam ruling makes. 2. **The OIDC seam over HTTP.** `idss-idp` proven at its public surface: discovery, auth-code + PKCE, claims/groups content, refusal of a credential-less AID, refresh with the issuer-side re-check, revocation mid-session. Prior art: the smoke-idp pattern — a faithful in-process double for CI plus the real stack on the clan-lab; the prototype's flow script is the reference for the double's KERI conversation. 3. **The member-orchestrator port.** The keria adapter as a third binding behind the existing port family, run through the existing port contract tests (invite, waiting-cannot-authenticate, approve, suspend = deny projection + refusal, removal, re-admission-as-fresh-issuance, komiti grant/revoke), plus its own `IsIssued` contract. Prior art: the kanidm adapter's contract tests and the memberorbit projection tests. 4. **The backup dataset port.** The identity dataset declared, quiesced, snapshotted atomically with the roster, restored, and verified mutually consistent (roster row ⇄ TEL state agree via `IsIssued` after restore). Prior art: smoke-backups. The signify-ts renderer legs get no seam of their own — they are proven through the drive — with one unit-level exception: the mnemonic → passcode → AID determinism claim (the ADR 0201 rung's named verification). ## Out of Scope - The wider IIP programme: trust graphs, sybil scoring, elder attestations, COM/CTR/UTIL tokens. - any-sync spaces (matou-app's data layer) — IDSS has Files. - Migrating an existing kanidm community to IDIP (or the reverse) — founding-time opt-in only; post-Founded substrate change is a fresh effort. - Mātou-app interop: bring-your-own AID, wallet-held credentials, cross-community ACDCs (the v2 direction ADR 0004 keeps). - Witness topology beyond the gateway's own witness (multi-witness pools, Mātou-run witnesses). - Sharing credential schemas with matou-app — v1 mints its own. - Mail on IDIP-v1 (ADR 0199 — the S3a card states it; revisiting app-password minting is a fresh effort). - Passkey-wrapped mnemonics or any passkey offering on the IDIP path (ADR 0195). - Member-side native apps — v1 members join and sign in from a browser. ## Further Notes - **Reuse before writing (inventory #728):** matou-app's any-sync-free KERI client core (mnemonic → bran → connect-or-boot → witnessed AID → group AID → registry → schema OOBI → issue + IPEX grant; recovery = re-derive + list AIDs) reuses near-verbatim, as do the recovery screen and admin-approve step shapes. Drop its `/identity/set`, `/spaces/*`, space-invites smuggled in IPEX, and X-User-AID RBAC. Its live reds are this spec's guardrails: multi-steward `kt=1` issuance without the exchange forks the KEL (hence ADR 0197's native multisig), escrow until witness receipt, rc1 never saving received ACDCs. - **Sequencing note for the slice map:** the bridge (seam 2) and the adapter (seam 3) are independently buildable against the provisioned stack; the founding wizard legs and the member join page both converge on the drive (seam 1) last. - The reopened-walk interactions (S3a re-choice, S6a fresh-phrase) ride DDR 0142's existing machinery; only the two nodes' rules above are new. - Invite links on matou-app carry the recovery phrase in the link — IDSS's join page generates client-side instead (inventory #728 surfaced it; ADR 0198 rules it); never copy the link-carried-phrase shape.

Blocked — this is a child spec, not an implementable slice

This issue is a /to-spec child spec (Phase 1 of the design-to-agent pipeline — its own title says "IDIP child spec"), but it is labelled ready-for-agent (Phase 3). A Sandcastle swarm worker cannot implement it, for two structural reasons:

  1. No task manifest. The autonomy contract (docs/PROCESS.md, "what makes an issue agent-ready") requires every agent-ready issue to carry interface, seam, acceptance, depends_on, out_of_scope, and needs_human_decision: []. This issue carries none — it is the feature spec, not a slice manifest.
  2. Not a vertical slice. It is the whole IDIP feature — 35 user stories across all four seams (founding wizard + ceremony, KERIA/witness/schema/idss-idp provisioning, the OIDC bridge, the keria member-orchestrator adapter, member lifecycle, native multisig stewards, the rescue ladder, and backup/restore). The spec itself carries a "Sequencing note for the slice map" and describes several independently-buildable slices converging on the drive last. Sandcastle implements one slice per iteration.

What a human must do to re-arm (the Phase-2 → Phase-3 tail, per docs/PROCESS.md):

  1. /slice-map — fold this spec into the dependency DAG, producing docs/slices/idip.{mermaid,yaml} (currently absent — slice-map has not run for IDIP). Human gate: confirm the graph, especially the cross-feature edges into the existing founding / provisioning / members / backups slices.
  2. /to-tickets — emit one issue + task manifest per IDIP slice, with depends_on blocking edges onto the tracker.
  3. /triage — route each emitted slice to ready-for-agent / ready-for-human / needs-design.

The per-slice issues that /to-tickets emits are what the swarm then picks up. This spec issue should not be relabelled ready-for-agent again — it stays as the parent spec that the sliced tickets link to.

Removing ready-for-agent, adding agent-blocked, and releasing my claim.

## Blocked — this is a child spec, not an implementable slice This issue is a **`/to-spec` child spec** (Phase 1 of the design-to-agent pipeline — its own title says "IDIP child spec"), but it is labelled `ready-for-agent` (Phase 3). A Sandcastle swarm worker cannot implement it, for two structural reasons: 1. **No task manifest.** The autonomy contract (`docs/PROCESS.md`, "what makes an issue agent-ready") requires every agent-ready issue to carry `interface`, `seam`, `acceptance`, `depends_on`, `out_of_scope`, and `needs_human_decision: []`. This issue carries none — it is the feature spec, not a slice manifest. 2. **Not a vertical slice.** It is the whole IDIP feature — 35 user stories across all four seams (founding wizard + ceremony, KERIA/witness/schema/`idss-idp` provisioning, the OIDC bridge, the keria member-orchestrator adapter, member lifecycle, native multisig stewards, the rescue ladder, and backup/restore). The spec itself carries a "Sequencing note for the slice map" and describes several independently-buildable slices converging on the drive last. Sandcastle implements **one** slice per iteration. **What a human must do to re-arm** (the Phase-2 → Phase-3 tail, per `docs/PROCESS.md`): 1. `/slice-map` — fold this spec into the dependency DAG, producing `docs/slices/idip.{mermaid,yaml}` (currently absent — slice-map has not run for IDIP). **Human gate: confirm the graph, especially the cross-feature edges into the existing founding / provisioning / members / backups slices.** 2. `/to-tickets` — emit one issue **+ task manifest** per IDIP slice, with `depends_on` blocking edges onto the tracker. 3. `/triage` — route each emitted slice to `ready-for-agent` / `ready-for-human` / `needs-design`. The per-slice issues that `/to-tickets` emits are what the swarm then picks up. This spec issue should **not** be relabelled `ready-for-agent` again — it stays as the parent spec that the sliced tickets link to. Removing `ready-for-agent`, adding `agent-blocked`, and releasing my claim.
Author
Owner

Relabelled ready-for-agent → no-triage: the blocking comment above is right — this is a child spec (Phase 1 output, /to-tickets input), not an implementable slice. The slice map now exists (docs/slices/idip.{yaml,mermaid}, commit 1553cc7, Ben-confirmed); /to-tickets will emit the implementable tickets + task manifests from it, and those carry ready-for-agent.

Relabelled `ready-for-agent` → `no-triage`: the blocking comment above is right — this is a child spec (Phase 1 output, /to-tickets input), not an implementable slice. The slice map now exists (`docs/slices/idip.{yaml,mermaid}`, commit 1553cc7, Ben-confirmed); /to-tickets will emit the implementable tickets + task manifests from it, and those carry `ready-for-agent`.
Author
Owner

/to-tickets ran over docs/slices/idip.yaml (commit f81b31b): tickets #771–#788, one per slice, task manifests + 30 native dependency edges, ready-for-agent — the swarm frontier is #771 keri-stack-nix, #772 keri-client-core, #773 credential-schemas, #774 founding-s3a-identity; apex is #788 idip-e2e-drive. The yaml now carries ticket: numbers and the living map links them.

/to-tickets ran over `docs/slices/idip.yaml` (commit f81b31b): tickets **#771–#788**, one per slice, task manifests + 30 native dependency edges, `ready-for-agent` — the swarm frontier is #771 keri-stack-nix, #772 keri-client-core, #773 credential-schemas, #774 founding-s3a-identity; apex is #788 idip-e2e-drive. The yaml now carries `ticket:` numbers and the living map links them.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#767
No description provided.