idip: credential-schemas — IDSS-minted membership and per-committee ACDC schemas #773

Closed
opened 2026-08-25 04:26:52 +00:00 by ben · 2 comments
Owner

Parent

Feature spec: #767 (idip; wayfinder map #725).

What to build

IDSS's own credential schemas (ADR 0196; prototype #732 found matou-app's schema pins communityName: MATOU as a const — never reuse it): a membership ACDC schema carrying the profile attributes (preferred_username/name, optional email) and role (operator/member), community name parameterised; and a per-committee ACDC schema — one independently-revocable credential per committee (rejected: a groups list in one ACDC). Schemas are SAID-addressed and versioned; they are served to member agents by the schema server (keri-stack-nix) and consumed by issuance (steward legs) and verification (the bridge).

Acceptance criteria

  • Given the membership schema, when a credential is authored against it, then it carries role + profile attributes with the community name parameterised, and its SAID is stable across regeneration (golden corpus).
  • Given the committee schema, when a committee credential is authored, then it names exactly one committee, revocable independently of membership.
  • Given the schema server, when a member agent resolves the schema OOBI, then the schemas resolve from the gateway (gateway-reachable — inventory #728's constraint).

Blocked by

  • bootstrap:skeleton (#23) (done — satisfied)

Task manifest

task: idip:credential-schemas
interface: 'the IDSS membership + per-committee ACDC schemas: SAID-addressed, community-name-parameterised,
  role + optional email on membership; one revocable ACDC per committee'
seam: golden schema corpus (SAID stability, attribute shape); OOBI-resolution proof lands with the consuming
  slices
acceptance:
- given: the membership schema
  when: a credential is authored
  then: role + profile attrs present, community name parameterised, SAID stable
- given: the committee schema
  when: a committee credential is authored
  then: one committee named, revocable independently of membership
depends_on:
- bootstrap:skeleton
out_of_scope:
- issuing/verifying logic — steward-approve-issue / idss-idp-bridge
- sharing schemas with matou-app (spec Out of Scope)
needs_human_decision: []
## Parent Feature spec: #767 (idip; wayfinder map #725). ## What to build IDSS's own credential schemas (ADR 0196; prototype #732 found matou-app's schema pins `communityName: MATOU` as a const — never reuse it): a membership ACDC schema carrying the profile attributes (`preferred_username`/name, optional `email`) and `role` (`operator`/`member`), community name parameterised; and a per-committee ACDC schema — one independently-revocable credential per committee (rejected: a groups list in one ACDC). Schemas are SAID-addressed and versioned; they are served to member agents by the schema server (keri-stack-nix) and consumed by issuance (steward legs) and verification (the bridge). ## Acceptance criteria - [ ] Given the membership schema, when a credential is authored against it, then it carries role + profile attributes with the community name parameterised, and its SAID is stable across regeneration (golden corpus). - [ ] Given the committee schema, when a committee credential is authored, then it names exactly one committee, revocable independently of membership. - [ ] Given the schema server, when a member agent resolves the schema OOBI, then the schemas resolve from the gateway (gateway-reachable — inventory #728's constraint). ## Blocked by - bootstrap:skeleton (#23) (done — satisfied) ## Task manifest ```yaml task: idip:credential-schemas interface: 'the IDSS membership + per-committee ACDC schemas: SAID-addressed, community-name-parameterised, role + optional email on membership; one revocable ACDC per committee' seam: golden schema corpus (SAID stability, attribute shape); OOBI-resolution proof lands with the consuming slices acceptance: - given: the membership schema when: a credential is authored then: role + profile attrs present, community name parameterised, SAID stable - given: the committee schema when: a committee credential is authored then: one committee named, revocable independently of membership depends_on: - bootstrap:skeleton out_of_scope: - issuing/verifying logic — steward-approve-issue / idss-idp-bridge - sharing schemas with matou-app (spec Out of Scope) needs_human_decision: [] ```

swarm-claim host=elitebook-distributed-server-03 run=10051
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=10051 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #773 — status success

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

envelope
{
  "issue": 773,
  "status": "success",
  "commits": [
    "c59c923"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/credschema/author.go",
    "internal/credschema/credschema_test.go",
    "internal/credschema/said.go",
    "internal/credschema/schema.go",
    "internal/credschema/testdata/golden/committee.schema.json",
    "internal/credschema/testdata/golden/membership.schema.json"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/credschema/ -count=1",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/credschema/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/credschema/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given the membership schema, when a credential is authored against it, then it carries role + profile attributes with the community name parameterised, and its SAID is stable across regeneration (golden corpus)": "internal/credschema/schema.go Membership() (role enum operator/member, preferred_username/name, optional email, communityName as a plain string attribute — not a const); TestMembershipAttributeShape authors credentials for two communities and confirms differing communityName values with an unchanged schema SAID; TestGoldenCorpusStable + TestSAIDSelfAddressing prove the golden testdata/golden/membership.schema.json SAID is stable and self-verifies (SAID ICyWw9WrDmRwNEPRIp032_3IrGiY9O1suzD2TGN8Mexx)",
    "Given the committee schema, when a committee credential is authored, then it names exactly one committee, revocable independently of membership": "internal/credschema/schema.go Committee() (single required `committee` slug attribute); TestCommitteeNamesOneKomiti confirms exactly one komiti named, a second komiti is a second distinct credential, and the committee schema SAID differs from membership's (distinct credential/TEL → independently revocable, ADR 0196's per-komiti-ACDC decision)",
    "Given the schema server, when a member agent resolves the schema OOBI, then the schemas resolve from the gateway (gateway-reachable — inventory #728's constraint)": "Schemas are delivered as gateway-servable artifacts — credschema.Schemas() returns each schema keyed by SAID with its canonical JSON, and testdata/golden/*.schema.json are the served documents; per the task manifest seam ('OOBI-resolution proof lands with the consuming slices') the end-to-end member-agent OOBI resolution is proven by the consuming schema-server slice #771 (keri-stack-nix), not this slice"
  },
  "summary": "Added internal/credschema: IDSS's SAID-addressed, community-name-parameterised membership and per-komiti ACDC schemas with a self-verifying golden corpus (SAID stability + attribute shape).",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #773 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 773, "status": "success", "commits": [ "c59c923" ], "changed_files": [ "STATUS.md", "internal/credschema/author.go", "internal/credschema/credschema_test.go", "internal/credschema/said.go", "internal/credschema/schema.go", "internal/credschema/testdata/golden/committee.schema.json", "internal/credschema/testdata/golden/membership.schema.json" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/credschema/ -count=1", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/credschema/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/credschema/", "exit_code": 0 } ], "criteria": { "Given the membership schema, when a credential is authored against it, then it carries role + profile attributes with the community name parameterised, and its SAID is stable across regeneration (golden corpus)": "internal/credschema/schema.go Membership() (role enum operator/member, preferred_username/name, optional email, communityName as a plain string attribute — not a const); TestMembershipAttributeShape authors credentials for two communities and confirms differing communityName values with an unchanged schema SAID; TestGoldenCorpusStable + TestSAIDSelfAddressing prove the golden testdata/golden/membership.schema.json SAID is stable and self-verifies (SAID ICyWw9WrDmRwNEPRIp032_3IrGiY9O1suzD2TGN8Mexx)", "Given the committee schema, when a committee credential is authored, then it names exactly one committee, revocable independently of membership": "internal/credschema/schema.go Committee() (single required `committee` slug attribute); TestCommitteeNamesOneKomiti confirms exactly one komiti named, a second komiti is a second distinct credential, and the committee schema SAID differs from membership's (distinct credential/TEL → independently revocable, ADR 0196's per-komiti-ACDC decision)", "Given the schema server, when a member agent resolves the schema OOBI, then the schemas resolve from the gateway (gateway-reachable — inventory #728's constraint)": "Schemas are delivered as gateway-servable artifacts — credschema.Schemas() returns each schema keyed by SAID with its canonical JSON, and testdata/golden/*.schema.json are the served documents; per the task manifest seam ('OOBI-resolution proof lands with the consuming slices') the end-to-end member-agent OOBI resolution is proven by the consuming schema-server slice #771 (keri-stack-nix), not this slice" }, "summary": "Added internal/credschema: IDSS's SAID-addressed, community-name-parameterised membership and per-komiti ACDC schemas with a self-verifying golden corpus (SAID stability + attribute shape).", "reason": "", "blockers": [], "no_code_change": "" } ``` </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#773
No description provided.