Case study · Multi-business operations · AI agents
Project Firmament: ten server-enforced work-order states that any business can be plugged into
Most AI automation is built around one company's workflow. This owner runs more than one business, so we built the reverse: one AI system that a business is plugged into. Work is scoped, assigned, done, reviewed, approved and deployed in one place, with a record of who decided what.
- Client
- An owner-operator running more than one business
- What we built
- A work-order lifecycle, seven agents on a seven-node cluster and a shared dashboard
- Stack
- Python, FastAPI, LangGraph, PostgreSQL, Redis, the Model Context Protocol and Claude
- AI in the product
- Claude
- Status
- Deployed live to the seven-node cluster
- 10work-order states, enforced on the server
- 81automated tests passing
- 13architectural decisions logged, each with its rationale
- 5deployment bugs caught before sign-off
The problem
Almost every AI automation is built around one company's workflow. Change the company and you start again: new integrations, new prompts, new assumptions in the plumbing. An owner with more than one business pays to solve the same problem again and again, and ends up with systems that cannot be compared, audited or staffed the same way.
The brief was to turn that around. The first two businesses had almost nothing in common in how they operate, and that was the point.
An agent that can take actions is, for security, an untrusted actor holding credentials. If the model drives the workflow, the workflow is only as trustworthy as the model was that day. No owner will put a second business onto a system that cannot tell him why something shipped.
What we built
A ten-state lifecycle.
Every work order moves through ten states, enforced on the server, so an agent cannot move work to a state it has not earned. Approval and deployment gates sit at the transitions that matter, and exactly one agent may deploy anything.
- Intake
- Scoped
- Assigned
- In progress
- Review
- Approved
- Deploying
- Deployed
- Measuring
- Closed
States that know nothing about the business.
Nothing in the lifecycle knows what industry the work belongs to. Adding a business is configuration, not a rebuild: the gates, the audit trail and the agent hierarchy already exist. One dashboard spans every business, so the owner sees all the work in one place.
Seven agents on seven nodes.
The agents run across a seven-node cluster on a mesh VPN. The orchestrator holds the state machine. The other agents run on their own hardware and reach it only through a bridge that exposes three operations, polling on a heartbeat. Agents never touch the API directly.
No model calls inside the state graph.
The lifecycle is plain deterministic logic: fast, free to run and fully testable. Model work happens outside it. Every decision like this is recorded with its rationale, including the ones that were reversed.
A runtime replaced on the evidence.
The agent runtime first specified was rejected for the control plane on documented security grounds: published CVEs for remote code execution and sandbox escape, and hundreds of malicious skills found in its marketplace. A hardened alternative replaced it.
How a work order moves
How the AI is kept in check
- Agents are untrusted. Every agent is treated as an untrusted actor, throughout the system.
- The server owns the state. State transitions are enforced on the server, not by the model.
- One agent deploys. Exactly one agent in the hierarchy is allowed to deploy anything.
- No direct API access. Agents reach the orchestrator only through a bridge with three operations.
- Every decision is recorded. An immutable decision ledger keeps a record of who decided what.
Results
| Measure | Result |
|---|---|
| Deployment | Live on the seven-node cluster, with the full work-order lifecycle completing end to end against the live API |
| Tests | 81 automated tests passing |
| Deployment bugs | Five found and fixed before sign-off: two in local integration, three only on the real cluster |
| Decisions | 13 architectural decisions documented with rationale, including a technology reversal backed by named CVEs |
| Dashboard | One dashboard across every business in the system |
Every figure is taken from the delivered system. There is no client-verified business outcome, so we report what was built and measured.
Under the hood: stack and engineering notes
Stack: Python, FastAPI, LangGraph, PostgreSQL with pgvector, Redis, SQLAlchemy, Alembic, Docker, the Model Context Protocol and Claude.
Topology: seven agents on a seven-node cluster over a mesh VPN. The orchestrator holds the state machine; the others poll it on a heartbeat through a three-operation bridge.
Records: server-enforced state transitions and an immutable decision ledger. 13 architectural decisions are logged with their rationale.
Running more than one business on separate automations?
Tell us how work is assigned and approved in each of your businesses on a 30-minute call. You leave with a plan and a cost, in writing.
Book a discovery call