Check Policy
Changed onEvaluate a submitted policy against submitted evidence.
Authenticated with either an API key or the master key (the router-level gate), like POST /api/v1/usage/external-events: this identifies who sent the request, not whether its evidence is true. blocked is set when a required gate's outcome is not pass/not_applicable (an unresolved gate never counts as a pass).
The actual parse-and-evaluate work is otari_agent.domain.check.run_policy_check, shared with otari hook's own local evaluation: this route's own job is authentication, translating that function's tri-state request fields into its own typed ones, and turning PolicyCheckError into a 422.
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Request body
Response
Successful Response
Changes
- info
added the optional property
to the response with the status
- info
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- warning