carlos / platform Public

copy: account subdomains CLI refusals and docs prose (Luna pass 3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9545651ad53e0732db0fb21190e1d22912aa0b5e parent 5def0e2
4 files changed, +46 −0
  • copy-review/DOCS-APPROVED-3.md +15 −0
  • copy-review/LUNA-BRIEF-3.md +13 −0
  • copy-review/LUNA-RESULT-3.md +8 −0
  • docs/superpowers/plans/2026-11-11-account-subdomains-copy.json +10 −0

Intent

Human

<task-notification> <task-id>afd1cf267c63abf25</task-id> <tool-use-id>toolu_01FGDpk7qAsCz773HyH4VpAK</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/709ac745-ee81-4971-97b8-321e18b19cf6/tasks/afd1cf267c63abf25.output</output-file> <status>completed</status> <summary>Agent "Implement Task 7: CLI" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE_WITH_CONCERNS. Task 7 is built and committed. The census change and some untested copy still need sign-off. Commit: `5def0e2b cli: carlos accounts subdomain (T7)` Tests: the brief's Step 2 commands all pass, as do the full parity package, both census guards, the related root tests (deploy, canary, watch, routes, instances), the docs tests, and `GOOS=darwin` / `GOOS=windows go vet .`. Before the fix they failed (build errors, then missing golden cases and parity rows), and putting the display or copy changes back makes their tests fail again. Concerns: 1. **Census:** `runDeploy` changed, so I re-proposed under account-subdomains. It is not approved; the other-family reviewer has to rule on #280. 2. **Copy gaps (no approved string, so I reused existing text):** - In direct bucket mode, `requirePlanAPISession` (which the brief asks for) prints the plan command's message, naming `carlos accounts plan`. - An unknown account (`not_found`) prints the CLI's existing not-found message, which mentions `--app`. - The new `docs/site/cli.md` section and the parity-row note have not had copy review. 3. **Certificate check after `set`:** an operator can't list another account's apps, so it checks `carlos-check.&lt;name&gt;.&lt;apps-domain&gt;` and reports `*.&lt;name&gt;.&lt;apps-domain&gt;`. On a deployment with per-host certificates instead of a wildcard, `set` will always say "still being issued" after 2 minutes. 4. **Remove message:** it shows the sqid alone ("only at their bdq addresses"), because the remove answer doesn't include the apps domain. Report: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-account-name-hosts/.superpowers/sdd/2026-11-11-account-subdomains/task-7-report.md</result> <usage><subagent_tokens>252093</subagent_tokens><tool_uses>114</tool_uses><duration_ms>1166549</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>b8w3ngas0</task-id> <tool-use-id>toolu_01LPQjPANyyL9qTQwwQ67Nir</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/709ac745-ee81-4971-97b8-321e18b19cf6/tasks/b8w3ngas0.output</output-file> <status>completed</status> <summary>Background command "Package and run Astra review of T7" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 23.4 g CO₂e (2,933,965 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/DOCS-APPROVED-3.md b/copy-review/DOCS-APPROVED-3.md
new file mode 100644
index 000000000..ff85113ed
--- /dev/null
+++ b/copy-review/DOCS-APPROVED-3.md
@@ -0,0 +1,15 @@
+# Approved docs prose (Luna pass 3, delegated; Opus restored the remove-refusal sentence Luna dropped)
+
+## docs/site/cli.md, "### carlos accounts subdomain"
+
+Paragraph before the code block:
+
+Assigns a readable name to an account's app addresses, so `shop.bdq.oncarlos.com` also works as `shop.harbour.oncarlos.com`. Only platform operators can use it.
+
+Paragraph after the code block:
+
+The `set` command gives the account the subdomain, then checks for up to two minutes that addresses under it work over HTTPS. The `remove` command takes it away, and refuses while the account still has hosts attached under the name, listing them. The `show` command prints the subdomain and any hosts under it that belong to other accounts. The `inventory` command lists labels under the apps domain that are neither an account sqid nor an assigned subdomain, with the hosts under each.
+
+## parity/parity.tsv, op-accounts-subdomain note
+
+Platform operators only. The account settings page shows the subdomain, read-only.
diff --git a/copy-review/LUNA-BRIEF-3.md b/copy-review/LUNA-BRIEF-3.md
new file mode 100644
index 000000000..b439f8367
--- /dev/null
+++ b/copy-review/LUNA-BRIEF-3.md
@@ -0,0 +1,13 @@
+# Copy pass 3: account subdomains docs and two CLI refusals
+
+Same house rules as copy-review/LUNA-BRIEF.md: no em dashes, CLI continuations after a full stop stay lower case, plain words, keep %s and backticked commands exact, neutral names only.
+
+1. `cli.subdomain.needs_console` (new CLI refusal). Shown when `carlos accounts subdomain` runs in direct bucket mode (CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR set). Model on this approved sibling for plans: "carlos accounts plan works through a console, and this shell is in direct bucket mode\n(CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR is set). plans are kept by the console.\nunset the store env and run: carlos auth login --console <url>". Keep its \n line breaks and the env names. Draft: "carlos accounts subdomain works through a console, and this shell is in direct bucket mode\n(CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR is set). subdomains are kept by the console.\nunset the store env and run: carlos auth login --console <url>"
+
+2. `cli.subdomain.not_found` (new CLI refusal). Shown when the console says the account does not exist. %s is the sqid the operator typed. Draft: "no account %s. check the sqid with carlos accounts list" (only if `carlos accounts list` exists in this repo's CLI; check accounts.go, else drop that sentence).
+
+3. The docs section in docs/site/cli.md under "### carlos accounts subdomain" (the paragraph before the code block and the paragraph after it). Review it as published docs prose.
+
+4. The parity note in parity/parity.tsv row op-accounts-subdomain, last column: "Platform operators only. The account settings page shows the subdomain, read-only."
+
+Answer as a table `id | final text | why`, using ids 1-4 above (for 3 give the two paragraphs in full). Then FLAGS. Do not edit files.
diff --git a/copy-review/LUNA-RESULT-3.md b/copy-review/LUNA-RESULT-3.md
new file mode 100644
index 000000000..e1f8c4091
--- /dev/null
+++ b/copy-review/LUNA-RESULT-3.md
@@ -0,0 +1,8 @@
+| id | final text | why |
+|---|---|---|
+| 1 | `carlos accounts subdomain works through a console, and this shell is in direct bucket mode`<br>`(CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR is set). subdomains are kept by the console.`<br>`unset the store env and run: carlos auth login --console <url>` | Keeps the approved structure, env names, line breaks, and lower-case continuation. |
+| 2 | `no account %s. check the sqid with carlos accounts list` | `carlos accounts list` exists. Short, direct, and preserves `%s`. |
+| 3 | Assigns a readable name to an account's app addresses, so `shop.bdq.oncarlos.com` also works as `shop.harbour.oncarlos.com`. Only platform operators can use it.<br><br>The `set` command gives the account the subdomain, then checks for up to two minutes that addresses under it work over HTTPS. The `remove` command takes it away. The `show` command prints the subdomain and any hosts under it that belong to other accounts. The `inventory` command lists labels under the apps domain that are neither an account sqid nor an assigned subdomain, with the hosts under each. | Uses plain words, makes the audience clear, and explains each command without changing its behavior. |
+| 4 | `Platform operators only. The account settings page shows the subdomain, read-only.` | Clear, neutral, and already concise. |
+
+FLAGS: 1 keeps “store env” singular to match the approved sibling wording, although two variables are named.
\ 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 46e70ee8f..7b3983bc4 100644
--- a/docs/superpowers/plans/2026-11-11-account-subdomains-copy.json
+++ b/docs/superpowers/plans/2026-11-11-account-subdomains-copy.json
@@ -179,6 +179,16 @@
"ID": "refuse.create.unassignable",
"File": "internal/console/subdomain_copy.go",
"Text": "nothing can be added under %s. use an address under the account's own label, or a custom domain"
+ },
+ {
+ "ID": "cli.subdomain.needs_console",
+ "File": "accounts_subdomain_copy.go",
+ "Text": "carlos accounts subdomain works through a console, and this shell is in direct bucket mode\n(CARLOS_DEPLOYMENT_BUCKET/CARLOS_DEPLOYMENT_DIR is set). subdomains are kept by the console.\nunset the store env and run: carlos auth login --console <url>"
+ },
+ {
+ "ID": "cli.subdomain.not_found",
+ "File": "accounts_subdomain_copy.go",
+ "Text": "no account %s. check the sqid with carlos accounts list"
}
]
}
\ No newline at end of file