Skip to main content

proof_policy/
lib.rs

1// Copyright 2026 Proof Engine Contributors
2// SPDX-License-Identifier: MIT OR Apache-2.0
3//! proof-policy: minimal declarative policy engine (ARCHITECTURE §5).
4//! Implicit AND over a closed requirement set. No OR/NOT, no code evaluation,
5//! no network. Same evidence under different policies may yield different
6//! decisions: Evidence ≠ Policy, Proof ≠ Trust decision.
7
8pub mod eval;
9pub mod explain;
10pub mod policy;
11pub mod state;
12
13pub use eval::{evaluate_policy, EvalInputs, PolicyOutcome, RequirementResult, RevocationSet};
14pub use explain::{explain_full, explain_outcome, explain_report};
15pub use policy::{
16    canonical_policy_hash, parse_policy, policy_to_canonical_cbor, Policy, Requirement,
17};
18pub use state::{state_from_report_and_proof, VerifiedState};