switchyard/policy/
mod.rs

1//! Policy configuration, gating, and rescue verification.
2//!
3//! The `policy` module centralizes production hardening knobs and gating logic
4//! used by preflight and apply stages. Consumers typically construct a
5//! [`Policy`](crate::policy::Policy) via presets (`production_preset`,
6//! `coreutils_switch_preset`) and then customize fields before creating a
7//! [`Switchyard`](crate::Switchyard) instance.
8//!
9//! Submodules:
10//! - `config`: policy struct and presets
11//! - `gating`: apply-stage gating parity with preflight
12//! - `rescue`: rescue toolset verification helpers
13//!
14//! The crate may expose compatibility re-exports at the top-level temporarily;
15//! prefer importing from `switchyard::policy`.
16
17pub mod config;
18pub mod gating;
19pub mod rescue;
20pub mod types;
21
22pub use config::Policy;