Skip to content

ltm: MIN/MAX link scores credit clock drift to every row #763

Closed

Description

@bpowers

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.

Pointers

Activity

  1. added
    ltm
    on Jun 10, 2026
  2. added
    bug
    on Oct 12, 2026
  3. 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
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugltm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions