3 files changed,
+4
−3
docs/superpowers/specs/2026-11-14-oficina-id-native.md
+1 −1
internal/home/native_passkey.go
+2 −1
internal/home/native_passkey_test.go
+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 1.010s
? amadan.net/oficina/home/cmd/oficina [no test files]
ok amadan.net/oficina/home/internal/guardstest 0.389s
ok amadan.net/oficina/home/internal/home 56.990s
ok amadan.net/oficina/home/internal/home/directorydata 1.390s
ok amadan.net/oficina/home/internal/home/logtest 0.006s
ok amadan.net/oficina/home/internal/home/seal 0.002s
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.486s
ok amadan.net/oficina/home/internal/operatorlaunch 4.122s
ok amadan.net/oficina/home/internal/provisioner 49.222s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok amadan.net/oficina/home/handoff 0.667s
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.124s
cd dashboard && CGO_ENABLED=0 go test ./...
ok amadan.net/oficina/home/dashboard 0.011s
cd connect && CGO_ENABLED=0 go test -count=1 ./...
ok amadan.net/oficina/home/connect 1.412s
ok amadan.net/oficina/home/connect/linkstore 0.463s
cd teammode && CGO_ENABLED=0 go test -count=1 ./...
ok amadan.net/oficina/home/teammode 0.102s
? 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 338.841s
ok amadan.net/oficina/home/internal/operator 82.780s
ok amadan.net/oficina/home/internal/operatorlaunch 22.391s
ok amadan.net/oficina/home/internal/home/directorydata 23.769s
ok amadan.net/oficina/home/internal/provisioner 400.206s
cd handoff && CGO_ENABLED=1 go test -race -count=1 ./...
ok amadan.net/oficina/home/handoff 12.874s
ok amadan.net/oficina/home/handoff/seal 1.015s
cd roster && CGO_ENABLED=1 go test -race -count=1 ./...
ok amadan.net/oficina/home/roster 6.956s
cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./...
ok amadan.net/oficina/home/dashboard 1.064s
cd connect && CGO_ENABLED=1 go test -race -count=1 ./...
ok amadan.net/oficina/home/connect 6.274s
ok amadan.net/oficina/home/connect/linkstore 6.247s
cd teammode && CGO_ENABLED=1 go test -race -count=1 ./...
ok amadan.net/oficina/home/teammode 1.950s
? amadan.net/oficina/home/teammode/teammodetest [no test files]
| index f4ff5b8..f55e862 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 5 if Mac and iPhone share bundle IDs and up to 10 if not. 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 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. |
| |
| **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`. |
| index f0af7ea..f2a5c41 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 five. |
| +// are six. |
| const aasaPath = "/.well-known/apple-app-site-association" |
| |
| var nativeAppIDs = []string{ |
| @@ -290,6 +290,7 @@ var nativeAppIDs = []string{ |
| "9U4A84C4WK.works.oficina.sheets", |
| "9U4A84C4WK.works.oficina.calendar", |
| "9U4A84C4WK.works.oficina.memoria", |
| + "9U4A84C4WK.works.oficina.equipo", |
| } |
| |
| var aasaBody = func() []byte { |
| index f90db2d..a4035ab 100644 |
| --- a/internal/home/native_passkey_test.go |
| +++ b/internal/home/native_passkey_test.go |
| @@ -176,7 +176,7 @@ 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"} |
| + 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"} |
| if len(got) != 1 || len(got["webcredentials"]) != 1 || strings.Join(got["webcredentials"]["apps"], ",") != strings.Join(want, ",") { |
| t.Fatal("aasa content", w.Body.String()) |
| } |