Repository navigation
Description
Inside a module, LTM scores each pathway from an input port to an output port as the product of its link scores, and the module's composite score picks the pathway with the largest magnitude.
If a link on a pathway has no link-score variable of the name the product refers to, that factor reads 0, so the pathway reads 0 and can lose the composite selection to a weaker pathway.
A warning now names each such link, but the pathway still takes part in the selection.
Two kinds of link reach this:
- A link LTM declined to score (with its own warning).
Loops through it are dropped; pathways through it are not. - A link read through a reducer, e.g.
out[R] = 1 + SUM(pop[R, *]).
It is scored, but as two halves through an internal helper variable for theSUM, and the pathway looks for a single direct link score that does not exist.
Why it matters
A module whose port-to-port chain passes through a reducer gets a wrong composite, and every parent-level loop through the module inherits it.
Constructed only; arrayed user modules with reducers inside are rare, and stdlib modules (SMTH1, DELAY3, ...) have none.
Fix
Leave a pathway that crosses a link with no score out of the selection, and skip the composite with a warning when no pathway is left; parent loops then go through the existing missing-composite handling.
Small.
Alternative for the reducer case: score the step as the product of its two halves, as loop scores already do.
That needs the sub-model's reducer routing at pathway time; the single-mode plan (docs/design-plans/2026-09-07-ltm-single-mode.md, "A reducer is a node", not implemented) would make that routing the normal case, so wait for it.
Pointers
src/simlin-engine/src/db/ltm/mod.rs: the pathway and composite emission ($⁚ltm⁚path⁚names),emit_unresolved_pathway_link_warning,traverses_unscoreable(what loop scores already do)src/simlin-engine/src/ltm_augment.rs:resolve_link_score_name_for_loop(falls back to a name that was never emitted)- Related: ltm: LTM variable dropped at assembly silently reads 0 #683 (a reference to a missing LTM variable reads 0)
Activity
[-]ltm: sub-model pathway/composite scores through an unscoreable (loud-skipped) edge silently multiply to 0[/-][+]ltm: sub-model pathway/composite scores through an unscoreable (loud-skipped) or agg-routed edge silently multiply to 0[/+][-]ltm: sub-model pathway/composite scores through an unscoreable (loud-skipped) or agg-routed edge silently multiply to 0[/-][+]ltm: module pathway scores read 0 through reducer or declined links[/+]