Back to Blog

RIDDL 2.5.0 Released

RIDDL 2.5.0 is now available.

release riddl compiler

RIDDL 2.5.0 is now available. This release of the RIDDL compiler and language tooling includes the following changes:

What’s New

What’s New

A tell now has to have a route that can actually carry its message. Validation works out that route by message type, not by connector topology alone.

Features

  • msg-tell-no-route-for-type (Error): a tell whose sender and target are joined by connectors, but where no path carries the told message type. There are two causes, and the message names the one that applies:

    • None of the target’s inlets admits the type.
    • Every path passes through a processor that does not admit the message, or receives it without sending it on.

    This is separate from msg-tell-target-unreachable, which reports that there is no connector path at all. The fix here is different: an inlet that admits the message, or a processor along the path that passes it on. The rule has the same exemptions as reachability: predefined targets, ??? bodies, targets with no inlets, senders with no outlets, and self-tells.

  • msg-tell-route-ambiguous (Warning): a tell whose message can reach the target from more than one of the sender’s own outlets. The model doesn’t say which channel the tell uses.

  • stmt-duplicate-send-same-outlet (Warning, non-blocking): one statement list places the same value onto the same outlet twice. This can happen through send, forward, or a tell whose only route is that outlet. Each transmission gets its own message id, so the receiver sees two distinct deliveries. A generator must deliver both, so this warning does not block code generation.

Improvements

  • Tell routing follows message types. A told message arrives only at an inlet whose type admits it, and travels on only through a processor whose on clause for it sends it again. A processor with no handler passes nothing on. These are the same rules the infinite-message-loop check (stream-graph-cycle) uses, and the two checks now share one graph. Routing by connectors alone had made 1,821 tells in the riddl-models corpus look ambiguous; type-aware routing reports none.

Migration

Models where a tell sends a message along a path that cannot carry it now fail validation. The usual case is telling an entity an event when its inlets admit only commands. To fix it, do one of the following:

  • Remove the redundant tell.
  • Declare an inlet that admits the message, and connect it.
  • Change what is told to a type the target’s inlets accept.

The riddl-models corpus has been migrated: all 191 models validate with 0 errors and 0 warnings on 2.5.0.

Internal

  • Documentation of the type-aware routing rule in CLAUDE.md, and an engineering notebook entry for the change.