pub struct GateDecisionRecord {
pub tenant: String,
pub environment: EnvironmentTag,
pub revision_id: RevisionId,
pub baseline_revision_id: Option<RevisionId>,
pub policy: String,
pub dataset_version: String,
pub outcome: GateVerdict,
pub checks: Vec<GateCheckRecord>,
pub decided_at: DateTime<Utc>,
}Expand description
A gate decision, journaled: the payload of a
crate::record::RunEventKind::GateDecisionRecorded event on the
deployment evidence chain. The decision journals before the pointer
move it governs — and journals when it refuses, so the chain holds
the gate’s refusals, not only its permissions.
Fields§
§tenant: StringThe tenant the decision governs.
environment: EnvironmentTagThe gated environment.
revision_id: RevisionIdThe revision the gate evaluated.
baseline_revision_id: Option<RevisionId>The revision the gate compared against — the environment’s
serving revision at decision time (None: nothing served, so
comparative checks ran baseline-less and failed closed where the
policy needed a comparison).
policy: StringThe policy the gate ran — the declaration’s, echoed.
dataset_version: StringThe dataset version the gate replayed — the declaration’s, echoed.
outcome: GateVerdictThe verdict.
checks: Vec<GateCheckRecord>Every check the verdict stands on.
decided_at: DateTime<Utc>When the gate decided.