K9X

Agentic Services Layer

Common services, shared by every team, and private services, kept within a team or domain

The Agentic Services Layer comprises services and their documentation. Each service is built from one or more agents that use LLMs. It provides a capability that other solutions need, and a contract that says how to invoke it.

SOA gave enterprises a services layer, then catalogs and developer portals so teams reused services instead of rebuilding them. Agentic AI needs the same, to keep agents from sprawling across an enterprise.

The Agentic Services Layer is a set of entries in K9X Continuum and the Enterprise Repository. Each entry points to an Agentic Service: its documentation, its contract and a demo to try. Common services are shared and searchable by every team; private services are visible only to their own team or domain. A project that adopts a service deploys its own instance, with its own configuration, on its own budget.

The model is framework-agnostic. An Agentic Service can be built with any agent framework or platform, as long as it publishes a contract, its documentation and a demo, and can be deployed as an instance. The diagrams below show one implementation, K9X: the K9-AIF framework to build services, and K9X Continuum with the Enterprise Repository to catalog them.

The problem: agent sprawl

Most agentic projects start by building an agent. That works for one solution. Across an enterprise, it means every team builds its own triage, redaction, document intake and retrieval agents, each slightly different, each governed separately, none reused. SOA faced the same problem with services twenty years ago, and solved it with a shared layer, a catalog and a rule to look before building.

The layers

