Skip to main content

Install

Construct the PEP

Methods

Each method targets one enforcement stage and resolves to a PolicyDecision.
authorizeAction sends simulated: true by default in demo builds; pass real tool args (e.g. { medication: "atorvastatin" }): the PDP normalizes the tool name before matching latches.

End-to-end example

Permit-gated action

Implement it yourself

The client is thin enough to reproduce over fetch. Preserve the fail-closed default:
Never map an unrecognized verdict to “continue”. Default to BLOCK on any ambiguity. See Fail-closed.