IDIP: the founder is never written to the roster, so the bridge refuses the operator's own sign-in — oidc-admin cannot green #1018

Closed
opened 2026-08-30 06:07:34 +00:00 by matou-build-agent · 2 comments

Failure

Drive 20260830T054243Z (target idip, #788) went 19/20, red at oidc-admin (artifacts/legs.json, artifacts/verdict.json firstRedLeg: oidc-admin). The KERI stack was healthy throughout — logs/droplet-keri.txt has the witness (BJ_Iittbw…, :5642), KERIA 0.4.0, keria-iurls resolved, and the schema server on :7723 all up; logs/droplet-journal.txt:1139 has the bridge listening (issuer=https://id.rehearsal-b.idss.nz clients=3).

The founder answered the KERI challenge and the bridge then refused them for holding no membership credential. Its own words, from the page snapshot in artifacts/journey.idip-IDIP-journey--133f0-ey-on-the-rehearsal-droplet/error-context.md:

- alert: You're signed in as yourself, but you don't hold a membership credential from this community yet. Ask your operator to add you — you'll be able to sign in once they do.

That is ErrNoMembership exactly (internal/idp/signin.go:122-125). The challenge itself passed — ErrChallengeFailed would have worded it "That sign-in didn't verify against your key state" (internal/idp/signin.go:85).

(The 120 s blind timeout that leg reported was a separate, presentation-layer defect in the drive's refusal probe; healed in ddc5993a. That fix makes this refusal red in seconds with the bridge's line — it does not make the sign-in succeed.)

Cause

The founder's operator ACDC is issued into KERI but never recorded in the control plane's roster, and the roster is the bridge's ONLY source of membership truth.

  • internal/idp/keri_verifier.go:105-122 — Presentation answers from v.roster.Member(ctx, s.AID) alone; !ok → ErrNoMembership. The doc comment is explicit that it "does not parse the ACDC bytes a browser may present" — the roster IS the answer. So an ACDC that exists in the TEL but not in the roster buys nothing.
  • app/src/lib/identityLegs.ts:389-418 — runYourMembership resolves the schema OOBI, creates the registry on the group AID and issues the founder's operator ACDC… and then returns. There is no roster write of any kind.
  • app/src/lib/identityLegs.ts:226+ (IdentityLegsConfig) and app/src/components/founding/FoundingStandup.vue:823-858 (buildIdentityDriver) — the driver is constructed with keri, store, communityName, operator, membershipSchemaSaid, witnessLive and the aliases. There is no roster port on it at all, so there is nothing to wire.

The member path does this correctly, which is what makes the asymmetry legible:

  • app/src/lib/stewardApprove.ts:257-262 — post-receipt, roster.anchorIssuance(aid, said) then roster.confirmReceipt(said), moving waiting → pending-issue → issued. Its own comment: "the member is active and the bridge now accepts them."
  • internal/keria/adapter.go:87-102 — JoinGate.SubmitProfile is the only writer of Registry.Join, and it is reached only from the invite-gated /idip/join page the founder never walks.

So identity-rows going green (11 673 ms, all four rows done) is not evidence the operator is a member: it proves the ACDC issued, nothing about the roster. This is deterministic — it reds every IDIP drive at oidc-admin, and the leg-22 member sign-in behind it has never been reached.

Suspected layer

Renderer-side identity stand-up (app/src/lib/identityLegs.ts) plus the roster surface it needs to reach (internal/controlapi/idip_roster.go). Not the bridge, not KERI, not the droplet.

What plugging it needs

Give IdentityLegsDriver the same RosterAnchor-shaped port stewardApprove.ts already defines, and have runYourMembership record the founder post-receipt — issueCredential already returns only after the group anchor is witnessed, so a returned SAID means the receipt landed.

One ordering constraint to design around: Registry.AnchorIssuance returns ErrNoSuchMember for an AID it has never seen (internal/keria/registry.go:200-203), so the founder needs a Join first — and it must carry role: operator, which JoinGate.SubmitProfile cannot express (it hardcodes credschema.RoleMember, internal/keria/adapter.go:100) and cannot be reached without a join invite token.

That leaves one fork for the implementer:

  1. A founder-register route on the roster surface (internal/controlapi/idip_roster.go, beside anchor-issuance / confirm-receipt, behind the same community-session gate as the other steward acts), taking {aid, username, name, email, role: operator}; or
  2. Widen SubmitProfile to carry a role and admit the founder's boot-invite path.

Proposed default: (1). It keeps the invite-gated member join exactly as it is, keeps the operator-role write on the operator-gated surface rather than the token-gated one, and mirrors the two verbs stewardApprove.ts already speaks. Both options stay behind the existing gate, so neither widens the trust surface.

Acceptance: after the identity legs finish, GET /api/v1/idip/roster lists the founder as active with role: operator and the operator ACDC's SAID; GET /api/v1/idip/roster/member/{founderAID} answers 200 to the bridge; and oidc-admin lands the operator on Nextcloud's #header. Seam-testable offline against keria.NewMemoryRegistry + the driver's fake KERI, in the shape of app/tests/unit/stewardApprove.test.ts.

drive 20260830T054243Z red at oidc-admin: expect(locator).toBeVisible() failed Locator: locator('#header').or(locator('[data-status]').filter({ hasText: /didn.t verify|no membership|revoked|awaiting/i })).first() Expected: visible Timeout: 12
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260830T054243Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure Drive `20260830T054243Z` (target `idip`, #788) went 19/20, red at `oidc-admin` (`artifacts/legs.json`, `artifacts/verdict.json` `firstRedLeg: oidc-admin`). The KERI stack was healthy throughout — `logs/droplet-keri.txt` has the witness (`BJ_Iittbw…`, :5642), KERIA 0.4.0, `keria-iurls` resolved, and the schema server on :7723 all up; `logs/droplet-journal.txt:1139` has the bridge listening (`issuer=https://id.rehearsal-b.idss.nz clients=3`). The founder answered the KERI challenge and the bridge then **refused them for holding no membership credential**. Its own words, from the page snapshot in `artifacts/journey.idip-IDIP-journey--133f0-ey-on-the-rehearsal-droplet/error-context.md`: > `- alert: You're signed in as yourself, but you don't hold a membership credential from this community yet. Ask your operator to add you — you'll be able to sign in once they do.` That is `ErrNoMembership` exactly (`internal/idp/signin.go:122-125`). The challenge itself passed — `ErrChallengeFailed` would have worded it "That sign-in didn't verify against your key state" (`internal/idp/signin.go:85`). (The 120 s blind timeout that leg *reported* was a separate, presentation-layer defect in the drive's refusal probe; healed in `ddc5993a`. That fix makes this refusal red in seconds with the bridge's line — it does not make the sign-in succeed.) ## Cause **The founder's operator ACDC is issued into KERI but never recorded in the control plane's roster, and the roster is the bridge's ONLY source of membership truth.** - `internal/idp/keri_verifier.go:105-122` — `Presentation` answers from `v.roster.Member(ctx, s.AID)` alone; `!ok` → `ErrNoMembership`. The doc comment is explicit that it "does not parse the ACDC bytes a browser may present" — the roster IS the answer. So an ACDC that exists in the TEL but not in the roster buys nothing. - `app/src/lib/identityLegs.ts:389-418` — `runYourMembership` resolves the schema OOBI, creates the registry on the group AID and issues the founder's operator ACDC… and then returns. There is no roster write of any kind. - `app/src/lib/identityLegs.ts:226+` (`IdentityLegsConfig`) and `app/src/components/founding/FoundingStandup.vue:823-858` (`buildIdentityDriver`) — the driver is constructed with `keri`, `store`, `communityName`, `operator`, `membershipSchemaSaid`, `witnessLive` and the aliases. **There is no roster port on it at all**, so there is nothing to wire. The member path does this correctly, which is what makes the asymmetry legible: - `app/src/lib/stewardApprove.ts:257-262` — post-receipt, `roster.anchorIssuance(aid, said)` then `roster.confirmReceipt(said)`, moving `waiting → pending-issue → issued`. Its own comment: "the member is active and the bridge now accepts them." - `internal/keria/adapter.go:87-102` — `JoinGate.SubmitProfile` is the only writer of `Registry.Join`, and it is reached only from the invite-gated `/idip/join` page the founder never walks. So `identity-rows` going green (11 673 ms, all four rows `done`) is not evidence the operator is a member: it proves the ACDC issued, nothing about the roster. This is deterministic — it reds every IDIP drive at `oidc-admin`, and the leg-22 member sign-in behind it has never been reached. ## Suspected layer Renderer-side identity stand-up (`app/src/lib/identityLegs.ts`) plus the roster surface it needs to reach (`internal/controlapi/idip_roster.go`). Not the bridge, not KERI, not the droplet. ## What plugging it needs Give `IdentityLegsDriver` the same `RosterAnchor`-shaped port `stewardApprove.ts` already defines, and have `runYourMembership` record the founder post-receipt — `issueCredential` already returns only after the group anchor is witnessed, so a returned SAID means the receipt landed. One ordering constraint to design around: `Registry.AnchorIssuance` returns `ErrNoSuchMember` for an AID it has never seen (`internal/keria/registry.go:200-203`), so the founder needs a **Join first** — and it must carry `role: operator`, which `JoinGate.SubmitProfile` cannot express (it hardcodes `credschema.RoleMember`, `internal/keria/adapter.go:100`) and cannot be reached without a join invite token. That leaves one fork for the implementer: 1. **A founder-register route** on the roster surface (`internal/controlapi/idip_roster.go`, beside `anchor-issuance` / `confirm-receipt`, behind the same community-session gate as the other steward acts), taking `{aid, username, name, email, role: operator}`; or 2. **Widen `SubmitProfile`** to carry a role and admit the founder's boot-invite path. Proposed default: **(1)**. It keeps the invite-gated member join exactly as it is, keeps the operator-role write on the operator-gated surface rather than the token-gated one, and mirrors the two verbs `stewardApprove.ts` already speaks. Both options stay behind the existing gate, so neither widens the trust surface. Acceptance: after the identity legs finish, `GET /api/v1/idip/roster` lists the founder as `active` with `role: operator` and the operator ACDC's SAID; `GET /api/v1/idip/roster/member/{founderAID}` answers 200 to the bridge; and `oidc-admin` lands the operator on Nextcloud's `#header`. Seam-testable offline against `keria.NewMemoryRegistry` + the driver's fake KERI, in the shape of `app/tests/unit/stewardApprove.test.ts`. drive `20260830T054243Z` red at `oidc-admin`: `expect(locator).toBeVisible() failed Locator: locator('#header').or(locator('[data-status]').filter({ hasText: /didn.t verify|no membership|revoked|awaiting/i })).first() Expected: visible Timeout: 12` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260830T054243Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 94a048d819e4 -->
Author
Member

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

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

close-report for #1018 — status success

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

envelope
{
  "issue": 1018,
  "status": "success",
  "commits": [
    "f3fe92ec00599b732f703e129b87042082a5dff5"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "app/src/components/founding/FoundingStandup.vue",
    "app/src/lib/founding.ts",
    "app/src/lib/identityLegs.ts",
    "app/tests/unit/identityLegs.test.ts",
    "internal/controlapi/idip_roster.go",
    "internal/controlapi/idip_roster_test.go",
    "internal/fleetwire/founderroster.go",
    "internal/fleetwire/founderroster_test.go",
    "internal/founding/founderroster.go",
    "internal/founding/founderroster_test.go",
    "internal/founding/orchestrator.go",
    "internal/founding/stdio.go",
    "internal/founding/testing/fakes.go",
    "internal/keria/adapter.go",
    "internal/keria/adapter_test.go",
    "internal/keriawire/wire.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/keria/ ./internal/controlapi/ ./internal/founding/... ./internal/fleetwire/ ./control-plane/... ./app/helper/cmd/helper/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/founding/... ./internal/fleetwire/ ./internal/controlapi/ ./internal/keria/ ./internal/keriawire/ ./app/helper/cmd/helper/",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/identityLegs.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint src/lib/identityLegs.ts src/lib/founding.ts src/components/founding/FoundingStandup.vue tests/unit/identityLegs.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "after the identity legs finish, GET /api/v1/idip/roster lists the founder as active with role: operator and the operator ACDC's SAID": "internal/controlapi/idip_roster.go adds POST /api/v1/idip/roster/register; internal/keria/adapter.go RosterAdapter.Register does Join(operator)+AnchorIssuance+ConfirmReceipt; proven by TestRosterAdapter_RegisterFounder (adapter_test.go, founder active operator w/ SAID against NewMemoryRegistry) and TestIdipRoster_FounderRegister (idip_roster_test.go, GET /roster lists operator/active). The renderer records it via identityLegs.ts runYourMembership (TestidentityLegs '#1018 records the founder as operator post-receipt').",
    "GET /api/v1/idip/roster/member/{founderAID} answers 200 to the bridge": "TestIdipRoster_FounderRegister asserts the bridge read (bearer-gated member route) returns 200 with role operator / status active / the ACDC SAID after register.",
    "oidc-admin lands the operator on Nextcloud's #header": "Production path fully wired end-to-end (FoundingStandup.vue -> FoundingClient.registerFounder -> register-founder stdio op -> founding.Orchestrator.RegisterFounder -> fleetwire.FounderRoster POSTing the register route over the control-plane API forward). Live re-green of oidc-admin rides the next paid drive-idip (the bridge sign-in only exists on a stood-up droplet); #788 stays armed. Named residue in STATUS.md, per the #1015/#983 precedent."
  },
  "summary": "The IDIP founder is now recorded on the control-plane roster as its operator post-receipt, so the bridge accepts the operator's own sign-in instead of refusing with ErrNoMembership.",
  "reason": "",
  "blockers": []
}
**close-report** for #1018 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1018, "status": "success", "commits": [ "f3fe92ec00599b732f703e129b87042082a5dff5" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "app/src/components/founding/FoundingStandup.vue", "app/src/lib/founding.ts", "app/src/lib/identityLegs.ts", "app/tests/unit/identityLegs.test.ts", "internal/controlapi/idip_roster.go", "internal/controlapi/idip_roster_test.go", "internal/fleetwire/founderroster.go", "internal/fleetwire/founderroster_test.go", "internal/founding/founderroster.go", "internal/founding/founderroster_test.go", "internal/founding/orchestrator.go", "internal/founding/stdio.go", "internal/founding/testing/fakes.go", "internal/keria/adapter.go", "internal/keria/adapter_test.go", "internal/keriawire/wire.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/keria/ ./internal/controlapi/ ./internal/founding/... ./internal/fleetwire/ ./control-plane/... ./app/helper/cmd/helper/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/founding/... ./internal/fleetwire/ ./internal/controlapi/ ./internal/keria/ ./internal/keriawire/ ./app/helper/cmd/helper/", "exit_code": 0 }, { "command": "npx vitest run tests/unit/identityLegs.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint src/lib/identityLegs.ts src/lib/founding.ts src/components/founding/FoundingStandup.vue tests/unit/identityLegs.test.ts", "exit_code": 0 } ], "criteria": { "after the identity legs finish, GET /api/v1/idip/roster lists the founder as active with role: operator and the operator ACDC's SAID": "internal/controlapi/idip_roster.go adds POST /api/v1/idip/roster/register; internal/keria/adapter.go RosterAdapter.Register does Join(operator)+AnchorIssuance+ConfirmReceipt; proven by TestRosterAdapter_RegisterFounder (adapter_test.go, founder active operator w/ SAID against NewMemoryRegistry) and TestIdipRoster_FounderRegister (idip_roster_test.go, GET /roster lists operator/active). The renderer records it via identityLegs.ts runYourMembership (TestidentityLegs '#1018 records the founder as operator post-receipt').", "GET /api/v1/idip/roster/member/{founderAID} answers 200 to the bridge": "TestIdipRoster_FounderRegister asserts the bridge read (bearer-gated member route) returns 200 with role operator / status active / the ACDC SAID after register.", "oidc-admin lands the operator on Nextcloud's #header": "Production path fully wired end-to-end (FoundingStandup.vue -> FoundingClient.registerFounder -> register-founder stdio op -> founding.Orchestrator.RegisterFounder -> fleetwire.FounderRoster POSTing the register route over the control-plane API forward). Live re-green of oidc-admin rides the next paid drive-idip (the bridge sign-in only exists on a stood-up droplet); #788 stays armed. Named residue in STATUS.md, per the #1015/#983 precedent." }, "summary": "The IDIP founder is now recorded on the control-plane roster as its operator post-receipt, so the bridge accepts the operator's own sign-in instead of refusing with ErrNoMembership.", "reason": "", "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#1018
No description provided.