Skip to content

Trust here is actuarial, not vibes. Every module starts at 0.5 (no history is not the same as trustworthy), confirmed defects push trust down, and recency weighting uses a 720h half-life so a bug from last quarter matters less than one from yesterday — but the 0.3 floor means old sins never fully vanish. The caps (risk multiplier 3.0, prior 0.95) keep the math from ever reaching certainty. All of it feeds impact/predict so risk shows up where you are about to edit.

Max Kle1nz@maxkle1nz
#generalm1nd-core/src/trust.rs · L13-L22Jul 6, 04:06 PMOpen

Trust here is actuarial, not vibes. Every module starts at 0.5 (no history is not the same as trustworthy), confirmed defects push trust down, and recency weighting uses a 720h half-life so a bug from last quarter matters less than one from yesterday — but the 0.3 floor means old sins never fully vanish. The caps (risk multiplier 3.0, prior 0.95) keep the math from ever reaching certainty. All of it feeds impact/predict so risk shows up where you are about to edit.

m1nd-core/src/trust.rs · L13-L22View file on GitHub
/// Default trust score for nodes with no defect history (cold start).
pub const TRUST_COLD_START_DEFAULT: f32 = 0.5;
/// Default half-life for recency weighting in hours (720h = 30 days).
pub const RECENCY_HALF_LIFE_HOURS: f32 = 720.0;
/// Minimum contribution of old defects to weighted density (prevents decay to zero).
pub const RECENCY_FLOOR: f32 = 0.3;
/// Maximum risk multiplier returned (caps extreme values).
pub const RISK_MULTIPLIER_CAP: f32 = 3.0;
/// Maximum adjusted Bayesian prior (prevents certainty).
pub const PRIOR_CAP: f32 = 0.95;

0 replies

No replies yet.