Amend Equipo adoption scope and cover its web chooser
Co-Authored-By: Codex GPT-6-Astra <noreply@openai.com>
4 files changed,
+20
−7
docs/superpowers/specs/2026-11-14-oficina-id-native.md+1 −1implementation/equipo-native-validation.md+11 −0implementation/existing-team-adoption.md+7 −5internal/home/app_chooser_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 0.715s ? amadan.net/oficina/home/cmd/oficina [no test files] ok amadan.net/oficina/home/internal/guardstest 0.092s ok amadan.net/oficina/home/internal/home 52.859s ok amadan.net/oficina/home/internal/home/directorydata 1.374s 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.044s ok amadan.net/oficina/home/internal/operator 6.474s ok amadan.net/oficina/home/internal/operatorlaunch 4.120s ok amadan.net/oficina/home/internal/provisioner 49.321s cd handoff && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/handoff 0.662s 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 (cached) cd connect && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/connect 1.392s ok amadan.net/oficina/home/connect/linkstore 0.408s cd teammode && CGO_ENABLED=0 go test -count=1 ./... ok amadan.net/oficina/home/teammode 0.096s ? 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 313.034s ok amadan.net/oficina/home/internal/operator 82.156s ok amadan.net/oficina/home/internal/operatorlaunch 22.381s ok amadan.net/oficina/home/internal/home/directorydata 23.285s ok amadan.net/oficina/home/internal/provisioner 394.538s cd handoff && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/handoff 12.718s 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.943s cd dashboard && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/dashboard 1.062s cd connect && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/connect 6.113s ok amadan.net/oficina/home/connect/linkstore 6.279s cd teammode && CGO_ENABLED=1 go test -race -count=1 ./... ok amadan.net/oficina/home/teammode 1.915s ? 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 35c177b..f4ff5b8 100644 |
| --- a/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| +++ b/docs/superpowers/specs/2026-11-14-oficina-id-native.md |
| @@ -157,7 +157,7 @@ The browser `Finish` keeps today's shape (`handoff/http.go` `Finish`: `Store.Fin |
| ## 9. Teams, store, onboarding |
| -**Teams.** The directory is a consumer. The app gets a directory session through `NativeExchange`, then calls `GET https://oficina.works/api/native/teams` → `[{sqid, label, name, role, apps:[{app, origin, consumer_id}]}]`. The list comes from `Store.AgentChoices`, filtered to live instances of the five apps, and is `no-store`. Apps use the returned origin as given. They never use portero. The app refreshes at launch, on opening the menu (at most every 5 minutes), and on any 403. The team colour is derived on the device from `sqid`. **Zero teams (Paul's ruling H):** once Alta runs, the empty state offers "Create a team" through Alta. While Alta is blocked, slice A shows help text only. Slice A needs Paul's teams to exist first, through Alta or the operator path. |
| +**Teams.** The directory is a consumer. The app gets a directory session through `NativeExchange`, then calls `GET https://oficina.works/api/native/teams` → `[{sqid, label, name, role, apps:[{app, origin, consumer_id}]}]`. The list comes from `Store.AgentChoices`, filtered to live instances of the six native apps (Equipo added by Paul’s approved 2026-11-20 Equipo native Oficina ID spec, part 3 / E4), and is `no-store`. Apps use the returned origin as given. They never use portero. The app refreshes at launch, on opening the menu (at most every 5 minutes), and on any 403. The team colour is derived on the device from `sqid`. **Zero teams (Paul's ruling H):** once Alta runs, the empty state offers "Create a team" through Alta. While Alta is blocked, slice A shows help text only. Slice A needs Paul's teams to exist first, through Alta or the operator path. |
| **Store (RastrilloApple).** Every record carries `v`. An older app reads what it understands, never rewrites a newer record, and asks for an update. **Shared keychain group:** each identity's record, key, token and **team cache**. Team names stay out of the Mac App Group because an unsandboxed app's group container is readable by any process running as the same user. **App Group** (`9U4A84C4WK.works.oficina` on Mac, `group.works.oficina` on iOS): identity order and the last-used (identity, team) only. **Each app's private keychain:** its sessions, keyed `(grant_id, origin)`. |
diff --git a/implementation/equipo-native-validation.md b/implementation/equipo-native-validation.md| index 729d185..53aa51e 100644 |
| --- a/implementation/equipo-native-validation.md |
| +++ b/implementation/equipo-native-validation.md |
| @@ -26,3 +26,14 @@ No schema or native assertion policy changed. |
| Deployment and operator work remain separate. The matching Alta branch |
| `native/equipo-adoption` carries the rollout and Equipo contract notes. |
| Neither branch is a deployment approval or a completed canary review. |
| + |
| +Read-only production checks on 2026-11-20 found Equipo absent from the |
| +effective env consumer manifest. Native assertion still refuses that origin |
| +until the operator adds `equipo: https://equipo.oficina.works` and restarts |
| +the credential service, as the Alta runbook describes. The existing web |
| +consumer implementation alone does not establish a deployed registration. |
| + |
| +Independent code review: Claude Fable 5.2, 2026-11-20, found no |
| +production-code blockers and independently passed both repositories' gates. |
| +Its required spec-count amendments are included here. The chooser test also |
| +covers Equipo's mounted web routes. Deployed canary review remains pending. |
diff --git a/implementation/existing-team-adoption.md b/implementation/existing-team-adoption.md| index 5b5b9db..b1053a2 100644 |
| --- a/implementation/existing-team-adoption.md |
| +++ b/implementation/existing-team-adoption.md |
| @@ -7,9 +7,11 @@ Base: d82341c. Amended 2026-11-16 for 522 Plan 1 digests and the Plan 2 |
| waiver (see the observation recipe). Amended 2026-11-17 (Paul, discussion |
| 103): the waiver's delivery evidence is the runner's automated check, and |
| the negative live checks are dropped for this adoption. Implements |
| -agent-access task 5 and Home discussion 103. |
| +agent-access task 5 and Home discussion 103. Amended 2026-11-20 by Paul’s |
| +approved Equipo native Oficina ID spec, part 3 / E4: Equipo joins canonical |
| +adoption as the seventh app; its app-side contract must be deployed first. |
| -The six existing canonical instances need directory membership and routing |
| +The seven existing canonical instances need directory membership and routing |
| without creating replacement instances, changing their keys, or converting |
| their existing item permissions to TeamMode. Agent adapters already support |
| this combination: Home controls delegated team admission; each app resolves |
| @@ -20,7 +22,7 @@ directory membership never grants access to existing content by itself. |
| Extend the signed operator plan with optional `existing_team` (the actual |
| team SQID, not the dashboard label). It is valid only for create-team or |
| -add-apps plans and only for the six compiled canonical apps. Both roles show |
| +add-apps plans and only for the seven compiled canonical apps. Both roles show |
| an explicit existing-app adoption description. The directory requires label |
| `oficina`, shows the exact canonical hosts, and binds seeding and every |
| subsequent operation to the plan's SQID. The credential plan binds owner-seed |
| @@ -277,7 +279,7 @@ revocation is covered by Home's and oficina-connect's own tests. As with |
| the Plan 2 waiver, this is not a precedent for any other adoption. |
| What stays: Plan A's two fresh confirmations, and the Calendar canary. |
| -Plan B activates calendar alone. Plan C, the other five apps, is gated |
| +Plan B activates calendar alone. Plan C, the other six apps, is gated |
| only on Plan B having activated calendar successfully, and stays refused |
| if calendar has since been rolled back or disabled. Synthetic proof of |
| refusal and revocation stays in integration tests. Until the reviewed |
| @@ -299,7 +301,7 @@ introduced for the adoption tool. |
| This supersedes team-provisioning-amendment.md §4's label.app-only rendering |
| for adoption plans, §2.6/§5's new-instance activation policy, and §8's claim |
| that a confirmed provisioner cannot affect existing canonical hosts. An |
| -adoption window explicitly allows binding those six pre-existing hosts to |
| +adoption window explicitly allows binding those seven pre-existing hosts to |
| one confirmed team, changing directory discovery and delegated admission. |
| It grants no local content permission and cannot change credential env |
| registrations, existing storage or keys. The operator signer can falsely |
diff --git a/internal/home/app_chooser_test.go b/internal/home/app_chooser_test.go| index fc2bf1d..fc50f6a 100644 |
| --- a/internal/home/app_chooser_test.go |
| +++ b/internal/home/app_chooser_test.go |
| @@ -8,7 +8,7 @@ import ( |
| ) |
| func TestNativeAppChoicesKeepTeamAndAppBoundaries(t *testing.T) { |
| - for _, app := range []string{"docs", "sheets", "slides", "calendar", "calls", "memoria"} { |
| + for _, app := range []string{"docs", "sheets", "slides", "calendar", "calls", "memoria", "equipo"} { |
| t.Run(app, func(t *testing.T) { |
| f := newMountedChooser(t) |
| cookie := f.session(t, chooserPerson) |