Reading the diagrams
All diagrams on this site and in the three repositories are Mermaid text in Markdown. GitHub draws them in the repository, and this site draws the same text in its light and dark colours, so a diagram and its source can never disagree. Each diagram sits in the repository it describes; this site copies it at build time.
Evidence key
Section titled “Evidence key”A diagram must never show a part that does not exist as if it did. Every element of a design or architecture diagram carries one evidence mark as its border. Implemented and proposed elements also say so in their label, so the mark never depends on colour alone:
| Border | Mark | Meaning |
|---|---|---|
| solid green | observed | built and run; evidence recorded |
| solid amber | implemented | in the code; not yet run |
| dashed grey | proposed | design only; nothing built |
Elements without a mark are context (hardware, firmware, people). Update the mark in the same change that records the evidence.
Trust is shown by the group an element sits in: HAVEN at EL2 is the only trusted part; partitions at EL1 and EL0 are not.
Writing one
Section titled “Writing one”Copy the class definitions below into the diagram and give each element its
class. Keep labels short; use <br/> for a second line. Sequence diagrams
cannot take classes: put the mark in the participant’s name, as in
participant RB as read-back (observed).
classDef observed stroke:#0ca30c,stroke-width:2pxclassDef implemented stroke:#fab219,stroke-width:2pxclassDef proposed stroke:#8e8e93,stroke-width:2px,stroke-dasharray:6 4class A,B observedBefore a change goes up, check that the diagram draws: GitHub’s preview of the Markdown file is enough.