Passkeys: Base's apps may use id.oficina.works
Human
Prompt
Add `9U4A84C4WK.works.oficina.base` to `nativeAppIDs` (internal/home/native_passkey.go ~:287-294) with a test that the AASA `webcredentials.apps` list contains it. (Base native slice 1, Task 2: Base's app ID can use passkeys.)
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
The association file lists Base's App ID (works.oficina.base) with the other six, so Base's iPhone and Mac apps can sign in with a passkey (Base native slice 1, Task 2). The test pins the full list and checks Base's ID by name; the spec's count goes to seven.
Agent notes
make test (vet, fmt, build, go, race) green with the pinned go1.26.5. Not deployed: deploy waits for Base's Task 17, with Home's promote + restart; curl id.oficina.works/.well-known/apple-app-site-association afterwards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+9
−3
docs/superpowers/specs/2026-11-14-oficina-id-native.md+1 −1internal/home/native_passkey.go+2 −1internal/home/native_passkey_test.go+6 −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.955s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.379s ok amadan.net/oficina/home/internal/home 57.017s ok amadan.net/oficina/home/internal/home/directorydata 1.389s ok amadan.net/oficina/home/internal/home/logtest 0.003s ok amadan.net/oficina/home/internal/home/seal 0.003s ok amadan.net/oficina/home/internal/home/sealtest 0.003s ok amadan.net/oficina/home/internal/home/wisp 0.041s ok amadan.net/oficina/home/internal/operator 6.509s ok amadan.net/oficina/home/internal/operatorlaunch 4.126s ok amadan.net/oficina/home/internal/provisioner 49.126s 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.118s 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.407s ok amadan.net/oficina/home/connect/linkstore 0.515s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.100s ? 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 341.367s ok amadan.net/oficina/home/internal/operator 82.622s ok amadan.net/oficina/home/internal/operatorlaunch 22.385s ok amadan.net/oficina/home/internal/home/directorydata 23.680s ok amadan.net/oficina/home/internal/provisioner 399.443s cd handoff && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/handoff 12.940s 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.965s cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/dashboard 1.063s cd connect && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/connect 6.251s ok amadan.net/oficina/home/connect/linkstore 6.361s cd teammode && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/teammode 1.941s ? 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 f55e862..6519ad4 100644 |
| --- a/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| +++ b/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| @@ -76,7 +76,7 @@ A blocked new device sees: "Too many attempts for this address today. Use a pass |
| ## 5. Native passkeys (slice A, Q1a) |
| -**Associated domain.** Every build carries `webcredentials:id.oficina.works`. The credential role serves a static `/.well-known/apple-app-site-association` (`application/json`, no redirect). It lists each distinct App ID `9U4A84C4WK.works.oficina.<app>`, which is 6 if Mac and iPhone share bundle IDs and up to 12 if not (Equipo joined on 2026-11-21, per its own spec's E4). It holds no account-authored text and no `applinks`. The profiles, this file and Apple's CDN fetch are all on slice A's critical path. |
| +**Associated domain.** Every build carries `webcredentials:id.oficina.works`. The credential role serves a static `/.well-known/apple-app-site-association` (`application/json`, no redirect). It lists each distinct App ID `9U4A84C4WK.works.oficina.<app>`, which is 7 if Mac and iPhone share bundle IDs and up to 14 if not (Equipo joined on 2026-11-21, per its own spec's E4; Base on 2026-11-23, per Base's native slice 1 plan). It holds no account-authored text and no `applinks`. The profiles, this file and Apple's CDN fetch are all on slice A's critical path. |
| **Sign-in.** |
| 1. `passkey/begin {pending?}` returns discoverable WebAuthn options, so "Sign in with a passkey" needs no email. With `pending` it is restricted to that person. The challenge is single-use, lasts 5 minutes, is bound to the device key, and counts within `home_id_ceremonies`. |
diff --git a/internal/home/native_passkey.go b/internal/home/native_passkey.go| index f2a5c41..1f12e42 100644 |
| --- a/internal/home/native_passkey.go |
| +++ b/internal/home/native_passkey.go |
| @@ -281,7 +281,7 @@ func (a *App) nativePasskeyFinish(w http.ResponseWriter, r *http.Request) { |
| // The association file (§5). Static, application/json, no redirect, no |
| // applinks and no account-authored text: it lists each App ID allowed to use |
| // passkeys for id.oficina.works. Mac and iPhone share bundle IDs, so there |
| -// are six. |
| +// are seven. |
| const aasaPath = "/.well-known/apple-app-site-association" |
| var nativeAppIDs = []string{ |
| @@ -291,6 +291,7 @@ var nativeAppIDs = []string{ |
| "9U4A84C4WK.works.oficina.calendar", |
| "9U4A84C4WK.works.oficina.memoria", |
| "9U4A84C4WK.works.oficina.equipo", |
| + "9U4A84C4WK.works.oficina.base", |
| } |
| var aasaBody = func() []byte { |
diff --git a/internal/home/native_passkey_test.go b/internal/home/native_passkey_test.go| index a4035ab..70d4335 100644 |
| --- a/internal/home/native_passkey_test.go |
| +++ b/internal/home/native_passkey_test.go |
| @@ -4,6 +4,7 @@ import ( |
| "encoding/base64" |
| "encoding/json" |
| "net/http/httptest" |
| + "slices" |
| "strings" |
| "testing" |
| @@ -176,10 +177,14 @@ func TestNativeAssociationFile(t *testing.T) { |
| if err := json.Unmarshal(w.Body.Bytes(), &got); err != nil { |
| t.Fatal(err) |
| } |
| - want := []string{"9U4A84C4WK.works.oficina.calls", "9U4A84C4WK.works.oficina.docs", "9U4A84C4WK.works.oficina.sheets", "9U4A84C4WK.works.oficina.calendar", "9U4A84C4WK.works.oficina.memoria", "9U4A84C4WK.works.oficina.equipo"} |
| + want := []string{"9U4A84C4WK.works.oficina.calls", "9U4A84C4WK.works.oficina.docs", "9U4A84C4WK.works.oficina.sheets", "9U4A84C4WK.works.oficina.calendar", "9U4A84C4WK.works.oficina.memoria", "9U4A84C4WK.works.oficina.equipo", "9U4A84C4WK.works.oficina.base"} |
| if len(got) != 1 || len(got["webcredentials"]) != 1 || strings.Join(got["webcredentials"]["apps"], ",") != strings.Join(want, ",") { |
| t.Fatal("aasa content", w.Body.String()) |
| } |
| + // Base's native app signs in with Oficina ID too (Base native slice 1). |
| + if !slices.Contains(got["webcredentials"]["apps"], "9U4A84C4WK.works.oficina.base") { |
| + t.Fatal("Base's App ID missing", w.Body.String()) |
| + } |
| if strings.Contains(w.Body.String(), "applinks") { |
| t.Fatal("applinks in slice A") |
| } |