Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Architecture diagrams

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.

What belongs here

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.

Canonical figures (SVG in Markdown)

ADRs and training-approaches.md embed ![…](../diagrams/name.svg). 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.

How inclusion works in Markdown

Markdown has no standard #include. Embedding is always:

  1. Images — relative URL from the file that references them:

    From decisions/adr-004-training-loop.md:

    ![Consortium training loop](diagrams/consortium-training-loop.svg)

    That path is wrong from decisions/ — you must walk up one level:

    ![Consortium training loop](../diagrams/consortium-training-loop.svg)

    From 5-architectural-options.md (same folder as diagrams/):

    ![Consortium training loop](diagrams/consortium-training-loop.svg)
  2. Mermaid — GitHub (and many editors) render fenced ```mermaid blocks inside the .md file. Putting only .mmd text 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 ![alt](../diagrams/name.svg) 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).

Same diagram in two documents

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.mmd as source of truth; when it changes, paste into consuming docs or add a small script later — only worth it if duplication becomes painful.

Publishing note

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/.

Naming

Use kebab-case, short topic-first names. One basename.svg per figure.