Spec: straight in, Fable's delta review (S-a, S-b, S-c)
"Other ways…" is usable from the spinner's start and "Continue as" stays actionable, with its notice, while the attempt carries on; signed in, opening and closing "Other ways…" disturbs nothing, and any Oficina ID action counts as coming back; "starts again" is defined as an Oficina ID action here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+3
−3
docs/superpowers/specs/2026-11-14-oficina-id-native.md+3 −3
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.739s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.094s ok amadan.net/oficina/home/internal/home 51.588s ok amadan.net/oficina/home/internal/home/directorydata 1.412s ok amadan.net/oficina/home/internal/home/logtest 0.007s ok amadan.net/oficina/home/internal/home/seal 0.003s ok amadan.net/oficina/home/internal/home/sealtest 0.002s ok amadan.net/oficina/home/internal/home/wisp 0.054s ok amadan.net/oficina/home/internal/operator 6.388s ok amadan.net/oficina/home/internal/operatorlaunch 4.128s ok amadan.net/oficina/home/internal/provisioner 49.513s cd handoff && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/handoff 0.668s ok amadan.net/oficina/home/handoff/seal 0.003s cd roster && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/roster 5.120s 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.341s ok amadan.net/oficina/home/connect/linkstore 0.439s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.098s ? amadan.net/oficina/home/teammode/teammodetest [no test files] === race === go test -race -count=1 ./internal/home/ ./internal/operator/ ./internal/operatorlaunch/ ./internal/home/directorydata/ amadan: job cancelled — a newer push superseded it
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 7015a73..0fbe474 100644 |
| --- a/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| +++ b/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| @@ -166,13 +166,13 @@ 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. |
| +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. |
| 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. |
| 4. **None:** Welcome. |
| -**While going straight in** the app shows a spinner ("Signing in") with "Other ways to sign in…" under it from the start. If it has not finished after about **8 seconds** it shows "Continue as <label>" with "Oficina ID is taking a while to answer. You can keep waiting or try again." The attempt carries on: if it then succeeds the app signs in, unless the person has chosen something on that screen meanwhile (Continue, Use another, Other ways), which abandons it. |
| +**While going straight in** the app shows a spinner ("Signing in") with "Other ways to sign in…" under it, usable from the start. If it has not finished after about **8 seconds** it shows "Continue as <label>" with "Oficina ID is taking a while to answer. You can keep waiting or try again." That screen stays fully usable, with its notice, while the attempt carries on underneath: if the attempt then succeeds the app signs in, unless the person has chosen something on that screen meanwhile (Continue, Use another, Other ways), which abandons it; however it ends, the notice goes. |
| **Where a failure lands:** |
| - **Home says the grant has ended** (signed out elsewhere, expired, revoked): the record is removed, Welcome with "You were signed out of Oficina ID on this device." (§3, §6). |
| @@ -180,7 +180,7 @@ The browser `Finish` keeps today's shape (`handoff/http.go` `Finish`: `Store.Fin |
| - **Not a member** of the team, and **a member with no link yet**: their own screens (§8), as from the Team step. |
| - **Anything else** (Oficina ID refusing the proof, offline with no cached teams, the keychain refusing): "Continue as <label>" with the error, Try again, "Use another Oficina ID" and "Other ways to sign in…". |
| -**An app waiting on Welcome** follows another app's sign-in only when an identity is **added** that was not on the device when it arrived at Welcome; it then makes the launch decision above, once however many notifications arrive. It follows nothing while a sign-in of its own is under way (a passkey, an email code), while its own sign-in ("Other ways…") is open, or after **this app's own sign-out** or Home ending its grant, until the app is next launched or the person starts again: one of several identities signing out never signs the app straight in as another, and a record that cannot be deleted never loops. If the person has left Welcome by the time the decision runs, nothing happens. |
| +**An app waiting on Welcome** follows another app's sign-in only when an identity is **added** that was not on the device when it arrived at Welcome; it then makes the launch decision above, once however many notifications arrive. It follows nothing while a sign-in of its own is under way (a passkey, an email code), while its own sign-in ("Other ways…") is open, or after **this app's own sign-out** or Home ending its grant, until the app is next launched or the person takes an Oficina ID action here (email, passkey, Continue, picking an identity or a team, or confirming "Use another"): one of several identities signing out never signs the app straight in as another, and a record that cannot be deleted never loops. If the person has left Welcome by the time the decision runs, nothing happens. |
| **"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. Asking changes nothing until the person confirms: the session, a renewal in flight and anything on screen carry on, so cancelling changes nothing. **Signing out** returns this app to Welcome, and every app that was using that identity; nothing signs back in until someone does (above), even with another identity on the device. A sign-out the keychain refuses says so ("Oficina ID couldn’t be removed from this device…") and this app stays signed out. |