Skip to content
Centriu
Centriu Atlas

Alert Delivery Status Theater Automation: Logged as "Sent" to Nowhere

Centriu Atlas runs a scheduled internal alerting job that evaluates configured monitoring rules and, when one fires, is meant to notify the team responsible. Before this fix, the moment a rule fired, the job recorded a permanent audit-trail event with a `delivery_status` field hardcoded to the literal string "sent" — unconditionally, regardless of what actually happened next. The code immediately surrounding that hardcoded value carried its own comment stating the actual delivery step was a "(future)" addition — meaning the mechanism the status field was claiming had succeeded had never actually been built. Every alert that ever fired, for as long as this was live, was permanently logged in the system's own audit trail as successfully delivered, with no way for anyone reviewing that history later to tell a genuinely delivered alert apart from one that reached no one at all. Fixed by making the cron job actually insert a real notification row — which a database trigger turns into a genuine internal email and a visible entry in the product's own Messages tab — and by setting the recorded `delivery_status` from the REAL, checked outcome of that specific insert: "sent" only when it actually succeeded, "failed" with the real error surfaced otherwise, rather than a value asserted before the outcome was even known.
"Sent", unconditionally
Status now checked, not assumed
Notifications and alerts on a screen
Logged as "sent" — to nowhere.

A status field is a promise about the past — it has to be set AFTER the thing it describes actually happens

Recording a status like "sent", "delivered" or "completed" alongside an automated action is standard, useful practice — it turns a system's own behavior into a reviewable history. The entire value of that practice depends on the status genuinely describing what happened, checked at the moment it is recorded, rather than being written down as an assumption of what SHOULD happen once some other, not-yet-built piece of the system eventually exists. A status field set before its own underlying action is confirmed — or, in the extreme case, before that action even exists in code at all — is not a smaller, less certain version of a real status; it is a fabricated one, and it reads identically to a genuine one to anyone consulting the record later.

How the underlying problem shows up before you fix it

A record persisted for audit or history purposes contains a status field (sent, delivered, completed, successful) set to a hardcoded literal value, rather than being derived from checking the actual outcome of the action it describes.

A code comment immediately adjacent to the hardcoded status explicitly marks the actual mechanism that status claims happened as a "(future)" or not-yet-built addition — meaning the author knew, at the time, that the claimed action did not yet exist.

An internal monitoring or alerting system's own audit trail cannot be used to answer 'was the team actually notified about this?' after the fact, because every entry in that trail says the same successful thing regardless of what genuinely occurred.

A scheduled or triggered job's "it ran without error" status (the job itself completing, inserting its own log row) is conflated with a SEPARATE downstream action's success (whether a notification was actually delivered to anyone) — the job succeeding says nothing about whether the thing it was supposed to trigger also succeeded.

Fixing a fabricated status field surfaces a second, previously invisible need: a genuine failure in the now-real underlying action has nowhere to be recorded or surfaced, because the calling code was never built to expect that outcome to be possible.

How a status that was always "sent" became a status that checks whether anything was actually sent

Centriu Atlas runs a scheduled job evaluating an organization's own configured monitoring rules — a metric crossing a threshold, for example — and recording a permanent event in `atlas_alert_events` whenever one fires, intended as the durable, reviewable history of what the alerting system has caught over time.

Before this fix, the exact moment a rule fired, the job built a subject line and a message body for the alert, and then inserted the `atlas_alert_events` row with `delivery_status` set to the literal string `"sent"` — written directly into the insert, with no check, no downstream call, and no dependency on anything actually happening first. The single line of code immediately preceding it, in a comment, read (translated) "Persist + (future) call atlas-notify-email" — the author's own contemporaneous note that the actual delivery mechanism, a call to a dedicated notification function, was explicitly deferred to a later point in time that, until this fix, had never arrived. The practical result: every single alert that fired, for the entire time this code was live, was recorded in the system's own permanent history as having been successfully sent — with genuinely zero mechanism in place capable of sending it anywhere at all. A team relying on that audit trail to confirm they had been notified about a real operational issue would find a record insisting they had been, regardless of whether that was ever true.

The fix replaces the assumption with a real action and a real, checked outcome. On a rule firing, the job now inserts a row into `atlas_notifications` — a table whose inserts are wired, via a database trigger (`trg_atlas_notify_email_on_notification`), to two real, observable effects: a genuine email is dispatched to the internal team through a dedicated notification edge function, and the alert becomes visible as an entry in the product's own Messages tab, reviewable by anyone with access to it. The outcome of that specific insert — whether it succeeded or returned an error — now DIRECTLY determines the `delivery_status` value recorded alongside the alert event: `"sent"` only when the notification insert genuinely succeeded, `"failed"` when it did not, with the underlying error message surfaced into the job's own error-reporting list rather than being silently discarded. A status field that used to be written before anything happened is now written strictly after, and strictly as a function of what actually did.

What is actually built today

When one of Centriu Atlas's own monitoring rules fires, the alerting job inserts a real `atlas_notifications` row, which a database trigger turns into a genuine internal email and a visible entry in the product's own Messages tab.

The `delivery_status` recorded alongside each permanent alert-event record is set from the real, checked outcome of that specific notification insert — never asserted in advance of knowing whether it actually succeeded.

A failed notification insert is recorded as `delivery_status: "failed"` and its underlying error is surfaced into the job's own error-reporting output, rather than being silently discarded behind an unconditional "sent".

