Proposal: Standardized operation intent/effects metadata for agent-ready OpenAPI #5255
Replies: 3 comments 7 replies
-
I also have:
- a runnable Docker demo
- a JSON Schema for the extension value
- a runtime grant schema used by a gateway/policy layer
- example annotated OpenAPI operations
Happy to share links and examples in follow-up comments if useful. |
Beta Was this translation helpful? Give feedback.
-
|
Could we use tags (and the tag registry) for this? |
Beta Was this translation helpful? Give feedback.
-
|
@shaalin > categorization and semantics are not quite the same thing 100% agree. Your concern gave me the following idea. Why not let you use extensions as you see fit (that is their goal), but perhaps we could introduce a feature whereby you can reference an extention (and its related attribs like in your example), like so paths:
/payments:
post:
summary: Create payment
extentions:
$ref: "#/components/extentions/ibauth"
components:
extentions:
ibauth:
ver: "1"
operation_class: "payment.create"
effects:
- kind: mutate
target: payment
- kind: financial_transfer
target: payments-rail
budgets:
risk_max: "high"
cost_max: "medium"This way you can keep your OADs DRY and enjoy the semantics you need. Another way would be to well..... implement this using overlays which is slighy more complicated, but still doable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m exploring a standardized way to attach machine-readable semantic intent metadata to OpenAPI operations.
The gap is that OpenAPI describes how to call an operation very well, but it does not provide a standard way to describe:
This matters for gateways, policy engines, and agentic or LLM-driven clients, where understanding what an operation means and what it can cause is as important as understanding the request/response shape.
As a concrete direction, I’m testing an incubating namespaced extension pattern using:
x-ibauth-intentMinimal example:
This is not intended to replace OAuth, scopes, or existing security schemes. It is meant to complement them by making operation semantics visible in the OpenAPI description itself.
I have a working Docker-based demo and schemas behind this, and I’m looking for feedback on three things:
- operation semantic class
- effects taxonomy
- descriptive budgets
- agent capability hints
Beta Was this translation helpful? Give feedback.
All reactions