Spec: Oficina ID native, straight in with one identity (Paul, 2026-11-19)
Amends §9 slice A: one Oficina ID on the device signs an app straight in with no screen at all; two or more ask which; records only a newer app can read don't count; "Use another Oficina ID" lives in the account menu and still replaces the identity in slice A; signing out of the only ID returns to Welcome. Team step rules unchanged. Doc only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+12
−2
docs/superpowers/specs/2026-11-14-oficina-id-native.md+12 −2
CI passed — 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.860s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.122s ok amadan.net/oficina/home/internal/home 50.668s ok amadan.net/oficina/home/internal/home/directorydata 1.364s ok amadan.net/oficina/home/internal/home/logtest 0.004s ok amadan.net/oficina/home/internal/home/seal 0.004s ok amadan.net/oficina/home/internal/home/sealtest 0.002s ok amadan.net/oficina/home/internal/home/wisp 0.047s ok amadan.net/oficina/home/internal/operator 6.279s ok amadan.net/oficina/home/internal/operatorlaunch 4.107s ok amadan.net/oficina/home/internal/provisioner 48.255s cd handoff && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/handoff 0.660s ok amadan.net/oficina/home/handoff/seal 0.002s cd roster && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/roster 5.121s cd dashboard && CGO_ENABLED=0 go test ./... ok amadan.net/oficina/home/dashboard 0.010s cd connect && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/connect 1.334s ok amadan.net/oficina/home/connect/linkstore 0.422s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.097s ? amadan.net/oficina/home/teammode/teammodetest [no test files] === race === go test -race -count=1 ./internal/home/ ./internal/operator/ ./internal/operatorlaunch/ ./internal/home/directorydata/ ok amadan.net/oficina/home/internal/home 382.181s ok amadan.net/oficina/home/internal/operator 82.246s ok amadan.net/oficina/home/internal/operatorlaunch 22.383s ok amadan.net/oficina/home/internal/home/directorydata 23.362s ok amadan.net/oficina/home/internal/provisioner 415.835s cd handoff && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/handoff 12.755s ok amadan.net/oficina/home/handoff/seal 1.014s cd roster && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/roster 6.911s cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/dashboard 1.061s cd connect && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/connect 5.940s ok amadan.net/oficina/home/connect/linkstore 6.270s cd teammode && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/teammode 1.933s ? amadan.net/oficina/home/teammode/teammodetest [no test files]
diff --git a/docs/superpowers/specs/2026-11-14-oficina-id-native.md b/docs/superpowers/specs/2026-11-14-oficina-id-native.md| index 95dcbe6..8e40088 100644 |
| --- a/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| +++ b/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| @@ -1,6 +1,6 @@ |
| # 🤖 Oficina ID: the native slice |
| -Status: revision 6: Fable's fifth-pass finding applied; ready for Paul. Author: Claude (`claude-opus-5-5`) against Home `e9829fd`. Fable reviewed revisions 1–5 (`4cc21a8`, `7acf2a1`, `575e824`, `1b74278`, `b6aea35`). Each pass returned READY AFTER FIXES, and every finding is applied; the fifth pass found one defect, fixed here. No implementation, deployment or merge approval. |
| +Status: revision 6: Fable's fifth-pass finding applied; ready for Paul. Author: Claude (`claude-opus-5-5`) against Home `e9829fd`. Fable reviewed revisions 1–5 (`4cc21a8`, `7acf2a1`, `575e824`, `1b74278`, `b6aea35`). Each pass returned READY AFTER FIXES, and every finding is applied; the fifth pass found one defect, fixed here. No implementation, deployment or merge approval. Amended 2026-11-19 by Paul's straight-in ruling (§9, §16), doc only; built in rastrillo/native `native/oficina-id-straight-in`. |
| ## 1. Decision and boundary |
| @@ -163,7 +163,15 @@ The browser `Finish` keeps today's shape (`handoff/http.go` `Finish`: `Store.Fin |
| `works.oficina.id.changed` tells the other apps to reread. |
| -**Slice A (Docs):** one identity; onboarding: Welcome, then "Sign in with a passkey" or Email → Code, then a passkey if required, then Team (skipped when there is one; the empty state when there are none). A second app finds the identity and offers "Continue as <label>" or "Use another"; the "Make a passkey" nudge; the zero-teams help text. |
| +**Slice A (Docs):** one identity; onboarding: Welcome, then "Sign in with a passkey" or Email → Code, then a passkey if required, then Team (skipped when there is one; the empty state when there are none). A second app finds the identity and goes straight in (amended by Paul's ruling of 2026-11-19, below; it used to offer "Continue as <label>" or "Use another"); the "Make a passkey" nudge; the zero-teams help text. |
| + |
| +**Straight in (Paul's ruling, 2026-11-19).** Launch decides, in this order: |
| +1. **This app's own last (identity, team)** is still on the device: back to that team, no screen. Unchanged. |
| +2. **Exactly one identity this app can read:** straight in, **no screen at all**: the directory's teams, then the Team step's rules unchanged (one team: signed in; several: the Team step; none: the zero-teams help text). A record only a newer app can read does not count, here or in rule 3; with nothing else on the device the app shows Welcome with "update the app". |
| +3. **Two or more:** "Choose an Oficina ID", a list of them (the device's last used first), plus "Use another Oficina ID" and "Other ways to sign in…". Picking one goes on as rule 2. Back from a later step returns here. |
| +4. **None:** Welcome. |
| + |
| +Going straight in that fails without a session to fall back on (§11) — Oficina ID refusing the proof, say — lands on "Continue as <label>" with the error, so the person sees who they are, Try again and "Use another". An app waiting on Welcome when another app signs in makes the same decision at once. **"Use another Oficina ID" lives in the account menu** of the signed-in app: in slice A it still replaces the identity, so it confirms ("Sign out of <label> and use another Oficina ID?"), signs it out properly for every app on the device (§10), and goes to Email; cancelling changes nothing. **Signing out of the only identity returns to Welcome** in this app and in every other, and nothing signs back in until someone does. |
| **Slice A2 adds:** up to 5 identities; the account menu (identities, the teams under each, Add, Manage, "Sign out of <label>"), with ⌃⌘1…9 on Mac and a per-window (identity, team), blocked mid-call or with unsaved edits; the Keymail sheet: ephemeral `ASWebAuthenticationSession` (`prefersEphemeralWebBrowserSession = true`, so no Safari cookies). The approval mints **no Home browser session**, only a one-time `start` returned to a fixed `works.oficina.<app>://id` callback, which the app redeems with its proof; the Devices page. |
| @@ -250,6 +258,8 @@ A(i): native sign-in skips Continue. A(ii)(a): one Continue tap signs that brows |
| No questions remain open. |
| +**2026-11-19, straight in (amends §9 slice A).** When the device holds exactly one Oficina ID an app signs straight in with no screen at all; "Use another Oficina ID" lives in the account menu; with two or more the app asks which. Identities only a newer app can read don't count. The Team step's rules are unchanged. §9 carries the exact behaviour. |
| + |
| ## Appendix A. Evidence |
| **Today:** no device holds an identity; "accounts" are host-plus-cookie (`native-levelup/reports/calls.md` §B3, `docs.md` §3). rastrillo/native's browser approval keeps a pending map in memory (5 minutes, 256 entries; `rastrillo-native/server/auth.go:23-37`). Calls has a one-slot store (`calls.md` §C). Keychain items have no access group (`sheets.md` §3). |