Skip to content

3.13 Domain Semantics and Operation Contracts

Editorial context, 2026-04-20: The questions, constraints, proposals, disagreements, and caveats below are reformulated from the saved research discussion. LLM recommendations remain attributed proposals, not decisions by the author or independently verified findings. Technical examples and quoted source passages retain their original wording.

The retained passage distinguishes an API’s input types from the business meanings needed to use it. The complete account example and domain sketch remain with the refund-operation contract. The reply calls the described operation a capability, which needs to be distinguished from authority to invoke it.

The passage comes from the language-interface architecture reply (archived source 012). Its architecture overview retains the historical precedent, eight-layer proposal, application boundaries, and closing bibliography. The related passages concern intent compilation and concrete operation authorization.

The existing semantic-kernel discussion develops typed domain operations, checks, and the boundary between a kernel and execution. The new passage provides a general discussion beyond that note’s audit-analytics example. The existing kernel arguments are retained with editorial wording.

Read the sibling comments for business definitions, operation descriptions, and enforcement. The stage 8 audit records the passage’s original range. The cited research and protocol claims remain unverified statements from the saved reply.

Retained domain and operation discussion

The semantic model may become one of the most important assets

Consider an API:

getAccounts({
  status: string,
  min_arr: number
})

Types tell us very little.

What does status = active mean?

Does ARR include contracted future revenue?

Do parent companies aggregate subsidiaries?

Are trial customers accounts?

Which currency does min_arr use?

Can suspended customers be contacted?

These aren’t type-system questions. They’re business semantics.

That means this:

API schema

is insufficient.

We need something closer to:

Domain

Customer
Account
Subscription
Contract
Invoice
Product
AccountOwner

Relations

Customer owns Accounts
Account has Subscription
Subscription governed by Contract

Definitions

active_customer := ...
ARR := ...
at_risk := ...

Capabilities

find_accounts(...)
create_followup(...)
contact_customer(...)

Constraints

do not contact ...
requires approval when ...

There is good historical evidence for this direction. Google’s Schema-Guided Dialogue work explicitly supplied models with descriptions of intents and parameters and tested generalization to completely unseen APIs. A single model could then operate against a dynamic set of services without retraining for each service. (AAAI Publications)

And a current 2026 line of research is seeing the same phenomenon in enterprise data. One recent study found that giving frontier models explicit business semantics substantially improved natural-language analytics compared with giving them only the physical database schema. Another system introduces a semantic intermediate representation and deterministically compiles it to SQL. These are recent preprints, so the proposal is to treat the exact numbers cautiously, but the architectural result is persuasive. (arXiv)

So there’s a subtle inversion here.

People currently think:

models get smarter -> schemas matter less.

The LLM hypothesis is:

models get better at consuming schemas -> good schemas become more valuable.

The model needs somewhere to ground its interpretation.

The API evolves into a capability

There’s also a conceptual change between an API and the proposed concept of a capability.

Traditional API documentation mostly answers:

How do I call this?

An agent needs:

What does this accomplish?
When should it be used?
What does it require?
What can change if I invoke it?
What authority does it require?
What can it return?
Can it be retried?
Can it be reversed?

Something like:

capability: refund_payment

description:
  Refund a captured payment.

inputs:
  payment_id: PaymentId
  amount: Money

preconditions:
  - payment is captured
  - amount <= refundable_balance

effects:
  - refundable_balance decreases
  - customer receives refund

authority:
  requires: payments.refund

risk:
  side_effect: financial
  reversible: false

idempotency:
  required: true

This starts looking surprisingly similar to OWL-S’s old notion of inputs, outputs, preconditions and effects. (W3C)

But natural-language descriptions can carry much of the fuzzy meaning while formal fields carry properties where correctness matters.

Current MCP is an early, incomplete version of this direction. A server can expose discoverable tools with JSON Schema input and output contracts; the July 28, 2026 protocol revision expanded those tool definitions to full JSON Schema 2020-12. (Model Context Protocol Blog)

The recommendation is not to bet that MCP specifically dominates computing twenty years from now.

The proposal is to bet on its underlying abstraction:

Software dynamically advertises machine-readable capabilities to an intent interpreter.

That’s durable.

Library sources