Skip to content

Taskbase — Diagram Conventions: Phase 1 Redraw of the Skatzi Platform

The findings of the phase 1 redraw (task #1086, 2026-10-18) for Taskbase decision #1046, request

1080, epic #45. The task drew the Skatzi platform again under the

Architecture-Diagram Conventions, as two new diagrams in organization 2, so that decision task #1087 can judge whether they are readable and what phase 2 should add. Diagram #1, "Skatzi platform", was left unchanged for comparison.

How the diagram tools work: Architecture Diagrams. Why the conventions exist: docs/diagram-frameworks-survey.md in Skatzi/taskbase.


The two diagrams

Landscape of Skatzi Containers of Taskbase Skatzi platform (for comparison)
Diagram #5, revision 9 #6, revision 6 #1, revision 13, unchanged
Level Landscape Container Four levels mixed
Boxes (not counting groups and notes) 12 10 33
Groups 0 1 (taskbase) 3
Connections 21 12 63 (59 in revision 9)
check_diagram warnings 0 0 not run

Landscape of Skatzi has one person (Team member), the nine Skatzi systems (Taskbase, agent-runner, Gitea, Keycloak, Harbor, Mattermost, OpenBao, Prometheus & Grafana, Platform docs) and the two LLM providers (Anthropic, OpenAI) as external. It has no groups: every box is one software system, so there is nothing to group.

Containers of Taskbase has the taskbase group with Taskbase UI, Taskbase API, Taskbase MCP server and Taskbase DB, and outside it the Team member, agent-runner, Gitea, Keycloak, Mattermost and the agent personas of skatzi-agents.

Every connection was checked against the repositories rather than copied from diagram #1. Two lines of diagram #1 were not drawn again because the code does not support them: mattermost → keycloak (the realm has a mattermost client, but nothing in components/mattermost configures Mattermost to use it), and any line for GitHub or Hetzner Cloud (Flux bootstrap and Terraform provisioning are deployment concerns). Sources:

  • platform: components/keycloak/base/skatzi-realm.yaml (OIDC clients), components/prometheus-stack/helmrelease.yaml (Alertmanager to Mattermost), components/agent-runner/README.md (the codex-auth-sync sidecar writes the Codex login to OpenBao).
  • taskbase: api environment variables and deploy/prod/* (Keycloak, Gitea, persona and release repositories), api/internal/notice/notifier.go (Mattermost incoming webhooks), mcp/internal/taskbase/oauth.go (the hosted MCP server forwards each caller's token), ui/src/auth.js (keycloak-js), .gitea/workflows/deploy-dev.yaml (deploy failure notice to Mattermost).
  • agent-runner: README.md (claims, MCP proxy, adapters, signed Gitea releases).
  • skatzi-agents: the persona files Taskbase syncs (AGENTS_REPO).

check_diagram

The check_diagram MCP tool was not offered in the session that drew the diagrams; its reason was not established (the deployed MCP server may predate taskbase PR #439, merged the same day). The same check was run instead: the Check function of api/internal/diagram/check.go at taskbase main (a4a6fc9, the merge of #1083), in a throwaway Go test, on the models get_diagram returned. Because get_diagram leaves component descriptions out, the test treated every component as described; each was added with a description.

Result: 0 warnings on both diagrams. Nothing was kept that the check warns about.

A person or agent with the tool can confirm this with check_diagram on diagrams 5 and 6.

Metrics

Measured with diagramMetrics (ui/src/diagramLayout/metrics.ts) through the same path as ui/src/DiagramMetrics.test.jsx: toFlow and focusFlow with no focus, measuring the drawn lines, on auto layout (layoutDiagram, no stored positions) and after Tidy up (tidyDiagram). The same harness on the skatzi-platform-r9 fixture gives exactly the "after" numbers of task #774 in docs/diagram-simplification.md section 4, so the columns compare like with like.

#1 r9, auto #1 r9, Tidy up #5, auto #5, Tidy up #6, auto #6, Tidy up
canvas (px) 2496 × 2680 4264 × 1624 1320 × 824 1848 × 640 1368 × 1056 1904 × 464
drawn lines 49 49 20 20 11 11
hidden as hub chips / merged 9 / 1 9 / 1 0 / 1 0 / 1 0 / 1 0 / 1
crossings 125 58 11 8 10 0
bends 89 116 34 53 16 24
ink (px) 30 889 46 868 7 056 11 416 5 680 4 376
long edges (> 1000 px) 11 16 0 4 0 0
labels at rest 0 0 0 0 0 0
labels on other lines, Labels toggle on 38 of 49 37 of 49 15 of 20 14 of 20 9 of 11 4 of 11
parallel pairs 1 1 1 1 1 1
cross-group connections 21 21 0 0 9 9
hubs 5 5 0 0 0 0

The parallel pair is Gitea ⇄ Taskbase (webhooks one way, sync the other) in all three. The 9 cross-group connections of #6 are every line between Taskbase's containers and the systems outside, which is what a container diagram is. With the Labels toggle on, most labels of the landscape still lie on another line (15 of 20): a layout matter, not a convention one.

What the conventions could not express

These are the inputs for phase 2. Each says what was drawn instead.

  1. Systems versus clusters. The conventions keep deployment out of landscape and container diagrams, and no deployment diagram exists yet. So the new diagrams no longer say that the platform runs on two Talos clusters on Hetzner Cloud, that agent-runner also runs as pods in hetzner-mgmt, or which workload products the platform hosts (emiliero, botyard-control, nightgain, the kodexet apps). One landscape line exists only for one deployment of a system: agent-runner → openbao ("stores the Codex login") is made by the in-cluster runners' codex-auth-sync sidecar, not by runners on machines; there is no way to say so on the line. A deployment diagram ("Deployment of hetzner-mgmt (prod)") would hold this, and a group kind (system or deployment) would let check_diagram tell the two apart rather than guessing from words such as "cluster".
  2. Drill-down. Nothing links the landscape's Taskbase box to "Containers of Taskbase". The link is a sentence in the box's description. The systems drawn in both diagrams (Gitea, Keycloak, Mattermost, agent-runner, Team member) share keys by convention only; their tech and descriptions are already maintained twice and differ slightly (Mattermost's tech). Since then: Taskbase task #1092 lets a box link to the diagram that details it (linked_diagram_id, see Linked diagrams). The shared keys, tech and descriptions are still kept in step by hand.
  3. Gateway lines. Leaving the gateway out removes 12 lines, but also the fact that every external caller, including the in-cluster agent runners, reaches Taskbase, Gitea and Keycloak only through the shared gateway and public hostnames. A "via" on a connection would carry it without a box.
  4. Cross-cutting services. Five landscape lines go into Keycloak, each "signs in …" (Taskbase, agent-runner, Gitea, Harbor, Grafana), and four into Mattermost (notices and alerts). They say one thing each — "uses Keycloak for sign-in", "posts to Mattermost" — in several lines. check_diagram does not warn (the fan-out-hub rule only looks at outgoing lines). A badge on the box, the same mechanism as "via", would say it once.
  5. Other systems in a container diagram. The guide says which type an own and a third-party system gets only for landscape diagrams. In "Containers of Taskbase" the other Skatzi systems are service boxes outside the group, which look like containers. Phase 2, or a sentence in the guide, should decide whether every system outside the scope is external.
  6. Content held in another system. The agent personas are files in the skatzi-agents repository, which lives in Gitea: not a software system, so not in the landscape (Gitea's description mentions them), and in the container diagram a datastore outside the group (project 14). The guide says nothing about repositories or other content that a system reads from another one.
  7. Build order without groups. The guide's order (one batch per system with its group, boxes and inside connections, then one batch of connections between systems) leaves a landscape without groups with one-box batches and every line in a final batch, the pattern the guide warns against. The redraw added each system together with its lines to systems already drawn. Revision 5 of the landscape adds three small systems (OpenBao, Prometheus & Grafana, Platform docs) in one batch, against the one-batch-per-system rule.
  8. Size limits. At 12 and 10 boxes neither diagram comes near 15 boxes or 8 per group, so the redraw does not test the limits. Adding the hosted workload products to the landscape would take it to about 17 boxes; they fit better in their own landscape or the deployment diagram.

Two tool gaps showed up as well. get_diagram does not return component descriptions, so an agent cannot read back what missing_description checks. There is no tool to change a diagram's title or description after create_diagram: the description of #6 shows its quotation marks escaped (\"Landscape of Skatzi\"), and only a person can correct it.