idip: live-bindings-for-e2e — retire the fakes: real Verifier, gate arming, browser sign-in module, stdio roster-anchor #890
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#890
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?
Parent
Feature spec: #767 (idip; wayfinder map #725). Split out of the capstone drive #788 (ADR 0174 scoping ruling, 2026-08-27) — see
docs/spike-findings/2026-08-27-idip-e2e-drive-788-scope.md.Why this slice exists
The slice-map (Ben-confirmed 2026-08-24,
docs/slices/idip.yaml) folded "the join point where the bridge meets the real keria adapter" into the e2e drive #788, on the ruling that the bridge "consumes IsIssued through the port's FAKE binding … the e2e drive joins them" — i.e. the join was assumed to be thin glue (swap one fakeIsIssuedfor the realkeria.Registry.IsIssued).That assumption is false. The bridge's
idp.Verifier(internal/idp/verifier.go:122-139) is four methods; onlyIsIssuedhas a real backing. The KERI challenge/response and ACDC presentation, the browser sign-in module, the stdio roster-anchor, and the gate arming are all unbuilt. Those are this slice; #788 is the drive that exercises them. The dev substrate exists locally (a liveweboftrust/keria:0.2.0-rc1+ schema-server + signify-ts + Node on matou-workstation;spikes/732-aid-signinproves the conversation), so this is provable red→green here, no droplet.What to build (retire the fakes — the live bindings the e2e drive joins)
idp.Verifierbinding.NewChallenge/VerifyChallenge/Presentationover the gateway's local KERIA, withIsIssueddelegated tokeria.Registry(theIssuanceOracle,internal/keria/registry.go:264). RetireDeniedVerifier()atcontrol-plane/cmd/idss-idp/main.go:49; retireinternal/idp/fake_verifier_test.gofrom the journey path.spikes/732-aid-signin/keria.mjsports.challenge/ports.presentlift near-verbatim. Reimplementing signify in Go is out of scope for v1.IDSS_IDP_KERIA_ADMIN_URL/_CESR_URLininternal/idp/config.go(rendered atinternal/clan/idssidp.go:244-245, currently dropped). Decide where the bridge's own agent salt/passcode lives and persists (the prototype boots a freshrandomPasscode()bridge agent each run — production needs a stable verifier identity).control-plane/cmd/control-plane/main.go:WithKeriBootGate(checker)<-keria.BootInvites.CheckBootToken;WithIdipMemberJoin(gate)<-keria.BootInvites+keria.Registry+ a witness-health probe. Both arenil/absent today (fail-closed).idssKeriSignInmodule inapp/src: derive passcode, answerGET /login/challenge, present the membership ACDC, POST{aid,challengeID,response,presentation}to/login/verify(and the device path). Referenced byinternal/idp/brand.go:138-140anddeviceapprove.go:290-309; absent today.RosterAnchorbinding: wireStewardApproveDriver's issuance/receipt anchor (app/src/lib/stewardApprove.ts) through a real keria/roster transport inapp/src/lib/stdioBridge.ts+internal/stdiobridge— named but unbound today.Acceptance criteria
VerifyChallenge+Presentationverify against live KERIA (issuer/schema/TEL checks, prototype #732's sequence) and a token is minted — proven red->green against the local stack, no droplet.ErrCredentialRevoked/ErrNoMembership), andIsIssuedis served by the REALkeria.Registry(the port fake is not in the path).control-planeandidss-idpbinaries, then the boot gate and the/idip/join/{token}page have live bindings (nonilgate,WithIdipMemberJoincalled).window.idssKeriSignInexists and drives the sign-in POST; given the steward approve driver, then its roster anchor persists through the stdio bridge.Out of scope
journey.idip.spec.ts, S3a-IDIP wizard fixture,idiptarget, the paid droplet run) — that stays #788, which depends on this.Ruled by agent under ADR 0174 — a decomposition of a Ben-confirmed slice on a discovered false assumption; revertible (re-merge into #788) and provable (the gap is cited against
origin/main). Veto anytime.Ruled by agent under ADR 0174 — veto anytime. A drainer session took this ticket, corrected both premises of the #788 re-scope's "session-shaped crux", and proved the correction. Landed commit
510abf12.What I proved (red→green, here, no droplet)
spikes/890-idip-verifier/prove-signin.mjsdrives the whole IDIP sign-in conversation headless and green in ~30s: found community issuer AID + registry + schema → witnessed member → membership ACDC over IPEX + admit → witness-less bridge agent → VerifyChallenge (generate/respond/verify) → Presentation (member IPEX-grants the ACDC, bridge admits, checks issuer/schema/TEL) → revoke → issuer-side TEL flips torev. Every method of the realidp.Verifieris exercised against a live KERIA, andkeria.Registry.IsIssuedis confirmed authoritative (revocation never reaches a verifier agent — prototype #732 re-verified). So the Node signify-ts sidecar design default is sound.The substrate premise was WRONG — and is now corrected
The re-scope named the running
matou-keriaas "the live substrate". It cannot run the flow: it boots astart_keria.pypatch set wired for matou-app's/matou/registration/*protocol, and/ipex/granthas no working behaviour there (Behavior for /ipex/grant missing) — so Presentation can never complete against it. The prototype proved against matou-infrastructure's compose with localwitness-demo, a different stack.spikes/890-idip-verifier/bring-up.shstands up an isolated copy (proto890) that does the full IPEX flow green. Recorded as GOTCHAS #103 (incl. the OOBI internal-port trap). Any build/CI/drive for the real Verifier must use a clean witness-demo KERIA, notmatou-keria.Landed this session (two-way door, tree-green)
internal/idp/config.gonow parsesIDSS_IDP_KERIA_ADMIN_URL/_CESR_URL(rendered atidssidp.go:244-245but previously dropped) —TestLoadConfig_ParsesKeriaURLs,TestLoadConfig_KeriaURLsOptional. The crux now has the endpoints to dial.spikes/890-idip-verifier/(bring-up + prove-signin + tear-down), the findings docdocs/spike-findings/2026-08-27-idip-890-substrate.md, GOTCHAS #103, STATUS.This ticket is FIVE slices, not one
Contract-mapped against
origin/mainthis session:idp.Verifier(crux) — Node sidecar + Go adapter + persisted bridge agent. Provable againstproto890.control-plane/main.go:801) — swapWithKeriBootGate(nil)for a live*keria.BootInvites(CheckBootTokenalready satisfiescontrolapi.BootTokenChecker), + addWithIdipMemberJoin(gate). The join gate needs two pieces that don't exist yet: a non-spending invite peek onBootInvites(CheckBootTokenspends), and a witness-health probe ininternal/keria(none today).idssKeriSignInmodule — greenfield:app/has no served-<script>browser bundle target (only the Electron renderer); the member-side challenge-respond + IPEX-present calls don't exist inapp/srcyet. Natural proof is a browser harness — belongs with the drive.RosterAnchorbinding —stewardApprove.ts'sanchorIssuance/confirmReceiptport is unbound; needs a new helper subcommand +Op/Handlearm (pattern:internal/founding/stdio.go) + aspawnHelperBridgechannel.Two genuinely-undesigned points inside the crux: (a) member-OOBI transport on
idp.SignIn(carriesAID, no OOBI); (b) the bridge's persisted agent salt/passcode lifecycle (the prototype boots a freshrandomPasscode()each run — production needs a stable verifier identity; touches secret-material handling).Why human
The two-way-door work is landed. What remains is a multi-session, multi-language live bring-up across five slices with two open design points — and re-cutting a Ben-confirmed slice graph (
docs/slices/idss.yaml, confirmed 2026-08-24) a third time, plus resourcing that build, is the same program-sequencing residue the #788 re-scope already routed to Ben (Ben's eyes, ADR 0174 §3). This ticket joins #788 atready-for-humanwith the substrate now proven.Proposed default (adopt or veto — the accept should be fast): file slices 1/3/4/5 as their own
ready-for-sessiontickets blocking #788, slice 1 (crux) first, each with substrate =proto890(notmatou-keria); adopt the two design defaults in the findings doc (member OOBI carried onSignIn; bridge salt generated once intoStateDirectory, fail-loud, never in repo). Full detail:docs/spike-findings/2026-08-27-idip-890-substrate.md.Landed on
mainthis session (2026-08-27) — the four bindings this slice names, with one ruled variance, recorded as ADR 0212 (docs/adr/0212-idip-sign-in-verification-and-roster-wire.md):idp.Verifier—internal/keriauth(CESR decode + KEL key state, a lift of matou-app PR #33) +idp.KeriVerifier/idp.BindVerifier;cmd/idss-idpbinds it whenIDSS_IDP_KEYSTATE_URL+IDSS_IDP_CONTROL_PLANE_URLare rendered (56bd30e1). Challenge = signify0BCigar overidss-idp:<aid>:<nonce>, key state read off the KERIA CESR door on loopback. Presentation bytes are UNREAD this rung — membership comes from the issuer-side roster.productionIdipwiresWithKeriBootGate(invites)+WithIdipMemberJoin(keria.JoinGate)+ the roster surface overIDSS_STATE_DIR/keria(56bd30e1).app/src/keriweb→dashboard/idip/keri-web.js:window.idssKeriJoin/idssKeriSignIn/idssKeriSteward.approve(56bd30e1,bb2df791)./api/v1/idip/roster/*, bearer = gate secret), not a new stdio bridge: the roster must live on the gateway (the bridge reads it), and the steward's approve runs in the dashboard browser (the operator app has no gateway API client post-founding). Variance from this ticket's item 4; revertible per ADR 0174.Also found on the way:
keri-stack.nixhad never been built (GOTCHAS #107). Closing on that evidence; #788 (the drive) is armed on the workstation executor and will prove these live.