panel-unlock: an unlock goes through the sign-in door — the code names what it offers, an unlock always asks, the page wears its unlock face; the unlock routes, ek= and the dormant relay come out (ADR 0282 amended 2026-09-29) #1994

Closed
opened 2026-09-29 06:12:17 +00:00 by ben · 2 comments
Owner

Parent

  • Design: ADR 0282, amended 2026-09-29 — a locked panel unlocks through the sign-in door (Ben, after the first live sign-in). This ticket builds the amendment's obligations 1(a)–1(d), the door's and the gate's.
  • Flow: docs/ux/flows/panel-unlock.mermaid · Wireframes: docs/ux/wireframes/panel-unlock/pu-s1-unlock-at-the-door.html (PU-S1, PU-S1x)
  • Untouched: ADR 0289 — what the control panel's door asks for.
  • Siblings: the panel (its own ticket, blocked by this), the wallet (matou-app, blocked by this), the live proof #1936.

Why

The seat unlock has never worked on a live community. On Whakatōhea Demo (2026-09-29, app 0.8.1) the sign-in code read svc=the control panel, cred=administrator and no ek; the wallet offers the unlock line only when it sees ek=, so nothing armed. The later unlock had a relay of its own (/login/app/unlock/*, #1959) that the panel could not reach. Ben ruled one mechanism: the later unlock travels the sign-in door.

What to build

  1. The sign-in code says what it offers, in a field of its own. Three values: nothing (an ordinary service sign-in — the field is absent), a seat unlock is on offer (a control-panel sign-in), this is an unlock (an unlock hop). It rides the challenge descriptor and the matou://signin link. Name the field; pin it in the golden.
  2. An unlock hop always asks. The gate's sign-in start takes an unlock marker from the panel and carries it to the bridge; for that auth request the bridge does not complete from the session (completeFromSession) and renders the door's page. OIDC's own prompt is the natural carrier — the bridge already reads prompt=none. The carrier is yours (ADR 0174). rd is validated same-apex exactly as today.
  3. The page wears its unlock face on an unlock hop (PU-S1, PU-S1x): the unlock heading in place of the welcome line, the still-signed-in line, the way back to the panel (the auth request's return destination), and no twelve-words link. Refusals and records-unreachable keep WS-S1r / S1z / S1u's sentences.
  4. The ask is the control panel's sign-in ask, unchanged — Administrator by cred=, the Membership schemas after it while ADR 0289 d.5's fallback lives. The unlock adds nothing to who may pass.
  5. An armed presentation on an unlock mints the handover capability exactly as an armed sign-in does (#1967) and delivers it the same way. Nothing new on the collect side.
  6. Take out what this replaces, so no second mechanism stays alive in the code: the /login/app/unlock/* routes and the matou://unlock link (appdoor_unlock.go); ek= on the challenge and the link; the dormant first-shape relay (sealed_passcode on present, handover on the status poll).
  7. The golden moves in this ticket (internal/idp/testdata/app-door-golden.json): the offer field, the unlock ask, the unlock section removed. It is a mirrored contract — the close-report names the matou-app ticket.

Acceptance criteria

  • Given a control-panel sign-in, then the code carries the offer field saying a seat unlock is on offer, and no ek.
  • Given an ordinary service sign-in, then the code carries no offer field.
  • Given a browser holding a live bridge session with a presented Administrator, when the panel starts an unlock, then the door's page is rendered in its unlock face and no callback redirect is written.
  • Given the same session, when an ordinary control-panel sign-in is started, then the silent hop behaves as it does today.
  • Given an unlock hop, then the code carries the offer field saying it is an unlock, and the page draws every data-field / data-action PU-S1 draws — unlock-heading, still-signed-in-note, unlock-qr, back-to-panel-link, back-to-panel-locked — and no words-door-link.
  • Given an unlock hop, when the page is read, then the words sign in appear nowhere on its face.
  • Given an armed presentation on an unlock hop, then a handover capability is minted and reaches the panel over the OIDC channel, as at sign-in.
  • Given an unarmed presentation on an unlock hop, then the hop completes as a sign-in and mints no capability.
  • Given the change lands, then /login/app/unlock/challenge, /present and /status answer 404, no code builds a matou://unlock link, and sealed_passcode / the status poll's handover are gone from the code and the golden.
  • Proven at internal/idp's app-door seam and internal/controlapi's sign-in seam. The golden is updated in the same change.

Release order

None to keep. An app that predates the offer field sees no ek today and offers no unlock line; after this lands it still sees none. Nothing regresses in either order.

Blocked by

None — can start immediately.

Task manifest

task: unlock-through-the-sign-in-door
implements_flow: panel-unlock
implements_edge: "M0 -> PU-S1 (asks to unlock with the app), PU-S1 -> PU-S1x, PU-S1 -> M0 (goes back), S1 -> A2u (the code offers a seat unlock)"
wireframe:
  - docs/ux/wireframes/panel-unlock/pu-s1-unlock-at-the-door.html
interface: |
  code: an offer field of its own -> absent | a seat unlock is on offer | this is an unlock
  gate: sign-in start takes an unlock marker and carries it to the bridge
  bridge: an unlock hop never completes from the session; it renders the door's page
  page: the unlock face (PU-S1, PU-S1x)
  REMOVED: /login/app/unlock/*, matou://unlock, ek= on any code, sealed_passcode on present, handover on the status poll
seam: internal/idp/appdoor_seam_test.go + internal/idp/appdoorpage_seam_test.go + internal/controlapi sign-in seam
acceptance:
  - given: a browser holding a live bridge session with a presented Administrator
    when: the panel starts an unlock
    then: the door's page renders in its unlock face and no callback redirect is written
  - given: a control-panel sign-in
    when: its code is read
    then: it carries the offer field and no ek
  - given: the change has landed
    when: the unlock routes are asked
    then: they answer 404 and the golden no longer carries them
depends_on: []
out_of_scope: [the panel's transport and screens (its own ticket), the wallet (matou-app), who the door admits (ADR 0289, unchanged)]
needs_human_decision: []

Filed 2026-09-29 from the first live control-panel sign-in through the app (Whakatōhea Demo, app 0.8.1), which found the seat unlock has never worked on a live community. Every earlier ticket in the arc closed green against a fake of the other side; #1936 is the live proof, and the arc does not close without it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

## Parent - **Design:** ADR 0282, **amended 2026-09-29** — *a locked panel unlocks through the sign-in door* (Ben, after the first live sign-in). This ticket builds the amendment's obligations **1(a)–1(d)**, the door's and the gate's. - **Flow:** `docs/ux/flows/panel-unlock.mermaid` · **Wireframes:** `docs/ux/wireframes/panel-unlock/pu-s1-unlock-at-the-door.html` (PU-S1, PU-S1x) - **Untouched:** ADR 0289 — what the control panel's door asks for. - **Siblings:** the panel (its own ticket, blocked by this), the wallet (matou-app, blocked by this), the live proof #1936. ## Why The seat unlock has never worked on a live community. On Whakatōhea Demo (2026-09-29, app 0.8.1) the sign-in code read `svc=the control panel`, `cred=administrator` and **no `ek`**; the wallet offers the unlock line only when it sees `ek=`, so nothing armed. The later unlock had a relay of its own (`/login/app/unlock/*`, #1959) that the panel could not reach. Ben ruled one mechanism: the later unlock travels the sign-in door. ## What to build 1. **The sign-in code says what it offers, in a field of its own.** Three values: nothing (an ordinary service sign-in — the field is absent), *a seat unlock is on offer* (a control-panel sign-in), *this is an unlock* (an unlock hop). It rides the challenge descriptor and the `matou://signin` link. Name the field; pin it in the golden. 2. **An unlock hop always asks.** The gate's sign-in start takes an unlock marker from the panel and carries it to the bridge; for that auth request the bridge **does not** complete from the session (`completeFromSession`) and renders the door's page. OIDC's own `prompt` is the natural carrier — the bridge already reads `prompt=none`. The carrier is yours (ADR 0174). `rd` is validated same-apex exactly as today. 3. **The page wears its unlock face on an unlock hop** (PU-S1, PU-S1x): the unlock heading in place of the welcome line, the still-signed-in line, the way back to the panel (the auth request's return destination), and **no** twelve-words link. Refusals and records-unreachable keep WS-S1r / S1z / S1u's sentences. 4. **The ask is the control panel's sign-in ask, unchanged** — Administrator by `cred=`, the Membership schemas after it while ADR 0289 d.5's fallback lives. The unlock adds nothing to who may pass. 5. **An armed presentation on an unlock mints the handover capability** exactly as an armed sign-in does (#1967) and delivers it the same way. Nothing new on the collect side. 6. **Take out what this replaces**, so no second mechanism stays alive in the code: the `/login/app/unlock/*` routes and the `matou://unlock` link (`appdoor_unlock.go`); `ek=` on the challenge and the link; the dormant first-shape relay (`sealed_passcode` on present, `handover` on the status poll). 7. **The golden moves in this ticket** (`internal/idp/testdata/app-door-golden.json`): the offer field, the unlock ask, the unlock section removed. It is a mirrored contract — the close-report names the matou-app ticket. ## Acceptance criteria - [ ] **Given** a control-panel sign-in, **then** the code carries the offer field saying a seat unlock is on offer, and **no** `ek`. - [ ] **Given** an ordinary service sign-in, **then** the code carries no offer field. - [ ] **Given** a browser holding a live bridge session with a presented Administrator, **when** the panel starts an **unlock**, **then** the door's page is rendered in its unlock face and **no** callback redirect is written. - [ ] **Given** the same session, **when** an ordinary control-panel sign-in is started, **then** the silent hop behaves as it does today. - [ ] **Given** an unlock hop, **then** the code carries the offer field saying it is an unlock, and the page draws every `data-field` / `data-action` PU-S1 draws — `unlock-heading`, `still-signed-in-note`, `unlock-qr`, `back-to-panel-link`, `back-to-panel-locked` — and **no** `words-door-link`. - [ ] **Given** an unlock hop, **when** the page is read, **then** the words *sign in* appear nowhere on its face. - [ ] **Given** an armed presentation on an unlock hop, **then** a handover capability is minted and reaches the panel over the OIDC channel, as at sign-in. - [ ] **Given** an unarmed presentation on an unlock hop, **then** the hop completes as a sign-in and mints no capability. - [ ] **Given** the change lands, **then** `/login/app/unlock/challenge`, `/present` and `/status` answer 404, no code builds a `matou://unlock` link, and `sealed_passcode` / the status poll's `handover` are gone from the code and the golden. - [ ] Proven at `internal/idp`'s app-door seam and `internal/controlapi`'s sign-in seam. The golden is updated in the same change. ## Release order None to keep. An app that predates the offer field sees no `ek` today and offers no unlock line; after this lands it still sees none. Nothing regresses in either order. ## Blocked by None — can start immediately. ## Task manifest ```yaml task: unlock-through-the-sign-in-door implements_flow: panel-unlock implements_edge: "M0 -> PU-S1 (asks to unlock with the app), PU-S1 -> PU-S1x, PU-S1 -> M0 (goes back), S1 -> A2u (the code offers a seat unlock)" wireframe: - docs/ux/wireframes/panel-unlock/pu-s1-unlock-at-the-door.html interface: | code: an offer field of its own -> absent | a seat unlock is on offer | this is an unlock gate: sign-in start takes an unlock marker and carries it to the bridge bridge: an unlock hop never completes from the session; it renders the door's page page: the unlock face (PU-S1, PU-S1x) REMOVED: /login/app/unlock/*, matou://unlock, ek= on any code, sealed_passcode on present, handover on the status poll seam: internal/idp/appdoor_seam_test.go + internal/idp/appdoorpage_seam_test.go + internal/controlapi sign-in seam acceptance: - given: a browser holding a live bridge session with a presented Administrator when: the panel starts an unlock then: the door's page renders in its unlock face and no callback redirect is written - given: a control-panel sign-in when: its code is read then: it carries the offer field and no ek - given: the change has landed when: the unlock routes are asked then: they answer 404 and the golden no longer carries them depends_on: [] out_of_scope: [the panel's transport and screens (its own ticket), the wallet (matou-app), who the door admits (ADR 0289, unchanged)] needs_human_decision: [] ``` --- *Filed 2026-09-29 from the first live control-panel sign-in through the app (Whakatōhea Demo, app 0.8.1), which found the seat unlock has never worked on a live community. Every earlier ticket in the arc closed green against a fake of the other side; **#1936 is the live proof, and the arc does not close without it.*** 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

swarm-claim host=matou-dev-server-01 run=35595
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=35595 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1994 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1994,
  "status": "success",
  "commits": [
    "71c2edadde030a38a1d77b1ae3246c3ccf0824e7"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/controlapi/oidcprovider.go",
    "internal/controlapi/oidcprovider_test.go",
    "internal/controlapi/signin.go",
    "internal/controlapi/signin_test.go",
    "internal/idp/administrator_door_seam_test.go",
    "internal/idp/appdoor.go",
    "internal/idp/appdoor_seam_test.go",
    "internal/idp/appdoor_unlock.go",
    "internal/idp/appdoorpage.go",
    "internal/idp/appdoorpage_seam_test.go",
    "internal/idp/brand_accent_cascade_seam_test.go",
    "internal/idp/brand_logo_img_seam_test.go",
    "internal/idp/provider.go",
    "internal/idp/requests.go",
    "internal/idp/signin.go",
    "internal/idp/storage.go",
    "internal/idp/testdata/app-door-golden.json"
  ],
  "tests": [
    {
      "command": "go test ./internal/idp/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go test ./... (via the pre-push nix go-ci gate)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a control-panel sign-in, then the code carries the offer field saying a seat unlock is on offer, and no ek": "appdoor.go handleChallenge sets d.Offer=offerSeatUnlock (=\"seat-unlock\") for a panel service and no ek reading remains; proven by TestSeam_AppDoor_ControlPanelOffersSeatUnlock_OrdinaryOffersNothing and TestSeam_AppDoor_PanelGoldenMatchesTheWire (internal/idp/appdoor_seam_test.go)",
    "Given an ordinary service sign-in, then the code carries no offer field": "TestSeam_AppDoor_ControlPanelOffersSeatUnlock_OrdinaryOffersNothing asserts a Files hop's descriptor and deep link carry no offer; TestSeam_AppDoor_AskMatchesTheGoldenWireFixture pins the ordinary ask fields exactly",
    "Given a live bridge session with a presented Administrator, when the panel starts an unlock, then the door's page renders in its unlock face and no callback redirect is written": "signin.go completeFromSession returns false on req.promptLogin(); writeAppDoorPage renders the unlock face; proven by TestSeam_PanelUnlock_AlwaysAsksAndWearsTheUnlockFace (internal/idp/administrator_door_seam_test.go) — 200, no Location, data-face=unlock",
    "Given the same session, when an ordinary control-panel sign-in is started, then the silent hop behaves as today": "same test asserts wantSilent(true) for a no-prompt panel hop (302 to the callback)",
    "Given an unlock hop, then the code carries offer=unlock and the page draws every data-field/data-action PU-S1 draws and no words-door-link": "TestSeam_AppDoor_UnlockHopCodeSaysItIsAnUnlock (offer=unlock, no ek, Administrator ask) + TestSeam_AppDoorPage_UnlockFaceDrawsTheWireframeContract (unlock-heading, still-signed-in-note, unlock-qr, back-to-panel-link, back-to-panel-locked; no words-door-link)",
    "Given an unlock hop, when the page is read, then the words sign in appear nowhere on its face": "TestSeam_AppDoorPage_UnlockFaceNeverSaysSignIn asserts the rendered unlock page contains no \"sign in\" (appdoorpage.go: unlock title/headline, no words link)",
    "Given an armed presentation on an unlock hop, then a handover capability is minted and reaches the panel over the OIDC channel, as at sign-in": "TestSeam_AppDoor_ArmedUnlockHopMintsCapability_UnarmedDoesNot: an armed unlock present mints handover_capability read off userinfo (appdoor.go: Armed && panel service -> randCapability, #1967 collect unchanged)",
    "Given an unarmed presentation on an unlock hop, then the hop completes as a sign-in and mints no capability": "same test: unarmed unlock present is verified and userinfo carries no handover_capability",
    "Given the change lands, then the unlock routes answer 404, no matou://unlock link, and sealed_passcode/handover are gone from code and golden": "appdoor_unlock.go deleted, registerUnlock removed; TestSeam_AppDoor_RetiredUnlockRoutesAnswer404 (challenge/present/status 404); appPresentRequest/appStatus no longer carry SealedPasscode/Handover; golden rewritten (unlock section, sealing_key, ek, sealed_passcode removed) and pinned by TestSeam_AppDoor_PanelGoldenMatchesTheWire",
    "Proven at internal/idp app-door seam and internal/controlapi sign-in seam; golden updated in the same change": "internal/idp/appdoor_seam_test.go + appdoorpage_seam_test.go + administrator_door_seam_test.go; internal/controlapi TestAuthzSignin_UnlockMarkerCarriesPromptLogin + TestBridgeOIDC_ResolvesRootDiscovery (prompt=login on the authorize URL); golden internal/idp/testdata/app-door-golden.json changed in this commit"
  },
  "cross_repo": [
    {
      "trigger": "internal/idp/testdata/app-door-golden.json",
      "issue": "Matou/matou-app#688"
    }
  ],
  "summary": "The later unlock travels the sign-in door: the code names what it offers (offer field), an unlock hop (prompt=login) always asks and wears the unlock face, ek/unlock-routes/dormant relay retired, golden moved.",
  "reason": "",
  "blockers": []
}
**close-report** for #1994 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1994, "status": "success", "commits": [ "71c2edadde030a38a1d77b1ae3246c3ccf0824e7" ], "changed_files": [ "STATUS.md", "internal/controlapi/oidcprovider.go", "internal/controlapi/oidcprovider_test.go", "internal/controlapi/signin.go", "internal/controlapi/signin_test.go", "internal/idp/administrator_door_seam_test.go", "internal/idp/appdoor.go", "internal/idp/appdoor_seam_test.go", "internal/idp/appdoor_unlock.go", "internal/idp/appdoorpage.go", "internal/idp/appdoorpage_seam_test.go", "internal/idp/brand_accent_cascade_seam_test.go", "internal/idp/brand_logo_img_seam_test.go", "internal/idp/provider.go", "internal/idp/requests.go", "internal/idp/signin.go", "internal/idp/storage.go", "internal/idp/testdata/app-door-golden.json" ], "tests": [ { "command": "go test ./internal/idp/ ./internal/controlapi/", "exit_code": 0 }, { "command": "go test ./... (via the pre-push nix go-ci gate)", "exit_code": 0 } ], "criteria": { "Given a control-panel sign-in, then the code carries the offer field saying a seat unlock is on offer, and no ek": "appdoor.go handleChallenge sets d.Offer=offerSeatUnlock (=\"seat-unlock\") for a panel service and no ek reading remains; proven by TestSeam_AppDoor_ControlPanelOffersSeatUnlock_OrdinaryOffersNothing and TestSeam_AppDoor_PanelGoldenMatchesTheWire (internal/idp/appdoor_seam_test.go)", "Given an ordinary service sign-in, then the code carries no offer field": "TestSeam_AppDoor_ControlPanelOffersSeatUnlock_OrdinaryOffersNothing asserts a Files hop's descriptor and deep link carry no offer; TestSeam_AppDoor_AskMatchesTheGoldenWireFixture pins the ordinary ask fields exactly", "Given a live bridge session with a presented Administrator, when the panel starts an unlock, then the door's page renders in its unlock face and no callback redirect is written": "signin.go completeFromSession returns false on req.promptLogin(); writeAppDoorPage renders the unlock face; proven by TestSeam_PanelUnlock_AlwaysAsksAndWearsTheUnlockFace (internal/idp/administrator_door_seam_test.go) — 200, no Location, data-face=unlock", "Given the same session, when an ordinary control-panel sign-in is started, then the silent hop behaves as today": "same test asserts wantSilent(true) for a no-prompt panel hop (302 to the callback)", "Given an unlock hop, then the code carries offer=unlock and the page draws every data-field/data-action PU-S1 draws and no words-door-link": "TestSeam_AppDoor_UnlockHopCodeSaysItIsAnUnlock (offer=unlock, no ek, Administrator ask) + TestSeam_AppDoorPage_UnlockFaceDrawsTheWireframeContract (unlock-heading, still-signed-in-note, unlock-qr, back-to-panel-link, back-to-panel-locked; no words-door-link)", "Given an unlock hop, when the page is read, then the words sign in appear nowhere on its face": "TestSeam_AppDoorPage_UnlockFaceNeverSaysSignIn asserts the rendered unlock page contains no \"sign in\" (appdoorpage.go: unlock title/headline, no words link)", "Given an armed presentation on an unlock hop, then a handover capability is minted and reaches the panel over the OIDC channel, as at sign-in": "TestSeam_AppDoor_ArmedUnlockHopMintsCapability_UnarmedDoesNot: an armed unlock present mints handover_capability read off userinfo (appdoor.go: Armed && panel service -> randCapability, #1967 collect unchanged)", "Given an unarmed presentation on an unlock hop, then the hop completes as a sign-in and mints no capability": "same test: unarmed unlock present is verified and userinfo carries no handover_capability", "Given the change lands, then the unlock routes answer 404, no matou://unlock link, and sealed_passcode/handover are gone from code and golden": "appdoor_unlock.go deleted, registerUnlock removed; TestSeam_AppDoor_RetiredUnlockRoutesAnswer404 (challenge/present/status 404); appPresentRequest/appStatus no longer carry SealedPasscode/Handover; golden rewritten (unlock section, sealing_key, ek, sealed_passcode removed) and pinned by TestSeam_AppDoor_PanelGoldenMatchesTheWire", "Proven at internal/idp app-door seam and internal/controlapi sign-in seam; golden updated in the same change": "internal/idp/appdoor_seam_test.go + appdoorpage_seam_test.go + administrator_door_seam_test.go; internal/controlapi TestAuthzSignin_UnlockMarkerCarriesPromptLogin + TestBridgeOIDC_ResolvesRootDiscovery (prompt=login on the authorize URL); golden internal/idp/testdata/app-door-golden.json changed in this commit" }, "cross_repo": [ { "trigger": "internal/idp/testdata/app-door-golden.json", "issue": "Matou/matou-app#688" } ], "summary": "The later unlock travels the sign-in door: the code names what it offers (offer field), an unlock hop (prompt=login) always asks and wears the unlock face, ek/unlock-routes/dormant relay retired, golden moved.", "reason": "", "blockers": [] } ``` </details>
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#1994
No description provided.