Mermaid is the only graph output format
Platform spec ADR
Mermaid is the only graph output format
Spec standingStandard
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Context
Section titled “Context”Graph data was exported as bespoke LSP JSON, CLI ASCII trees, and unused edge arrays. Multiple presentation paths diverged from the same domain graphs.
Decision
Section titled “Decision”beskid_graphrenders all tooling graphs to Mermaid flowcharts usingmermaid-builderonly.- No DOT, GraphViz, or hand-rolled ASCII graph renderers in compiler presentation code.
- CLI uses
graphs-tuito display Mermaid in the terminal; VS Code uses bundled Mermaid.js.
Consequences
Section titled “Consequences”- Domain graphs in
beskid_analysis(daggy, module tree) stay for compile correctness. - All consumers share one Mermaid string from Salsa memoization.
Status
Section titled “Status”Accepted — reference implementation in compiler/crates/beskid_graph/.