idip: the member's browser can never boot — the /boot door's forward_auth refuses the CORS preflight, so member-join dies at "Failed to fetch" #1031
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#1031
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
20260830T112248Zred atmember-join(sig1c4ab3a27bf2), 21/22 legs green.expect(locator('[data-status="awaiting-approval"]')).toBeVisible()timed out at its full 240 s ceiling withelement(s) not found.The member's browser never booted a KERI agent. It is NOT a selector drift — the waiting page was never served, because the join never got past its first network call.
Evidence
From the drive's Playwright trace (
artifacts/journey.idip-…/trace.zip,2-trace.network— the member-join browser context):net::ERR_FAILEDwith no status is a blocked CORS preflight, and it is whaterror-context.mdshows the page rendering:- alert: Failed to fetch. The follow-on/agent/…404 is signify-ts connecting to an agent that was never minted.Why the preflight is mandatory:
app/src/keriweb/doors.ts:26-32— the join page is served at the apex (front-door.nix:71@portal host rehearsal-b.idss.nz), the boot door iskeria-boot.<apex>. Different origin.app/src/keriweb/main.ts:68→app/src/lib/keri/bootToken.ts:42— the boot fetch setsX-Idss-Boot-Token. That plusContent-Type: application/jsonmakes it a non-simple cross-origin request; Chromium sendsOPTIONS /bootfirst.Why the preflight is refused:
internal/clan/keri.go:168-179(renderKeriIngress) putsforward_authinsidehandle @keribootwith no method exemption, so it runs on theOPTIONSpreflight too. Rendered on the droplet atstate/clan-config/machines/gateway/front-door.nix:146-156.copy_headers X-Idss-Boot-Tokencopies nothing.internal/controlapi/authgate.go:189-197—bootGateVerifycallschecker.CheckBootToken(ctx, ""), which denies (internal/keria/invite.go, pinned byinvite_test.go:52), and answers 403. Non-2xx preflight → the browser never sends the POST.The gate and the route are otherwise healthy — this is only the preflight:
keria-boot.<apex>route at 11:28→11:30:48 (logs/droplet-keri.txt:Agent Pre: ELAr5XGyGicQ22v58TZg4lP1K8n00ap4lybqZVl9TWG3), andidentity-rowswas green. A live checker is wired (control-plane/cmd/control-plane/main.go:933,WithKeriBootGate(idip.bootChecker)).droplet-journal.txt:885idip invite minted), used 11:33:56. Not expiry, not double-spend.0-trace.networknor1-trace.networkcontains akeria-bootURL — the founder's browser-context traffic only ever recovers an existing agent over the ungatedkeria.<apex>door. The member's is the only browser-origin/bootin the drive, and it is the only one that failed.Suspected layer
The front-door render,
internal/clan/keri.go:147-180— the@keribootroute has no CORS answer. This has been latent since the door was rendered: no drive had ever booted from a real browser origin before this leg.What plugging it needs
1. The boot door must answer its own preflight (the red). In
renderKeriIngress, short-circuitOPTIONSinsidehandle @keribootBEFORE theforward_auth, and let Caddy — not keria's boot app — own the CORS headers on that route:Notes for whoever takes this:
POST /bootstill passesforward_auth, still needs a live unspentX-Idss-Boot-Token. ADR 0074 / #771's fail-closed posture is intact — but say so in the rendered comment and update the ADR/DDR note, since the block's current comment reads "the endpoint refuses every request".https://<apex>, not*— the boot door mints an agent for any passcode, and no origin other than the community's own join page has business preflighting it.Access-Control-Allow-Originon the proxied response too.KERI_AGENT_CORS=1is set process-wide (keri-stack.nix:155) and the admin app at :3901 demonstrably honours it, but whether keria 0.4.0's separate boot app at :3903 does is unverified — don't make the fix depend on it.internal/clan/keri_test.go(besideTestRenderFrontDoor…atkeri_test.go:333) that the OPTIONS arm precedesforward_authin the@keribootblock and namesX-Idss-Boot-Tokenin allow-headers. Check:GOWORK=$PWD/go.work go test ./internal/clan/.2. The leg must red in seconds, not burn 240 s blind (the cost). Trace times: Join clicked at t=603449 ms, the boot fetch failed at t≈603978 ms — ~0.5 s later the page was already displaying "Failed to fetch".
app/tests/e2e/fixtures/idip.ts:195then waited 240.006 s (t=603955 → 843961) and reportedelement(s) not foundwith no reason. ~28% of the whole drive spent to arrive at a blank message the page had already written.Racing the waiting page against the join page's error alert is the same shape as
s6aRecoveryPhraseAndCreate(idip.ts:116-121) andoidcSignInViaBridge(#1026/#1027) — but it CANNOT be done safely today, because the join page double-books one region for progress and refusal:internal/controlapi/member_join_idip.go:187renders a single<p class="status" data-status="join" role="alert">;app/src/keriweb/main.ts:71, 82, 85narrate "Setting up your identity…" / "Anchoring your identity…" / "Sending your details…" into that same element viastatusEl('[data-status="join"]');member_join_idip.go:273writes caught refusals there too.A non-empty race would therefore read progress as a refusal — exactly the #1024 regression. So this is the #1024 split, unapplied to the join page: give
renderJoina separate polite[data-progress]region (asinternal/idp/brand.go's sign-in page has), pointidssKeriJoin's three working lines at it, leave[data-status="join"]as the refusal channel only, then race it atidip.ts:195.While there:
idip.ts:187's "the join page is up" assertion binds to[data-status="join"], which is that same empty refusal<p>— it passes only because the element hasmin-height:1.2em. Point it at something that means the page ([data-field="recovery-phrase"]or the form).Checks:
pnpm --filter app exec vitest run tests/e2e/fixtures/idip.test.ts(the file already carries the sibling case at line 96, 'narrates progress into [data-progress], never the refusal alert'), plusGOWORK=$PWD/go.work go test ./internal/controlapi/for the split region.Not the cause (ruled out)
keria-boot.<apex>: the siblingkeria.<apex>under the same wildcard cert answered with real statuses (404 + CORS headers) seconds later.main.go:933wires the live one, and the founder's boot passed it on this droplet at 11:30:48.[data-status="awaiting-approval"]:member_join_idip.go:206still renders it;renderWaitingwas simply never reached.drive
20260830T112248Zred atmember-join:expect(locator).toBeVisible() failed Locator: locator('[data-status="awaiting-approval"]') Expected: visible Timeout: 240000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeoutevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260830T112248Zon 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=14504
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1031 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope