credentials: a revocation is asked about BEFORE it is signed, and the last-Administrator floor counts what the ledger confirms (#1993) #2026

Merged
ben merged 1 commit from session/revoke-asks-the-floor-first into main 2026-09-30 07:49:00 +00:00
Owner

Refs #1993

On Whakatōhea Demo (2026-09-29) both Administrators were revoked one after the other and the community was left with none. The last-Administrator floor (ADR 0286 d.6) lived in the record of a revocation, which the panel makes after the revocation is signed and witnessed. It refused a revocation that had already happened (a bare 502, nothing in the journal), the roster kept reading issued, and the panel's next count let the last live Administrator go.

What changes

  • Asked before signing. New POST /api/v1/idip/credentials/revoke/check. It refuses the last live Administrator before anything is signed (409 last_administrator) and reports a credential the ledger has already revoked. The revoke driver asks first (KomitiAnchor.mayRevoke); a removal asks about every held credential before its first signature (askBeforeRemoval), so it is refused whole, never half-done.
  • One count, from the ledger. The floor counts roster holders and administrators who opened the panel (ADR 0289), each confirmed on the witnessed ledger, read uncached (keriauth.DoorVerifier.Seals). The panel asks the control plane, then counts from the ledger as the seat reads it. A roster row the ledger has revoked no longer counts.
  • The record states a fact. A revocation the ledger holds is recorded whatever the floor would say and settled in the same act; recording ends the holder's panel sessions, so a steward who revoked their own has no session left to confirm with. One the ledger does not hold yet is held to the same count as the check.
  • App-approved administrators. Their revocation is recorded too: the gateway forgets the presented credential and ends their panel sessions (ADR 0286 d.9).
  • Refusals are logged, one journal line each naming the credential, its holder and why.

ADR 0286 d.6 and d.9 amended; GOTCHAS #384; STATUS entry.

For review

  • Behaviour choice: 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. Until then the gateway has never seen it.
  • Repair on the demo: once released, pressing Revoke on Ben's old Administrator card records the revocation without signing, and Administrator can be issued to him again.

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 only by pressing Revoke on that card; nothing sweeps it.

Checks

Rebased on main af76951c. Go build/vet/go test ./.../golangci-lint clean; app 182 files / 2239 tests; dashboard 168 files / 2230 tests (2 skipped); vue-tsc clean both; openapi check:client in sync. Not proven live.

🤖 Generated with Claude Code

Refs #1993 On Whakatōhea Demo (2026-09-29) both Administrators were revoked one after the other and the community was left with none. The last-Administrator floor (ADR 0286 d.6) lived in the **record** of a revocation, which the panel makes after the revocation is signed and witnessed. It refused a revocation that had already happened (a bare 502, nothing in the journal), the roster kept reading `issued`, and the panel's next count let the last live Administrator go. ## What changes - **Asked before signing.** New `POST /api/v1/idip/credentials/revoke/check`. It refuses the last live Administrator before anything is signed (409 `last_administrator`) and reports a credential the ledger has already revoked. The revoke driver asks first (`KomitiAnchor.mayRevoke`); a removal asks about every held credential before its first signature (`askBeforeRemoval`), so it is refused whole, never half-done. - **One count, from the ledger.** The floor counts roster holders and administrators who opened the panel (ADR 0289), each confirmed on the witnessed ledger, read uncached (`keriauth.DoorVerifier.Seals`). The panel asks the control plane, then counts from the ledger as the seat reads it. A roster row the ledger has revoked no longer counts. - **The record states a fact.** A revocation the ledger holds is recorded whatever the floor would say and settled in the same act; recording ends the holder's panel sessions, so a steward who revoked their own has no session left to confirm with. One the ledger does not hold yet is held to the same count as the check. - **App-approved administrators.** Their revocation is recorded too: the gateway forgets the presented credential and ends their panel sessions (ADR 0286 d.9). - **Refusals are logged**, one journal line each naming the credential, its holder and why. ADR 0286 d.6 and d.9 amended; GOTCHAS #384; STATUS entry. ## For review - **Behaviour choice:** 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. Until then the gateway has never seen it. - **Repair on the demo:** once released, pressing Revoke on Ben's old Administrator card records the revocation without signing, and Administrator can be issued to him again. ## 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 only by pressing Revoke on that card; nothing sweeps it. ## Checks Rebased on main `af76951c`. Go build/vet/`go test ./...`/golangci-lint clean; app 182 files / 2239 tests; dashboard 168 files / 2230 tests (2 skipped); `vue-tsc` clean both; openapi `check:client` in sync. **Not proven live.** 🤖 Generated with [Claude Code](https://claude.com/claude-code)
credentials: a revocation is asked about BEFORE it is signed, and the last-Administrator floor counts what the ledger confirms (#1993)
All checks were successful
ci / seam (pull_request) Successful in 15m54s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
39b764b4e4
On Whakatōhea Demo (2026-09-29) both Administrators were revoked one after the
other and the community was left with none. The floor (ADR 0286 d.6) lived in
the RECORD of a revocation, which the panel makes after the revocation is
signed and witnessed: it refused a revocation that had already happened (a bare
502, nothing in the journal), the roster kept reading "issued", and the panel's
next count let the last live Administrator go.

- control plane: POST /idip/credentials/revoke/check refuses the last live
  Administrator before anything is signed (409 last_administrator) and reports
  a credential the ledger has already revoked. The floor counts roster holders
  and the administrators who opened the panel (ADR 0289), each confirmed on the
  witnessed ledger, read uncached (keriauth.DoorVerifier.Seals).
- the record states a fact: a revocation the ledger holds is recorded whatever
  the floor would say, and settled in the same act; one it does not hold yet is
  held to the floor by the same count. An administrator approved in the app has
  their revocation recorded too, so their panel sessions end (ADR 0286 d.9).
  Every refusal leaves a journal line.
- steward bundle: the revoke driver asks first (KomitiAnchor.mayRevoke); a
  removal asks about every held credential before its first signature.
- panel: asks the control plane, then counts from the ledger as the seat reads
  it — a roster row the ledger has revoked no longer counts.

ADR 0286 d.6 and d.9 amended; GOTCHAS #384. Not proven live.

Refs #1993

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben force-pushed session/revoke-asks-the-floor-first from 39b764b4e4
All checks were successful
ci / seam (pull_request) Successful in 15m54s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
to cef4313b24
All checks were successful
ci / seam (pull_request) Successful in 15m41s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
2026-09-30 07:32:30 +00:00
Compare
ben merged commit 8f1408192d into main 2026-09-30 07:49:00 +00:00
Sign in to join this conversation.
No reviewers
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!2026
No description provided.