bug: the steward bundle never carried adminInbox — Members' "waiting for approval" has never worked on a live community (#1932 built against a fake) #1977

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

What is wrong

On a live IDIP community the Members tab always shows

Who's waiting for approval couldn't be read just now — the list below is unaffected. Try again

and Try again never works. The steward bundle the gateway serves has no adminInbox verb at all. #1932 (panel-unlock 3/7) built the panel half against a fake bundle that carried the verb; the bundle half was never built.

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

  • grep -c adminInbox /srv/idss/dashboard/idip/keri-web.js → 0.
  • app/src/keriweb/main.ts mounts window.idssKeriSteward = { approve, approveWithCredentials, unlock, lock, isUnlocked, issue, revoke, revokeAll, suspend, readmit, remove, ledgerMembers, mintSealingKey, unlockFromSealedBox } — no adminInbox.
  • git log -S adminInbox -- app/src → nothing. The verb has never existed in app/src.
  • dashboard/src/lib/idip.ts declares adminInbox(): Promise<Application[]> on IdipStewardBundle, and IdipRosterPanel.vue readInbox() calls bundle.adminInbox() → TypeError → inboxFault.
  • Ben's screenshot of admin.whakatohea-demo.idss.nz/members shows the line on every load.

This is the same defect class as #1938 (mintSealingKey / unlockFromSealedBox were declared on the interface and never mounted). It recurred because nothing pins the interface against what the bundle mounts.

