32. Package architecture scoring as an ArcKit companion plugin
Date: 2026-10-11
Status
Accepted
Amends 31. Score architecture from the IcePanel C4 model
Context
ADR 0031 registered the archi-scoring MCP server in the Unicorn Claude Code harness and ran repos/archi-agentic-toolset as a Unicorn repo and Dapr app (scoring-service). The toolset scores any IcePanel C4 landscape. It is not part of Unicorn. ArcKit (the third-party plugin tractorjuice/arckit-claude) is the architecture governance harness in use, so scoring belongs next to it. We don’t want to fork ArcKit.
Decision
We will treat archi-agentic-toolset as a standalone tool, not a Unicorn component. This replaces the parts of ADR 0031 that register the MCP server in the Unicorn harness and run the toolset as a Unicorn Dapr app.
The toolset ships as the Claude Code plugin archi-scoring, with its own marketplace in the toolset repo: .claude-plugin/plugin.json and marketplace.json, plus a .mcp.json that runs uv run --directory ${CLAUDE_PLUGIN_ROOT} archi-c4-mcp.
IcePanel credentials (ICEPANEL_API_KEY, ICEPANEL_LANDSCAPE_ID, optional ICEPANEL_VERSION_ID) are plugin userConfig. Blank values fall back to the toolset .env.
The /archi-scoring:score command writes an ArcKit-style ARC-{P}-ASCR artefact when an ArcKit projects/ directory exists, and prints to the console otherwise.
The plugin is installed at user scope next to ArcKit, without forking it.
Unicorn consumes the plugin. make score and make dashboard find the toolset via TOOLSET_DIR (default ~/Dev/archi-agentic-toolset). The architecture-reviewer agent (/arch-check) uses the plugin’s MCP tools.
Removed from Unicorn: the scoring-service app in dapr.yaml, the local statestore component (scoped only to it), the smoke health check, make check-toolset, the bootstrap clone and the project .mcp.json entry.
Unchanged from ADR 0031: the IcePanel source, the metrics, the weights, the Interaction tags and the Hugo dashboard.
Consequences
Scoring checks no longer run in Unicorn’s make check. They run in the toolset repo. The plugin needs uv on PATH. The IcePanel landscape may need the scoring service shown as an external system. This is still to check. ADR 0031’s status gets “Amended by 32”.