carlos / platform Public

Regional domains (#447): Luna copy-review brief for the placements deck (RD-1 to RD-45)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 0f19143d19c2b07d8184b76efa988fb537901372 parent 8ac5f14
1 file changed, +163 −0
  • docs/superpowers/plans/LUNA-COPY-BRIEF-REGIONAL-DOMAINS.md +163 −0
diff --git a/docs/superpowers/plans/LUNA-COPY-BRIEF-REGIONAL-DOMAINS.md b/docs/superpowers/plans/LUNA-COPY-BRIEF-REGIONAL-DOMAINS.md
new file mode 100644
index 000000000..80c618d8f
--- /dev/null
+++ b/docs/superpowers/plans/LUNA-COPY-BRIEF-REGIONAL-DOMAINS.md
@@ -0,0 +1,163 @@
+# Copy review brief: regional custom-domain placements (#447) (delegated by Paul)
+
+Paul delegated copy review for plan copy to you. You are the copy editor; your
+text will be applied verbatim as approved copy.
+
+## What the change is
+
+A customer's app can run as several instances, one per region. Until now a
+custom domain pointed at one instance. #447 adds a **regional domain**: one
+hostname that is served, in each region, by that region's own instance of the
+app. A request that reaches a server in one region is answered there and never
+sent to another region. Members set it up with a new command,
+`carlos domains placements`, and the DNS they publish uses latency-based
+routing across the regions.
+
+Background a reader needs:
+
+- A **region** is a place instances run, written as a code the member chose
+ (`uk`, `ie`). A **placement** is one pair, `region=instance`: the region and
+ the instance hostname that serves the domain there.
+- A domain must be new to be made regional. `--wildcard` (one wildcard
+ certificate) and `--catchall` (also serve every one-label name under the
+ domain) are fixed when the domain is created.
+- A **server** (the deck sometimes says `<box>`) is a machine the platform runs
+ in a region. Each reports what release it runs. Releases older than the
+ **regional floor** (`<floor>`, for example `v0.31.0`) cannot serve regional
+ domains. Operators run `carlos system update` and `carlos system rollback`
+ on **channels** of servers.
+- The **console** is the platform's control service. The CLI calls it. A
+ **claim** is the platform's record that an app owns a hostname.
+
+The deck is `docs/superpowers/plans/2026-10-28-regional-domains-447-copy.md`.
+It has rows RD-1 to RD-45, every one `draft`, in the files it names. Read the
+deck's "rules" and "placeholders" sections first. The spec and plan are at
+`docs/superpowers/specs/2026-10-28-regional-domains-447-design.md` and
+`docs/superpowers/plans/2026-10-28-regional-domains-447.md` if a fact needs
+checking.
+
+Format of the precedent (not this deck): `LUNA-COPY-BRIEF-REGION-LABELS-2.md`.
+
+## House rules (Paul's, all binding)
+
+- No em dashes, ever. No en dashes as punctuation either. Use a full stop and
+ a new sentence (no semicolon either).
+- CLI and console strings (every row except RD-35 to RD-39) start lower case
+ and continue in lower case after a full stop, as drafted. Column headers
+ (RD-5) are upper case. The docs rows (RD-35 to RD-39) use the CLI page's
+ sentence case.
+- Plain words. No jargon a member would not know. Short.
+- Neutral names only in examples (shop, example.com, example.net). Never a
+ tenant's name.
+- Human text only. A row that is not human text (a code, a JSON key, a reason
+ code, a log line or a diagnostic) is `out-of-scope`: leave its text exactly
+ as drafted. If a row is only a fragment that completes another sentence,
+ keep it a fragment.
+- Keep every placeholder exactly (`<host>`, `<instance>`, `<region>`,
+ `<route>`, `<box>`, `<release>`, `<floor>`, `<channel>`, `<target>`, `<n>`,
+ `<a>`), and every command, flag and literal exactly (`carlos domains
+ placements`, `--set`, `--wildcard`, `--catchall`, `--allow-below-regional-floor`,
+ `region=instance`, `CNAME`, `TXT`, `DNS`, backticks in the docs rows, the
+ literal `\t` tab escapes in RD-5, `uk=shop-uk.example.net`).
+- Do not change meaning or the facts a string states. If a fact looks wrong,
+ or two rows contradict each other, say so in that row's `why` and keep the
+ row's meaning.
+- Each row is one string, one line. A row in a Go file may not need a
+ trailing full stop if the draft has none: keep the draft's habit unless it
+ is plainly wrong.
+- Only change a row when it is better. If it already follows the rules and
+ reads well, the verdict is `keep`.
+
+## The rows
+
+Where "context" says a string "fills" a longer sentence, the longer sentence is
+not yours to edit (and may contain a dash that is not in this deck).
+
+| id | where it appears | context |
+|---|---|---|
+| RD-1 | `carlos domains placements` help text (the `domains` usage block) | what the command does, with and without `--set` |
+| RD-2 | `--set` flag help | the flag's description line |
+| RD-3 | `--wildcard` flag help | the flag's description line |
+| RD-4 | `--catchall` flag help | the flag's description line |
+| RD-5 | CLI output, table header of the read | four columns, tab separated, `\t` is the literal tab escape |
+| RD-6 | CLI output, first line of the read for a regional domain | says what kind of domain this is |
+| RD-7 | CLI output, first line of the read for an ordinary domain | `<route>` is what one hostname points at |
+| RD-8 | CLI output, last line of the read, when any region is ready | what to do next with DNS |
+| RD-9 | CLI output, under the table, one line per not-ready region, printed after `<region>: ` | reason: no server there serves the instance yet |
+| RD-10 | same place | reason: servers in that region run a release older than the floor |
+| RD-11 | same place | reason: no fixed IP address is published for that region |
+| RD-12 | same place | reason: some servers have not reported yet |
+| RD-13 | same place | reason: the domain was just created, wait for reports |
+| RD-14 | same place | reason: a different route already uses the hostname |
+| RD-15 | CLI output after `--set` succeeds, `<n>` a count of regions | confirmation line |
+| RD-16 | CLI error when the console has no such door (old console) | the console is too old for this command |
+| RD-42 | CLI error for a malformed `--set` | usage hint, with an example |
+| RD-43 | CLI error when the hostname is not yet proved to belong to the member; the CLI prints the TXT record after it | proof of control, then rerun |
+| RD-17 | API refusal a member sees from the CLI on `--set` with the wrong number of placements | between one and eight |
+| RD-18 | API refusal, a region listed twice | `<region>` |
+| RD-19 | API refusal, one instance listed for two regions | `<instance>` |
+| RD-20 | API refusal, an instance that is not this app's instance in that region | `<instance>`, `<region>` |
+| RD-21 | API refusal, the hostname is already attached as an ordinary domain | tells the member how to proceed |
+| RD-22 | API refusal, the console could not check the servers just now | transient |
+| RD-23 | API refusal, a server runs a release below the floor | `<box>`, `<release>`, `<floor>` |
+| RD-24 | API refusal, the set changed while the request ran | transient, retry |
+| RD-25 | API refusal, the console has the door switched off | the feature is not on this console |
+| RD-26 | refusal from the older domain commands (attach, detach, wildcard, catch-all) when the domain is regional | where to go instead |
+| RD-27 | refusal when an instance is given a hostname that is a regional domain | `<host>` |
+| RD-28 | refusal when turning on a catch-all on a host that has a regional domain under it | `<host>` |
+| RD-29 | refusal when an instance's catch-all would cover a regional domain | one line |
+| RD-40 | fragment only. Fills the end of an existing refusal: `<app> is marked as the control plane, so it cannot be <RD-40> ...` | must read after "cannot be" |
+| RD-41 | API refusal, a server does not say which release it runs | `<box>`, `<floor>` |
+| RD-44 | guidance line shown when a member asks the old DNS-advice path about a regional domain | points at the placements command |
+| RD-45 | API refusal, a channel is moving to a release below the floor | `<channel>`, `<release>`, `<floor>` |
+| RD-30 | operator refusal from `carlos system update` or `rollback` (a platform operator reads it, not a member) | `<channel>`, `<release>`, `<floor>`, `<target>`; names the override flag |
+| RD-31 | operator notice when the override flag is used | same placeholders |
+| RD-32 | help line of the operator flag `--allow-below-regional-floor` | one sentence of flag help |
+| RD-33 | operator error from `carlos add` (fatal) | `<host>` |
+| RD-34 | operator warning from `carlos add` on stderr | `<host>` |
+| RD-35 | `docs/site/cli.md`, a section heading | heading, sentence case |
+| RD-36 | `docs/site/cli.md`, paragraph 1 of the new section | what a regional domain is; `503` is the HTTP status |
+| RD-37 | `docs/site/cli.md`, paragraph 2 | `--set` and the read |
+| RD-38 | `docs/site/cli.md`, paragraph 3 | restrictions and what is fixed at creation |
+| RD-39 | `docs/site/cli.md`, paragraph 4 | what stays separate; what is unsupported |
+
+## Things to check across the deck
+
+1. The same idea gets the same words everywhere: "regional domain",
+ "placements", "instance", "region", "server" (not "box" or "node" in member
+ text; `<box>` the placeholder is fine), "release", "detach".
+2. RD-26, RD-38 and RD-21 each tell a member to detach and start again. They
+ should agree.
+3. RD-12 and RD-13 should not contradict each other on timing.
+4. Where a row names a time or a count (five minutes, between one and eight,
+ a 503), keep the fact.
+5. RD-30 to RD-32 are for operators, who know what a channel, a release and a
+ floor are. Keep them exact and plain, not simplified into vagueness.
+
+## Output
+
+Write your result as one Markdown file and return it as your final message
+(do not save it to disk). Exactly this format, one block per row, in RD order
+(RD-1 to RD-45, including RD-40 to RD-45 in numeric position), no table, no
+prose around the blocks except the closing line:
+
+```
+### RD-<n>
+- verdict: keep | revise | out-of-scope
+- text: <the final text, exactly as it should ship, on one line>
+- why: <one line, only if revised>
+```
+
+- `keep`: the draft is fine. `text` repeats the draft exactly. No `why` line.
+- `revise`: `text` is your replacement, `why` is one short line.
+- `out-of-scope`: the row is not human text. `text` repeats the draft exactly.
+ Give a `why` line saying what it is.
+- Never leave out a row. Do not renumber.
+
+End with a single line, `ROWS: <count>`, the number of blocks you wrote.
+
+## Rules for this run
+
+- Do not edit files.
+- Do not spawn Anthropic-model subagents.
+- Read only the deck, this brief, and the files this brief names.