Repository navigation
Description
Open work on Loops that Matter (LTM): link and loop scores, loop finding, and how results reach pysimlin, TypeScript, MCP and the editor.
Every open issue labeled ltm is listed here once; all other work is in #733.
Each - [ ] #N line shows the issue's title and ticks itself when the issue closes, so this list needs editing only when an issue is added.
Wrong or missing scores
- ltm: link score is split when an equation reads one element twice #1061
- ltm: index of a held-fixed array read lags two steps instead of one #1060
- ltm: reducer read through a variable index scores every row +/-1 #1042
- ltm: LOOKUP index is not held fixed if it shares an element's name #984
- ltm: module pathway scores read 0 through reducer or declined links #768
- ltm: LTM variable dropped at assembly silently reads 0 #683
Modules
Model state inside a module is not counted consistently (one piece of work)
- ltm: pins on a model with no stocks are dropped without a warning #772
- ltm: PREVIOUS inside a sub-model is not counted as state #773
- ltm: relative score is always ±1 for loops whose state is in a module #774
Other
Loop finding and performance
A variable subscripted by one dimension twice (one piece of work)
An arrayed loop through a scalar such as a SUM total (one piece of work)
Other
- ltm: link-score generation is quadratic in an arrayed target's size #977
- engine: switching LTM discovery mode discards cached LTM work #1056
- ltm: discovery's 200-loop cap can still drop single-loop groups #677
- ltm: pinned loop silently scores one of two loops over the same variables #674
- ltm: equilibrium run reports no loops with no explanation #504
- ltm: some --ltm output prints in a different order each run #1036
- ltm: no test runs loop discovery on a model not named main #313
- ltm: no test checks that LTM equations compile across real models #782
- ltm: C-LEARN check flags 24 always-zero link scores that look correct #1064
Results in pysimlin, TypeScript, MCP and the editor
Showing loops and their polarity in the editor (one piece of work)
Per-element link scores for arrayed models (one piece of work)
Other
- pysimlin: Run.loops shares for arrayed loops do not sum to 1 #672
- ltm: dominant periods flicker every step on data-driven models #670
- engine: TypeScript API cannot read loop scores by id #507
- ltm: decide whether to support Stella's LOOPSCORE and PATHSCORE #484
Docs
- doc: LTM design doc is out of date with the code #1049
- ltm: docs still say a bare reducer argument in a slot is declined #1041
Open design questions
Two plans in docs/design-plans/ are written but not started.
2026-09-07-ltm-single-mode.mddrops the exhaustive mode (loops listed at compile time and scored during the run), so every surface reports loops from the one post-run pipeline on every model, and makes an inline reducer such asSUM(pop[*])a real node in a loop; it would absorb engine: switching LTM discovery mode discards cached LTM work #1056, ltm: discovery's 200-loop cap can still drop single-loop groups #677, ltm: pinned loop silently scores one of two loops over the same variables #674, ltm: a loop through a SUM is reported once per element #658, ltm: get_links reports only the first element's link score for arrays #665 and pysimlin: Run.loops shares for arrayed loops do not sum to 1 #672, and it settles the reducer question in ltm: link score is split when an equation reads one element twice #1061.2026-09-04-link-scores-from-fragments.mdbuilds each link-score equation from the target's compiled bytecode instead of from generated equation text, so an edit recompiles only the link scores it touches; it would fix ltm: link score is split when an equation reads one element twice #1061 by construction, since every read of the varied input varies together.
Activity
doc: link LTM tech-debt and engine CLAUDE.md to GitHub tracking epic
engine: LTM cross-element aggregate scoring (aggregate nodes) (#519)
doc: add LTM arrays hardening design plan
engine: LTM arrays hardening (epic #488) (#537)
LTM hardening: close out the top tracked gaps from epic #488 (#668)
bpowers commentedon Jun 8, 2026
FFI/parity surfacing cluster -- PR #732
Tackled the "engine knows but consumers can't see it" cluster: the engine computed rich loop analysis that died at the Rust boundary. PR #732 surfaces it across C-FFI / WASM / TS / pysimlin / MCP:
agg_recovery_truncatedtoSimlinDiscoveryResult+ pysimlin + MCPpolarity_confidence(FFI/WASM/TS/pysimlin/MCP; diagram rendering deferred to diagram: show feedback loops and their polarity in the editor #731)reclassify_loops_from_resultsgets its first production caller via the new sim-bearingsimlin_analyze_get_loops_runtime(sim)FFISimlinLoop.partition, pysimlinModel.loop_partitions, MCPLoopDominanceSummary.partition)These four close on merge of #732 (
Fixes).Closed as already-fixed by PR #705 (commit 26a641e)
Verified present on
mainand closed: #696 (discovery cross-agg recovery), #698 (discovery wrong polarity through multi-output modules), #699 (overstated zero-edge-exclusion claim + stale test comment).New follow-up filed
#731 -- diagram: render Rux/Bux loop polarity with the confidence-gray treatment (deferred from #495; the diagram has no existing polarity consumer, so it's net-new design work, not parity plumbing).
Note on #685 (documented in the PR): the exhaustive surface partitions at variable granularity (
pop), discovery at element granularity (pop[nyc]), so the partition stock-set is a reliable cross-surface key only for scalar models -- pinned by a test.ltm: surface loop polarity variants, confidence, partitions, and trun…
ltm: batch of root-caused fixes from epic #488 (#740)
ltm: core-algorithm batch of root-caused fixes from epic #488 (#761)
ltm: scoring-correctness and visibility batch from epic #488 (#775)
LTM shape expressiveness: one per-axis access model (epic #488 phase …
[-]epic: Loops that Matter (LTM) -- tracking known issues and improvements[/-][+]epic: Loops that Matter (LTM) -- open work[/+]doc: say how to write an issue the maintainer can read