oficina / alta Public

Reserve the label oficina for the suite's canonical apps

A new team may not take the label oficina: it names the suite's own
canonical apps (docs.oficina.works and the rest), which Home adopts as an
existing team on its own path (Home discussion 103), and it is already the
canonical apps' dashboard team. CreateTeam refuses it as label-reserved
before anything is recorded, so it is never marked used either. Requested
by the agent-access session coordinating Home adoption, 2026-11-02.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev d11844b677ec6981e9df66a096a6012fd98f594b parent f78d993
4 files changed, +18 −0
  • internal/web/words.go +1 −0
  • provision/apps.go +7 −0
  • provision/engine.go +2 −0
  • provision/engine_test.go +8 −0

CI cancelled — superseded by a newer push — run details

diff --git a/internal/web/words.go b/internal/web/words.go
index b963b43..eeeca5e 100644
--- a/internal/web/words.go
+++ b/internal/web/words.go
@@ -56,6 +56,7 @@ var words = map[string]string{
"transient": "Something went wrong. Alta will try again.",
"guard": "Alta's own guard refused a request",
"label-used": "That label has been used before. Labels are never reused.",
+ "label-reserved": "That label is reserved for the suite's own apps",
"label-shape": "A label is 3–32 lower-case letters, digits and hyphens, starting with a letter",
"name-shape": "Give the team a name",
"owner-shape": "That is not a plain email address",
diff --git a/provision/apps.go b/provision/apps.go
index 5c24e1d..8c14c7d 100644
--- a/provision/apps.go
+++ b/provision/apps.go
@@ -18,6 +18,13 @@ import (
// Home's ValidLabel, so every derived host stays well inside DNS limits.
var LabelPattern = regexp.MustCompile(`^[a-z][a-z0-9-]{1,30}[a-z0-9]$`)
+// ReservedLabels are never offered to a new team. "oficina" names the
+// suite's own canonical apps (docs.oficina.works and the rest), which Home
+// adopts as an existing team on its own path (Home discussion 103), and is
+// the dashboard team the canonical apps already carry; a new team under it
+// would claim their name.
+var ReservedLabels = map[string]bool{"oficina": true}
+
// PublicDomain is the only public suffix Home's directory admits for a
// team instance (internal/home directoryRouteAllowed).
const PublicDomain = "oficina.works"
diff --git a/provision/engine.go b/provision/engine.go
index 6e721dd..d7bc7a1 100644
--- a/provision/engine.go
+++ b/provision/engine.go
@@ -160,6 +160,8 @@ func (e *Engine) CreateTeam(ctx context.Context, in NewTeam) (int64, error) {
switch {
case !LabelPattern.MatchString(in.Label):
return 0, fail("label-shape")
+ case ReservedLabels[in.Label]:
+ return 0, fail("label-reserved")
case !homeop.TeamName(in.Name):
return 0, fail("name-shape")
case !homeop.OwnerAddress(in.Owner):
diff --git a/provision/engine_test.go b/provision/engine_test.go
index 51f3868..3cd9891 100644
--- a/provision/engine_test.go
+++ b/provision/engine_test.go
@@ -313,6 +313,14 @@ func TestLabelsAreNeverReused(t *testing.T) {
if !errors.As(err, &fl) || fl.Code != "label-used" {
t.Fatalf("reused label: %v", err)
}
+ // "oficina" is the canonical apps' team, adopted on Home's own path,
+ // never a new team's label; refused before anything is recorded.
+ if _, err := e.CreateTeam(h.ctx(), NewTeam{Label: "oficina", Name: "Oficina", Owner: ownerCanary, Apps: []string{"docs"}}); !errors.As(err, &fl) || fl.Code != "label-reserved" {
+ t.Fatalf("reserved label: %v", err)
+ }
+ if used, err := h.store.LabelUsed(h.ctx(), "oficina"); err != nil || used {
+ t.Fatalf("a refused reserved label was recorded: %v %v", used, err)
+ }
// Alta's label rule is tighter than Home's.
for _, bad := range []string{"a", "Lagged", "-lag", "lag-", strings.Repeat("a", 33), "la_g"} {
if _, err := e.CreateTeam(h.ctx(), NewTeam{Label: bad, Name: "x", Owner: ownerCanary, Apps: []string{"docs"}}); !errors.As(err, &fl) || fl.Code != "label-shape" {