ruling owed: a member approved in the app cannot be issued Administrator (or any credential) from the control panel — every steward act records against a roster row they do not have #1978

Closed
opened 2026-09-28 23:08:12 +00:00 by ben · 4 comments
Owner

What is wrong

A member approved in the community app is in the community ledger but has no row in the gateway's roster (ADR 0235 d.3 retired the roster as standing; #1886/#1931 made the Members list read the ledger). Every steward act the panel offers on a member still records against the roster row, so for these members:

  1. Opening their credentials shows keria: no such member in the roster. GET /api/v1/idip/members/{aid}/credentials → 409 (Registry.HeldCredentials → ErrNoSuchMember).
  2. Issuing them a credential — Administrator included — half-lands. The steward bundle signs the ACDC into the ledger FIRST (KomitiCredentialDriver.grant → issueCredential, app/src/lib/komitiCredentials.ts), THEN records it (anchorGrant → POST /api/v1/idip/credentials/{slug}/issue → Registry.AnchorCredentialIssuance → ErrNoSuchMember → 409). The credential exists in the ledger; the gateway never records it; the panel says "didn't finish issuing — nothing was half-granted", which is false; and the panel cannot revoke it afterwards, because revoke looks the SAID up in the roster's held list.
  3. The same shape holds for every roster-keyed act: holders (Registry.Holders), the last-Administrator floor (countLiveHeld), suspend / re-admit / remove records, and promotion (Registry.Promote — ADR 0286's own context names this one).

So today Ben cannot issue Administrator to an app-approved member from the control panel — the thing ADR 0286 exists for.

Evidence (Whakatōhea Demo, 2026-09-28, release 1bcd6615)

  • /var/lib/idss/keria/roster.json: members = the founder (+ one archived row); presented = three app-door holders (ben-3/Tairea, ben-2/ben, engie/Engie Matene). Two of the three ledger holders have no members row.
  • Front-door access log: GET /api/v1/idip/members/<aid>/credentials → 409 at 22:41:57Z, 22:42:01Z, 22:47:31Z (Ben opening an app-approved member's credentials). The founder's own read → 200, and his own Administrator issuance → issue 204 + confirm-receipt 204 at 22:37:22Z.
  • Ben's screenshot: the drill-in for EExc8YE…fL shows keria: no such member in the roster.

Stopgap already landed with this ticket's filing

The panel now knows whether the roster carries the holder (IdipRosterPanel.inRoster) and, when it does not, reads nothing against the roster, offers no Issue, and says "‹name› was approved in your community app. The control panel can't issue or revoke their credentials yet — do it from your community app." That stops new orphaned credentials. It does not give Ben the act.

Why human

One-way-door ruling — where a steward act on a roster-less member is recorded decides what the gateway believes about who holds Administrator, which is what opens the control panel (sign-in trust; ADR 0255's rule that these go to Ben first).

Options

A — the ledger is the record (recommended). The S4i held list, the holders list and the last-Administrator floor are read from the community ledger through the unlocked seat (the same ledgerMembers() read the Members list already uses; a committee ACDC carries its slug in a.committee). The gateway's issue/revoke/confirm-receipt records become a projection the panel writes when there is a row to write to, and never a precondition. Nothing new grants access: a holder's panel access stays what the bridge verifies at sign-in from the credentials they present (ADR 0235 d.6). This is ADR 0282 d.8 applied to credentials the way #1931 applied it to the member list.

B — record against the presented row. PresentedRow gains a held list and every roster-keyed registry function (AnchorCredentialIssuance, AnchorCredentialRevocation, ConfirmReceipt, HeldCredentials, Holders, HeldSlug, HeldHolder, countLiveHeld) reads both. Smaller, but it writes steward-recorded state onto a row ADR 0235 d.6 defines as verifier-attested only, and it must be decided whether those records feed sign-in claims (if they do, the gateway's own bookkeeping grants panel access without the member presenting anything).

C — materialise a roster row at first act. Reverses ADR 0235 d.3.

Proposed default ruling: A, with B's bookkeeping explicitly NOT feeding claims if any of it is kept.

Also to settle in the same ruling

  • Whether an app-approved member's wallet presents a panel-issued Administrator ACDC at the app door (so the bridge mints the administrator claim). Unproven — needs one live check with a second identity.
  • The orphan case: a credential in the ledger the gateway never recorded must be revocable from the panel (falls out of A).

ADR 0286 (context paragraph + d.1/d.6/d.10), ADR 0235 d.3/d.4/d.6, ADR 0282 d.8, #1886, #1931, #1951, #1956 (the contract phase must not land before this — an app-approved administrator is otherwise impossible).

## What is wrong A member **approved in the community app** is in the community ledger but has **no row in the gateway's roster** (ADR 0235 d.3 retired the roster as standing; #1886/#1931 made the Members list read the ledger). Every steward act the panel offers on a member still **records against the roster row**, so for these members: 1. **Opening their credentials shows `keria: no such member in the roster`.** `GET /api/v1/idip/members/{aid}/credentials` → **409** (`Registry.HeldCredentials` → `ErrNoSuchMember`). 2. **Issuing them a credential — Administrator included — half-lands.** The steward bundle signs the ACDC into the ledger FIRST (`KomitiCredentialDriver.grant` → `issueCredential`, `app/src/lib/komitiCredentials.ts`), THEN records it (`anchorGrant` → `POST /api/v1/idip/credentials/{slug}/issue` → `Registry.AnchorCredentialIssuance` → `ErrNoSuchMember` → 409). The credential exists in the ledger; the gateway never records it; the panel says *"didn't finish issuing — nothing was half-granted"*, which is false; and the panel cannot revoke it afterwards, because revoke looks the SAID up in the roster's held list. 3. The same shape holds for every roster-keyed act: holders (`Registry.Holders`), the last-Administrator floor (`countLiveHeld`), suspend / re-admit / remove records, and promotion (`Registry.Promote` — ADR 0286's own context names this one). So today **Ben cannot issue Administrator to an app-approved member from the control panel** — the thing ADR 0286 exists for. ## Evidence (Whakatōhea Demo, 2026-09-28, release `1bcd6615`) - `/var/lib/idss/keria/roster.json`: `members` = the founder (+ one archived row); `presented` = three app-door holders (`ben-3`/Tairea, `ben-2`/ben, `engie`/Engie Matene). Two of the three ledger holders have no `members` row. - Front-door access log: `GET /api/v1/idip/members/<aid>/credentials` → **409** at 22:41:57Z, 22:42:01Z, 22:47:31Z (Ben opening an app-approved member's credentials). The founder's own read → 200, and his own Administrator issuance → `issue` 204 + `confirm-receipt` 204 at 22:37:22Z. - Ben's screenshot: the drill-in for `EExc8YE…fL` shows `keria: no such member in the roster`. ## Stopgap already landed with this ticket's filing The panel now knows whether the roster carries the holder (`IdipRosterPanel.inRoster`) and, when it does not, reads nothing against the roster, **offers no Issue**, and says *"‹name› was approved in your community app. The control panel can't issue or revoke their credentials yet — do it from your community app."* That stops new orphaned credentials. It does not give Ben the act. ## Why human **One-way-door ruling** — where a steward act on a roster-less member is recorded decides what the gateway believes about who holds Administrator, which is what opens the control panel (sign-in trust; ADR 0255's rule that these go to Ben first). ## Options **A — the ledger is the record (recommended).** The S4i held list, the holders list and the last-Administrator floor are read from the **community ledger through the unlocked seat** (the same `ledgerMembers()` read the Members list already uses; a committee ACDC carries its slug in `a.committee`). The gateway's `issue`/`revoke`/`confirm-receipt` records become a projection the panel writes when there is a row to write to, and never a precondition. Nothing new grants access: a holder's panel access stays what the bridge verifies at sign-in from the credentials they present (ADR 0235 d.6). This is ADR 0282 d.8 applied to credentials the way #1931 applied it to the member list. **B — record against the presented row.** `PresentedRow` gains a held list and every roster-keyed registry function (`AnchorCredentialIssuance`, `AnchorCredentialRevocation`, `ConfirmReceipt`, `HeldCredentials`, `Holders`, `HeldSlug`, `HeldHolder`, `countLiveHeld`) reads both. Smaller, but it writes steward-recorded state onto a row ADR 0235 d.6 defines as verifier-attested only, and it must be decided whether those records feed sign-in claims (if they do, the gateway's own bookkeeping grants panel access without the member presenting anything). **C — materialise a roster row at first act.** Reverses ADR 0235 d.3. **Proposed default ruling: A**, with B's bookkeeping explicitly NOT feeding claims if any of it is kept. ## Also to settle in the same ruling - Whether an app-approved member's wallet **presents** a panel-issued Administrator ACDC at the app door (so the bridge mints the `administrator` claim). Unproven — needs one live check with a second identity. - The orphan case: a credential in the ledger the gateway never recorded must be revocable from the panel (falls out of A). ## Related ADR 0286 (context paragraph + d.1/d.6/d.10), ADR 0235 d.3/d.4/d.6, ADR 0282 d.8, #1886, #1931, #1951, #1956 (the contract phase must not land before this — an app-approved administrator is otherwise impossible).
Author
Owner

Update 2026-09-28 — what is now built, and what the code says about access

Built on session/member-credentials-names-admin-card (not yet on main), on Ben's word ("there was a card to add a credential to a members credential panel. I should be able to add a administrator credential from there"): for a member with no roster row the panel reads held credentials from the community ledger through the unlocked seat, an issue/revoke is complete when the ledger holds it, nothing is posted to the roster, and the last-live Administrator floor counts roster + ledger. No orphan, no no such member in the roster. That is option A for issue / revoke / held. Suspend, re-admit, remove and promote still record against the roster and still refuse for these members.

The "unproven" item is now answered from the code — it does NOT work. An Administrator (or any committee credential) held by a member who joined through the app opens nothing at the gateway:

  • An app-door sign-in verifies exactly one credential: keriauth.DoorVerifier.VerifyPresentation splits the presentation into one ACDC + its issuance event, and idp.identityFromVerdict sets Komitis only when THAT credential carries a committee claim. The member presents their Membership, so Komitis is empty.
  • appDoor.recordPresented writes that empty set as the presented row's Committees.
  • The panel gate (controlapi/idip_gate.go, service == AdminService) and every restricted service read GateRoster.Standing → presentedStanding → p.Committees. Empty → HoldsAdministrator(held, op) is false unless the legacy role: operator is on their Membership.
  • Live: all three presented rows on Whakatōhea Demo carry no committees field at all.

The gateway cannot look the credential up itself: the witnessed ledger carries SAIDs and seals, not who holds what — it needs the credential's bytes from someone.

The ruling now owed (sign-in trust)

How does the gateway come to read a committee credential an app-door member holds?

1 — the panel hands the gateway the credential it just issued, and the gateway verifies it (recommended first). At issue, the steward bundle posts the ACDC + issuance event; the gateway runs the SAME legs the door runs (SAIDs recompute, issuer + schema on the trust list, issue seal on the witnessed ledger, no revoke seal), records {said, slug} against the holder AID, and re-checks the SAID's standing on the ledger at every gate read — so a revocation from the panel OR the app closes the door. Nothing is believed on a steward's say-so; the ledger is. All inside this repo, no app release. Does not cover a credential issued from the app.

2 — the app presents every credential it holds at sign-in. The door verifies each and gathers the slugs. Covers credentials issued anywhere and is ADR 0235 d.6 as written ("what they present"). Needs a matou-app release and a multi-credential presentation format at the bridge.

Proposed default: 1 now, 2 as the follow-up — they compose (both end in a ledger-verified SAID on the holder's record).

Until one lands, the issue dialog tells the steward that a credential issued to an app-door member opens nothing yet.

## Update 2026-09-28 — what is now built, and what the code says about access **Built on `session/member-credentials-names-admin-card` (not yet on main), on Ben's word** (*"there was a card to add a credential to a members credential panel. I should be able to add a administrator credential from there"*): for a member with no roster row the panel reads held credentials from the **community ledger** through the unlocked seat, an issue/revoke is complete when the ledger holds it, nothing is posted to the roster, and the last-live Administrator floor counts roster + ledger. No orphan, no `no such member in the roster`. That is option A for issue / revoke / held. Suspend, re-admit, remove and promote still record against the roster and still refuse for these members. **The "unproven" item is now answered from the code — it does NOT work.** An Administrator (or any committee credential) held by a member who joined through the app **opens nothing at the gateway**: - An app-door sign-in verifies exactly **one** credential: `keriauth.DoorVerifier.VerifyPresentation` splits the presentation into one ACDC + its issuance event, and `idp.identityFromVerdict` sets `Komitis` only when THAT credential carries a `committee` claim. The member presents their Membership, so `Komitis` is empty. - `appDoor.recordPresented` writes that empty set as the presented row's `Committees`. - The panel gate (`controlapi/idip_gate.go`, `service == AdminService`) and every restricted service read `GateRoster.Standing` → `presentedStanding` → `p.Committees`. Empty → `HoldsAdministrator(held, op)` is false unless the legacy `role: operator` is on their Membership. - Live: all three presented rows on Whakatōhea Demo carry no `committees` field at all. The gateway cannot look the credential up itself: the witnessed ledger carries SAIDs and seals, not who holds what — it needs the credential's bytes from someone. ## The ruling now owed (sign-in trust) How does the gateway come to read a committee credential an app-door member holds? **1 — the panel hands the gateway the credential it just issued, and the gateway verifies it (recommended first).** At issue, the steward bundle posts the ACDC + issuance event; the gateway runs the SAME legs the door runs (SAIDs recompute, issuer + schema on the trust list, issue seal on the witnessed ledger, no revoke seal), records `{said, slug}` against the holder AID, and re-checks the SAID's standing on the ledger at every gate read — so a revocation from the panel OR the app closes the door. Nothing is believed on a steward's say-so; the ledger is. All inside this repo, no app release. Does not cover a credential issued from the app. **2 — the app presents every credential it holds at sign-in.** The door verifies each and gathers the slugs. Covers credentials issued anywhere and is ADR 0235 d.6 as written ("what they present"). Needs a matou-app release and a multi-credential presentation format at the bridge. **Proposed default: 1 now, 2 as the follow-up** — they compose (both end in a ledger-verified SAID on the holder's record). Until one lands, the issue dialog tells the steward that a credential issued to an app-door member opens nothing yet.
Author
Owner

Option 3 — Ben's proposal (2026-09-28): the control-panel door ASKS for the Administrator credential

"cant the gateway just ask for and check only the administrator credential and any member that has an administrator credential get access?"

The app-door protocol already works this way in shape: the door's ask names the credential it wants by schema (appdoor.go Schemas, the s= parameter; defaultAppSchemas() = Membership), and the app presents the held credential that matches (matou-app frontend/src/lib/signin/credential.ts chooseCredential). The gateway verifies what is presented against the witnessed ledger (keriauth.DoorVerifier.VerifyPresentation) and nothing is stored as a grant.

What it takes:

  • idss (bridge + gate): when the sign-in is for the control panel (rec.descriptor.Service == panelServiceName), ask for Administrator as well as Membership; verify each; open the panel on a verified, live committee: administrator; re-check that SAID's standing on every refresh so a revoke — from the panel or the app — closes the door.
  • matou-app: present the credential the door asks for by slug, and present two. Today chooseCredential returns the FIRST held credential of the asked schema, and Administrator shares the committee schema with every komiti credential — a member holding Finance and Administrator could present Finance.

Two points for the ruling:

  1. Membership is still checked. Administrator alone must not open the panel for a suspended member (DDR 0217 ruling 6: dormant credentials open nothing), and a committee credential carries no name or handle — the Membership is what says who they are.
  2. It needs an app release, and members on an older app keep presenting Membership only.

This supersedes option 2 (present everything) for the panel and is cleaner than option 1 on trust: the member proves it themselves at each sign-in and the gateway keeps no record that could go stale. Option 1 remains the way to get access on a live community before the app release.

## Option 3 — Ben's proposal (2026-09-28): the control-panel door ASKS for the Administrator credential *"cant the gateway just ask for and check only the administrator credential and any member that has an administrator credential get access?"* The app-door protocol already works this way in shape: the door's ask names the credential it wants by **schema** (`appdoor.go` `Schemas`, the `s=` parameter; `defaultAppSchemas()` = Membership), and the app presents the held credential that matches (`matou-app` `frontend/src/lib/signin/credential.ts` `chooseCredential`). The gateway verifies what is presented against the witnessed ledger (`keriauth.DoorVerifier.VerifyPresentation`) and nothing is stored as a grant. What it takes: - **idss (bridge + gate):** when the sign-in is for the control panel (`rec.descriptor.Service == panelServiceName`), ask for Administrator as well as Membership; verify each; open the panel on a verified, live `committee: administrator`; re-check that SAID's standing on every refresh so a revoke — from the panel or the app — closes the door. - **matou-app:** present the credential the door asks for **by slug**, and present two. Today `chooseCredential` returns the FIRST held credential of the asked schema, and Administrator shares the committee schema with every komiti credential — a member holding Finance and Administrator could present Finance. Two points for the ruling: 1. **Membership is still checked.** Administrator alone must not open the panel for a suspended member (DDR 0217 ruling 6: dormant credentials open nothing), and a committee credential carries no name or handle — the Membership is what says who they are. 2. **It needs an app release**, and members on an older app keep presenting Membership only. This supersedes option 2 (present everything) for the panel and is cleaner than option 1 on trust: the member proves it themselves at each sign-in and the gateway keeps no record that could go stale. Option 1 remains the way to get access on a live community before the app release.
Author
Owner

Ruled and built (gateway side) — ADR 0289, Ben 2026-09-28

Ben took option 3 further and ruled it: the control panel's door asks for the Administrator credential issued by the community's own identity, and opens on it alone. An administrator need not be a community member as far as the gateway is concerned. ("yes build it".)

Built on session/member-credentials-names-admin-card (not yet on main):

  • the panel's ask names the credential (credential: "administrator", cred= on the code), committee schema first;
  • the bridge verifies the presented Administrator against the witnessed ledger and tells the gateway only the holder + SAID (POST /api/v1/idip/roster/presented-administrator, bearer-gated);
  • the gate re-reads that SAID's standing on the ledger at every request, before the deny projection and the membership reads; the bridge re-reads it at every silent hop and refresh;
  • a session never hops silently through a door whose credential it lacks;
  • the Membership schemas stay on the panel's ask, so a steward on the legacy role and an older app still sign in as they do today.

Accepted consequences, recorded in the ADR: suspending a member does not close the control panel (revoke Administrator to close it — the Membership card says so); a non-member administrator gets the panel and no service.

What this ticket still holds

  1. Komiti credentials at a SERVICE's door for app-door members — unsettled. A finance credential issued to a member who joined through the app still opens no restricted service: the service's door asks for Membership and reads nothing else. ADR 0289 settled the control panel only.
  2. Suspend / re-admit / remove / promote for a roster-less member still record against the roster and still refuse.

Issue / revoke / held for roster-less members are done (the ledger is their record).

Owed elsewhere

  • matou-app: present by cred=, the credential card on the approve screen, and the no-credential screen — ticket linked below.
  • A drive leg that walks the panel's door with a wallet that reads cred=.

matou-app ticket: Matou/matou-app#683

## Ruled and built (gateway side) — ADR 0289, Ben 2026-09-28 Ben took option 3 further and ruled it: **the control panel's door asks for the Administrator credential issued by the community's own identity, and opens on it alone. An administrator need not be a community member as far as the gateway is concerned.** ("yes build it".) Built on `session/member-credentials-names-admin-card` (not yet on main): - the panel's ask names the credential (`credential: "administrator"`, `cred=` on the code), committee schema first; - the bridge verifies the presented Administrator against the witnessed ledger and tells the gateway only the holder + SAID (`POST /api/v1/idip/roster/presented-administrator`, bearer-gated); - the gate re-reads that SAID's standing on the ledger at every request, **before** the deny projection and the membership reads; the bridge re-reads it at every silent hop and refresh; - a session never hops silently through a door whose credential it lacks; - the Membership schemas stay on the panel's ask, so a steward on the legacy role and an older app still sign in as they do today. Accepted consequences, recorded in the ADR: suspending a member does not close the control panel (revoke Administrator to close it — the Membership card says so); a non-member administrator gets the panel and no service. ## What this ticket still holds 1. **Komiti credentials at a SERVICE's door for app-door members** — unsettled. A finance credential issued to a member who joined through the app still opens no restricted service: the service's door asks for Membership and reads nothing else. ADR 0289 settled the control panel only. 2. **Suspend / re-admit / remove / promote** for a roster-less member still record against the roster and still refuse. Issue / revoke / held for roster-less members are done (the ledger is their record). ## Owed elsewhere - matou-app: present by `cred=`, the credential card on the approve screen, and the no-credential screen — ticket linked below. - A drive leg that walks the panel's door with a wallet that reads `cred=`. matou-app ticket: Matou/matou-app#683
Author
Owner

Closed 2026-10-21 (Ben's stale sweep): ruled and built — PR #1984 (session/member-credentials-names-admin-card, ADR 0289 + DDR 0288) merged to main 8dd2fa05; the control panel's door asks for the Administrator credential.

Closed 2026-10-21 (Ben's stale sweep): ruled and built — PR #1984 (`session/member-credentials-names-admin-card`, ADR 0289 + DDR 0288) merged to main `8dd2fa05`; the control panel's door asks for the Administrator credential.
ben 2026-10-21 14:17:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1978
No description provided.