Skip to content

docs: unify diagram styling and add AI SRE to architecture - #309

Merged
krish-kant merged 2 commits into
mainfrom
docs/diagrams-consistency-and-sre-architecture
Sep 16, 2026
Merged

krish-kant merged 2 commits into
mainfrom
docs/diagrams-consistency-and-sre-architecture

Conversation

@krish-kant

Copy link
Copy Markdown
Contributor

Summary

Unifies the user-facing documentation diagrams into one light, low-contrast, professional style, and makes the architecture diagrams an accurate representation of Supercheck by adding AI SRE and the connector layer.

Changes

  • Architecture accuracy (AI SRE + Private Agents): The single-location, multi-location, and README.md architecture diagrams previously showed only app + workers + data, with no AI SRE engine, connector layer, or Private Agents. They now show:
    • the AI SRE engine in the Next.js app,
    • the read-only connector layer (Direct Connectors + outbound-only Private Agents) reaching observability providers,
    • the SRE agent workspace in the K3s/gVisor sandbox,
    • schedulers and notifications.
  • Consistent light palette: Converted every user-facing flowchart from saturated dark fills + white text to a light pastel palette with dark text (readable and low-contrast). Applied the same palette via classDef in the architecture diagrams.
  • Colorful sequence diagrams: Applied a light, colorful theme (actor, signal, note, activation colors) to all sequence diagrams so they match the architecture diagrams.
  • New diagram: Added a status-page subscriber notification sequence diagram (incident create/update/resolve → email/Slack/webhook → RSS/iCal/badge).
  • Compactness: Shortened the role hierarchy and AI SRE setup node labels so they are more compact.

Verification

  • All 19 user-facing diagrams parse with mermaid 11.
  • npm run lint (docs) clean; npm run build succeeds (TypeScript clean, 154 routes).
  • README.md architecture diagram parses.

- Convert all user-facing flowcharts to a consistent light palette with
  dark text for readable, low-contrast, professional diagrams
- Add the AI SRE engine, read-only connector layer (Direct Connectors +
  Private Agents), SRE agent workspace, schedulers, and notifications to
  the single-location, multi-location, and README architecture diagrams
- Apply the light theme to all sequence diagrams so they are colorful
  and match the architecture diagrams
- Add a status-page subscriber notification sequence diagram
- Compact the role hierarchy and AI SRE setup diagrams
@krish-kant
krish-kant merged commit 4631ddc into main Sep 16, 2026
15 checks passed
@krish-kant
krish-kant deleted the docs/diagrams-consistency-and-sre-architecture branch September 16, 2026 09:19
krish-kant added a commit that referenced this pull request Sep 16, 2026
… + multi-color diagrams (#310)

* docs: revert diagram restyle, keep AI SRE in architecture diagrams

Reverts the light-palette restyle and sequence-diagram theming introduced
in #309, restoring the original diagram design across the user-facing docs
(architecture, reliability loop, connectors, status pages, role hierarchy,
AI SRE setup, and all sequence diagrams).

Keeps only the requested addition, in the original design and palette:
the AI SRE engine, the read-only connector layer (Direct Connectors +
Private Agents), and the SRE agent workspace in the single-location,
multi-location, and README architecture diagrams.

* docs: theme sequence diagrams to match architecture and add new ones

- Apply a consistent sequence-diagram theme matching the architecture
  diagrams (indigo actors, amber notes/opt labels, violet activations)
- Add detail to existing sequence diagrams (alerts, incidents, jobs,
  playground, monitor) using the documented behavior
- Add new sequence diagrams:
  - Tests: end-to-end test execution lifecycle
  - Runs: run lifecycle, live updates, cancellation
  - Status Pages: subscriber notifications on incident changes
  - Private Agent: outbound-only registration, heartbeat, lease, result

* docs: reorganize architecture diagram and add color to sequence diagrams

- Architecture (single-location, multi-location, README): switch to a
  left-to-right layout grouped into labelled zones (Edge, App, Data,
  Execution per region, Connector Layer) so elements spread out instead
  of clustering in one block
- Give distinct components distinct colors (app, connectors, private
  agents, providers, notifications, sandbox, agent workspace); workers
  and locations keep a shared color
- Sequence diagrams: color-code each participant with a distinct fill
  (transparent actor backgrounds over colored group boxes) so diagrams
  use multiple colors like the architecture diagram
- Make the AI SRE setup flow a single horizontal line

* docs: make the role hierarchy diagram compact and horizontal

* docs: keep mermaid diagrams readable with scroll + expand

Wide or compact diagrams were being scaled down to fit the content
column, making labels hard to read. Render every diagram at its natural
size (useMaxWidth: false) and let the container scroll horizontally, and
add an Expand/Collapse button that opens the diagram full-screen with an
Escape shortcut. Applies to all docs diagrams (architecture and small).

* docs: make mermaid diagrams readable without an expand control

Remove the expand/collapse fullscreen control. Render every diagram at
its natural size and let the card scroll horizontally so labels stay
readable (previously wide diagrams were scaled down to fit and became
hard to read). Small diagrams remain centered.

* docs: restore simple architecture diagram and remove diagram scrolling

- Revert the Mermaid component to fit-to-width rendering (no horizontal
  scrolling, no expand control) so every diagram fits without scrolling
- Restore the earlier simple top-to-bottom architecture layout for
  single-location, multi-location, and README, and add just two blocks:
  AI SRE Engine (App -> SRE) and Private Agents (SRE -.-> Private),
  which adds height instead of width

* docs: clean up sequence diagram colors and readability

Remove the heavy full-height colored participant blocks. Use a lighter,
readable theme instead: light actor headings with colored borders,
colored arrows, amber notes/loops, and violet activations, so text stays
visible in both light and dark mode. Applies to all sequence diagrams.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant