r.notification(...)
Overview
Section titled “Overview”r.notification(name, definition) — declarative notification template,
qualified to <feature>:notify:<short>. At registry build it becomes an
after-commit postSave hook on the trigger handler that calls
ctx.notify(name, { to, data }): recipient picks userId(s), a tenant
broadcast, or null to skip; data builds the payload; per-channel
templates (email, in-app, push) render it. Delivered by the delivery
bundled feature — declare r.requires("delivery") alongside.
From packages/framework/src/engine/feature-ast/patterns.ts -> NotificationPattern