Skip to main content

Crate warder

Crate warder 

Source
Expand description

Warder stdio shim — library core.

Design rule that governs every module here: the hot path performs zero network I/O. Policy is evaluated in-process against a locally cached, signed bundle. Credentials are pre-brokered and cached. Audit records go to a bounded ring buffer and are shipped in batches by a background task. An allow decision never blocks on anything remote.

Re-exports§

pub use audit::AuditRecord;
pub use audit::AuditSink;
pub use audit::Timers;
pub use config::Config;
pub use jsonrpc::Message;
pub use jsonrpc::ToolCall;
pub use policy::Decision;
pub use policy::PolicyEngine;
pub use preflight::OperationClass;
pub use preflight::PreflightReport;
pub use toolpin::PinVerdict;
pub use toolpin::ToolPinStore;

Modules§

audit
Audit records and the bounded local buffer.
config
Shim configuration.
init
warder init — one command from “not installed” to “governed”.
jsonrpc
Newline-delimited JSON-RPC framing for the MCP stdio transport.
policy
In-process policy evaluation with Cedar.
preflight
Pre-flight risk analysis.
toolpin
Tool-description pinning — defence against tool poisoning.