Back to Plate

Overlay lane separation

docs/research/concepts/overlay-lane-separation.md

53.0.6732 B
Original Source

Overlay lane separation

Definition

Overlay lane separation is the rule that transient decorations, durable annotations, and anchored widget UI are different things and should not be collapsed into one generic public API.

Why it exists

Because the ownership and lifetime questions are different:

  • decorations are derived/transient
  • annotations are durable/id-bearing
  • widgets are UI/geometry driven

Strongest supporting evidence

  • ProseMirror mapped decorations
  • Lexical mark ids vs comment stores vs decorator UI
  • Tiptap comments vs suggestions
  • VS Code decorations vs comment controllers

Practical use

When a proposed API says “just use decorations for that too”, this concept is the pressure test.