ENGINEERING THE AUTONOMOUS ENTERPRISE
The Headless Firm and Hourglass Architecture
When agents can do business with a company directly, its capabilities matter more than its screens. The architecture that holds up is narrow in the middle.
For thirty years, doing business with a company meant going through one of its screens. Customers used the website, partners used the portal, employees used the internal tools. Each screen was built for a particular kind of person, and the company's capabilities were bound to them. To change what the company could do, you changed the screens.
Agents do not need the screen. They need the capability underneath it. That one fact changes the shape of a company's architecture more than any model release, and it is the subject of this second article in the series.
The headless firm
Commerce went through a version of this a decade ago. Headless commerce separated the storefront from the engine behind it, so the same catalog, pricing and checkout could serve a website, an app, a kiosk and a marketplace. The storefront became one consumer of the engine among several.
A headless firm applies the same idea to the whole business. Its capabilities, such as quoting a renewal, approving a refund, booking a delivery or onboarding a supplier, can be invoked directly. A person can still use them through a screen. So can the company's own agents, a customer's purchasing agent, or a partner's system, each through whatever surface fits.
The head still matters. People will keep using screens, and good screens will keep being a competitive advantage. What changes is that the screen is no longer the only door.
Why the head is coming off
Three pressures are pushing companies in this direction at once.
The first is internal. Once a company starts routing work through its own agents, those agents need to act on its systems. Driving a user interface built for people is slow and fragile, and it hides what the agent is actually doing.
The second is external. Buyers are starting to send agents to do the comparison, the quoting and the paperwork. A company those agents cannot work with is, from the buyer's point of view, harder to do business with than one they can.
The third is cost. Building and maintaining a separate interface for every channel was always expensive. When the number of channels includes every agent that might call you, the only sustainable option is one set of capabilities that every channel shares.
The integration trap
The obvious way to give agents access is to connect them to the systems they need. The agent that handles refunds gets access to the order database, the payments platform and the CRM. The agent that handles renewals gets the contract system, the pricing engine and the CRM again.
This works for the first few agents. Then it becomes the point-to-point integration problem that most enterprises spent the 2000s untangling, with one difference: agents make new integrations cheap to create. The tangle grows faster than any team can review it.
The damage is not only technical. Each direct connection carries its own idea of what the agent is allowed to do. Permissions get re-implemented, slightly differently, in every place an agent touches a system. When something goes wrong, there is no single place to see what happened, on whose authority, and why.
Hourglass architecture
The internet solved a version of this problem with a shape that is worth borrowing. At the top are many applications: web, email, video, everything built since. At the bottom are many kinds of network: fiber, copper, radio, satellite. In the middle is a single, small, stable layer that both sides agree on. Applications do not need to know about networks, and networks do not need to know about applications. The narrow waist is why both sides could grow independently for fifty years.
A headless firm needs the same shape.
At the top are the consumers: screens for people, the company's agents, customers' agents, partners and channels that do not exist yet. At the bottom are the systems that do the work: the ERP, the CRM, the mainframe that nobody wants to touch, the data platforms and the models themselves. In the middle is a narrow layer of business capabilities that every consumer calls and every system sits behind.
What goes in the waist
The waist is small on purpose. What belongs there is what every consumer needs and no consumer should implement for itself.
Capabilities named in business language. "Issue a refund" with a defined input, a defined result and a defined set of errors. Not a database table, and not an endpoint named after the system that happens to implement it today. If a business leader cannot read the list of capabilities and recognize the company, the names are wrong.
Policy, evaluated at the waist. Every call is made on behalf of someone: a customer, an employee, an agent acting for one of them. Whether the call is allowed, and within what limits, is decided once, in the waist, rather than in every consumer. This is where "the agent may issue refunds up to a set amount without review" lives, and the one place it has to be changed.
A record of every call. Who asked, on whose behalf, with what inputs, and what happened. This is the closed loop from the first article in this series, made structural. It is also most of what an auditor will ask for.
Events out. When a capability changes something, it says so, so other parts of the business can react without polling the systems underneath.
Stability. Capabilities are versioned and change slowly. Consumers above and systems below can change as fast as they like; the waist is the part that does not move.
What stays out of the waist
The failure mode of this architecture is well known, because enterprises have lived through it. Service-oriented architecture had the right idea, and many implementations of it put an enterprise service bus in the middle that slowly absorbed everyone's business logic. The waist got fat. Every change needed the central team, and the central team became the bottleneck the architecture was meant to remove.
The discipline is to keep logic where it belongs. How a refund is calculated belongs in the system that owns refunds. How a screen presents it belongs in the screen. Which model an agent uses belongs to the agent. The waist holds the contract, the policy and the record, and very little else.
Modernization through the waist
There is a practical benefit here that is easy to miss. The waist is also the safest way to modernize the systems underneath it.
Once consumers call "issue a refund" instead of the legacy system directly, the implementation behind that capability can change without any of them noticing. The mainframe can keep handling refunds while a replacement is built, tested against the same contract and switched over one capability at a time. This is the strangler pattern, and the waist gives it a natural seam.
It also changes the case for modernization. A rewrite justified on technical grounds alone is a hard sell. A modernization that makes the company's capabilities callable by agents, with policy and audit built in, is a business case.
How to start
Most companies already have the beginnings of a waist: an API gateway, a set of internal services, an integration platform. The work is less about new technology and more about deciding what the waist is for.
Start with an inventory of capabilities, not systems. Most businesses can describe what they do in a few dozen capabilities. Pick the handful that agents, internal or external, will call first. Define their contracts in business language, with policy and records attached. Move one consumer onto them, measure, and keep the waist narrow as it grows.
What comes next
A headless firm changes what a company's software has to do. The next article in the series looks at how that software gets built now: a software factory in which agents write and test code while they work, and senior engineers spend their time steering and verifying.