warrant-core is intentionally framework-neutral:
- parse TOML warrant files
- verify Ed25519 signatures over canonical JSON payload bytes
- evaluate capability decisions (deny-by-default)
- lock/install signed warrants with monotonic versioning
- manage explicit elevation session tokens
It does not include CLI prompting/UI helpers. Those belong in wsh (warrant-shell).
Design principle across the stack: policy authority comes from TOML warrants/manifests, not hardcoded runtime rules.
Quick Example
use ;
let warrant_toml = read_to_string?;
let warrant = verify_toml_warrant?;
let ctx = new.with_str;
match check
# Ok::
Status
Implemented:
- signature verification
- canonical JSON payload generation
- capability/scoped checks
- lock/install with version state
- explicit elevation session create/check/clear
- versioned signing key file metadata (
[signing_key],format_version = 1)
Planned:
- lock review/diff helpers
- full Windows ACL enforcement (current behavior is warning-only stubs)
- integration docs/examples
Platform Note
On Windows, file/directory permission enforcement currently emits a warning and does not apply ACL hardening. Treat this as a known security limitation until full ACL support lands.
License
License
Licensed under either of Apache License, Version 2.0 or MIT License, at your option.