agentmux 0.8.0

Multi-agent coordination runtime with inter-agent messaging across CLI, MCP, tmux, and ACP.
Documentation
//! Authorization, split into behavioral seams over shared domain types.
//!
//! This module is an import-only hub. [`context`] holds the shared types
//! ([`AuthorizationContext`] and the policy primitives), and the three seams act
//! on them:
//!
//! - [`loading`]: parse `policies.toml` / `relay.toml` into validated presets and
//!   build an [`AuthorizationContext`].
//! - [`resolution`]: map a requester (a bundle-member session or a relay-wide
//!   principal) to its resolved policy controls, plus the UI-session accessors.
//! - [`checks`]: the uniform `authorize_*` decisions over a resolved route or a
//!   relay-wide operator action.
//!
//! Nothing is defined here — the root only wires submodules and re-exports the
//! relay-facing API.

mod checks;
mod context;
mod loading;
mod resolution;

pub(in crate::relay) use checks::{
    RelayActionFamily, authorize_choose, authorize_choose_for_list, authorize_relay_action,
    authorize_route, authorize_updown,
};
pub(in crate::relay) use context::AuthorizationContext;
pub(in crate::relay) use loading::load_authorization_context;
pub(in crate::relay) use resolution::{
    choices_pending_max, choose_authorized_ui_sessions, has_ui_session, ui_session_display_name,
};