carlos / platform Public

spec: account subdomains rev 4, removed names cool down for an hour

Paul's choice after the final review: remove retires the name; the same
account may retake it at once, another account an hour later, behind
the occupancy walk. Adds the approved refusal (Luna pass 4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 304b72813dbb1867913bd89f90d050fb67f81c33 parent b60b27a
4 files changed, +39 −7
  • copy-review/LUNA-BRIEF-4.md +9 −0
  • copy-review/LUNA-RESULT-4.md +3 −0
  • docs/superpowers/plans/2026-11-11-account-subdomains-copy.json +5 −0
  • docs/superpowers/specs/2026-11-11-account-subdomains-design.md +22 −7

Intent

Human

<cross-session-message from="uds:/run/user/1001/cc-socks/3050168.sock" from-name="amadan-1e" from-mode="bypass"> Flagship is back: carlos-flagship-ie is now m7g.xlarge (4 vCPU, 16 GB), same Elastic IP. Down 07:23:12–07:24:40 UTC; console, carloku.com and amadan.net answering, all carlos* units active. Stack change to match: carlosframework/carloku-infrastructure PR #52. </cross-session-message>

Human

Why do we have to be so strict about things like B? Why not have it be unavailable for an hour or whatever for cleanup, then release it?

Human

Sure.

Attributed to this commit: 45.3 g CO₂e (5,768,537 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-account-name-hosts, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/copy-review/LUNA-BRIEF-4.md b/copy-review/LUNA-BRIEF-4.md
new file mode 100644
index 000000000..b898e3e4c
--- /dev/null
+++ b/copy-review/LUNA-BRIEF-4.md
@@ -0,0 +1,9 @@
+# Copy pass 4: one refusal for account subdomains
+
+Same house rules as copy-review/LUNA-BRIEF.md: no em dashes, CLI continuation after a full stop stays lower case, plain words, keep %q/%s placeholders in order.
+
+`refuse.retired_cooldown`: an operator tries to give a subdomain to an account, but the name was removed from a different account less than an hour ago. It becomes available to other accounts one hour after removal. %q is the name, %s is the time it becomes available, formatted like `2026-11-12 08:15 UTC`. Siblings for tone: "%q is taken. pick another name", "account %s already has the subdomain %s. remove it first to change it".
+
+Draft: "%q was removed from another account less than an hour ago. it can be given to a different account from %s"
+
+Answer with the final text and one line why. Do not edit files.
diff --git a/copy-review/LUNA-RESULT-4.md b/copy-review/LUNA-RESULT-4.md
new file mode 100644
index 000000000..ba4e425c0
--- /dev/null
+++ b/copy-review/LUNA-RESULT-4.md
@@ -0,0 +1,3 @@
+`%q was removed from another account less than an hour ago. it becomes available to another account at %s`
+
+Clear, plain, and keeps the placeholders in order.
\ No newline at end of file
diff --git a/docs/superpowers/plans/2026-11-11-account-subdomains-copy.json b/docs/superpowers/plans/2026-11-11-account-subdomains-copy.json
index 7b3983bc4..56699c0dd 100644
--- a/docs/superpowers/plans/2026-11-11-account-subdomains-copy.json
+++ b/docs/superpowers/plans/2026-11-11-account-subdomains-copy.json
@@ -189,6 +189,11 @@
"ID": "cli.subdomain.not_found",
"File": "accounts_subdomain_copy.go",
"Text": "no account %s. check the sqid with carlos accounts list"
+ },
+ {
+ "ID": "refuse.retired_cooldown",
+ "File": "internal/console/subdomain_copy.go",
+ "Text": "%q was removed from another account less than an hour ago. it becomes available to another account at %s"
}
]
}
\ No newline at end of file
diff --git a/docs/superpowers/specs/2026-11-11-account-subdomains-design.md b/docs/superpowers/specs/2026-11-11-account-subdomains-design.md
index cf5f53f46..ef2522e68 100644
--- a/docs/superpowers/specs/2026-11-11-account-subdomains-design.md
+++ b/docs/superpowers/specs/2026-11-11-account-subdomains-design.md
@@ -1,7 +1,7 @@
# Account subdomains: `<app>.<name>.<apps-domain>` beside `<app>.<sqid>.<apps-domain>`
**Date:** 2026-11-11
-**Status:** approved by Paul 2026-11-11 (with the canonical-URL change in §2 and §4.8), branch `design-account-name-hosts`. Rev 2: enforcement moved to the console (Astra plan review round 1). Rev 3: the label under the apps domain is platform-owned (Paul's choice B after round 2, §4.2).
+**Status:** approved by Paul 2026-11-11 (with the canonical-URL change in §2 and §4.8), branch `design-account-name-hosts`. Rev 2: enforcement moved to the console (Astra plan review round 1). Rev 3: the label under the apps domain is platform-owned (Paul's choice B after round 2, §4.2). Rev 4: remove retires the name for an hour before another account can have it (Paul, 2026-11-12, §4.3).
Astra builder check done (`CODEX-FINDINGS-account-subdomains-builder-check.md`;
all five questions answered in this revision).
@@ -207,10 +207,24 @@ person, never an app token. The CLI is
- **Show** returns the name, its host and any foreign names under it.
- **Remove** is refused while the account still holds exact claims or
routes under the name (`blog.harbour...` attached by hand), and the
- refusal lists them. Otherwise it deletes the claim (etag-conditional),
- the derived names stop serving on the next alias pass, and the name is
- free again at once. Only an operator can take it next, so reuse is
- always a deliberate choice.
+ refusal lists them. Otherwise it **retires** the claim
+ (etag-conditional): the claim stays, stamped `retired_at`, and boxes
+ stop deriving from it on the next alias pass. The same account can set
+ the name again at once (the retirement is cleared). Another account can
+ have it only from one hour after `retired_at`; before that, set answers
+ when it becomes available. After the hour, set replaces the retired
+ claim and runs the normal occupancy walk, which refuses while anything
+ of the old holder's is still under the name.
+
+ Why an hour (rev 4, Paul's choice after the final review, 2026-11-12):
+ a create the old holder started before removal can land after it, at
+ most one request later (the console reads a body within 5 minutes).
+ During the hour that write sits under a name nobody else can take and
+ no box serves. When another account asks for the name, the occupancy
+ walk sees it and refuses until an operator clears it. So a name never
+ reaches a new account carrying the old holder's hosts, and boxes have
+ dropped the old rows before it changes hands. Reuse after the hour is
+ the operator's deliberate choice.
- **Account deletion** leaves the claim in place. It stays held by the
tombstoned account, its routes are gone so it derives nothing, and an
operator can remove it afterwards: show and remove resolve tombstoned
@@ -406,8 +420,9 @@ it ships in; there is no switch (§4.3).
- Sqid-shaped names need 7+ letters (§4.2 rule 2).
- Operator-only, no switch (§4.3). Available on every deployment,
shared platforms included, is Paul's decision (§3).
-- Remove frees the name at once; no tombstone. It refuses while the
- account still has hand-attached names under it (§4.3).
+- Remove retires the name: the same account can retake it at once,
+ another account only an hour later (Paul, 2026-11-12). It refuses while
+ the account still has hand-attached names under it (§4.3).
- The label under the apps domain is platform-owned: only its sqid owner
or subdomain holder can create hosts under it (§4.2, rev 3, Paul's
choice B). New hosts under unassigned non-sqid labels are refused on