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: no test runs loop discovery on a model not named main #313
Loop discovery on a model not named main looks right in the code but no test runs it. analyze_model and discover_run_loops already take a model name and build the graph from that model.
What is still open:
Every loop-discovery test runs on a model whose canonical name is main (non_canonical_model_name_finds_causal_edges uses Main; the module-cycle tests that pass a or u only check for an error).
The main alias falls back to project.models.first(), not Project::default_model, so a project that lists a macro model first would analyze the macro.
Fix
Add one test: load test/logistic_growth_ltm/logistic_growth.stmx, rename the model to growth, and assert analyze_model(..., "growth", ...) finds loops.
Make the alias in model_snapshot and run_ltm_pipeline use Project::default_model.
Pointers
src/simlin-engine/src/analysis.rs: model_snapshot, run_ltm_pipeline, test non_canonical_model_name_finds_causal_edges
changed the title [-]ltm-finding: remove hardcoded 'main' model assumption[/-][+]ltm: loop discovery only works on a model named main[/+]on Oct 12, 2026
changed the title [-]ltm: loop discovery only works on a model named main[/-][+]ltm: no test runs loop discovery on a model not named main[/+]on Oct 12, 2026
Activity
doc: refresh LTM tech-debt entries after triage of open issues
[-]ltm-finding: remove hardcoded 'main' model assumption[/-][+]ltm: loop discovery only works on a model named main[/+][-]ltm: loop discovery only works on a model named main[/-][+]ltm: no test runs loop discovery on a model not named main[/+]