trusty-mpm 1.7.3

trusty-mpm: unified multi-agent orchestration platform (core, daemon, CLI, TUI, Telegram)
Documentation
//! 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.

// #6892: machine-wide builder-slot leases — claim, release, TTL, PID liveness.
pub mod builder_slots;
mod core;
mod overseer;
pub(crate) mod pending_stops;
mod resources;
pub(crate) mod sessions;
mod sm;

#[cfg(test)]
mod tests;

pub use builder_slots::{
    BUILDER_LEASE_TTL_SECS, BuilderHolder, BuilderLease, BuilderSlotCensus, BuilderSlotGrant,
    builder_lease,
};
pub use core::{
    DaemonState, EVENT_CHANNEL_CAPACITY, HOOK_HISTORY_LIMIT, PAIR_CODE_TTL, ReapResult,
};
pub use sessions::DelegationSweep;