carlos / platform Public

plans 4b: Luna copy applied; after-grace docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev c4615cf96e1e395022a4a0163489b804e9fa0c3e parent 92883e6
4 files changed, +22 −4
  • docs/site/plans.md +8 −1
  • docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4B.md +10 −0
  • internal/console/plancaps_copy.go +3 −2
  • internal/console/plangrace_cli_test.go +1 −1
diff --git a/docs/site/plans.md b/docs/site/plans.md
index c8581c6c2..e947144e2 100644
--- a/docs/site/plans.md
+++ b/docs/site/plans.md
@@ -75,4 +75,11 @@ Going over the limit starts a grace period:
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.
+After grace, only the capped action is refused, and each refusal lifts by itself:
+
+- **Email.** When an account has sent twice its daily limit, every sender of every app is paused until midnight UTC. This does not wait for notice, because sending reputation is shared by every tenant. The catalog's email ceiling caps it.
+- **Storage.** New uploads to the account's stores are refused once grace has ended and an owner has had notice for 3 days, or straight away at twice the limit. Downloads, listing and deletes keep working, so the account can clean up. Uploads come back once usage is under the limit or the limit is raised.
+
+The account banner and the CLI warning line say which stage is in force. Bandwidth and awake hours only warn for now.
+
+The console 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. Apart from the two ceilings above (email at twice its limit, storage at twice its limit), 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 for anything short of a ceiling.
diff --git a/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4B.md b/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4B.md
new file mode 100644
index 000000000..23aa9a9ca
--- /dev/null
+++ b/docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4B.md
@@ -0,0 +1,10 @@
+| key | new | why |
+|---|---|---|
+| `banner.email_paused` | Email is paused until midnight UTC: this account sent %s. | Clear and matches the required account-wide pause and reset time. |
+| `cli.email_paused` | email is paused until midnight utc: this account sent %s | Lower case with no final full stop. |
+| `banner.storage_denied` | New uploads to this account's storage are refused: %s. Downloads and deletes still work. | Clear and preserves the storage behavior. |
+| `cli.storage_denied` | new uploads to this account's storage are refused: %s. downloads and deletes still work | Adds the missing storage context, stays lower case, and has no final full stop. |
+
+## Flags
+
+None. No files were edited.
\ No newline at end of file
diff --git a/internal/console/plancaps_copy.go b/internal/console/plancaps_copy.go
index b0d4851a1..0552ab413 100644
--- a/internal/console/plancaps_copy.go
+++ b/internal/console/plancaps_copy.go
@@ -43,9 +43,10 @@ var planNoticeCopy = map[string]string{
"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",
- // Plans 4b: an after-grace stage in force. Luna pass pending.
+ // Plans 4b: an after-grace stage in force. Approved by delegation (Luna,
+ // docs/superpowers/specs/LUNA-COPY-RESULT-PLANS-4B.md).
"banner.email_paused": "Email is paused until midnight UTC: this account sent %s.",
"cli.email_paused": "email is paused until midnight utc: this account sent %s",
"banner.storage_denied": "New uploads to this account's storage are refused: %s. Downloads and deletes still work.",
- "cli.storage_denied": "new uploads are refused: %s. downloads and deletes still work",
+ "cli.storage_denied": "new uploads to this account's storage are refused: %s. downloads and deletes still work",
}
diff --git a/internal/console/plangrace_cli_test.go b/internal/console/plangrace_cli_test.go
index f216249d0..3804a024c 100644
--- a/internal/console/plangrace_cli_test.go
+++ b/internal/console/plangrace_cli_test.go
@@ -111,7 +111,7 @@ func TestCLIWarningSaysStorageWritesDenied(t *testing.T) {
}
token := cliToken(t, fx, "paul@keymail.dev", "code-cli-stage")
got := cliWarnings(t, fx, token, true)
- if len(got) != 1 || !strings.HasPrefix(got[0], "new uploads are refused") {
+ if len(got) != 1 || !strings.HasPrefix(got[0], "new uploads to this account's storage are refused") {
t.Fatalf("warning = %q", got)
}
}