Skip to content

Diagram Index

One sentence: every diagram in the documentation, as diagram-as-code (Mermaid), with the page that explains it.

Sources live in docs/diagrams/ as .mmd files (render with any Mermaid tool: npx -y @mermaid-js/mermaid-cli -i <file>.mmd -o <file>.svg, mermaid.live, or your IDE). The same diagrams are embedded inline in their explanation pages, and the docs site renders them natively. The layered system diagrams derive from architecture-map.json โ€” update the JSON first, diagrams second. The database ERD is maintained inline in database-schema.md.

# Diagram Source Explained in Status of subject
0 Simple system picture simple-system.mmd The_One_Minute_Tour.md Implemented
1 Full system architecture (6 layers) layered-architecture.mmd Architecture_Overview.md mixed (โœ…/๐Ÿ“ marked)
2 Known agent action flow known-agent-flow.mmd flows/Known_Agent_Flow.md โœ…
3 Anonymous agent cage flow unknown-agent-flow.mmd flows/Unknown_Agent_Cage_Flow.md ๐ŸŸก/๐Ÿ“
4 Approval lifecycle (state machine) approval-flow.mmd components/Approval_Engine.md โœ…
5 Receipt hash chain receipt-flow.mmd flows/Receipt_Flow.md โœ…
6 SOC incident creation soc-incident-flow.mmd components/SOC_Engine.md โœ…
7 Ban / quarantine ladder ban-quarantine-flow.mmd flows/Ban_Quarantine_Flow.md ๐ŸŸก
8 Control command protocol control-command-flow.mmd flows/Control_Command_Flow.md ๐ŸŸก/๐Ÿ“
9 Egress proxy flow egress-flow.mmd components/Egress_Proxy.md ๐Ÿ“
10 Tool broker flow tool-broker-flow.mmd components/Tool_Broker.md ๐Ÿ“
11 SDK fail-closed decision tree sdk-fail-closed.mmd fail-closed-behavior.md, components/SDK.md โœ…
12 Tenant / auth flow tenant-auth-flow.mmd production-hardening.md โœ…
13 Database ERD inline database-schema.md โœ…
14 Event ingestion pipeline event-ingestion-pipeline.mmd components/SOC_Engine.md, event-schema.md โœ…
15 Deployment topology deployment-topology.mmd deployment-guide.md โœ…
16 CI/CD pipeline cicd-pipeline.mmd Repo_Knowledge_Map.md ยง9 โœ…
17 Threat-model trust boundaries trust-boundaries.mmd Architecture_Overview.md ยง5, AegisAgent_Threat_Model.md โœ…
18 MCP defense flow mcp-defense-flow.mmd components/MCP_Gateway.md โœ…

Interactive alternative

The architecture explorer renders the full system map interactively (3D layers, flow toggles, click-to-inspect), driven by architecture-map.json. It degrades to a 2D canvas without WebGL, and these static diagrams remain the accessible fallback.

Conventions

  • Diagram-as-code first; no binary-only diagrams.
  • * suffix inside a diagram = planned/not implemented component.
  • Every diagram carries a %% header comment naming its explanation page.
  • Adding a diagram: put the .mmd here, embed it in the owning doc, add a row to this table (validated by scripts/validate-docs.mjs).