Core Concepts

Crate Reference

PPE is a Cargo workspace. Most hosts depend on praxis-policy, the facade, and nothing else: it re-exports the runtime and, behind features, the bundled extensions.

Praxis Policy Engine v0.3.1 2 min read

Switching projects opens that project’s default documentation release.

Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.

On this page

PPE is a Cargo workspace. Most hosts depend on praxis-policy, the facade, and nothing else: it re-exports the runtime and, behind features, the bundled extensions.

Core Engine

CrateRole
praxis-policyHost facade. Re-exports the runtime and registers the builtins. Start here.
praxis-policy-coreThe runtime: engine, phased executor, hook registry, config, extensions, the HTTP seam.
praxis-policy-apl-coreAPL compiler and evaluator: rules, effects, field pipelines, routes.
praxis-policy-apl-cmfBridges typed extensions into the flat attribute bag a policy reads.
praxis-policy-apl-runtimeHost runtime: wires APL routes to hooks, dispatches plugins and decision points.
praxis-policy-orchestrationAsync branch-concurrency primitives shared by the runtime.

They depend on each other in one direction:

praxis-policy (facade)
 -> praxis-policy-apl-runtime -> praxis-policy-apl-cmf -> praxis-policy-apl-core
 -> praxis-policy-orchestration
 -> praxis-policy-core

Bundled extensions

Each is its own published crate, reached through a feature on the facade rather than named directly. See Builtins.

CrateKind
praxis-policy-plugin-identity-jwtidentity/jwt
praxis-policy-plugin-delegator-oauthdelegator/oauth
praxis-policy-plugin-elicitation-cibaelicitation/ciba
praxis-policy-pdp-cedar-directcedar-direct
praxis-policy-pdp-celcel
praxis-policy-pdp-opaopa
praxis-policy-session-valkeyvalkey

Not published

CrateWhy
praxis-policy-pdp-diffDifferential tests across the three decision points. A test harness, not an API.
reference/plugins/pii-scannerA worked example of a host plugin.
reference/plugins/audit-loggerThe same, for an audit sink.

Writing a Plugin Factory

There is no separate SDK crate. The Plugin Factory surface is praxis_policy_core::prelude, which carries the Plugin and HookHandler traits, payloads, results, and the CMF types. Implement PluginFactory against it and register it with PolicyEngine::register_factory under the kind: your policy names.

An unrecognized kind fails policy loading, so a missing registration is caught at startup rather than at the first request that needed it.

Generated API docs

docs.rs/praxis-policy, built with all features so the feature-gated re-exports are visible.

The crates are versioned and released together, so one 0.3 requirement covers the set.

Next

  • Builtins: review the extensions available through facade features.
  • Testing: test APL and plugins through the runtime.