You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ltm: MIN/MAX link scores credit clock drift to every row #763
For a MIN, MAX or STDDEV whose body reads TIME (or STEP, RAMP, PULSE, or a nested PREVIOUS), the per-row link scores into the reducer held every model input fixed but left the clock varying.
The all-held-fixed rows then no longer reproduce the reducer's previous value, and the drift from the clock is credited to every row, including rows that never decide the result.
A row that is never the minimum should score 0.
Example
grow = 1 + MIN(pop[*] * TIME)
The south row is never the minimum, so its link score into the MIN should be 0 at every step.
It scored 0.9999, 0.9920, 0.9764, ...: the change pop[north] * dTIME copied onto every row. SUM and MEAN were barely affected, since there the shared terms cancel.
Fix
Hold the clock (and any original PREVIOUS input) at the previous step in the reducer body, the same rule #1016 set for every link-score equation.
changed the title [-]ltm-augment: TIME-bearing reducer bodies break the PREVIOUS(agg) anchor in body-aware partials (nonlinear arm attributes full time-drift to every row)[/-][+]ltm: MIN/MAX link scores credit clock drift to every row[/+]on Oct 12, 2026
PR #1062 (1996601): freeze_pinned_body (src/simlin-engine/src/ltm_augment.rs:5143) freezes TIME, every time-dependent builtin call and original PREVIOUS inputs in each row term that generate_nonlinear_body_partial (:5496) builds for MIN/MAX/STDDEV. The issue's repro is pinned by tests/integration/ltm_frozen_clock.rs::a_time_bearing_reducer_body_keeps_the_frozen_argmin_at_zero (south scores exactly 0 at every step), plus the unit test nonlinear_body_partial_freezes_the_clock_in_every_term (ltm_augment_tests.rs:2395).
Activity
ltm: scoring-correctness and visibility batch from epic #488 (#775)
[-]ltm-augment: TIME-bearing reducer bodies break the PREVIOUS(agg) anchor in body-aware partials (nonlinear arm attributes full time-drift to every row)[/-][+]ltm: MIN/MAX link scores credit clock drift to every row[/+]bpowers commentedon Oct 12, 2026
Closing: already fixed on main.
PR #1062 (1996601): freeze_pinned_body (src/simlin-engine/src/ltm_augment.rs:5143) freezes TIME, every time-dependent builtin call and original PREVIOUS inputs in each row term that generate_nonlinear_body_partial (:5496) builds for MIN/MAX/STDDEV. The issue's repro is pinned by tests/integration/ltm_frozen_clock.rs::a_time_bearing_reducer_body_keeps_the_frozen_argmin_at_zero (south scores exactly 0 at every step), plus the unit test nonlinear_body_partial_freezes_the_clock_in_every_term (ltm_augment_tests.rs:2395).