LABEL_OVERFLOW
LABEL_OVERFLOW is a structural warning: a label is longer than the character cap (default 40), which hurts layout and readability.
What triggers it. Prose sentences pasted into node labels, edge labels, message text, or section/period titles — common when an agent copies requirement text verbatim into the diagram.
How to fix it. Shorten the text with set_label, set_message_text, or the matching family mutation; raise labelCharCap in VerifyOptions only when long labels are genuinely intended.
See it fire
This minimal source triggers LABEL_OVERFLOW — checked at build time against the same engine the editor runs.
flowchart LR
A[This label is far longer than the forty character cap] --> B[Done]
Open in the editor and watch it clear
Run am verify diagram.mmd --json, inspect this code, and apply the smallest source or typed mutation that clears it. If it persists after two mechanical attempts, return the warning and ask for human review.
In the cloned repo, am is bun run bin/am.ts.
Back to all warning codes, or open the editor to watch this warning clear as you edit.