members + panel door: Administrator is a card issued from the one picker, members are named by their Membership, and the control panel's door asks for Administrator (DDR 0288, ADR 0289) #1984

Merged
ben merged 4 commits from session/member-credentials-names-admin-card into main 2026-09-29 01:35:59 +00:00
Owner

Refs #1977, #1978, #1979, matou-app#683. None of them is finished by this PR; they stay open.

Do not release this to a community before the matou-app release that reads cred= (matou-app#683). Merging to main is fine. See Release order.

What Ben saw (Whakatōhea Demo, 2026-09-28): on the Members tab, members and "issued by" showed AIDs, not names; an issued Administrator was a line of text under the credentials panel; "Who's waiting for approval couldn't be read"; a member approved in the app opened keria: no such member in the roster; and two credential cards were called Administrator, where editing the one he made opened the built-in.

Changes

Members tab (DDR 0288)

  • A member is named by their own Membership (name, preferred_username); "issued by" names the member or the community, and falls back to a short AID only when neither is known.
  • Administrator is a card in the held list with Revoke, and the first entry in the one Issue-a-credential picker. The separate "make an administrator" button and the text block are gone.
  • "Make a steward" is removed from the panel (Ben's ruling). The drive's two steward legs went with it (#1979).
  • A stored definition with the administrator slug is folded into the built-in on load, so there is one Administrator card.
  • The waiting-for-approval box says the inbox is not served here yet instead of an error (#1977 is the build).
  • The community descriptor is fetched from the apex when the panel is on admin.<apex> (it answered 404 there).

A member approved in the app (second commit)

  • The Issue-a-credential card works for a member who is on the ledger and not on the roster: the ledger is their record. The dialog says plainly that a komiti credential issued to them is not yet read at a service's door (#1978).

The control panel's door (ADR 0289, Ben's sign-in trust ruling)

  • The door asks for the Administrator credential (credential on the ask, cred= on the code) and the panel opens on it alone. Its holder need not be a community member.
  • The gateway records only the verified holder and SAID, and re-reads the credential's standing on the ledger at every request, silent hop and refresh.
  • A session verified by Administrator alone is never hopped into a member's service; a member's session without it is never hopped into the panel.
  • Accepted by Ben: suspending a member no longer shuts the panel for them. Revoke Administrator to do that. The Membership card says so.
  • A steward on the legacy role: operator still gets in on their Membership, until #1956.

Contract (fourth commit): internal/idp/testdata/app-door-golden.json states the wallet's rule (Administrator, else a Membership whose role is operator, else nothing) and the release order.

Release order

An app that predates cred= presents the first credential it holds of an asked schema, and the panel's ask now lists the committee schema first. A wallet holding a komiti credential ahead of its Membership would present that and be refused. So the app ships first; an updated app behaves as today until a gateway sends cred=.

Verified

  • Run on this branch before the last commit (contract + docs only): Go suite green; dashboard 159 files / 2094 tests green; app 176 files / 2161 tests green; shell tests green.
  • After the last commit: go test ./internal/idp/ green.
  • The panel door is proven at the seam (internal/idp/administrator_door_seam_test.go, internal/controlapi/idip_gate_administrator_test.go, the golden pin). It has not been driven on a live box, and no drive leg covers it yet.
  • Names from the Membership are not proven live; they need an unlocked steward seat on the demo.

Before merging

  • Number collision with session/release-number (pushed, unlanded): both hold DDR 0288 and GOTCHAS #360. Whichever lands second renumbers.
  • After this lands: ready-for-agent goes back on #1977.

Docs: DDR 0288, ADR 0289, ADR 0286 amendment, CONTEXT, the administrator-credential flow and three wireframes, STATUS, GOTCHAS #360–#364.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

Refs #1977, #1978, #1979, matou-app#683. None of them is finished by this PR; they stay open. > **Do not release this to a community before the matou-app release that reads `cred=`** (matou-app#683). Merging to main is fine. See *Release order*. **What Ben saw (Whakatōhea Demo, 2026-09-28):** on the Members tab, members and "issued by" showed AIDs, not names; an issued Administrator was a line of text under the credentials panel; "Who's waiting for approval couldn't be read"; a member approved in the app opened *keria: no such member in the roster*; and two credential cards were called Administrator, where editing the one he made opened the built-in. ## Changes **Members tab (DDR 0288)** - A member is named by their own Membership (`name`, `preferred_username`); "issued by" names the member or the community, and falls back to a short AID only when neither is known. - Administrator is a card in the held list with Revoke, and the first entry in the one Issue-a-credential picker. The separate "make an administrator" button and the text block are gone. - "Make a steward" is removed from the panel (Ben's ruling). The drive's two steward legs went with it (#1979). - A stored definition with the `administrator` slug is folded into the built-in on load, so there is one Administrator card. - The waiting-for-approval box says the inbox is not served here yet instead of an error (#1977 is the build). - The community descriptor is fetched from the apex when the panel is on `admin.<apex>` (it answered 404 there). **A member approved in the app (second commit)** - The Issue-a-credential card works for a member who is on the ledger and not on the roster: the ledger is their record. The dialog says plainly that a komiti credential issued to them is not yet read at a service's door (#1978). **The control panel's door (ADR 0289, Ben's sign-in trust ruling)** - The door asks for the Administrator credential (`credential` on the ask, `cred=` on the code) and the panel opens on it alone. Its holder need not be a community member. - The gateway records only the verified holder and SAID, and re-reads the credential's standing on the ledger at every request, silent hop and refresh. - A session verified by Administrator alone is never hopped into a member's service; a member's session without it is never hopped into the panel. - **Accepted by Ben:** suspending a member no longer shuts the panel for them. Revoke Administrator to do that. The Membership card says so. - A steward on the legacy `role: operator` still gets in on their Membership, until #1956. **Contract (fourth commit):** `internal/idp/testdata/app-door-golden.json` states the wallet's rule (Administrator, else a Membership whose role is `operator`, else nothing) and the release order. ## Release order An app that predates `cred=` presents the first credential it holds of an asked schema, and the panel's ask now lists the committee schema first. A wallet holding a komiti credential ahead of its Membership would present that and be refused. So the app ships first; an updated app behaves as today until a gateway sends `cred=`. ## Verified - Run on this branch before the last commit (contract + docs only): Go suite green; dashboard 159 files / 2094 tests green; app 176 files / 2161 tests green; shell tests green. - After the last commit: `go test ./internal/idp/` green. - The panel door is proven at the seam (`internal/idp/administrator_door_seam_test.go`, `internal/controlapi/idip_gate_administrator_test.go`, the golden pin). **It has not been driven on a live box**, and no drive leg covers it yet. - Names from the Membership are not proven live; they need an unlocked steward seat on the demo. ## Before merging - **Number collision with `session/release-number`** (pushed, unlanded): both hold **DDR 0288** and **GOTCHAS #360**. Whichever lands second renumbers. - After this lands: `ready-for-agent` goes back on #1977. Docs: DDR 0288, ADR 0289, ADR 0286 amendment, CONTEXT, the administrator-credential flow and three wireframes, STATUS, GOTCHAS #360–#364. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
Ben's rulings on the live Whakatōhea Demo, the first time ADR 0286's frames
met a real community.

Ruled (DDR 0288):
- Administrator, once held, is a card in the member's held list with its own
  Revoke; the block beneath the cards is gone. The last-live floor is unchanged.
- It is issued from the one "Issue a credential" picker; picking it says
  AC-I1's lines. There is no "make an administrator" button.
- "Make a steward" leaves the panel outright — a steward is made from the
  community app (ADR 0286 d.13). The drive's add-steward / remove-steward
  legs started from that button and are removed with it (#1979).

Fixed:
- Members approved in the app drew as bare AIDs: the ledger read carries the
  name and handle a Membership attests. ISSUED BY names the community, and a
  held card's "issued by" is the signed-in steward's name, not "operator".
- The panel read the community descriptor from admin.<apex>, where the front
  door serves none (404 on every Members load) — now the apex. GOTCHAS #362.
- A stored definition wearing the built-in's `administrator` slug drew a second
  Administrator card that opened the built-in — folded into it. GOTCHAS #360.

Found, ticketed, and made honest in the panel:
- The steward bundle never carried `adminInbox`; "waiting for approval" has
  never worked live (#1977). The panel names the app instead of offering a
  retry, and a pin binds every bundle verb to the dashboard's interface.
  GOTCHAS #361.
- A member approved in the app cannot be issued any credential from the panel:
  the act records against a roster row they do not have, and the issuance
  signs into the ledger before the record refuses (#1978, ruling owed). The
  panel offers such a member no issue meanwhile.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
Ben: "there was a card to add a credential to a members credential panel.
I should be able to add a administrator credential from there."

A member approved in the community app has no roster row, so their drill-in
read "keria: no such member in the roster" and an issuance signed into the
ledger before the roster refused to record it. For them the panel now reads
held credentials from the community ledger through the unlocked seat (the
ledger read carries each committee credential's slug), treats an issue or
revoke as complete when the ledger holds it, and posts nothing to the
roster. The last-live Administrator floor counts the roster and the ledger
together. Row pills are named from the slug.

What such a credential OPENS is not settled: an app-door sign-in presents
one credential, the Membership, so the gate's held set for an app-door
member is empty and an Administrator issued to them does not open the
control panel. The issue dialog says so instead of promising it (#1978).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
Ben's sign-in trust ruling, on the live Whakatōhea Demo: "what about just
asking for the administrator credential issued by the org aid? so a
administrator might not necessarily be a community member as far as the
gateway is concerned" — "yes build it".

Why: a member who joined through the community app signs in by presenting
ONE credential, their Membership, so the gateway never learned of another
they held and an Administrator issued to them opened nothing (GOTCHAS #363).

The bridge (internal/idp):
- the control panel's ask names the credential — `credential` on the ask,
  `cred=` on the code — under the committee schema, with the membership
  schemas kept after it for a steward on the legacy role and an app that
  predates `cred=`;
- a verified Administrator presentation is recorded with the gateway
  (holder + SAID, nothing else) and signs its holder in, member or not;
  any other committee credential, or Administrator at a service, is refused;
- a session never hops silently through a door whose credential it lacks,
  and an administrator who is no member carries no `members` group;
- every silent hop and refresh re-reads the presented Administrator's
  standing; identityFromVerdict no longer files a committee credential's
  SAID as a membership.

The gateway (internal/keria, internal/controlapi):
- the PresentedAdministrator projection, its bearer-gated write, and the
  gate's read — asked BEFORE the deny projection, re-read from the
  witnessed ledger at every request;
- both halves are optional interfaces, bound to the production adapters at
  build time.

The panel: the Membership card says suspending does not close the control
panel while the member holds Administrator; the issue dialog says what an
app-approved member's credential opens, and what it does not yet.

The golden wire file carries the contract the community app builds to
(matou-app#683).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
adr 0289 amended: at the panel's door the app presents Administrator, else an operator Membership, else nothing — and the app ships before the gateway (Ben, 2026-09-28, matou-app#683)
Some checks failed
ci / seam (pull_request) Failing after 20m48s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
af7ba1dbe3
The gateway kept the Membership schemas on the panel's ask so a steward on the
legacy role is not locked out (d.5), and the wallet rule in the golden discarded
them: a founding operator whose wallet held no Administrator credential would
have been stopped by their own app. The golden's wallet_rule now states the one
fallback, and release_order says the app goes first, because a wallet that
predates cred= presents the first held credential of an asked schema and the
ask now lists the committee schema first. GOTCHAS #364.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

Swarm healer: this branch's seam is red (run 35421, head af7ba1db). Removing the two steward legs (#1979) left memberRow (import, line 38) and FOUNDING_MEMBER_NAME (line 81) with no remaining uses in app/tests/e2e/journey.idip.debug.spec.ts — @typescript-eslint/no-unused-vars fires twice and pnpm lint exits 1. tsc and vitest are clean.

Detail and the fix are in #1986. main is unaffected.

Swarm healer: this branch's `seam` is red ([run 35421](https://git.matou.nz/Matou/idss/actions/runs/35421), head `af7ba1db`). Removing the two steward legs (#1979) left `memberRow` (import, line 38) and `FOUNDING_MEMBER_NAME` (line 81) with no remaining uses in `app/tests/e2e/journey.idip.debug.spec.ts` — `@typescript-eslint/no-unused-vars` fires twice and `pnpm lint` exits 1. `tsc` and `vitest` are clean. Detail and the fix are in #1986. `main` is unaffected.
ben merged commit 8dd2fa056d into main 2026-09-29 01:35:59 +00:00
Sign in to join this conversation.
No reviewers
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!1984
No description provided.