Ghulam Mustafa Zafar

System design2 min read

What composable architecture looks like in practice

Composable and MACH are easy to say and hard to picture. Here is what they turn into once a platform has to serve many tenants, channels and partners.

By Ghulam Mustafa Zafar

Cover: twelve-pointed rosettes, a tile pattern generated for this post in the system design glaze.

Most writing about composable architecture stays at the level of principles. Microservices, API-first, cloud-native, headless: the MACH acronym lists them, and every vendor deck agrees with it. What is harder to find is what those principles turn into when a real system has to serve thousands of tenants with real data and real security reviews.

So this post is concrete. It walks through the shape of a multi-tenant AI platform, and the decisions that make it composable.

  1. ChannelsIn-app chatVoiceEmail+ New channel
  2. AgentsDeclared as configurationSupervisor and sub-agents+ New agent
  3. CapabilitiesTyped, permissioned APIsExtension SDK+ Partner
  4. DataTenant-scoped retrievalLakehouse and knowledge graph
The shape of a composable agent platform. The capability layer is the core; channels, agents and partners plug into it without changing it.

Start with whether to build at all

Buying an agent platform is often the right call. It stops being right when the platform cannot see your real data model: it ends up working on copies, and copies drift. Building means the agents can act on the same data the product does.

Capabilities are services; agents are configuration

The core idea is simple. Every domain capability, such as creating a job, finding an available engineer or raising an invoice, is a typed, permissioned, API-first service. An agent is a declaration that composes those capabilities.

# Illustrative only: the shape of an agent definition.
agent: job-booking
channels: [chat, voice, email]
capabilities:
  - jobs.create
  - engineers.find_available
  - customers.lookup
guardrails: [pii-redaction, injection-defence]

Because of this, a new agent ships as configuration rather than code. Partners plug in through an extension SDK and run isolated per tenant, which is the “packaged business capability” idea in practice.

What composability buys

A few results that only happen when the pieces are separable:

  • Every channel for free. Chat, real-time voice and email are channels over the same capability layer, so anything built once works everywhere.
  • Cheaper orchestration. Moving from monolithic agents to a supervisor with sub-agents can cut model spend sharply, without touching the capabilities underneath.
  • Security in one place. Tenant isolation is enforced at the retrieval layer, so no individual agent has to get it right.

What it costs

Composable systems are not free. Typed contracts take discipline to keep current, and a capability registry is one more thing to govern. Architecture review becomes a habit rather than an event. I think the trade is worth it for a multi-tenant platform, but I would not recommend it for a product with one customer and one channel.

In the next post I will go deeper on the capability layer: how capabilities are described, permissioned and versioned.

Keep reading

The ship of Theseus and the legacy rewrite

If AI replaces every line of a legacy system, is it still the same system? A two-thousand-year-old puzzle about identity turns out to be a practical guide to modernisation.

Philosophy2 min read