diagrams workflow
Use when changing or explaining src/diagrams. Read README.md and AGENTS.md, then inspect the source signature and relevant tests before calling an API.
Explicit DisCoPy pregroup constructions, tensor examples, diagram counts, and entity-name bookkeeping. Discourse does not infer coreference or implement a complete DisCoCirc semantic state update. MagnitudeHomologyMetrics contains a synthetic cup/cap score, not homology or measured decoherence.
Verification: from the project root, uv run python scripts/quality_gate.py --coverage. Update the method contracts if behavior changes. Do not promote synthetic examples or compatibility names to mathematical, empirical, or operational guarantees.