panel-unlock: no unlock route on the app door — a reloaded panel has no code to show, so PU-M0q/PU-A4 cannot work #1959
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#1959
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
What to build
A fresh unlock — the reload case, PU-M0q → PU-A4 → unlocked — has a screen, a port and now a wallet card, and no server side at all. The app door mounts exactly five routes:
challenge,code,qr,present,status. Nothing in the Go bridge or control plane is unlock-shaped. So the panel has no code to mint and nothing to poll.This is distinct from a sign-in: ADR 0282 d.3 is explicit that a locked-but-signed-in panel shows an unlock code, not a sign-in code — no credential is presented and no session is minted, which is why PU-A4 is its own card with Unlock as its act.
Build the door's unlock challenge: mint a short-lived unlock challenge carrying the tab's fresh sealing key, serve it as a code the panel can draw, accept the wallet's sealed passcode for that challenge only, and hand the ciphertext to the panel's poll once before deleting it — the same one-shot discipline the sign-in relay already keeps.
Align to the wire matou-app already ruled (its comment on #664, 2026-09-28): a
matou://unlock?…scheme distinct frommatou://signin, carrying the panel site, where to post, the challenge and the tab'sek=. Its agent said explicitly that whoever lands this side aligns to it, or renames it in one line — that call is now this ticket's.Acceptance criteria
matou://unlock?…code.Blocked by
Task manifest
Filed 2026-09-28 after checking the panel-unlock feature against
origin/main: the phone unlock is inert in production. Verified with Ben before filing.🤖 Generated with Claude Code
https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
swarm-claim host=bens-mac-04 run=34810
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Landing the fresh-unlock door route (
internal/idp/appdoor_unlock.go) and the panel's fresh-unlock leg (dashboard/src/lib/api/handoverPortClient.ts). Two calls were mine to make; both are two-way doors, revertible and proven by the seam.1. The wire I landed (aligned to matou-app#664's ADR 0174 ruling). The
matou://unlockscheme is distinct frommatou://signinand carries exactly the four things #664 named — the panel site, where to post, the challenge and the tab'sek=:GET /login/app/unlock/challenge?ek=<tab sealing key>→{challenge_id, expires_at, panel, sealing_key, present_url, deep_link}wheredeep_link = matou://unlock?ek=&panel=&present=&u=.POST /login/app/unlock/presentwith{challenge_id, aid, sealed_passcode}→{status:"answered"}(verifies nothing, mints nothing; stores the ciphertext +aidbound to that one challenge).GET /login/app/unlock/status?u=<challenge_id>→{status, handover?, aid?}; the box + AID are handed over once then the box is deleted.This is now the
unlocksection of the shared goldeninternal/idp/testdata/app-door-golden.json(the file matou-app copies "so neither side guesses the wire"). matou-app confirms against it, or renames in one line in both repos — I cannot push to matou-app from the swarm, so if #664's present/status field names diverge from{challenge_id, aid, sealed_passcode}/{status, handover, aid}, the divergence is surfaced here, not left for the drive leg #1936 to discover.2. The fresh unlock's reference AID. For a sign-in, the tab checks the opened agent against
puaid— the AID the door recorded from the verified presentation. A fresh unlock presents no credential, so there is no verified AID; the door relays the AID the wallet reports on present, and the tab's bundle runs the SAMEunlockFromSealedBoxagent-identity check against it (ADR 0282 d.6, failing closed to PU-M0x cause 2). Tying the check to the tab's own served-session identity (the strongest reading of "the one that just signed in") awaits the served-dashboard auth-identity read that is already owed elsewhere (theoperatorlabel rides the same placeholder). Two-way: the box's present slot can carry a signed proof later without moving a screen (ADR 0282 consequences).Why two-way: both are revertible in a later commit and proven by
internal/idp/appdoor_seam_test.go(6 unlock cases incl. no-session-minted and golden-matches-wire) +dashboard/tests/unit/handoverPortClient.test.ts(15 tests). Not on the one-way-door list.close-report for #1959 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
The wire is not aligned with matou-app#664 — Matou/matou-app#678 reconciles it.
This close report states the unlock wire was "aligned to matou-app#664's ADR 0174 ruling." Two fields differ from what that ruling specified and what the wallet shipped at 05:41:
{challenge_id, aid, sealed_passcode}{challenge_id, sealed_passcode}answeredpostUnlockaccepts onlyverifiedBoth bite on the happy path: the wallet reads its own successful unlock as a refusal, and the panel receives
aid: ""from the poll, soopenSealedPasscode'saids.includes(expectedAid)can never match and every legitimate fresh unlock lands on PU-M0x cause 2 — the tampered-relay screen.Both decisions here look right on their own merits (an unlock verifies nothing, so
answeredis the honest word; relaying the answering AID is what ADR 0282 d.6 needs). The gap is that theunlocksection added tointernal/idp/testdata/app-door-golden.jsonwas never re-vendored into matou-app's copy, which still has nounlockkey — so the artefact that exists "so neither side guesses the wire" had nothing to say, and gate 7'smirrors.tsvpairing is within this repo only and cannot see across the split.No change is owed on this side; #678 moves the wallet to this door and re-vendors the golden. Recorded here so the trail from the close report leads to it. Matou/idss#1936 now blocks on #678.
ek=and the dormant relay come out (ADR 0282 amended 2026-09-29) #1994