Skip to main content

warder/
lib.rs

1//! Warder stdio shim — library core.
2//!
3//! Design rule that governs every module here: **the hot path performs zero network I/O.**
4//! Policy is evaluated in-process against a locally cached, signed bundle. Credentials are
5//! pre-brokered and cached. Audit records go to a bounded ring buffer and are shipped in
6//! batches by a background task. An allow decision never blocks on anything remote.
7
8pub mod audit;
9pub mod config;
10pub mod init;
11pub mod jsonrpc;
12pub mod policy;
13pub mod preflight;
14pub mod toolpin;
15
16pub use audit::{AuditRecord, AuditSink, Timers};
17pub use config::Config;
18pub use jsonrpc::{Message, ToolCall};
19pub use policy::{Decision, PolicyEngine};
20pub use preflight::{OperationClass, PreflightReport};
21pub use toolpin::{PinVerdict, ToolPinStore};