Message Center 通知读模型
不是业务实体的 SoT
消息中心在会话、Conversation Interaction、Scheduler、Workflow 与外部事件之上持久化通知读模型。它保存收件箱摘要、来源指针、动作契约与状态,不取代上游业务实体;用户处理后仍由原始业务系统或运行时决定终态。
写入走 NotificationService.emit:偏好只决定是否实时打扰;新建且允许实时时在 Config DB 事务内 INSERT notifications 后 pg_notify('aida_notification', ids)。各实例 LISTEN 后由 NotificationConnectionRegistry 扇出到 /api/notifications/stream。未配置 CONFIG_DB_URL + CONFIG_ENC_KEY 时用户通知路由返回 501,没有生产级内存降级。
证据与范围
aida-agent·docs/architecture/message-center.mdL1–35 ·77fe76838aa4(历史引用:该文档已在 aida-agent44d63e20退役,钉点e2adc9a3c325无此文件;见 ATLAS-DEBT)aida-agent·packages/agent/src/notifications/service.tsL21–51 ·NOTIFICATION_NOTIFY_CHANNEL·e2adc9a3c325aida-agent·packages/agent/src/notifications/connection-registry.tsL35–65 ·NotificationConnectionRegistry·e2adc9a3c325
结论来自固定版本的静态源码与合同阅读;实现存在、默认开关和生产启用分别判断。本站代码证据面板列出声明状态与具体限制。