pub struct PolicyRef {
pub id: String,
pub explore: bool,
pub propensity: Option<f64>,
pub mode_profile: Option<String>,
}Expand description
Reference to the policy that produced a decision.
Fields§
§id: StringPolicy identity/version, e.g. "static@v0" or "bandit@v3".
explore: boolWhether this decision was a deliberate exploration draw (bounded, §, only in enforce).
propensity: Option<f64>The probability the logging policy assigned to the start rung it chose — the Horvitz-Thompson denominator for IPS / SNIPS off-policy evaluation.
None for deterministic (non-exploring) policies. skip_serializing_if keeps old
trace bytes byte-identical when None, preserving hash-chain compatibility with
existing logs. Only populated when [escalation.exploration] is configured.
mode_profile: Option<String>Resolved routing-mode profile when it was explicitly set (header / route / global env).
None means Balanced was in effect (the default, no override active). Absent from
the JSON when None → byte-identical serialization for all existing traces.