Enterprise AI Agent Platforms Need a Static Skeleton First
Enterprise agent platforms often fail not because of runtime inference tricks, but because they never freeze a static skeleton on day one. This article explains why a single agent domain model, three independent version tracks, one-way module dependencies, and a dual-aggregate data backbone keep permissions, gray releases, tool contracts, and cost accounting from fragmenting as channels multiply.
Enterprise agent platforms rarely fail on a single inference optimization. They fail when they never lock a static skeleton on day one. Business demand can grow in weeks from a web Q&A page to embedded entry points, pipeline gates, and local developer tools. If every channel or capability becomes a disconnected product line, permissions, gray release, tool parameters, and cost accounting split fast. To grow thick without growing messy, freeze the domain model, version tracks, dependency boundaries, and data backbone first.
Runtime tricks cannot save a weak day-one model
Anyone who has owned a platform knows whether a system grows solid or turns into a swamp depends on static design. Splitting control plane and execution plane by process helps runtime isolation and fault domains. What actually drives evolution cost is how domain entities are modeled, how versions are tracked, how code boundaries are welded, and how state and data are partitioned.
A common cadence: week one only needs an internal page to query policies and logs. By week three, monitoring and tickets want an embed in the legacy system, automatically carrying app, cluster, and ticket context. By week five, engineering pipelines want a zero-intrusion language SDK or open API for risk checks at release gates. By week seven, the field wants local coding tools to reuse controlled ops tools and repositories. If you keep adding product lines and popular labels—Q&A, RAG, multi-agent orchestration, tool services—you soon have several entity tables, several permission models, independent gray-release schemes, tool-parameter changes that must be synced everywhere, and month-end token costs that do not reconcile.
The static skeleton should therefore set four hard boundaries: a single agent domain model; non-interfering version tracks; one-way dependencies with compile-time gates; and core identity plus a dual-aggregate data store. The rest of this article unpacks those boundaries, not a feature list.
One agent domain model: avoid the type-enum trap
Many teams put a type enum on the first primary table: chat, RAG, workflow, multi-agent. It looks clean on a prototype and hits a wall in production. An enterprise assistant is naturally a cross-type composite.
Take production troubleshooting. A user asks why a service is jittery: retrieve a runbook (RAG), call logs and metrics over HTTP or MCP-style tools, spawn a database-diagnosis sub-agent (multi-agent), then follow an approval-gated change procedure (workflow). If a type field nails capabilities into mutually exclusive classes, every combination needs a new entity, copied permissions, and copied tool bindings. Master data explodes.
A sturdier approach: the agent is the only business aggregate root. Capabilities are composable declarations and bindings, not exclusive types. The root holds identity, ownership, default policy, and lifecycle. Retrieval, tools, sub-agents, and workflow nodes are capability slices on that root. Channels (web, floating widget, pipeline, local tool) are transports, not product entities. Permissions, quotas, and audit then converge on the agent, not on channel or type.
Composability in the model is not unbounded runtime orchestration. The static model may declare capability sets and orchestration constraints; runtime still enforces tool scope, data scope, and approval thresholds from control-plane policy. “Can be composed” and “is allowed” must be modeled separately.
Three independent version tracks
In the enterprise, agents face high-frequency iteration of prompts and knowledge slices, controlled release of tools and workflows, and independent changes to runtime policy (quota, model routing, safety). Binding them to one version forces full tool-call regression when knowledge changes, and a policy tweak can break a gray-released prompt.
Split three tracks:
First, content and prompt: system prompts, knowledge-slice references, a few examples. Changes are frequent; allow tenant- or scenario-level rollback without shipping tool binaries.
Second, capability and contract: tool lists, parameter schemas, sub-agent references, workflow definitions. Changes must pass compatibility checks. Parameter add/remove, required-field changes, and return-shape changes need explicit versions so callers do not fail silently.
Third, policy and runtime: model choice, timeouts and retries, quota, redaction, approval thresholds. Policy must not rewrite the capability contract; it only changes whether something is allowed, which resources are used, and how usage is billed.
Tracks join on agent identity. A release records the triple: content version + contract version + policy version. Gray release is per track: content can trial prompts at small traffic; contracts must expand within caller compatibility windows; policy can stop-bleed by cluster or environment. Month-end cost rolls up by agent plus policy version so the same entity is not billed differently per channel.
Six one-way layers and a zero-framework compile gate
If control plane, execution plane, and channel adapters can import each other, pressure will collapse the boundary. Layer dependencies one way, for example:
Domain: agents, capability declarations, version triples, permission and quota as pure models—no network, no framework.
Contract: tool and open-API schemas, error codes, idempotency keys—no specific transport.
Control plane: registration, publish, gray release, audit, billing aggregation—depends on domain and contract, does not call model inference.
Execution plane: session orchestration, tool calls, retrieval and sub-agent dispatch—consumes published contracts and policy snapshots only.
Channel adapters: web, embed scripts, pipeline callbacks, local plugins—identity passthrough and context boxing only, no business rules.
Infrastructure: object storage, queues, logs, monitoring, secrets and config—depended on by upper layers, never the reverse.
“Zero-framework compile gate” means domain and contract modules must not depend on a web framework, RPC framework, or a vendor model SDK. The build should fail on illegal dependency direction. Language SDKs can then generate clients from the contract layer only. Pipeline gates and local coding tools share one interface definition without leaking control-plane internals.
Channel adapters may exist, but they must not copy permission checks. App name, cluster id, and ticket context from an embed should enter the control plane as a signed context token, then be issued to the execution plane. The backend must not trust whatever the frontend assembled.
Five identity layers and a dual-aggregate data store
If runtime state lives in one wide table or scattered session ids, replay, reconciliation, and cleanup fail. Use at least five identities, with no mixed meaning:
Tenant or workspace id: isolation boundary.
Agent id: domain aggregate root; primary dimension for permission and cost.
Release-triple id: one frozen combination of content, contract, and policy.
Session or task id: lifecycle of one user goal, spanning multiple tool rounds.
Call and tool-execution id: each model call or tool round-trip, for timeout, retry, and token metering.
Store two aggregate roots: agent configuration and publish (static, strongly consistent, transactional DB); session and execution traces (append-heavy, partitionable, log-oriented store plus object-storage archive). Large knowledge slices and tool payloads go to object storage; metadata stays transactional. Search indexes and metrics time series use dedicated services and must not compete with the config database for transactions.
Benefits: config changes do not throttle session writes; session cleanup and retention can archive by task id; cost aggregates on call ids then rolls back to the agent so channels do not keep separate books. When sub-agents collaborate, the parent task id threads through; child execution ids stay independent so work can run concurrently and audit can reconstruct causality.
Deterministic, approval-gated change flows hang the approval-ticket id under the task. They should not become a separate “workflow product entity.” Flow is a capability slice; approval is a gate on the policy track. Entities still sit on the agent and task trees.
One master dataset as channels grow
Web chat, a legacy floating widget, a release gate, and a local IDE differ mainly in identity source and context boxing, not in agent kind. Channels authenticate and normalize context (app, cluster, ticket, repo scope). The control plane uses the agent’s bound policy to decide visible tools and data plane. Local coding tools that reuse controlled ops tools still use the same contract track and key system; the plugin must not implement a second tool registry.
If the business still wants “different products,” use display names and templates, not cloned entity tables. A template is the default capability slice at agent creation; after create, it still lands in the same domain model. Popular labels (RAG, multi-agent, tool service) are tags for search and governance reports, not mutually exclusive primary keys.
A landing checklist
Is the first primary table only the agent, with no exclusive type key? Are versions split into content, contract, and policy with independent gray release? Are module dependencies one-way, with no framework in the domain layer? Are there five identity layers and dual aggregates for config vs. traces? Does a new channel add only an adapter, not an entity table? Does a tool-parameter change only bump the contract version with a compatibility check? Can tokens and call counts reconcile by agent plus policy version?
These checks expose a swamp earlier than stacking features. Platform thickness comes from composable capabilities while permission, versioning, dependencies, and the data backbone stay one set. After the static skeleton is in place, process isolation between control and execution has something governable. Otherwise you only copy chaos into two processes.
Evolve along these boundaries and later work—better retrieval, richer approval flows, pipeline and local-dev access—adds slices on the same aggregate root instead of opening another disconnected product line. That is how a platform gets thick without getting messy.
