EDGE_MISANCHORED
EDGE_MISANCHORED is a structural error: an edge, message, or dependency references an endpoint that is not in the diagram.
What triggers it. A gantt after/until dependency naming a missing task, a class note for a class that does not exist, or a diagram body assembled outside the parser whose edges, messages, or commit parents name missing endpoints. The typed remove_node and remove_participant mutations drop the attached edges and messages themselves.
How to fix it. Add the missing endpoint (add_node, add_participant, add_task) or retarget/remove the dangling edge (remove_edge, remove_message).
Minimal reproducer
This source triggers EDGE_MISANCHORED — checked at build time against the same engine the editor runs.
gantt
dateFormat YYYY-MM-DD
section Build
Design :design, 2026-01-01, 2d
Ship :ship, after review, 3d
Open this reproducer in the editor
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.
Machine-readable: this page as Markdown.
Back to all warning codes, or open a blank editor to try a fix.