pub struct Log {
pub policy: &'static str,
pub source: &'static str,
pub xk: Option<u32>,
pub xs: Option<u32>,
pub alpha: Option<f64>,
pub fit: String,
pub gate: f64,
pub risk: f64,
pub attention: Option<String>,
pub psi: f64,
}Expand description
What a decision logs: the graded record’s policy and fit, and the #borg-select line.
Fields§
§policy: &'static strPolicy::name.
source: &'static strWhat set this check’s routes: fixed (the fixed rule: under Fixed, Attention on a check
without a 3, and Learned at cold start), cap, attention’s cut source (prior, crc,
explore; an explore check’s outcomes label the cut, outcome.rs explore), or the learned
policy’s (select/policy.rs Decision::source: evidence, experiment, experiment_control,
gate when the gate kept the fixed rule, size past policy::SOLVE_MAX, 0.6.0’s learned;
reverted when the monitor reverted the store).
xk: Option<u32>The randomised question-count test’s k and s at this check (select/policy.rs Decision::xk,
xs), logged as the graded record’s xk and xs; None outside the test and under every other
policy.
xs: Option<u32>§alpha: Option<f64>The tolerance the check was decided under (Ctx::alpha), under every policy so a cold start
replays the learned policy at the collective’s α too; None at policy::ALPHA, so the record of a
collective without risk stays as before (logged_alpha, read back by alpha_of).
fit: StringThe fit the decision used (select/policy.rs Fit::key); empty for the prior.
gate: f64The conservative gate’s budget at this check: how much replayed quality (mistakes avoided) the learned policy may still risk below the fixed rule. Not money: spend is only measured, unless an engineer sets a budget for the collective. 0 at cold start and under every other policy.
risk: f64How much of gate this decision takes (select/policy.rs Decision::risk): 0 when it keeps the
fixed rule. Replayed, not logged: borg debug select P3 checks it never exceeds gate.
attention: Option<String>Attention on a check with a 3: today’s #borg-attention line (attention.rs line), which the
hook keeps writing while attention.rs is a sub-policy.
psi: f64Each placebo candidate’s chance of the draw (draw_placebo, outcome.rs psi); 0 without a candidate
and under the evaluation switches, which draw none.