panel-unlock 7/7 — drive leg: steward-panel-unlock on a live community (#1929) #1936

Closed
opened 2026-09-27 19:09:50 +00:00 by matou-build-agent · 4 comments

Parent

  • Spec: #1929 — panel unlock (story 41)
  • Symptom ticket: #1886 · Wayfinder map: #1293
  • Design: ADR 0282, ADR 0282 Engineering §Drive · flow docs/ux/flows/panel-unlock.mermaid

What to build

One new leg in the IDIP journey drive, named steward-panel-unlock (ADR
0282's Engineering section), proving on a real community the thing the
whakatōhea demo could not do:

  1. A steward signs in to the control panel through the app door with the unlock
    line on, and lands on Members unlocked, with nothing typed.
  2. A member approved in the app appears in that list — #1886's symptom,
    proven dead.
  3. A reload locks the seat; the app unlocks it again through the sign-in door — PU-M0 → PU-S1 → PU-A4 → Members unlocked. ✎ Amended 2026-09-29 (ADR 0282's amendment): PU-M0q and the matou://unlock code are retired.
  4. Sign out of the control panel everywhere from the wallet returns the tab
    to sign-in.

This is live-door work — a real gateway, a real agent, a real app — so it is
ready-for-session, not a swarm ticket (the same standing #1531 had).

Acceptance criteria

  • Given a live community with the app ready, when a steward signs in to the panel with the unlock line on, then Members renders unlocked and no words are typed anywhere in the leg's happy path.
  • Given a member registered and approved in the app, when the panel's Members list is read in the leg, then that member is present with their credential and issuer.
  • Given the unlocked panel, when the page is reloaded, then Members is locked; when the steward unlocks with the app, then the browser is on the sign-in site's page in its unlock face (PU-S1), the app's card is PU-A4, and Members returns unlocked with nothing typed. ✎
  • Given the leg's requests, then every /login/app/* request the panel makes goes to the sign-in site's host, and none to the panel's own. ✎ This is the defect the first live sign-in found; the leg asserts it, since no unit seam can.
  • Given the unlocked panel, when Sign out of the control panel everywhere is used from the wallet, then the tab returns to sign-in on its next request.
  • The leg asserts the absence of a words prompt on the happy path — a silently-typed fallback would hide the whole feature failing.
  • The leg runs inside the existing IDIP journey rail and reports like its siblings.

Blocked by

  • 3/7, 5/7, 6/7 (the panel behaviour it drives).
  • ✎ #1994 (the door and gate), #1995 (the panel), Matou/matou-app#688 (the wallet) — ADR 0282's 2026-09-29 amendment. The first live sign-in (Whakatōhea Demo, app 0.8.1) found the unlock has never worked live; these three are what makes it work.
  • The matou-app tickets (the wallet's unlock line, unlock-only card and sign-out row) — the leg drives a real app.

Task manifest

task: drive-leg-steward-panel-unlock
implements_flow: panel-unlock
implements_edge: the whole flow, end to end
wireframe: docs/ux/wireframes/panel-unlock/   # all frames, as observed
interface: "journey leg: steward-panel-unlock (IDIP journey rail)"
seam: app/tests/e2e/journey.idip.spec.ts
acceptance:
  - given: a live community with the app ready
    when: a steward signs in with the unlock line on
    then: Members renders unlocked with nothing typed
  - given: a member approved in the app
    when: the panel's Members list is read
    then: that member is present
  - given: the unlocked panel
    when: sign-out-everywhere is used from the wallet
    then: the tab returns to sign-in
depends_on: [admin-inbox-from-the-agent, seat-unlocks-from-the-phone, sign-out-of-the-panel-everywhere, matou-app:unlock-line, matou-app:unlock-only-card, matou-app:signout-everywhere-row]
out_of_scope: [unit-level proof of anything already covered by 1/7-6/7]
needs_human_decision: []

Ticketed by /to-tickets from 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

## Parent - **Spec:** [#1929 — panel unlock](https://git.matou.nz/Matou/idss/issues/1929) (story 41) - **Symptom ticket:** #1886 · **Wayfinder map:** #1293 - **Design:** ADR 0282, ADR 0282 Engineering §Drive · flow `docs/ux/flows/panel-unlock.mermaid` ## What to build One new leg in the IDIP journey drive, named **`steward-panel-unlock`** (ADR 0282's Engineering section), proving on a real community the thing the whakatōhea demo could not do: 1. A steward signs in to the control panel through the app door with the unlock line on, and lands on Members **unlocked, with nothing typed**. 2. **A member approved in the app appears in that list** — #1886's symptom, proven dead. 3. A **reload** locks the seat; the app unlocks it again **through the sign-in door** — PU-M0 → PU-S1 → PU-A4 → Members unlocked. ✎ *Amended 2026-09-29 (ADR 0282's amendment): PU-M0q and the `matou://unlock` code are retired.* 4. **Sign out of the control panel everywhere** from the wallet returns the tab to sign-in. This is live-door work — a real gateway, a real agent, a real app — so it is `ready-for-session`, not a swarm ticket (the same standing #1531 had). ## Acceptance criteria - [ ] **Given** a live community with the app ready, **when** a steward signs in to the panel with the unlock line on, **then** Members renders unlocked and no words are typed anywhere in the leg's happy path. - [ ] **Given** a member registered and approved **in the app**, **when** the panel's Members list is read in the leg, **then** that member is present with their credential and issuer. - [ ] **Given** the unlocked panel, **when** the page is reloaded, **then** Members is locked; **when** the steward unlocks with the app, **then** the browser is on the sign-in site's page in its unlock face (PU-S1), the app's card is PU-A4, and Members returns unlocked with nothing typed. ✎ - [ ] **Given** the leg's requests, **then** every `/login/app/*` request the panel makes goes to the sign-in site's host, and none to the panel's own. ✎ *This is the defect the first live sign-in found; the leg asserts it, since no unit seam can.* - [ ] **Given** the unlocked panel, **when** *Sign out of the control panel everywhere* is used from the wallet, **then** the tab returns to sign-in on its next request. - [ ] The leg asserts the **absence** of a words prompt on the happy path — a silently-typed fallback would hide the whole feature failing. - [ ] The leg runs inside the existing IDIP journey rail and reports like its siblings. ## Blocked by - 3/7, 5/7, 6/7 (the panel behaviour it drives). - ✎ **#1994** (the door and gate), **#1995** (the panel), **Matou/matou-app#688** (the wallet) — ADR 0282's 2026-09-29 amendment. The first live sign-in (Whakatōhea Demo, app 0.8.1) found the unlock has never worked live; these three are what makes it work. - The matou-app tickets (the wallet's unlock line, unlock-only card and sign-out row) — the leg drives a real app. ## Task manifest ```yaml task: drive-leg-steward-panel-unlock implements_flow: panel-unlock implements_edge: the whole flow, end to end wireframe: docs/ux/wireframes/panel-unlock/ # all frames, as observed interface: "journey leg: steward-panel-unlock (IDIP journey rail)" seam: app/tests/e2e/journey.idip.spec.ts acceptance: - given: a live community with the app ready when: a steward signs in with the unlock line on then: Members renders unlocked with nothing typed - given: a member approved in the app when: the panel's Members list is read then: that member is present - given: the unlocked panel when: sign-out-everywhere is used from the wallet then: the tab returns to sign-in depends_on: [admin-inbox-from-the-agent, seat-unlocks-from-the-phone, sign-out-of-the-panel-everywhere, matou-app:unlock-line, matou-app:unlock-only-card, matou-app:signout-everywhere-row] out_of_scope: [unit-level proof of anything already covered by 1/7-6/7] needs_human_decision: [] ``` --- *Ticketed by `/to-tickets` from spec [#1929](https://git.matou.nz/Matou/idss/issues/1929); granularity, blocking edges and cross-repo filing confirmed with Ben 2026-09-27.* 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Author
Member

Blocking analysis — routed ready-for-human (ADR 0174)

Attempted this session on matou-workstation's standing checkout. This is the
live-drive leg for panel unlock — every acceptance criterion is "Given a live
community…"
, so it has no offline-green milestone of its own; its whole proof is a
real founding drive. I did not author it, because it is blocked on an unlanded
idss code prerequisite, and its terminal proof is operator spend.

What is ready

  • Panel/dashboard side (this repo): #1932, #1934, #1935, #1938 all closed —
    the admin inbox, the phone-unlock state machine, sign-out-everywhere's panel
    epoch, and the bundle sealing crypto.
  • matou-app wallet side: #663 / #664 / #665 (the approve-card unlock line, the
    unlock-only card, the sign-out-everywhere row) are all closed — the
    cross-repo half named in this ticket's "Blocked by" is landed.
  • The bridge app-door relay: #1933 / #1939 closed.

What blocks it (the real gap)

The control-panel shell never wires a real HandoverPort, so the phone-unlock
handover never completes in production.
#1934 shipped the transport inert by
default with an explicit tail — "the phone door simply never completes until the
shell wires a real port"
— and that tail was never filed. Evidence in the
current tree:

  • dashboard/src/components/members/MembersSurface.vue:348 —
    useSigningSession(props.steward, props.handover ?? inertHandoverPort); the
    handover? prop (line 298) is optional.
  • dashboard/src/lib/mountRegistry.ts:367 mounts MembersSurface with
    props: { ...deps.members }; neither DashboardDeps.members nor
    productionDashboardDeps constructs or threads a handover field, and no
    concrete HandoverPort other than inertHandoverPort
    (dashboard/src/lib/handoverPort.ts:70) is constructed anywhere.

Because the panel tab uses inertHandoverPort, the leg's happy path (sign in with
the unlock line on → Members unlocked with nothing typed; reload → phone unlock
from PU-M0q) cannot pass on any live drive today. Authoring the leg now would
be building on an unlanded upstream (it would red on the first live drive
regardless of the operator spend).

Filed the missing tail as #1957 (idss, two-way, session/swarm-doable — a real
HandoverPort + its wiring + a unit seam) and set it as a native depends_on
blocker of this ticket.

A second sub-task, in scope for this ticket once #1957 lands

The drive uses the headless wallet stand-in (openHeadlessWallet,
app/tests/e2e/fixtures/headlessWallet.ts), which today has no sealing /
relay / sign-out-everywhere support — only approveSignIn + recordSpaces. The
leg's first sub-task (after #1957) is to extend it to: mint/read the tab's ek=,
seal the passcode to the tab verkey (signify Encrypter, matching #1938's
sealedPasscode.ts round-trip golden), relay it through the app door, and sign a
POST /authz/panel/signout-everywhere act. This is offline-unit-testable and does
not depend on operator spend.

Why human

  1. Blocked on #1957 — the leg cannot be authored offline-green until the shell
    wires a real handover port; until then the panel never completes the phone
    handover. A human should sequence #1957 (→ its close) before this leg.
  2. Operator spend / executor frontier — this leg's acceptance is entirely
    live proof on a real founded community (a two-box founding drive). Per the
    standing precedent for live-drive legs (#1531, wallet sign-in), the live green
    is the rehearsal-executor's queue-armed job, not a one-shot session's, and is
    routed to a human to arm.

Nothing was committed. No code change this session — only #1957 filed and the
native dependency set.

Ruled by agent under ADR 0174 — veto anytime. Two-way work extracted and filed
(#1957); the leg itself is left for a human to sequence and arm.

## Blocking analysis — routed `ready-for-human` (ADR 0174) Attempted this session on matou-workstation's standing checkout. This is the **live-drive leg** for panel unlock — every acceptance criterion is *"Given a live community…"*, so it has no offline-green milestone of its own; its whole proof is a real founding drive. I did not author it, because it is blocked on an unlanded idss code prerequisite, and its terminal proof is operator spend. ### What is ready - **Panel/dashboard side (this repo):** #1932, #1934, #1935, #1938 all closed — the admin inbox, the phone-unlock state machine, sign-out-everywhere's panel epoch, and the bundle sealing crypto. - **matou-app wallet side:** #663 / #664 / #665 (the approve-card unlock line, the unlock-only card, the sign-out-everywhere row) are all **closed** — the cross-repo half named in this ticket's "Blocked by" is landed. - **The bridge app-door relay:** #1933 / #1939 closed. ### What blocks it (the real gap) **The control-panel shell never wires a real `HandoverPort`, so the phone-unlock handover never completes in production.** #1934 shipped the transport inert by default with an explicit tail — *"the phone door simply never completes until the shell wires a real port"* — and that tail was **never filed**. Evidence in the current tree: - `dashboard/src/components/members/MembersSurface.vue:348` — `useSigningSession(props.steward, props.handover ?? inertHandoverPort)`; the `handover?` prop (line 298) is optional. - `dashboard/src/lib/mountRegistry.ts:367` mounts `MembersSurface` with `props: { ...deps.members }`; neither `DashboardDeps.members` nor `productionDashboardDeps` constructs or threads a `handover` field, and no concrete `HandoverPort` other than `inertHandoverPort` (`dashboard/src/lib/handoverPort.ts:70`) is constructed anywhere. Because the panel tab uses `inertHandoverPort`, the leg's happy path (sign in with the unlock line on → Members unlocked with nothing typed; reload → phone unlock from PU-M0q) cannot pass on **any** live drive today. Authoring the leg now would be building on an unlanded upstream (it would red on the first live drive regardless of the operator spend). Filed the missing tail as **#1957** (idss, two-way, session/swarm-doable — a real `HandoverPort` + its wiring + a unit seam) and set it as a native `depends_on` blocker of this ticket. ### A second sub-task, in scope for this ticket once #1957 lands The drive uses the **headless wallet** stand-in (`openHeadlessWallet`, `app/tests/e2e/fixtures/headlessWallet.ts`), which today has **no** sealing / relay / sign-out-everywhere support — only `approveSignIn` + `recordSpaces`. The leg's first sub-task (after #1957) is to extend it to: mint/read the tab's `ek=`, seal the passcode to the tab verkey (signify `Encrypter`, matching #1938's `sealedPasscode.ts` round-trip golden), relay it through the app door, and sign a `POST /authz/panel/signout-everywhere` act. This is offline-unit-testable and does not depend on operator spend. ## Why human 1. **Blocked on #1957** — the leg cannot be authored offline-green until the shell wires a real handover port; until then the panel never completes the phone handover. A human should sequence #1957 (→ its close) before this leg. 2. **Operator spend / executor frontier** — this leg's acceptance is *entirely* live proof on a real founded community (a two-box founding drive). Per the standing precedent for live-drive legs (#1531, wallet sign-in), the live green is the rehearsal-executor's queue-armed job, not a one-shot session's, and is routed to a human to arm. Nothing was committed. No code change this session — only #1957 filed and the native dependency set. *Ruled by agent under ADR 0174 — veto anytime. Two-way work extracted and filed (#1957); the leg itself is left for a human to sequence and arm.*
Owner

The leg this ticket proves changed on 2026-09-29, and the body is amended (✎).

Ben signed in to Whakatōhea Demo's control panel through the app (0.8.1). The door asked for Administrator and opened; Members stayed locked and the unlock button did nothing. The seat unlock has never worked on a live community:

  1. the wallet offers the unlock line only when the code carries ek=, which no code carries;
  2. the panel asks its own host (admin.<apex>) for the door's routes;
  3. the door's unlock reads carry no CORS grant.

Every ticket this one was blocked by closed green against a fake of the other side. That is the case for this leg, not against it — it is the only seam where the app, the door and the panel are all real.

Ben ruled (ADR 0282, amended the same day, on main at 3458e03f): a locked panel unlocks through the sign-in door. PU-M0q and the unlock-only card retire. Step 3 of this leg now drives PU-M0 → PU-S1 → PU-A4.

Now blocked by #1994 (the door and gate), #1995 (the panel) and Matou/matou-app#688 (the wallet). The arc does not close until this leg is green on a live community.

**The leg this ticket proves changed on 2026-09-29, and the body is amended (✎).** Ben signed in to Whakatōhea Demo's control panel through the app (0.8.1). The door asked for Administrator and opened; Members stayed locked and the unlock button did nothing. The seat unlock has never worked on a live community: 1. the wallet offers the unlock line only when the code carries `ek=`, which no code carries; 2. the panel asks its own host (`admin.<apex>`) for the door's routes; 3. the door's unlock reads carry no CORS grant. Every ticket this one was blocked by closed green against a fake of the other side. **That is the case for this leg, not against it** — it is the only seam where the app, the door and the panel are all real. Ben ruled (ADR 0282, amended the same day, on main at `3458e03f`): a locked panel unlocks **through the sign-in door**. PU-M0q and the unlock-only card retire. Step 3 of this leg now drives PU-M0 → PU-S1 → PU-A4. Now blocked by **#1994** (the door and gate), **#1995** (the panel) and **Matou/matou-app#688** (the wallet). The arc does not close until this leg is green on a live community.
Owner

First live walk with app 0.8.3 (Ben, 2026-09-30 00:30–00:48Z): the unlock line APPEARED (the wallet's half works) but Members landed locked and the unlock hop ended on an expired page. Three faults, read from the demo's access log: the panel's unlock link was relative (GOTCHAS #372), two landings raced on the single-use capability (GOTCHAS #373), and the wallet waits only ~10 s for the panel's key. Fixes: idss #2008 (panel + branded expired page), matou-app #696 (wallet waits the challenge's life). Both must ship — a testing release and an app release — before this walk is repeated.

First live walk with app 0.8.3 (Ben, 2026-09-30 00:30–00:48Z): the unlock line APPEARED (the wallet's half works) but Members landed locked and the unlock hop ended on an expired page. Three faults, read from the demo's access log: the panel's unlock link was relative (GOTCHAS #372), two landings raced on the single-use capability (GOTCHAS #373), and the wallet waits only ~10 s for the panel's key. Fixes: idss #2008 (panel + branded expired page), matou-app #696 (wallet waits the challenge's life). Both must ship — a `testing` release and an app release — before this walk is repeated.
Owner

Live proof on the Whakatōhea Demo, 2026-10-09 (release 2026.10.3201 9a9a378f, the first release the demo could apply after #2043): Ben signed in to the control panel through the sign-in door with the unlock line on and confirmed in session: "panel unlock on sign in worked". The same-device door on that page is now the band's full-width button (74ba6d59, DDR 0246 amended 2026-10-07) and Ben saw it drawn. Closed on Ben's word. Not built: the automated steward-panel-unlock leg in the IDIP journey drive that this ticket's "What to build" asked for — the proof here is a hand walk, so a regression would only be caught by hand until that leg exists.

Live proof on the Whakatōhea Demo, 2026-10-09 (release 2026.10.3201 `9a9a378f`, the first release the demo could apply after #2043): Ben signed in to the control panel through the sign-in door with the unlock line on and confirmed in session: "panel unlock on sign in worked". The same-device door on that page is now the band's full-width button (74ba6d59, DDR 0246 amended 2026-10-07) and Ben saw it drawn. Closed on Ben's word. Not built: the automated `steward-panel-unlock` leg in the IDIP journey drive that this ticket's "What to build" asked for — the proof here is a hand walk, so a regression would only be caught by hand until that leg exists.
ben 2026-10-09 18:32:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1936
No description provided.