Skip to content

aether_quant.notifications

Alert formatting (the Telegram client and worker stay in notifications/).

Alert formatting (the Telegram client and worker stay in notifications/).

format_session_summary_alert

format_session_summary_alert(session_summary_event: dict[str, Any]) -> str

Render a session_summary experience event as a Telegram digest.

Reads the observation_summary sub-dict produced by experience/observation_metrics.py::compute_observation_summary() — recomputes nothing.

format_trigger_alert

format_trigger_alert(trigger: dict[str, Any]) -> str

Render a performance_triggers row as a Telegram message.

Renders fields performance/triggers.py already computed (message, recommended_action) — recomputes nothing.

should_alert_trigger

should_alert_trigger(trigger: dict[str, Any], min_severity: str = 'warning') -> bool

True if trigger["severity"] clears min_severity (info < warning < critical).