Validate a jq policy condition
Fail-closed guard: compile — and optionally sample-evaluate — a jq policy condition WITHOUT persisting it.
A syntactically broken condition raises at enforcement and DENIES the key (a
lock-out), so authoring flows validate here before saving. The condition is
rendered exactly as enforcement renders it, compiled with get_compiled_jq, and —
when a sample_context is supplied — evaluated against a JqAuthContext-shaped
sample. This ONLY compiles/evaluates; it never writes any store. Returns {"ok": true, "result": <bool|null>} (result is null when no sample was evaluated).
An AUTHOR error is a loud BadRequestError (400); a server-side fault (an
unconfigured resource manager, a redis/storage outage rendering a stored
condition_id) is NOT an author error and propagates as a loud 500.
Authorizations
Body
Response
Success.

