IDIP identity legs: the membership schema is served by nothing and resolved by nobody — your-membership 400s at issuance (#788 drive red, sig facdb1c80cf1) #1004
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
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1004
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?
Failure
The
20260829T221859Zidip drive reached the fourth identity leg with the first three green, then red atyour-membership:artifacts/legs.json— 12 green, red atidentity-rows.artifacts/verdict.json—firstRedLeg: identity-rows, commitf228e1d5. The Playwright snapshot (artifacts/journey.idip-…/error-context.md) showsidentity-service ✓with witness probe passed, and the registry was created before the ACDC issue rejected — so this is NOT a recurrence of the witness/keria-boot causes healed three times at this same signature. It is the next wall.Diagnosis: the schema is served by nothing and resolved by nobody
Both halves of schema delivery are unbuilt, and the code says so.
Half 1 — no payload is ever written.
renderKeriSchemaUnit(internal/clan/keri.go:560-583) renderskeri-schema.servicewith onlyStateDirectory = "keri-schema", which creates an EMPTY/var/lib/keri-schema. The inline server readsos.path.join(root, said + ".json")(internal/clan/keri.go:350) — so it 404s every SAID. The comment atinternal/clan/keri.go:565states the deferral outright: "the schema payloads themselves are the adapter's to populate (#773)". Confirmed in this drive's captured flake,state/clan-config/machines/gateway/keri-stack.nix:214-221— the rendered unit has no payload step. The unit is healthy and listening (logs/droplet-units.txt:13,logs/droplet-keri.txt—keri-schema.serviceactive since 22:24:33), it just has an empty root.Half 2 — nothing resolves the data OOBI into KERIA.
IdentityLegsDriver.runYourMembership(app/src/lib/identityLegs.ts:364-385) goescreateRegistry→issueCredentialwith no OOBI resolution in between. TheIdentityLegsKeriinterface (app/src/lib/identityLegs.ts:55-76) has no resolve method at all, even though the real client exposesresolveOOBI/resolveOOBIWithReason(app/src/lib/keri/client.ts:327,333, whose own section header at:324reads "schema OOBI, issue + IPEX grant"). The SAID is passed through as a bare string (identityLegs.ts:190,372). AndKERIA_DURLSis explicitly not set:internal/clan/keri.go:405— "KERIA_DURLS (schema OOBIs, #773) is still the adapter's, deferred here", rendered into the flake as the comment# KERIA_IURLS resolved by keria-iurls.service (witness AID); KERIA_DURLS deferred.Why it was never caught: #771 packaged the server and deferred the payloads to #773; #773 shipped the Go source of truth and deferred the resolution proof back to the consuming slice (
internal/credschema/said.go:24-26— "The end-to-end OOBI-resolution proof … rides the consuming schema-server slice"). Each slice deferred to the other and neither built it. The unit tests pass becauseidentityLegs.test.tsfakesissueCredential; only a live drive touches real KERIA.Mechanism, verified offline against the real packages
Run from this machine's nix store, no droplet:
keria-0.4.0/keria/app/credentialing.py:1673when the schema SAID is absent from the agent's cache.KERIA_DURLSis read atkeria/app/cli/commands/start.py:160and merged into the PER-AGENT config atkeria/app/agenting.py:316-317(docstring:246— "Data OOBI URLs resolved at startup of each Agent"), so it applies to the agent this drive booted at 22:27:20, not just to agency start.1.2.13/keri/app/habbing.py:776-779queues eachdurlsentry intodb.oobisat Habery init. Its own docstring example (habbing.py:750-754) is literally"durls": ["http://127.0.0.1:7723/oobi/<SAID>"]— the exact portkeriSchemaPortbinds (internal/clan/keri.go:72). This is the intended shape.Oobierydoer (keria/app/agenting.py:649,684), not synchronously at agent creation. This drive issued ~8 s after agent boot. SoKERIA_DURLSalone is necessary but NOT sufficient — it can still lose the race.Suspected layer
Two layers, both needed:
internal/clan(Nix render) — materialisecredschema.Membership().JSONandCommittee().JSON(internal/credschema/schema.go:133,159;Schema.JSONis the served document,schema.go:16) into/var/lib/keri-schema/<SAID>.json, and setKERIA_DURLSonkeria.serviceto the loopback schema OOBI(s).app/src/lib(renderer) — resolve the schema OOBI and AWAIT the op beforeissueCredential, so issuance never races the Oobiery.identityLegs.tsis the drive's path; the same gap exists onstewardApprove.ts:248,stewardAddRotate.ts:382, andnoBackupReissue.ts:265, which all issue againstmembershipSchemaSaidwith no prior resolve.What plugging it needs
renderKeriSchemaUnit, write each schema viapkgs.writeTextinto the store and link/copy it into/var/lib/keri-schema/<SAID>.json(anExecStartPre, or dropStateDirectoryand pointExecStart's root at a store dir built from the schemas — the latter makes the payloads immutable and eval-derived, which suits a Nix render). This makesinternal/clanimportinternal/credschema— the SAID and the bytes must both come fromMembership(), never a literal.KERIA_DURLSinrenderKeriUnit's environment block (internal/clan/keri.go:395-410), tohttp://127.0.0.1:7723/oobi/<SAID>per schema. UnlikeKERIA_IURLSthis needs NO runtime-derived id — the SAIDs are eval-time constants — so it can be baked directly, nokeria-iurls.service-style oneshot.IdentityLegsKeri(identityLegs.ts:55) and call it at the top ofrunYourMembership(identityLegs.ts:364), awaiting the KERIA op to completion. This is the half that closes the Oobiery race;KERIA_DURLSalone will re-fire this red intermittently.http://127.0.0.1:7723(what keripy documents, no TLS/DNS dependency, but only reachable from the droplet) vs the publicschema.<apex>door already fronted atinternal/clan/keri.go:156/KeriSchemaLabel(:121). KERIA fetches server-side, so loopback works for the founding legs; a REMOTE member agent verifying the credential needs the public door. Recommend loopback forKERIA_DURLSand the public door for anything handed to a member — but this is the one ruling in here a human may want to make.TestRenderKericase asserting both the payload write andKERIA_DURLS(the existing render-test seam,internal/clan/render_test.go), and anidentityLegs.test.tscase asserting resolve-before-issue ordering on the fake. Neither proves live resolution — that only the drive can do.Why this was not self-healed
Over 3 files across two layers, a new cross-package dependency (
internal/clan→internal/credschema), one embedded design ruling (where payloads are baked / which OOBI URL), and no check on this machine can prove KERIA actually resolves the schema — only a re-drive on a paid droplet can. Signaturefacdb1c80cf1has already absorbed three self-heals at this leg; a fourth speculative one would burn another droplet.drive
20260829T221859Zred atidentity-rows:identity row your-membership failed: HTTP POST /identifiers/community/credentials - 400 - Credential schema ICyWw9WrDmRwNEPRIp032_3IrGiY9O1suzD2TGN8Mexx not found. It must be loaded with data oobi befevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260829T221859Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=14119
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
The one ruling this ticket flagged for a human — which OOBI URL KERIA fetches the schema from — I ruled myself, because it is a two-way door: revertible in one line each side, and provable by the render test + a re-drive.
Ruling: loopback
http://127.0.0.1:7723/oobi/<SAID>for BOTHKERIA_DURLS(baked inkeria.service) and the founding-legsresolveOOBI. The publicschema.<apex>door (already fronted atKeriSchemaLabel) is reserved for a remote member agent verifying the credential.Why loopback: KERIA resolves OOBIs server-side — the browser hands KERIA the URL, KERIA's Oobiery fetches it. During founding, KERIA and the schema server are on the same droplet, so loopback needs no TLS/DNS and is exactly what keripy documents (
habbing.pyexample:"durls": ["http://127.0.0.1:7723/oobi/<SAID>"]). It also matches the URL baked intoKERIA_DURLS, so the founding resolve is idempotent against KERIA's own queued OOBI.Why it is a two-way door: switching either side to the public door is a one-line change to
keriSchemaDurls()/SCHEMA_OOBI_BASE, proven byTestRenderKeri_SchemaPayloadsBakedAndDurlsPointsAtThemand a re-drive of the identity legs. Not on the one-way-door list (no credential, security-posture, member-trust, data-destruction, or spend implication).A remote-member verification path that needs the public door is a separate slice; this ruling does not foreclose it.
close-report for #1004 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope