agentmux_srv/backend/notify/mod.rs
1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! OS notification Router — `docs/specs/SPEC_OS_NOTIFICATIONS_SYSTEM_2026_09_24.md`.
5//!
6//! - `policy`: pure decision state machine (debounce, dedupe, focus gate, retract).
7//! - `router`: side effects around it (settings, names, redaction, broker publish).
8//!
9//! Presenters (the launcher's OS toasts, later the tray and in-app surfaces)
10//! subscribe to the `notification*` broker events; sources report through the
11//! `notify.*` RPCs in `server/notify_handlers.rs`.
12
13pub mod policy;
14pub mod router;
15pub mod sources;