carlos / platform Public

Luna copy result: fleet alerts Plan 1 (unedited)

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

Intent

Human

Still going?

Human

<task-notification> <task-id>b6o2e1xz9</task-id> <tool-use-id>toolu_01W7cCjvWYdZJFT4sb6Q86Mj</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6112a34e-476e-4b5e-8e07-f93a46fc6d50/tasks/b6o2e1xz9.output</output-file> <status>completed</status> <summary>Background command "Run the Luna copy pass" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 11.7 g CO₂e (1,490,058 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-RESULT-fleet-alerts-1.md b/docs/superpowers/notes/LUNA-COPY-RESULT-fleet-alerts-1.md
new file mode 100644
index 000000000..b665ec472
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-RESULT-fleet-alerts-1.md
@@ -0,0 +1,87 @@
+| key | new | why |
+|---|---|---|
+| `link.unsubscribe` | `Stop all alerts to this connector` | Names the whole connector. |
+| `what.value` | `Reading: %s.` | Also works with GeoIP reason text. |
+| `rule.default.how_long` | `There is no time estimate.` | Plain and direct. |
+| `rule.default.what_to_do` | `Open the Alerts page and check it.` | Names the action and page. |
+| `rule.disk_eta.how_long` | `The last reading gives the time to full.` | 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.` | Gives a clear action. |
+| `rule.disk.how_long` | `Once it is full, writes fail. It may fill soon.` | States the consequence without vague urgency. |
+| `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.` | Explains the consequence. |
+| `rule.cpu.how_long` | `Nothing is down, but requests are slower while it stays this busy.` | States the current impact. |
+| `rule.lag.how_long` | `Messages are already late. The delay grows until the relay catches up.` | States the current and worsening impact. |
+| `rule.geoip.how_long` | `Lookups keep using the old data. If the database expires, they stop.` | Explains the consequence. |
+| `rule.engine_silent.what` | `The alert engine on %s has gone quiet.` | Removes internal “beat” wording. |
+| `rule.engine_silent.how_long` | `Until it runs again, the console sends no alerts. Each box still sends its own.` | 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.` | Gives the operator a concrete action. |
+| `rule.box_silent.what_to_do` | `Check that the box is running and can reach the bucket.` | Fixes the grammar and names both checks. |
+| `rule.service_down.what_to_do` | `Open the fleet page, find the service and read its status.` | Gives a direct action. |
+| `rule.cert_expiring.how_long` | `Visitors see a browser warning once it expires. The days left are in the last reading.` | 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.` | Gives the first investigation step. |
+| `rule.alert_delivery_broken.how_long` | `That box's own alerts reach nobody. If the console stops as well, nobody hears about it.` | 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.` | 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.` | Covers both a missing and remade key. |
+| `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.` | Names the file and both recovery paths. |
+| `clear.how_long.gone` | `No new change has been reported. The incident may have stopped, or what reported it may have gone.` | Covers both gone and flapping incidents. |
+| `clear.what_to_do.gone` | `Check why the report stopped, including whether the box or service was replaced.` | Works for both close reasons. |
+| `suspended.what_to_do` | `Check it on the Alerts page, then send a test. A test that gets through turns it back on.` | Matches the page name. |
+| `jobLabels["StartAlertEngine"]` | `Alert checks` | Applies R-27. |
+| `new:jobnote.seal` | `Slack and webhook connectors are held.` | Removes the diagnostic error from operator copy. |
+| `errAlertTestUnconfirmed` | `This email address is not confirmed yet. Open the confirm link before testing it.` | Removes the internal prefix and gives the action. |
+| `errAlertTestLimit` | `At most 10 tests per hour for one connector. Try again later.` | Plain rate-limit wording. |
+| `errAlertTestReentry` | `Enter this connector's URL again before testing it.` | Gives the required action. |
+| `new:test.failed` | `The test did not get through: %s.` | Removes the internal prefix. |
+| `sendErr.refused` | `The address resolves to a private or reserved network.` | Explains the refusal without exposing diagnostics. |
+| `sendErr.timeout` | `The address did not respond in time.` | Human-readable failure reason. |
+| `sendErr.connect` | `The connection could not be made.` | Human-readable failure reason. |
+| `sendErr.tls` | `The secure connection failed.` | Human-readable failure reason. |
+| `sendErr.status` | `The address returned HTTP status %d.` | Explains the status code. |
+| `sendErr.invalid` | `The stored URL is no longer valid.` | Gives the likely action. |
+| `hold.needs_reentry` | `The connector needs its URL entered again.` | Clear held reason. |
+| `hold.suspended` | `The connector is suspended.` | Complete sentence. |
+| `hold.unconfirmed` | `The connector is not confirmed.` | Complete sentence. |
+| `hold.no_seal_key` | `The connector key is missing.` | Clear held reason. |
+| `hold.seal` | `The connector key could not open the stored address.` | Clear held reason. |
+| `url.kind` | `Connector kind %q has no URL.` | Removes the internal prefix. |
+| `url.parse` | `The URL does not parse.` | Removes the internal prefix. |
+| `url.scheme` | `The URL must start with https://.` | Removes the internal prefix. |
+| `url.userinfo` | `The URL must not include a user name or password.` | Removes the internal prefix. |
+| `url.port` | `The URL must use port 443.` | Removes the internal prefix. |
+| `url.host` | `The URL has no host.` | Removes the internal prefix. |
+| `url.ip` | `The URL must name a host, not an IP address.` | Removes the internal prefix. |
+| `url.slack` | `A Slack URL must be on hooks.slack.com.` | Removes the internal prefix. |
+| `box.body.another` | `it will be reported again when it clears.` | Does not promise another email when delivered to Slack. |
+| `box.clear.geoip` | `location database on %s is back to normal` | Uses the approved display name. |
+| `box.geoip.1` | `the location database on %s is more than 45 days old` | Uses the approved display name. |
+| `box.geoip.2` | `the Location database on %s expires within 9 days` | Uses the approved display name. |
+| `box.geoip.3` | `the location database on %s has expired and was removed` | Uses the approved display name. |
+| `box.geoip.4` | `%s has not loaded the published location database for over an hour` | Uses the approved display name. |
+| `box.geoip.5` | `the location data feed has failed 7 times in a row (seen from %s)` | Removes undefined GeoIP wording. |
+| `box.geoip.other` | `the location database needs attention on %s` | Uses the approved display name. |
+| `status.engine.why.root` | `agent runs as root, so the backstop is off` | Explains the consequence. |
+| `status.engine.why.path` | `CARLOS_ALERT_ENGINE_BEAT is not an absolute path` | Names the setting that needs correction. |
+| `new:conn.help` | `A connector is where alerts are sent. Add Slack, an email address or a webhook.` | More direct wording. |
+| `new:conn.status.suspended` | `Suspended since %s. Send a test to turn it back on.` | Includes the recovery action. |
+| `new:conn.delete.confirm` | `Delete %s? Alerts stop going to this connector.` | Removes the vague “there.” |
+| `new:conn.add.name.help` | `It appears in alerts and on this page. For example, ops channel.` | Uses direct wording. |
+| `new:conn.add.webhook.help` | `An HTTPS URL on port 443. It is stored encrypted and is not shown again. Each alert is sent as signed JSON, and the receiver must answer with a 2xx status.` | Corrects HTTPS capitalization. |
+| `new:conn.added.slack` | `Added. We sent a test message with a confirm link to Slack. Open the link to turn this connector on.` | Shortens the confirmation. |
+| `new:conn.added.webhook.failed` | `Added, but the test did not get through (%s). Fix the connector, then send a test.` | Gives the next action. |
+| `new:conn.err.confirmlimit` | `Too many confirmation emails. The limit is 5 an hour and 20 a day. Try again later.` | Names both limits and the action. |
+| `new:conn.key.help` | `Each webhook alert carries a Carlos-Signature header. Receivers can check it with this public key. It is also served as plain text at %s.` | Avoids saying the public key signs the header. |
+| `new:rules.th.disk` | `Default: 90 percent. Each box can set CARLOS_ALERT_DISK_PCT in its host.env.` | Avoids an ambiguous bare number. |
+| `new:rules.th.mem` | `Default: 90 percent. Each box can set CARLOS_ALERT_MEM_PCT in its host.env.` | Avoids an ambiguous bare number. |
+| `new:rules.th.cpu` | `Default: 95 percent. Each box can set CARLOS_ALERT_CPU_PCT in its host.env.` | Avoids an ambiguous bare number. |
+| `new:rules.noise` | `Fired %d times. It cleared within 10 minutes %d times.` | Improves the sentence structure. |
+| `new:hist.state.flapping` | `Open, fired and cleared 3 times in the last hour` | Replaces undefined “flapping.” |
+| `new:hist.affected.many` | `%d affected members: %s` | Works for boxes, hosts and services. |
+
+## Flags
+
+- `subject.none` is shared by fire, update and clear messages. No single replacement makes every `... on the fleet` sentence grammatical. It needs separate subjectless variants.
+- `new:jobnote.seal` drops `%v`, and `new:jobnote.seal.read` and `new:jobnote.seal.size` are diagnostics. The formatter must stop inserting those fragments.
+- `box.fire.default` and `box.clear.default` need separate strings for `disk_eta` and `engine_silent`. Their placeholders and meanings differ.
+- Box alerts still have no `how long` or `what to do` lines. Those need one approved pair per rule, or an explicit decision to keep box alerts shorter.
+- The box formatter’s rule placeholder must receive the group 2 display name rather than the raw rule ID. Copy alone cannot make that substitution happen.
+
+No files were modified. HEAD remains `3d767d7b821f20f6cdf80c1e13f8e19f92ffb57d`.
\ No newline at end of file