Spec: one way in per screen, the rest behind "Other ways to sign in" (Paul, 2026-11-19)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+38
−19
docs/superpowers/specs/2026-11-19-smart-door.md+38 −19
CI cancelled — superseded by a newer push — run details
CI log
amadan: .amadan/timeout: this job's budget is 20m0s (this runner allows up to 30m0s) === vet === CGO_ENABLED=0 go vet ./... CGO_ENABLED=0 go vet -tags browser ./internal/home/ cd handoff && CGO_ENABLED=0 go vet ./... cd roster && CGO_ENABLED=0 go vet ./... cd dashboard && CGO_ENABLED=0 go vet ./... cd connect && CGO_ENABLED=0 go vet ./... cd teammode && CGO_ENABLED=0 go vet ./... === fmt === === build === CGO_ENABLED=0 go build ./... CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/home ./cmd/oficina ./internal/operatorlaunch cd handoff && CGO_ENABLED=0 go build ./... cd roster && CGO_ENABLED=0 go build ./... cd dashboard && CGO_ENABLED=0 go build ./... cd connect && CGO_ENABLED=0 go build ./... cd teammode && CGO_ENABLED=0 go build ./... === go-test === CGO_ENABLED=0 go test -count=1 ./... ? amadan.net/oficina/home/cmd/home [no test files] ok amadan.net/oficina/home/cmd/home-placeholder 0.933s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.094s amadan: job cancelled — a newer push superseded it
Intent
diff --git a/docs/superpowers/specs/2026-11-19-smart-door.md b/docs/superpowers/specs/2026-11-19-smart-door.md| index 1026cc9..bcfdb61 100644 |
| --- a/docs/superpowers/specs/2026-11-19-smart-door.md |
| +++ b/docs/superpowers/specs/2026-11-19-smart-door.md |
| @@ -49,31 +49,49 @@ remembered method, and Home remembering for itself. |
| ## What each door shows |
| -The method used last on this browser goes first, as the primary button. The |
| -other methods follow an "or". Being first is the only cue. There is no |
| -"Last used" label (Paul, 2026-11-19: it "can easily be inferred"). Every remembered door ends |
| -with the ghost button **Use a different email**, which forgets this browser's |
| -record. Unless marked *new*, all copy is rastrillo's approved copy. |
| +**One way in per screen** (Paul, 2026-11-19: "We shouldn't offer two options |
| +on the same screen. One option, and below it 'other ways to sign in'"). The |
| +door shows the method used last on this browser as its single primary |
| +action. Below it is a quiet link, **Other ways to sign in**. Nothing labels |
| +the remembered method as last used: being the one on offer is the cue (Paul, |
| +same day: it "can easily be inferred"). Unless marked *new*, all copy is |
| +rastrillo's approved copy. |
| + |
| +**Other ways to sign in** is a page of its own, not a disclosure, so it needs |
| +no script. It is a chooser: a short list of rows, each opening a one-option |
| +screen for that method, plus **Back**. **Use a different email** moves there |
| +as the last row. It forgets this browser's record (`Forget`) and opens the |
| +email field. |
| **An app's door** (Docs shown; any app with Oficina ID configured): |
| -| Last used here | First | Then | |
| +| Last used here | The one option | Other ways lists | |
| |---|---|---| |
| -| nothing | *new* **Continue with Oficina ID** | or · Email field · Continue | |
| -| Oficina ID | *new* **Continue with Oficina ID** | or · Continue as {address}, if one is remembered, else the field · Use a different email | |
| -| emailed link | **Continue as {address}** | or · Continue with Oficina ID · Use a different email | |
| -| Keymail | **Continue to Keymail** as {address} | or · Continue with Oficina ID · Use a different email | |
| +| nothing | *new* **Continue with Oficina ID** | Email me a link | |
| +| Oficina ID | *new* **Continue with Oficina ID**, "as {address}" under it if one is remembered | Email me a link ({address}) · Use a different email | |
| +| emailed link | **Continue as {address}** | Oficina ID · Use a different email | |
| +| Keymail | **Continue to Keymail**, as {address} | Oficina ID · Use a different email | |
| +| (email chosen) | Email field · **Continue** | Oficina ID | |
| -An app without Oficina ID configured gets rastrillo's screen unchanged, inside |
| -estilo's door. |
| +An app without Oficina ID configured has only email. It shows "Continue as |
| +{address}" or the field, and under it **Use a different email** takes the |
| +place of the Other ways link. |
| **id.oficina.works** (the brand is "Oficina ID"): |
| -| Last used here | First | Then | |
| +| Last used here | The one option | Other ways lists | |
| |---|---|---| |
| -| nothing | **Sign in with a passkey** | or · Email field, which also offers passkeys as autofill (WebAuthn conditional UI) · Continue | |
| -| passkey | **Sign in with your passkey** | or · Continue as {address} (or the field) · Use a different email | |
| -| emailed link / Keymail | **Continue as {address}** | or · Sign in with a passkey · Use a different email | |
| +| nothing | Email field · **Continue**. The field offers saved passkeys as autofill (WebAuthn conditional UI, `autocomplete="username webauthn"`), so a passkey holder never needs the list | Sign in with a passkey | |
| +| passkey | **Sign in with your passkey** | Email me a link ({address}) · Use a different email | |
| +| emailed link / Keymail | **Continue as {address}** | Sign in with a passkey · Use a different email | |
| + |
| +**What changes in rastrillo's screen.** Today its passkey door and ask door |
| +show the passkey button and the email form together, separated by "or", and |
| +its remembered doors end with a ghost "Use a different email" button. |
| +One-way-in becomes a `SigninScreen` option (`OneWay`, or a better name in |
| +review). It draws the single option plus the link, and adds the chooser as a |
| +new `Step`. rastrillo's other users keep today's screen unless they opt in. |
| +Oficina turns it on everywhere. |
| **Signed out** (every app): "You're signed out", **Sign in again**, and a |
| quiet *new* **Forget me on this device**, which posts to `Forget` for a shared |
| @@ -141,14 +159,15 @@ and is cleared. |
| button is the primary, that moves the page after load. On that door alone, |
| the button is drawn visible and disabled, with its space reserved; the |
| module enables it. Without script, the button stays disabled with a single |
| - line saying passkeys need JavaScript, and the email option sits right below |
| - it. |
| + line saying passkeys need JavaScript, and Other ways to sign in sits right |
| + below it. |
| - No new font and no icon font (never FOUT). |
| ## The work, in order |
| 1. **rastrillo:** `MethodFederated` + `Provider`, address carry-over, a |
| - federated slot in the `signin` partial, the |
| + federated slot in the `signin` partial, the one-way-in option and its |
| + Other ways chooser, the |
| passkey-door no-shift fix and the new strings. Browser drives and axe run |
| on every new state, as for the existing ones. Release as a minor version. |
| 2. **estilo:** `estilo-signin-screen`, rastrillo's `signin` partial inside the |