pub struct AffinityTuning {
pub grade_unit_bond: f64,
pub grade_unit_chem: f64,
pub neg_factor: f64,
pub tier_decay: [f64; 5],
pub cross_penalty_ratio: f64,
pub cross_penalty_start: f64,
pub delta_threshold: f64,
pub demo_boost: f64,
pub floor_ratio: f64,
pub time_decay_rate: f64,
pub time_decay_floor: f64,
}Expand description
Tuning knobs for the 4.0 pipeline, env-driven server-side.
Fields§
§grade_unit_bond: f64Raw score per grade step on the bond axes (AFFINITY_GRADE_UNIT_BOND).
The 2.96× spread between the two units is the judge’s measured grading
asymmetry (tension reaches grade ≥2 on ~half of turns, trust is graded
0 on ~80%), written down where it can be argued with.
grade_unit_chem: f64Raw score per grade step on the chemistry axes (AFFINITY_GRADE_UNIT_CHEM).
neg_factor: f64Extra multiplier on negative raw scores (AFFINITY_NEG_FACTOR) —
keeps 2.0’s “slow up, fast down” asymmetry.
tier_decay: [f64; 5]Positive-delta damping per tier 1..=5 (AFFINITY_TIER_DECAY).
cross_penalty_ratio: f64Cross-line penalty ceiling as a multiple of the line’s unit
(AFFINITY_CROSS_PENALTY_RATIO): κ_line = ratio · u_line. Tying κ to
the unit makes the double-high break-even independent of the unit —
per-line units would otherwise silently move the wall.
cross_penalty_start: f64Counterpart line score where the penalty starts (AFFINITY_CROSS_PENALTY_START).
delta_threshold: f64Commit threshold θ (AFFINITY_DELTA_THRESHOLD); 0 commits every turn.
demo_boost: f64Multiplier on the judge’s positive raw component for demo sessions
(AFFINITY_DEMO_BOOST); rule nudges are unaffected.
floor_ratio: f64Endpoint floor ratio φ (AFFINITY_FLOOR_RATIO): a level-1 verdict
reads φ·counterpart instead of 0. Must stay ≤ 0.24 so the floor can
never touch a level-2 verdict (1/3·B(0) ≈ 0.2436).
time_decay_rate: f64Endpoint absence decay per day (AFFINITY_TIME_DECAY_RATE).
time_decay_floor: f64Endpoint absence decay floor (AFFINITY_TIME_DECAY_FLOOR).
Trait Implementations§
Source§impl Clone for AffinityTuning
impl Clone for AffinityTuning
Source§fn clone(&self) -> AffinityTuning
fn clone(&self) -> AffinityTuning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more