2 minutes

30. Use IcePanel as C4 architecture referential

Date: 2026-10-04

Status

Accepted

Supersedes 3. Architecture referential

Context

ADR 0003 chose Archimate as modelling language and Archi as tool, and ADR 0005 chose the C4 model. Archimate is not C4-native, so every C4 view had to be mapped onto Archimate elements and then exported to Markdown. Since ADR 0029, AI agents work in the Claude Code harness and need to read and update the architecture model directly. The /arch-check agent checks code against the C4 model.

Decision

We will use IcePanel as the C4 architecture referential, the source of truth for the C4 model.

IcePanel is C4-native, so no mapping is needed. It offers a REST API and an MCP server, already registered in the Claude Code harness (ADR 0029), so agents can read and update the model, and /arch-check checks code against IcePanel.

On 2026-10-04 the Archi C4 views (System Context, Container, Component) were exported into an IcePanel landscape: 1 actor, the Unicorn system and 10 external systems, 5 apps (Frontend, Backend BFF, File Process, File Publish, Static Website), 8 components and 21 connections, with their technologies (React, Ionic, Express, FastAPI, Go, Hugo, Dapr).

The RAG ingestion (ADR 0026) now reads objects and connections from the IcePanel REST API (python-service/app/kb.py) instead of the Archi-generated Markdown in python-service/c4/. Ingestion upserts with deterministic ids.

Consequences

The Archi .archimate files, the Hugo content/c4 pages and the python-service/c4 Markdown become legacy and read-only. Deployment and Infrastructure views are not migrated, because IcePanel C4 levels don’t cover them cleanly; they remain in the legacy export for now. MADR Tools (legacy adr-tools) is not modelled. Diagram layouts must be built in the IcePanel UI: the MCP server can create model objects and connections but not diagrams. We depend on a SaaS tool and an API key (ICEPANEL_API_KEY, ICEPANEL_LANDSCAPE_ID). Stale Archi-derived entries remain in the Cosmos DB c4 container until they are cleaned. The ADR 0029 follow-up (“update the RAG ingestion path described in ADR 0026”) is now done.