oficina / home Public

Merge branch 'base-native-app-id' into main

Merge branch 'base-native-app-id' into main

Base's App ID joins the passkey association file (review #151, CI passed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 4dba68e6d869a35ad2a8525d1bd7bd5e8594ee5f parent 8125a3cparent d9fd165
3 files changed, +9 −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 +6 −1

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.959s
?   	amadan.net/oficina/home/cmd/oficina	[no test files]
ok  	amadan.net/oficina/home/internal/guardstest	0.369s
ok  	amadan.net/oficina/home/internal/home	58.349s
ok  	amadan.net/oficina/home/internal/home/directorydata	1.437s
ok  	amadan.net/oficina/home/internal/home/logtest	0.004s
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.042s
ok  	amadan.net/oficina/home/internal/operator	6.555s
ok  	amadan.net/oficina/home/internal/operatorlaunch	4.128s
ok  	amadan.net/oficina/home/internal/provisioner	49.584s
cd handoff && CGO_ENABLED=0 go test -count=1 ./...
ok  	amadan.net/oficina/home/handoff	0.665s
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.119s
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.416s
ok  	amadan.net/oficina/home/connect/linkstore	0.497s
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	343.748s
ok  	amadan.net/oficina/home/internal/operator	82.956s
ok  	amadan.net/oficina/home/internal/operatorlaunch	22.399s
ok  	amadan.net/oficina/home/internal/home/directorydata	23.867s

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 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")
}