The SOA reference architecture (The Open Group, based on IBM's SOA Solution Stack) separated consumers, business processes, services, service components and operational systems. The same layering holds for agentic systems, and so does the path: build services, share the common ones and publish them in a developer portal where teams discover and reuse them. For APIs, the MuleSoft Anypoint Platform is a well-known example: Anypoint Exchange catalogs the APIs, and its developer portal, API Experience Hub, is where teams discover and reuse them. Only the service changes: instead of SOA services, it is Agentic Services.

ConsumerInterfacesSOA: consumers Solutionsbuilt per solutionSOA: business processes AgenticServices demo · deploy per projectSOA: services AgentComponentsSOA: service components OperationalSystemsSOA: same layer Chat & apps K9X Studio Other agents App A App B App C REST MCP Kafka pii-redaction doc-intake policy-check each = orchestrator + squad (1..n agents) Pydantic contract · caller identity · metering MCP tools kb_search ticket_tool crm_lookup Agents (YAML + class) Squads Orchestrators Model router → LLMs Data Systems of record events tool call runs on
Each layer keeps its SOA counterpart. Solution teams build the processes. They try Agentic Services from the catalog, run their own instances, reach them through REST, MCP or Kafka, and call MCP tools directly for simple capabilities. Each Agentic Service is built from agents, and runs on agent components and operational systems.

A simple example

An enterprise has one shared document-analysis service: give it documents, pointers to the data behind them and a task, and it returns a structured analysis and report. Three applications need that capability. As shown below, each architect tries the demo first. Claims and Underwriting each deploy their own instance of the common service, with their own configuration file. Customer Service needs further customization for its project, so it clones the service and makes it application-specific.

Solutionseach runs itsown instances AgenticServices CatalogContinuum +Repository Claims app document-analysis v2.1 claims.yaml Underwriting app document-analysis v2.1 underwriting.yaml Customer Service app doc-analysis-cs customer-service.yaml Common services document-analysis v2.1 definition + demo to try searchable by every team Private services doc-analysis-cs cloned, application-specific visible to its own team deploy + configure deploy clone Common Systems · document-analysis v2.1 demo · instances: Claims, Underwriting Private · doc-analysis-cs derived from v2.1
A common service is a definition with a demo, searchable by every team. Each project deploys its own instance, configured with its own file and paid from its own budget. A private service is a clone, made when a project needs further customization: application-specific, visible to its own team and linked to the version it came from.
  1. Look first, and try the demo. While the Claims solution is being designed, before any code, the architect searches the catalog, finds document-analysis v2.1 and tries its demo.
  2. Deploy and configure. Claims and Underwriting each deploy their own instance of v2.1 with their own configuration file. Neither builds an analysis agent, and each instance runs on its own project's budget.
  3. Clone only when needed. Customer Service needs further customization for its project, so it clones the service, makes it application-specific, and deploys it as its own private service.
  4. Keep common and private apart. Common services are what every team searches. Private services are visible only to their own team or domain, and stay linked to their origin, so improvements to v2.1 can still reach the clone.

Across many projects and applications, this builds up an entire suite of services that are readily available, and proven: each one has passed inspection and review, been promoted, and is already working for other applications. A new project starts from services that work, not from a blank page.

Inside one Agentic Service

Every Agentic Service works the same way inside, however it is called. The contract is checked on the way in and on the way out.

REST MCP Kafka Service core · one implementation behind every entry point AuthenticateOAuth → caller Validate inputPydantic request Policy + meteringgovernance, tokens Orchestratorsquad · agents Validate outputretry, else DLQ Respondsync or reply topic token exchange for downstream calls Listed in Continuum · content in Enterprise Repository published on release
Entry points only translate. Identity, contract validation, policy, metering and the squad run once, in the core, so every channel enforces the same rules. Output that fails the response schema is retried, then sent to a dead-letter queue, never returned malformed.

Discover before you build

There is no separate catalog product. A common Agentic Service is a building block in K9X Continuum at the Common Systems level, and its documentation, contract and invocation examples live in the Enterprise Repository. This happens at the Design stage of the Secure AI Lifecycle, before any code is written. The architect first checks which common services the project can use as is, or with a little customization, and builds new only for what is left. The Center of Excellence sets the rule: try it before you use it or clone it. Then reuse and configure, clone only when the project needs further customization, or build new with a recorded justification. In time, the K9X Agentic Reuse Advisor, itself an Agentic Service, will do the searching: give it a project's requirements or a Studio design, and it proposes what to reuse, for the architect to decide.

Agentic Service pii-redaction v1.2 built by the service team submit K9X Continuum catalog · classification · promotion inspect gate review published promoted Foundationframework ABBs Common SystemsCommon Agentic Services Industryinsurance, healthcare, … Organization-Specificone enterprise only Enterprise Repository the service's content Contract · JSON Schema from Pydantic Invocation examples · REST · MCP · Kafka Documentation · data sources needed Demo · eval results · cost per call Governance Log · dispensations entity id Agentic Services Layer · searchable entries sign in · search · read the entry · try the demo reads reads Architect · CoE solution teams discover
Continuum holds the catalog entry: it refuses a service that fails k9aif inspect, takes it through review to promotion, and lists it at the Common Systems level. The Enterprise Repository holds what a consumer needs to call it.

Agentic Service Governance

Governance covers how a service enters the catalog (inspection, review and promotion), the rule to look before building, who pays for and runs each instance, and how a service changes without breaking the applications that depend on it.

Instances, cost and SLA

The catalog holds the service and its demo. Production runs in each project's own instance. That settles who pays and who answers for the service level.

Service ownerProject
OwnsThe service: code, contract, evaluation suite, fixes and releases, and the demoIts instance and its configuration file
Answers forQuality: the contract, the published evaluation results, timely fixesRuntime SLA: availability, response time, capacity
Pays forBuilding and maintaining the service, and running the demoIts instance's hosting and model usage, from the project budget

The demo is for trying a service. It carries no SLA. A few services that cost little and give everyone the same answer may run as one central instance instead; the K9X Agentic Reuse Advisor is one.

So a project has three ways to use a common service:

  • Try the demo. For exploring at Design. No SLA.
  • Request a hosted instance. The organization can also run a working instance for a proof of concept, requested much like a SaaS subscription. The request records whatever the organization requires, such as the project name and ID, or for client work an opportunity number and the client account, so usage is tracked and charged back to the project.
  • Deploy its own instance. For production, the project runs its own instance with its own configuration, on its own budget.

Each organization sets its own guardrails around these, for example requiring a project or application to be registered before its team can try a demo. The Center of Excellence then knows who is evaluating which service, and can follow up when an evaluation turns into an instance.

Change management and impact analysis

Applications that depend on a common service must not break when it changes. As in SOA, changes are backward compatible by default, and the service owner knows exactly who is affected before releasing anything.

Change proposedmodel, prompt or contract Impact analysiswhich instances, from the catalog Re-run eval suitebehaviour still holds Compatible → v2.2instances upgrade when ready, nothing breaks Breaking → v3 alongside v2instances stay on v2 until they move, by a set date usually rarely Notify instance owners: Claims, Underwriting · and doc-analysis-cs, that its origin changed
The catalog records which instance runs which version, so impact analysis is a lookup in the catalog. Each instance pins a version, so a release never changes it without its owner choosing to upgrade.
  • Backward compatible by default. A new version may add to the contract but never removes or renames anything. Each instance pins a major version.
  • Impact analysis first. Each instance registers in the catalog with its version, so the owner sees every instance affected before releasing.
  • Behaviour counts as a change. A new model or prompt can change results without changing the contract, so the evaluation suite is re-run and its results published with the release.
  • Instance owners are informed. Every instance owner is told what changed and when, and upgrades when ready. Security fixes are the exception: they must be applied by a set date.
  • Private copies stay linked. Teams that copied a service are told when its origin changes, and decide whether to take the update. The CoE can see which copies have stopped following their origin.

Agents, Agentic Services and MCP tools

Three building blocks appear on this page. Agents are what you build. Agentic Services are what you share. MCP tools are single capabilities that both can use.

TermWhat it isWho sees it
AgentOne role: YAML and a class, with instructions, tools and an output schema. A component, like a service component in SOA.The team building the service
Agentic ServiceA service built from agents: an orchestrator and a squad of one or more agents behind a Pydantic contract. Listed with a demo; each project deploys its own instance.Every consuming solution
MCP toolOne capability with no reasoning of its own, such as a search or a lookup. Once a tool needs reasoning, it becomes an Agentic Service.Agents and solutions

Work in progress. An example Agentic Service in the Agentic Services Layer, with its demo, contract and documentation, is being prepared and will be linked here.