openmoat-core
The decision core of OpenMoat: policy model, POSIX shell lexer and classifier, pattern matching, path normalisation, the decision engine and the policy compiler for OS layers.
Pure by construction. No I/O, no OS calls, no unsafe, no internal
dependencies. The crate builds for wasm32-unknown-unknown in CI, and an
architecture test pins the dependency allowlist and a 500-line file budget.
use ;
let policy = parse?;
let ctx = EvalContext ;
let compiled = compile?;
let decision = compiled.decide;
assert_eq!;
Policy semantics are specified in
docs/POLICY.md
and docs/ARCHITECTURE.md
§3–4, and checked by the conformance fixtures in the repository's tests/conformance/.