Skip to content

v1.34.69

Choose a tag to compare

@github-actions github-actions released this 11 May 16:13
· 86 commits to master since this release
fix(sequence): outer activation anchors at lifeline, inner offsets right

The stacked-activations depth calculation in 0.56.0 used source-position
order (`act_ranges[..i]`), but activations are stored in DEACTIVATE order
(LIFO), so the depth assignment ran backwards: the inner (deeper-nested)
bar landed at the lifeline column and the outer (base) bar at the offset.
Mermaid's convention is the opposite — the base activation anchors at the
lifeline and each nested-deeper one stacks to the right.

Switch to a containment-based depth: count other activations on the same
participant whose row range STRICTLY contains this one. Containment is
order-independent, so any source/deactivate ordering produces the correct
visual hierarchy.

Strengthen `nested_activations_stack_horizontally` with a column-position
assertion that pins the outer bar to the lifeline column on the `r1` row
(only outer active). The previous "at least two `█` runs exist" assertion
was satisfied by the backwards implementation — exactly the weak-assertion
trap the global rules warn about.

Updates two existing snapshots (`sequence_with_nested_activations`,
`nested_activations_stack_horizontally`) to pin the corrected positions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>