//! Shared daemon state.
//!
//! Why: the HTTP API, the MCP server, the hook relay, and the dashboard feed
//! all read and mutate the same picture of the world — managed sessions, their
//! delegation trees, per-agent circuit breakers, recent hook events, and
//! per-session memory usage. A single `Arc`-shared, lock-guarded state keeps
//! them consistent and is the daemon's composition root for dependency
//! injection into request handlers.
//! What: [`DaemonState`] holds `DashMap`s keyed by `SessionId`/agent name plus
//! a bounded ring buffer of recent [`HookEventRecord`](crate::core::hook::HookEventRecord)s; methods provide the
//! typed mutations the rest of the daemon needs.
//! Test: `cargo test -p trusty-mpm-daemon` exercises registration, the hook
//! ring-buffer bound, and memory-pressure classification.
pub
pub
// #9010: whether a session's bound `claude` still runs.
pub
// #8983: rebinding an id to the `claude` the daemon resumed.
pub
// #8531: the kernel-bound `claude` of each session id.
pub
// #8535, #8161: which records write in a given tree.
pub use ;
pub use DelegationSweep;