spec: panel unlock — the steward seat unlocks at control-panel sign-in, and Members lists the community ledger (#1886) #1929

Closed
opened 2026-09-27 18:48:47 +00:00 by matou-build-agent · 2 comments

Parent

  • Wayfinder map: The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired (#1293) — this child spec settles the map's open item "Steward acts on the wallet, in detail (ruling 9)": signing-unlock semantics on a device vs DDR 0217 ruling 9's once-per-dashboard-session, what the roster projection keeps, and the dashboard's Members list reading the unlocked steward's agent.
  • Source ticket: #1886 (the symptom: a member approved in the app never appears on Members).
  • Design: ADR 0282 (the seat unlocks at control-panel sign-in), DDR 0284 (the App-only switch removed; the take-back copy corrected), ADR 0235 d.2/d.3/d.4/d.6 (the per-steward admin inbox, the retired roster wire, the one community ledger, no gateway member list), ADR 0236 (the bridge verifies in Go; an unreachable ledger fails closed), DDR 0217 ruling 9 (the typed unlock, now the fallback), DDR 0246 d.3 (the approve card).
  • Flow: docs/ux/flows/panel-unlock.mermaid. Wireframes: docs/ux/wireframes/panel-unlock/ (PU-A2u, PU-A4, PU-M0, PU-M0q, PU-M0x, PU-M1, PU-M1e, PU-M1u, PU-W5/W5d), plus the amended p6-members-idip/p6-s1i-members.html (idip-roster → ledger-members), p6-members-idip/p6-s11i-unlock-signing.html (re-roled to the fallback) and wallet-signin/ws-a2-approve-card.html (the unlock line).
  • Vocabulary: CONTEXT.md Seat unlock, Admin inbox, Sign out of the control panel everywhere, the Panel unlock (PU) screen list, Community ledger, Register. App-only is a removed term — never reintroduce it.

Problem Statement

A steward approves a member in their community app. The member's Membership
credential is issued from the community registry, the member can sign in, use
Files, appear in Grist — and they are invisible in the control panel. The
Members tab shows only what the legacy roster file was told, and only three
paths ever tell it: the browser join, the panel's own approve, and the founder's
register. The app tells it nothing, by design (ADR 0235 d.3 retired the roster
wire). So a steward who works in the app and a steward who works in the panel
see two different communities, and the panel's is wrong.

Worse, the panel cannot simply be pointed at the truth. The community's records
— the one registry every Membership and Committee credential is issued from —
can only be read as the steward's own identity, and the panel holds no keys. The
one way in today is DDR 0217 ruling 9's dialog: type your twelve words, once per
tab session, before you can see who is waiting or who is a member. A steward at
a hui with a phone in their hand is asked to type twelve words into a laptop to
see a list their phone already shows them.

Solution

Two halves of one act.

The seat unlocks from the phone. When a steward signs in to the control
panel through the app door, the approve card carries one extra line — "Also
unlock steward actions on this computer until you sign out"
, on by default. One
tap approves the sign-in and hands the panel tab the steward's passcode, sealed
to a key only that tab holds. The tab becomes an ordinary signify client of the
steward's own agent: the admin inbox, the community ledger, issue, revoke — with
nothing typed. The passcode lives in tab memory only: a reload, a tab close, an
explicit Lock, a sign-out or the end of the 12 h panel session drops it, and
the panel then offers the unlock again. The twelve words stay as a fallback,
always, for a flat phone or a lost one. The phone can end every unlocked panel
from one row in the wallet.

The Members tab reads the community ledger. With the seat unlocked, the list
is every Membership and Committee credential the one community registry has
issued — by any steward seat, in the app or in the panel — each with its
issued/revoked state, read through the seat, the same view the app has. A member
approved anywhere appears; a revoked credential shows as revoked. The roster
survives only as a display projection (name, username, last seen) and is never
the list's source. With the seat locked there is no list at all — not a stale
one, not a cached one — and the screen says so and offers both doors.


Implementation Decisions

ADR 0282 d.6 says "the control-panel sign-in page mints a throwaway X25519 key
pair in tab memory… the bridge hands it once to the tab's existing status poll"
,
as though one tab spans the whole act. It does not. The panel lives at
admin.<apex>; the app door's sign-in page is the bridge's, at id.<apex>; and
the browser makes a full navigation from the door, through the gate's
/authz/callback, to the panel. Any key minted by the door page is gone before
the panel's first line of JavaScript runs. (The SSO cookie is Domain=<apex> and
does span both hosts — but JavaScript memory does not, which is DDR 0217 ruling
9's cross-origin fact.)

Ruled (Ben, at this spec's seam gate): the handover is armed at approve and
completed by the panel tab
, and the box is sealed to a key only the panel tab
ever holds
.

  • Approving with the unlock line on arms the wallet for one short window,
    bound to that one sign-in challenge: the wallet keeps the steward's passcode
    ready to seal and answers exactly one unlock request for that challenge.
  • The panel mints the X25519 keypair in its own tab memory on first load,
    and asks the bridge to complete the handover for the sign-in it just finished.
  • The wallet, still armed, seals the passcode to the panel's public key. The
    bridge relays ciphertext only, hands it out once, then deletes it.
  • The panel opens the box, connects to the agent, and checks the agent's
    identity is the one that just signed in
    — discarding the passcode and
    staying locked on a mismatch (d.6's check, unchanged).

This keeps every ruled property: one tap, no second scan (d.2), memory only
(d.3), a bridge that cannot open what it carries (d.6), and no secret in any URL
or history entry. The arm window is the app door's existing challenge life (two
minutes, DDR 0246 d.6) and is single-use: a second request for the same
challenge, a request after the window, or a request naming a different challenge
is refused.

Rejected: a URL-fragment hand-off from the door page (it puts the passcode in
the admin origin's history entry, which ADR 0195 / DDR 0217 rejected in
substance), and sending every steward through a second scan after sign-in (ADR
0282 d.2 rejected it explicitly).

Owed: ADR 0282 gains an amendment recording this mechanism, written in the
same PR as the first handover slice. The screens are unchanged by it.

2. Waiting for the armed handover reuses PU-M0q

While the panel waits for the armed answer it shows PU-M0q with the code
region absent
— its waiting line, no countdown, the words door still in reach,
data-status naming the armed wait. It is the drawn screen for the panel is
waiting for the phone
, so this adds no new state. If the handover does not
arrive inside the window, the panel lands on PU-M0x cause 1 (signed in, the
unlock didn't come through, nothing was shared
). Any copy refinement here is a
wireframe amendment, not a blocker.

3. The bridge relays, and only for panel sign-ins

The app door gains: a sealing public key carried on panel sign-in codes only
(ek=, with the panel as the destination it already derives); an optional sealed
box accepted on the wallet's existing present route for such challenges only; a
one-shot hand-out on the existing status poll, deleted after; and refusal of a
box on any ordinary service sign-in. The door keeps no plaintext, ever, and the
relay entry dies with its challenge.

4. "Sign out of the control panel everywhere" needs a per-identity epoch, panel-scoped

The community SSO session is a stateless HMAC cookie over {identity, expiry} — nothing to delete server-side. So the take-back is a panel session
epoch
: a per-identity "panel sessions minted before this instant are dead"
timestamp in the control plane's store, set by the wallet's signed request and
consulted by the session resolver for panel-host requests only. Every other
service the steward is signed in to is untouched — which is what ADR 0282 d.4
promises ("every control-panel session that identity holds"), and what PU-W5's
copy says. The request is verified as a signed act of that identity (the same
door verifier the sign-in uses, over a bound message); a bad signature is
refused, and one identity's epoch never touches another's.

5. The seat is one flag, with a source

The dashboard's signing-session module keeps its shape and gains a source:
the seat is locked or unlocked, and when unlocked it knows whether it came
from the phone or the words, so the seat line can read "unlocked by your app
when you signed in"
or "unlocked with your twelve words". Every steward act
reads the one flag, as today. Lock drops the passcode from the bundle's memory
at once and does not end the operator session (the chrome's Sign out does
that, DDR 0155). A steward act attempted while locked raises the unlock
(PU-M0q), not the words dialog — the words are a link beside it, never the first
ask.

6. The Members list is a ledger read through the seat, merged with a display projection

The steward bundle gains two read verbs, both requiring the unlocked seat:

  • the community ledger — every credential issued from the registry the
    descriptor names (community.registry, ADR 0235 d.4): holder AID, schema
    (Membership / Committee), issuing steward AID, issued-at, revoked state, SAID;
  • the admin inbox — the registration-exchange applications waiting in this
    steward's
    agent (ADR 0235 d.2), which the approve/decline verbs already act on.

The surface composes rows by holder AID and derives standing from the ledger
alone: active (Membership issued, not revoked), suspended (Membership
revoked, other credentials still held — they show dormant, DDR 0217 ruling 6),
no longer a member (everything revoked — the row stays, because a revocation
is a fact in the log, not a deletion). ISSUED BY names the steward, resolved
to a display name through the projection and falling back to the AID; there is
no "approved in the app / in the panel" column, because the ledger cannot answer
it. Names and usernames come from the roster projection, and the provenance
line says so along with the registry it read and when.

The projection (ADR 0235 d.3) keeps name, username and last-seen for display and
is never the list's source; nothing in this feature writes it. The retired
roster wire stays retired.

7. Fail closed, on both halves

An unreadable ledger — the steward's agent, the witness or the registry not
answering — shows PU-M1u: no list, not even a partial or cached one, an
uncapped Try again, the last-read time, and a link to Fleet. A locked seat
shows PU-M0: no list, no counts, no skeleton. The two never wear the same
copy (a steward must be able to tell "I need to unlock" from "the records are
down").

8. What the gateway still must not do

No member list of its own (ADR 0235 d.6). The Go side already reads the
witnessed ledger for a presented holder's liveness at the door
(LedgerStanding, #1887), and could in principle enumerate the registry's TEL —
it must not become the Members list. The panel shows the steward's own seat's
view, which is also the only view that can carry the per-steward inbox.

9. Cross-repo obligations (tickets land in each repo)

  • idss (this repo): the app door's relay + panel-only sealing key; the panel
    session epoch and the signed sign-out-everywhere route; the seat's phone
    source; the ledger-backed Members list and admin inbox; the drive leg.
  • matou-app: the unlock line on the approve card for a steward's
    control-panel sign-in (on by default, steward-only, PU-A2u); the unlock-only
    card (PU-A4); arming and sealing to the panel's key; the Sign out of the
    control panel everywhere
    row and its done state (PU-W5/W5d). The second copy
    line — "replace your twelve words" — ships only once #1914's screen
    exists
    (DDR 0284: do not ship a line that names a door nobody can walk
    through).
  • matou-infrastructure / coa: nothing new.

10. Slices (order, for slice-map / to-tickets)

  1. The ledger-backed Members list + admin inbox behind the existing words
    unlock.
    It ships on its own: the words seat already exists, so #1886's
    symptom is fixed before any handover is built.
  2. The phone handover — the bridge relay, the panel's armed completion, the
    seat's phone source, PU-M0/M0q/M0x.
  3. Sign out of the control panel everywhere — the epoch, the signed route,
    the wallet row (with #1914 gating the second copy line).
  4. The drive leg.

All three code slices touch the Members surface and the roster panel, so
#1910 (remove the App-only switch) lands first — it rewrites the same
components and must not re-close any door.


User Stories

Acceptance criteria are sourced from panel-unlock.mermaid's nodes and edges and
the wireframes' own field names.

Signing in with the unlock

  1. As a steward signing in to the control panel from my phone, I want one line on the approve card that also unlocks steward actions, so that I can approve people without typing my twelve words.

    • Given a steward scans the control panel's sign-in code and the presented credential makes the holder a steward, when the wallet shows the approve card, then it carries exactly one extra region under the headline — "Also unlock steward actions on this computer until you sign out" — on by default, with the guard sentence naming what the computer will be able to do, for how long, and where to end it (PU-A2u).
    • And the card's anatomy is otherwise unchanged: service first, sign-in site, what will be shown, details, Approve / Not now.
    • And the tab's sealing-key fingerprint appears in details, not on the face.
  2. As a plain member, I want no unlock line anywhere, so that a line about steward actions never appears where it cannot apply.

    • Given a sign-in to any service other than the control panel, or a holder whose credential does not make them a steward, when the approve card renders, then there is no unlock line and no sealed box is ever posted.
  3. As a steward who approved with the line on, I want to land on a working Members tab, so that the sign-in and the unlock are one act.

    • Given the line was on, when the panel finishes loading after the sign-in, then the seat is unlocked, the seat line reads "unlocked by your app when you signed in", and the ledger-backed list is shown (PU-M1) — with nothing typed and no second scan.
  4. As a steward who switched the line off, I want an ordinary panel session with the seat locked, so that off is a real choice with a stated result.

    • Given the line was switched off, when the panel loads, then the operator session works everywhere else and Members shows PU-M0 — the locked screen, both doors, and the line saying the rest of the panel works as usual.
    • And the card's guard sentence in the off state names that consequence and points at the Members tab.
  5. As a steward whose sign-in was refused, I want the refusal to read exactly as any sign-in refusal, so that the unlock adds no new failure language.

    • Given the presentation is refused, when the wallet and the page report it, then they show the existing refusal lines (WS-A2r / WS-S1r) and no handover is armed, relayed or attempted.
  6. As a steward whose app dropped out mid-act, I want to be signed in with the seat locked, so that a failed unlock is never a failed sign-in.

    • Given the presentation landed but the handover did not arrive inside the window, when the panel gives up, then it shows PU-M0x cause 1: you're signed in, the unlock didn't come through, nothing went wrong with your identity, and nothing was shared — with Try your phone again and the words link.
    • And the operator session is untouched.
  7. As a steward, I want the panel to refuse an unlock that does not match my sign-in, so that a tampered relay cannot put another identity's keys in my browser.

    • Given the panel opened the sealed box and connected, when the agent's identity is not the identity that just signed in, then the panel discards the passcode, stays locked, and shows PU-M0x cause 2 (this didn't match your sign-in… nothing was used), with Try again and the words link.
    • And there is no "continue anyway" and no automatic retry.
  8. As a steward, I want the armed handover to be single-use and short-lived, so that one approve can unlock exactly one computer.

    • Given a wallet armed by one approve, when a second unlock request names the same sign-in, or any request arrives after the window (the app door's two-minute challenge life), or a request names a different challenge, then it is refused and the arm is spent.
  9. As a community, I want the bridge to carry a box it cannot open, so that the gateway never holds a steward's passcode.

    • Given a panel sign-in with the unlock armed, when the wallet posts the sealed passcode, then the bridge stores ciphertext only, bound to that one challenge, hands it to the panel once, and deletes it.
    • And an ordinary service sign-in never carries, stores or relays one.
    • And the sealing public key rides panel sign-in codes only.
  10. As a careful steward, I want to compare what my phone shows with what my computer shows, so that I can check the handover myself.

    • Given an unlock in flight, when I open the wallet card's details and look at the panel's own line, then both show the same sealing-key fingerprint, and the panel names it freshly minted, held in memory, never stored.

Unlocking a locked panel

  1. As a steward on a locked panel, I want to be told plainly that there is no list without the seat, so that I do not read a locked seat as broken software.

    • Given the seat is locked, when Members renders (PU-M0), then it shows the headline Steward actions are locked on this computer, the explanation that the list comes from the community's own records which only my identity can open, no list, no counts and no skeleton, both doors (Unlock steward actions: approve on your phone and Unlock with your twelve words instead), the line that the words always work, and the line that everything else in the control panel works as usual.
  2. As a steward who reloaded the page, I want to know the reload locked the seat and that I am still signed in, so that I never ask for the unlock to be remembered.

    • Given an unlocked seat, when the tab is reloaded, closed and reopened, opened a second time, or the 12 h panel session ends, then the seat is locked and the screen names the cause (Reloading locked steward actions… nothing is kept on it… You're still signed in).
    • And nothing about the seat is written to any browser storage, ever.
  3. As a steward, I want a code on the panel that my phone can answer, so that I can unlock without typing.

    • Given a locked, signed-in panel, when I ask to unlock with my phone (the button, or by attempting a steward act), then the panel mints a fresh keypair in memory and shows the unlock code (PU-M0q) with Scan this with your community app. You're already signed in — this only unlocks steward actions on this computer., a waiting line with no countdown, the Open it affordance, the words link, and the new key's fingerprint.
  4. As a steward scanning an unlock code, I want a card that unlocks and nothing else, so that a reload never looks like being signed out.

    • Given the panel's unlock code, when the wallet reads it, then it shows the unlock-only card (PU-A4): Unlock steward actions on this computer?, where, You signed in on this computer at , the consequence sentence, details with a fresh sealing key, and Unlock / Not now.
    • And there is no "what will be shown" region, no credential is presented and no session is minted.
  5. As a steward, I want approving the unlock-only card to unlock the tab I am looking at, so that the act completes where it started.

    • Given PU-A4, when I tap Unlock, then the passcode is sealed to that tab's fresh key, relayed once, opened, checked against the signed-in identity, and Members shows the ledger list (PU-M1).
  6. As a steward who changed my mind, I want the panel to stay locked, so that Not now means nothing happened.

    • Given a waiting unlock code, when I tap Not now or let the code expire, then the panel returns to PU-M0 and stays locked, with no error framing.
  7. As a steward whose phone is flat, lost or elsewhere, I want the twelve words to work, so that I can never be locked out of my own community.

    • Given any locked panel, when I choose Unlock with your twelve words instead, then the existing unlock dialog takes the phrase, the seat unlocks, and the seat line reads unlocked with your twelve words.
    • And this door is offered on PU-M0, PU-M0q and both PU-M0x frames, and nothing can close it.
  8. As a steward, I want a steward act on a locked panel to offer the unlock, so that I am never asked to type first.

    • Given the seat is locked, when I attempt an act that signs (approve, issue, revoke, suspend, remove), then the panel raises the phone unlock (PU-M0q) with the words as a link beside it — never the words dialog as the first ask — and the act proceeds once the seat is unlocked.

The unlocked Members tab

  1. As a steward, I want the Members list to be the community ledger, so that it shows who the community actually admitted.

    • Given an unlocked seat, when Members loads, then every row is a holder of credentials issued from the one community registry the descriptor names, with each credential's issued/revoked state, read through the seat.
    • And the list is read each time it is shown — never from a cache.
  2. As a steward who approved someone in the app, I want them in the panel's list, so that both surfaces show one community.

    • Given a member registered and approved in the app, with their Membership issued from the community registry by another steward, when I open Members in the panel, then their row is there, with their credentials, role, issuer and status — and no roster write happened anywhere in the process.
  3. As a steward, I want ISSUED BY to name the steward, so that the column says only what the ledger knows.

    • Given any row, when I read its ISSUED BY cell, then it names the issuing steward (display name where the projection has one, otherwise the AID), or the founding for the founder's own credential.
    • And there is no column claiming which surface an approval came from.
  4. As a steward, I want a removed member to keep a row, so that I can tell "was removed" from "never joined".

    • Given a holder whose every credential is revoked, when the list renders, then their row remains with the status no longer a member, because the issuance and its revocation are both anchored.
  5. As a steward, I want a suspended member's other credentials to read as dormant, so that the existing suspension semantics survive the new source.

    • Given a holder whose Membership is revoked while other credentials are still issued, when the list renders, then the status is suspended and the held credentials show dormant (DDR 0217 ruling 6) — held, opening nothing, waking on re-admission.
  6. As a steward, I want a provenance line under the list, so that I never mistake a cached display name for a signed fact.

    • Given a rendered list, when I read the line beneath it, then it names the count, the registry it was read from, the time it was read, and which fields came from the roster projection rather than the ledger.
  7. As a steward, I want names and usernames to keep working, so that the list is readable even though the ledger holds AIDs.

    • Given the projection holds a name/username for a holder, when the row renders, then it shows them; and given it does not, then the row still renders, identified by what the ledger carries.
  8. As a community, I want the roster to be display-only, so that nothing unsigned is ever load-bearing again.

    • Given this feature's reads and acts, when the list is built or an act completes, then the projection is only read for display — no waiting entries, no pending-* states, no roster wire, and no path in this feature writes standing to it.
  9. As a steward, I want my own admin inbox above the list, so that approving is where the people are.

    • Given an unlocked seat and applications waiting in my agent, when Members renders, then a Waiting for approval section sits above the list with each applicant and their invite (or registered without an invite), and the scope note: this is your inbox; an application sent to another steward is approved by them — there is no shared queue.
  10. As a steward, I want approving to take one press, so that the label stops promising a ceremony I no longer perform.

    • Given an unlocked seat, when I approve an applicant, then the button reads Approve (not Sign and approve), the Membership issues straight away with nothing typed, the credential-picker behaviour is unchanged, and the confirm still names what is being signed.
  11. As a steward with an empty inbox, I want silence, so that a zero never reads as a fault.

    • Given no applications in my agent, when Members renders, then the Waiting for approval section is absent — no heading, no "0 waiting".
  12. As a founder on day one, I want my own row and an invitation, so that a new community never looks broken.

    • Given a freshly founded community whose registry holds only the founder's Membership, when Members renders (PU-M1e), then the table shows that one real row marked you, the count reads 1, and the empty-state line says It is just you so far… everyone you approve appears here — whether you approve them in this browser or in your app, with an Invite people affordance.
  13. As a steward whose community's records are down, I want no list rather than half a list, so that I never act on a partial truth.

    • Given an unlocked seat, when the agent, witness or registry does not answer, then Members shows PU-M1u: the seat line still reads unlocked, the headline blames the records, the copy says a partial list would be worse than none, no rows are shown from any cache, Try again is uncapped, and the last-read time and a Fleet link are offered.
    • And invites and credentials already created are unaffected.
  14. As a steward leaving a shared laptop, I want Lock to drop my access at once without signing me out, so that I can hand the machine over safely.

    • Given an unlocked seat, when I press Lock, then the passcode leaves tab memory immediately, Members returns to PU-M0, and the operator session is untouched — the rest of the panel keeps working.
  15. As a steward, I want everything else on the Members tab unchanged, so that the new source does not cost me the surface I know.

    • Given an unlocked seat, when Members renders, then invites, the credentials cards, the pending-rotation strip, the solo-steward nudge and every drill-in behave as they do today, on the ledger-backed rows.

Taking it back from the phone

  1. As a steward, I want one row in my wallet that ends every unlocked panel, so that a laptop left open at a hui is not a standing risk.

    • Given the wallet's identity screen, when I open Sign out of the control panel everywhere (PU-W5), then it explains Locks steward actions on every computer you've unlocked. You stay a steward — this only ends what those computers can do., offers Sign out everywhere, carries the replace your twelve words line, and shows no list of sessions and no device names.
  2. As a steward, I want signing out everywhere to end only my panel sessions, so that the act does exactly what it says.

    • Given a signed sign-out-everywhere request, when the control plane accepts it, then every control-panel session of that identity is dead from that instant, sessions of other identities are untouched, and the steward's sessions at other services are untouched.
    • And an unsigned or badly signed request is refused and changes nothing.
  3. As a steward, I want each open panel to notice and drop my passcode, so that nothing keeps acting after I have taken it back.

    • Given a tab with an unlocked seat, when its next request finds the session gone, then it drops the passcode from memory and returns to sign-in (not to a locked Members tab — the session ended, not just the seat).
  4. As a steward, I want the wallet to state the outcome without inventing a number, so that it never claims more than it knows.

    • Given the request landed, when the wallet shows the done state (PU-W5d), then it reads Signed out of the control panel everywhere. Any computer that was unlocked will ask to sign in again. with no count, plus You're still a steward. Your app is unchanged.
  5. As a steward whose access may have been copied, I want the remedy line to point at a real screen, so that the copy never names a door I cannot walk through.

    • Given #1914's replace your twelve words screen does not exist, when the wallet row ships, then the second line is withheld until that screen lands; and given it exists, then the line reads replace your twelve words (never "change your passcode") and opens it.

Honesty, docs and proof

  1. As a steward, I want locked and unreachable to never wear the same words, so that I always know which way it failed.

    • Given the two no-list states, when either renders, then PU-M0 offers an unlock and blames the seat, PU-M1u offers a retry and blames the records, and neither shows a count, a skeleton or a cached row.
  2. As an agent or reviewer, I want the decisions recorded where the code is, so that nobody builds against a file that says something else.

    • Given the handover mechanism of decision 1, when its slice lands, then ADR 0282 carries the amendment, the panel-unlock flow and PU wireframes are amended if any copy changed, and STATUS.md is updated in the same commit (CLAUDE.md's rule).
  3. As Ben, I want the whole act proven once on a real community, so that the demo failure that filed #1886 cannot recur silently.

    • Given the IDIP journey drive, when the steward-panel-unlock leg runs, then it proves: a steward signs in through the app and lands on an unlocked Members tab with nothing typed; a member approved in the app appears in that list; a reload locks the seat and the phone unlocks it again; and sign-out-everywhere returns the tab to sign-in.

Testing Decisions

What a good test is here. Every test in this feature drives a seam's
external behaviour
and asserts what a steward or the wallet would observe: an
HTTP answer, a rendered field, a state flag, a refusal. None reaches into how a
box is opened, how a list is memoised, or which function called which. The
security properties are stated as observable facts — the ciphertext is handed
out once and then gone
, a mismatch leaves the seat locked, no cached row is
ever rendered
— so that a re-implementation that keeps the promises keeps the
tests green.

Seams (confirmed with Ben at this spec's gate) — three, plus one drive leg.

  1. The app door's HTTP surface (internal/idp, existing seam test
    appdoor_seam_test.go). Proves: the sealing key rides panel codes only;
    the present route accepts a sealed box for such challenges only; the status
    poll hands the ciphertext over once and then it is deleted; an ordinary
    service sign-in never carries or relays one; the arm is single-use and dies
    with the challenge. Prior art in the same file and in
    appdoorpage_seam_test.go, presented_seam_test.go,
    signin_revocation_seam_test.go — table-driven Go tests over the mounted
    handlers with an injected verifier (fake_verifier_test.go), no live KERIA.
  2. The control plane's session resolver (internal/controlapi). Proves: a
    signed sign-out-everywhere sets the identity's panel epoch; panel requests
    carrying a cookie minted before it resolve to no session; requests to other
    services and other identities' cookies are unaffected; a bad signature is
    refused. Prior art: the existing session/front-door seam tests in that
    package (stateless-cookie encode/decode + the forward_auth check) and
    internal/idp/signout_seam_test.go.
  3. The dashboard's injected steward-bundle loader behind the signing-session
    module (dashboard/tests/unit/signingSession.test.ts,
    unlockSigningDialog.test.ts, idipRosterPanel.test.ts,
    membersIdipLedger.test.ts are the prior art). One seam covers both
    halves, because the ledger read rides the same bundle as the unlock: a fake
    bundle returns ledger rows and inbox items, or throws, and the tests assert
    the rendered contract — data-status="seat-unlocked" / "seat-locked",
    data-unlocked-by="phone" / "words", data-field="ledger-members" with
    data-source="community-ledger", the provenance line, the removed-member
    row, the absent inbox section, PU-M1u's no-rows, PU-M0x's two causes, and
    data-action="lock-steward-actions". No new dashboard seam is added.

Beside the seams. The bundle's new read verbs (ledger + inbox) are unit
tested in app/tests/unit the way the existing steward verbs are (injected
signify connection, no network — prior art app/tests/unit/keri/rekey.test.ts,
keriwebDoors.test.ts). Golden fixtures follow #1301's discipline: real KERIA
bytes in a fixture dir, so no container and no network is needed to prove a
ledger read or a seal walk.

The drive leg. One new leg in the IDIP journey (app/tests/e2e/journey.idip.spec.ts),
named steward-panel-unlock per ADR 0282: app sign-in → unlocked Members with
nothing typed → an app-approved member visible → reload locks → phone unlocks →
sign-out-everywhere returns to sign-in. Session-class work (live doors), not a
swarm ticket.

Wireframe conformance. The code-review Design axis and design-verify
check the built screens against docs/ux/wireframes/panel-unlock/ and the
amended p6-s1i-members.html; the field renames in those files
(idip-roster → ledger-members, signing-unlocked → seat-unlocked,
lock-signing → lock-steward-actions) are the literal contract.


Out of Scope

  • Removing the App-only switch from the code — #1910, a prerequisite that
    lands first because it rewrites the same components. Removing it must not
    re-close any door (DDR 0284).
  • The replace your twelve words screen — #1914. This spec only gates the
    wallet copy line on it.
  • A scoped or delegated key (C1) — ADR 0282 d.1 accepted the passcode
    handover for v1 and named C1 the later tightening. The handover's slot can
    carry a different secret later without changing a screen.
  • An idle timer — rejected by ADR 0282 d.3; a seat ends at Lock, reload, tab
    close, sign-out, or the 12 h panel session's end. There is no other timer.
  • A session list, device names or a sign-in log in the wallet — ADR 0282 d.4
    and DDR 0246 d.11.
  • A gateway-built member list — ADR 0235 d.6 (see decision 8).
  • Reviving the roster as standing, the roster wire, pending-* states, or
    per-steward registries — all retired by ADR 0235.
  • Changes to the Doorkeeper/verifier, sign-in verification, or service access
    — ADR 0236 stands untouched; this feature adds no new door check.
  • matou-app's implementation — named here as obligations; its tickets are
    filed on that repo.
  • The second community, cross-community credentials, and the IDIP wallet app
    — map #1293's not yet specified items.
  • Folding removed members behind a "show past members" disclosure — a layout
    call left to review; the no longer a member state is in scope either way.

Further Notes

  • Why the words never retire. DDR 0284 removed the only switch that could
    have closed them, using ADR 0282 d.5's own reasoning: a flat phone, a borrowed
    laptop or an uninstalled app must never leave a steward unable to act. Every
    locked screen in this feature therefore carries the words link, unconditionally.
  • The accepted limit, stated plainly. An unlocked panel tab holds the
    steward's whole identity until it locks. "Temporary" and "take back" are
    what the browser does, not what the keys enforce (ADR 0282 d.1). The copy says
    so; the real remedy for a copied passcode is replacing the twelve words
    (ADR 0195 rung 2, which preserves the steward's AID and the community group
    AID — DDR 0284's correction), and that screen is #1914.
  • A known tension worth naming. PU-M0 says the panel cannot read the
    records without the seat. Strictly, the gateway can read the witnessed ledger
    (that is how the door checks a presented holder's liveness, #1887), so a
    server-built list is technically possible. The design rules it out on purpose:
    the panel shows the steward's own seat's view, which is also the only view
    that can carry the per-steward admin inbox, and a gateway member list is what
    ADR 0235 d.6 refused. If that is ever revisited, it is a new ruling, not an
    implementation detail.
  • Numbering history on this ticket. Comments before 2026-09-27 call the
    handover ADR "0281"; it is ADR 0282 (DDR 0281 is the branding decision).
    The wireframe PR's "DDR 0282 / ADR 0283" numbering landed as DDR 0284.
    Anything citing 0281 or 0283 for this feature means 0282 / 0284.
  • Ordering with the wider arc. Nothing here depends on the wallet sign-in
    spec's open tickets beyond the app door existing, which it does. The ledger
    half (slice 1) can be worked the moment #1910 lands.

Written by /to-spec on #1886 against ADR 0282 + DDR 0284 and the panel-unlock
flow/wireframes on main. Seams, the cross-origin handover mechanism, and scope
confirmed with Ben in session 2026-09-27.

🤖 Generated with Claude Code

https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY

## Parent - **Wayfinder map:** [The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired](https://git.matou.nz/Matou/idss/issues/1293) (#1293) — this child spec settles the map's open item *"Steward acts on the wallet, in detail (ruling 9)"*: signing-unlock semantics on a device vs DDR 0217 ruling 9's once-per-dashboard-session, what the roster projection keeps, and the dashboard's Members list reading the unlocked steward's agent. - **Source ticket:** #1886 (the symptom: a member approved in the app never appears on Members). - **Design:** **ADR 0282** (the seat unlocks at control-panel sign-in), **DDR 0284** (the App-only switch removed; the take-back copy corrected), ADR 0235 d.2/d.3/d.4/d.6 (the per-steward admin inbox, the retired roster wire, the one community ledger, no gateway member list), ADR 0236 (the bridge verifies in Go; an unreachable ledger fails closed), DDR 0217 ruling 9 (the typed unlock, now the fallback), DDR 0246 d.3 (the approve card). - **Flow:** `docs/ux/flows/panel-unlock.mermaid`. **Wireframes:** `docs/ux/wireframes/panel-unlock/` (PU-A2u, PU-A4, PU-M0, PU-M0q, PU-M0x, PU-M1, PU-M1e, PU-M1u, PU-W5/W5d), plus the amended `p6-members-idip/p6-s1i-members.html` (`idip-roster` → `ledger-members`), `p6-members-idip/p6-s11i-unlock-signing.html` (re-roled to the fallback) and `wallet-signin/ws-a2-approve-card.html` (the unlock line). - **Vocabulary:** CONTEXT.md **Seat unlock**, **Admin inbox**, **Sign out of the control panel everywhere**, the **Panel unlock (PU)** screen list, **Community ledger**, **Register**. *App-only* is a removed term — never reintroduce it. --- ## Problem Statement A steward approves a member in their community app. The member's Membership credential is issued from the community registry, the member can sign in, use Files, appear in Grist — and they are **invisible in the control panel**. The Members tab shows only what the legacy roster file was told, and only three paths ever tell it: the browser join, the panel's own approve, and the founder's register. The app tells it nothing, by design (ADR 0235 d.3 retired the roster wire). So a steward who works in the app and a steward who works in the panel see two different communities, and the panel's is wrong. Worse, the panel cannot simply be pointed at the truth. The community's records — the one registry every Membership and Committee credential is issued from — can only be read as the steward's own identity, and the panel holds no keys. The one way in today is DDR 0217 ruling 9's dialog: type your twelve words, once per tab session, before you can see who is waiting or who is a member. A steward at a hui with a phone in their hand is asked to type twelve words into a laptop to see a list their phone already shows them. ## Solution Two halves of one act. **The seat unlocks from the phone.** When a steward signs in to the control panel through the app door, the approve card carries one extra line — *"Also unlock steward actions on this computer until you sign out"*, on by default. One tap approves the sign-in and hands the panel tab the steward's passcode, sealed to a key only that tab holds. The tab becomes an ordinary signify client of the steward's own agent: the admin inbox, the community ledger, issue, revoke — with nothing typed. The passcode lives in tab memory only: a reload, a tab close, an explicit **Lock**, a sign-out or the end of the 12 h panel session drops it, and the panel then offers the unlock again. The twelve words stay as a fallback, always, for a flat phone or a lost one. The phone can end every unlocked panel from one row in the wallet. **The Members tab reads the community ledger.** With the seat unlocked, the list is every Membership and Committee credential the one community registry has issued — by any steward seat, in the app or in the panel — each with its issued/revoked state, read through the seat, the same view the app has. A member approved anywhere appears; a revoked credential shows as revoked. The roster survives only as a display projection (name, username, last seen) and is never the list's source. With the seat locked there is no list at all — not a stale one, not a cached one — and the screen says so and offers both doors. --- ## Implementation Decisions ### 1. The sign-in handover crosses origins by **armed consent**, not by a surviving keypair (amends ADR 0282 d.6's mechanism) ADR 0282 d.6 says *"the control-panel sign-in page mints a throwaway X25519 key pair in tab memory… the bridge hands it once to the tab's existing status poll"*, as though one tab spans the whole act. It does not. The panel lives at `admin.<apex>`; the app door's sign-in page is the bridge's, at `id.<apex>`; and the browser makes a **full navigation** from the door, through the gate's `/authz/callback`, to the panel. Any key minted by the door page is gone before the panel's first line of JavaScript runs. (The SSO cookie is `Domain=<apex>` and does span both hosts — but JavaScript memory does not, which is DDR 0217 ruling 9's cross-origin fact.) Ruled (Ben, at this spec's seam gate): the handover is **armed at approve and completed by the panel tab**, and the box is sealed to a key **only the panel tab ever holds**. - Approving with the unlock line on **arms** the wallet for one short window, bound to that one sign-in challenge: the wallet keeps the steward's passcode ready to seal and answers exactly one unlock request for that challenge. - The **panel** mints the X25519 keypair in its own tab memory on first load, and asks the bridge to complete the handover for the sign-in it just finished. - The wallet, still armed, seals the passcode to the panel's public key. The bridge relays **ciphertext only**, hands it out **once**, then deletes it. - The panel opens the box, connects to the agent, and **checks the agent's identity is the one that just signed in** — discarding the passcode and staying locked on a mismatch (d.6's check, unchanged). This keeps every ruled property: one tap, no second scan (d.2), memory only (d.3), a bridge that cannot open what it carries (d.6), and no secret in any URL or history entry. The arm window is the app door's existing challenge life (two minutes, DDR 0246 d.6) and is single-use: a second request for the same challenge, a request after the window, or a request naming a different challenge is refused. **Rejected:** a URL-fragment hand-off from the door page (it puts the passcode in the admin origin's history entry, which ADR 0195 / DDR 0217 rejected in substance), and sending every steward through a second scan after sign-in (ADR 0282 d.2 rejected it explicitly). **Owed:** ADR 0282 gains an amendment recording this mechanism, written in the same PR as the first handover slice. The screens are unchanged by it. ### 2. Waiting for the armed handover reuses PU-M0q While the panel waits for the armed answer it shows **PU-M0q with the code region absent** — its waiting line, no countdown, the words door still in reach, `data-status` naming the armed wait. It is the drawn screen for *the panel is waiting for the phone*, so this adds no new state. If the handover does not arrive inside the window, the panel lands on **PU-M0x cause 1** (*signed in, the unlock didn't come through, nothing was shared*). Any copy refinement here is a wireframe amendment, not a blocker. ### 3. The bridge relays, and only for panel sign-ins The app door gains: a sealing public key carried on **panel** sign-in codes only (`ek=`, with the panel as the destination it already derives); an optional sealed box accepted on the wallet's existing present route for such challenges only; a one-shot hand-out on the existing status poll, deleted after; and refusal of a box on any ordinary service sign-in. The door keeps no plaintext, ever, and the relay entry dies with its challenge. ### 4. "Sign out of the control panel everywhere" needs a per-identity epoch, panel-scoped The community SSO session is a **stateless HMAC cookie** over `{identity, expiry}` — nothing to delete server-side. So the take-back is a **panel session epoch**: a per-identity *"panel sessions minted before this instant are dead"* timestamp in the control plane's store, set by the wallet's signed request and consulted by the session resolver **for panel-host requests only**. Every other service the steward is signed in to is untouched — which is what ADR 0282 d.4 promises ("every control-panel session that identity holds"), and what PU-W5's copy says. The request is verified as a signed act of that identity (the same door verifier the sign-in uses, over a bound message); a bad signature is refused, and one identity's epoch never touches another's. ### 5. The seat is one flag, with a source The dashboard's signing-session module keeps its shape and gains a **source**: the seat is `locked` or `unlocked`, and when unlocked it knows whether it came from the phone or the words, so the seat line can read *"unlocked by your app when you signed in"* or *"unlocked with your twelve words"*. Every steward act reads the one flag, as today. `Lock` drops the passcode from the bundle's memory at once and does **not** end the operator session (the chrome's Sign out does that, DDR 0155). A steward act attempted while locked raises the unlock (PU-M0q), not the words dialog — the words are a link beside it, never the first ask. ### 6. The Members list is a ledger read through the seat, merged with a display projection The steward bundle gains two read verbs, both requiring the unlocked seat: - **the community ledger** — every credential issued from the registry the descriptor names (`community.registry`, ADR 0235 d.4): holder AID, schema (Membership / Committee), issuing steward AID, issued-at, revoked state, SAID; - **the admin inbox** — the registration-exchange applications waiting in *this steward's* agent (ADR 0235 d.2), which the approve/decline verbs already act on. The surface composes rows by holder AID and derives standing from the ledger alone: **active** (Membership issued, not revoked), **suspended** (Membership revoked, other credentials still held — they show dormant, DDR 0217 ruling 6), **no longer a member** (everything revoked — the row stays, because a revocation is a fact in the log, not a deletion). **ISSUED BY names the steward**, resolved to a display name through the projection and falling back to the AID; there is no "approved in the app / in the panel" column, because the ledger cannot answer it. Names and usernames come from the **roster projection**, and the provenance line says so along with the registry it read and when. The projection (ADR 0235 d.3) keeps name, username and last-seen for display and is **never** the list's source; nothing in this feature writes it. The retired roster wire stays retired. ### 7. Fail closed, on both halves An unreadable ledger — the steward's agent, the witness or the registry not answering — shows **PU-M1u**: no list, not even a partial or cached one, an uncapped *Try again*, the last-read time, and a link to Fleet. A locked seat shows **PU-M0**: no list, no counts, no skeleton. The two never wear the same copy (a steward must be able to tell "I need to unlock" from "the records are down"). ### 8. What the gateway still must not do No member list of its own (ADR 0235 d.6). The Go side already reads the witnessed ledger for a presented holder's liveness at the door (`LedgerStanding`, #1887), and could in principle enumerate the registry's TEL — it must not become the Members list. The panel shows the steward's own seat's view, which is also the only view that can carry the per-steward inbox. ### 9. Cross-repo obligations (tickets land in each repo) - **idss (this repo):** the app door's relay + panel-only sealing key; the panel session epoch and the signed sign-out-everywhere route; the seat's phone source; the ledger-backed Members list and admin inbox; the drive leg. - **matou-app:** the unlock line on the approve card for a steward's control-panel sign-in (on by default, steward-only, PU-A2u); the unlock-only card (PU-A4); arming and sealing to the panel's key; the *Sign out of the control panel everywhere* row and its done state (PU-W5/W5d). The second copy line — *"replace your twelve words"* — **ships only once #1914's screen exists** (DDR 0284: do not ship a line that names a door nobody can walk through). - **matou-infrastructure / coa:** nothing new. ### 10. Slices (order, for `slice-map` / `to-tickets`) 1. **The ledger-backed Members list + admin inbox behind the existing words unlock.** It ships on its own: the words seat already exists, so #1886's symptom is fixed before any handover is built. 2. **The phone handover** — the bridge relay, the panel's armed completion, the seat's phone source, PU-M0/M0q/M0x. 3. **Sign out of the control panel everywhere** — the epoch, the signed route, the wallet row (with #1914 gating the second copy line). 4. **The drive leg.** All three code slices touch the Members surface and the roster panel, so **#1910** (remove the App-only switch) lands **first** — it rewrites the same components and must not re-close any door. --- ## User Stories Acceptance criteria are sourced from `panel-unlock.mermaid`'s nodes and edges and the wireframes' own field names. ### Signing in with the unlock 1. **As a steward signing in to the control panel from my phone, I want one line on the approve card that also unlocks steward actions, so that I can approve people without typing my twelve words.** - **Given** a steward scans the control panel's sign-in code and the presented credential makes the holder a steward, **when** the wallet shows the approve card, **then** it carries exactly one extra region under the headline — *"Also unlock steward actions on this computer until you sign out"* — **on by default**, with the guard sentence naming what the computer will be able to do, for how long, and where to end it (PU-A2u). - **And** the card's anatomy is otherwise unchanged: service first, sign-in site, what will be shown, details, Approve / Not now. - **And** the tab's sealing-key fingerprint appears in **details**, not on the face. 2. **As a plain member, I want no unlock line anywhere, so that a line about steward actions never appears where it cannot apply.** - **Given** a sign-in to any service other than the control panel, **or** a holder whose credential does not make them a steward, **when** the approve card renders, **then** there is no unlock line and no sealed box is ever posted. 3. **As a steward who approved with the line on, I want to land on a working Members tab, so that the sign-in and the unlock are one act.** - **Given** the line was on, **when** the panel finishes loading after the sign-in, **then** the seat is unlocked, the seat line reads *"unlocked by your app when you signed in"*, and the ledger-backed list is shown (PU-M1) — with nothing typed and no second scan. 4. **As a steward who switched the line off, I want an ordinary panel session with the seat locked, so that off is a real choice with a stated result.** - **Given** the line was switched off, **when** the panel loads, **then** the operator session works everywhere else and Members shows **PU-M0** — the locked screen, both doors, and the line saying the rest of the panel works as usual. - **And** the card's guard sentence in the off state names that consequence and points at the Members tab. 5. **As a steward whose sign-in was refused, I want the refusal to read exactly as any sign-in refusal, so that the unlock adds no new failure language.** - **Given** the presentation is refused, **when** the wallet and the page report it, **then** they show the existing refusal lines (WS-A2r / WS-S1r) and **no** handover is armed, relayed or attempted. 6. **As a steward whose app dropped out mid-act, I want to be signed in with the seat locked, so that a failed unlock is never a failed sign-in.** - **Given** the presentation landed but the handover did not arrive inside the window, **when** the panel gives up, **then** it shows **PU-M0x cause 1**: *you're signed in, the unlock didn't come through, nothing went wrong with your identity, and nothing was shared* — with *Try your phone again* and the words link. - **And** the operator session is untouched. 7. **As a steward, I want the panel to refuse an unlock that does not match my sign-in, so that a tampered relay cannot put another identity's keys in my browser.** - **Given** the panel opened the sealed box and connected, **when** the agent's identity is **not** the identity that just signed in, **then** the panel discards the passcode, stays locked, and shows **PU-M0x cause 2** (*this didn't match your sign-in… nothing was used*), with *Try again* and the words link. - **And** there is no "continue anyway" and no automatic retry. 8. **As a steward, I want the armed handover to be single-use and short-lived, so that one approve can unlock exactly one computer.** - **Given** a wallet armed by one approve, **when** a second unlock request names the same sign-in, **or** any request arrives after the window (the app door's two-minute challenge life), **or** a request names a different challenge, **then** it is refused and the arm is spent. 9. **As a community, I want the bridge to carry a box it cannot open, so that the gateway never holds a steward's passcode.** - **Given** a panel sign-in with the unlock armed, **when** the wallet posts the sealed passcode, **then** the bridge stores **ciphertext only**, bound to that one challenge, hands it to the panel **once**, and deletes it. - **And** an ordinary service sign-in never carries, stores or relays one. - **And** the sealing public key rides **panel** sign-in codes only. 10. **As a careful steward, I want to compare what my phone shows with what my computer shows, so that I can check the handover myself.** - **Given** an unlock in flight, **when** I open the wallet card's details and look at the panel's own line, **then** both show the same sealing-key fingerprint, and the panel names it *freshly minted, held in memory, never stored*. ### Unlocking a locked panel 11. **As a steward on a locked panel, I want to be told plainly that there is no list without the seat, so that I do not read a locked seat as broken software.** - **Given** the seat is locked, **when** Members renders (PU-M0), **then** it shows the headline *Steward actions are locked on this computer*, the explanation that the list comes from the community's own records which only my identity can open, **no list, no counts and no skeleton**, both doors (*Unlock steward actions: approve on your phone* and *Unlock with your twelve words instead*), the line that the words always work, and the line that everything else in the control panel works as usual. 12. **As a steward who reloaded the page, I want to know the reload locked the seat and that I am still signed in, so that I never ask for the unlock to be remembered.** - **Given** an unlocked seat, **when** the tab is reloaded, closed and reopened, opened a second time, or the 12 h panel session ends, **then** the seat is locked and the screen names the cause (*Reloading locked steward actions… nothing is kept on it… You're still signed in*). - **And** nothing about the seat is written to any browser storage, ever. 13. **As a steward, I want a code on the panel that my phone can answer, so that I can unlock without typing.** - **Given** a locked, signed-in panel, **when** I ask to unlock with my phone (the button, or by attempting a steward act), **then** the panel mints a **fresh** keypair in memory and shows the unlock code (PU-M0q) with *Scan this with your community app. You're already signed in — this only unlocks steward actions on this computer.*, a waiting line with **no countdown**, the *Open it* affordance, the words link, and the new key's fingerprint. 14. **As a steward scanning an unlock code, I want a card that unlocks and nothing else, so that a reload never looks like being signed out.** - **Given** the panel's unlock code, **when** the wallet reads it, **then** it shows the **unlock-only card** (PU-A4): *Unlock steward actions on this computer?*, where, *You signed in on this computer at <time>. This only unlocks steward actions.*, the consequence sentence, details with a **fresh** sealing key, and **Unlock** / **Not now**. - **And** there is no "what will be shown" region, no credential is presented and no session is minted. 15. **As a steward, I want approving the unlock-only card to unlock the tab I am looking at, so that the act completes where it started.** - **Given** PU-A4, **when** I tap Unlock, **then** the passcode is sealed to that tab's fresh key, relayed once, opened, checked against the signed-in identity, and Members shows the ledger list (PU-M1). 16. **As a steward who changed my mind, I want the panel to stay locked, so that *Not now* means nothing happened.** - **Given** a waiting unlock code, **when** I tap *Not now* or let the code expire, **then** the panel returns to **PU-M0** and stays locked, with no error framing. 17. **As a steward whose phone is flat, lost or elsewhere, I want the twelve words to work, so that I can never be locked out of my own community.** - **Given** any locked panel, **when** I choose *Unlock with your twelve words instead*, **then** the existing unlock dialog takes the phrase, the seat unlocks, and the seat line reads *unlocked with your twelve words*. - **And** this door is offered on PU-M0, PU-M0q and both PU-M0x frames, and nothing can close it. 18. **As a steward, I want a steward act on a locked panel to offer the unlock, so that I am never asked to type first.** - **Given** the seat is locked, **when** I attempt an act that signs (approve, issue, revoke, suspend, remove), **then** the panel raises the phone unlock (PU-M0q) with the words as a link beside it — never the words dialog as the first ask — and the act proceeds once the seat is unlocked. ### The unlocked Members tab 19. **As a steward, I want the Members list to be the community ledger, so that it shows who the community actually admitted.** - **Given** an unlocked seat, **when** Members loads, **then** every row is a holder of credentials issued from the **one community registry** the descriptor names, with each credential's issued/revoked state, read through the seat. - **And** the list is read **each time** it is shown — never from a cache. 20. **As a steward who approved someone in the app, I want them in the panel's list, so that both surfaces show one community.** - **Given** a member registered and approved in the app, with their Membership issued from the community registry by another steward, **when** I open Members in the panel, **then** their row is there, with their credentials, role, issuer and status — **and** no roster write happened anywhere in the process. 21. **As a steward, I want ISSUED BY to name the steward, so that the column says only what the ledger knows.** - **Given** any row, **when** I read its ISSUED BY cell, **then** it names the issuing steward (display name where the projection has one, otherwise the AID), or *the founding* for the founder's own credential. - **And** there is no column claiming which surface an approval came from. 22. **As a steward, I want a removed member to keep a row, so that I can tell "was removed" from "never joined".** - **Given** a holder whose every credential is revoked, **when** the list renders, **then their row remains** with the status *no longer a member*, because the issuance and its revocation are both anchored. 23. **As a steward, I want a suspended member's other credentials to read as dormant, so that the existing suspension semantics survive the new source.** - **Given** a holder whose Membership is revoked while other credentials are still issued, **when** the list renders, **then** the status is *suspended* and the held credentials show dormant (DDR 0217 ruling 6) — held, opening nothing, waking on re-admission. 24. **As a steward, I want a provenance line under the list, so that I never mistake a cached display name for a signed fact.** - **Given** a rendered list, **when** I read the line beneath it, **then** it names the count, the registry it was read from, the time it was read, and which fields came from the roster projection rather than the ledger. 25. **As a steward, I want names and usernames to keep working, so that the list is readable even though the ledger holds AIDs.** - **Given** the projection holds a name/username for a holder, **when** the row renders, **then** it shows them; **and given** it does not, **then** the row still renders, identified by what the ledger carries. 26. **As a community, I want the roster to be display-only, so that nothing unsigned is ever load-bearing again.** - **Given** this feature's reads and acts, **when** the list is built or an act completes, **then** the projection is only read for display — no waiting entries, no `pending-*` states, no roster wire, and no path in this feature writes standing to it. 27. **As a steward, I want my own admin inbox above the list, so that approving is where the people are.** - **Given** an unlocked seat and applications waiting in my agent, **when** Members renders, **then** a *Waiting for approval* section sits above the list with each applicant and their invite (or *registered without an invite*), and the scope note: *this is your inbox; an application sent to another steward is approved by them — there is no shared queue*. 28. **As a steward, I want approving to take one press, so that the label stops promising a ceremony I no longer perform.** - **Given** an unlocked seat, **when** I approve an applicant, **then** the button reads **Approve** (not *Sign and approve*), the Membership issues straight away with nothing typed, the credential-picker behaviour is unchanged, and the confirm still **names what is being signed**. 29. **As a steward with an empty inbox, I want silence, so that a zero never reads as a fault.** - **Given** no applications in my agent, **when** Members renders, **then** the *Waiting for approval* section is **absent** — no heading, no "0 waiting". 30. **As a founder on day one, I want my own row and an invitation, so that a new community never looks broken.** - **Given** a freshly founded community whose registry holds only the founder's Membership, **when** Members renders (PU-M1e), **then** the table shows that one real row marked *you*, the count reads 1, and the empty-state line says *It is just you so far… everyone you approve appears here — whether you approve them in this browser or in your app*, with an *Invite people* affordance. 31. **As a steward whose community's records are down, I want no list rather than half a list, so that I never act on a partial truth.** - **Given** an unlocked seat, **when** the agent, witness or registry does not answer, **then** Members shows **PU-M1u**: the seat line still reads unlocked, the headline blames the records, the copy says *a partial list would be worse than none*, **no rows are shown from any cache**, *Try again* is uncapped, and the last-read time and a Fleet link are offered. - **And** invites and credentials already created are unaffected. 32. **As a steward leaving a shared laptop, I want Lock to drop my access at once without signing me out, so that I can hand the machine over safely.** - **Given** an unlocked seat, **when** I press **Lock**, **then** the passcode leaves tab memory immediately, Members returns to **PU-M0**, and the operator session is untouched — the rest of the panel keeps working. 33. **As a steward, I want everything else on the Members tab unchanged, so that the new source does not cost me the surface I know.** - **Given** an unlocked seat, **when** Members renders, **then** invites, the credentials cards, the pending-rotation strip, the solo-steward nudge and every drill-in behave as they do today, on the ledger-backed rows. ### Taking it back from the phone 34. **As a steward, I want one row in my wallet that ends every unlocked panel, so that a laptop left open at a hui is not a standing risk.** - **Given** the wallet's identity screen, **when** I open *Sign out of the control panel everywhere* (PU-W5), **then** it explains *Locks steward actions on every computer you've unlocked. You stay a steward — this only ends what those computers can do.*, offers **Sign out everywhere**, carries the *replace your twelve words* line, and shows **no list of sessions and no device names**. 35. **As a steward, I want signing out everywhere to end only my panel sessions, so that the act does exactly what it says.** - **Given** a signed sign-out-everywhere request, **when** the control plane accepts it, **then** every control-panel session of **that identity** is dead from that instant, sessions of other identities are untouched, and the steward's sessions at other services are untouched. - **And** an unsigned or badly signed request is refused and changes nothing. 36. **As a steward, I want each open panel to notice and drop my passcode, so that nothing keeps acting after I have taken it back.** - **Given** a tab with an unlocked seat, **when** its next request finds the session gone, **then** it drops the passcode from memory and returns to **sign-in** (not to a locked Members tab — the session ended, not just the seat). 37. **As a steward, I want the wallet to state the outcome without inventing a number, so that it never claims more than it knows.** - **Given** the request landed, **when** the wallet shows the done state (PU-W5d), **then** it reads *Signed out of the control panel everywhere. Any computer that was unlocked will ask to sign in again.* with **no count**, plus *You're still a steward. Your app is unchanged.* 38. **As a steward whose access may have been copied, I want the remedy line to point at a real screen, so that the copy never names a door I cannot walk through.** - **Given** #1914's *replace your twelve words* screen does not exist, **when** the wallet row ships, **then** the second line is **withheld** until that screen lands; **and given** it exists, **then** the line reads *replace your twelve words* (never "change your passcode") and opens it. ### Honesty, docs and proof 39. **As a steward, I want locked and unreachable to never wear the same words, so that I always know which way it failed.** - **Given** the two no-list states, **when** either renders, **then** PU-M0 offers an **unlock** and blames the seat, PU-M1u offers a **retry** and blames the records, and neither shows a count, a skeleton or a cached row. 40. **As an agent or reviewer, I want the decisions recorded where the code is, so that nobody builds against a file that says something else.** - **Given** the handover mechanism of decision 1, **when** its slice lands, **then** ADR 0282 carries the amendment, the `panel-unlock` flow and PU wireframes are amended if any copy changed, and STATUS.md is updated in the same commit (CLAUDE.md's rule). 41. **As Ben, I want the whole act proven once on a real community, so that the demo failure that filed #1886 cannot recur silently.** - **Given** the IDIP journey drive, **when** the `steward-panel-unlock` leg runs, **then** it proves: a steward signs in through the app and lands on an unlocked Members tab with nothing typed; **a member approved in the app appears in that list**; a reload locks the seat and the phone unlocks it again; and sign-out-everywhere returns the tab to sign-in. --- ## Testing Decisions **What a good test is here.** Every test in this feature drives a **seam's external behaviour** and asserts what a steward or the wallet would observe: an HTTP answer, a rendered field, a state flag, a refusal. None reaches into how a box is opened, how a list is memoised, or which function called which. The security properties are stated as observable facts — *the ciphertext is handed out once and then gone*, *a mismatch leaves the seat locked*, *no cached row is ever rendered* — so that a re-implementation that keeps the promises keeps the tests green. **Seams (confirmed with Ben at this spec's gate) — three, plus one drive leg.** 1. **The app door's HTTP surface** (`internal/idp`, existing seam test `appdoor_seam_test.go`). Proves: the sealing key rides **panel** codes only; the present route accepts a sealed box for such challenges only; the status poll hands the ciphertext over **once** and then it is deleted; an ordinary service sign-in never carries or relays one; the arm is single-use and dies with the challenge. Prior art in the same file and in `appdoorpage_seam_test.go`, `presented_seam_test.go`, `signin_revocation_seam_test.go` — table-driven Go tests over the mounted handlers with an injected verifier (`fake_verifier_test.go`), no live KERIA. 2. **The control plane's session resolver** (`internal/controlapi`). Proves: a signed sign-out-everywhere sets the identity's panel epoch; panel requests carrying a cookie minted before it resolve to no session; requests to other services and other identities' cookies are unaffected; a bad signature is refused. Prior art: the existing session/front-door seam tests in that package (stateless-cookie encode/decode + the forward_auth check) and `internal/idp/signout_seam_test.go`. 3. **The dashboard's injected steward-bundle loader** behind the signing-session module (`dashboard/tests/unit/signingSession.test.ts`, `unlockSigningDialog.test.ts`, `idipRosterPanel.test.ts`, `membersIdipLedger.test.ts` are the prior art). One seam covers **both** halves, because the ledger read rides the same bundle as the unlock: a fake bundle returns ledger rows and inbox items, or throws, and the tests assert the rendered contract — `data-status="seat-unlocked"` / `"seat-locked"`, `data-unlocked-by="phone"` / `"words"`, `data-field="ledger-members"` with `data-source="community-ledger"`, the provenance line, the removed-member row, the absent inbox section, PU-M1u's no-rows, PU-M0x's two causes, and `data-action="lock-steward-actions"`. **No new dashboard seam is added.** **Beside the seams.** The bundle's new read verbs (ledger + inbox) are unit tested in `app/tests/unit` the way the existing steward verbs are (injected signify connection, no network — prior art `app/tests/unit/keri/rekey.test.ts`, `keriwebDoors.test.ts`). Golden fixtures follow #1301's discipline: real KERIA bytes in a fixture dir, so no container and no network is needed to prove a ledger read or a seal walk. **The drive leg.** One new leg in the IDIP journey (`app/tests/e2e/journey.idip.spec.ts`), named `steward-panel-unlock` per ADR 0282: app sign-in → unlocked Members with nothing typed → an app-approved member visible → reload locks → phone unlocks → sign-out-everywhere returns to sign-in. Session-class work (live doors), not a swarm ticket. **Wireframe conformance.** The `code-review` Design axis and `design-verify` check the built screens against `docs/ux/wireframes/panel-unlock/` and the amended `p6-s1i-members.html`; the field renames in those files (`idip-roster` → `ledger-members`, `signing-unlocked` → `seat-unlocked`, `lock-signing` → `lock-steward-actions`) are the literal contract. --- ## Out of Scope - **Removing the App-only switch from the code** — #1910, a **prerequisite** that lands first because it rewrites the same components. Removing it must not re-close any door (DDR 0284). - **The *replace your twelve words* screen** — #1914. This spec only gates the wallet copy line on it. - **A scoped or delegated key (C1)** — ADR 0282 d.1 accepted the passcode handover for v1 and named C1 the later tightening. The handover's slot can carry a different secret later without changing a screen. - **An idle timer** — rejected by ADR 0282 d.3; a seat ends at Lock, reload, tab close, sign-out, or the 12 h panel session's end. There is no other timer. - **A session list, device names or a sign-in log in the wallet** — ADR 0282 d.4 and DDR 0246 d.11. - **A gateway-built member list** — ADR 0235 d.6 (see decision 8). - **Reviving the roster as standing**, the roster wire, `pending-*` states, or per-steward registries — all retired by ADR 0235. - **Changes to the Doorkeeper/verifier, sign-in verification, or service access** — ADR 0236 stands untouched; this feature adds no new door check. - **matou-app's implementation** — named here as obligations; its tickets are filed on that repo. - **The second community, cross-community credentials, and the IDIP wallet app** — map #1293's *not yet specified* items. - **Folding removed members behind a "show past members" disclosure** — a layout call left to review; the *no longer a member* **state** is in scope either way. --- ## Further Notes - **Why the words never retire.** DDR 0284 removed the only switch that could have closed them, using ADR 0282 d.5's own reasoning: a flat phone, a borrowed laptop or an uninstalled app must never leave a steward unable to act. Every locked screen in this feature therefore carries the words link, unconditionally. - **The accepted limit, stated plainly.** An unlocked panel tab holds the steward's **whole identity** until it locks. "Temporary" and "take back" are what the browser does, not what the keys enforce (ADR 0282 d.1). The copy says so; the real remedy for a copied passcode is replacing the twelve words (ADR 0195 rung 2, which **preserves** the steward's AID and the community group AID — DDR 0284's correction), and that screen is #1914. - **A known tension worth naming.** PU-M0 says the panel *cannot* read the records without the seat. Strictly, the gateway can read the witnessed ledger (that is how the door checks a presented holder's liveness, #1887), so a server-built list is technically possible. The design rules it out on purpose: the panel shows **the steward's own seat's view**, which is also the only view that can carry the per-steward admin inbox, and a gateway member list is what ADR 0235 d.6 refused. If that is ever revisited, it is a new ruling, not an implementation detail. - **Numbering history on this ticket.** Comments before 2026-09-27 call the handover ADR "0281"; it is **ADR 0282** (DDR 0281 is the branding decision). The wireframe PR's "DDR 0282 / ADR 0283" numbering landed as **DDR 0284**. Anything citing 0281 or 0283 for this feature means 0282 / 0284. - **Ordering with the wider arc.** Nothing here depends on the wallet sign-in spec's open tickets beyond the app door existing, which it does. The ledger half (slice 1) can be worked the moment #1910 lands. --- *Written by `/to-spec` on #1886 against ADR 0282 + DDR 0284 and the `panel-unlock` flow/wireframes on main. Seams, the cross-origin handover mechanism, and scope confirmed with Ben in session 2026-09-27.* 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Author
Member

TICKETED 2026-09-27 (/to-tickets; Ben confirmed granularity, the blocking edges and cross-repo filing). 10 tickets, 16 native blocking edges, cross-repo included. No docs/slices/panel-unlock.yaml was built — a single-feature spec arriving long after the 2026-07-25 fan-in has no cross-feature coupling for /slice-map to find (Ben's call) — so each ticket carries its own task manifest (interface, seam, acceptance, depends_on, out_of_scope, needs_human_decision) per PROCESS.md's autonomy contract.

idss

Ticket Blocked by
#1930 1/7 steward bundle reads the community ledger — frontier, start now
#1931 2/7 Members lists the ledger, no list without the seat (#1886's fix) #1930, #1910
#1932 3/7 the admin inbox reads the steward's own agent #1931
#1933 4/7 the app door relays the sealed passcode, panel-only #1910
#1934 5/7 the panel unlocks the seat from the phone #1933, #1931
#1935 6/7 sign out of the control panel everywhere #1931
#1936 7/7 drive leg steward-panel-unlock (ready-for-session) #1932, #1934, #1935, matou-app#663–665

matou-app: #663 the approve card's unlock line + arming/sealing (blocked by #1933) → #664 the unlock-only card (blocked by #663); #665 the sign-out-everywhere row (blocked by #1935, second copy line gated on #1914).

Two things settled while ticketing:

  1. #1910 was design-unblocked (needs-design → ready-for-agent, commented there). DDR 0284 decision 4 is its design and enumerates its code sites; the label predated the DDR. It gates #1931 and #1933, so the whole set sat behind a stale label.
  2. #1933's edge on #1910 is conflict-avoidance, not semantics — the relay does not care whether the switch exists, but both rewrite the same internal/idp read sites. Ben chose to keep the edge; #1930 keeps the frontier non-empty either way.

Deliberate scope split worth knowing when reviewing #1931: it ships PU-M0 with the twelve-words door only. The "approve on your phone" door arrives with #1934. Everything else on that screen is final, so a Design-axis review of #1931 alone should not read the missing button as drift.

🤖 Generated with Claude Code

https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY

**TICKETED 2026-09-27** (`/to-tickets`; Ben confirmed granularity, the blocking edges and cross-repo filing). **10 tickets, 16 native blocking edges, cross-repo included.** No `docs/slices/panel-unlock.yaml` was built — a single-feature spec arriving long after the 2026-07-25 fan-in has no cross-feature coupling for `/slice-map` to find (Ben's call) — so each ticket carries its own **task manifest** (`interface`, `seam`, `acceptance`, `depends_on`, `out_of_scope`, `needs_human_decision`) per PROCESS.md's autonomy contract. **idss** | Ticket | Blocked by | |---|---| | **#1930** 1/7 steward bundle reads the community ledger | — **frontier, start now** | | **#1931** 2/7 Members lists the ledger, no list without the seat (**#1886's fix**) | #1930, #1910 | | **#1932** 3/7 the admin inbox reads the steward's own agent | #1931 | | **#1933** 4/7 the app door relays the sealed passcode, panel-only | #1910 | | **#1934** 5/7 the panel unlocks the seat from the phone | #1933, #1931 | | **#1935** 6/7 sign out of the control panel everywhere | #1931 | | **#1936** 7/7 drive leg `steward-panel-unlock` (`ready-for-session`) | #1932, #1934, #1935, matou-app#663–665 | **matou-app:** **#663** the approve card's unlock line + arming/sealing (blocked by #1933) → **#664** the unlock-only card (blocked by #663); **#665** the sign-out-everywhere row (blocked by #1935, second copy line gated on #1914). **Two things settled while ticketing:** 1. **#1910 was design-unblocked** (`needs-design` → `ready-for-agent`, commented there). DDR 0284 decision 4 *is* its design and enumerates its code sites; the label predated the DDR. It gates #1931 and #1933, so the whole set sat behind a stale label. 2. **#1933's edge on #1910 is conflict-avoidance, not semantics** — the relay does not care whether the switch exists, but both rewrite the same `internal/idp` read sites. Ben chose to keep the edge; #1930 keeps the frontier non-empty either way. **Deliberate scope split worth knowing when reviewing #1931:** it ships PU-M0 with the **twelve-words door only**. The *"approve on your phone"* door arrives with #1934. Everything else on that screen is final, so a Design-axis review of #1931 alone should not read the missing button as drift. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Owner

Every story is closed (#1930–#1936, #1938, #1939) and the follow-up defects with them (#1957–#1959, #1977). The live proof landed 2026-10-09 on the Whakatōhea Demo: Ben confirmed the panel unlocks at control-panel sign-in through the sign-in door (#1936). Spec swept closed.

Every story is closed (#1930–#1936, #1938, #1939) and the follow-up defects with them (#1957–#1959, #1977). The live proof landed 2026-10-09 on the Whakatōhea Demo: Ben confirmed the panel unlocks at control-panel sign-in through the sign-in door (#1936). Spec swept closed.
ben closed this issue 2026-10-09 18:32:57 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#1929
No description provided.