Spec: straight in, rule 0 names confirming "Use another" too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−1
docs/superpowers/specs/2026-11-14-oficina-id-native.md+1 −1
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.765s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.088s ok amadan.net/oficina/home/internal/home 52.944s ok amadan.net/oficina/home/internal/home/directorydata 1.413s ok amadan.net/oficina/home/internal/home/logtest 0.005s ok amadan.net/oficina/home/internal/home/seal 0.002s ok amadan.net/oficina/home/internal/home/sealtest 0.002s ok amadan.net/oficina/home/internal/home/wisp 0.057s ok amadan.net/oficina/home/internal/operator 6.470s ok amadan.net/oficina/home/internal/operatorlaunch 4.125s ok amadan.net/oficina/home/internal/provisioner 49.953s cd handoff && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/handoff 0.672s 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.126s cd dashboard && CGO_ENABLED=0 go test ./... ok amadan.net/oficina/home/dashboard (cached) cd connect && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/connect 1.365s ok amadan.net/oficina/home/connect/linkstore 0.470s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.106s ? 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 393.138s ok amadan.net/oficina/home/internal/operator 83.231s ok amadan.net/oficina/home/internal/operatorlaunch 22.406s ok amadan.net/oficina/home/internal/home/directorydata 24.308s ok amadan.net/oficina/home/internal/provisioner 420.774s cd handoff && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/handoff 12.995s 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.933s cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/dashboard 1.067s cd connect && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/connect 6.115s ok amadan.net/oficina/home/connect/linkstore 6.463s cd teammode && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/teammode 1.981s ? 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 0fbe474..35c177b 100644 |
| --- a/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| +++ b/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| @@ -166,7 +166,7 @@ The browser `Finish` keeps today's shape (`handoff/http.go` `Finish`: `Store.Fin |
| **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: |
| -0. **This app's own sign-in comes first.** If the app's last route was "Other ways to sign in…" (a self-hosted or local account), that account opens and nothing goes straight in; straight in applies only when the app's last route was Oficina ID, or there was none. Opening "Other ways…" at any point stops straight in the same way (a launch in flight is abandoned) until the person comes back to Oficina ID; any Oficina ID action (email, passkey, Continue, picking an identity or a team) counts as coming back. Signed in, opening and closing "Other ways…" disturbs nothing: the session stays as it is. |
| +0. **This app's own sign-in comes first.** If the app's last route was "Other ways to sign in…" (a self-hosted or local account), that account opens and nothing goes straight in; straight in applies only when the app's last route was Oficina ID, or there was none. Opening "Other ways…" at any point stops straight in the same way (a launch in flight is abandoned) until the person comes back to Oficina ID; any Oficina ID action (email, passkey, Continue, picking an identity or a team, confirming "Use another") counts as coming back. Signed in, opening and closing "Other ways…" disturbs nothing: the session stays as it is. |
| 1. **This app's own last (identity, team)** is still on the device: back to that team, no screen. Unchanged. If that identity is still here but its team is gone, the app keeps that identity and goes on as rule 2 with it, even with other identities on the device. |
| 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" (which adds one) and "Other ways to sign in…". Picking one goes on as rule 2. Back from a later step returns here, in the same order. If identities are removed while it shows, the list follows: one left is "Continue as <label>", none is Welcome. |