VocalDocscontracts 1.65.0

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

FieldTypeRequiredDescription
actionPolicyAction or nullyes
action_typePolicyActionTypeyes
appliesboolean or nullyes
causePolicyOutcomeCause or nullyes
compliance_tagComplianceTag or nullyes
dispositionPolicyDisposition or nullyesFor a Policy whose action applies; null otherwise.
elapsed_usnumber or nullyesThe evaluation time in microseconds, as the engine measured it (a measurement of this run, never a budget).
evaluatedbooleanyesFalse for a Policy after the first terminal match, which stops the hook; its result fields are then null.
fail_closedboolean or nullyes
outcomePolicyOutcome or nullyes
policy_idPolicyIdyes
priorityintegeryes
rule_idstring or nullyes
scopePolicyScopeyes
tracearray or nullyes
versionintegeryes