Archidocs

One architecture. Same answer for people and agents.

Each Team declares its slice as YAML in one repo. Archidocs checks it, merges it into one Model, and publishes a diagram viewer for people and an MCP server for agents. Both answer from the same commit.

Asked twice What does a mainframe outage take down?

Agent, over MCParchidocs mcp

The mainframe is down. Who's affected?

get_impact(id: "core:mainframe", direction: "upstream")10 upstream
structuredContentWhat the agent read
{
  "id": "core:mainframe",
  "direction": "upstream",
  "maxDepth": null,
  "upstream": {
    "total": 10,
    "truncated": false,
    "rings": [
      {
        "distance": 1,
        "elements": [
          {
            "id": "core:atm-switch",
            "kind": "service",
            "name": "ATM Switch",
            "owner": "core-banking",
            "relationships": [
              {
                "id": null,
                "from": "core:atm-switch",
                "to": "core:mainframe",
                "description": "Authorises withdrawals with",
                "technology": "ISO 8583",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/core/model.yaml",
                  "line": 40
                }
              }
            ]
          },
          {
            "id": "core:back-office-staff",
            "kind": "person",
            "name": "Back Office Staff",
            "owner": "core-banking",
            "relationships": [
              {
                "id": null,
                "from": "core:back-office-staff",
                "to": "core:mainframe",
                "description": "Maintains customer and account records in",
                "technology": "3270 terminal",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/core/model.yaml",
                  "line": 13
                }
              }
            ]
          },
          {
            "id": "core:customer-service-staff",
            "kind": "person",
            "name": "Customer Service Staff",
            "owner": "core-banking",
            "relationships": [
              {
                "id": null,
                "from": "core:customer-service-staff",
                "to": "core:mainframe",
                "description": "Looks up customer accounts in",
                "technology": "3270 terminal",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/core/model.yaml",
                  "line": 6
                }
              }
            ]
          },
          {
            "id": "digital:api",
            "kind": "service",
            "name": "API Application",
            "owner": "digital-banking",
            "relationships": [
              {
                "id": null,
                "from": "digital:mainframe-facade",
                "to": "core:mainframe",
                "description": "Reads accounts and transactions from",
                "technology": "XML/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 94
                }
              }
            ]
          },
          {
            "id": "payments:payments-service",
            "kind": "service",
            "name": "Payments Service",
            "owner": "payments",
            "relationships": [
              {
                "id": null,
                "from": "payments:payments-service",
                "to": "core:mainframe",
                "description": "Posts payments to the ledger in",
                "technology": "XML/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/payments/model.yaml",
                  "line": 15
                }
              }
            ]
          }
        ]
      },
      {
        "distance": 2,
        "elements": [
          {
            "id": "digital:mobile-app",
            "kind": "service",
            "name": "Mobile App",
            "owner": "digital-banking",
            "relationships": [
              {
                "id": null,
                "from": "digital:mobile-app",
                "to": "digital:accounts-summary-controller",
                "description": "Reads balances and transactions from",
                "technology": "JSON/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 45
                }
              },
              {
                "id": null,
                "from": "digital:mobile-app",
                "to": "digital:payments-controller",
                "description": "Makes payments through",
                "technology": "JSON/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 48
                }
              },
              {
                "id": null,
                "from": "digital:mobile-app",
                "to": "digital:sign-in-controller",
                "description": "Signs customers in through",
                "technology": "JSON/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 42
                }
              }
            ]
          },
          {
            "id": "digital:notifications",
            "kind": "service",
            "name": "Notifications",
            "owner": "digital-banking",
            "relationships": [
              {
                "id": null,
                "from": "digital:notifications",
                "to": "payments:payments-service",
                "description": "Sends a confirmation for each completed payment",
                "technology": null,
                "interaction": "async",
                "via": "platform:kafka",
                "channel": "payments.completed",
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 108
                }
              }
            ]
          },
          {
            "id": "digital:spa",
            "kind": "service",
            "name": "Single-Page Application",
            "owner": "digital-banking",
            "relationships": [
              {
                "id": null,
                "from": "digital:spa",
                "to": "digital:accounts-summary-controller",
                "description": "Reads balances and transactions from",
                "technology": "JSON/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 31
                }
              },
              {
                "id": null,
                "from": "digital:spa",
                "to": "digital:payments-controller",
                "description": "Makes payments through",
                "technology": "JSON/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 34
                }
              },
              {
                "id": null,
                "from": "digital:spa",
                "to": "digital:sign-in-controller",
                "description": "Signs customers in through",
                "technology": "JSON/HTTPS",
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 28
                }
              }
            ]
          },
          {
            "id": "payments:fraud-detection",
            "kind": "service",
            "name": "Fraud Detection",
            "owner": "payments",
            "relationships": [
              {
                "id": null,
                "from": "payments:fraud-detection",
                "to": "payments:payments-service",
                "description": "Scores each initiated payment",
                "technology": null,
                "interaction": "async",
                "via": "platform:kafka",
                "channel": "payments.initiated",
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/payments/model.yaml",
                  "line": 32
                }
              }
            ]
          }
        ]
      },
      {
        "distance": 3,
        "elements": [
          {
            "id": "digital:customer",
            "kind": "person",
            "name": "Personal Banking Customer",
            "owner": "digital-banking",
            "relationships": [
              {
                "id": null,
                "from": "digital:customer",
                "to": "digital:mobile-app",
                "description": "Views account balances and makes payments using",
                "technology": null,
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 11
                }
              },
              {
                "id": null,
                "from": "digital:customer",
                "to": "digital:spa",
                "description": "Views account balances and makes payments using",
                "technology": null,
                "interaction": "sync",
                "via": null,
                "channel": null,
                "tags": [],
                "source": {
                  "file": "examples/big-bank/archidocs/digital/model.yaml",
                  "line": 9
                }
              }
            ]
          }
        ]
      }
    ]
  }
}

