panel-unlock 5/7 — the panel unlocks the steward seat from the phone (#1929) #1934
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
Depends on
Reference
Matou/idss#1934
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
docs/ux/flows/panel-unlock.mermaidWhat to build
The steward stops typing. The panel tab mints its own sealing keypair, takes the
passcode its steward's phone sealed to it, and becomes a signify client of that
steward's agent — the admin inbox, the ledger, every steward act, with nothing
typed.
At sign-in (the common case). A steward who approved with the unlock line on
lands on an unlocked Members tab. The panel mints its keypair on first load,
asks the door to complete the handover for the sign-in it just finished, opens
the box, connects, and checks the agent's identity is the one that just signed
in. While it waits it shows PU-M0q without the code region — that screen's
waiting line, no countdown, the words door still in reach.
Later (reload, tab close, Lock, line switched off). PU-M0's phone door —
"Unlock steward actions: approve on your phone" — shows the unlock code
(PU-M0q): a fresh keypair every time, because the old one died with the page;
its fingerprint printed so a careful steward can compare it with the wallet
card's. The copy never mentions signing in — it says you already are.
Both failure states, drawn and honest (PU-M0x).
in, seat locked, nothing was shared. Never fail the sign-in over the unlock.
found a different identity. It discards the passcode and stays locked. This
is the one defence against a tampered relay, so it fails closed: no
"continue anyway", no automatic retry.
A steward act attempted on a locked seat raises the phone unlock, with the
words as a link beside it — never the words dialog as the first ask. Not now or
an expired code returns to PU-M0, still locked, with no error framing. Memory
only, always: reload, tab close, Lock, sign-out or the 12 h session end drops it,
and no browser storage ever holds it.
Acceptance criteria
Blocked by
Task manifest
Ticketed by
/to-ticketsfrom spec #1929; granularity, blocking edges and cross-repo filing confirmed with Ben 2026-09-27.🤖 Generated with Claude Code
https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
swarm-claim host=bens-mac-04 run=34384
(automated multi-host claim — lowest live claim id works this ticket)
Interface note — the tab's half of the handover (settled, was unspecified).
This ticket mints the sealing keypair and opens the box, so it owns the
Decrypterside of the contract below. matou-app#663 carries the same note for the sealing side; #1933 built the relay and is format-agnostic.What
ek=carries and whatsealed_passcodeis on the wireVerified against the installed
signify-ts@0.3.0-rc2(the version both repos pin — matou-appfrontend/package.json, idssapp/package.json), so the cipher codes cannot drift between the two sides.crypto_box_sealis NOT exported by signify-ts. It is called insideEncrypter._x25519(dist/keri/core/encrypter.js:47); libsodium is never re-exported.But
Encrypter,DecrypterandCipherare exported from the package entry (dist/exports.jsre-exportskeri/core/{encrypter,decrypter,cipher}.js). And signify's ownControlleralready performs exactly this handover as its standard operation:So ADR 0282 d.6's sealed box is a first-class signify operation. Neither side needs to import libsodium.
The settled shape
Encrypteraccepts either a raw X25519 public key or an Ed25519 verkey it converts itself (crypto_sign_ed25519_pk_to_curve25519);Decrypteraccepts a raw X25519 private key or an Ed25519 seed (crypto_sign_ed25519_sk_to_curve25519). So:Signerin tab memory;ek=carries its verkey qb64new Encrypter({}, verkeyQb64b).encrypt(b('0A' + 'A' + bran.substring(0,21)))→ theCipher'sqb64issealed_passcodenew Decrypter({}, seedQb64b).decrypt(cipherQb64)→ aSalter→ recover the branek=is therefore an ordinary CESR qb64 verkey, not raw X25519 bytes, andsealed_passcodeis a CESR qb64X25519_Cipher_Salt(1AAH, 100 chars b64). The bridge is unaffected: it stores and relays both as opaque strings with no format validation (appdoor.go—SealingKey/SealedPasscode/Handover).Four constraints to build against
encrypt()only takes CESR salt or seed material. It branches on the code —Salt_128→X25519_Cipher_Salt, anything else →X25519_Cipher_Seed— so an arbitrary string will not go through. The passcode must ride in the0Asalt shape, which is what the Controller does anyway.decrypt()returns aSalteror aSigner, chosen by the cipher code, and throws on any other code. The round trip is typed, not bytes-in-bytes-out.await ready()before constructing either (it is justawait _sodium.ready, but libsodium must be initialised first).'0A' + 'A' + bran, while idss'sapp/src/lib/keri/derivation.tsrecovers a bran withnew Salter({raw}).qb64.substring(2, 23). Both are 21 bran chars either side of one pad, but one prepends and the other trims — get it wrong and a subtly different secret is sealed. A golden round-trip shared by both repos is the cheap guard, andderivation.tsalready importsSalter, so half of it exists.If you go raw libsodium instead:
libsodium-wrappers-sumosits atfrontend/node_modules/top level in matou-app but is not declared infrontend/package.json— a direct import works today only because the transitive dep is hoisted, and a stricter install breaks it. Declare it, or useEncrypter/Decrypterand add nothing.For this ticket specifically: the keypair to mint is an Ed25519
Signer(not a raw X25519 pair), the seed stays in tab memory and is never stored, and a fresh one is minted per page — a reload mints again (ADR 0282 d.3). The agent-identity check of d.6 is unchanged and still runs afterDecrypteryields the bran: connect, compare the agent's AID against the identity that just signed in, and on a mismatch discard and stay locked (PU-M0x cause 2).🤖 Generated with Claude Code
https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
close-report for #1934 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Closed with the two handover verbs unimplemented — now owed by #1938.
Recording this so the history is not misleading, and because the close-report's "backed at the dashboard seam" is accurate but easy to read as end-to-end.
mintSealingKey()andunlockFromSealedBox()were declared on the steward bundle's interface here and driven from the tests through fakes, but nothing implements them: the only references on main aredashboard/src/lib/idip.ts,dashboard/src/lib/signingSession.tsand three test files, andapp/src/keriweb/main.tsstill mounts only approve / issue / revoke / unlock(phrase) / lock / isUnlocked / ledgerMembers. So the panel's phone unlock is unit-green and would find both verbs undefined in a real browser.Not this run's fault. The ticket's manifest named the dashboard's injected bundle loader as its seam, and tests at that seam cannot prove the bundle itself — the same split that gave the ledger read its own ticket (#1930, which did land bundle code) was not made for the sealing verbs. That is a ticketing gap in #1929's breakdown.
Everything this ticket did ship stands: the state machine,
PhoneUnlockScreen, PU-M0q, both PU-M0x causes, PU-M0's phone door, the fresh-key-per-page property and the fail-closed mismatch path. #1938 fills in the crypto behind them, in the signifyEncrypter/Decryptershape settled in the note above (ek=carries an Ed25519 verkey, not raw X25519 bytes), and now blocks #1936 so the live drive leg cannot run before it exists.🤖 Generated with Claude Code
https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY