docs: fleet alerts plan 1 copy deck shows the applied text
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+110
−76
docs/superpowers/notes/copy-fleet-alerts-1.md+110 −76
Intent
Attributed to this commit: 7.95 g CO₂e (1,001,019 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/copy-fleet-alerts-1.md b/docs/superpowers/notes/copy-fleet-alerts-1.md| index 5703e6140..9904d20e9 100644 |
| --- a/docs/superpowers/notes/copy-fleet-alerts-1.md |
| +++ b/docs/superpowers/notes/copy-fleet-alerts-1.md |
| @@ -1,11 +1,21 @@ |
| # Fleet alerts plan 1: copy deck (draft, for copy review) |
| Every user-facing string of fleet alerts plan 1 (engine and connectors), |
| -for the copy review in Task 9. Nothing here is approved. A reviewer |
| -rewrites the `current` column against the house rules; Task 9 step 3 then |
| -puts the approved text into the code verbatim. |
| +for the copy review in Task 9. |
| -How to read it: |
| +Approved by delegation (Luna pass, controller R-31), applied in 720682a2. |
| + |
| +Groups 1 to 13 show their final text in the `current` column, as it is in |
| +the code. A row ending "Final (Luna)" was rewritten by the Luna pass |
| +(`LUNA-COPY-RESULT-fleet-alerts-1.md`); a row marked "derived (R-31)" was |
| +added by the controller's ruling and is the approved string with its |
| +subject clause dropped, or the box's own version of a group 3 line. Every |
| +other row is approved as the deck had it. Groups 14 to 18 are not built |
| +yet: they still show the draft, Luna's rows for them are in the result file, |
| +and Task 10 applies both. |
| + |
| +How to read it (the `current` column is the text as the code has it, or, |
| +for groups 14 to 18, the draft): |
| - `key`: the `alertCopy` key where there is one. A key starting `new:` does |
| not exist yet; its `current` column is a draft written for this deck |
| @@ -58,6 +68,10 @@ Headlines take two verbs: `%[1]s` is the rule (today the raw ID; group 2 supplie |
| | `head.clear` | `Cleared: %[1]s on %[2]s` | Same | Raw rule ID. With every member snoozed, `%[2]s` is "the fleet". | |
| | `head.update` | `More affected: %[1]s on %[2]s` | Same | Sent when members join an open incident. | |
| | `head.reminder` | `Still open: %[1]s on %[2]s` | Same | Daily, at most, for an incident still open after 24 hours. | |
| +| `head.fire.none` | `%[1]s` | Same, when every member is snoozed | derived (R-31): `head.fire` without its subject clause. Takes the display name alone. | |
| +| `head.clear.none` | `Cleared: %[1]s` | Same | derived (R-31): `head.clear` without its subject clause. | |
| +| `head.update.none` | `More affected: %[1]s` | Same | derived (R-31): `head.update` without its subject clause. | |
| +| `head.reminder.none` | `Still open: %[1]s` | Same | derived (R-31): `head.reminder` without its subject clause. | |
| | `head.suspended` | `Alerts to %[2]s have stopped` | Same | `%[2]s` is the connector label, such as a name and its address hint. `%[1]s` is unused (empty). | |
| | `head.verify` | `Check alerts reach %[2]s` | Same | Test sends and confirmations. `%[2]s` is the connector label. | |
| | `email.subject` | `[carlos] %s` | Every email's subject line | `%s` is the headline. Newlines in it become spaces. | |
| @@ -68,12 +82,12 @@ Headlines take two verbs: `%[1]s` is the rule (today the raw ID; group 2 supplie |
| | `link.incident` | `See the incident` | Email line, Slack link | Goes to the history page, at the incident. Not on a test. | |
| | `link.snooze` | `Snooze this alert` | Same | Opens the snooze door (group 17). Not on a verify message. A webhook body carries it as `snooze_url`. | |
| | `link.confirm` | `Confirm alerts here` | Same | Only on a verify message to an unconfirmed email or Slack connector. In place of the snooze and unsubscribe links. | |
| -| `link.unsubscribe` | `Stop these alerts` | Same, last in the message, after a blank line | This is the unsubscribe footer. It turns off the whole connector, not one rule, and the label does not say so. Shared by email and Slack. Webhook bodies have no such link. | |
| -| `subject.none` | `the fleet` | In place of a subject when no member is left to name | Known issue: appears as "... on the fleet" when every member is snoozed, on a fire, update or clear. | |
| -| `what.value` | `The last reading was %s.` | Appended to a fire's "what is wrong" for rules with a reading | `%s` is a reading from group 5. Grammar breaks for geoip (see group 5). | |
| +| `link.unsubscribe` | `Stop all alerts to this connector` | Email line, last in the message, after a blank line | The unsubscribe footer of an email. A Slack message uses `new:footer.unsubscribe.slack`. Webhook bodies have no such link. Final (Luna): Names the whole connector. | |
| +| `subject.none` | `the fleet` | The webhook's `subject` field only | No longer in any message text: a message with no member to name uses the subjectless variants below (R-31). | |
| +| `what.value` | `Reading: %s.` | Appended to a fire's "what is wrong" for rules with a reading | `%s` is a reading from group 5. Grammar breaks for geoip (see group 5). Final (Luna): Also works with GeoIP reason text. | |
| | `update.what` | `Now also affected: %s.` | Starts the "what is wrong" of an update | `%s` is the newly joined members, comma separated. | |
| -| `new:footer.unsubscribe.slack` | `Stop alerts to this channel` | Slack link, in place of `link.unsubscribe` | Draft, needs a code change to pick by kind. For email the draft of `link.unsubscribe` is `Stop alerts to this address`. | |
| -| `new:reminder.what` | `This has been open for %s.` | Starts a reminder's "what is wrong" | Draft, new. `%s` is a duration such as "2 days". Fixes flag 7. | |
| +| `new:footer.unsubscribe.slack` | `Stop alerts to this channel` | Slack link, in place of `link.unsubscribe` | Applied as the deck had it (the Luna pass left it alone): a Slack message picks it by kind (`renderSlack`). Email keeps `link.unsubscribe`. | |
| +| `new:reminder.what` | `This has been open for %s.` | Starts a reminder's "what is wrong" | Applied as the deck had it. `%s` is the whole days the incident has been open ("2 days"), or hours inside the first day ("1 hour"); a reminder is never sent before 24 hours. Fixes flag 7. | |
| ## 2. Rule display names (new) |
| @@ -101,44 +115,57 @@ Each rule has three lines: what is wrong, how long you have, what to do. `%s` in |
| | key | current | where it shows | notes | |
| |---|---|---|---| |
| | `rule.default.what` | `%s needs attention.` | Fallback fire | `%s` is the subject. | |
| -| `rule.default.how_long` | `It is not known how long you have.` | Fallback fire | | |
| -| `rule.default.what_to_do` | `Look at it on the fleet page.` | Fallback fire | | |
| +| `rule.default.what.none` | `Something needs attention.` | Same, when every member is snoozed | derived (R-31): `rule.default.what` without its subject clause. `rule.default.what` has only a subject to drop, so it says "Something". | |
| +| `rule.default.how_long` | `There is no time estimate.` | Fallback fire | Final (Luna): Plain and direct. | |
| +| `rule.default.what_to_do` | `Open the Alerts page and check it.` | Fallback fire | Final (Luna): Names the action and page. | |
| | `rule.disk_eta.what` | `The disk on %s is filling up.` | Fire, update, reminder for `disk_eta` | `%s` is a box. Reading follows: "N hours to full". | |
| -| `rule.disk_eta.how_long` | `At this rate it is full within 3 days.` | Same | Flag 10: "3 days" is the default 72 hours, but a box can override it. | |
| -| `rule.disk_eta.what_to_do` | `Free space on it or give it a bigger disk.` | Same | Draft: "Free space on it, or give it a bigger disk before then." | |
| +| `rule.disk_eta.what.none` | `The disk is filling up.` | Same, when every member is snoozed | derived (R-31): `rule.disk_eta.what` without its subject clause. | |
| +| `rule.disk_eta.how_long` | `The last reading gives the time to full.` | Same | Flag 10: "3 days" is the default 72 hours, but a box can override it. Final (Luna): Removes the hard-coded three days. | |
| +| `rule.disk_eta.what_to_do` | `Free space on it, or give it a bigger disk before it is full.` | Same | Final (Luna): Gives a clear action. | |
| | `rule.disk.what` | `The disk on %s is nearly full.` | Fire for `disk` | Reading follows, a percent. | |
| -| `rule.disk.how_long` | `Writes fail once it is full, which may be soon.` | Same | Gives no time. Draft: "Once it is full, writes fail. That can be soon, so treat this as urgent." | |
| +| `rule.disk.what.none` | `The disk is nearly full.` | Same, when every member is snoozed | derived (R-31): `rule.disk.what` without its subject clause. | |
| +| `rule.disk.how_long` | `Once it is full, writes fail. It may fill soon.` | Same | Gives no time. Final (Luna): States the consequence without vague urgency. | |
| | `rule.disk.what_to_do` | `Free space on it now, or give it a bigger disk.` | Same | | |
| | `rule.mem.what` | `Memory on %s is running high.` | Fire for `mem` | Reading follows, a percent. It has held for 10 minutes by default. | |
| -| `rule.mem.how_long` | `Processes may be stopped if it keeps climbing.` | Same | Gives no time. Draft: "There is no fixed time. If memory runs out, the system stops processes, and the apps on the box go down with them." | |
| +| `rule.mem.what.none` | `Memory is running high.` | Same, when every member is snoozed | derived (R-31): `rule.mem.what` without its subject clause. | |
| +| `rule.mem.how_long` | `There is no fixed time. If memory runs out, the system stops processes, and apps on the box go down with them.` | Same | Gives no time. Final (Luna): Explains the consequence. | |
| | `rule.mem.what_to_do` | `Check what is using memory on it.` | Same | | |
| | `rule.cpu.what` | `The processor on %s has been busy for a while.` | Fire for `cpu` | Reading follows. "A while" is 15 minutes by default. | |
| -| `rule.cpu.how_long` | `Requests are slower while it stays this busy.` | Same | Draft: "Nothing is down, but requests are slower for as long as it stays this busy." | |
| +| `rule.cpu.what.none` | `The processor has been busy for a while.` | Same, when every member is snoozed | derived (R-31): `rule.cpu.what` without its subject clause. | |
| +| `rule.cpu.how_long` | `Nothing is down, but requests are slower while it stays this busy.` | Same | Final (Luna): States the current impact. | |
| | `rule.cpu.what_to_do` | `Check what is using it, or move apps to another box.` | Same | | |
| | `rule.lag.what` | `Mail relay on %s is falling behind.` | Fire for `lag` | Reading follows, in seconds. | |
| -| `rule.lag.how_long` | `Messages are late until it catches up.` | Same | Draft: "Messages are already late. The delay grows until the relay catches up." | |
| +| `rule.lag.what.none` | `Mail relay is falling behind.` | Same, when every member is snoozed | derived (R-31): `rule.lag.what` without its subject clause. | |
| +| `rule.lag.how_long` | `Messages are already late. The delay grows until the relay catches up.` | Same | Final (Luna): States the current and worsening impact. | |
| | `rule.lag.what_to_do` | `Check the relay on that box.` | Same | | |
| | `rule.geoip.what` | `The location database on %s needs attention.` | Fire for `geoip` | A reason follows (group 5). | |
| -| `rule.geoip.how_long` | `Location answers go stale, then stop.` | Same | Gives no time; the reason decides it. Draft: "Lookups keep using the old data. If the database expires, they stop." | |
| +| `rule.geoip.what.none` | `The location database needs attention.` | Same, when every member is snoozed | derived (R-31): `rule.geoip.what` without its subject clause. | |
| +| `rule.geoip.how_long` | `Lookups keep using the old data. If the database expires, they stop.` | Same | Gives no time; the reason decides it. Final (Luna): Explains the consequence. | |
| | `rule.geoip.what_to_do` | `Check the location data feed.` | Same | Draft: "Check the location data feed. Its status is under Location data in the background jobs." Reviewer to confirm that page name. | |
| -| `rule.engine_silent.what` | `The alert engine on %s stopped writing its beat.` | Fire for `engine_silent` (late, flag 8) | `%s` is the console box. "Beat" is internal. Draft: "The alert engine on %s has gone quiet." | |
| -| `rule.engine_silent.how_long` | `Until it runs again, no alerts are sent.` | Same | Draft: "Until it runs again, the console sends no alerts. Each box still sends its own." | |
| -| `rule.engine_silent.what_to_do` | `Check the console on that box.` | Same | Draft: "Check the console service on that box and restart it if it is stuck." | |
| +| `rule.engine_silent.what` | `The alert engine on %s has gone quiet.` | Fire for `engine_silent` (late, flag 8) | `%s` is the console box. "Beat" is internal. Final (Luna): Removes internal “beat” wording. | |
| +| `rule.engine_silent.what.none` | `The alert engine has gone quiet.` | Same, when every member is snoozed | derived (R-31): `rule.engine_silent.what` without its subject clause. | |
| +| `rule.engine_silent.how_long` | `Until it runs again, the console sends no alerts. Each box still sends its own.` | Same | Final (Luna): Describes the late console alert accurately. | |
| +| `rule.engine_silent.what_to_do` | `Check the console service on that box and restart it if it is stuck.` | Same | Final (Luna): Gives the operator a concrete action. | |
| | `rule.box_silent.what` | `%s has stopped reporting.` | Fire for `box_silent` | Reading follows: "N minutes since its last report". | |
| +| `rule.box_silent.what.none` | `A box has stopped reporting.` | Same, when every member is snoozed | derived (R-31): `rule.box_silent.what` without its subject clause. The subject was the box itself, so it becomes "A box". | |
| | `rule.box_silent.how_long` | `If it is down, every app on it is down too.` | Same | | |
| -| `rule.box_silent.what_to_do` | `Check the box is running and can reach the bucket.` | Same | | |
| +| `rule.box_silent.what_to_do` | `Check that the box is running and can reach the bucket.` | Same | Final (Luna): Fixes the grammar and names both checks. | |
| | `rule.service_down.what` | `The %s service is down.` | Fire for `service_down` | `%s` is a service name, such as "console". | |
| +| `rule.service_down.what.none` | `A service is down.` | Same, when every member is snoozed | derived (R-31): `rule.service_down.what` without its subject clause. The subject was the service name, so it becomes "A service". | |
| | `rule.service_down.how_long` | `What relies on it fails until it is back.` | Same | | |
| -| `rule.service_down.what_to_do` | `Check the service on the fleet page.` | Same | Draft: "Open the fleet page, find the service and read its status." | |
| +| `rule.service_down.what_to_do` | `Open the fleet page, find the service and read its status.` | Same | Final (Luna): Gives a direct action. | |
| | `rule.cert_expiring.what` | `The certificate for %s expires soon.` | Fire for `cert_expiring` | `%s` is a served host. Reading follows: "N days left". | |
| -| `rule.cert_expiring.how_long` | `Visitors see a warning once it expires.` | Same | Gives no time; the reading does. Draft: "Visitors see a browser warning once it expires. The days left are in the last reading." | |
| -| `rule.cert_expiring.what_to_do` | `Check why it has not renewed.` | Same | Draft: "Find out why it has not renewed. Start with the box that serves the host." | |
| +| `rule.cert_expiring.what.none` | `A certificate expires soon.` | Same, when every member is snoozed | derived (R-31): `rule.cert_expiring.what` without its subject clause. The subject was the host, so it becomes "A certificate". | |
| +| `rule.cert_expiring.how_long` | `Visitors see a browser warning once it expires. The days left are in the last reading.` | Same | Gives no time; the reading does. Final (Luna): States the consequence and points to the time. | |
| +| `rule.cert_expiring.what_to_do` | `Find out why it has not renewed. Start with the box that serves the host.` | Same | Final (Luna): Gives the first investigation step. | |
| | `rule.alert_delivery_broken.what` | `%s has nowhere to send its own alerts.` | Fire for `alert_delivery_broken` | `%s` is a box. | |
| -| `rule.alert_delivery_broken.how_long` | `If the console stops, nobody hears from that box.` | Same | Draft: "That box's own alerts reach nobody. If the console stops as well, nobody hears about it." | |
| -| `rule.alert_delivery_broken.what_to_do` | `Set CARLOS_ALERT_WEBHOOK or CARLOS_ALERT_SNS_TOPIC_ARN in its host.env.` | Same | Both are real variable names. Reviewer to say if a restart of the agent should be named. | |
| -| `rule.seal_key.what` | `The key that opens Slack and webhook connectors on %s cannot be used.` | Fire for `seal_key` | `%s` is always "console", so it reads "on console". Also fires after a new key is made, when "cannot be used" is wrong. Draft: "Slack and webhook connectors cannot send, because the %s cannot open the key that protects their addresses." | |
| +| `rule.alert_delivery_broken.what.none` | `A box has nowhere to send its own alerts.` | Same, when every member is snoozed | derived (R-31): `rule.alert_delivery_broken.what` without its subject clause. The subject was the box, so it becomes "A box". | |
| +| `rule.alert_delivery_broken.how_long` | `That box's own alerts reach nobody. If the console stops as well, nobody hears about it.` | Same | Final (Luna): Explains both failure modes. | |
| +| `rule.alert_delivery_broken.what_to_do` | `Set CARLOS_ALERT_WEBHOOK or CARLOS_ALERT_SNS_TOPIC_ARN in its host.env, then restart the agent.` | Same | Final (Luna): Names the required restart. | |
| +| `rule.seal_key.what` | `Slack and webhook connectors cannot send because the %s cannot open the key that protects their addresses.` | Fire for `seal_key` | `%s` is always "console". Final (Luna): Covers both a missing and remade key. | |
| +| `rule.seal_key.what.none` | `Slack and webhook connectors cannot send because the key that protects their addresses cannot be opened.` | Same, when every member is snoozed | derived (R-31): `rule.seal_key.what` without its subject clause. The subject was the word "console"; it is dropped with its clause. | |
| | `rule.seal_key.how_long` | `Slack and webhook alerts are not sent until it is fixed. Email still works.` | Same | Ok. Draft keeps it: "Slack and webhook alerts wait until this is fixed. Email still works." | |
| -| `rule.seal_key.what_to_do` | `Restore the key file beside console.db, or enter each Slack and webhook connector again.` | Same | The file is `alert-connectors.key`; name it. Draft: "Put alert-connectors.key back beside console.db and restart the console. If it is lost, enter each Slack and webhook connector again on the Alerts page." | |
| +| `rule.seal_key.what_to_do` | `Put alert-connectors.key back beside console.db and restart the console. If it is lost, enter each Slack and webhook connector again on the Alerts page.` | Same | The file is `alert-connectors.key`; name it. Final (Luna): Names the file and both recovery paths. | |
| ## 4. Clear texts |
| @@ -146,12 +173,14 @@ A clear closes an incident. The "gone" variant is used when the incident closed |
| | key | current | where it shows | notes | |
| |---|---|---|---| |
| -| `clear.what` | `%[1]s has cleared on %[2]s.` | A clear's "what is wrong" | Raw rule ID. With every member snoozed, `%[2]s` is "the fleet": "disk has cleared on the fleet." | |
| +| `clear.what` | `%[1]s has cleared on %[2]s.` | A clear's "what is wrong" | `%[1]s` is the rule's display name (group 2), `%[2]s` the subject or all members. Applied as the deck had it, so a title opens the sentence as it is written ("Disk nearly full has cleared on box-1."). | |
| | `clear.how_long` | `Nothing is wrong now.` | Same | | |
| | `clear.what_to_do` | `Nothing.` | Same | | |
| -| `clear.what.gone` | `No further reports of %[1]s on %[2]s.` | A "no further reports" clear | Raw rule ID. Same "on the fleet" case. | |
| -| `clear.how_long.gone` | `It may have stopped, or what reported it may have gone.` | Same | Wrong for a flapping incident that went quiet: that one is still reported, only steady. | |
| -| `clear.what_to_do.gone` | `Check it went away for a good reason, such as a box being replaced.` | Same | | |
| +| `clear.what.gone` | `No further reports of %[1]s on %[2]s.` | A "no further reports" clear | Display name as above. A title mid-sentence keeps its capital ("No further reports of Box silent on box-9."); see the concerns in the Task 9 report. | |
| +| `clear.what.none` | `%[1]s has cleared.` | A clear when every member is snoozed | derived (R-31): `clear.what` without its subject clause. | |
| +| `clear.what.gone.none` | `No further reports of %[1]s.` | A "no further reports" clear when every member is snoozed | derived (R-31): `clear.what.gone` without its subject clause. | |
| +| `clear.how_long.gone` | `No new change has been reported. The incident may have stopped, or what reported it may have gone.` | Same | Wrong for a flapping incident that went quiet: that one is still reported, only steady. Final (Luna): Covers both gone and flapping incidents. | |
| +| `clear.what_to_do.gone` | `Check why the report stopped, including whether the box or service was replaced.` | Same | Final (Luna): Works for both close reasons. | |
| ## 5. Readings (appended to a fire) |
| @@ -186,7 +215,7 @@ A test send to a confirmed connector, a confirmation to a new one, and the notic |
| | `test.what_to_do.webhook` | `Answer with any 2xx status. The first one confirms this webhook.` | Same, to an unconfirmed webhook | The webhook gets this in the JSON `what_to_do` field, so it is read by whoever builds the receiver. | |
| | `suspended.what` | `Sending to %s has failed for 24 hours, so alerts no longer go there.` | "What is wrong" of the suspended notice | Goes to the scope's other connectors, or by email to the owners when there are none. | |
| | `suspended.how_long` | `Until it is fixed, every alert meant for it is missed.` | Same | | |
| -| `suspended.what_to_do` | `Check it on the alerts page, then send a test. A test that gets through turns it back on.` | Same | Page name must match the nav label, "Alerts". | |
| +| `suspended.what_to_do` | `Check it on the Alerts page, then send a test. A test that gets through turns it back on.` | Same | Page name must match the nav label, "Alerts". Final (Luna): Matches the page name. | |
| ## 7. Email framing |
| @@ -202,10 +231,10 @@ Shown in the background jobs table on the operator pages. |
| | key | current | where it shows | notes | |
| |---|---|---|---| |
| -| `jobLabels["StartAlertEngine"]` | `Alert engine` | Jobs table, Name column | **Replaces the approved "Alert checks" (OPS-84).** Not reviewed. The job now also seeds connectors, sends the outbox and writes the engine beat, so "checks" undersells it; "engine" is internal. `jobs_test.go:344` pins it. Candidate: "Alerts". | |
| -| `new:jobnote.seal` | `%v; Slack and webhook connectors are held` | Job status note, every pass while the seal key cannot be used | `%v` is the key error, in the next two rows. | |
| -| `new:jobnote.seal.read` | `alert seal key: %w` | Inside the note above | `%w` is the operating system's error, such as "permission denied". Diagnostic. | |
| -| `new:jobnote.seal.size` | `alert seal key %s: %d bytes, want %d` | Inside the note above | `%s` is the key file path, the numbers its size and the size wanted. Diagnostic. | |
| +| `jobLabels["StartAlertEngine"]` | `Alert checks` | Jobs table, Name column | Controller ruling R-27: the approved OPS-84 label stays. `jobs_test.go` pins it. | |
| +| `new:jobnote.seal` | `Slack and webhook connectors are held.` | Job status note, every pass while the seal key cannot be used | Carries no diagnostics (R-31): the key's own error stays in the journal. | |
| +| `new:jobnote.seal.read` | (removed from the note) | Journal only | Not in the note (R-31). The log line keeps it. | |
| +| `new:jobnote.seal.size` | (removed from the note) | Journal only | Not in the note (R-31). The log line keeps it. | |
| | `new:jobnote.unreachable` | `no usable alert connector reaches %s` | Job status note, until fixed | `%s` is the operators, comma separated. A note, not a failure. | |
| Not listed, on purpose (error fragments and diagnostics, copy-review scope rule): the `jobFailed` messages of the pass (`list alerts/boxes/`, `read ...`, `drain: ...`, `commit alert step`, `seed operator connectors`, `mark sealed connectors for re-entry`, `beat ...`, `snooze ...`), and `refused: host-claim console`. |
| @@ -216,21 +245,21 @@ From `alertnotify.go` and `alertdial.go`. The page shows a failed test or a held |
| | key | current | where it shows | notes | |
| |---|---|---|---| |
| -| `errAlertTestUnconfirmed` | `alert test: an email connector is tested only once its address is confirmed` | Error after "Send test" on an unconfirmed email | Not human text yet: it carries a `alert test:` prefix. Task 10 decides how it is shown. | |
| -| `errAlertTestLimit` | `alert test: at most 10 tests a connector an hour` | Error after "Send test" | | |
| -| `errAlertTestReentry` | `alert test: the connector needs re-entering` | Error after "Send test" | | |
| -| `new:test.failed` | `alert test: %s` | Error after "Send test" when the send fails | `%s` is a send category (next rows) or a hold reason. | |
| -| `sendErr.refused` | `refused` | A failed send's reason | The address resolved to a private or reserved range. | |
| -| `sendErr.timeout` | `timeout` | Same | Took over 5 seconds. | |
| -| `sendErr.connect` | `connect` | Same | | |
| -| `sendErr.tls` | `tls` | Same | | |
| -| `sendErr.status` | `status %d` | Same | `%d` is the HTTP status returned. | |
| -| `sendErr.invalid` | `invalid` | Same | The stored URL no longer passes the checks. | |
| -| `hold.needs_reentry` | `needs re-entry` | Why a message is waiting | | |
| -| `hold.suspended` | `suspended` | Same | | |
| -| `hold.unconfirmed` | `unconfirmed` | Same | | |
| -| `hold.no_seal_key` | `no seal key` | Same | | |
| -| `hold.seal` | `seal` | Same | The key could not open the stored address. | |
| +| `errAlertTestUnconfirmed` | `This email address is not confirmed yet. Open the confirm link before testing it.` | Error after "Send test" on an unconfirmed email | No `alert test:` prefix any more. | |
| +| `errAlertTestLimit` | `At most 10 tests per hour for one connector. Try again later.` | Error after "Send test" | Final (Luna): Plain rate-limit wording. | |
| +| `errAlertTestReentry` | `Enter this connector's URL again before testing it.` | Error after "Send test" | Final (Luna): Gives the required action. | |
| +| `new:test.failed` | `The test did not get through: %s.` | Error after "Send test" when the send fails | `%s` is the reason's words from `sendErr.*` or `hold.*`, with the reason's own closing full stop dropped so the line has one. A category with no row (`email`, from a failed mail send) shows as its code. | |
| +| `sendErr.refused` | `The address resolves to a private or reserved network.` | A failed send's reason | The address resolved to a private or reserved range. Final (Luna): Explains the refusal without exposing diagnostics. | |
| +| `sendErr.timeout` | `The address did not respond in time.` | Same | Took over 5 seconds. Final (Luna): Human-readable failure reason. | |
| +| `sendErr.connect` | `The connection could not be made.` | Same | Final (Luna): Human-readable failure reason. | |
| +| `sendErr.tls` | `The secure connection failed.` | Same | Final (Luna): Human-readable failure reason. | |
| +| `sendErr.status` | `The address returned HTTP status %d.` | Same | `%d` is the HTTP status returned. Final (Luna): Explains the status code. | |
| +| `sendErr.invalid` | `The stored URL is no longer valid.` | Same | The stored URL no longer passes the checks. Final (Luna): Gives the likely action. | |
| +| `hold.needs_reentry` | `The connector needs its URL entered again.` | Why a message is waiting | Final (Luna): Clear held reason. | |
| +| `hold.suspended` | `The connector is suspended.` | Same | Final (Luna): Complete sentence. | |
| +| `hold.unconfirmed` | `The connector is not confirmed.` | Same | Final (Luna): Complete sentence. | |
| +| `hold.no_seal_key` | `The connector key is missing.` | Same | Final (Luna): Clear held reason. | |
| +| `hold.seal` | `The connector key could not open the stored address.` | Same | The key could not open the stored address. Final (Luna): Clear held reason. | |
| ## 10. Connector URL errors (`validConnectorURL`) |
| @@ -238,14 +267,14 @@ Shown to an operator who adds a Slack or webhook connector. They name the rule b |
| | key | current | where it shows | notes | |
| |---|---|---|---| |
| -| `url.kind` | `alert connector: %q has no URL` | Never to a person with the form as drawn | `%q` is the connector kind. Reached only by a forged kind. | |
| -| `url.parse` | `alert connector: the URL does not parse` | Add form | | |
| -| `url.scheme` | `alert connector: the URL must start with https://` | Add form | | |
| -| `url.userinfo` | `alert connector: the URL must not carry a user name or password` | Add form | | |
| -| `url.port` | `alert connector: the URL must use port 443` | Add form | | |
| -| `url.host` | `alert connector: the URL has no host` | Add form | | |
| -| `url.ip` | `alert connector: the URL must name a host, not an IP address` | Add form | Also catches 127.1 and 0x7f000001. | |
| -| `url.slack` | `alert connector: a Slack URL must be on hooks.slack.com` | Add form, Slack only | | |
| +| `url.kind` | `Connector kind %q has no URL.` | Never to a person with the form as drawn | `%q` is the connector kind. Reached only by a forged kind. Final (Luna): Removes the internal prefix. | |
| +| `url.parse` | `The URL does not parse.` | Add form | Final (Luna): Removes the internal prefix. | |
| +| `url.scheme` | `The URL must start with https://.` | Add form | Final (Luna): Removes the internal prefix. | |
| +| `url.userinfo` | `The URL must not include a user name or password.` | Add form | Final (Luna): Removes the internal prefix. | |
| +| `url.port` | `The URL must use port 443.` | Add form | Final (Luna): Removes the internal prefix. | |
| +| `url.host` | `The URL has no host.` | Add form | Final (Luna): Removes the internal prefix. | |
| +| `url.ip` | `The URL must name a host, not an IP address.` | Add form | Also catches 127.1 and 0x7f000001. Final (Luna): Removes the internal prefix. | |
| +| `url.slack` | `A Slack URL must be on hooks.slack.com.` | Add form, Slack only | Final (Luna): Removes the internal prefix. | |
| ## 11. Box side: the message text (`formatAlert`) |
| @@ -259,26 +288,31 @@ The box's own alert, for `disk`, `mem`, `cpu`, `lag`, `geoip`, `disk_eta` and `e |
| | `box.fire.mem` | `memory use is %s on %s` | Fire | | |
| | `box.fire.cpu` | `cpu use is %s on %s` | Fire | | |
| | `box.fire.lag` | `mail relay lag is %d seconds on %s` | Fire | | |
| -| `box.fire.default` | `%s is firing on %s` | Fire for `disk_eta` and `engine_silent` | **This is the only text `engine_silent` and `disk_eta` have on the box:** "engine_silent is firing on box-1". Raw ID. Drafts: `disk on %s will be full in about %d hours` and `the alert engine on %s has stopped`. | |
| +| `box.fire.disk_eta` | `the disk on %s is filling up` | Fire for `disk_eta` | derived (R-31): the group 3 fire text, lower case as the box's others. `%s` is the box. | |
| +| `box.fire.engine_silent` | `the alert engine on %s has gone quiet` | Fire for `engine_silent` | derived (R-31): the group 3 fire text. `%s` is the console box. | |
| +| `box.fire.default` | `%s is firing on %s` | Fire for a rule this agent has no text for | First `%s` is the rule's display name, or its ID for a rule with none (R-31). `disk_eta` and `engine_silent` no longer use it. | |
| | `box.clear.disk` | `disk is back to %s full on %s` | Clear | | |
| | `box.clear.mem` | `memory use is back to %s on %s` | Clear | | |
| | `box.clear.cpu` | `cpu use is back to %s on %s` | Clear | | |
| | `box.clear.lag` | `mail relay lag is back to %d seconds on %s` | Clear | | |
| -| `box.clear.geoip` | `geoip on %s is back to normal` | Clear | | |
| -| `box.clear.default` | `%s has cleared on %s` | Clear for `disk_eta` and `engine_silent` | Raw ID. Drafts: `the disk forecast on %s no longer shows it filling` and `the alert engine on %s is running again`. | |
| -| `box.geoip.1` | `the geoip database on %s is more than 45 days old` | Fire for `geoip` code 1 | | |
| -| `box.geoip.2` | `the GeoLite2 database on %s expires within 9 days` | Same, code 2 | | |
| -| `box.geoip.3` | `the geoip database on %s has expired and was removed` | Same, code 3 | | |
| -| `box.geoip.4` | `%s has not loaded the published geoip database for over an hour` | Same, code 4 | | |
| -| `box.geoip.5` | `the geoip feed has failed 7 times in a row (seen from %s)` | Same, code 5 | | |
| -| `box.geoip.other` | `geoip needs attention on %s` | Same, any other code | | |
| +| `box.clear.disk_eta` | `the disk on %s is no longer filling up` | Clear for `disk_eta` | derived (R-31): the fire text turned round. | |
| +| `box.clear.engine_silent` | `the alert engine on %s is running again` | Clear for `engine_silent` | derived (R-31): the fire text turned round. | |
| +| `box.clear.geoip` | `location database on %s is back to normal` | Clear | Final (Luna): Uses the approved display name. | |
| +| `box.clear.default` | `%s has cleared on %s` | Clear for a rule this agent has no text for | First `%s` is the display name or the ID, as for the fire. `disk_eta` and `engine_silent` no longer use it. | |
| +| `box.geoip.1` | `the location database on %s is more than 45 days old` | Fire for `geoip` code 1 | Final (Luna): Uses the approved display name. | |
| +| `box.geoip.2` | `the Location database on %s expires within 9 days` | Same, code 2 | Final (Luna): Uses the approved display name. | |
| +| `box.geoip.3` | `the location database on %s has expired and was removed` | Same, code 3 | Final (Luna): Uses the approved display name. | |
| +| `box.geoip.4` | `%s has not loaded the published location database for over an hour` | Same, code 4 | Final (Luna): Uses the approved display name. | |
| +| `box.geoip.5` | `the location data feed has failed 7 times in a row (seen from %s)` | Same, code 5 | Final (Luna): Removes undefined GeoIP wording. | |
| +| `box.geoip.other` | `the location database needs attention on %s` | Same, any other code | Final (Luna): Uses the approved display name. | |
| | `box.body.level` | `the alert level is %s.` | Body, for disk, mem, cpu, lag | `%s` is the threshold (a percent, or "N seconds"). "Level" here means the threshold; the console uses "level" for incident or warning. | |
| | `box.body.sustain` | `it stayed above that level for %d minutes before this alert was raised.` | Body of a mem or cpu fire | | |
| | `box.body.reported` | `this was reported at %s.` | Body | `%s` is a UTC time, such as 2026-10-31 14:05 UTC. | |
| -| `box.body.another` | `you will get another email when it clears.` | Body of every fire | **False in Slack.** Draft: "it will be reported again when it clears." Or leave the line out for Slack and keep it for SNS. The box has no way to tell the two apart today except the URL. | |
| -| `box.body.footer` | `rule: %s` and `box: %s` | Last two lines of the body | Raw rule ID. | |
| -| `new:box.todo.how_long` | (none today) | Body | Draft: a "how long you have" line per rule, the same as group 3. The box cannot read the console's `alertCopy`, so the text would be copied; reviewer decides whether that is acceptable. | |
| -| `new:box.todo.what_to_do` | (none today) | Body | Draft: a "what to do" line per rule, the same as group 3. Same question. | |
| +| `box.body.another` | `it will be reported again when it clears.` | Body of every fire | **False in Slack.** Final (Luna): Does not promise another email when delivered to Slack. | |
| +| `box.body.footer` | `rule: %s` and `box: %s` | Last two lines of the body | The rule's display name (group 2), not its ID (R-31). A rule with no name keeps its ID. | |
| +| `box.body.how_long` | `How long you have: %s` | Body of a fire, for the seven box rules | The same line as group 3 for the rule (`alerting.BoxRuleText`, shared by the console and the box). Not on a clear. | |
| +| `box.body.what_to_do` | `What to do: %s` | Body of a fire, for the seven box rules | The same line as group 3 for the rule. Not on a clear. | |
| +| `box.body.reading` | `Reading: %s.` | Body of a `disk_eta` fire | derived (R-31): `what.value` with `%.0f hours to full`, so "The last reading gives the time to full." has a reading to point at. The other rules carry their reading in the sentence. | |
| ## 12. Box side: delivery log lines (not user text) |
| @@ -298,8 +332,8 @@ From `cli.go` (`alertsWord`, `engineBeatWord`). Shown on each box's line in the |
| | `status.alerts.snsfailed` | ` (sns failed %d)` | Same | | |
| | `status.engine.on` | ` engine-beat=on` | Next to `alerts=`, on a console box | The engine_silent watch is armed. Absent on a box that runs no console. | |
| | `status.engine.off` | ` engine-beat=off (%s)` | Same | `%s` is one of the next two reasons. | |
| -| `status.engine.why.root` | `agent runs as root` | Inside the brackets | The agent refuses to read a console-written file as root. A person reading this does not learn that the backstop is therefore off. Draft: `agent runs as root, so the backstop is off`. | |
| -| `status.engine.why.path` | `path is not absolute` | Inside the brackets | Draft: `CARLOS_ALERT_ENGINE_BEAT is not an absolute path`. | |
| +| `status.engine.why.root` | `agent runs as root, so the backstop is off` | Inside the brackets | The agent refuses to read a console-written file as root. A person reading this does not learn that the backstop is therefore off. Final (Luna): Explains the consequence. | |
| +| `status.engine.why.path` | `CARLOS_ALERT_ENGINE_BEAT is not an absolute path` | Inside the brackets | Final (Luna): Names the setting that needs correction. | |
| ## 14. `/fleet/alerts` page and Connectors (new, drafts) |