What to build

  1. adminInbox() in the steward bundle (app/src/keriweb/main.ts + a DOM-free half in app/src/lib/, the ledgerMembers.ts shape): read the registration exchanges waiting in THIS steward's agent through the unlocked seat and answer Application[] (dashboard/src/lib/idip.ts).
    • The community app sends them on route /matou/registration/apply (topic registration) to each org admin — matou-app frontend/src/lib/keri/client.ts (sendRegistration…, ~line 1288 and ~3366). The wallet's own inbox read is frontend/src/composables/useAdminActions.ts (filters notifications on route.includes('/matou/registration/')); useRegistrationPolling.ts lists the notification routes (/exn/matou/registration/apply, …/apply/pending).
    • An application already answered (approved → the applicant holds a live Membership in the ledger; declined → /matou/registration/decline sent) is not waiting.
    • Locked seat → refuse (LockedSeat), never []. Unreachable agent → RecordsUnreachable. Same three-fault discipline as readLedgerMembers.
  2. Mount it on window.idssKeriSteward and declare it on the Window type.
  3. Prove it over golden KERIA bytes (#1301's discipline), the way app/tests/unit/ledgerMembers.test.ts does.

Already landed with this ticket's filing

  • The panel no longer shows a false retry: when the served bundle has no adminInbox it says "People waiting for approval can't be shown here yet — approve them in your community app." (data-status="inbox-not-served"). Remove nothing — once the verb exists the branch is simply never taken.
  • app/tests/unit/keriwebStewardMount.test.ts now pins every method of the dashboard's IdipStewardBundle interface against what the bundle mounts, with adminInbox as the one named known gap citing this ticket. Delete adminInbox from that known-gap list in the commit that builds the verb — the pin then fails if it is not mounted.

Acceptance criteria

  • Given an unlocked seat and an application waiting in this steward's agent, when Members renders on a live community, then Waiting for approval lists it (the #1932 criteria, now against the real bundle).
  • Given the served bundle, when the mount pin runs, then adminInbox is a function and the known-gap list is empty.
  • Given a locked seat, when adminInbox() is called, then it refuses with LockedSeat and never answers [].
  • The live proof is a drive leg or a hand check on a kept community; a green against the fake bundle does not close this.

#1932 (the panel half), #1938 (the same gap, first time), #1929 (spec), ADR 0235 d.1/d.2, ADR 0282 d.8.

## What is wrong On a live IDIP community the Members tab always shows > Who's waiting for approval couldn't be read just now — the list below is unaffected. **Try again** and *Try again* never works. The **steward bundle the gateway serves has no `adminInbox` verb at all**. #1932 (panel-unlock 3/7) built the panel half against a fake bundle that carried the verb; the bundle half was never built. ## Evidence (Whakatōhea Demo, 2026-09-28, release `1bcd6615` seq 3016) - `grep -c adminInbox /srv/idss/dashboard/idip/keri-web.js` → **0**. - `app/src/keriweb/main.ts` mounts `window.idssKeriSteward = { approve, approveWithCredentials, unlock, lock, isUnlocked, issue, revoke, revokeAll, suspend, readmit, remove, ledgerMembers, mintSealingKey, unlockFromSealedBox }` — no `adminInbox`. - `git log -S adminInbox -- app/src` → nothing. The verb has never existed in `app/src`. - `dashboard/src/lib/idip.ts` declares `adminInbox(): Promise<Application[]>` on `IdipStewardBundle`, and `IdipRosterPanel.vue` `readInbox()` calls `bundle.adminInbox()` → `TypeError` → `inboxFault`. - Ben's screenshot of `admin.whakatohea-demo.idss.nz/members` shows the line on every load. This is the **same defect class as #1938** (`mintSealingKey` / `unlockFromSealedBox` were declared on the interface and never mounted). It recurred because nothing pins the interface against what the bundle mounts. ## What to build 1. `adminInbox()` in the steward bundle (`app/src/keriweb/main.ts` + a DOM-free half in `app/src/lib/`, the `ledgerMembers.ts` shape): read the registration exchanges waiting in THIS steward's agent through the unlocked seat and answer `Application[]` (`dashboard/src/lib/idip.ts`). - The community app sends them on route `/matou/registration/apply` (topic `registration`) to each org admin — `matou-app` `frontend/src/lib/keri/client.ts` (`sendRegistration…`, ~line 1288 and ~3366). The wallet's own inbox read is `frontend/src/composables/useAdminActions.ts` (filters notifications on `route.includes('/matou/registration/')`); `useRegistrationPolling.ts` lists the notification routes (`/exn/matou/registration/apply`, `…/apply/pending`). - An application already answered (approved → the applicant holds a live Membership in the ledger; declined → `/matou/registration/decline` sent) is not waiting. - Locked seat → refuse (`LockedSeat`), never `[]`. Unreachable agent → `RecordsUnreachable`. Same three-fault discipline as `readLedgerMembers`. 2. Mount it on `window.idssKeriSteward` and declare it on the `Window` type. 3. Prove it over golden KERIA bytes (#1301's discipline), the way `app/tests/unit/ledgerMembers.test.ts` does. ## Already landed with this ticket's filing - The panel no longer shows a false retry: when the served bundle has no `adminInbox` it says *"People waiting for approval can't be shown here yet — approve them in your community app."* (`data-status="inbox-not-served"`). Remove nothing — once the verb exists the branch is simply never taken. - `app/tests/unit/keriwebStewardMount.test.ts` now pins **every** method of the dashboard's `IdipStewardBundle` interface against what the bundle mounts, with `adminInbox` as the one named known gap citing this ticket. **Delete `adminInbox` from that known-gap list in the commit that builds the verb** — the pin then fails if it is not mounted. ## Acceptance criteria - [ ] **Given** an unlocked seat and an application waiting in this steward's agent, **when** Members renders on a live community, **then** *Waiting for approval* lists it (the #1932 criteria, now against the real bundle). - [ ] **Given** the served bundle, **when** the mount pin runs, **then** `adminInbox` is a function and the known-gap list is empty. - [ ] **Given** a locked seat, **when** `adminInbox()` is called, **then** it refuses with `LockedSeat` and never answers `[]`. - [ ] The live proof is a drive leg or a hand check on a kept community; a green against the fake bundle does not close this. ## Related #1932 (the panel half), #1938 (the same gap, first time), #1929 (spec), ADR 0235 d.1/d.2, ADR 0282 d.8.
Author
Owner

Held off the swarm queue (no-triage, ready-for-agent removed) until the branch session/member-credentials-names-admin-card lands: it carries the panel stopgap and the mount pin this ticket tells the builder to edit. Re-add ready-for-agent when that branch is on main.

Held off the swarm queue (`no-triage`, `ready-for-agent` removed) until the branch `session/member-credentials-names-admin-card` lands: it carries the panel stopgap and the mount pin this ticket tells the builder to edit. Re-add `ready-for-agent` when that branch is on main.
Author
Owner

PR #1984 is merged (main 8dd2fa05), so the panel code this ticket builds against is on main. ready-for-agent is back on and no-triage is off.

What #1984 changed for this ticket: the Members tab no longer shows an error when the bundle has no adminInbox; it says people waiting can't be shown there yet (data-status="inbox-not-served" in IdipRosterPanel.vue). app/tests/unit/keriwebStewardMount.test.ts pins the panel's interface against what the bundle mounts, with adminInbox listed as the one known gap (KNOWN_GAPS = { adminInbox: 1977 }). Building the verb means removing that entry.

PR #1984 is merged (main `8dd2fa05`), so the panel code this ticket builds against is on main. `ready-for-agent` is back on and `no-triage` is off. What #1984 changed for this ticket: the Members tab no longer shows an error when the bundle has no `adminInbox`; it says people waiting can't be shown there yet (`data-status="inbox-not-served"` in `IdipRosterPanel.vue`). `app/tests/unit/keriwebStewardMount.test.ts` pins the panel's interface against what the bundle mounts, with `adminInbox` listed as the one known gap (`KNOWN_GAPS = { adminInbox: 1977 }`). Building the verb means removing that entry.

swarm-claim host=matou-dev-server-01 run=35430
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=35430 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1977 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1977,
  "status": "success",
  "commits": [
    "6dd2e48e1c4f0e4f3eeeaf510ceabf71232cf7d1"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/src/lib/adminInbox.ts",
    "app/tests/unit/adminInbox.test.ts",
    "app/tests/unit/keriwebStewardMount.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && npx vitest run tests/unit/adminInbox.test.ts tests/unit/keriwebStewardMount.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given an unlocked seat and an application waiting in this steward's agent, when Members renders on a live community, then Waiting for approval lists it": "app/src/lib/adminInbox.ts readAdminInbox() reads the steward's agent notifications for /matou/registration/apply, loads each exchange and answers one Application per waiting member; proven at the seam over golden-shaped notification/exchange bytes in app/tests/unit/adminInbox.test.ts (the 'AC1' cases: lists waiting applicants, carries applicant/invite/preset the approve verb reads). Seam-level over golden bytes (#1301 discipline the ticket asked for); the live drive/hand-check is owed (see unproven_by_seam / AC4).",
    "Given the served bundle, when the mount pin runs, then adminInbox is a function and the known-gap list is empty": "app/src/keriweb/main.ts mounts adminInbox on window.idssKeriSteward and declares it on the Window type; app/tests/unit/keriwebStewardMount.test.ts KNOWN_GAPS is now {} and the pin (green) asserts every IdipStewardBundle method — adminInbox included — is a function on the imported bundle.",
    "Given a locked seat, when adminInbox() is called, then it refuses with LockedSeat and never answers []": "readAdminInbox() throws LockedSeat before touching the agent when deps.unlocked is false, and idssKeriStewardAdminInbox() throws LockedSeat when sessionUnlock.isUnlocked() is false; app/tests/unit/adminInbox.test.ts 'AC3' asserts LockedSeat, that the agent is never read, and that it is not RecordsUnreachable.",
    "The live proof is a drive leg or a hand check on a kept community; a green against the fake bundle does not close this": "OWED — not performable in the sandbox (no live community). The bundle half is now REAL (mounted, pin empty), not the fake #1932 used, but the seam proof is over authored golden bytes; carried as unproven_by_seam for a drive leg / hand-check on a kept community, and the exn payload field names remain inferred, not verified against a live matou-app exchange."
  },
  "binds": [
    {
      "symbol": "adminInbox",
      "defined_in": "app/src/keriweb/main.ts"
    }
  ],
  "summary": "Built and mounted the steward bundle's adminInbox verb (the #1932-owed bundle half), proven at the seam over golden notification/exchange bytes; the mount pin's known-gap list is now empty.",
  "blockers": [],
  "unproven_by_seam": "The seam proves the mapping and fault discipline over authored golden-shaped bytes, not a live KERIA. UNPROVEN LIVE (AC4): no drive leg or hand-check has run against a real matou-app registration exchange on a kept community — the Whakatohea Demo reproduction the ticket cites was not re-driven here. UNVERIFIED CONTRACT: the exn payload FIELD NAMES (handle=preferred_username, inviteId, preset, datetime=exn.dt, decline via /matou/registration/decline) are inferred from ADR 0235 + the 2026-08-24 matou-app KERI flow inventory + this repo's OIDC convention, NOT verified against a live matou-app exchange. The load-bearing field (applicant AID = exn.i) is KERI-authoritative and certain; the profile fields are read defensively so a payload that omits or renames one degrades to the AID rather than a broken row. The residual 'built against a fake' risk this ticket names would be closed by a shared golden registration-exn fixture (the #1959 cross-repo-mirror mechanism) between idss and matou-app; that touches the protected .sandcastle/cross-repo-mirrors.tsv, so it is flagged for a session rather than added here."
}
**close-report** for #1977 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1977, "status": "success", "commits": [ "6dd2e48e1c4f0e4f3eeeaf510ceabf71232cf7d1" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/src/lib/adminInbox.ts", "app/tests/unit/adminInbox.test.ts", "app/tests/unit/keriwebStewardMount.test.ts" ], "tests": [ { "command": "cd app && npx vitest run tests/unit/adminInbox.test.ts tests/unit/keriwebStewardMount.test.ts", "exit_code": 0 }, { "command": "cd app && npx vue-tsc -p tsconfig.json", "exit_code": 0 } ], "criteria": { "Given an unlocked seat and an application waiting in this steward's agent, when Members renders on a live community, then Waiting for approval lists it": "app/src/lib/adminInbox.ts readAdminInbox() reads the steward's agent notifications for /matou/registration/apply, loads each exchange and answers one Application per waiting member; proven at the seam over golden-shaped notification/exchange bytes in app/tests/unit/adminInbox.test.ts (the 'AC1' cases: lists waiting applicants, carries applicant/invite/preset the approve verb reads). Seam-level over golden bytes (#1301 discipline the ticket asked for); the live drive/hand-check is owed (see unproven_by_seam / AC4).", "Given the served bundle, when the mount pin runs, then adminInbox is a function and the known-gap list is empty": "app/src/keriweb/main.ts mounts adminInbox on window.idssKeriSteward and declares it on the Window type; app/tests/unit/keriwebStewardMount.test.ts KNOWN_GAPS is now {} and the pin (green) asserts every IdipStewardBundle method — adminInbox included — is a function on the imported bundle.", "Given a locked seat, when adminInbox() is called, then it refuses with LockedSeat and never answers []": "readAdminInbox() throws LockedSeat before touching the agent when deps.unlocked is false, and idssKeriStewardAdminInbox() throws LockedSeat when sessionUnlock.isUnlocked() is false; app/tests/unit/adminInbox.test.ts 'AC3' asserts LockedSeat, that the agent is never read, and that it is not RecordsUnreachable.", "The live proof is a drive leg or a hand check on a kept community; a green against the fake bundle does not close this": "OWED — not performable in the sandbox (no live community). The bundle half is now REAL (mounted, pin empty), not the fake #1932 used, but the seam proof is over authored golden bytes; carried as unproven_by_seam for a drive leg / hand-check on a kept community, and the exn payload field names remain inferred, not verified against a live matou-app exchange." }, "binds": [ { "symbol": "adminInbox", "defined_in": "app/src/keriweb/main.ts" } ], "summary": "Built and mounted the steward bundle's adminInbox verb (the #1932-owed bundle half), proven at the seam over golden notification/exchange bytes; the mount pin's known-gap list is now empty.", "blockers": [], "unproven_by_seam": "The seam proves the mapping and fault discipline over authored golden-shaped bytes, not a live KERIA. UNPROVEN LIVE (AC4): no drive leg or hand-check has run against a real matou-app registration exchange on a kept community — the Whakatohea Demo reproduction the ticket cites was not re-driven here. UNVERIFIED CONTRACT: the exn payload FIELD NAMES (handle=preferred_username, inviteId, preset, datetime=exn.dt, decline via /matou/registration/decline) are inferred from ADR 0235 + the 2026-08-24 matou-app KERI flow inventory + this repo's OIDC convention, NOT verified against a live matou-app exchange. The load-bearing field (applicant AID = exn.i) is KERI-authoritative and certain; the profile fields are read defensively so a payload that omits or renames one degrades to the AID rather than a broken row. The residual 'built against a fake' risk this ticket names would be closed by a shared golden registration-exn fixture (the #1959 cross-repo-mirror mechanism) between idss and matou-app; that touches the protected .sandcastle/cross-repo-mirrors.tsv, so it is flagged for a session rather than added here." } ``` </details>
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#1977
No description provided.