Skip to content

ltm: exhaustive and pinned loop results lack cycle partition info #685

Closed

Description

@bpowers

Discovery-mode results tell you which cycle partition each loop belongs to (a partition is a group of stocks coupled by feedback; relative loop scores are only comparable within one partition).
The exhaustive and pinned-loop results did not: SimlinLoop, pysimlin Model.loops/Run.loops, and the MCP loop summary had no partition field, even though the engine had computed it.

Status

This looks fixed on main by #732.
SimlinLoop.partition and SimlinLoops.partitions exist (src/libsimlin/src/ffi.rs), pysimlin has Model.loop_partitions and Loop.partition, and the TS Loop type has partition (src/engine/src/types.ts).
Partition indices are only meaningful within one result; the docs say to match partitions across results by their set of stock names.
#732's description says "Fixes #495, #679, #685, #701", but GitHub only auto-closed the first issue in that list.

Activity

  1. added
    ltm
    on Jun 3, 2026
  2. added
    enhancement
    on Oct 12, 2026
  3. changed the title [-]ltm: expose cycle-partition metadata on exhaustive/pinned loop surfaces (SimlinLoop, Model.loops/Run.loops, MCP LoopDominanceSummary), keyed by stock-set identity[/-] [+]ltm: exhaustive and pinned loop results lack cycle partition info[/+] on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing: already fixed on main.

    d42c8a7 (#732) added SimlinLoop.partition and SimlinLoops.partitions (src/libsimlin/src/ffi.rs:199, :216; filled in analysis.rs:244-285), pysimlin Loop.partition and Model.loop_partitions (model.py:715, :763; run.py:364), TS Loop.partition (src/engine/src/internal/analysis.ts:349-362), and the MCP summary's partition (src/simlin-mcp-core/src/types.rs:236). Pinned by src/libsimlin/tests/integration/analysis.rs:3539, src/pysimlin/tests/test_model.py:513-553, src/simlin-engine/tests/integration/simulate_ltm_pinned.rs:1307 and src/simlin-mcp-core/tests/integration/read_model_e2e.rs:182.

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

    enhancementltm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions