@bluefly/openstandardagents 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/.devfile.yaml +87 -0
  2. package/.gitlab-ci-trigger +1 -0
  3. package/.wiki-config.json +24 -0
  4. package/CHANGELOG.md +212 -1
  5. package/README.md +31 -56
  6. package/dist/adapters/anthropic/runtime.js +2 -2
  7. package/dist/adapters/anthropic/runtime.js.map +1 -1
  8. package/dist/bot/architecture-validator-bot.d.ts +8 -0
  9. package/dist/bot/architecture-validator-bot.d.ts.map +1 -0
  10. package/dist/bot/architecture-validator-bot.js +15 -0
  11. package/dist/bot/architecture-validator-bot.js.map +1 -0
  12. package/dist/bot/ci-pipeline-bot.d.ts +7 -0
  13. package/dist/bot/ci-pipeline-bot.d.ts.map +1 -0
  14. package/dist/bot/ci-pipeline-bot.js +7 -0
  15. package/dist/bot/ci-pipeline-bot.js.map +1 -0
  16. package/dist/bot/compliance-bot.d.ts +56 -0
  17. package/dist/bot/compliance-bot.d.ts.map +1 -0
  18. package/dist/bot/compliance-bot.js +203 -0
  19. package/dist/bot/compliance-bot.js.map +1 -0
  20. package/dist/bot/dependency-updater-bot.d.ts +9 -0
  21. package/dist/bot/dependency-updater-bot.d.ts.map +1 -0
  22. package/dist/bot/dependency-updater-bot.js +9 -0
  23. package/dist/bot/dependency-updater-bot.js.map +1 -0
  24. package/dist/bot/security-scanner-bot.d.ts +11 -0
  25. package/dist/bot/security-scanner-bot.d.ts.map +1 -0
  26. package/dist/bot/security-scanner-bot.js +21 -0
  27. package/dist/bot/security-scanner-bot.js.map +1 -0
  28. package/dist/cli/commands/agent-card.command.d.ts +11 -0
  29. package/dist/cli/commands/agent-card.command.d.ts.map +1 -0
  30. package/dist/cli/commands/agent-card.command.js +285 -0
  31. package/dist/cli/commands/agent-card.command.js.map +1 -0
  32. package/dist/cli/commands/agents.command.d.ts +11 -0
  33. package/dist/cli/commands/agents.command.d.ts.map +1 -0
  34. package/dist/cli/commands/agents.command.js +326 -0
  35. package/dist/cli/commands/agents.command.js.map +1 -0
  36. package/dist/cli/commands/generate.command.d.ts +13 -2
  37. package/dist/cli/commands/generate.command.d.ts.map +1 -1
  38. package/dist/cli/commands/generate.command.js +204 -29
  39. package/dist/cli/commands/generate.command.js.map +1 -1
  40. package/dist/cli/commands/registry.command.d.ts +14 -0
  41. package/dist/cli/commands/registry.command.d.ts.map +1 -0
  42. package/dist/cli/commands/registry.command.js +428 -0
  43. package/dist/cli/commands/registry.command.js.map +1 -0
  44. package/dist/cli/commands/workspace.command.d.ts +14 -0
  45. package/dist/cli/commands/workspace.command.d.ts.map +1 -0
  46. package/dist/cli/commands/workspace.command.js +467 -0
  47. package/dist/cli/commands/workspace.command.js.map +1 -0
  48. package/dist/cli/index.js +9 -0
  49. package/dist/cli/index.js.map +1 -1
  50. package/dist/di-container.d.ts.map +1 -1
  51. package/dist/di-container.js +20 -0
  52. package/dist/di-container.js.map +1 -1
  53. package/dist/services/codegen/codegen.service.d.ts +75 -0
  54. package/dist/services/codegen/codegen.service.d.ts.map +1 -0
  55. package/dist/services/codegen/codegen.service.js +136 -0
  56. package/dist/services/codegen/codegen.service.js.map +1 -0
  57. package/dist/services/codegen/generators/manifest.generator.d.ts +41 -0
  58. package/dist/services/codegen/generators/manifest.generator.d.ts.map +1 -0
  59. package/dist/services/codegen/generators/manifest.generator.js +178 -0
  60. package/dist/services/codegen/generators/manifest.generator.js.map +1 -0
  61. package/dist/services/codegen/generators/openapi.generator.d.ts +46 -0
  62. package/dist/services/codegen/generators/openapi.generator.d.ts.map +1 -0
  63. package/dist/services/codegen/generators/openapi.generator.js +157 -0
  64. package/dist/services/codegen/generators/openapi.generator.js.map +1 -0
  65. package/dist/services/codegen/generators/types.generator.d.ts +27 -0
  66. package/dist/services/codegen/generators/types.generator.d.ts.map +1 -0
  67. package/dist/services/codegen/generators/types.generator.js +97 -0
  68. package/dist/services/codegen/generators/types.generator.js.map +1 -0
  69. package/dist/services/codegen/generators/vscode.generator.d.ts +43 -0
  70. package/dist/services/codegen/generators/vscode.generator.d.ts.map +1 -0
  71. package/dist/services/codegen/generators/vscode.generator.js +163 -0
  72. package/dist/services/codegen/generators/vscode.generator.js.map +1 -0
  73. package/dist/services/codegen/generators/zod.generator.d.ts +31 -0
  74. package/dist/services/codegen/generators/zod.generator.d.ts.map +1 -0
  75. package/dist/services/codegen/generators/zod.generator.js +134 -0
  76. package/dist/services/codegen/generators/zod.generator.js.map +1 -0
  77. package/dist/services/codegen/index.d.ts +33 -0
  78. package/dist/services/codegen/index.d.ts.map +1 -0
  79. package/dist/services/codegen/index.js +36 -0
  80. package/dist/services/codegen/index.js.map +1 -0
  81. package/dist/spec/extensions/openapi/ossa-openapi-extensions.schema.json +804 -0
  82. package/dist/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +1 -1
  83. package/dist/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +1 -1
  84. package/dist/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
  85. package/dist/spec/v0.3.0/runtime-bindings/anthropic.yaml +209 -0
  86. package/dist/spec/v0.3.1/examples/agent-with-identity.ossa.yaml +68 -0
  87. package/dist/spec/v0.3.1/examples/drupal-content-writer.ossa.yaml +1 -1
  88. package/dist/spec/v0.3.1/examples/drupal-moderation-assistant.ossa.yaml +1 -1
  89. package/dist/spec/v0.3.1/examples/multi-provider-identity.ossa.yaml +236 -0
  90. package/dist/spec/v0.3.1/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
  91. package/dist/spec/v0.3.1/extensions/agent-identity.yaml +594 -0
  92. package/dist/spec/v0.3.1/ossa-0.3.1.schema.json +300 -21
  93. package/dist/spec/v0.3.2/MIGRATION-v0.3.1-to-v0.3.2.md +293 -0
  94. package/dist/spec/v0.3.2/UNIFIED-SCHEMA.md +120 -0
  95. package/dist/spec/v0.3.2/access_tiers.yaml +375 -0
  96. package/dist/spec/v0.3.2/adapters/drupal.md +541 -0
  97. package/dist/spec/v0.3.2/adapters/symfony.md +659 -0
  98. package/dist/spec/v0.3.2/agent-test.schema.json +75 -0
  99. package/dist/spec/v0.3.2/examples/access-tiers/README.md +106 -0
  100. package/dist/spec/v0.3.2/examples/access-tiers/code-critic.ossa.yaml +119 -0
  101. package/dist/spec/v0.3.2/examples/access-tiers/compliance-governor.ossa.yaml +234 -0
  102. package/dist/spec/v0.3.2/examples/access-tiers/deployment-operator.ossa.yaml +201 -0
  103. package/dist/spec/v0.3.2/examples/access-tiers/doc-generator.ossa.yaml +117 -0
  104. package/dist/spec/v0.3.2/examples/access-tiers/security-scanner.ossa.yaml +133 -0
  105. package/dist/spec/v0.3.2/examples/agent-with-identity.ossa.yaml +68 -0
  106. package/dist/spec/v0.3.2/examples/drupal-content-writer.ossa.yaml +110 -0
  107. package/dist/spec/v0.3.2/examples/drupal-moderation-assistant.ossa.yaml +96 -0
  108. package/dist/spec/v0.3.2/examples/multi-provider-identity.ossa.yaml +236 -0
  109. package/dist/spec/v0.3.2/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
  110. package/dist/spec/v0.3.2/examples/tasks/data-transform.ossa.yaml +147 -0
  111. package/dist/spec/v0.3.2/examples/tasks/publish-content.ossa.yaml +125 -0
  112. package/dist/spec/v0.3.2/examples/workflows/content-publishing.ossa.yaml +190 -0
  113. package/dist/spec/v0.3.2/examples/workflows/deployment-pipeline.ossa.yaml +247 -0
  114. package/dist/spec/v0.3.2/extensions/agent-identity.yaml +594 -0
  115. package/dist/spec/v0.3.2/extensions/drupal.md +417 -0
  116. package/dist/spec/v0.3.2/infrastructure/service-ports.yaml +324 -0
  117. package/dist/spec/{v0.3.1/ossa-0.3.0.schema.json → v0.3.2/ossa-0.3.2.schema.json} +563 -34
  118. package/dist/spec/v0.3.2/protocols/delegation.yaml +239 -0
  119. package/dist/spec/v0.3.2/protocols/sse.md +494 -0
  120. package/dist/spec/v0.3.2/protocols/webrtc.md +600 -0
  121. package/dist/spec/v0.3.2/protocols/websocket.md +362 -0
  122. package/dist/spec/v0.3.2/runtime/RUNTIME.md +457 -0
  123. package/dist/spec/v0.3.2/runtime/memory-model.yaml +871 -0
  124. package/dist/spec/v0.3.2/runtime/runtime.yaml +926 -0
  125. package/dist/spec/v0.3.2/schemas/agent-unified.yaml +165 -0
  126. package/dist/spec/v0.3.2/schemas/capabilities.yaml +102 -0
  127. package/dist/spec/v0.3.2/schemas/functions.yaml +75 -0
  128. package/dist/spec/v0.3.2/schemas/messaging/channel.schema.json +245 -0
  129. package/dist/spec/v0.3.2/schemas/messaging/delivery-receipt.schema.json +192 -0
  130. package/dist/spec/v0.3.2/schemas/messaging/message.schema.json +205 -0
  131. package/dist/spec/v0.3.2/schemas/messaging/subscription.schema.json +214 -0
  132. package/dist/spec/v0.3.2/schemas/runtime.yaml +102 -0
  133. package/dist/spec/v0.3.2/schemas/taxonomy.yaml +533 -0
  134. package/dist/spec/v0.3.2/schemas/unified-llm.yaml +91 -0
  135. package/dist/spec/v0.3.2/taxonomy.yaml +363 -0
  136. package/dist/types/generated/ossa-0.3.2.types.d.ts +367 -0
  137. package/dist/types/generated/ossa-0.3.2.types.d.ts.map +1 -0
  138. package/dist/types/generated/ossa-0.3.2.types.js +10 -0
  139. package/dist/types/generated/ossa-0.3.2.types.js.map +1 -0
  140. package/dist/types/generated/ossa-0.3.2.zod.d.ts +36 -0
  141. package/dist/types/generated/ossa-0.3.2.zod.d.ts.map +1 -0
  142. package/dist/types/generated/ossa-0.3.2.zod.js +25 -0
  143. package/dist/types/generated/ossa-0.3.2.zod.js.map +1 -0
  144. package/examples/adapters/drupal-eca-mapping.yaml +1 -1
  145. package/examples/adapters/drupal-eca-task.yaml +1 -1
  146. package/examples/adapters/drupal-flowdrop-mapping.yaml +1 -1
  147. package/examples/adapters/drupal-maestro-mapping.yaml +1 -1
  148. package/examples/adapters/mistral-agent.yaml +1 -1
  149. package/examples/adapters/symfony-messenger-task.yaml +1 -1
  150. package/examples/adapters/symfony-messenger-workflow.yaml +1 -1
  151. package/examples/adk-integration/code-review-workflow.yml +1 -1
  152. package/examples/adk-integration/customer-support.yml +1 -1
  153. package/examples/adk-integration/data-pipeline.yml +1 -1
  154. package/examples/advanced/reasoning-agent.yaml +1 -1
  155. package/examples/advanced/workflows/hybrid-model-strategy.yaml +1 -1
  156. package/examples/agent-manifests/critics/critic-agent.yaml +1 -1
  157. package/examples/agent-manifests/governors/governor-agent.yaml +1 -1
  158. package/examples/agent-manifests/integrators/integrator-agent.yaml +1 -1
  159. package/examples/agent-manifests/judges/judge-agent.yaml +1 -1
  160. package/examples/agent-manifests/monitors/monitor-agent.yaml +1 -1
  161. package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +1 -1
  162. package/examples/agent-manifests/sample-compliant-agent.yaml +1 -1
  163. package/examples/agent-manifests/workers/worker-agent.yaml +1 -1
  164. package/examples/agents/architecture-healer-enterprise.yaml +1 -1
  165. package/examples/agents/dependency-healer-npm.yaml +1 -1
  166. package/examples/agents/spec-healer-openapi.yaml +1 -1
  167. package/examples/agents/wiki-healer-production.yaml +1 -1
  168. package/examples/agents-md/code-agent.ossa.json +36 -11
  169. package/examples/agents-md/monorepo-agent.ossa.yaml +1 -1
  170. package/examples/anthropic/claude-assistant.ossa.json +4 -4
  171. package/examples/autogen/multi-agent.ossa.json +2 -2
  172. package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +1 -1
  173. package/examples/claude-code/code-reviewer.ossa.yaml +1 -1
  174. package/examples/claude-code/ossa-validator.ossa.yaml +1 -1
  175. package/examples/common_npm/agent-router.ossa.yaml +1 -1
  176. package/examples/contracts/data-consumer.ossa.yaml +1 -1
  177. package/examples/contracts/data-producer-v2.ossa.yaml +1 -1
  178. package/examples/contracts/data-producer.ossa.yaml +1 -1
  179. package/examples/crewai/research-team.ossa.json +2 -2
  180. package/examples/cursor/code-review-agent.ossa.json +2 -2
  181. package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +1 -1
  182. package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
  183. package/examples/extensions/agents-md-advanced.yml +1 -1
  184. package/examples/extensions/agents-md-basic.yml +1 -1
  185. package/examples/extensions/agents-md-sync.yml +1 -1
  186. package/examples/extensions/agents-md-v1.yml +1 -1
  187. package/examples/extensions/drupal-v1.yml +1 -1
  188. package/examples/extensions/encryption-multi-provider.yaml +4 -4
  189. package/examples/extensions/kagent-v1.yml +1 -1
  190. package/examples/extensions/knowledge-sources.yaml +1 -1
  191. package/examples/extensions/mcp-full-featured.yaml +1 -1
  192. package/examples/getting-started/01-minimal-agent.ossa.yaml +3 -3
  193. package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
  194. package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
  195. package/examples/getting-started/04-agent-with-messaging.ossa.yaml +2 -2
  196. package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
  197. package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
  198. package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +4 -4
  199. package/examples/kagent/compliance-validator.ossa.yaml +1 -1
  200. package/examples/kagent/cost-optimizer.ossa.yaml +1 -1
  201. package/examples/kagent/documentation-agent.ossa.yaml +1 -1
  202. package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +1 -1
  203. package/examples/kagent/k8s-troubleshooter.ossa.yaml +1 -1
  204. package/examples/kagent/security-scanner.ossa.yaml +1 -1
  205. package/examples/langchain/chain-agent.ossa.json +2 -2
  206. package/examples/langflow/workflow-agent.ossa.json +2 -2
  207. package/examples/langgraph/state-machine-agent.ossa.json +2 -2
  208. package/examples/llamaindex/rag-agent.ossa.json +2 -2
  209. package/examples/messaging/dependency-healer.ossa.yaml +1 -1
  210. package/examples/messaging/incident-responder.ossa.yaml +1 -1
  211. package/examples/messaging/routing-rules.ossa.yaml +3 -3
  212. package/examples/messaging/security-scanner.ossa.yaml +1 -1
  213. package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
  214. package/examples/multi-agent/conditional-router.ossa.yaml +1 -1
  215. package/examples/multi-agent/parallel-execution.ossa.yaml +1 -1
  216. package/examples/multi-agent/sequential-pipeline.ossa.yaml +1 -1
  217. package/examples/observability/activity-stream-full.yaml +1 -1
  218. package/examples/openai/basic-agent.ossa.yaml +1 -1
  219. package/examples/openai/multi-tool-agent.ossa.json +2 -2
  220. package/examples/openai/swarm-agent.ossa.json +2 -2
  221. package/examples/production/document-analyzer-openai.yml +1 -1
  222. package/examples/quickstart/support-agent.ossa.yaml +1 -1
  223. package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +1 -1
  224. package/examples/real-world/rag-documentation-assistant.ossa.yaml +1 -1
  225. package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +1 -1
  226. package/examples/schema/reusable-components.yaml +1 -1
  227. package/examples/showcase/ci-pipeline.ossa.yaml +59 -0
  228. package/examples/showcase/code-assistant.ossa.yaml +118 -0
  229. package/examples/showcase/code-reviewer.ossa.yaml +61 -0
  230. package/examples/showcase/compliance-validator.ossa.yaml +62 -0
  231. package/examples/showcase/content-writer.ossa.yaml +67 -0
  232. package/examples/showcase/data-transformer.ossa.yaml +78 -0
  233. package/examples/showcase/doc-generator.ossa.yaml +68 -0
  234. package/examples/showcase/security-scanner.ossa.yaml +65 -0
  235. package/examples/showcase/test-generator.ossa.yaml +63 -0
  236. package/examples/showcase/workflow-orchestrator.ossa.yaml +129 -0
  237. package/examples/tasks/batch-email-sender.yaml +1 -1
  238. package/examples/tasks/data-transform.yaml +1 -1
  239. package/examples/tasks/publish-content.yaml +1 -1
  240. package/examples/templates/ossa-compliance.yaml +1 -1
  241. package/examples/unified/security-scanner.ossa.yaml +1 -1
  242. package/examples/vercel/edge-agent.ossa.json +2 -2
  243. package/examples/workflows/batch-email-campaign.yaml +1 -1
  244. package/examples/workflows/content-review-publish.yaml +1 -1
  245. package/examples/workflows/simple-etl.yaml +1 -1
  246. package/llms-ctx-full.txt +39 -0
  247. package/llms-ctx.txt +39 -0
  248. package/openapi/agent-communication.yaml +1 -1
  249. package/openapi/agent-crud.yaml +8 -8
  250. package/openapi/agent-discovery.yaml +2 -2
  251. package/openapi/agent-identity.yaml +8 -8
  252. package/openapi/cli-commands.openapi.yaml +231 -0
  253. package/openapi/core/ossa-core-api.openapi.yaml +1 -1
  254. package/openapi/core/ossa-registry-api.openapi.yaml +1 -1
  255. package/openapi/core/ossa-registry.openapi.yaml +1 -1
  256. package/openapi/core/unified-agent-gateway.openapi.yaml +1 -1
  257. package/openapi/github-sync.yaml +1 -1
  258. package/openapi/protocols/sse-streams.yaml +1 -1
  259. package/openapi/protocols/websocket-events.yaml +2 -2
  260. package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +2 -2
  261. package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +1 -1
  262. package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +1 -1
  263. package/openapi/reference-implementations/critic-agent-api.openapi.yaml +2 -2
  264. package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +2 -2
  265. package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +1 -1
  266. package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +1 -1
  267. package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +2 -2
  268. package/openapi/reference-implementations/governor-agent-api.openapi.yaml +1 -1
  269. package/openapi/reference-implementations/helm-generator.openapi.yaml +1 -1
  270. package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +1 -1
  271. package/openapi/reference-implementations/judge-agent-api.openapi.yaml +1 -1
  272. package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +2 -2
  273. package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +1 -1
  274. package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +2 -2
  275. package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +1 -1
  276. package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +2 -2
  277. package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +1 -1
  278. package/openapi/reference-implementations/worker-agent-api.openapi.yaml +2 -2
  279. package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +1 -1
  280. package/package.json +13 -3
  281. package/spec/extensions/openapi/ossa-openapi-extensions.schema.json +804 -0
  282. package/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +1 -1
  283. package/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +1 -1
  284. package/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
  285. package/spec/v0.3.0/runtime-bindings/anthropic.yaml +209 -0
  286. package/spec/v0.3.1/examples/agent-with-identity.ossa.yaml +68 -0
  287. package/spec/v0.3.1/examples/drupal-content-writer.ossa.yaml +1 -1
  288. package/spec/v0.3.1/examples/drupal-moderation-assistant.ossa.yaml +1 -1
  289. package/spec/v0.3.1/examples/multi-provider-identity.ossa.yaml +236 -0
  290. package/spec/v0.3.1/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
  291. package/spec/v0.3.1/extensions/agent-identity.yaml +594 -0
  292. package/spec/v0.3.1/ossa-0.3.1.schema.json +300 -21
  293. package/spec/v0.3.2/MIGRATION-v0.3.1-to-v0.3.2.md +293 -0
  294. package/spec/v0.3.2/UNIFIED-SCHEMA.md +120 -0
  295. package/spec/v0.3.2/access_tiers.yaml +375 -0
  296. package/spec/v0.3.2/adapters/drupal.md +541 -0
  297. package/spec/v0.3.2/adapters/symfony.md +659 -0
  298. package/spec/v0.3.2/agent-test.schema.json +75 -0
  299. package/spec/v0.3.2/examples/access-tiers/README.md +106 -0
  300. package/spec/v0.3.2/examples/access-tiers/code-critic.ossa.yaml +119 -0
  301. package/spec/v0.3.2/examples/access-tiers/compliance-governor.ossa.yaml +234 -0
  302. package/spec/v0.3.2/examples/access-tiers/deployment-operator.ossa.yaml +201 -0
  303. package/spec/v0.3.2/examples/access-tiers/doc-generator.ossa.yaml +117 -0
  304. package/spec/v0.3.2/examples/access-tiers/security-scanner.ossa.yaml +133 -0
  305. package/spec/v0.3.2/examples/agent-with-identity.ossa.yaml +68 -0
  306. package/spec/v0.3.2/examples/drupal-content-writer.ossa.yaml +110 -0
  307. package/spec/v0.3.2/examples/drupal-moderation-assistant.ossa.yaml +96 -0
  308. package/spec/v0.3.2/examples/multi-provider-identity.ossa.yaml +236 -0
  309. package/spec/v0.3.2/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
  310. package/spec/v0.3.2/examples/tasks/data-transform.ossa.yaml +147 -0
  311. package/spec/v0.3.2/examples/tasks/publish-content.ossa.yaml +125 -0
  312. package/spec/v0.3.2/examples/workflows/content-publishing.ossa.yaml +190 -0
  313. package/spec/v0.3.2/examples/workflows/deployment-pipeline.ossa.yaml +247 -0
  314. package/spec/v0.3.2/extensions/agent-identity.yaml +594 -0
  315. package/spec/v0.3.2/extensions/drupal.md +417 -0
  316. package/spec/v0.3.2/infrastructure/service-ports.yaml +324 -0
  317. package/spec/{v0.3.1/ossa-0.3.0.schema.json → v0.3.2/ossa-0.3.2.schema.json} +563 -34
  318. package/spec/v0.3.2/protocols/delegation.yaml +239 -0
  319. package/spec/v0.3.2/protocols/sse.md +494 -0
  320. package/spec/v0.3.2/protocols/webrtc.md +600 -0
  321. package/spec/v0.3.2/protocols/websocket.md +362 -0
  322. package/spec/v0.3.2/runtime/RUNTIME.md +457 -0
  323. package/spec/v0.3.2/runtime/memory-model.yaml +871 -0
  324. package/spec/v0.3.2/runtime/runtime.yaml +926 -0
  325. package/spec/v0.3.2/schemas/agent-unified.yaml +165 -0
  326. package/spec/v0.3.2/schemas/capabilities.yaml +102 -0
  327. package/spec/v0.3.2/schemas/functions.yaml +75 -0
  328. package/spec/v0.3.2/schemas/messaging/channel.schema.json +245 -0
  329. package/spec/v0.3.2/schemas/messaging/delivery-receipt.schema.json +192 -0
  330. package/spec/v0.3.2/schemas/messaging/message.schema.json +205 -0
  331. package/spec/v0.3.2/schemas/messaging/subscription.schema.json +214 -0
  332. package/spec/v0.3.2/schemas/runtime.yaml +102 -0
  333. package/spec/v0.3.2/schemas/taxonomy.yaml +533 -0
  334. package/spec/v0.3.2/schemas/unified-llm.yaml +91 -0
  335. package/spec/v0.3.2/taxonomy.yaml +363 -0
  336. package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +0 -60
  337. package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +0 -68
  338. package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +0 -106
