spec: panel unlock — the steward seat unlocks at control-panel sign-in, and Members lists the community ledger (#1886) #1929
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
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 amendedp6-members-idip/p6-s1i-members.html(idip-roster→ledger-members),p6-members-idip/p6-s11i-unlock-signing.html(re-roled to the fallback) andwallet-signin/ws-a2-approve-card.html(the unlock line).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, atid.<apex>; andthe 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 beforethe panel's first line of JavaScript runs. (The SSO cookie is
Domain=<apex>anddoes 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.
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.
and asks the bridge to complete the handover for the sign-in it just finished.
bridge relays ciphertext only, hands it out once, then deletes it.
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-statusnaming the armed wait. It is the drawn screen for the panel iswaiting 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 sealedbox 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 sessionepoch: 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
lockedorunlocked, and when unlocked it knows whether it camefrom 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.
Lockdrops the passcode from the bundle's memoryat 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:
descriptor names (
community.registry, ADR 0235 d.4): holder AID, schema(Membership / Committee), issuing steward AID, issued-at, revoked state, SAID;
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)
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.
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).
10. Slices (order, for
slice-map/to-tickets)unlock. It ships on its own: the words seat already exists, so #1886's
symptom is fixed before any handover is built.
seat's phone source, PU-M0/M0q/M0x.
the wallet row (with #1914 gating the second copy line).
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 andthe wireframes' own field names.
Signing in with the unlock
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.
As a plain member, I want no unlock line anywhere, so that a line about steward actions never appears where it cannot apply.
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.
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.
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.
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.
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.
As a steward, I want the armed handover to be single-use and short-lived, so that one approve can unlock exactly one computer.
As a community, I want the bridge to carry a box it cannot open, so that the gateway never holds a steward's passcode.
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.
Unlocking a locked panel
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.
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.
As a steward, I want a code on the panel that my phone can answer, so that I can unlock without typing.
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.
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.
As a steward who changed my mind, I want the panel to stay locked, so that Not now means nothing happened.
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.
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.
The unlocked Members tab
As a steward, I want the Members list to be the community ledger, so that it shows who the community actually admitted.
As a steward who approved someone in the app, I want them in the panel's list, so that both surfaces show one community.
As a steward, I want ISSUED BY to name the steward, so that the column says only what the ledger knows.
As a steward, I want a removed member to keep a row, so that I can tell "was removed" from "never joined".
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.
As a steward, I want a provenance line under the list, so that I never mistake a cached display name for a signed fact.
As a steward, I want names and usernames to keep working, so that the list is readable even though the ledger holds AIDs.
As a community, I want the roster to be display-only, so that nothing unsigned is ever load-bearing again.
pending-*states, no roster wire, and no path in this feature writes standing to it.As a steward, I want my own admin inbox above the list, so that approving is where the people are.
As a steward, I want approving to take one press, so that the label stops promising a ceremony I no longer perform.
As a steward with an empty inbox, I want silence, so that a zero never reads as a fault.
As a founder on day one, I want my own row and an invitation, so that a new community never looks broken.
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.
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.
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.
Taking it back from the phone
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.
As a steward, I want signing out everywhere to end only my panel sessions, so that the act does exactly what it says.
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.
As a steward, I want the wallet to state the outcome without inventing a number, so that it never claims more than it knows.
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.
Honesty, docs and proof
As a steward, I want locked and unreachable to never wear the same words, so that I always know which way it failed.
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.
panel-unlockflow and PU wireframes are amended if any copy changed, and STATUS.md is updated in the same commit (CLAUDE.md's rule).As Ben, I want the whole act proven once on a real community, so that the demo failure that filed #1886 cannot recur silently.
steward-panel-unlockleg 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.
internal/idp, existing seam testappdoor_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 mountedhandlers with an injected verifier (
fake_verifier_test.go), no live KERIA.internal/controlapi). Proves: asigned 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.module (
dashboard/tests/unit/signingSession.test.ts,unlockSigningDialog.test.ts,idipRosterPanel.test.ts,membersIdipLedger.test.tsare the prior art). One seam covers bothhalves, 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"withdata-source="community-ledger", the provenance line, the removed-memberrow, 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/unitthe way the existing steward verbs are (injectedsignify connection, no network — prior art
app/tests/unit/keri/rekey.test.ts,keriwebDoors.test.ts). Golden fixtures follow #1301's discipline: real KERIAbytes 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-unlockper ADR 0282: app sign-in → unlocked Members withnothing 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-reviewDesign axis anddesign-verifycheck the built screens against
docs/ux/wireframes/panel-unlock/and theamended
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
lands first because it rewrites the same components. Removing it must not
re-close any door (DDR 0284).
wallet copy line on it.
handover for v1 and named C1 the later tightening. The handover's slot can
carry a different secret later without changing a screen.
close, sign-out, or the 12 h panel session's end. There is no other timer.
and DDR 0246 d.11.
pending-*states, orper-steward registries — all retired by ADR 0235.
— ADR 0236 stands untouched; this feature adds no new door check.
filed on that repo.
— map #1293's not yet specified items.
call left to review; the no longer a member state is in scope either way.
Further Notes
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.
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.
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.
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.
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-specon #1886 against ADR 0282 + DDR 0284 and thepanel-unlockflow/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
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. Nodocs/slices/panel-unlock.yamlwas built — a single-feature spec arriving long after the 2026-07-25 fan-in has no cross-feature coupling for/slice-mapto 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
steward-panel-unlock(ready-for-session)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:
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.internal/idpread 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
adminInbox— Members' "waiting for approval" has never worked on a live community (#1932 built against a fake) #1977Every 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.