Notifications Overview

Audience: operators evaluating or rolling out Notify, on-call leads tuning alert rules, and engineers integrating the notifications engine.

Notifications Studio turns raw platform events into concise, tenant-scoped alerts that reach the right responders without overwhelming them. It is the alerting surface of the Stella Ops release control plane: the service is sovereign and offline-first, follows the Aggregation-Only Contract (AOC), and produces deterministic outputs so the same configuration yields identical deliveries across environments.

For the full module reference, start with the Notify module README.


1. Mission & value


2. Core capabilities

CapabilityWhat it doesKey docs
Rules engineDeclarative matchers for event kinds, severities, namespaces, VEX context, KEV flags, and more.rules.md
Channel catalogSlack, Teams, Email, Webhook connectors loaded via restart-time plug-ins; metadata stored without secrets.architecture.md
TemplatesLocale-aware, deterministic rendering via safe helpers; channel defaults plus tenant-specific overrides, including the attestation lifecycle suite (tmpl-attest-*).templates.md
DigestsCoalesce bursts into periodic summaries with deterministic IDs and audit trails.digests.md
Delivery ledgerTracks rendered payload hashes, attempts, throttles, and outcomes for every action.architecture.md
Ack tokensDSSE-signed acknowledgement tokens with webhook allowlists and escalation guardrails enforced by Authority.architecture.md

3. How it fits into Stella Ops

  1. Producers emit events. Scanner, Scheduler, VEX Lens, Attestor, and Zastava publish canonical envelopes (NotifyEvent) onto the internal bus.
  2. Notify.Worker evaluates rules. For each tenant, the worker applies match filters, VEX gates, throttles, and digest policies before rendering the action.
  3. Connectors deliver. Channel plug-ins send the rendered payload to Slack/Teams/Email/Webhook targets and report back attempts and outcomes.
  4. Consumers investigate. Operators pivot from message links into Console dashboards, SBOM views, or policy overlays with correlation IDs preserved.

The Notify WebService fronts worker state with REST APIs used by the UI and CLI. Tenants authenticate via StellaOps Authority scopes notify.viewer, notify.operator, and (for escalated actions) notify.admin. Tenant isolation is resolved from the validated stellaops:tenant claim; a gateway-forwarded X-StellaOps-TenantId header is envelope context, not a second required tenancy source.


4. Operating model

AreaGuidance
TenancyEach rule, channel, template, and delivery belongs to exactly one tenant. Cross-tenant sharing is intentionally unsupported.
DeterminismConfiguration persistence normalises strings and sorts collections. Template rendering produces identical bodyHash values when inputs match; attestation events always reference the canonical tmpl-attest-* keys documented in the template guide.
ScalingWorkers scale horizontally; per-tenant rule snapshots are cached and refreshed from PostgreSQL change notifications. Valkey (or Redis-compatible) guards throttles and locks.
OfflineOffline Kits include plug-ins, default templates, and seed rules. Operators can edit YAML/JSON manifests before air-gapped deployment.
SecurityChannel secrets use indirection (secretRef), Authority-protected OAuth clients secure API access, and delivery payloads are redacted before storage where required.
Module boundaries2025-11-02 decision: keep src/Notify/ as the shared notification toolkit and src/Notifier/ as the Notifications Studio runtime host until a packaging RFC covers the implications of merging.

5. Getting started (first 30 minutes)

StepGoalReference
1Deploy Notify WebService + Worker with PostgreSQL and Valkeyarchitecture.md
2Register OAuth clients/scopes in Authorityetc/authority.yaml.sample (repo root)
3Install channel plug-ins and capture secret referencesplugins/notify (repo root)
4Create a tenant rule and test previewPOST /channels/{id}/test
5Inspect deliveries and digests/api/v1/notify/deliveries, /api/v1/notify/digests

6. Where to go next

GoalReference
Deep-dive on runtime shape, data model, and APIsarchitecture.md
Author and tune rulesrules.md
Write deterministic templatestemplates.md
Configure digests and quiet hoursdigests.md
Operate the service (quotas, retries, observability)operations/quotas.md, operations/retries.md, operations/observability.md