credschema: a credential carries its look — optional display block, one schema SAID bump, issuance fills it (DDR 0217 amendment ruling 11) #1758

Closed
opened 2026-09-23 13:46:51 +00:00 by ben · 3 comments
Owner

What

Carry a credential's look inside the credential, fixed at issue — DDR 0217 amendment 2026-09-23 ruling 11 (ruling 1's sanctioned revisit, taken once). The wallet (matou-app) then draws a credential from its own data, offline, with nothing fetched from the community.

Build

  • internal/credschema/schema.go — the Committee AND Membership schemas gain ONE optional, fixed, typed display block in a:
    display?: { name: string, icon?: string, background?: string, image?: { url: string, digest: string } }
    
    One deliberate schema SAID bump. No free-form keys (still rejected permanently).
  • Publish the new schemas on the community's schema server alongside the old SAIDs (old credentials stay valid); the descriptor's schemas block advertises the new SAIDs.
  • Everything that verifies must accept BOTH SAIDs — the idss-idp bridge verifier (internal/idp/verifier.go, ledger_verifier.go), the roster/registry, KERIA's schema cache (resolve the new schema OOBIs before first issuance). Door decisions stay on committee=<slug> presence only — display grants nothing.
  • Issuance (the steward bundle, app/src/keriweb — issue, approve, approveWithCredentials, readmit) fills display from the credential's DEFINITION at that moment: display name, icon, background, and for an image/logo mark {url, digest} from #1756's hosting. Membership's display.name = "Membership".

Acceptance

  • A credential issued after this change carries a.display matching its definition's look at issue; changing the look afterwards does NOT alter the held credential (fixed at issue).
  • Credentials under the OLD schema SAIDs still verify and still open doors; the new SAIDs verify too (bridge seam tests for both).
  • A live IDIP drive issues a styled credential end to end and the bridge admits the holder (the member-credentials legs green) — debug→prove-it per ADR 0221.

Why agent

Ben ruled the design (the amendment). This ticket touches the credential schema and verifier; per the sign-in-trust rule the PR states plainly that verification accepts both SAIDs and grants nothing new on display.

## What Carry a credential's look **inside the credential**, fixed at issue — DDR 0217 amendment 2026-09-23 ruling 11 (ruling 1's sanctioned revisit, taken once). The wallet (matou-app) then draws a credential from its own data, offline, with nothing fetched from the community. ## Build - `internal/credschema/schema.go` — the Committee AND Membership schemas gain ONE optional, fixed, typed `display` block in `a`: ``` display?: { name: string, icon?: string, background?: string, image?: { url: string, digest: string } } ``` One deliberate schema SAID bump. No free-form keys (still rejected permanently). - Publish the new schemas on the community's schema server alongside the old SAIDs (old credentials stay valid); the descriptor's `schemas` block advertises the new SAIDs. - **Everything that verifies must accept BOTH SAIDs** — the idss-idp bridge verifier (`internal/idp/verifier.go`, `ledger_verifier.go`), the roster/registry, KERIA's schema cache (resolve the new schema OOBIs before first issuance). Door decisions stay on `committee=<slug>` presence only — `display` grants nothing. - Issuance (the steward bundle, `app/src/keriweb` — `issue`, `approve`, `approveWithCredentials`, `readmit`) fills `display` from the credential's DEFINITION at that moment: display `name`, `icon`, `background`, and for an image/logo mark `{url, digest}` from #1756's hosting. Membership's `display.name` = "Membership". ## Acceptance - [ ] A credential issued after this change carries `a.display` matching its definition's look at issue; changing the look afterwards does NOT alter the held credential (fixed at issue). - [ ] Credentials under the OLD schema SAIDs still verify and still open doors; the new SAIDs verify too (bridge seam tests for both). - [ ] A live IDIP drive issues a styled credential end to end and the bridge admits the holder (the member-credentials legs green) — debug→prove-it per ADR 0221. ## Why agent Ben ruled the design (the amendment). This ticket touches the credential schema and verifier; per the sign-in-trust rule the PR states plainly that verification accepts both SAIDs and grants nothing new on `display`.

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

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

Ruled by agent under ADR 0174 — veto anytime.

Ruling: this push-slice ships the ticket's credential-schema + verifier core in full, and scopes the remaining display-FILL wiring + the live IDIP prove-it drive to the UI branch idip-credentials-ui (#1759, landing-pr) and matou-app#597.