@@ -0,0 +1,804 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://openstandardagents.org/schemas/v0.3.2/extensions/openapi/ossa-openapi-extensions.json",
4
+ "title": "OSSA OpenAPI Extensions Schema",
5
+ "description": "JSON Schema for validating OpenAPI 3.x documents that use OSSA (Open Standard for Scalable AI Agents) extensions. This schema defines all OSSA-specific vendor extensions (x-ossa-*) that can be added to OpenAPI specifications to enable agent-aware APIs.",
6
+ "version": "0.3.2",
7
+ "type": "object",
8
+ "properties": {
9
+ "openapi": {
10
+ "type": "string",
11
+ "pattern": "^3\\.[0-9]+\\.[0-9]+$",
12
+ "description": "OpenAPI version. OSSA extensions support OpenAPI 3.0.x and 3.1.x"
13
+ },
14
+ "info": {
15
+ "type": "object"
16
+ },
17
+ "x-ossa-metadata": {
18
+ "$ref": "#/definitions/XOssaMetadata"
19
+ },
20
+ "x-ossa": {
21
+ "$ref": "#/definitions/XOssa"
22
+ },
23
+ "x-agent": {
24
+ "$ref": "#/definitions/XAgent"
25
+ },
26
+ "paths": {
27
+ "type": "object",
28
+ "additionalProperties": {
29
+ "$ref": "#/definitions/PathItemWithOssaExtensions"
30
+ }
31
+ }
32
+ },
33
+ "definitions": {
34
+ "XOssaMetadata": {
35
+ "$id": "#/definitions/XOssaMetadata",
36
+ "type": "object",
37
+ "title": "x-ossa-metadata Extension",
38
+ "description": "Root-level extension providing comprehensive OSSA agent metadata including compliance, governance, security, and observability configuration.",
39
+ "required": ["version"],
40
+ "properties": {
41
+ "version": {
42
+ "type": "string",
43
+ "pattern": "^(0\\.[0-9]+\\.[0-9]+|[1-9][0-9]*\\.[0-9]+\\.[0-9]+)(-[a-zA-Z0-9.-]+)?(\\+[a-zA-Z0-9.-]+)?$",
44
+ "description": "OSSA specification version (semver format)",
45
+ "examples": ["0.3.2", "1.0.0", "0.3.2-beta.1"]
46
+ },
47
+ "compliance": {
48
+ "type": "object",
49
+ "description": "Compliance level and framework information",
50
+ "properties": {
51
+ "level": {
52
+ "type": "string",
53
+ "enum": ["basic", "standard", "advanced", "enterprise"],
54
+ "default": "basic",
55
+ "description": "OSSA compliance level achieved by this API"
56
+ },
57
+ "frameworks": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "string"
61
+ },
62
+ "uniqueItems": true,
63
+ "description": "List of compliance frameworks this API adheres to",
64
+ "examples": [["SOC2", "HIPAA", "GDPR"]]
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "governance": {
70
+ "type": "object",
71
+ "description": "Governance and approval information for the API",
72
+ "properties": {
73
+ "approved": {
74
+ "type": "boolean",
75
+ "default": false,
76
+ "description": "Whether this API has been approved for production use"
77
+ },
78
+ "approvedBy": {
79
+ "type": "string",
80
+ "description": "Name or ID of the person/team who approved this API"
81
+ },
82
+ "approvalDate": {
83
+ "type": "string",
84
+ "format": "date",
85
+ "description": "Date when the API was approved (YYYY-MM-DD format)"
86
+ }
87
+ },
88
+ "additionalProperties": false
89
+ },
90
+ "security": {
91
+ "type": "object",
92
+ "description": "Security classification and requirements",
93
+ "properties": {
94
+ "classification": {
95
+ "type": "string",
96
+ "enum": ["public", "internal", "confidential", "restricted"],
97
+ "default": "internal",
98
+ "description": "Data classification level for this API"
99
+ },
100
+ "authentication": {
101
+ "type": "string",
102
+ "enum": ["required", "optional", "none"],
103
+ "default": "required",
104
+ "description": "Authentication requirement for this API"
105
+ },
106
+ "encryption": {
107
+ "type": "string",
108
+ "description": "Encryption standard required (e.g., 'TLS 1.3', 'AES-256')"
109
+ }
110
+ },
111
+ "additionalProperties": false
112
+ },
113
+ "observability": {
114
+ "type": "object",
115
+ "description": "Observability and monitoring configuration",
116
+ "properties": {
117
+ "tracing": {
118
+ "type": "boolean",
119
+ "default": true,
120
+ "description": "Whether distributed tracing is enabled"
121
+ },
122
+ "metrics": {
123
+ "type": "boolean",
124
+ "default": true,
125
+ "description": "Whether metrics collection is enabled"
126
+ },
127
+ "logging": {
128
+ "type": "boolean",
129
+ "default": true,
130
+ "description": "Whether structured logging is enabled"
131
+ }
132
+ },
133
+ "additionalProperties": false
134
+ }
135
+ },
136
+ "additionalProperties": false,
137
+ "examples": [
138
+ {
139
+ "version": "0.3.2",
140
+ "compliance": {
141
+ "level": "standard",
142
+ "frameworks": ["SOC2", "GDPR"]
143
+ },
144
+ "governance": {
145
+ "approved": true,
146
+ "approvedBy": "security-team",
147
+ "approvalDate": "2025-01-15"
148
+ },
149
+ "security": {
150
+ "classification": "confidential",
151
+ "authentication": "required",
152
+ "encryption": "TLS 1.3"
153
+ },
154
+ "observability": {
155
+ "tracing": true,
156
+ "metrics": true,
157
+ "logging": true
158
+ }
159
+ }
160
+ ]
161
+ },
162
+ "XOssa": {
163
+ "$id": "#/definitions/XOssa",
164
+ "type": "object",
165
+ "title": "x-ossa Extension",
166
+ "description": "Root-level extension providing core OSSA compliance information and agent identification.",
167
+ "required": ["version", "agent"],
168
+ "properties": {
169
+ "version": {
170
+ "type": "string",
171
+ "pattern": "^(0\\.[0-9]+\\.[0-9]+|[1-9][0-9]*\\.[0-9]+\\.[0-9]+)(-[a-zA-Z0-9.-]+)?(\\+[a-zA-Z0-9.-]+)?$",
172
+ "description": "OSSA specification version"
173
+ },
174
+ "agent": {
175
+ "type": "object",
176
+ "required": ["id", "type"],
177
+ "description": "Agent identification and classification",
178
+ "properties": {
179
+ "id": {
180
+ "type": "string",
181
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
182
+ "minLength": 1,
183
+ "maxLength": 63,
184
+ "description": "Unique agent identifier (DNS-compatible)"
185
+ },
186
+ "type": {
187
+ "type": "string",
188
+ "enum": [
189
+ "orchestrator",
190
+ "worker",
191
+ "specialist",
192
+ "critic",
193
+ "judge",
194
+ "monitor",
195
+ "gateway",
196
+ "governor",
197
+ "integrator",
198
+ "voice"
199
+ ],
200
+ "description": "Agent type classification"
201
+ },
202
+ "compliance": {
203
+ "type": "object",
204
+ "description": "Agent-specific compliance information",
205
+ "properties": {
206
+ "standards": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "string"
210
+ },
211
+ "uniqueItems": true,
212
+ "description": "Compliance standards the agent adheres to"
213
+ },
214
+ "validated": {
215
+ "type": "boolean",
216
+ "default": false,
217
+ "description": "Whether compliance has been validated"
218
+ },
219
+ "validatedAt": {
220
+ "type": "string",
221
+ "format": "date-time",
222
+ "description": "ISO 8601 timestamp of last validation"
223
+ }
224
+ },
225
+ "additionalProperties": false
226
+ }
227
+ },
228
+ "additionalProperties": false
229
+ }
230
+ },
231
+ "additionalProperties": false,
232
+ "examples": [
233
+ {
234
+ "version": "0.3.2",
235
+ "agent": {
236
+ "id": "code-reviewer-agent",
237
+ "type": "specialist",
238
+ "compliance": {
239
+ "standards": ["OSSA-0.3.2", "SOC2-Type2"],
240
+ "validated": true,
241
+ "validatedAt": "2025-01-15T10:30:00Z"
242
+ }
243
+ }
244
+ }
245
+ ]
246
+ },
247
+ "XAgent": {
248
+ "$id": "#/definitions/XAgent",
249
+ "type": "object",
250
+ "title": "x-agent Extension",
251
+ "description": "Root-level extension for agent-specific capabilities, tools, and configuration.",
252
+ "properties": {
253
+ "capabilities": {
254
+ "type": "array",
255
+ "items": {
256
+ "type": "string"
257
+ },
258
+ "uniqueItems": true,
259
+ "description": "List of capabilities this agent provides"
260
+ },
261
+ "tools": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "string"
265
+ },
266
+ "uniqueItems": true,
267
+ "description": "List of tools/MCP servers this agent can use"
268
+ },
269
+ "environment": {
270
+ "type": "object",
271
+ "additionalProperties": true,
272
+ "description": "Environment variables and configuration"
273
+ },
274
+ "rules": {
275
+ "type": "array",
276
+ "items": {
277
+ "type": "string"
278
+ },
279
+ "description": "Behavioral rules and constraints for the agent"
280
+ }
281
+ },
282
+ "additionalProperties": false,
283
+ "examples": [
284
+ {
285
+ "capabilities": ["code-review", "security-scan", "test-generation"],
286
+ "tools": ["mcp://github", "mcp://filesystem"],
287
+ "environment": {
288
+ "MAX_FILE_SIZE": "10MB",
289
+ "TIMEOUT_SECONDS": "300"
290
+ },
291
+ "rules": [
292
+ "Never modify production code directly",
293
+ "Always create feature branches for changes"
294
+ ]
295
+ }
296
+ ]
297
+ },
298
+ "PathItemWithOssaExtensions": {
299
+ "type": "object",
300
+ "description": "OpenAPI Path Item with OSSA operation-level extensions",
301
+ "properties": {
302
+ "get": { "$ref": "#/definitions/OperationWithOssaExtensions" },
303
+ "put": { "$ref": "#/definitions/OperationWithOssaExtensions" },
304
+ "post": { "$ref": "#/definitions/OperationWithOssaExtensions" },
305
+ "delete": { "$ref": "#/definitions/OperationWithOssaExtensions" },
306
+ "options": { "$ref": "#/definitions/OperationWithOssaExtensions" },
307
+ "head": { "$ref": "#/definitions/OperationWithOssaExtensions" },
308
+ "patch": { "$ref": "#/definitions/OperationWithOssaExtensions" },
309
+ "trace": { "$ref": "#/definitions/OperationWithOssaExtensions" }
310
+ },
311
+ "additionalProperties": true
312
+ },
313
+ "OperationWithOssaExtensions": {
314
+ "type": "object",
315
+ "description": "OpenAPI Operation with OSSA extensions",
316
+ "properties": {
317
+ "operationId": {
318
+ "type": "string"
319
+ },
320
+ "summary": {
321
+ "type": "string"
322
+ },
323
+ "description": {
324
+ "type": "string"
325
+ },
326
+ "x-ossa-capability": {
327
+ "$ref": "#/definitions/XOssaCapability"
328
+ },
329
+ "x-ossa-autonomy": {
330
+ "$ref": "#/definitions/XOssaAutonomy"
331
+ },
332
+ "x-ossa-constraints": {
333
+ "$ref": "#/definitions/XOssaConstraints"
334
+ },
335
+ "x-ossa-tools": {
336
+ "$ref": "#/definitions/XOssaTools"
337
+ },
338
+ "x-ossa-llm": {
339
+ "$ref": "#/definitions/XOssaLlm"
340
+ }
341
+ },
342
+ "additionalProperties": true
343
+ },
344
+ "XOssaCapability": {
345
+ "$id": "#/definitions/XOssaCapability",
346
+ "title": "x-ossa-capability Extension",
347
+ "description": "Operation-level extension that links an API operation to an agent capability. Can be a simple string name or a detailed capability object.",
348
+ "oneOf": [
349
+ {
350
+ "type": "string",
351
+ "minLength": 1,
352
+ "description": "Simple capability name"
353
+ },
354
+ {
355
+ "type": "object",
356
+ "required": ["name"],
357
+ "properties": {
358
+ "name": {
359
+ "type": "string",
360
+ "minLength": 1,
361
+ "description": "Capability name"
362
+ },
363
+ "description": {
364
+ "type": "string",
365
+ "description": "Human-readable description of the capability"
366
+ },
367
+ "inputSchema": {
368
+ "type": "object",
369
+ "description": "JSON Schema for capability input"
370
+ },
371
+ "outputSchema": {
372
+ "type": "object",
373
+ "description": "JSON Schema for capability output"
374
+ }
375
+ },
376
+ "additionalProperties": false
377
+ }
378
+ ],
379
+ "examples": [
380
+ "code-review",
381
+ {
382
+ "name": "security-scan",
383
+ "description": "Scans code for security vulnerabilities",
384
+ "inputSchema": {
385
+ "type": "object",
386
+ "properties": {
387
+ "repository": { "type": "string" },
388
+ "branch": { "type": "string" }
389
+ },
390
+ "required": ["repository"]
391
+ },
392
+ "outputSchema": {
393
+ "type": "object",
394
+ "properties": {
395
+ "vulnerabilities": { "type": "array" },
396
+ "severity": { "type": "string" }
397
+ }
398
+ }
399
+ }
400
+ ]
401
+ },
402
+ "XOssaAutonomy": {
403
+ "$id": "#/definitions/XOssaAutonomy",
404
+ "type": "object",
405
+ "title": "x-ossa-autonomy Extension",
406
+ "description": "Operation-level extension that defines the autonomy level and human-in-the-loop requirements for an operation.",
407
+ "required": ["level"],
408
+ "properties": {
409
+ "level": {
410
+ "type": "string",
411
+ "enum": ["supervised", "autonomous", "semi-autonomous"],
412
+ "description": "Autonomy level for this operation. 'supervised' requires human approval, 'autonomous' runs without intervention, 'semi-autonomous' may escalate in certain conditions."
413
+ },
414
+ "approval_required": {
415
+ "type": "boolean",
416
+ "default": false,
417
+ "description": "Whether explicit human approval is required before execution"
418
+ },
419
+ "allowed_actions": {
420
+ "type": "array",
421
+ "items": {
422
+ "type": "string"
423
+ },
424
+ "uniqueItems": true,
425
+ "description": "Whitelist of actions the agent is allowed to perform"
426
+ },
427
+ "blocked_actions": {
428
+ "type": "array",
429
+ "items": {
430
+ "type": "string"
431
+ },
432
+ "uniqueItems": true,
433
+ "description": "Blacklist of actions the agent must never perform"
434
+ }
435
+ },
436
+ "additionalProperties": false,
437
+ "examples": [
438
+ {
439
+ "level": "semi-autonomous",
440
+ "approval_required": true,
441
+ "allowed_actions": ["read", "analyze", "suggest"],
442
+ "blocked_actions": ["delete", "force_push", "merge_to_main"]
443
+ }
444
+ ]
445
+ },
446
+ "XOssaConstraints": {
447
+ "$id": "#/definitions/XOssaConstraints",
448
+ "type": "object",
449
+ "title": "x-ossa-constraints Extension",
450
+ "description": "Operation-level extension for defining cost, token, time, and resource constraints.",
451
+ "properties": {
452
+ "cost": {
453
+ "type": "object",
454
+ "description": "Cost and token usage constraints",
455
+ "properties": {
456
+ "maxTokensPerDay": {
457
+ "type": "integer",
458
+ "minimum": 0,
459
+ "description": "Maximum tokens allowed per day for this operation"
460
+ },
461
+ "maxTokensPerRequest": {
462
+ "type": "integer",
463
+ "minimum": 0,
464
+ "description": "Maximum tokens allowed per single request"
465
+ },
466
+ "maxCostPerDay": {
467
+ "type": "number",
468
+ "minimum": 0,
469
+ "description": "Maximum cost allowed per day (in specified currency)"
470
+ },
471
+ "currency": {
472
+ "type": "string",
473
+ "pattern": "^[A-Z]{3}$",
474
+ "default": "USD",
475
+ "description": "ISO 4217 currency code for cost calculations"
476
+ }
477
+ },
478
+ "additionalProperties": false
479
+ },
480
+ "performance": {
481
+ "type": "object",
482
+ "description": "Performance constraints",
483
+ "properties": {
484
+ "maxLatencySeconds": {
485
+ "type": "number",
486
+ "minimum": 0,
487
+ "description": "Maximum allowed latency in seconds"
488
+ },
489
+ "maxConcurrentRequests": {
490
+ "type": "integer",
491
+ "minimum": 1,
492
+ "description": "Maximum concurrent requests allowed"
493
+ }
494
+ },
495
+ "additionalProperties": false
496
+ },
497
+ "time": {
498
+ "type": "object",
499
+ "description": "Time-based constraints",
500
+ "properties": {
501
+ "maxExecutionTime": {
502
+ "type": "number",
503
+ "minimum": 0,
504
+ "description": "Maximum execution time in seconds"
505
+ }
506
+ },
507
+ "additionalProperties": false
508
+ }
509
+ },
510
+ "additionalProperties": false,
511
+ "examples": [
512
+ {
513
+ "cost": {
514
+ "maxTokensPerDay": 100000,
515
+ "maxTokensPerRequest": 4096,
516
+ "maxCostPerDay": 50.00,
517
+ "currency": "USD"
518
+ },
519
+ "performance": {
520
+ "maxLatencySeconds": 30,
521
+ "maxConcurrentRequests": 10
522
+ },
523
+ "time": {
524
+ "maxExecutionTime": 300
525
+ }
526
+ }
527
+ ]
528
+ },
529
+ "XOssaTools": {
530
+ "$id": "#/definitions/XOssaTools",
531
+ "type": "array",
532
+ "title": "x-ossa-tools Extension",
533
+ "description": "Operation-level extension defining MCP servers or tools required for this operation.",
534
+ "items": {
535
+ "$ref": "#/definitions/XOssaTool"
536
+ },
537
+ "examples": [
538
+ [
539
+ {
540
+ "type": "mcp",
541
+ "server": "mcp://github",
542
+ "namespace": "repo",
543
+ "capabilities": ["read", "write", "pr"]
544
+ },
545
+ {
546
+ "type": "http",
547
+ "server": "https://api.example.com",
548
+ "capabilities": ["query"]
549
+ }
550
+ ]
551
+ ]
552
+ },
553
+ "XOssaTool": {
554
+ "$id": "#/definitions/XOssaTool",
555
+ "type": "object",
556
+ "title": "OSSA Tool Definition",
557
+ "description": "Definition of a single tool or MCP server required by an operation.",
558
+ "required": ["type", "server"],
559
+ "properties": {
560
+ "type": {
561
+ "type": "string",
562
+ "enum": ["mcp", "http", "custom"],
563
+ "description": "Type of tool: 'mcp' for Model Context Protocol servers, 'http' for REST APIs, 'custom' for other integrations"
564
+ },
565
+ "server": {
566
+ "type": "string",
567
+ "description": "Server URL or MCP identifier"
568
+ },
569
+ "namespace": {
570
+ "type": "string",
571
+ "description": "Optional namespace within the tool"
572
+ },
573
+ "capabilities": {
574
+ "type": "array",
575
+ "items": {
576
+ "type": "string"
577
+ },
578
+ "uniqueItems": true,
579
+ "description": "List of capabilities to use from this tool"
580
+ }
581
+ },
582
+ "additionalProperties": false
583
+ },
584
+ "XOssaLlm": {
585
+ "$id": "#/definitions/XOssaLlm",
586
+ "type": "object",
587
+ "title": "x-ossa-llm Extension",
588
+ "description": "Operation-level extension for LLM configuration overrides. Allows specifying which LLM provider and model to use for a specific operation.",
589
+ "required": ["provider", "model"],
590
+ "properties": {
591
+ "provider": {
592
+ "type": "string",
593
+ "enum": ["openai", "anthropic", "google", "azure", "bedrock", "ollama", "custom"],
594
+ "description": "LLM provider to use"
595
+ },
596
+ "model": {
597
+ "type": "string",
598
+ "minLength": 1,
599
+ "description": "Model identifier (e.g., 'claude-sonnet-4-20250514', 'gpt-4-turbo')"
600
+ },
601
+ "temperature": {
602
+ "type": "number",
603
+ "minimum": 0,
604
+ "maximum": 2,
605
+ "default": 0.7,
606
+ "description": "Sampling temperature (0 = deterministic, 2 = maximum creativity)"
607
+ },
608
+ "maxTokens": {
609
+ "type": "integer",
610
+ "minimum": 1,
611
+ "description": "Maximum tokens in the response"
612
+ }
613
+ },
614
+ "additionalProperties": false,
615
+ "examples": [
616
+ {
617
+ "provider": "anthropic",
618
+ "model": "claude-sonnet-4-20250514",
619
+ "temperature": 0.3,
620
+ "maxTokens": 4096
621
+ },
622
+ {
623
+ "provider": "openai",
624
+ "model": "gpt-4-turbo",
625
+ "temperature": 0.7,
626
+ "maxTokens": 8192
627
+ }
628
+ ]
629
+ },
630
+ "XOssaAgentId": {
631
+ "$id": "#/definitions/XOssaAgentId",
632
+ "type": "object",
633
+ "title": "x-ossa-agent-id Extension",
634
+ "description": "Parameter-level extension for agent identification header configuration.",
635
+ "properties": {
636
+ "name": {
637
+ "type": "string",
638
+ "default": "X-OSSA-Agent-ID",
639
+ "description": "Header name for agent identification"
640
+ },
641
+ "description": {
642
+ "type": "string",
643
+ "default": "Unique identifier of the calling OSSA agent",
644
+ "description": "Description of the header parameter"
645
+ },
646
+ "required": {
647
+ "type": "boolean",
648
+ "default": true,
649
+ "description": "Whether the agent ID header is required"
650
+ }
651
+ },
652
+ "additionalProperties": false
653
+ },
654
+ "XOssaVersion": {
655
+ "$id": "#/definitions/XOssaVersion",
656
+ "type": "object",
657
+ "title": "x-ossa-version Extension",
658
+ "description": "Parameter-level extension for OSSA version header configuration.",
659
+ "properties": {
660
+ "name": {
661
+ "type": "string",
662
+ "default": "X-OSSA-Version",
663
+ "description": "Header name for OSSA version"
664
+ },
665
+ "description": {
666
+ "type": "string",
667
+ "default": "OSSA specification version the caller implements",
668
+ "description": "Description of the header parameter"
669
+ },
670
+ "required": {
671
+ "type": "boolean",
672
+ "default": false,
673
+ "description": "Whether the version header is required"
674
+ }
675
+ },
676
+ "additionalProperties": false
677
+ },
678
+ "XOssaCapabilitySchema": {
679
+ "$id": "#/definitions/XOssaCapabilitySchema",
680
+ "type": "object",
681
+ "title": "x-ossa-capability-schema Extension",
682
+ "description": "Schema-level extension for capability schema metadata.",
683
+ "required": ["capabilityName"],
684
+ "properties": {
685
+ "capabilityName": {
686
+ "type": "string",
687
+ "minLength": 1,
688
+ "description": "Name of the capability this schema belongs to"
689
+ },
690
+ "input": {
691
+ "type": "boolean",
692
+ "default": false,
693
+ "description": "Whether this schema is for capability input"
694
+ },
695
+ "output": {
696
+ "type": "boolean",
697
+ "default": false,
698
+ "description": "Whether this schema is for capability output"
699
+ },
700
+ "validation": {
701
+ "type": "object",
702
+ "description": "Validation configuration",
703
+ "properties": {
704
+ "required": {
705
+ "type": "boolean",
706
+ "default": false,
707
+ "description": "Whether validation is required"
708
+ },
709
+ "strict": {
710
+ "type": "boolean",
711
+ "default": false,
712
+ "description": "Whether strict validation mode is enabled"
713
+ }
714
+ },
715
+ "additionalProperties": false
716
+ }
717
+ },
718
+ "additionalProperties": false
719
+ }
720
+ },
721
+ "additionalProperties": true,
722
+ "examples": [
723
+ {
724
+ "openapi": "3.1.0",
725
+ "info": {
726
+ "title": "Code Review Agent API",
727
+ "version": "1.0.0",
728
+ "description": "API for automated code review agent"
729
+ },
730
+ "x-ossa-metadata": {
731
+ "version": "0.3.2",
732
+ "compliance": {
733
+ "level": "standard",
734
+ "frameworks": ["SOC2"]
735
+ },
736
+ "security": {
737
+ "classification": "internal",
738
+ "authentication": "required"
739
+ },
740
+ "observability": {
741
+ "tracing": true,
742
+ "metrics": true,
743
+ "logging": true
744
+ }
745
+ },
746
+ "x-ossa": {
747
+ "version": "0.3.2",
748
+ "agent": {
749
+ "id": "code-reviewer",
750
+ "type": "specialist",
751
+ "compliance": {
752
+ "standards": ["OSSA-0.3.2"],
753
+ "validated": true
754
+ }
755
+ }
756
+ },
757
+ "x-agent": {
758
+ "capabilities": ["code-review", "security-scan"],
759
+ "tools": ["mcp://github", "mcp://filesystem"],
760
+ "rules": ["Never approve your own code changes"]
761
+ },
762
+ "paths": {
763
+ "/review": {
764
+ "post": {
765
+ "operationId": "reviewCode",
766
+ "summary": "Review code changes",
767
+ "x-ossa-capability": {
768
+ "name": "code-review",
769
+ "description": "Analyzes code changes for quality and best practices"
770
+ },
771
+ "x-ossa-autonomy": {
772
+ "level": "semi-autonomous",
773
+ "approval_required": false,
774
+ "blocked_actions": ["merge", "force_push"]
775
+ },
776
+ "x-ossa-constraints": {
777
+ "cost": {
778
+ "maxTokensPerRequest": 8192,
779
+ "maxCostPerDay": 100.00,
780
+ "currency": "USD"
781
+ },
782
+ "time": {
783
+ "maxExecutionTime": 60
784
+ }
785
+ },
786
+ "x-ossa-tools": [
787
+ {
788
+ "type": "mcp",
789
+ "server": "mcp://github",
790
+ "capabilities": ["read_pr", "add_comment"]
791
+ }
792
+ ],
793
+ "x-ossa-llm": {
794
+ "provider": "anthropic",
795
+ "model": "claude-sonnet-4-20250514",
796
+ "temperature": 0.2,
797
+ "maxTokens": 4096
798
+ }
799
+ }
800
+ }
801
+ }
802
+ }
803
+ ]
804
+ }