idip: add / remove a steward (operator upgrade) surface — majority rotation, co-sign, solo-founder nudge (#786 is library-only) #1065

Closed
opened 2026-08-31 06:14:07 +00:00 by ben · 4 comments
Owner

What

On the IDIP path, give the control panel the operator upgrade — add a steward (and remove one) — as the majority-rotation ceremony ADR 0197 rules, plus the solo-founder nudge.

Ruled by Ben, 2026-08-31 (this session): file the surface.

The gap

#786 (steward-add-rotate, closed) shipped library-only: app/src/lib/stewardAddRotate.ts (driver, majorityThreshold, soloStewardNudge, StewardSetAnchor port) with unit tests. But:

  • app/src/keriweb/main.ts:215 exposes only { approve } to the dashboard — no steward.add / steward.remove.
  • No control-API routes for the StewardSetAnchor port (record the rotation + re-issued role: operator ACDC post-receipt).
  • No dashboard surface: the kanidm Grant operator in member detail (P6-S4, member.GrantOperator) has no IDIP branch; IdipRosterPanel.vue shows role read-only.
  • ADR 0197 left open which surface hosts steward acts for non-founder stewards (operator app vs dashboard). #788/ADR 0212 answered it for approve — the dashboard, via the keriweb bundle — so the default here is the same: the dashboard.

So a live IDIP community today is permanently 1-of-1: the founder cannot add a second steward, which ADR 0197 names as community-ending if the founder loses both phrase and device.

Shape

  1. Add a steward from member detail on an active member: an existing steward starts a multisig rotation of the community group AID adding the member's AID; it lands only when co-signed to the majority of the current stewards (1-of-1 → immediate; 2-of-2 / 2-of-3 … → the other stewards must co-sign). Then the member's membership ACDC is re-issued role: operator and the old role: member one revoked (in that order — never in neither group). operators in the bridge's groups claim tracks the steward set (ADR 0196).
  2. Pending rotation surface — the design work: at N > 1 a rotation waits for co-signs. Where does the second steward see "a rotation awaits your signature" and sign it? (Dashboard banner on the Members tab + the same phrase ceremony; the ADR 0068 shell-indicator pattern.) What happens to an un-co-signed rotation (expiry? cancel by initiator?).
  3. Remove a steward = the reverse rotation + re-issue role: member (or, combined with #1064 removal, revoke). Blocked when it would leave zero stewards.
  4. Solo-founder nudge (soloStewardNudge): while 1-of-1, the Members tab shows the honest why ("if you lose your phrase and this device, no one can recover the community") and the add-a-steward affordance — nudged, never forced.
  5. Operator key (Tier-1 mesh+SSH, rescue's ledger) is minted on operator grant the same as the kanidm path (ADR 0089) — stack-independent; the record lands when the rotation is receipted. Note: rescue's live IdentitySide adapter is still unwired (STATUS #158), so the key mint fails loud on both paths until then — not this ticket's to fix, but the surface must show it honestly rather than claim a key exists.
  6. Every signing act runs in a steward's browser; the gateway records AIDs/SAIDs only (ADR 0197/0198).

Acceptance

  • On a 1-of-1 IDIP community the founder can add a second steward from the dashboard; afterwards the new steward can sign in and approve a member (proves role: operator + group-AID membership).
  • On a 2-of-2 community, adding a third requires the second steward's co-sign; the pending state is visible to them and the rotation does not land on one signature.
  • Removing a steward rotates them out and drops operators; removing the last is refused.
  • The solo nudge shows at 1-of-1 and disappears at 2.
  • Wireframes: P6-S4 IDIP add/remove-steward ceremony states + the pending-co-sign surface; a DDR for the co-sign UX and the open ADR 0197 surface question (dashboard default, ruled by agent under ADR 0174 unless Ben vetoes).

Process

Design tier (may share the #1061/#1062/#1064 interview; the co-sign surface is the one genuinely new screen), then /to-spec → /to-tickets. Depends on #1064 only for the combined remove-steward + remove-member path — not a hard block.

  • #786 (library), #1064; ADRs 0089, 0174, 0196, 0197, 0198, 0212; docs/slices/idip.yaml steward-add-rotate; STATUS #158 (rescue adapters).
## What On the **IDIP path**, give the control panel the **operator upgrade** — *add a steward* (and remove one) — as the majority-rotation ceremony ADR 0197 rules, plus the **solo-founder nudge**. Ruled by Ben, 2026-08-31 (this session): file the surface. ## The gap #786 (`steward-add-rotate`, closed) shipped **library-only**: `app/src/lib/stewardAddRotate.ts` (driver, `majorityThreshold`, `soloStewardNudge`, `StewardSetAnchor` port) with unit tests. But: - `app/src/keriweb/main.ts:215` exposes only `{ approve }` to the dashboard — no `steward.add` / `steward.remove`. - No control-API routes for the `StewardSetAnchor` port (record the rotation + re-issued `role: operator` ACDC post-receipt). - No dashboard surface: the kanidm **Grant operator** in member detail (P6-S4, `member.GrantOperator`) has no IDIP branch; `IdipRosterPanel.vue` shows `role` read-only. - ADR 0197 left open **which surface hosts steward acts for non-founder stewards** (operator app vs dashboard). #788/ADR 0212 answered it for *approve* — the dashboard, via the `keriweb` bundle — so the default here is the same: the dashboard. So a live IDIP community today is **permanently 1-of-1**: the founder cannot add a second steward, which ADR 0197 names as community-ending if the founder loses both phrase and device. ## Shape 1. **Add a steward** from member detail on an *active* member: an existing steward starts a **multisig rotation** of the community group AID adding the member's AID; it lands only when co-signed to the **majority of the current stewards** (1-of-1 → immediate; 2-of-2 / 2-of-3 … → the other stewards must co-sign). Then the member's membership ACDC is **re-issued `role: operator`** and the old `role: member` one revoked (in that order — never in neither group). `operators` in the bridge's groups claim tracks the steward set (ADR 0196). 2. **Pending rotation surface** — the design work: at N > 1 a rotation waits for co-signs. Where does the second steward see *"a rotation awaits your signature"* and sign it? (Dashboard banner on the Members tab + the same phrase ceremony; the ADR 0068 shell-indicator pattern.) What happens to an un-co-signed rotation (expiry? cancel by initiator?). 3. **Remove a steward** = the reverse rotation + re-issue `role: member` (or, combined with #1064 removal, revoke). Blocked when it would leave zero stewards. 4. **Solo-founder nudge** (`soloStewardNudge`): while 1-of-1, the Members tab shows the honest why ("if you lose your phrase and this device, no one can recover the community") and the add-a-steward affordance — nudged, never forced. 5. **Operator key** (Tier-1 mesh+SSH, rescue's ledger) is minted on operator grant the same as the kanidm path (ADR 0089) — stack-independent; the record lands when the rotation is receipted. Note: rescue's live `IdentitySide` adapter is still unwired (STATUS #158), so the key mint fails loud on both paths until then — not this ticket's to fix, but the surface must show it honestly rather than claim a key exists. 6. Every signing act runs in a steward's browser; the gateway records AIDs/SAIDs only (ADR 0197/0198). ## Acceptance - On a 1-of-1 IDIP community the founder can add a second steward from the dashboard; afterwards the new steward can sign in and approve a member (proves `role: operator` + group-AID membership). - On a 2-of-2 community, adding a third requires the second steward's co-sign; the pending state is visible to them and the rotation does not land on one signature. - Removing a steward rotates them out and drops `operators`; removing the last is refused. - The solo nudge shows at 1-of-1 and disappears at 2. - Wireframes: P6-S4 IDIP add/remove-steward ceremony states + the pending-co-sign surface; a DDR for the co-sign UX and the open ADR 0197 surface question (dashboard default, ruled by agent under ADR 0174 unless Ben vetoes). ## Process Design tier (may share the #1061/#1062/#1064 interview; the co-sign surface is the one genuinely new screen), then `/to-spec` → `/to-tickets`. Depends on #1064 only for the combined remove-steward + remove-member path — not a hard block. ## Related - #786 (library), #1064; ADRs 0089, 0174, 0196, 0197, 0198, 0212; `docs/slices/idip.yaml` `steward-add-rotate`; STATUS #158 (rescue adapters).
Author
Owner

Design tier grilled — DDR 0217 landed (66b4ac1a), both gates confirmed by Ben 2026-08-31.

Flow: docs/ux/flows/p6-members-idip.mermaid · glossary: CONTEXT.md Credential entry · research: docs/research/2026-08-31-idip-credential-attributes.md · ADR 0199 gains the kaitiaki row.

Rulings binding this ticket: pending rotations are visible on a Members-tab strip to signed-in stewards, cancellable by any steward, never auto-expire, one at a time; the promoted member sees nothing until it lands; solo-founder nudge on S1i. And the ADR 0199 gap closes: no kaitiaki on IDIP — the steward set is the rescue pool (accepted knowingly: no share-holder-without-operator on this path). Stays needs-design; wireframed with #1061's set (S9i pending rotation is the new screen).

**Design tier grilled — DDR 0217 landed (`66b4ac1a`), both gates confirmed by Ben 2026-08-31.** Flow: `docs/ux/flows/p6-members-idip.mermaid` · glossary: CONTEXT.md **Credential** entry · research: `docs/research/2026-08-31-idip-credential-attributes.md` · ADR 0199 gains the kaitiaki row. Rulings binding this ticket: pending rotations are **visible on a Members-tab strip to signed-in stewards, cancellable by any steward, never auto-expire, one at a time**; the promoted member sees nothing until it lands; solo-founder nudge on S1i. And the ADR 0199 gap closes: **no kaitiaki on IDIP — the steward set is the rescue pool** (accepted knowingly: no share-holder-without-operator on this path). Stays `needs-design`; wireframed with #1061's set (S9i pending rotation is the new screen).
Author
Owner

Wireframe set landed and Ben-confirmed (2cd3cb78) — docs/ux/wireframes/p6-members-idip/ (12 screens, README inventory updated). Review rounds applied: S1i four titled sections with the merged per-member approve form (credential picker IS the approval; Decline beside Sign-and-approve; approve-all names the invite cohort); invites tinted, credentials as cards; S3i wears the matou-app phrase ceremony (word-box grid + 3-word verify); S4i actions inside their cards; new DDR 0217 ruling 9: signing unlocks once per dashboard session (twelve words asked at the first signing act, tab memory only, explicit lock) — every ceremony draws signing-locked/signing-unlocked. needs-design dropped. Next: /to-spec over #1061/#1062/#1064/#1065 against this set.

**Wireframe set landed and Ben-confirmed (`2cd3cb78`)** — `docs/ux/wireframes/p6-members-idip/` (12 screens, README inventory updated). Review rounds applied: S1i four titled sections with the merged per-member approve form (credential picker IS the approval; Decline beside Sign-and-approve; approve-all names the invite cohort); invites tinted, credentials as cards; S3i wears the matou-app phrase ceremony (word-box grid + 3-word verify); S4i actions inside their cards; **new DDR 0217 ruling 9: signing unlocks once per dashboard session** (twelve words asked at the first signing act, tab memory only, explicit lock) — every ceremony draws signing-locked/signing-unlocked. `needs-design` dropped. Next: `/to-spec` over #1061/#1062/#1064/#1065 against this set.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

State: ready-for-session (category enhancement unchanged).

The call. This feature ticket has finished the design tier — DDR 0217 (66b4ac1a) and the Ben-confirmed p6-members-idip wireframe set + flow (2cd3cb78), needs-design already dropped by the filer. But it is not ready-for-agent: it is a feature-level parent whose own Acceptance says "sharpened by /to-spec", and no task manifest exists yet. The next action (stated in the ticket's own last comment) is /to-spec → slice-map → /to-tickets — the design-pipeline tail. The swarm queue (.sandcastle/list-ready-tasks.sh) reads only ready-for-agent and implements code against an existing spec via TDD; it cannot run these pipeline meta-skills. So this is session work, not swarm work and not Ben.

Why it is a two-way door. /to-spec routes one gate to the human — "you confirm the seams" (PROCESS.md Phase 2, step 4). ADR 0174 rule 1 names design-tier accepts (DDRs/wireframes/seams, the #514/#388 auto-accept precedent) as delegable two-way doors: a session may adopt and act, Ben vetoes async. Routing to ready-for-session (not ready-for-human) is itself revertible — a later relabel or the seam confirmation moves it on with no state destroyed.

What proves it. The wireframe contract now exists and is confirmed; design-verify (the pipeline's loop-closer) checks the built UI's acceptance criteria against that contract and the seam tests, so any spec/seam the session confirms is provable after the fact. Nothing here touches the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no spend).

Applying ready-for-session. Dependency edges (this arc: #1062 blocked-by #1061; #1065 soft-dep on #1064) are for slice-map/to-tickets to encode as native blockers — not a triage-state gate.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **State: `ready-for-session`** (category `enhancement` unchanged). **The call.** This feature ticket has finished the design tier — DDR 0217 (`66b4ac1a`) and the Ben-confirmed `p6-members-idip` wireframe set + flow (`2cd3cb78`), `needs-design` already dropped by the filer. But it is **not** `ready-for-agent`: it is a feature-level parent whose own Acceptance says "sharpened by `/to-spec`", and no task manifest exists yet. The next action (stated in the ticket's own last comment) is `/to-spec` → `slice-map` → `/to-tickets` — the design-pipeline tail. The swarm queue (`.sandcastle/list-ready-tasks.sh`) reads only `ready-for-agent` and implements code against an existing spec via TDD; it cannot run these pipeline meta-skills. So this is session work, not swarm work and not Ben. **Why it is a two-way door.** `/to-spec` routes one gate to the human — "you confirm the seams" (PROCESS.md Phase 2, step 4). ADR 0174 rule 1 names **design-tier accepts** (DDRs/wireframes/seams, the #514/#388 auto-accept precedent) as delegable two-way doors: a session may adopt and act, Ben vetoes async. Routing to `ready-for-session` (not `ready-for-human`) is itself revertible — a later relabel or the seam confirmation moves it on with no state destroyed. **What proves it.** The wireframe contract now exists and is confirmed; `design-verify` (the pipeline's loop-closer) checks the built UI's acceptance criteria against that contract and the seam tests, so any spec/seam the session confirms is provable after the fact. Nothing here touches the one-way-door list (no credentials, no security widening, no member-facing trust accept, no data destruction, no spend). Applying `ready-for-session`. Dependency edges (this arc: #1062 blocked-by #1061; #1065 soft-dep on #1064) are for `slice-map`/`to-tickets` to encode as native blockers — not a triage-state gate.

Close-report — Ruled by agent under ADR 0174 (veto anytime).

#1065 is a design/spec ticket ("file the surface"), and its entire deliverable set already landed via the shared idip-credentials grill (DDR 0217, held 2026-08-31 over #1061/#1062/#1064/#1065 — the co-sign surface was the one genuinely new screen, as this ticket's Process anticipated). Nothing was owed that did not already exist; verified end-to-end this session.

What proves each acceptance item:

  • Wireframes — P6-S4 add/remove-steward ceremony states + pending co-sign surface → docs/ux/wireframes/p6-members-idip/: S4i carries the promote-to-steward affordance on an active member; S9i (p6-s9i-pending-rotation.html) carries the majority-rotation ceremony, the co-sign states ("2 of 3 must sign"), cancel, the 1-of-1 immediate-land case, remove-a-steward as the reverse on the same screen, and the last-steward refusal; S1i carries the solo-founder nudge ("if you lose your phrase and this device…") and the Members-tab co-sign strip ("a rotation awaits your signature"). Landed in commit 2cd3cb78; flow docs/ux/flows/p6-members-idip.mermaid (edges S4→S9 promote, S9 co-sign/cancel/second-refused, S1 nudge).
  • A DDR for the co-sign UX + the open ADR 0197 surface question (dashboard default) → DDR 0217 ruling 7 (pending rotations visible/cancellable/never-expiring/one-at-a-time on a Members-tab strip) and ruling 9 (the dashboard takes the passcode; the bridge's signify session is a different origin, unreachable by construction). The open ADR 0197 line ("which surface hosts non-founder steward acts is open on the map") is now recorded resolved → the dashboard on ADR 0197 itself (amendment 2026-08-31, this session, commit 0a857468), matching #788/ADR 0212's choice for approve.
  • Runtime acceptance (add a 2nd steward on 1-of-1; 2-of-2 co-sign gates a 3rd; remove rotates out + drops operators; last-steward refused; nudge shows at 1-of-1, gone at 2; honest operator-key mint given STATUS #158) → delegated to the already-emitted, ready-for-agent implementation tickets #1085 (T8 add-steward: majority rotation + co-sign strip + solo nudge) and #1086 (T9 remove-steward: reverse rotation + last-steward refusal), both children of spec #1074, in the DAG at docs/slices/idip.yaml (credentials-add-steward / credentials-remove-steward), with the live drive-leg proof gated behind #1087.

Process — done: design tier (shared interview) → /to-spec (#1074) → /to-tickets (#1078–#1087, incl. #1085/#1086). STATUS.md lead updated (commit 0a857468).

Commits this session: 0a857468 (ADR 0197 surface-resolution amendment + STATUS lead). No code owed on #1065 — the build is #1085/#1086.

Closing as design-complete. Veto reverts the ADR 0197 amendment; the implementation tickets stand on their own.

**Close-report — Ruled by agent under ADR 0174 (veto anytime).** #1065 is a **design/spec ticket** ("file the surface"), and its entire deliverable set already landed via the **shared idip-credentials grill** (DDR 0217, held 2026-08-31 over #1061/#1062/#1064/**#1065** — the co-sign surface was the one genuinely new screen, as this ticket's Process anticipated). Nothing was owed that did not already exist; verified end-to-end this session. **What proves each acceptance item:** - *Wireframes — P6-S4 add/remove-steward ceremony states + pending co-sign surface* → `docs/ux/wireframes/p6-members-idip/`: **S4i** carries the promote-to-steward affordance on an active member; **S9i** (`p6-s9i-pending-rotation.html`) carries the majority-rotation ceremony, the co-sign states ("2 of 3 must sign"), cancel, the 1-of-1 immediate-land case, remove-a-steward as the reverse on the same screen, and the **last-steward refusal**; **S1i** carries the **solo-founder nudge** ("if you lose your phrase and this device…") and the Members-tab **co-sign strip** ("a rotation awaits your signature"). Landed in commit `2cd3cb78`; flow `docs/ux/flows/p6-members-idip.mermaid` (edges S4→S9 promote, S9 co-sign/cancel/second-refused, S1 nudge). - *A DDR for the co-sign UX + the open ADR 0197 surface question (dashboard default)* → **DDR 0217** ruling 7 (pending rotations visible/cancellable/never-expiring/one-at-a-time on a Members-tab strip) and ruling 9 (the dashboard takes the passcode; the bridge's signify session is a different origin, unreachable by construction). The open ADR 0197 line ("which surface hosts non-founder steward acts is open on the map") is now recorded **resolved → the dashboard** on ADR 0197 itself (amendment 2026-08-31, this session, commit `0a857468`), matching #788/ADR 0212's choice for *approve*. - *Runtime acceptance* (add a 2nd steward on 1-of-1; 2-of-2 co-sign gates a 3rd; remove rotates out + drops `operators`; last-steward refused; nudge shows at 1-of-1, gone at 2; honest operator-key mint given STATUS #158) → delegated to the **already-emitted, `ready-for-agent`** implementation tickets **#1085** (T8 add-steward: majority rotation + co-sign strip + solo nudge) and **#1086** (T9 remove-steward: reverse rotation + last-steward refusal), both children of spec **#1074**, in the DAG at `docs/slices/idip.yaml` (`credentials-add-steward` / `credentials-remove-steward`), with the live drive-leg proof gated behind #1087. **Process — done:** design tier (shared interview) → `/to-spec` (#1074) → `/to-tickets` (#1078–#1087, incl. #1085/#1086). STATUS.md lead updated (commit `0a857468`). **Commits this session:** `0a857468` (ADR 0197 surface-resolution amendment + STATUS lead). No code owed on #1065 — the build is #1085/#1086. Closing as **design-complete**. Veto reverts the ADR 0197 amendment; the implementation tickets stand on their own.
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#1065
No description provided.