panel unlock: the identity module mints the sealing key only once libsodium is ready, and a mint or load that fails is a visible fault — the second live walk's silent locked seat (GOTCHAS #376) #2015
No reviewers
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.
Dependencies
No dependencies set.
Reference
Matou/idss!2015
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/mint-after-sodium-ready"
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?
The second live steward-unlock walk (Ben, Whakatōhea Demo, 2026-09-30, app 0.8.4 on release
2d54833b, with #2008 in). Refs #1936.What Ben saw
The unlock hop now runs end to end: the sign-in page's unlock face, the app's unlock card, back to the panel. And Members still landed locked, plain PU-M0, nothing said. The same after a first sign-in with the unlock line on.
What the log showed
admin GET /api/v1/panel/handover 200 size=60— the capability, read once (#2008's race fix works).GET /login/app/handover/keyfor the full two minutes (#696 works).POST /login/app/handoverfrom the browser, ever. The fault is between the capability read and the request.The cause (GOTCHAS #376)
The step between is minting the panel's sealing key.
idssKeriMintSealingKeywas synchronous, andmain.ts"pre-warmed libsodium" withvoid ready()at module load so the mint would be safe "by the time the panel calls it". The panel calls it the momentloadStewardBundleresolves — the script'sonload— which is before that init finishes.new Signer()throws:Reproduced in plain Node: the same call succeeds after
await ready().runHandoverminted outside its try, so the rejection escaped,phone.phasenever leftidle, and the steward saw the plain locked seat. The unit tests never caught it because vitest's setup initialises libsodium before any test runs.The fix
PageSealingKey.mintWhenReady()awaitsready()itself; the mountedmintSealingKeyverb resolves a promise. The pre-warm stays as a head start only.runHandoverawaits the mint, and everything between "armed" and the request (loading the module, minting) sits inside the try. A module that fails to load or to mint is PU-M0x cause 1 ("your app didn't finish unlocking"), never a silent PU-M0.Tests
no-handoverwith nothing bound at the door; a module that fails to load lands there too. All three fail on main.mintWhenReadymints without the caller awaitingready(); the mount test now expects a promise from the mounted verb.dashboardvitestvue-tsc --noEmit(dashboard + app)appunit suitetests/e2e/fixtures/idip.test.ts, S6i shipped-row-shape) — untouchedAfter this
Needs a
testingrelease (it changes the servedkeri-web.jsand the dashboard). No app release needed. Then the walk again; still proven at the unit seam only, #1936 stays open.🤖 Generated with Claude Code
https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH