idip: the 1-of-1 community group AID derives the founder's own prefix — community-identity reds with KERIA 500 Already incepted (KERIA's witness pool is empty) #985
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#985
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
Drive
20260829T110107Z(commitc2a88de3) went 12 green and red atidentity-rows, one leg further than the previous two drives —your-identitynow mints cleanly (#981's founding boot-invite landed), and the red moved to the next row:The prefix KERIA refuses is the founder's own AID. The page snapshot in
report/data/f252db1779a6de102fc7f78020168932622ca8f4.mdshows the row above it resting ✓ with the evidence linefounder AID EFH4G432mZkKqVh10LUD_3D9rDOMEjEBhnhuicZmrq1i— the same string. The community group inception derived a prefix identical to its single member's, so KERIA rejected it as a duplicate incept.Why the two prefixes collide
A KERI prefix is the Blake3 SAID of the inception event. For these two events to share a SAID, every field must match.
createAID(app/src/lib/keri/client.ts:255-266) →deterministicKeeperArgs(bran, await this.personalWitnessConfig()), i.e.keys=[k0],ndigs=[n0],isith '1',nsith '1',wits=split.personal,toad=split.personalToad.createGroupAID(app/src/lib/keri/client.ts:273-290) →algo:'group',isith '1',nsith '1',wits=split.org,toad=split.orgToad,mhab=master,states=[master.state].algo:'group'signify-ts derives the event keys from the member states, not from a fresh salt:GroupIdentifierManagersetsgkeys = states.map(s => s.k[0]),gdigs = rstates.map(s => s.n[0])andincept()returns exactly those (app/node_modules/signify-ts/dist/keri/core/keeping.js:295-315). At 1-of-1 that is the founder's own current key and next digest.So at 1-of-1 the ONLY fields that can distinguish the group event from its member's are
witsandtoad.assignWitnesses(app/src/lib/keri/witnessAssignment.ts:61-71) hands out disjoint halves, sopersonal ≠ orgfor any non-empty pool — except when the pool is empty, where both halves are[]and both toads are0. Then the two events are byte-identical and the SAIDs match. That is the only input that produces the observed error, so the collision is itself proof the pool was empty.Why the pool is empty: KERIA is never told about the community witness
witnessPool()reads KERIA's own config (app/src/lib/keri/client.ts:654-657):KERIA_IURLSis deliberately not rendered, and the runtime step that was supposed to fill it does not exist —internal/clan/keri.go:382-389:Nothing in
internal/clan/idssidp.go, the seed leg, or the control plane ever resolves the witness OOBI intoiurls(grep -rn iurlsoutsidenode_moduleshits onlykeri.go's comment, the renderer's readers, and tests).resolveWitnessOobis(app/src/lib/keri/client.ts:646-650) iteratesconfig.iurlsand is therefore a no-op.Corroborating run evidence:
logs/droplet-journal.txt:889:Witness wit : BAnK3GaMnl4rhqjlUaTmJi2CnYXT75ySVcB6xLhY7IVRat 11:06:44 (so #981's qb64-salt fix held; this is no longer the "witness never came up" fault from20260829T065250Z).logs/droplet-journal.txt:1976is KERIA's agent line; the witness is silent) — consistent with the founder AID being inceptedwits: [],toad: 0.identity-servicerendering ✓KERIA + witness + sign-in door live (door probe passed)(app/src/lib/identityLegs.ts:218-225) is still overstating: the witness process is live, but no AID in this community is witnessed by it.Suspected layer
Two layers, and the second is the one that needs a ruling.
internal/clan/keri.go) — KERIA'siurlsnever carries the community witness OOBI. Owed work the comment at:382-389names and defers to a seed leg that does not do it.app/src/lib/keri/witnessAssignment.ts) —assignWitnesseswas lifted from matou-app, whose pool was the KERI demo six. IDSS deliberately runs ONE witness (internal/clan/keri.go:414-417, research §3: "ONE, not the demo six"). Atn=1the half-split gives the personal AID the witness and the community group AIDwits: [],toad: 0; atn=0it gives both nothing and the prefixes collide. The "split the pool in half" rule has no valid behaviour on a one-droplet community.Wiring
iurlsalone will not close this. With the pool at 1 the collision does clear (founder gets 1 wit, group gets 0 → different SAIDs), but the community group AID is then unwitnessed, and its registry/ACDC anchors are exactly whatawaitGroupAnchorWitnessed(app/src/lib/keri/client.ts:524-535) blocks on —createRegistrycalls it at:303andissueCredentialat:363. The likely result is the red simply moving toyour-membership, at the cost of another droplet.What plugging it needs
A human ruling first, then code:
toad 1(they then differ only if something else does — see 2); or the community AID takes the witness and the personal AID goes witnessless; or the stack runs ≥2 witnesses on a one-droplet community.identifiers().createpasseskargs.datainto the icpafield (app/node_modules/signify-ts/dist/keri/app/aiding.js:80, 136-147), so a community seal is one available shape. This is a permanent property of the community's KEL and should not be chosen incidentally.KERIA_IURLSwithhttp://127.0.0.1:5642/oobi/<witness AID>/controllerat stand-up (the AID is only known post-inception, so it is a runtime step, not a Nix literal), and giveassignWitnessesa defined, tested behaviour at pool sizes 0 and 1 —app/tests/unit/keri/witnessAssignment.test.tscurrently exercises neither.Secondary, in the same evidence (not the red)
logs/droplet-journal.txt:886-887—usage: kli [-h] command ... / kli: error: unrecognized arguments: false. The witness incept renders--transferable false(internal/clan/keri.go:441-442), but keripy'skli incept --transferableis a boolean flag, not a valued option, sofalselands as a stray positional and the wholekli inceptfails. It is swallowed by the trailing|| trueon:442. The witness still comes up (kli witness startincepted it, and the resultingB…prefix is correctly non-transferable), but it is incepted underkli witness start's defaults, not the intended--wits "" --toad 0 --icount 1 --isith 1 --ncount 0 --nsith 0. Worth fixing beside the above; it needs a check against real keripy, which this healer cannot run.drive
20260829T110107Zred atidentity-rows:identity row community-identity failed: HTTP POST /identifiers - 500 - {"title": "500 Internal Server Error", "description": "Already incepted pre=EFH4G432mZkKqVh10LUD_3D9rDOMEjEBhnhuicZmrq1i."}evidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260829T110107Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRouted to
ready-for-humanby a standing session under ADR 0174 — veto anytime.I confirmed the diagnosis against the code, then stopped: the fix is gated on a one-way-door design ruling, so a two-way-door session cannot self-author it (session rule 2; ADR 0174 rule 3 — a member-/public-facing trust surface). No ruling-independent code part can land safely offline, so I am leaving the ticket for a one-line ruling rather than guessing a permanent property of the community's KEL.
Diagnosis confirmed (spot-verified, not just restated)
createGroupAID(app/src/lib/keri/client.ts:273-290) at 1-of-1 usesisith/nsith '1',wits=split.org,toad=split.orgToad, keys/digests frommaster.state. When the pool is empty,assignWitnesses([])returnsorg=[],orgToad=0(witnessAssignment.ts:61-71, andwitnessAssignment.test.ts:55-61asserts exactly this) — byte-identical to the founder'screateAID(client.ts:256-266) at an empty pool. Same fields ⇒ same Blake3 SAID ⇒ KERIA'sAlready incepted. Confirmed.KERIA_IURLSis deliberately never rendered and no runtime step resolves the witness OOBI into it (internal/clan/keri.go:382-389, the "out of scope here" comment;grep -rn iurlsoutsidenode_moduleshits only that comment + readers + tests). Confirmed.--transferable false(keri.go:441) is malformed for keripy's booleanstore_trueflag; swallowed by the trailing|| true. Confirmed present.One correction to the report:
witnessAssignment.test.tsdoes cover the empty pool (lines 55-61) — but it asserts the collision-producingorg=[],orgToad=0as correct, and never coversn=1nor the collision itself.Why human
Two decisions, both one-way doors, because they amend ADR 0197 — whose own header reads "one-way door on the community's key-management shape" — and fix a permanent, immutable property of the community's KEL (a KERI prefix is a SAID; once a community is founded it cannot be re-derived). This is exactly ADR 0174 rule 3's "final accept on a member-/public-facing trust surface." The report listed competing options with no single proposed default, so there is nothing for a session to adopt under rule 4. I've turned each into a one-line ask with a recommended default:
Decision A — how the 1-of-1 group prefix is made distinct from its single member's (the collision-solver). The only fields that can differ at 1-of-1/one-witness are
wits/toadand the icpadata. Two real directions:afield.identifiers().createthreadskargs.datainto the icpafield, so the group AID commits to a stable community identifier (the community apex/domain is the natural, non-incidental choice — known at founding, already the community's public root). Distinct at every pool size, forever, by design not by witness accident; both KELs stay witnessed. Cost: a permanent KEL property + the implementer must verify signify-ts's group path actually threadsdata(the citedaiding.js:80,136-147is the general path).n=1: groupwits=[wit] toad=1, personalwits=[] toad=0→ different SAIDs, and the group (the AID whose anchorsawaitGroupAnchorWitnessedblocks on) is the witnessed one. No seal, no second witness, no second droplet. Cost: the founder's personal AID is unwitnessed (may bite when another steward's/member's agent must resolve it), and it's fragile — it re-collides the instant the pool is even (both halves symmetric).Decision B — witness allocation for ONE witness (amends ADR 0197's "over the org half"). Give
assignWitnessesdefined behaviour at pool sizes 0 and 1. Recommended default is coupled to A: if A1, give BOTH AIDs the single witness (toad 1) so both KELs are receipted and the seal (not a witness split) guarantees distinction; if A2, give the witness to the group only. Either wayn=0should be an honest hard failure at stand-up, not a silent unwitnessed founding.Once A and B are ruled, the tail is two-way and a session can finish it: seed
KERIA_IURLSwithhttp://127.0.0.1:5642/oobi/<witness AID>/controllerat stand-up (runtime step — the AID is only known post-inception), implement the ruledassignWitnessesbehaviour + the seal if A1, and add red-first tests at pool sizes 0/1 (and a collision-guard). Note the report's caution: wiringiurlsalone still leaves the red likely to move toyour-membershipunless A/B keep the group witnessed.Secondary (not the red, needs a keripy-capable environment)
The
--transferable falserender (keri.go:441) should be a bare--transferableflag (or the correct keripy spelling), sokli inceptruns its intended--wits "" --toad 0 --icount 1 ...instead of failing into|| trueand lettingkli witness startincept under its own defaults. I did not touch it: I cannot run real keripy to prove the replacement syntax offline, and it changes load-bearing witness inception — the same limit the report's author hit. It should be fixed and proven in a keripy-capable session, alongside the A/B wiring. Related open honesty item already filed: #983 (identity-serviceasserts the witness live while the door probe only checks apex TLS).Nothing was committed this session — the entire actionable surface is behind the ruling above.
Ben ruled A (2026-08-29) — ADR 0197 amended on main. One-way door, ruled by the human.
toad 1. Half-split stays for larger pools. Pool size 0 = fail-loud at the identity legs (never an unwitnessed inception).afield (identifiers().create(..., data)) naming the community (its apex host) — same shape at every group size, so the group prefix can never equal its member's.KERIA_IURLSwired at the seed leg: resolve the witness OOBI (http://127.0.0.1:5642/oobi/<witness AID>/controller, known post-inception) into KERIA's config at stand-up.To close:
assignWitnesseshas a defined, tested behaviour at pool sizes 0 (throws) and 1 (both halves = the one witness, toad 1) —witnessAssignment.test.tsgains both cases.createGroupAIDpasses the community seal; a unit test proves the 1-of-1 group prefix ≠ the member's for identical keys/witnesses.iurls; a render/seam test proves KERIA's config carries the witness OOBI after stand-up;resolveWitnessOobisis no longer a no-op.kli incept --transferable false→ the flag form (keripy boolean), and the|| truethat swallowed it goes.identity-servicerow only reads ✓ when the witness has receipted (ties to #983's probe).community-identity(andyour-membershipstops being the next unknown — if it reds there, that is a NEW ticket, not this one).Re-armed
ready-for-agent.swarm-claim host=matou-dev-server-01 run=13959
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #985 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
curls, soyour-identityburns the 180 s ceiling #995