carlos / platform Public

Luna copy brief: fleet alerts Plan 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 3d767d7b821f20f6cdf80c1e13f8e19f92ffb57d parent 911b1d7
1 file changed, +36 −0
  • docs/superpowers/notes/LUNA-COPY-BRIEF-fleet-alerts-1.md +36 −0

Intent

Human

<task-notification> <task-id>a029dd22d3a1164d6</task-id> <tool-use-id>toolu_01HQ5bogHmb7P1CrwmEUc5xb</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6112a34e-476e-4b5e-8e07-f93a46fc6d50/tasks/a029dd22d3a1164d6.output</output-file> <status>completed</status> <summary>Agent "Task 9 step 1: draft copy deck" 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>I wrote the copy deck and committed it as `911b1d7f`. Git printed the known `packed-refs.lock` error, but `git log` shows the commit landed and the tree is clean. I changed no Go code and added no other files. **Commit trailer.** I used the one from env.md (`Co-Authored-By: Claude Opus 5.5`), as you asked. The session's own attribution reminder says Sonnet 5.5 instead. **Deck:** `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-alerts/docs/superpowers/notes/copy-fleet-alerts-1.md` Strings per group, 316 rows in all: | # | Group | Strings | |---|---|---| | 1 | Headlines, labels, links, email subject | 20 | | 2 | Rule display names (new) | 12 | | 3 | Fire texts, also used by update and reminder, 12 rules plus default | 39 | | 4 | Clear texts, including "no further reports" | 6 | | 5 | Readings appended to a fire, and geoip reasons | 12 | | 6 | Confirm, Slack test and suspended notice | 9 | | 7 | Email body layout and unsubscribe footer | 1 | | 8 | Job label and job-status notes | 5 | | 9 | Test-send errors, send categories, held reasons | 15 | | 10 | `validConnectorURL` errors | 8 | | 11 | Box side `formatAlert` and `engine_silent` | 26 | | 12 | Box delivery log lines (journal only, listed as excluded) | 0 | | 13 | `carlos status --live`, including `engine-beat=…` | 10 | | 14 | `/fleet/alerts` page and Connectors (drafted) | 51 | | 15 | Rules, including read-only `host.env` names (drafted) | 45 | | 16 | History (drafted) | 16 | | 17 | Public doors: confirm, unsubscribe, snooze (drafted) | 25 | | 18 | Signing key page (drafted) | 1 | The deck opens with a "Flags for the reviewer" section. These are the issues in it: - **Job label:** "Alert engine" replaces the approved "Alert checks" (OPS-84). `jobs_test.go:344` pins it. - **Box text and Slack:** `formatAlert` now feeds Slack too and still says "you will get another email when it clears." The box text also has no "how long" or "what to do" line. - **Raw rule IDs:** clears and headlines print them. Group 2 drafts a display name per rule. - **Snoozed clears:** a clear, fire or update where every member is snoozed reads "… on the fleet". - **`seal_key`:** the text says the key "cannot be used" but the rule also fires after a new key is made. Its subject is always "console". The shipped fix text names the wrong file. It is `alert-connectors.key`. Four more issues turned up: - **Extra argument in `Sprintf`:** `alertEmitNote` always passes the subject to `Sprintf`. A rewritten `what` with no `%s` prints `%!(EXTRA …)`. - **`engine_silent` timing:** the console's text arrives late, because the rule is a box rule. While the engine is dead only the box's own text goes out, and that text is the raw "engine_silent is firing on box-1". - **Reminders:** they don't say how long the incident has been open. I drafted a new key for it. - **`task-10-brief.md` gap:** the snooze link in a message carries no `for`, but the brief only covers `for=1h|1d|1w`. I drafted a "how long should this stay quiet?" choice page and marked it as an open question for Task 10. A few other points the reviewer should know: - **Drafted bounds:** the threshold error "Enter a whole number from %d to %d" has bounds the brief doesn't give. - **Signing-key page:** I recommend the page serve the bare key with no prose, so receivers can fetch it directly. - **Excluded diagnostics:** `jobFailed` messages and journal lines are left out, per the copy-review scope rule.</result> <usage><subagent_tokens>152097</subagent_tokens><tool_uses>23</tool_uses><duration_ms>341291</duration_ms></usage> </task-notification>

Attributed to this commit: 23.2 g CO₂e (2,952,986 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-alerts, 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/docs/superpowers/notes/LUNA-COPY-BRIEF-fleet-alerts-1.md b/docs/superpowers/notes/LUNA-COPY-BRIEF-fleet-alerts-1.md
new file mode 100644
index 000000000..4d2d7e769
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-BRIEF-fleet-alerts-1.md
@@ -0,0 +1,36 @@
+# Copy pass: fleet alerts Plan 1 (alert messages, /fleet/alerts pages, token doors, box alert text)
+
+You are reviewing copy for CARLOS, a hosting platform. The feature sends alerts to platform operators before something breaks. A disk forecast to fill within 72 hours is the reference case. Alerts go to Slack, email or a signed webhook.
+
+Paul is the platform owner and an operator himself. He wants alerts that are worth acting on. Noise is the anti-goal. Every alert says three things:
+- what is wrong
+- how long you have
+- what to do
+
+The deck is `docs/superpowers/notes/copy-fleet-alerts-1.md`, at this brief's commit. Read all of it, including its "Flags for the reviewer".
+
+## House rules (Paul's)
+
+- No em or en dashes used as dashes. Use a full stop and a new sentence, in lower case.
+- Plain, direct, calm. No exclamation marks, no marketing tone, no "Oops", no "simply".
+- Say what happened, then what to do. Name the box, the rule and the time where the string has them.
+- Operator-facing, so technical words (webhook, host.env, Slack, SNS) are fine. Undefined jargon is not.
+- Keep every placeholder (`%s`, `%d`, `%[1]s`, `{{.Field}}`) in the same order. If you must reorder, say so in "why".
+- Slack posts are short. The first line must stand alone in a phone notification.
+- Never promise a channel. Box-side text may go to Slack or email, so don't write "you will get another email".
+- Leave out diagnostics, log lines and JSON keys. The deck already excludes them.
+
+## Controller rulings already made (don't re-argue)
+
+- **R-27:** the job label stays the approved "Alert checks". Mark row 8's label as reverted to that.
+- **R-28:** snooze links in messages carry no duration. The snooze page offers three buttons: 1 hour, 1 day, 1 week.
+- **R-29:** threshold bounds are box silent 5 to 1440 minutes, certificate expiring 1 to 60 days.
+- **R-30:** the signing-key route returns the bare key, so there is no prose to review in group 18.
+- Gone or quiet closes say "no further reports", not "resolved".
+- A clear may list no members when every member is snoozed. Fix the "on the fleet" reading.
+- Use the group 2 display names instead of raw rule IDs everywhere a person reads them.
+
+## What to return
+
+1. A table `key | new | why`, with only the rows you change. Rows you leave alone are approved as they are.
+2. A `## Flags` section with only what Paul must decide: a fact you can't verify, a placeholder you can't make work, or a string that needs splitting. Keep it short.