Ten Elements depend on the Mainframe, owned by Core Banking, Digital Banking and Payments.

Directly
  • ATM SwitchCB
  • Back Office StaffCB
  • Customer Service StaffCB
  • API ApplicationDB
  • Payments ServicePAY
Two hops away
  • Mobile AppDB
  • NotificationsDB
  • Single-Page ApplicationDB
  • Fraud DetectionPAY
Three hops away
  • Personal Banking CustomerDB
Person, in the viewerbig-bank.archidocs.dev
ImpactImpact of Mainframe, upstream10 upstream
Big Bank: What a mainframe outage takes down. The Impact lens marks the 10 Elements upstream of the Mainframe.

Scroll for the whole map

Both name the same ten Elements. Captured from the Big Bank example (v1.1.0) when this page was built.Open this View live

Both answers come from the YAML your Teams already review.

No diagram is drawn by hand and no answer is typed in. Change a Relationship in a pull request, and the viewer and the MCP server change with it.

core/model.yamlBig Bank
17systems:31  atm:34    services:35      atm-switch:36        name: ATM Switch37        description: Routes ATM transactions to the mainframe.38        technology: Java39        relationships:40          - to: mainframe41            description: Authorises withdrawals with42            technology: ISO 8583
Line 40 puts ATM Switch in both answers: it “authorises withdrawals with” the Mainframe, one hop upstream.

For people: the viewer

A static site where every screen is a link. Lenses for impact, ownership, paths and deployments; share the URL in the incident channel.

How the viewer works

For agents: the MCP server

31 tools that read the Model and edit its YAML. Writes keep your comments and formatting, and refuse anything that would fail archidocs check.

The MCP tools

Six questions, each answered both ways

The questions people across an engineering organisation ask about the architecture, and where each one is answered.

WhoQuestionIn the viewerThrough MCP
Enterprise ArchitectHow are two Services connected?Connect to… lensfind_paths
Solutions ArchitectWhere is a Service deployed?Where is it deployed?get_deployments
DeveloperWhat does my Team own?Team lenslist_owned
Product OwnerWhat is upstream and downstream of an outage?Impact lensget_impact
QA TesterWhat is a Service's URL in an Environment?Element panel, URLs tabget_deployments
Technical staffWhich decisions sit behind an Element, and how did it change?ADRs, History and Comparelist_adrsget_changes