AgentPolicyEvaluation
One Policy of the hook, in evaluation order: priority ascending, then organization scope before agent scope, then id.
An object with 16 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
action | PolicyAction or null | yes | |
action_type | PolicyActionType | yes | |
applies | boolean or null | yes | |
cause | PolicyOutcomeCause or null | yes | |
compliance_tag | ComplianceTag or null | yes | |
disposition | PolicyDisposition or null | yes | For a Policy whose action applies; null otherwise. |
elapsed_us | number or null | yes | The evaluation time in microseconds, as the engine measured it (a measurement of this run, never a budget). |
evaluated | boolean | yes | False for a Policy after the first terminal match, which stops the hook; its result fields are then null. |
fail_closed | boolean or null | yes | |
outcome | PolicyOutcome or null | yes | |
policy_id | PolicyId | yes | |
priority | integer | yes | |
rule_id | string or null | yes | |
scope | PolicyScope | yes | |
trace | array or null | yes | |
version | integer | yes |