A revoke is signed BEFORE the last-Administrator floor is asked — the demo now holds zero live Administrators, and the roster still reads both as issued #1993

Closed
opened 2026-09-29 04:38:45 +00:00 by ben · 2 comments
Owner

What happened

Whakatōhea Demo, 2026-09-29, release 2026.09.3037. Ben revoked his own Administrator from the control panel, then Tairea's. The community now holds zero live Administrator credentials, which is the state the last-Administrator floor (ADR 0286 d.6) exists to prevent. The control panel door opens on Administrator alone (ADR 0289), so once the current panel session ends nobody can open the panel.

Evidence (gateway access log + roster.json)

Time (UTC) Request Result
04:27:19 DELETE keria /identifiers/community/credentials/EGNFfh8a… (Ben's Administrator) 200 — revoke signed and anchored
04:27:21 POST admin /api/v1/idip/credentials/revoke 502 (138 bytes)
04:28:04 DELETE keria /identifiers/community/credentials/EObS0LtL… (Tairea's Administrator) 200
04:28:04+ no record call (by design for an app-approved member, #1978) —
04:33:09 Tairea signs in at the app door refused, refusal=revoked

roster.json after both revokes: Ben's held Administrator still reads state: issued; administrators still lists both SAIDs. The control plane journal holds no line for the 502.

Root causes

  1. The floor is asked after the irreversible act. KomitiCredentialDriver.revoke (app/src/lib/komitiCredentials.ts) calls keri.revokeCredential first and anchor.anchorRevoke second. Registry.AnchorCredentialRevocation (internal/keria/registry.go) is where ErrLastAdministrator is raised, so the refusal arrives once the TEL revocation is already witnessed. The roster then disagrees with the TEL for good.
  2. Two floors count different sets. The panel's pre-check (IdipMemberCredentials.vue) counts roster holders and community-ledger holders together. The control plane's countLiveHeld counts roster held rows only, so an Administrator approved in the app is invisible to it. With Ben (roster) + Tairea (ledger) the panel counted 2 and allowed the revoke; the control plane counted 1 and refused it.
  3. A failed record leaves the roster saying "issued". The panel's next floor check then counted Ben's revoked Administrator as live, and allowed Tairea's revoke — the last live one.
  4. The 502 is silent. No journal line names the refusal (same class as #1981).

Also seen

  • Revoking an app-approved member's Administrator posts nothing to the control plane, so epoch.AdvanceForRevocation (ADR 0286 d.9) never runs for them. Needs a check: does their open panel session outlive the revoke until the next token refresh?
  • The roster's administrators list keeps a revoked SAID.
  • The door's refusal for a revoked Administrator reads "this membership credential has been revoked".

Proposed fix (ruling owed — sign-in trust)

  • Ask the control plane before signing: a "may this be revoked" check that holds the floor, and only then sign.
  • One floor, one count: the control plane counts live Administrators from the roster and the community ledger (seal walk), as the panel does.
  • A record that fails after signing is retried and surfaced, never dropped; the roster must not keep reading issued for a credential the TEL has revoked.
  • The refusal is logged with its reason.

Recovery on the demo

While Ben's panel session is alive: issue Administrator to Tairea (the 0.8.2 app admits it unattended). Ben's own re-issue will sign but the record will answer ErrAlreadyHeld, because the roster still reads issued for the revoked SAID — the roster row needs a hand repair.

Found while proving matou-app#685 / #1989.

## What happened Whakatōhea Demo, 2026-09-29, release `2026.09.3037`. Ben revoked his own Administrator from the control panel, then Tairea's. The community now holds **zero live Administrator credentials**, which is the state the last-Administrator floor (ADR 0286 d.6) exists to prevent. The control panel door opens on Administrator alone (ADR 0289), so once the current panel session ends nobody can open the panel. ## Evidence (gateway access log + `roster.json`) | Time (UTC) | Request | Result | |---|---|---| | 04:27:19 | `DELETE keria /identifiers/community/credentials/EGNFfh8a…` (Ben's Administrator) | 200 — revoke signed and anchored | | 04:27:21 | `POST admin /api/v1/idip/credentials/revoke` | **502** (138 bytes) | | 04:28:04 | `DELETE keria /identifiers/community/credentials/EObS0LtL…` (Tairea's Administrator) | 200 | | 04:28:04+ | no record call (by design for an app-approved member, #1978) | — | | 04:33:09 | Tairea signs in at the app door | refused, `refusal=revoked` | `roster.json` after both revokes: Ben's held Administrator still reads `state: issued`; `administrators` still lists both SAIDs. The control plane journal holds no line for the 502. ## Root causes 1. **The floor is asked after the irreversible act.** `KomitiCredentialDriver.revoke` (`app/src/lib/komitiCredentials.ts`) calls `keri.revokeCredential` first and `anchor.anchorRevoke` second. `Registry.AnchorCredentialRevocation` (`internal/keria/registry.go`) is where `ErrLastAdministrator` is raised, so the refusal arrives once the TEL revocation is already witnessed. The roster then disagrees with the TEL for good. 2. **Two floors count different sets.** The panel's pre-check (`IdipMemberCredentials.vue`) counts roster holders and community-ledger holders together. The control plane's `countLiveHeld` counts roster `held` rows only, so an Administrator approved in the app is invisible to it. With Ben (roster) + Tairea (ledger) the panel counted 2 and allowed the revoke; the control plane counted 1 and refused it. 3. **A failed record leaves the roster saying "issued".** The panel's next floor check then counted Ben's revoked Administrator as live, and allowed Tairea's revoke — the last live one. 4. **The 502 is silent.** No journal line names the refusal (same class as #1981). ## Also seen - Revoking an app-approved member's Administrator posts nothing to the control plane, so `epoch.AdvanceForRevocation` (ADR 0286 d.9) never runs for them. Needs a check: does their open panel session outlive the revoke until the next token refresh? - The roster's `administrators` list keeps a revoked SAID. - The door's refusal for a revoked Administrator reads "this membership credential has been revoked". ## Proposed fix (ruling owed — sign-in trust) - Ask the control plane **before** signing: a "may this be revoked" check that holds the floor, and only then sign. - One floor, one count: the control plane counts live Administrators from the roster **and** the community ledger (seal walk), as the panel does. - A record that fails after signing is retried and surfaced, never dropped; the roster must not keep reading `issued` for a credential the TEL has revoked. - The refusal is logged with its reason. ## Recovery on the demo While Ben's panel session is alive: issue Administrator to Tairea (the 0.8.2 app admits it unattended). Ben's own re-issue will sign but the record will answer `ErrAlreadyHeld`, because the roster still reads `issued` for the revoked SAID — the roster row needs a hand repair. Found while proving matou-app#685 / #1989.
ben self-assigned this 2026-09-29 06:14:56 +00:00
Author
Owner

Built on session/revoke-asks-the-floor-first @ d1b89fa1 (on main 3458e03f), not pushed. Ben ruled "build it" 2026-09-29.

  • POST /api/v1/idip/credentials/revoke/check refuses the last live Administrator before anything is signed (409 last_administrator) and reports a credential the ledger already revoked.
  • The floor counts roster holders and the administrators who opened the panel, each confirmed on the witnessed ledger (uncached).
  • The record states a fact: a revocation the ledger holds is recorded whatever the floor would say, settled in one act. An app-approved administrator's revocation is recorded too (ADR 0286 d.9).
  • The revoke driver asks first; a removal asks about every held credential before its first signature.
  • The panel asks the control plane, then counts from the ledger.
  • ADR 0286 d.6 + d.9 amended, GOTCHAS #369, STATUS entry.

Behaviour for Ben's eye: for the control plane, an Administrator issued to a member approved in the app counts toward the floor only once they have opened the control panel with it.

Not done: the door still words a revoked Administrator as "this membership credential has been revoked"; a roster that disagrees with the ledger is repaired by pressing Revoke on that card, not swept.

Go build/vet/test/golangci-lint clean; app 179 files / 2205 tests; dashboard 162 files / 2129 tests; vue-tsc clean; openapi check:client in sync. Not proven live.

Demo at 06:50Z: Engie holds a live Administrator (presented 05:27Z), so the panel can be opened. Ben's roster row still reads issued for the revoked EGNFfh8a….

Built on `session/revoke-asks-the-floor-first` @ `d1b89fa1` (on main `3458e03f`), **not pushed**. Ben ruled "build it" 2026-09-29. - `POST /api/v1/idip/credentials/revoke/check` refuses the last live Administrator before anything is signed (409 `last_administrator`) and reports a credential the ledger already revoked. - The floor counts roster holders and the administrators who opened the panel, each confirmed on the witnessed ledger (uncached). - The record states a fact: a revocation the ledger holds is recorded whatever the floor would say, settled in one act. An app-approved administrator's revocation is recorded too (ADR 0286 d.9). - The revoke driver asks first; a removal asks about every held credential before its first signature. - The panel asks the control plane, then counts from the ledger. - ADR 0286 d.6 + d.9 amended, GOTCHAS #369, STATUS entry. **Behaviour for Ben's eye:** for the control plane, an Administrator issued to a member approved in the app counts toward the floor only once they have opened the control panel with it. **Not done:** the door still words a revoked Administrator as "this membership credential has been revoked"; a roster that disagrees with the ledger is repaired by pressing Revoke on that card, not swept. Go build/vet/test/golangci-lint clean; app 179 files / 2205 tests; dashboard 162 files / 2129 tests; vue-tsc clean; openapi check:client in sync. Not proven live. Demo at 06:50Z: Engie holds a live Administrator (presented 05:27Z), so the panel can be opened. Ben's roster row still reads `issued` for the revoked `EGNFfh8a…`.
Author
Owner

Closed 2026-10-21 (Ben's stale sweep): landed — the "a revocation is asked about BEFORE it is signed, and the last-Administrator floor" PR merged to main on 2026-09-30.

Closed 2026-10-21 (Ben's stale sweep): landed — the "a revocation is asked about BEFORE it is signed, and the last-Administrator floor" PR merged to main on 2026-09-30.
ben 2026-10-21 14:17:19 +00:00
  • closed this issue
  • removed the
    no-triage
    label
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#1993
No description provided.