BRAND_CONSTRAINT_WARNING
BRAND_CONSTRAINT_WARNING is a lint warning: an explicitly requested inspect-only Brand constraint failed or could not be measured.
What triggers it. A StyleSpec contrast, accent-area, or mono-role constraint with action: "warn" inspects final Scene paint. Transparent or unresolved compositing contexts report unmeasurable evidence without inventing a ratio.
How to fix it. Inspect the structured measurement payload and adjust the role/slot paint or the constraint threshold. The renderer deliberately preserves the authored artifact and never repaints or relayouts it.
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.