PolicyVersion
An immutable snapshot of a Policy (1.47.0); every Agent version pins the version it runs, and every Call records the versions it ran. logic is the canonical document, with the reserved _rule output column that publish adds to every table so that a firing names the row that matched.
An object with 18 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
action_type | PolicyActionType | yes | |
active | boolean | yes | True for the active version: the one Agent version publish pins, or, for an organization-scoped Policy, the one dispatch resolves. |
analysis | PolicyAnalysis | yes | |
compliance_tag | ComplianceTag or null | yes | |
engine_version | string | yes | The Zen engine version the version was published under; a worker refuses one it does not run with rules_engine_version_mismatch. |
hook | HookPoint | yes | |
logic | JdmDocument | yes | |
logic_sha256 | string | yes | The SHA-256 of the canonical document, in lowercase hex. |
notes | string or null | yes | |
object | "policy_version" | yes | |
policy_id | PolicyId | yes | |
priority | integer | yes | |
profile_version | integer | yes | The Vocal JDM profile version the document was linted under. |
published_at | Timestamp | yes | |
published_by | ActorRef | yes | |
source_revision | integer | yes | The draft revision this version was published from. |
status | PolicyVersionStatus | yes | |
version | integer | yes | The snapshot number, from 1. |
Used by
The operations whose parameters, request body or responses name this shape directly.