#788 IDIP drive: the founder's first KERIA /boot still goes out tokenless — the boot invite is minted 24s too late and the app swallows the miss #981
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#981
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
20260829T095444Z(commite1a8cdcb) reds at leg 13 of 13,identity-rows; every carrier leg is green.artifacts/legs.json(last record),artifacts/verdict.json(firstRedLeg: identity-rows).Same leg and same signature (
facdb1c80cf1) as drive20260829T065250Z. #968 (08e9bbcc) landed between the two and did change the presentation — the door's real 403 now reaches the row instead of theagent does not exist for controller …mask — but the founder's first/bootis still not authorized.The invite was minted, and it was never presented
logs/droplet-journal.txt:1962—10:03:51.540 … msg="idip invite minted" id=boot-1 operator="founder (bootstrap)". Grepping the full 244 KB journal forinvitereturns that one line, so there was no earlier mint.logs/droplet-journal.txt:2028shows-rw------- 1 root root 295 Aug 29 10:03 /var/lib/idss/keria/boot-invites.json. 295 bytes is exactly the unspent one-invite document; the spent form is 326 (the extra"spent": true,line plus a realspent_at). Measured, not estimated:BootInvitealways emitsspent_at(a zerotime.Timecannot beomitempty-ed) —internal/keria/invite.go:56-70— andjsonstore.File.Savewritesjson.MarshalIndent(v, "", " ")—internal/jsonstore/jsonstore.go:104. A throwaway probe againstNewFileBootInvitesminting onefounder (bootstrap)invite with nanosecond stamps gives 295 unspent / 326 spent.CheckBootTokensetsSpentand saves before returning nil (internal/keria/invite.go:155-178). An unspentboot-1therefore proves the denied/bootdid not carryboot-1's token: the loop matched nothing and fell through toErrBootDenied(internal/keria/invite.go:39), whichbootGateVerifywords as the observed Problem (internal/controlapi/authgate.go:188-196).The boot went out tokenless. The attach side is sound and can be ruled out: the request reached
keria-boot.rehearsal-b.idss.nz(the gate answered it), andwithBootTokenattaches on exactly that origin (app/src/lib/keri/bootToken.ts:30-44againstkeriDoorEndpoints,app/src/lib/identityLegs.ts:403-409). What is left isKERIClient.bootToken === null, i.e. the app held no token —app/src/lib/keri/client.ts:178-181boots bare in that case.Why the app held no token
FoundingStandup.vuestarts the identity legs the momentcarrierDoorsLiveflips, and that computed is true as soon asst.deploy?.outcome === 'live'(app/src/components/founding/FoundingStandup.vue:800-804, watcher at:840-850). The deploy completed at 10:03:27.037 (logs/founding-state.log,standup.events: "gateway deploy complete — the control plane is live"). The invite was minted at 10:03:51.540 — 24.5 s later, as the last stage of seeding (internal/founding/seed.go:315-321;standup.seed.log[4], stagefounder-boot).startIdentityLegsawaitsfounderBootToken()first (:855-862), and that helper catches everything and returnsundefined(:866-872) — so a token that is merely not ready yet is indistinguishable from "no gated door here" (kanidm / off-shell), and the legs boot bare into a door that is gated.Reconstruction, consistent with every timestamp: the legs start at 10:03:27; the op reaches
fleetwire.FounderBoot.MintBootInvite, whose settle loop is 10 attempts × 2 s against the guest control-plane API forward (internal/fleetwire/founderboot.go:97-121) — that forward is the seed's, and seeding had not started; the loop exhausts ≈10:03:47 and errors; thecatchdiscards it; the tokenless/boot403s; seeding then mintsboot-1at 10:03:51.540, which nothing ever presents. The exact reason the fetch failed is not recorded anywhere in this run — thecatchthrows it away — which is itself the first thing to fix.Note
internal/founding/seed.go:310-314already anticipates this: it treats a seed-time mint failure as non-fatal because "the app's pre-boot fetch re-mints … just before the legs boot". That contract only holds if the app's fetch happens after seeding and is allowed to fail loudly; today it happens ~24 s before, and fails silently.Suspected layer
Renderer sequencing in the operator app (
app/src/components/founding/FoundingStandup.vue), not the gate.internal/keria,internal/controlapiand the Caddy/bootroute all behaved exactly as specified.What plugging it needs
A ruling on which of these is the shape (they are not exclusive):
seeded/hand-offrather than ondeploy.outcome === 'live', so the invite exists before the first/boot. ADR 0212's amendment says the invite is minted at seeding and "held for the identity legs' first/boot", which reads as prescribing exactly this order — but it moves when the four S7x rows appear relative to the carrier rows, which is a DDR 0144 / wireframe-contract question, hence the ruling.FoundingStandup.vue:866-872. On the IDIP path a failed token fetch must redyour-identitywith the fetch's own reason (ADR 0088 — a fault is never silently continued past), instead of degrading to a tokenless boot whose 403 names the door rather than the missing invite. Keep the tokenless fallback for the kanidm / off-shell path only, where the face is genuinely unwired (founding.ErrFounderBootUnavailableis distinguishable).internal/founding/seed.go:310-314already assumes.Verification is a re-drive: this cannot be proven on the workstation (the boot door only exists on a stood-up droplet). A vitest can pin the watcher condition and the no-swallow behaviour at the seam, but not the live ordering.
A second, distinct defect in this same run's evidence
The community witness never started, for the entire run, and the drive still reported it live.
keri-witness.servicedied at every attempt withERR: Need 23 more chars.thenstatus=255/EXCEPTION(logs/droplet-journal.txt:539-541, and again at:1939-1940on the post-flip start). Port 5642 never listened —logs/droplet-units.txtss -tlnphas no 5642, andkeri-health-waitcurls it unsuccessfully from 10:00:45 straight through 10:04:11.internal/clan/keri.go:495-496, commented "A 21-char qb64 salt is what kli --salt expects" at:490) and feeds it tokli init --salt(internal/clan/keri.go:440). That is not valid CESR qb64 — keripy reads the leading char as the code and then finds the string short. The previous drive20260829T065250Zshows the same generator failing with the sibling errorERR: Unsupported code =a.(logs/droplet-journal.txt:471), which is the same defect with a different random first character. GOTCHAS #5 makes re-minting a witness identity a ruled decision, so this needs its own call (fix the generator vs. a rotation generator).identity-serviceis hardcodedstatus: 'done'with evidence "KERIA + witness + sign-in door live (door probe passed)" (app/src/lib/identityLegs.ts:216-224), while the door probe it leans on only checksid.<apex>and the portal apex over TLS (internal/founding/deploy.go, #499) and never touches the witness. That row asserted a live witness that was dead the whole run.This one does not cause the red above —
your-identitydies at the door, before any witnessing — but it is the very next wall:createAIDneeds witness receipts. Worth plugging in the same arc so a re-drive does not spend another droplet to find it.drive
20260829T095444Zred atidentity-rows:identity row your-identity failed: the KERIA boot door refused this agent (403): {"code":"boot_denied","message":"the invite token is not a live, unspent invite"}evidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260829T095444Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClose report — landed, offline-proven (ADR 0174)
Commit:
c2a88de3(founding+clan: #981 — …), pushed tomain.Root cause (confirmed against every timestamp in the drive)
The founder's first
/bootwent out tokenless. The identity legs started ondeploy.outcome === 'live'(10:03:27) — but the founder's single-use boot invite is minted at seeding (10:03:51, ~24 s later), and the guest-trust control-plane API forward the token fetch rides is seeding's own, so it wasn't up yet either. The app's pre-boot fetch therefore found no invite, andfounderBootToken()'scatchswallowed the miss toundefined, so the legs booted the invite-gated door bare and 403'dboot_denied. The gate,internal/keria,internal/controlapiand the Caddy route all behaved exactly as specified — this was renderer sequencing.Fix (three parts; the ticket's (a) and (b), plus the second, distinct defect)
FoundingStandup.vuecarrierDoorsLivegates the legs onseeded/hand-off, no longer ondeploy.outcome === 'live', so the invite exists and the forward is up before the first/boot. Ruled:seededis strictly after the doors are live, so the p1-s7x wireframe contract (the four S7x rows appended once the doors are up) holds and the DDR 0144 row-order concern does not bite — a two-way, render-only door.founder-boot-tokenbridge op now distinguishes an unwired face (kanidm / off-shell:okwith no token → the app boots bare, correct where the door is ungated) from a real mint failure (ok:false→ the app redsyour-identitywith the mint's own reason).FoundingClient.founderBootToken()returnsstring | undefined, the swallow helper is deleted, andKERIClient.bootTokenaccepts a lazy provider resolved at the boot itself (the retry closest to use, per the contractseed.go:310-314assumes) — a provider throw fails the boot loud,undefinedboots bare.renderKeriWitnessSaltminted a 21-char random alphanumeric that keripy'skli init --saltrejects as a bad CESR derivation code (ERR: Unsupported code/Need 23 more chars,status=255,:5642never listened — the witness was dead the whole run). Now mints a valid Salt_128 (0A) qb64 exactly as keripy's own encoder does (0A+ url-safe-base64 of two zero bytes ‖ 16 random bytes, sliced). Ruled (the ticket's own call: fix-the-generator vs. rotation-generator): fixed in place — the witness never incepted, so there is no published witness AID to protect and GOTCHAS #5's rotation hazard is absent. GOTCHAS #124.Proof (red-first, entirely offline)
internal/founding/founderboot_test.go).undefinedboots bare (tests/unit/keri/founderBoot.test.ts); the client's three outcomes (tests/unit/founding.test.ts).assertValidSalt128) — a bare random string fails every clause.go build/vet/gofmt/go test ./internal/clan ./internal/founding+ appvue-tsc/eslint/fullvitestgreen. (The sole vitest red isboot.test.ts's CGOgo buildon this gcc-less host — pre-existing and unrelated;CGO_ENABLED=0builds the helper clean.)Live proof (the residue this session cannot reach)
The boot door only exists on a stood-up droplet, so the fix is verified by the next IDIP re-drive of #788 (a two-way-door session does not burn a full founding drive). If it reds again at the same sig
facdb1c80cf1, the rehearsal healer re-files.Split out (filed, not guessed)
#983 — the
identity-servicerow is hardcodeddoneclaiming the witness live while the door probe only checks the apex TLS (#499); it asserted a dead witness the whole run. Makingdoneearned needs a witness probe — its own honesty ruling.Ruled by agent under ADR 0174 — revertible renderer + generator fixes proven at every offline seam; veto anytime.
community-identityreds with KERIA 500Already incepted(KERIA's witness pool is empty) #985