Skip to content

ltm: scalar feeder of a whole-RHS variable-backed reduce emits non-compiling link scores (warned 0-stub loops instead of the #758 drop) #790

Description

@bpowers

Summary

The SCALAR feeder of a whole-RHS variable-backed reduce gets link-score variables from try_scalar_to_arrayed_link_scores whose fragments FAIL to compile, so every loop through the feeder degrades to a warned constant-0 stub -- instead of either being scored (the machinery exists for the subexpression spelling) or dropped via unscoreable_edges (the #758/#780 contract for unscoreable edges).

Fixture (reproduced at commit ef91194d with a TestProject fixture)

D1 = {a, b}, D2 = {c, d}
pop[D1]    -- stock
matrix[D1, D2]
scale      = SUM(pop[*]) * 0.005     -- scalar
growth[D1] = SUM(matrix[D1, *] * scale)   -- whole-RHS variable-backed reduce
... feedback closed through pop -> scale -> growth -> pop

The user equation compiles and simulates correctly. LTM emits $:ltm:link_score:scale->growth[a] / [b] via try_scalar_to_arrayed_link_scores, whose fragments fail to compile (Assembly warnings, constant-0 slots), and the scale-closure loop scores u1/u2 degrade to warned 0-stubs.

Why this is a gap, not just a degradation

So this is loud (warned), not silent -- but it is the wrong degradation mode AND an expressiveness gap with a working sibling path.

Components affected

Related

Discovery context

Empirically confirmed during the adversarial review of commit ef91194d ("engine: decline bare-spelled feeder of un-hoisted reducer loudly", the GH #779 fix, branch ltm-phase1-residuals), reproduced at that commit with TestProject fixtures. Pre-existing, not a regression from that commit; out of scope for #779's fix.

Activity

  1. added
    ltmLoops that Matter (LTM) analysis subsystem
    on Jun 12, 2026
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

    ltmLoops that Matter (LTM) analysis subsystem

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions