Skip to content

docs: add architecture diagram (D2 + SVG)#951

Merged
zbigniewsobiecki merged 1 commit intodevfrom
chore/architecture-diagram
Mar 19, 2026
Merged

docs: add architecture diagram (D2 + SVG)#951
zbigniewsobiecki merged 1 commit intodevfrom
chore/architecture-diagram

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • Add docs/architecture.d2 — D2 source for the CASCADE architecture diagram
  • Render to docs/architecture.svg and embed in README.md under the Architecture section
  • Diagram accurately reflects the codebase topology: Router process nesting (webhook handler + worker manager + cancel listener), both BullMQ queues, Dashboard API, Redis infrastructure, LLM Providers, and the cancel control-plane flow

Changes

New files:

  • docs/architecture.d2 — D2 source (editable diagram-as-code)
  • docs/architecture.svg — Rendered SVG for GitHub rendering

Modified:

  • README.md — Embed the SVG in the Architecture section

Test plan

  • d2 docs/architecture.d2 compiles without errors
  • SVG renders correctly in GitHub markdown preview
  • Lint and typecheck pass (no code changes)
  • No tests needed (documentation-only change)

🤖 Generated with Claude Code

…lish

Rewrite docs/architecture.d2 to accurately reflect the codebase topology:
- Nest worker manager and cancel listener inside the Router process
- Show both BullMQ queues (cascade-jobs, cascade-dashboard-jobs)
- Rename "api" to "Dashboard API (:3001)" with port number
- Label DB as PostgreSQL, show Redis as explicit infrastructure
- Add LLM Providers (Anthropic, OpenAI, OpenRouter) as external dependency
- Show cancel flow (Dashboard → Redis pub/sub → Router → kill container)
- Use dashed borders for ephemeral Docker worker containers
- Consolidate worker1/2/N into a single representative worker box

Render to SVG and embed in README.md under the Architecture section.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit 39bbe1d into dev Mar 19, 2026
8 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the chore/architecture-diagram branch March 19, 2026 09:45
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