panel-unlock 1/7 — steward bundle: read the community ledger as the steward (#1929) #1930

Closed
opened 2026-09-27 19:09:40 +00:00 by matou-build-agent · 1 comment

Parent

  • Spec: #1929 — panel unlock (story 19, 21, 22, 23, 24)
  • Symptom ticket: #1886 · Wayfinder map: #1293
  • Design: ADR 0282 d.8, ADR 0235 d.4/d.6 · flow docs/ux/flows/panel-unlock.mermaid

What to build

The steward bundle can read the community ledger — the one registry the
descriptor names (community.registry, ADR 0235 d.4) — as the steward whose seat
is unlocked. It answers one row per credential, not per member: who holds it,
which schema (Membership / Committee), which steward issued it, when, its SAID,
and whether it is revoked. Nothing else in the panel changes yet; this is the
read the Members tab will render in 2/7.

The registry identifier comes from the descriptor the gateway already serves —
never a per-steward registry (ADR 0235 d.4 turned those off on this backend), and
never a roster read.

An unreadable ledger — the steward's agent, the community witness or the registry
not answering — fails closed: the verb raises a distinguishable
records-unreachable fault, and returns nothing partial and nothing cached. A
half-read ledger is the one outcome worse than none (a steward would re-approve
someone already in, or remove someone whose credential simply did not load).

Locked seat, no read: the verb requires the unlocked seat and says so rather than
returning an empty list — "nobody is a member" and "I cannot look" must never be
the same answer.

Acceptance criteria

  • Given an unlocked seat and a registry holding Membership and Committee credentials, when the ledger is read, then every issued credential is returned with holder AID, schema, issuing steward AID, issued-at, SAID and revoked state — including credentials issued by another steward seat or by the app.
  • Given a credential that has been revoked, when the ledger is read, then it is returned present and marked revoked (never omitted) — a revocation is a fact in the log, not a deletion.
  • Given a registry holding only the founder's Membership, when the ledger is read, then exactly that one row comes back.
  • Given the agent, witness or registry does not answer, when the ledger is read, then a records-unreachable fault is raised, and no partial or cached rows are returned.
  • Given a locked seat, when the ledger read is attempted, then it refuses with a locked-seat fault, distinct from both an empty ledger and an unreachable one.
  • Given the descriptor names no registry, when the ledger read is attempted, then it refuses loudly rather than guessing a registry or falling back to a per-steward one.
  • Proven with golden KERIA bytes in a fixture directory — no container, no network, no keripy (#1301's discipline).
  • The dashboard's steward-bundle type gains the verb so 2/7 can bind to it; no UI is changed by this ticket.

Blocked by

None — can start immediately.

Task manifest

task: ledger-read-verb
implements_flow: panel-unlock
implements_edge: M1 "reads the ledger"
wireframe: docs/ux/wireframes/panel-unlock/pu-m1-members-unlocked.html
interface: |
  IdipStewardBundle.ledgerMembers(): Promise<LedgerCredential[]>
  # one row per CREDENTIAL: { holder, schema, issuer, issuedAt, said, revoked }
  # throws LockedSeat | RecordsUnreachable — never returns partial rows
seam: app/tests/unit (steward-bundle verbs over golden KERIA fixtures)
acceptance:
  - given: an unlocked seat and a registry with credentials from several seats
    when: the ledger is read
    then: every issued credential returns with holder, schema, issuer, issued-at, said, revoked
  - given: a revoked credential
    when: the ledger is read
    then: the row is present and marked revoked
  - given: an unreachable agent/witness/registry
    when: the ledger is read
    then: a records-unreachable fault is raised and nothing partial or cached is returned
depends_on: []
out_of_scope: [members-surface-rendering, admin-inbox, phone-unlock, roster-projection-writes]
needs_human_decision: []

Ticketed by /to-tickets from spec #1929; granularity, blocking edges and cross-repo filing confirmed with Ben 2026-09-27.

🤖 Generated with Claude Code

https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY

## Parent - **Spec:** [#1929 — panel unlock](https://git.matou.nz/Matou/idss/issues/1929) (story 19, 21, 22, 23, 24) - **Symptom ticket:** #1886 · **Wayfinder map:** #1293 - **Design:** ADR 0282 d.8, ADR 0235 d.4/d.6 · flow `docs/ux/flows/panel-unlock.mermaid` ## What to build The steward bundle can **read the community ledger** — the one registry the descriptor names (`community.registry`, ADR 0235 d.4) — as the steward whose seat is unlocked. It answers one row per **credential**, not per member: who holds it, which schema (Membership / Committee), which steward issued it, when, its SAID, and whether it is revoked. Nothing else in the panel changes yet; this is the read the Members tab will render in 2/7. The registry identifier comes from the descriptor the gateway already serves — never a per-steward registry (ADR 0235 d.4 turned those off on this backend), and never a roster read. An unreadable ledger — the steward's agent, the community witness or the registry not answering — **fails closed**: the verb raises a distinguishable records-unreachable fault, and returns nothing partial and nothing cached. A half-read ledger is the one outcome worse than none (a steward would re-approve someone already in, or remove someone whose credential simply did not load). Locked seat, no read: the verb requires the unlocked seat and says so rather than returning an empty list — "nobody is a member" and "I cannot look" must never be the same answer. ## Acceptance criteria - [ ] **Given** an unlocked seat and a registry holding Membership and Committee credentials, **when** the ledger is read, **then** every issued credential is returned with holder AID, schema, issuing steward AID, issued-at, SAID and revoked state — including credentials issued by **another** steward seat or by the app. - [ ] **Given** a credential that has been revoked, **when** the ledger is read, **then** it is returned **present and marked revoked** (never omitted) — a revocation is a fact in the log, not a deletion. - [ ] **Given** a registry holding only the founder's Membership, **when** the ledger is read, **then** exactly that one row comes back. - [ ] **Given** the agent, witness or registry does not answer, **when** the ledger is read, **then** a records-unreachable fault is raised, and no partial or cached rows are returned. - [ ] **Given** a locked seat, **when** the ledger read is attempted, **then** it refuses with a locked-seat fault, distinct from both an empty ledger and an unreachable one. - [ ] **Given** the descriptor names no registry, **when** the ledger read is attempted, **then** it refuses loudly rather than guessing a registry or falling back to a per-steward one. - [ ] Proven with **golden KERIA bytes in a fixture directory** — no container, no network, no keripy (#1301's discipline). - [ ] The dashboard's steward-bundle type gains the verb so 2/7 can bind to it; **no UI is changed by this ticket**. ## Blocked by None — can start immediately. ## Task manifest ```yaml task: ledger-read-verb implements_flow: panel-unlock implements_edge: M1 "reads the ledger" wireframe: docs/ux/wireframes/panel-unlock/pu-m1-members-unlocked.html interface: | IdipStewardBundle.ledgerMembers(): Promise<LedgerCredential[]> # one row per CREDENTIAL: { holder, schema, issuer, issuedAt, said, revoked } # throws LockedSeat | RecordsUnreachable — never returns partial rows seam: app/tests/unit (steward-bundle verbs over golden KERIA fixtures) acceptance: - given: an unlocked seat and a registry with credentials from several seats when: the ledger is read then: every issued credential returns with holder, schema, issuer, issued-at, said, revoked - given: a revoked credential when: the ledger is read then: the row is present and marked revoked - given: an unreachable agent/witness/registry when: the ledger is read then: a records-unreachable fault is raised and nothing partial or cached is returned depends_on: [] out_of_scope: [members-surface-rendering, admin-inbox, phone-unlock, roster-projection-writes] needs_human_decision: [] ``` --- *Ticketed by `/to-tickets` from spec [#1929](https://git.matou.nz/Matou/idss/issues/1929); granularity, blocking edges and cross-repo filing confirmed with Ben 2026-09-27.* 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Author
Member

close-report for #1930 — status success

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

envelope
{
  "issue": 1930,
  "status": "success",
  "commits": [
    "9be48f01d51df969ed29e0c85f5439e3e98457bc"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/src/lib/keri/client.ts",
    "app/src/lib/ledgerMembers.ts",
    "app/tests/unit/ledgerMembers.test.ts",
    "app/tests/unit/testdata/ledger/credentials.json",
    "app/tests/unit/testdata/ledger/descriptor-no-registry.json",
    "app/tests/unit/testdata/ledger/descriptor.json",
    "app/tests/unit/testdata/ledger/founder-only.json",
    "app/tests/unit/testdata/ledger/presentation.cesr",
    "app/tests/unit/testdata/ledger/vectors.json",
    "dashboard/src/lib/idip.ts",
    "dashboard/tests/e2e/preview-harness/idipFakes.ts",
    "dashboard/tests/unit/credentialsSurface.test.ts",
    "dashboard/tests/unit/idipMemberCredentials.test.ts",
    "dashboard/tests/unit/removeMember.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && npx vitest run tests/unit/ledgerMembers.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vitest run tests/unit/keri tests/unit/membershipStanding.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vite build -c vite.keriweb.config.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vitest run tests/unit/credentialsSurface.test.ts tests/unit/idipMemberCredentials.test.ts tests/unit/removeMember.test.ts tests/unit/idipRosterPanel.test.ts tests/unit/signingSession.test.ts",
      "exit_code": 0
    },
    {
      "command": "pnpm run lint (eslint .) via the pre-push TS gate",
      "exit_code": 0
    }
  ],
  "criteria": {
    "unlocked seat + multi-seat registry returns every credential with holder/schema/issuer/issued-at/said/revoked incl. another seat and the app": "app/tests/unit/ledgerMembers.test.ts 'AC1 — an unlocked seat reads every issued credential from the one registry' (4 rows: founder golden ACDC, another-holder membership, committee schema; all fields asserted); readLedgerMembers in app/src/lib/ledgerMembers.ts",
    "a revoked credential is returned present-and-marked (never omitted)": "app/tests/unit/ledgerMembers.test.ts 'AC2' — the revoked row returns with revoked=true and its holder intact; ledgerCredentialFromRaw reads status.et rev/brv || s==='1'",
    "a registry holding only the founder returns exactly that one row": "app/tests/unit/ledgerMembers.test.ts 'AC3' over founder-only.json → length 1, the pinned golden credentialSaid",
    "an unreachable agent/witness/registry raises records-unreachable, nothing partial/cached": "app/tests/unit/ledgerMembers.test.ts 'AC4' — list() throwing → RecordsUnreachable; a half-formed row also fails closed; readLedgerMembers wraps non-RecordsUnreachable errors and re-throws on map failure",
    "a locked seat refuses with a locked-seat fault distinct from empty and unreachable": "app/tests/unit/ledgerMembers.test.ts 'AC5' — unlocked:false → LockedSeat before any read (read flag stays false), and not instanceof RecordsUnreachable",
    "descriptor names no registry → refuse loudly, no guess/per-steward fallback": "app/tests/unit/ledgerMembers.test.ts 'AC6' — descriptor-no-registry.json → communityRegistryFromDescriptor undefined → NoCommunityRegistry; stray per-steward-registry row filtered out ('never reads a per-steward registry')",
    "proven with golden KERIA bytes in a fixture directory (no container/network/keripy, #1301)": "app/tests/unit/testdata/ledger/ holds the verbatim #1301 presentation.cesr + vectors.json (copied from internal/keriauth/testdata); the test 'the founder row carries the genuine #1301 golden ACDC bytes' deep-equals credentials.json[0].sad to the ACDC parsed from presentation.cesr; readFileSync only, no network",
    "the dashboard's steward-bundle type gains the verb so 2/7 can bind; no UI changed": "dashboard/src/lib/idip.ts adds IdipStewardBundle.ledgerMembers() + LedgerCredential; implemented on window.idssKeriSteward (app/src/keriweb/main.ts); no dashboard component/.vue changed — only the interface, harness fake stub, and 3 test fakes"
  },
  "summary": "The steward bundle gains ledgerMembers(): one row per credential from the descriptor's one registry, fail-closed with distinct locked/no-registry/unreachable faults, proven over #1301 golden KERIA bytes; the dashboard type gains the verb with no UI change.",
  "blockers": []
}
**close-report** for #1930 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1930, "status": "success", "commits": [ "9be48f01d51df969ed29e0c85f5439e3e98457bc" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/src/lib/keri/client.ts", "app/src/lib/ledgerMembers.ts", "app/tests/unit/ledgerMembers.test.ts", "app/tests/unit/testdata/ledger/credentials.json", "app/tests/unit/testdata/ledger/descriptor-no-registry.json", "app/tests/unit/testdata/ledger/descriptor.json", "app/tests/unit/testdata/ledger/founder-only.json", "app/tests/unit/testdata/ledger/presentation.cesr", "app/tests/unit/testdata/ledger/vectors.json", "dashboard/src/lib/idip.ts", "dashboard/tests/e2e/preview-harness/idipFakes.ts", "dashboard/tests/unit/credentialsSurface.test.ts", "dashboard/tests/unit/idipMemberCredentials.test.ts", "dashboard/tests/unit/removeMember.test.ts" ], "tests": [ { "command": "cd app && npx vitest run tests/unit/ledgerMembers.test.ts", "exit_code": 0 }, { "command": "cd app && npx vitest run tests/unit/keri tests/unit/membershipStanding.test.ts", "exit_code": 0 }, { "command": "cd app && npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "cd app && npx vite build -c vite.keriweb.config.ts", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "cd dashboard && npx vitest run tests/unit/credentialsSurface.test.ts tests/unit/idipMemberCredentials.test.ts tests/unit/removeMember.test.ts tests/unit/idipRosterPanel.test.ts tests/unit/signingSession.test.ts", "exit_code": 0 }, { "command": "pnpm run lint (eslint .) via the pre-push TS gate", "exit_code": 0 } ], "criteria": { "unlocked seat + multi-seat registry returns every credential with holder/schema/issuer/issued-at/said/revoked incl. another seat and the app": "app/tests/unit/ledgerMembers.test.ts 'AC1 — an unlocked seat reads every issued credential from the one registry' (4 rows: founder golden ACDC, another-holder membership, committee schema; all fields asserted); readLedgerMembers in app/src/lib/ledgerMembers.ts", "a revoked credential is returned present-and-marked (never omitted)": "app/tests/unit/ledgerMembers.test.ts 'AC2' — the revoked row returns with revoked=true and its holder intact; ledgerCredentialFromRaw reads status.et rev/brv || s==='1'", "a registry holding only the founder returns exactly that one row": "app/tests/unit/ledgerMembers.test.ts 'AC3' over founder-only.json → length 1, the pinned golden credentialSaid", "an unreachable agent/witness/registry raises records-unreachable, nothing partial/cached": "app/tests/unit/ledgerMembers.test.ts 'AC4' — list() throwing → RecordsUnreachable; a half-formed row also fails closed; readLedgerMembers wraps non-RecordsUnreachable errors and re-throws on map failure", "a locked seat refuses with a locked-seat fault distinct from empty and unreachable": "app/tests/unit/ledgerMembers.test.ts 'AC5' — unlocked:false → LockedSeat before any read (read flag stays false), and not instanceof RecordsUnreachable", "descriptor names no registry → refuse loudly, no guess/per-steward fallback": "app/tests/unit/ledgerMembers.test.ts 'AC6' — descriptor-no-registry.json → communityRegistryFromDescriptor undefined → NoCommunityRegistry; stray per-steward-registry row filtered out ('never reads a per-steward registry')", "proven with golden KERIA bytes in a fixture directory (no container/network/keripy, #1301)": "app/tests/unit/testdata/ledger/ holds the verbatim #1301 presentation.cesr + vectors.json (copied from internal/keriauth/testdata); the test 'the founder row carries the genuine #1301 golden ACDC bytes' deep-equals credentials.json[0].sad to the ACDC parsed from presentation.cesr; readFileSync only, no network", "the dashboard's steward-bundle type gains the verb so 2/7 can bind; no UI changed": "dashboard/src/lib/idip.ts adds IdipStewardBundle.ledgerMembers() + LedgerCredential; implemented on window.idssKeriSteward (app/src/keriweb/main.ts); no dashboard component/.vue changed — only the interface, harness fake stub, and 3 test fakes" }, "summary": "The steward bundle gains ledgerMembers(): one row per credential from the descriptor's one registry, fail-closed with distinct locked/no-registry/unreachable faults, proven over #1301 golden KERIA bytes; the dashboard type gains the verb with no UI change.", "blockers": [] } ``` </details>
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.

Reference
Matou/idss#1930
No description provided.