The job's own successful completion (evaluating rules, inserting its own log rows) is no longer conflated with the separate, now-real question of whether a specific alert was actually delivered anywhere.

The alerting system's permanent audit trail can now be used to genuinely answer, after the fact, whether a specific fired alert reached anyone — because the status recorded reflects a checked outcome, not a hardcoded assumption.

A record insisting an alert was sent, with nothing built to send it (illustrative framing of the actual measured finding)

Before the fix, a monitoring rule crossing its configured threshold inside Centriu Atlas would produce a permanent audit-trail entry reading, in effect, "alert fired, delivery: sent" — regardless of the fact that the specific mechanism meant to deliver that alert to anyone was, per the surrounding code's own comment, still an unbuilt future step. A team reviewing that history weeks later, checking whether they had been notified about a specific incident, would find a record confidently confirming delivery that never actually occurred. After the fix, the same rule firing produces a real notification, a real email, and a `delivery_status` that reflects whether that specific attempt genuinely succeeded.

What changes operationally

Centriu Atlas's internal alerting cron now performs a real notification action when a monitoring rule fires — triggering a genuine email and a visible entry in the product's own Messages tab — and records the alert event's `delivery_status` from that action's real, checked outcome, closing a gap where every fired alert was permanently logged as successfully delivered regardless of whether any delivery mechanism existed to send it.

When this is not the right fit

This automation governs Centriu Atlas's own internal monitoring-rule alerting mechanism specifically — it does not change what rules can be configured or how a threshold is evaluated, and it is specific to the delivery-status field this fix corrected; other status fields elsewhere in the product were not found to share this defect and were not touched by this fix.

Recording an intended outcome vs. recording a checked one

Writing a status field to reflect what a system INTENDS to do next, before that next step is even built, can feel like a harmless placeholder during active development — the field has the right shape, and nothing downstream is broken by it. The risk is specific to what happens if that placeholder is never revisited: it becomes a permanent, indistinguishable-from-real record of an action that never occurred. Writing the status only after checking the real outcome of a real action costs one extra conditional, and is the only version of the field capable of actually meaning what it claims.

Related systems

Main system: Centriu Atlas.

What it does NOT do

  • Does not change what monitoring rules an organization can configure inside Centriu Atlas, or how a threshold crossing is evaluated — this fix corrects only what happens, and what gets recorded, once a rule has already fired.
  • Does not retroactively correct historical `atlas_alert_events` records written before this fix shipped — those rows still show `delivery_status: "sent"` regardless of whether an alert was ever genuinely delivered during that period; a team with that specific historical concern would need its own separate review.
  • Does not add a new alert-delivery channel beyond the existing internal email and Messages-tab mechanism already wired to `atlas_notifications` inserts — this fix connects the alerting cron to that existing mechanism rather than building a new one.
  • Does not claim every status field in Centriu Atlas was affected by this pattern — this fix is scoped specifically to the alerting cron's `delivery_status` field described above.
  • Does not overlap with this pillar's separate finding about Atlas's own carousel URL-recording bug during a partial retry — that is covered on its own companion page and is an unrelated mechanism in a different route.

Security and governance

Centriu Atlas's internal alerting cron now records a genuinely checked delivery outcome for every fired monitoring rule, closing a gap where the system's own permanent audit trail could confirm delivery of an alert that was never actually sent anywhere. Full detail on access control and audit trails lives at /governanca and /iso.

Pricing and contracting

Available by monthly subscription, with tiered plans. Values and terms come from the official pricing table at /precos (Centriu's central source — never restated here).

Frequently asked questions

Was this a customer-facing alert, or an internal one?

Internal — the affected mechanism is Centriu Atlas's own internal monitoring-rule alerting cron, used by the team operating the product to catch operational issues, not a customer-facing notification feature.

How was it confirmed the delivery status was hardcoded rather than genuinely checked?

By direct inspection of the source: the insert setting `delivery_status: "sent"` had no conditional logic around it at all, and the immediately preceding code comment explicitly named the actual delivery mechanism as a deferred, not-yet-built future step.

What does the notification actually do now?

Inserting the new `atlas_notifications` row triggers a database trigger that dispatches a real internal email through a dedicated edge function, and makes the alert appear as a visible entry in the product's own Messages tab.

What happens now if a notification genuinely fails to send?

The alert event is recorded with `delivery_status: "failed"`, and the specific error is surfaced into the job's own error-reporting output — rather than being silently discarded behind an unconditional "sent" as before.

Can old alert-history records be trusted?

Records written before this fix shipped still show "sent" regardless of whether delivery genuinely occurred during that period — this fix corrects behavior going forward, not historical records.

What does Centriu Atlas cost?

It is sold by subscription with a published starting price — exact current values are on the central pricing page.

See how Centriu Atlas confirms an alert actually reached someone

Reach our commercial team directly, or leave your details below — we'll follow up with guidance for your case.

Sources

  1. Centriu Atlas — public product page — Centriu, 2026-07-20 · link(primária)
  2. Centriu Atlas — public factsheet (API, JSON) — Centriu, 2026-07-21 · link
  3. Law No. 13,709/2018 — Brazil’s General Data Protection Law (LGPD) — Presidência da República (Brazil), 2018-08-14 · link

Last material update on .

By · AI-assisted production, with human review