panel-unlock: the phone unlock is INERT in production — the shell never wires a handover port, so a steward who approves the unlock line still types their twelve words #1958

Closed
opened 2026-09-28 05:55:18 +00:00 by matou-build-agent · 1 comment

Parent

  • Spec: #1929 — panel unlock · Design: ADR 0282 d.2/d.6
  • Completes: #1934, which built the panel's state machine and port against an injected transport that production never supplies.

What to build

The panel's headline behaviour does not work on main. MembersSurface takes an optional handover port and falls back to inertHandoverPort; the shell's mount registry spreads its members deps into that component and never constructs a handover port at all — a grep for handover across the registry, the deps and boot/ finds nothing. So in production the port is always the inert one, whose signInArmed() returns false and whose requestHandover() returns { kind: 'none' }.

The result: a steward signs in through the app door with the unlock line on, the wallet seals their passcode and the bridge relays it — and the panel never asks for it. It renders PU-M0, locked, and the steward types their twelve words. Everything ADR 0282 promised is in place except the one call that collects it.

The door side already exists (#1933): a panel sign-in code carries ek=, the present route accepts the sealed box, and the status poll hands the ciphertext over once. This ticket wires the panel to it — the shell builds a real handover port over the bridge's existing status poll and passes it down, so the sign-in-armed path completes.

The fresh-unlock path (PU-M0q's code after a reload) needs a door route that does not exist; that is its own ticket, filed beside this one.

Why nothing caught it

The unit tests inject a fake port, so they are honestly green. The twelve-words fallback means a human sees a working panel, just a chattier one. And inertHandoverPort's own docstring says "Production passes a real port down from the shell" — describing an intention that was never built. Note for #1940: gate 6 (binds) would not catch this, because the symbol is bound — to an inert default. A binding that silently does nothing is invisible to it.

Acceptance criteria

  • Given a steward who approved a control-panel sign-in with the unlock line on, when the panel first loads, then it asks the bridge for the armed handover, opens it, checks the agent identity, and Members renders unlocked — with nothing typed.
  • Given that same sign-in, when the handover does not arrive within the window, then PU-M0x cause 1 renders (the existing state) rather than a silent locked panel.
  • Given a sign-in with the unlock line off, when the panel loads, then it does not ask, and PU-M0 renders as today.
  • Given the production shell, when the Members surface is mounted, then it receives a real handover port; inertHandoverPort remains only as a test/default and is not what production runs.
  • Given the bridge's status poll has already handed the ciphertext to another tab, when this tab asks, then it gets nothing and the seat stays locked with the existing copy.
  • Proven at the dashboard's composition seam (the mounted surface receives a real port) and the existing signing-session unit seam.

Blocked by

None — can start immediately. The door side landed in #1933.

Task manifest

task: wire-the-handover-port-in-production
implements_flow: panel-unlock
implements_edge: "A2u -> M1 (approves with the unlock line on)"
wireframe: docs/ux/wireframes/panel-unlock/pu-m1-members-unlocked.html
interface: |
  the shell constructs a HandoverPort over the bridge's existing app-door status poll
  and passes it to the Members surface; inertHandoverPort stays a test default only
seam: dashboard composition test + the existing signing-session unit seam
acceptance:
  - given: a steward who approved with the unlock line on
    when: the panel first loads
    then: Members renders unlocked with nothing typed
  - given: the production shell
    when: the Members surface is mounted
    then: it receives a real handover port, not the inert default
depends_on: []
out_of_scope: [the fresh-unlock door route (its own ticket), the wallet side (landed)]
needs_human_decision: []

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

## Parent - **Spec:** [#1929 — panel unlock](https://git.matou.nz/Matou/idss/issues/1929) · **Design:** ADR 0282 d.2/d.6 - **Completes:** #1934, which built the panel's state machine and port against an injected transport that production never supplies. ## What to build **The panel's headline behaviour does not work on main.** `MembersSurface` takes an optional `handover` port and falls back to `inertHandoverPort`; the shell's mount registry spreads its members deps into that component and **never constructs a handover port at all** — a grep for `handover` across the registry, the deps and `boot/` finds nothing. So in production the port is always the inert one, whose `signInArmed()` returns `false` and whose `requestHandover()` returns `{ kind: 'none' }`. The result: a steward signs in through the app door with the unlock line **on**, the wallet seals their passcode and the bridge relays it — and the panel never asks for it. It renders **PU-M0, locked**, and the steward types their twelve words. Everything ADR 0282 promised is in place except the one call that collects it. The door side already exists (#1933): a panel sign-in code carries `ek=`, the present route accepts the sealed box, and the status poll hands the ciphertext over once. **This ticket wires the panel to it** — the shell builds a real handover port over the bridge's existing status poll and passes it down, so the sign-in-armed path completes. The **fresh-unlock** path (PU-M0q's code after a reload) needs a door route that does not exist; that is its own ticket, filed beside this one. ## Why nothing caught it The unit tests inject a fake port, so they are honestly green. The twelve-words fallback means a human sees a working panel, just a chattier one. And `inertHandoverPort`'s own docstring says *"Production passes a real port down from the shell"* — describing an intention that was never built. Note for #1940: **gate 6 (`binds`) would not catch this**, because the symbol *is* bound — to an inert default. A binding that silently does nothing is invisible to it. ## Acceptance criteria - [ ] **Given** a steward who approved a control-panel sign-in with the unlock line **on**, **when** the panel first loads, **then** it asks the bridge for the armed handover, opens it, checks the agent identity, and Members renders **unlocked** — with nothing typed. - [ ] **Given** that same sign-in, **when** the handover does not arrive within the window, **then** PU-M0x cause 1 renders (the existing state) rather than a silent locked panel. - [ ] **Given** a sign-in with the unlock line **off**, **when** the panel loads, **then** it does not ask, and PU-M0 renders as today. - [ ] **Given** the production shell, **when** the Members surface is mounted, **then** it receives a **real** handover port; `inertHandoverPort` remains only as a test/default and is not what production runs. - [ ] **Given** the bridge's status poll has already handed the ciphertext to another tab, **when** this tab asks, **then** it gets nothing and the seat stays locked with the existing copy. - [ ] Proven at the dashboard's composition seam (the mounted surface receives a real port) and the existing signing-session unit seam. ## Blocked by None — can start immediately. The door side landed in #1933. ## Task manifest ```yaml task: wire-the-handover-port-in-production implements_flow: panel-unlock implements_edge: "A2u -> M1 (approves with the unlock line on)" wireframe: docs/ux/wireframes/panel-unlock/pu-m1-members-unlocked.html interface: | the shell constructs a HandoverPort over the bridge's existing app-door status poll and passes it to the Members surface; inertHandoverPort stays a test default only seam: dashboard composition test + the existing signing-session unit seam acceptance: - given: a steward who approved with the unlock line on when: the panel first loads then: Members renders unlocked with nothing typed - given: the production shell when: the Members surface is mounted then: it receives a real handover port, not the inert default depends_on: [] out_of_scope: [the fresh-unlock door route (its own ticket), the wallet side (landed)] needs_human_decision: [] ``` --- *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.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Author
Member

Closing as a duplicate of #1957, which a swarm agent filed at 05:49 — six minutes before this one and with the same evidence (handoverPort.ts:70, MembersSurface.vue:348, the shell never constructing a port). Theirs additionally traces it to a tail #1934 declared and nobody filed.

The parts of this ticket that were not in #1957 — the gate-6 observation, the user-visible statement of the bug, and two criteria beyond the happy path — are carried over as a comment there. #1959 (the missing unlock route) now depends on #1957 instead of this.

No work is lost; this number is just redundant.

Closing as a **duplicate of #1957**, which a swarm agent filed at 05:49 — six minutes before this one and with the same evidence (`handoverPort.ts:70`, `MembersSurface.vue:348`, the shell never constructing a port). Theirs additionally traces it to a tail #1934 declared and nobody filed. The parts of this ticket that were not in #1957 — the gate-6 observation, the user-visible statement of the bug, and two criteria beyond the happy path — are carried over as a comment there. **#1959** (the missing unlock route) now depends on #1957 instead of this. No work is lost; this number is just redundant.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1958
No description provided.