plans 4a: Luna copy pass applied; warnings and grace docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+50
−5
docs/site/plans.md+23 −0docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4A.md+21 −0internal/console/plancaps_copy.go+6 −5
diff --git a/docs/site/plans.md b/docs/site/plans.md| index 006392789..c8581c6c2 100644 |
| --- a/docs/site/plans.md |
| +++ b/docs/site/plans.md |
| @@ -53,3 +53,26 @@ carlos accounts plan --account bac --set free --sponsored limits.json --reason " |
| ``` |
| `limits.json` holds any of the limit names from the catalog. A sponsored limit can go above a ceiling: that is a decision you made for that account. |
| + |
| +## Warnings and grace |
| + |
| +Once an hour the console compares each account's usage with its limits, for five caps: |
| + |
| +- apps and instances running; |
| +- object storage; |
| +- emails sent today; |
| +- bandwidth this month; |
| +- awake hours this month. |
| + |
| +The figures come from what the console already records: its own app list, the monthly usage statements, the daily storage sweep and the mail counts. A cap whose limit is 0 is skipped. |
| + |
| +At 80% of a limit, the account's owners get an email, and a banner appears on every account page. A `carlos` command run against the account prints a line starting `warning:`, from a CLI new enough to print it. |
| + |
| +Going over the limit starts a grace period: |
| +- 7 days for apps and instances, and for storage; |
| +- the rest of the UTC day for email; |
| +- the rest of the UTC month for bandwidth and awake hours. |
| + |
| +While an account is over, its owners get one reminder a day, saying when grace ends and how to get back under: buy a pack, move to a bigger plan, or clean up. |
| + |
| +Nothing is refused, slowed or stopped yet. The console only warns and keeps the clock. It also records when an owner actually received notice: an email that was accepted for delivery, an owner viewing an account page with the banner, or an owner's CLI printing the warning. Whatever acts after grace starts only once grace has ended and an owner received notice at least 3 days earlier, so an account nobody has heard from is never cut off. |
diff --git a/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4A.md b/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4A.md| new file mode 100644 |
| index 000000000..004014c78 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4A.md |
| @@ -0,0 +1,21 @@ |
| +| key | new | why | |
| +|---|---|---| |
| +| `usage.running_things` | `%d of %d apps and instances` | No change needed | |
| +| `usage.storage` | `%s of %s object storage` | No change needed | |
| +| `usage.email` | `%d of %d emails today` | No change needed | |
| +| `usage.bandwidth` | `%s of %s bandwidth this month` | No change needed | |
| +| `usage.awake_hours` | `%d of %d awake hours this month` | No change needed | |
| +| `banner.warn` | `This account has used %s. If it goes over, nothing changes during the grace period.` | More direct wording | |
| +| `banner.over` | `This account is over its plan: %s. Nothing changes until %s. To stay within the plan, buy a pack, move to a bigger plan, or clean up.` | Names the plan clearly | |
| +| `cli.warn` | `this account has used %s` | No change needed | |
| +| `cli.over` | `this account is over its plan: %s. nothing changes until %s. buy a pack, move to a bigger plan, or clean up` | No change needed | |
| +| `email.subject` | `[carlos] Account %s: plan usage` | No change needed | |
| +| `email.intro` | `Account %s is near or over its plan limits:` | Makes the meaning clearer | |
| +| `email.warn` | `- %s.` | No change needed | |
| +| `email.over` | `- %s, over the limit. Nothing changes until %s.` | No change needed | |
| +| `email.ways_out` | `To stay within the plan, buy a pack, move to a bigger plan, or clean up.\n\nAccount settings:\n%s` | No change needed | |
| + |
| +## Flags |
| + |
| +- No unresolved placeholder issues. |
| +- The 80% warning threshold is a product rule, not something these strings need to state. |
| \ No newline at end of file |
diff --git a/internal/console/plancaps_copy.go b/internal/console/plancaps_copy.go| index 4a7e94e42..1282ea191 100644 |
| --- a/internal/console/plancaps_copy.go |
| +++ b/internal/console/plancaps_copy.go |
| @@ -25,20 +25,21 @@ var capCopy = map[string]string{ |
| // not be read (copy review 2026-10-22, cli.err.plan_check_failed). |
| const planCheckFailedCopy = "could not check this account's plan. Try again" |
| -// planNoticeCopy holds the plan warning and grace notices (plans 4a). Copy |
| -// review is a Luna pass on the house rules (Paul, 2026-10-25). |
| +// planNoticeCopy holds the plan warning and grace notices (plans 4a), |
| +// approved by delegation: a Luna pass on the house rules (Paul, 2026-10-25; |
| +// docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4A.md). |
| var planNoticeCopy = map[string]string{ |
| "usage.running_things": "%d of %d apps and instances", |
| "usage.storage": "%s of %s object storage", |
| "usage.email": "%d of %d emails today", |
| "usage.bandwidth": "%s of %s bandwidth this month", |
| "usage.awake_hours": "%d of %d awake hours this month", |
| - "banner.warn": "This account has used %s. If it goes over, nothing changes for a grace period.", |
| - "banner.over": "This account is over its plan: %s. Nothing changes until %s. To stay within it, buy a pack, move to a bigger plan, or clean up.", |
| + "banner.warn": "This account has used %s. If it goes over, nothing changes during the grace period.", |
| + "banner.over": "This account is over its plan: %s. Nothing changes until %s. To stay within the plan, buy a pack, move to a bigger plan, or clean up.", |
| "cli.warn": "this account has used %s", |
| "cli.over": "this account is over its plan: %s. nothing changes until %s. buy a pack, move to a bigger plan, or clean up", |
| "email.subject": "[carlos] Account %s: plan usage", |
| - "email.intro": "Account %s is near or over what its plan includes:", |
| + "email.intro": "Account %s is near or over its plan limits:", |
| "email.warn": "- %s.", |
| "email.over": "- %s, over the limit. Nothing changes until %s.", |
| "email.ways_out": "To stay within the plan, buy a pack, move to a bigger plan, or clean up.\n\nAccount settings:\n%s", |