1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Fused Semantic Execution (FSE) Policy Engine.
//!
//! This software implements Fused Semantic Execution (FSE), a selector-first,
//! single-pass rule evaluation architecture. FSE is the subject of a pending
//! patent by Michael A. Kuykendall. All rights reserved.
//!
//! # Architecture
//!
//! FSE inverts the conventional rule-first evaluation model. Instead of iterating
//! rules and extracting values for each, FSE:
//!
//! 1. **Compiles** rules into a `CompiledPlan` with deduplicated selectors
//! 2. **Executes** by iterating unique selectors once, broadcasting each value
//! to all rules that reference it
//! 3. **Finalizes** by forcing unresolved required rules to False (fail-closed)
//!
//! The core invariant: `∂runtime / ∂rules ≈ 0` for shared selectors.
/// Rule compilation and selector deduplication.
/// Default FSE plan compilation for Gatewarden.
/// Policy evaluation engine and default rule sets.
/// Gatewarden-specific FSE input provider.
/// Core data types: selectors, predicates, rules, values, and input.
/// Single-pass execution runtime with early-exit and fail-closed semantics.
pub use CompiledPlan;
pub use compile_default_plan;
pub use ;
pub use GatewardenEvalInput;
pub use ;
pub use RuleOutcome;
pub use RuntimeState;