REE Triple-View Diagram Bundle
This bundle keeps architecture visualization in three synchronized views:
architecture_static.mmd/architecture_static.svg(component structure)architecture_typed_dataflow.mmd/architecture_typed_dataflow.svg(typed runtime streams/signals)episode_sequence.mmd/episode_sequence.svg(single-tick temporal trace)
Explorer Integration
The Claims Explorer exposes this as View -> Triple View in:
docs/claims/explorer.html
The triple view includes:
- current-epoch claim overlays,
- conflict and gap badges on nodes/edges,
- tooltip summaries and clickable inspector tabs (
Claims,Conflicts,Needs / Gaps).
Shared Contract
- Components and stream IDs are canonicalized in
streams.md. - Routing source of truth for edges lives in
stream_routing.v1.yaml. - Edge labels are loggable stream/signal IDs.
- Changes to architecture contract artifacts (including
hook_registry.v1.json) require an explicit triple-view freshness review.
Local Commands
If Mermaid CLI is available (mmdc):
bash scripts/architecture/check_consistency.sh
bash scripts/architecture/render_diagrams.sh
Update Flow
- Update
stream_routing.v1.yaml(and relevant architecture contracts/docs) first. - Mirror routing/structure changes into the
.mmdsources. - Run
bash scripts/architecture/check_consistency.sh. - Render
.svgassets withbash scripts/architecture/render_diagrams.sh. - If view behavior changed, update
docs/claims/explorer.htmland this guide.
CI Behavior
- Workflow:
.github/workflows/architecture-diagrams.yml - On pull requests touching architecture docs/contracts: run freshness and consistency checks.
- Freshness rule: if architecture source docs/contracts change without triple-view maintenance files changing, CI fails.
- On pushes to the default branch touching architecture docs/contracts: run freshness+consistency, render SVGs, and commit updated SVGs.
- Weekly rhythm: scheduled run every Monday at 16:00 UTC performs freshness+consistency and re-renders SVGs if needed.