This directory holds shared visual assets for architecture docs: exported figures, optional diagram sources, and (when useful) reusable Mermaid sources. Narrative docs live next door under ../; this folder is for artifacts that are referenced, not the primary prose.
| Kind | Use when | Example names |
|---|---|---|
| Vector exports | Tooling outside GitHub’s Mermaid renderer (Excalidraw, draw.io, Figma, OmniGraffle), detailed topology, branding | system-context.svg, consortium-training-loop.svg |
| Reusable Mermaid source | Same diagram embedded in multiple .md files; you want one file to edit |
consortium-loop.mmd (see below) |
| Companion sources | Round-trip editing | system-context.drawio, system-context.excalidraw |
Avoid dumping every inline diagram here unless there is no shared asset yet.
ADRs and training-approaches.md embed . Commit *.svg whenever the graphic changes.
| SVG (embedded in Markdown; edit here) | Referenced from |
|---|---|
consortium-training-loop.svg |
TAP-004, training-approaches.md |
core-plus-sovereign-stack.svg |
TAP-001 |
data-sovereignty.svg (draw.io) |
TAP-008 |
training-paradigms-comparison.svg |
TAP-002 |
cultural-alignment-framing.svg |
TAP-003 |
sovereign-alignment-pipeline.svg |
TAP-005 |
phased-base-model-strategy.svg |
TAP-006 |
Phase docs (0-tva-methodology.md, …) may keep inline Mermaid where figures are tightly coupled to narrative and not reused.
Markdown has no standard #include. Embedding is always:
-
Images — relative URL from the file that references them:
From
decisions/adr-004-training-loop.md:
That path is wrong from
decisions/— you must walk up one level:
From
5-architectural-options.md(same folder asdiagrams/):
-
Mermaid — GitHub (and many editors) render fenced
```mermaidblocks inside the.mdfile. Putting only.mmdtext here does not auto-render; you either paste the contents into the consuming doc or rely on a site build that inlines it (this repo does not require such a build today).
Rule of thumb: embed  from decisions/ (GitHub renders SVG). From reference/, use ../architecture/diagrams/name.svg. Prefer one SVG linked from many Markdown files instead of duplicating Mermaid. Keep inline Mermaid only where the diagram is not reused (see Canonical figures above).
Pick one:
- Preferred for simplicity: One SVG path under
diagrams/, shared across markdown files (adjust../counts per location). - Text stays in git together: Duplicate a short Mermaid block in both places (acceptable when the figure rarely changes).
- Advanced: Maintain
diagrams/foo.mmdas source of truth; when it changes, paste into consuming docs or add a small script later — only worth it if duplication becomes painful.
The GitHub Pages site under docs/ does not automatically mirror tech-docs/. If architecture HTML or mirrored Markdown is published later, copy or generate assets into whatever directory that site serves, or add Jekyll includes — the relative paths above are for the repo / GitHub view of tech-docs/.
Use kebab-case, short topic-first names. One basename.svg per figure.