oficina / alta Public

RetypeAllowed: note the dependency ownOnlyFits relies on (Fable P3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev dca49a0c777fed9ec7ea87e7ffcb2daf9e65ca7f parent 55bf8f1
1 file changed, +5 −0
  • provision/apps.go +5 −0

CI passed — run details

CI log
=== vet ===
go vet ./...
=== fmt ===
=== test ===
CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/alta/adopt	(cached)
ok  	amadan.net/oficina/alta/carlosop	(cached)
?   	amadan.net/oficina/alta/carlosop/fakecarlos	[no test files]
ok  	amadan.net/oficina/alta/cmd/alta	0.168s
ok  	amadan.net/oficina/alta/cmd/alta-adopt	(cached)
ok  	amadan.net/oficina/alta/console	(cached)
?   	amadan.net/oficina/alta/console/fakeconsole	[no test files]
ok  	amadan.net/oficina/alta/homeop	(cached)
ok  	amadan.net/oficina/alta/homeop/fakehome	(cached)
ok  	amadan.net/oficina/alta/internal/web	0.133s
ok  	amadan.net/oficina/alta/provision	(cached)
=== compat ===
cd homecompat && go vet ./... && CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/home/altacompat	(cached)
diff --git a/provision/apps.go b/provision/apps.go
index b6fb79a..40c721b 100644
--- a/provision/apps.go
+++ b/provision/apps.go
@@ -798,6 +798,11 @@ func freshKey() string {
// address, checked for shape alone, would make someone else its owner
// (team-bundle, Fable's whole-branch review P2-2). With retype refused,
// a held owner is always Home's confirmed one.
+//
+// That holds only while no stopgap-allowlist app exists. If one returns
+// beside a seeded app, retype is allowed again and ownOnlyFits would take
+// a retyped address for a late seeded app: mark held owners as retyped
+// first, and have ownOnlyFits refuse them.
func RetypeAllowed(apps map[string]string) bool {
for slug, st := range apps {
if app, ok := AppBySlug(slug); ok && st == "active" && NeedsOwner(app) && !app.Seeded {