Skip to content

diagram: show feedback loops and their polarity in the editor #731

Open

Description

@bpowers

The diagram editor shows no feedback-loop information at all: no loop list, no R/B labels, no polarity.
The engine computes post-run loop polarity, including "mostly reinforcing" (Rux) and "mostly balancing" (Bux), plus a polarity confidence, and pysimlin and MCP report it.
This issue is the web-side feature: show loops and their polarity, with mixed-polarity loops visibly distinct from steady R/B.

Why it matters

Loop polarity is the most basic LTM result a modeler wants to see on the diagram.
Today it is only reachable from Python or an AI agent.

Fix

  • Bind the post-run loop query in @simlin/engine (engine: TypeScript API cannot read post-run loop polarity #760); without it TS only gets structural polarity.
  • Decide where loops appear in the editor (a loop list, labels on the canvas, or both).
  • Render R, B, Rux, Bux, and unknown, with low-confidence loops in a muted or gray treatment.

The LTM reference describes Stella's convention: a polarity confidence of 0.99 or lower is drawn gray (section 13.7 and the Rux/Bux label table).
That rule is stated for links in a simplified CLD; applying it to loops is our choice.
Use the theme tokens in docs/dev/design.md rather than an ad-hoc color.

Pointers

Activity

  1. added
    enhancement
    ltm
    on Jun 8, 2026
  2. changed the title [-]diagram: render Rux/Bux loop polarity with confidence-gray treatment (deferred from #495)[/-] [+]diagram: show feedback loops and their polarity in the editor[/+] on Oct 12, 2026
  3. added
    frontend
    on Oct 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

    enhancementfrontendltm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions