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
create delivers a creation command's answer. Take a command that
declares yields event X. Its handling clause can now settle that
obligation by createing an entity E, provided E's on init publishes X
on every path, either by a send or tell of an X or by refusing with error/require. This is delegation, as forward does it: the answer
travels from E's outlets along the connectors back to the sender, and the
creating clause yields nothing.
Before: this common shape had no legal spelling. Leaving out the
clause's own yield was msg-yield-undeclared. Keeping it was msg-answer-unreachable. Where neither fired, the sender received
two answers.
CM §18.7: now lists four ways to settle a declared response and
states the must-preserve: no second local answer, and a replayed on init does not re-deliver the answer.
New Style rule stmt-yield-duplicates-creation. It reports a yield
of the answer beside such a create, because the receiver sees two
answers with different message ids. The fix is to remove the yield.
Cardinality ranges have a source spelling: T{n,m}, T{n,} and T{,m}.
Bounds: either bound may be left out. T{n,} has no maximum, and T{,m} has a minimum of 0.
Where: legal wherever ?, * and + are: type definitions, field
types and ascriptions.
Exact counts:T{3,3} means exactly three and is legal.
New Error type-range-max-zero: reported for T{,0}.
Prettify: writes a bound only when it is not open, so T{0,5} comes
back as T{,5}.
Why this was needed: the range existed in the AST, BAST, JSON and
the documentation, but no parser rule built one.
Bug Fixes
BAST decoded cardinality ranges as the wrong type.
Cause: ranges shared a tag with range(…) types, and the reader
guessed which one it had by peeking at the next byte. A range over Integer or over a named type therefore decoded as a range(…) type
and corrupted everything after it.
Fix: ranges now have their own tag.
JSON could not represent an open maximum. An open maximum is now
written by omitting max. An absent max reads back as open; it used to
default to 1.
Severe errors named the exception on Native. A crash reported through Exception Thrown now names the root cause's class and message. Scala
Native used to print nothing there.
Internal
BAST FORMAT_REVISION is now 39, for the new cardinality-range tag. .bast files written by older versions are rejected, so regenerate them.
The commands test suites now run serially. One suite printed into
another's captured stdout and broke a JSON assertion in CI.
Census: across 191 riddl-models entry points, all 11 msg-answer-unreachable findings are resolved, and stmt-yield-duplicates-creation appears 44 times in 30 models. Those 44
sites each carry a yield to delete. No other rule moved.
Known issue: an intermittent crash in CI's Linux Native corpus test on
reactive-bbq, BACKLOG [1.38]. It does not reproduce on macOS. The next
occurrence will name its exception.