ROUTE_SHAPE_MISANCHOR
ROUTE_SHAPE_MISANCHOR is a geometric warning: an edge endpoint does not sit on the outline of the node shape it connects to (e.g. off a diamond’s facet).
What triggers it. Endpoint-on-shape is checked against the final node geometry; a miss usually accompanies a node that changed size or shape after routes were frozen.
How to fix it. Switching the node to a simpler shape (rectangle) is the mechanical workaround; the underlying anchor drift is an engine defect worth reporting with the source.
Run am verify diagram.mmd --json and inspect this code. Agentic Mermaid causes it, not the diagram: follow the fix above and report the source.
In the cloned repo, am is bun run bin/am.ts.
Machine-readable: this page as Markdown.
Back to all warning codes, or open a blank editor to try a fix.