Policy snapshot and digest enforcement¶
A run is governed by the effective policy the control plane resolved for it at build time, and the node preserves that exact policy identity. Each assignment carries that policy and its digest, and every report the node makes about the run carries the digest back. The control plane compares it with the digest it issued, so a report made under any other policy is refused and recorded as a violation. This page covers what the assignment carries, where the digest appears, and what the control plane does with it.
Where the digest travels¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction TB
EP[("Effective policy<br/>resolved once, at build")]
CHK{{"Report digest equals<br/>assignment digest?"}}
DEC[("Report accepted")]
VIO[("policy.determinism_violation<br/>409 refusal")]
CHK -->|"yes"| DEC
CHK -.->|"no"| VIO
end
subgraph NODE["NODE"]
direction TB
AS[("Assignment<br/>effective_policy_digest,<br/>effective_policy_snapshot")]
RP["Progress and complete reports<br/>policy_snapshot_digest, decision_stage"]
HO[("Assignment handoff<br/>sealed_policy_trust_input")]
AS --> RP
AS --> HO
end
K["Project kernel<br/>enforces the sealed policy"]
EP -->|"in the assignment"| AS
RP --> CHK
HO --> K
The node reads the policy it was given and passes its digest on unchanged, to the control plane in every report and to the kernel in the handoff. Policy resolution remains in the control plane, so a governance change reaches a run through a new build and a new assignment.
What the assignment carries¶
| Field | Holds |
|---|---|
effective_policy_digest |
The digest of the policy the run is governed by |
effective_policy_snapshot |
The frozen EffectivePolicy for each step, which the node seals into the run-plan for the kernel |
An assignment without effective_policy_digest is refused before any guard
runs:
The same digest is the policy_snapshot_digest in the assignment handoff's
sealed_policy_trust_input, beside trust_snapshot_digest and the minimum
containment profile. The handoff carries the sealed input the policy was
resolved from. The kernel independently admits
the compiled governing policy, and ACE forms or refuses commands within the
admitted authority before the nucleus performs its final live-authority check.
See
The DP bundle.
Where the digest appears¶
Every progress and complete report for a run carries two fields:
policy_snapshot_digest the assignment's effective_policy_digest
decision_stage pre, for reports before invocation; post, after it
The node adds them to each report before it is staged, whatever route produced the report. See Status lifecycle and reporting.
The same policy is named inside the kernel. Every PolicyDecision the kernel
emits references the run fingerprint, which binds the complete compiled
project execution composition and the exact governing policy, including the
contributing bundle versions and signed exemptions. A decision, the report
that carries its outcome, and the build that resolved the policy therefore
name the same policy. See
The policy enforcement adapter.
What the control plane does with it¶
For each report, the control plane requires decision_stage to be pre or
post and policy_snapshot_digest to be present, then compares the digest
with the one it issued:
| Outcome | Result |
|---|---|
| Equal | The report is accepted |
| Different | The report is refused with HTTP 409, and a policy.determinism_violation event is recorded on the assignment, the run and the governance history with outcome blocked |
| Missing | The report is refused with HTTP 400: policy_snapshot_digest is required |
The refusal names both digests:
{
"code": "POLICY_DETERMINISM_DIGEST_MISMATCH",
"message": "policy decision digest does not match assignment effective-policy digest",
"decision_stage": "pre",
"expected": "sha256:9a41...",
"received": "sha256:77c0..."
}
A mismatch means the report was built from a different assignment than the one
the control plane holds for that run. Compare the effective_policy_digest in
the node's assignment with the run's current assignment.
For how the effective policy is resolved and what its digest covers, see Effective policy computation and provenance.