A credential issued from the panel carries no look — the display block #1758 added is never filled, so the wallet draws every card the same #1989

Open
opened 2026-09-29 03:29:53 +00:00 by ben · 0 comments
Owner

What happened

On Whakatōhea Demo (2026-09-29) Ben issued Administrator from the control panel. The definition has its own look (handshake icon, background #b9d4c7). In the wallet the card was drawn like Membership: same logo, same colour, only the name and description differed.

Root cause

DDR 0217 amendment ruling 11: a credential carries its look in its own a.display block, fixed at issue, and the wallet draws the card from that block alone.

  • #1758 shipped the schema and the verifier, and its commit (6ffc2890) left "the display-FILL wiring" to the UI branch #1759.
  • #1759 landed without it. No issuing path writes display: KomitiCredentialDriver.attributes() and StewardApproveDriver.attributes() carry none, and the panel passes no appearance to bundle.issue.
  • The only display ever written is founding's { name: "Administrator" } — a name, no look.

So every credential issued from the panel reaches the wallet with no look. #1758's first acceptance box ("a credential issued after this change carries a.display matching its definition's look") was closed unmet.

Second defect, same path

The wallet fetches a logo or image mark and checks its digest before drawing it. The gateway serves both publicly but with no Access-Control-Allow-Origin, so a wallet on another origin gets no bytes and draws the seal:

$ curl -sI -H 'Origin: https://localhost' https://whakatohea-demo.idss.nz/brand/logo
HTTP/2 200
content-type: image/png
cache-control: no-cache

Built (session/issuance-fills-the-credential-look)

  • app/src/lib/credentialDisplay.ts — a definition's appearance in, the closed display block out: icon + background; an uploaded image by the digest its served name carries; the community logo by the digest of the bytes served at issue. A field that would not validate is dropped, never signed.
  • Both drivers carry display; the steward bundle fills it on issue, approve, approveWithCredentials and readmit.
  • The panel passes the definition's look at every issuing call site.
  • GET /brand/logo and GET /credential-images/{name} answer Access-Control-Allow-Origin: * (public bytes, no session).

Acceptance

  • A credential issued from the panel carries a.display matching its definition's look at issue.
  • The wallet draws an icon mark, an image mark and a logo mark as the panel draws them.
  • A credential issued before this change is unaffected (DDR 0217: a held credential keeps the look it was issued with — Ben's Administrator on the demo must be re-issued to wear its look).

Display grants nothing: no verifier, door or trust row changes.

## What happened On Whakatōhea Demo (2026-09-29) Ben issued **Administrator** from the control panel. The definition has its own look (handshake icon, background `#b9d4c7`). In the wallet the card was drawn like Membership: same logo, same colour, only the name and description differed. ## Root cause DDR 0217 amendment ruling 11: a credential carries its look in its own `a.display` block, fixed at issue, and the wallet draws the card from that block alone. - #1758 shipped the schema and the verifier, and its commit (`6ffc2890`) left "the display-FILL wiring" to the UI branch #1759. - #1759 landed without it. No issuing path writes `display`: `KomitiCredentialDriver.attributes()` and `StewardApproveDriver.attributes()` carry none, and the panel passes no appearance to `bundle.issue`. - The only `display` ever written is founding's `{ name: "Administrator" }` — a name, no look. So every credential issued from the panel reaches the wallet with no look. #1758's first acceptance box ("a credential issued after this change carries `a.display` matching its definition's look") was closed unmet. ## Second defect, same path The wallet fetches a logo or image mark and checks its digest before drawing it. The gateway serves both publicly but with no `Access-Control-Allow-Origin`, so a wallet on another origin gets no bytes and draws the seal: ``` $ curl -sI -H 'Origin: https://localhost' https://whakatohea-demo.idss.nz/brand/logo HTTP/2 200 content-type: image/png cache-control: no-cache ``` ## Built (session/issuance-fills-the-credential-look) - `app/src/lib/credentialDisplay.ts` — a definition's appearance in, the closed `display` block out: icon + background; an uploaded image by the digest its served name carries; the community logo by the digest of the bytes served at issue. A field that would not validate is dropped, never signed. - Both drivers carry `display`; the steward bundle fills it on `issue`, `approve`, `approveWithCredentials` and `readmit`. - The panel passes the definition's look at every issuing call site. - `GET /brand/logo` and `GET /credential-images/{name}` answer `Access-Control-Allow-Origin: *` (public bytes, no session). ## Acceptance - [ ] A credential issued from the panel carries `a.display` matching its definition's look at issue. - [ ] The wallet draws an icon mark, an image mark and a logo mark as the panel draws them. - [ ] A credential issued before this change is unaffected (DDR 0217: a held credential keeps the look it was issued with — Ben's Administrator on the demo must be re-issued to wear its look). Display grants nothing: no verifier, door or trust row changes.
ben self-assigned this 2026-09-29 03:29:55 +00:00
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#1989
No description provided.