idip credentials: store + serve a credential's appearance (mark + colour + uploaded image) — DDR 0217 amendment 2026-09-23 #1756
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1756
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Store a credential's appearance on its definition and serve it — the control-plane half of the DDR 0217 amendment 2026-09-23 (rulings 10–11). Today the dashboard's appearance picker (branch
idip-credentials-ui) saves only to the harness fake.Appearance (unsigned, roster-side, display only — like the name):
Build
internal/keria/definitions.go—CredentialDefinitiongainsAppearance(json:"appearance,omitempty"). Existingcredential-definitions.jsonfiles decode unchanged (noDisallowUnknownFields); an absent appearance reads as the default.builtinMembership()gets the default{mark: logo}.DefinitionAdapter+definitionView()carry it;Createaccepts it.internal/controlapi/idip_credentials.go—CreateCredentialRequesttakes an optionalappearance; a NEW sibling action routePOST /api/v1/idip/credentials/{slug}/appearance(mirrors/rename— rename's contract is documented name-only, so do NOT widen it). Works on Membership too (display only). Validate:markin the closed set;iconin the curated key list (keep ONE source — mirrorCURATED_ICONSindashboard/src/lib/credentialAppearance.ts, or generate one from the other);background^#[0-9a-f]{6}$.MAX_IMAGE_BYTES) is stored content-addressed and served PUBLICLY (the member's wallet fetches it without a session) at a stable URL, e.g.https://<apex>/credential-images/<sha256>.<ext>, returning its digest alongside the URL. SVG must be served with a safe content type / sanitised (no script). The community logo is referenced the same way (its served/brand/logoURL + digest).packages/openapi-spec/openapi.yaml—CredentialDefinitionView.appearance,CreateCredentialRequest.appearance, the new route + request body; regenerate (pnpm --filter @idss/openapi-spec run generate:client) and passcheck:client. Update the "No custom fields" wording (wire.go:144, openapi:6506) to say appearance is display-only, per the amendment.dashboard/src/lib/api/idipCredentialsClient.ts— passappearanceon create; implementsetAppearance; an upload call for the image mark.Acceptance
POST …/{slug}/appearancechanges only the appearance (name/slug/holders untouched), incl. Membership; an invalid mark/icon/colour is 409.check:clientgreen; controlapi contract tests + keria store tests cover the above.Refs
DDR 0217 amendment 2026-09-23 (
docs/adr/0217-design-idip-credentials-not-komiti.md); branchidip-credentials-ui(dashboard/src/lib/credentialAppearance.tsis the shape the UI speaks).displayblock, one schema SAID bump, issuance fills it (DDR 0217 amendment ruling 11) #1758displayblock, one schema SAID bump, issuance fills it (DDR 0217 amendment ruling 11)swarm-claim host=matou-dev-server-01 run=30954
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1756 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
displayblock, one schema SAID bump, issuance fills it (DDR 0217 amendment ruling 11) #1758