plans 4d: Luna copy pass on the lapse notices, the keep page and the turned-off page, applied verbatim
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+141
−18
docs/superpowers/specs/LUNA-COPY-BRIEF-PLANS-4D1.md+80 −0docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md+39 −0internal/console/plancaps_copy.go+18 −15internal/console/planlapse_keep_test.go+1 −1internal/edge/plandisabled.go+3 −2
diff --git a/docs/superpowers/specs/LUNA-COPY-BRIEF-PLANS-4D1.md b/docs/superpowers/specs/LUNA-COPY-BRIEF-PLANS-4D1.md| new file mode 100644 |
| index 000000000..60c3ceb61 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/LUNA-COPY-BRIEF-PLANS-4D1.md |
| @@ -0,0 +1,80 @@ |
| +# Copy pass brief: lapse notices, the keep page and the turned-off page (plans 4d-1) |
| + |
| +You are reviewing user-facing strings for a hosting console (the carlos platform). Paul, the owner, delegated this review to you. Apply his house rules and return improved strings. |
| + |
| +## What the feature does |
| + |
| +When a paid account's plan shrinks (a lapse, a downgrade, a pack removed), whatever the smaller plan no longer covers gets 7 days' grace. After grace, and only once an owner has been told at least 3 days earlier, it is turned off: apps and instances beyond the plan's count (newest first, unless an owner chose which stay), workers beyond the per-app count, and custom domains on a plan without them. A turned-off thing stops serving. Its settings and data are kept, and it comes back within a few minutes when the plan covers it again. Owners choose which things stay on a console page ("the keep page"). Visitors to a turned-off site see a plain page that says nothing about plans or payment. |
| + |
| +## House rules |
| + |
| +- No em dashes or en dashes used as dashes. Where you would use one, end the sentence with a full stop and start a new one. |
| +- Plain words, short sentences, no jargon, no marketing tone, no exclamation marks. |
| +- CLI strings (keys starting `cli.`) are entirely lower case, with no full stop at the very end. Banner, email, keep-page and edge strings use normal sentence case. |
| +- Audit strings (keys starting `audit.`) are activity-log lines: keep the leading `plan: ` and lower case, with no full stop at the end. |
| +- Keep every placeholder (`%s`, `%d`), the same number of them, in the same order. Keep `\n` line breaks where they are. |
| +- Do not name the product. |
| +- The edge page (keys starting `edge.`) is seen by any visitor to a turned-off site: it must never mention plans, payment, billing or the account, and must not suggest waiting helps. |
| +- Facts that must stay true: grace is 7 days; things are turned off, not deleted; settings and data are kept; they come back when the plan covers them again (the keep-page save and paying again reach the sites within a few minutes); without a choice the newest go first; only owners choose; the plan's numbers count apps and instances together ("running things"), and workers per app separately. Do not promise data is kept forever. |
| + |
| +## How the strings combine |
| + |
| +`usage.*` phrases fill the first `%s` of the `banner.`, `cli.` and `email.` lapse strings. Examples: |
| + |
| +- `usage.running_things` (existing, approved, do not change): `5 of 3 apps and instances` |
| +- `usage.sidecars`: `2 workers over the 1 per app this plan allows` (first number is how many workers are over in total, second the per-app count) |
| +- `usage.custom_domains`: `2 custom domains, which this plan does not include` |
| + |
| +The second `%s` of `*.lapse_grace` is a date like `1 November 2026`. |
| + |
| +Example renderings with the current drafts: |
| + |
| +- banner.lapse_grace: This account's plan no longer covers 5 of 3 apps and instances. On 1 November 2026 the newest are turned off. Their settings and data are kept, and they come back when the plan covers them again. You can choose which stay. |
| +- cli.lapse_grace: this account's plan no longer covers 2 custom domains, which this plan does not include. on 1 November 2026 the newest are turned off. settings and data are kept. choose which stay in the console |
| +- banner.lapse_off: Turned off because this account's plan no longer covers them: 5 of 3 apps and instances. Their settings and data are kept, and they come back when the plan covers them again. |
| +- email.lapse_grace: - 5 of 3 apps and instances. On 1 November 2026 the newest are turned off unless the plan covers them again. |
| +- email.lapse_off: - Turned off: 5 of 3 apps and instances. |
| +- email.lapse_off_list (after the lines above): Turned off: blog-1.example.com, shop-2.example.com.\n\nChoose which stay:\nhttps://console.example.com/a/bab/plan/keep |
| +- audit.turned_off: plan: shop-2.example.com turned off because the plan covers 3 apps and instances |
| +- audit.turned_on: plan: shop-2.example.com turned back on |
| +- keep.intro: This account's plan covers 3 apps and instances and 1 workers per app. Tick the ones to keep. The rest are turned off, newest first. Settings and data are kept either way. |
| +- keep.too_many: You ticked 4, and the plan covers 3. Untick some and save again. |
| + |
| +Note the awkward "1 workers" and "the newest are turned off" for custom domains (domains have no "newest": all of them go). Fix wording so every combination reads correctly, within the placeholder rule. |
| + |
| +## Strings |
| + |
| +| key | current | |
| +|---|---| |
| +| `usage.sidecars` | %d workers over the %d per app this plan allows | |
| +| `usage.custom_domains` | %d custom domains, which this plan does not include | |
| +| `banner.lapse_grace` | This account's plan no longer covers %s. On %s the newest are turned off. Their settings and data are kept, and they come back when the plan covers them again. You can choose which stay. | |
| +| `cli.lapse_grace` | this account's plan no longer covers %s. on %s the newest are turned off. settings and data are kept. choose which stay in the console | |
| +| `email.lapse_grace` | - %s. On %s the newest are turned off unless the plan covers them again. | |
| +| `banner.lapse_off` | Turned off because this account's plan no longer covers them: %s. Their settings and data are kept, and they come back when the plan covers them again. | |
| +| `cli.lapse_off` | turned off because this account's plan no longer covers them: %s. settings and data are kept | |
| +| `email.lapse_off` | - Turned off: %s. | |
| +| `email.lapse_off_list` | Turned off: %s.\n\nChoose which stay:\n%s | |
| +| `audit.turned_off` | plan: %s turned off because %s | |
| +| `audit.turned_on` | plan: %s turned back on | |
| +| `audit.reason.running_things` | the plan covers %d apps and instances | |
| +| `audit.reason.sidecars` | the plan covers %d workers per app | |
| +| `audit.reason.custom_domains` | the plan does not include custom domains | |
| +| `keep.title` | Choose what stays | |
| +| `keep.intro` | This account's plan covers %d apps and instances and %d workers per app. Tick the ones to keep. The rest are turned off, newest first. Settings and data are kept either way. | |
| +| `keep.save` | Save | |
| +| `keep.too_many` | You ticked %d, and the plan covers %d. Untick some and save again. | |
| +| `keep.stale` | Something you ticked is no longer there. Look at the list again and save. | |
| +| `keep.saved` | Saved. The change reaches your apps within a few minutes. | |
| +| `keep.nothing` | Nothing to choose: this account's plan covers everything it runs. | |
| +| `keep.link` | Choose what stays | |
| +| `keep.failed` | Could not read what this account runs. Try again in a moment. | |
| +| `keep.on` | On | |
| +| `keep.off` | Turned off | |
| +| `edge.title` | Not available | |
| +| `edge.heading` | This site is not available right now | |
| +| `edge.body` | If it is yours, sign in to your console to see why. | |
| + |
| +## Answer |
| + |
| +Return a Markdown table with columns `key`, `new`, `why` for every key, `new` equal to `current` where no change is needed. Then a section `Flags` for anything Paul must decide. Do not edit any files. |
diff --git a/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md b/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md| new file mode 100644 |
| index 000000000..4db463dae |
| --- /dev/null |
| +++ b/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md |
| @@ -0,0 +1,39 @@ |
| +# Luna copy result: plans 4d-1 |
| + |
| +Model gpt-5.6-luna (codex exec, reasoning medium), run on docs/superpowers/specs/LUNA-COPY-BRIEF-PLANS-4D1.md, 2026-10-25. Applied verbatim. Copy approved by delegation (Luna). |
| + |
| +| key | new | why | |
| +|---|---|---| |
| +| `usage.sidecars` | `%d above the per-app worker limit of %d` | Avoids “1 workers” while keeping both counts clear. | |
| +| `usage.custom_domains` | `%d custom domains, all of which this plan does not include` | Makes clear that all domains are affected. | |
| +| `banner.lapse_grace` | This account's plan no longer covers %s. On %s, anything not covered is turned off. For apps, instances and workers, the newest go first unless you choose what stays. Custom domains are all turned off when the plan does not include them. Settings and data are kept, and covered things come back within a few minutes. Only owners can choose. | Handles each affected type without wrongly applying “newest” to domains. | |
| +| `cli.lapse_grace` | this account's plan no longer covers %s. on %s, anything not covered is turned off. apps, instances and workers go newest first unless you choose what stays. custom domains are all turned off when the plan does not include them. settings and data are kept. covered things come back within a few minutes. only owners can choose | Lower case, no final full stop, and accurate for each resource type. | |
| +| `email.lapse_grace` | - %s. On %s, anything not covered is turned off. Apps, instances and workers go newest first unless you choose what stays. Custom domains are all turned off when the plan does not include them. Settings and data are kept. | Preserves the email format while covering the grace-period facts. | |
| +| `banner.lapse_off` | Turned off because this account's plan no longer covers them: %s. Settings and data are kept. Covered things come back within a few minutes. Only owners can choose what stays. | States that items are turned off, not deleted, and avoids promising permanent retention. | |
| +| `cli.lapse_off` | turned off because this account's plan no longer covers them: %s. settings and data are kept. covered things come back within a few minutes. only owners can choose what stays | Lower case, no final full stop, and preserves the recovery behavior. | |
| +| `email.lapse_off` | - Turned off: %s. Settings and data are kept. Covered things come back within a few minutes. | Gives the email recipient the key post-grace facts. | |
| +| `email.lapse_off_list` | Turned off: %s.\n\nChoose what stays for apps, instances and workers:\n%s | Avoids implying that custom domains can be selected when they are all affected. | |
| +| `audit.turned_off` | plan: %s turned off because %s | No change needed. It follows the audit format. | |
| +| `audit.turned_on` | plan: %s turned back on | No change needed. | |
| +| `audit.reason.running_things` | the plan covers %d apps and instances | No change needed. | |
| +| `audit.reason.sidecars` | the plan covers %d workers per app | No change needed. | |
| +| `audit.reason.custom_domains` | the plan does not include custom domains | No change needed. | |
| +| `keep.title` | Choose what stays | No change needed. | |
| +| `keep.intro` | This account's plan covers %d apps and instances, with a per-app limit of %d workers. Choose what stays. Anything else is turned off. For apps, instances and workers, the newest go first. Custom domains are all turned off when the plan does not include them. Settings and data are kept either way. | Fixes the singular/plural issue and distinguishes domains from ordered resources. | |
| +| `keep.save` | Save | No change needed. | |
| +| `keep.too_many` | You chose %d, but the plan covers %d. Choose fewer and save again. | Shorter and clearer. | |
| +| `keep.stale` | Something you chose is no longer there. Look at the list again and save. | “Chose” is clearer than “ticked” and works across controls. | |
| +| `keep.saved` | Saved. The change reaches your apps within a few minutes. | No change needed. | |
| +| `keep.nothing` | Nothing to choose. This account's plan covers everything it runs. | Replaces the colon with a full stop. | |
| +| `keep.link` | Choose what stays | No change needed. | |
| +| `keep.failed` | Could not read what this account runs. Try again in a moment. | No change needed. | |
| +| `keep.on` | On | No change needed. | |
| +| `keep.off` | Turned off | No change needed. | |
| +| `edge.title` | Not available | No change needed. | |
| +| `edge.heading` | This site is not available right now | No change needed. | |
| +| `edge.body` | If you own this site, sign in to the console for help. | Removes references to plans, payment, billing and the account. | |
| + |
| +## Flags |
| + |
| +- The brief does not explicitly say whether custom domains appear on the keep page. These strings assume they do not offer individual choices: when the plan excludes custom domains, all of them are turned off. |
| +- The brief uses “workers” in user-facing copy even though the key is `sidecars`. I kept “workers” because that is the approved terminology in the examples. |
| \ No newline at end of file |
diff --git a/internal/console/plancaps_copy.go b/internal/console/plancaps_copy.go| index 407c601d6..50a643147 100644 |
| --- a/internal/console/plancaps_copy.go |
| +++ b/internal/console/plancaps_copy.go |
| @@ -56,36 +56,39 @@ var planNoticeCopy = map[string]string{ |
| "banner.awake_throttled": "This account's apps are served more slowly and put to sleep after 15 minutes awake until the month ends or the plan grows: %s. Open live connections (WebSockets) are closed.", |
| "cli.awake_throttled": "this account's apps are served more slowly and put to sleep after 15 minutes awake until the month ends or the plan grows: %s. open live connections are closed", |
| // Plans 4d: what a lapse turned off and back on, for the audit log. |
| + // Approved by delegation (Luna, |
| + // docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md), as are the |
| + // plans 4d strings below and planKeepCopy. |
| "audit.turned_off": "plan: %s turned off because %s", |
| "audit.turned_on": "plan: %s turned back on", |
| "audit.reason.running_things": "the plan covers %d apps and instances", |
| "audit.reason.sidecars": "the plan covers %d workers per app", |
| "audit.reason.custom_domains": "the plan does not include custom domains", |
| // Plans 4d: a lapse in grace, and what it turned off. |
| - "usage.sidecars": "%d workers over the %d per app this plan allows", |
| - "usage.custom_domains": "%d custom domains, which this plan does not include", |
| - "banner.lapse_grace": "This account's plan no longer covers %s. On %s the newest are turned off. Their settings and data are kept, and they come back when the plan covers them again. You can choose which stay.", |
| - "cli.lapse_grace": "this account's plan no longer covers %s. on %s the newest are turned off. settings and data are kept. choose which stay in the console", |
| - "email.lapse_grace": "- %s. On %s the newest are turned off unless the plan covers them again.", |
| - "banner.lapse_off": "Turned off because this account's plan no longer covers them: %s. Their settings and data are kept, and they come back when the plan covers them again.", |
| - "cli.lapse_off": "turned off because this account's plan no longer covers them: %s. settings and data are kept", |
| - "email.lapse_off": "- Turned off: %s.", |
| - "email.lapse_off_list": "Turned off: %s.\n\nChoose which stay:\n%s", |
| + "usage.sidecars": "%d above the per-app worker limit of %d", |
| + "usage.custom_domains": "%d custom domains, all of which this plan does not include", |
| + "banner.lapse_grace": "This account's plan no longer covers %s. On %s, anything not covered is turned off. For apps, instances and workers, the newest go first unless you choose what stays. Custom domains are all turned off when the plan does not include them. Settings and data are kept, and covered things come back within a few minutes. Only owners can choose.", |
| + "cli.lapse_grace": "this account's plan no longer covers %s. on %s, anything not covered is turned off. apps, instances and workers go newest first unless you choose what stays. custom domains are all turned off when the plan does not include them. settings and data are kept. covered things come back within a few minutes. only owners can choose", |
| + "email.lapse_grace": "- %s. On %s, anything not covered is turned off. Apps, instances and workers go newest first unless you choose what stays. Custom domains are all turned off when the plan does not include them. Settings and data are kept.", |
| + "banner.lapse_off": "Turned off because this account's plan no longer covers them: %s. Settings and data are kept. Covered things come back within a few minutes. Only owners can choose what stays.", |
| + "cli.lapse_off": "turned off because this account's plan no longer covers them: %s. settings and data are kept. covered things come back within a few minutes. only owners can choose what stays", |
| + "email.lapse_off": "- Turned off: %s. Settings and data are kept. Covered things come back within a few minutes.", |
| + "email.lapse_off_list": "Turned off: %s.\n\nChoose what stays for apps, instances and workers:\n%s", |
| } |
| // planKeepCopy holds the keep page's words (plans 4d): where an owner of a |
| -// lapsed account chooses which running things stay. |
| +// lapsed account chooses which running things stay. Approved by delegation |
| +// (Luna, docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md). |
| var planKeepCopy = map[string]string{ |
| "keep.title": "Choose what stays", |
| - "keep.intro": "This account's plan covers %d apps and instances and %d workers per app. Tick the ones to keep. The rest are turned off, newest first. Settings and data are kept either way.", |
| + "keep.intro": "This account's plan covers %d apps and instances, with a per-app limit of %d workers. Choose what stays. Anything else is turned off. For apps, instances and workers, the newest go first. Custom domains are all turned off when the plan does not include them. Settings and data are kept either way.", |
| "keep.save": "Save", |
| - "keep.too_many": "You ticked %d, and the plan covers %d. Untick some and save again.", |
| - "keep.stale": "Something you ticked is no longer there. Look at the list again and save.", |
| + "keep.too_many": "You chose %d, but the plan covers %d. Choose fewer and save again.", |
| + "keep.stale": "Something you chose is no longer there. Look at the list again and save.", |
| "keep.saved": "Saved. The change reaches your apps within a few minutes.", |
| - "keep.nothing": "Nothing to choose: this account's plan covers everything it runs.", |
| + "keep.nothing": "Nothing to choose. This account's plan covers everything it runs.", |
| "keep.link": "Choose what stays", |
| "keep.failed": "Could not read what this account runs. Try again in a moment.", |
| "keep.on": "On", |
| "keep.off": "Turned off", |
| - "keep.workers": "Workers", |
| } |
diff --git a/internal/console/planlapse_keep_test.go b/internal/console/planlapse_keep_test.go| index 209119218..377625286 100644 |
| --- a/internal/console/planlapse_keep_test.go |
| +++ b/internal/console/planlapse_keep_test.go |
| @@ -94,7 +94,7 @@ func TestKeepSaveRefusesMoreThanTheCap(t *testing.T) { |
| if got := keptRefs(t, fx, acct); got != nil { |
| t.Fatalf("a refused save kept %v", got) |
| } |
| - if _, _, body := get(t, c, keepURL(fx, acct)); !strings.Contains(body, "You ticked 4, and the plan covers 3") { |
| + if _, _, body := get(t, c, keepURL(fx, acct)); !strings.Contains(body, "You chose 4, but the plan covers 3") { |
| t.Fatalf("no too-many message:\n%s", body) |
| } |
| } |
diff --git a/internal/edge/plandisabled.go b/internal/edge/plandisabled.go| index acf65f3dc..1946296f7 100644 |
| --- a/internal/edge/plandisabled.go |
| +++ b/internal/edge/plandisabled.go |
| @@ -15,11 +15,12 @@ import ( |
| // Retry-After: nothing will change by waiting. It never echoes the host or |
| // anything else from the request. |
| -// The page's words. Kept together so a copy change is one place. |
| +// The page's words. Kept together so a copy change is one place. Approved |
| +// by delegation (Luna, docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4D1.md). |
| const ( |
| disabledTitle = "Not available" |
| disabledHeading = "This site is not available right now" |
| - disabledBody = "If it is yours, sign in to your console to see why." |
| + disabledBody = "If you own this site, sign in to the console for help." |
| ) |
| var disabledTemplate = template.Must(template.New("disabled").Parse(`<!doctype html> |