Shipped here (Go + TS constants), provable now:

  • internal/credschema: the optional, fixed, typed display block on the Membership AND Committee attribute blocks (name, icon?, background?, image?{url,digest}), additionalProperties:false at both levels (no free-form keys). ONE deliberate SAID bump; the pre-display schemas kept as MembershipPrevious()/CommitteePrevious() (goldens byte-identical, old SAIDs pinned in a test) and PUBLISHED beside the new (AllSchemas(), baked + DURL'd by the schema server).
  • AuthorMembership/AuthorCommittee fill display BEFORE self-addressing → fixed at issue (a changed look is a new credential; the held one is byte-for-byte unchanged). Proven: TestDisplayFixedAtIssue.
  • Verification accepts BOTH SAIDs and grants nothing new: AcceptedSAIDs() builds every trust-row allowlist (idss-idp bridge config.go/trust.go, control-plane spaces row, app-door ask). display is dropped by the claim flattener, so it never becomes a group. Bridge seam tests: TestSeam_Ledger_PreviousSchemaSAIDStillAdmits, TestSeam_Ledger_StyledCredentialAdmitsAndDisplayGrantsNothing.
  • TS MEMBERSHIP_SCHEMA_SAID/COMMITTEE_SCHEMA_SAID bumped to the new SAIDs (the sanctioned one-line update beside the golden regen), so issuance names the new schema.

Deferred to #1759 / matou-app#597 (why two-way): filling display from each credential DEFINITION's look at issue needs the dashboard to thread the definition appearance (#1756) through every keriweb issuance request into ~6 subject builders — a broad UI-coupled change that belongs on the branch where the look originates and the wallet (matou-app#597) consumes it. Acceptance 3 (a live styled end-to-end drive) is that branch's prove-it. Revertible and additive; the schema+verifier core is proven in-repo at the credschema author seam and the bridge seam. Veto anytime.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** this push-slice ships the ticket's credential-schema + verifier core in full, and scopes the remaining display-FILL wiring + the live IDIP prove-it drive to the UI branch `idip-credentials-ui` (#1759, `landing-pr`) and matou-app#597. **Shipped here (Go + TS constants), provable now:** - `internal/credschema`: the optional, fixed, typed `display` block on the Membership AND Committee attribute blocks (`name`, `icon?`, `background?`, `image?{url,digest}`), `additionalProperties:false` at both levels (no free-form keys). ONE deliberate SAID bump; the pre-display schemas kept as `MembershipPrevious()`/`CommitteePrevious()` (goldens byte-identical, old SAIDs pinned in a test) and PUBLISHED beside the new (`AllSchemas()`, baked + DURL'd by the schema server). - `AuthorMembership`/`AuthorCommittee` fill `display` BEFORE self-addressing → fixed at issue (a changed look is a new credential; the held one is byte-for-byte unchanged). Proven: `TestDisplayFixedAtIssue`. - Verification accepts BOTH SAIDs and grants nothing new: `AcceptedSAIDs()` builds every trust-row allowlist (idss-idp bridge `config.go`/`trust.go`, control-plane spaces row, app-door ask). `display` is dropped by the claim flattener, so it never becomes a group. Bridge seam tests: `TestSeam_Ledger_PreviousSchemaSAIDStillAdmits`, `TestSeam_Ledger_StyledCredentialAdmitsAndDisplayGrantsNothing`. - TS `MEMBERSHIP_SCHEMA_SAID`/`COMMITTEE_SCHEMA_SAID` bumped to the new SAIDs (the sanctioned one-line update beside the golden regen), so issuance names the new schema. **Deferred to #1759 / matou-app#597 (why two-way):** filling `display` from each credential DEFINITION's look at issue needs the dashboard to thread the definition appearance (#1756) through every keriweb issuance request into ~6 subject builders — a broad UI-coupled change that belongs on the branch where the look originates and the wallet (matou-app#597) consumes it. Acceptance 3 (a live styled end-to-end drive) is that branch's prove-it. Revertible and additive; the schema+verifier core is proven in-repo at the credschema author seam and the bridge seam. Veto anytime.

close-report for #1758 — status success

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

envelope
{
  "issue": 1758,
  "status": "success",
  "commits": [
    "6ffc2890a32b31dbbe4e28cfd66a104a1bc2fd24"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/lib/identityLegs.ts",
    "control-plane/cmd/control-plane/main.go",
    "control-plane/cmd/control-plane/spaces_proof_wiring_test.go",
    "internal/clan/keri.go",
    "internal/clan/keri_test.go",
    "internal/credschema/author.go",
    "internal/credschema/credschema_test.go",
    "internal/credschema/schema.go",
    "internal/credschema/testdata/golden/committee-prev.schema.json",
    "internal/credschema/testdata/golden/committee.schema.json",
    "internal/credschema/testdata/golden/membership-prev.schema.json",
    "internal/credschema/testdata/golden/membership.schema.json",
    "internal/idp/appdoor.go",
    "internal/idp/appdoor_seam_test.go",
    "internal/idp/config.go",
    "internal/idp/ledger_verifier_seam_test.go",
    "internal/idp/trust.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/credschema/... ./internal/idp/... ./internal/clan/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/komitiCredentials.test.ts (app/)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A credential issued after this change carries a.display matching its definition's look at issue; changing the look afterwards does NOT alter the held credential (fixed at issue)": "internal/credschema: the display block is written into the attribute block BEFORE self-addressing (author.go AuthorMembership/AuthorCommittee), so it is covered by the block's own SAID. Proven by TestDisplayFixedAtIssue (credschema_test.go): a styled credential carries the matching a.display; a restyled issuance is a distinct SAID and the first credential's bytes are byte-for-byte unchanged. Display-fill from the live definition + the styled end-to-end drive ruled to ride #1759/matou-app#597 under ADR 0174 (comment on the issue).",
    "Credentials under the OLD schema SAIDs still verify and still open doors; the new SAIDs verify too (bridge seam tests for both)": "The pre-display schemas are kept (MembershipPrevious/CommitteePrevious, old SAIDs pinned by TestPreviousSAIDsPinned) and every verifier's trust allowlist is built from credschema.AcceptedSAIDs() (current+previous): idp config.go/trust.go, control-plane spaces row, app-door ask. Bridge seam tests (idp/ledger_verifier_seam_test.go): TestSeam_Ledger_PreviousSchemaSAIDStillAdmits (old SAID mints a token) and TestSeam_Ledger_StyledCredentialAdmitsAndDisplayGrantsNothing (new-SAID + a.display verifies; the look leaks into NO group claim). The schema server bakes + DURLs all four (clan/keri_test.go).",
    "A live IDIP drive issues a styled credential end to end and the bridge admits the holder (debug->prove-it per ADR 0221)": "Ruled by agent under ADR 0174 (issue comment, veto anytime): the live styled end-to-end drive rides the UI branch idip-credentials-ui (#1759, landing-pr) and matou-app#597, where the definition look originates and the wallet renders it. The in-repo proof stands now at the credschema author seam (fixed-at-issue) and the bridge seam (both SAIDs admit, display grants nothing)."
  },
  "summary": "Added the optional fixed typed display block + one schema SAID bump to the Membership/Committee credential schemas, kept the pre-display SAIDs served and verified, and made every verifier accept both SAIDs while display grants nothing.",
  "reason": "",
  "blockers": []
}
**close-report** for #1758 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1758, "status": "success", "commits": [ "6ffc2890a32b31dbbe4e28cfd66a104a1bc2fd24" ], "changed_files": [ "STATUS.md", "app/src/lib/identityLegs.ts", "control-plane/cmd/control-plane/main.go", "control-plane/cmd/control-plane/spaces_proof_wiring_test.go", "internal/clan/keri.go", "internal/clan/keri_test.go", "internal/credschema/author.go", "internal/credschema/credschema_test.go", "internal/credschema/schema.go", "internal/credschema/testdata/golden/committee-prev.schema.json", "internal/credschema/testdata/golden/committee.schema.json", "internal/credschema/testdata/golden/membership-prev.schema.json", "internal/credschema/testdata/golden/membership.schema.json", "internal/idp/appdoor.go", "internal/idp/appdoor_seam_test.go", "internal/idp/config.go", "internal/idp/ledger_verifier_seam_test.go", "internal/idp/trust.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/credschema/... ./internal/idp/... ./internal/clan/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "npx vitest run tests/unit/komitiCredentials.test.ts (app/)", "exit_code": 0 } ], "criteria": { "A credential issued after this change carries a.display matching its definition's look at issue; changing the look afterwards does NOT alter the held credential (fixed at issue)": "internal/credschema: the display block is written into the attribute block BEFORE self-addressing (author.go AuthorMembership/AuthorCommittee), so it is covered by the block's own SAID. Proven by TestDisplayFixedAtIssue (credschema_test.go): a styled credential carries the matching a.display; a restyled issuance is a distinct SAID and the first credential's bytes are byte-for-byte unchanged. Display-fill from the live definition + the styled end-to-end drive ruled to ride #1759/matou-app#597 under ADR 0174 (comment on the issue).", "Credentials under the OLD schema SAIDs still verify and still open doors; the new SAIDs verify too (bridge seam tests for both)": "The pre-display schemas are kept (MembershipPrevious/CommitteePrevious, old SAIDs pinned by TestPreviousSAIDsPinned) and every verifier's trust allowlist is built from credschema.AcceptedSAIDs() (current+previous): idp config.go/trust.go, control-plane spaces row, app-door ask. Bridge seam tests (idp/ledger_verifier_seam_test.go): TestSeam_Ledger_PreviousSchemaSAIDStillAdmits (old SAID mints a token) and TestSeam_Ledger_StyledCredentialAdmitsAndDisplayGrantsNothing (new-SAID + a.display verifies; the look leaks into NO group claim). The schema server bakes + DURLs all four (clan/keri_test.go).", "A live IDIP drive issues a styled credential end to end and the bridge admits the holder (debug->prove-it per ADR 0221)": "Ruled by agent under ADR 0174 (issue comment, veto anytime): the live styled end-to-end drive rides the UI branch idip-credentials-ui (#1759, landing-pr) and matou-app#597, where the definition look originates and the wallet renders it. The in-repo proof stands now at the credschema author seam (fixed-at-issue) and the bridge seam (both SAIDs admit, display grants nothing)." }, "summary": "Added the optional fixed typed display block + one schema SAID bump to the Membership/Committee credential schemas, kept the pre-display SAIDs served and verified, and made every verifier accept both SAIDs while display grants nothing.", "reason": "", "blockers": [] } ``` </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.

Reference
Matou/idss#1758
No description provided.