Expand description
Policy operations: versioned bundles, hot reload, diff, blast radius.
v2.0: provides:
PolicyVersion— monotonic version identifiersPolicyBundle— a snapshot of schema + policies, addressable by versionBundleRegistry— in-memory version store with persistencediff— line-level diff between two bundles (uses thesimilarcrate)blast_radius::analyze— classify decision changes across a corpus- hot-reload watcher (gated behind the
watchfeature, enabled by default)
Re-exports§
pub use version::PolicyVersion;
Modules§
- blast_
radius - Blast-radius analysis: classify decision changes across a replay corpus.
- diff
- Line-level diff between two
PolicyBundles. - version
- Policy version identifiers.
- watcher
- Hot-reload watcher for policy files.
Structs§
- Bundle
Registry - In-memory registry of policy bundles, keyed by version, scoped per tenant.
- Named
Policy - A single named policy within a bundle.
- Policy
Bundle - A policy bundle: schema + named policy sources, identified by version.
Functions§
- now_
unix - Helper: current Unix timestamp.
- read_
bundle_ from_ path - Helper: read a bundle from disk.
- sha256
- Helper: hash a string with SHA-256.
- write_
bundle_ to_ path - Helper: write a bundle to disk as JSON.