@bluefly/openstandardagents 0.4.9 → 0.5.0

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 (125) hide show
  1. package/.version.json +3 -3
  2. package/CHANGELOG.md +8 -8
  3. package/README.md +68 -58
  4. package/bin/postinstall +0 -0
  5. package/dist/.version.json +3 -3
  6. package/dist/adapters/claude-code/adapter.js +2 -2
  7. package/dist/adapters/docker/generators.js +19 -19
  8. package/dist/adapters/drupal/generator.js +76 -76
  9. package/dist/adapters/openai-agents/adapter.js +2 -2
  10. package/dist/cli/schema-driven/schema-loader.js +5 -5
  11. package/dist/mcp-server/__tests__/mcp-server.spec.js +20 -11
  12. package/dist/mcp-server/index.js +0 -0
  13. package/dist/package.json +24 -11
  14. package/dist/services/export/langchain/langchain-exporter.js +2 -2
  15. package/dist/services/export/langchain/memory-generator.js +2 -2
  16. package/dist/services/export/testing/test-generator.js +1 -1
  17. package/dist/services/taxonomy-service.d.ts +3 -3
  18. package/dist/skills/test-skill/package.json +1 -1
  19. package/dist/spec/extensions/role-manifest.md +188 -0
  20. package/dist/spec/v0.4/extensions/mcp/README.md +1 -1
  21. package/dist/spec/v0.5/agent.schema.json +2 -1
  22. package/dist/spec/v0.5/extensions/mcp/README.md +1 -1
  23. package/dist/spec/v0.5/role.schema.json +268 -0
  24. package/dist/types/index.d.ts +2 -0
  25. package/dist/types/index.js +2 -0
  26. package/dist/types/role.d.ts +126 -0
  27. package/dist/types/role.js +38 -0
  28. package/dist/validation/validator.js +1 -1
  29. package/examples/agents/01-customer-support-bot/agent.ossa.yaml +24 -31
  30. package/examples/agents/05-sales-assistant/agent.ossa.yaml +35 -23
  31. package/examples/agents/07-research-assistant/agent.ossa.yaml +27 -21
  32. package/examples/agents/10-meeting-assistant/agent.ossa.yaml +27 -35
  33. package/examples/agents/security-audit-agent.ossa.yaml +234 -0
  34. package/examples/agentscope/react-assistant/agent.ossa.yaml +36 -32
  35. package/examples/drupal/content-moderator.ossa.yaml +2 -2
  36. package/examples/drupal/drupal-contributor.ossa.yaml +247 -0
  37. package/examples/export/langchain/production-agent-with-memory/README.md +1 -1
  38. package/examples/export/langchain/production-agent-with-memory/agent.ossa.yaml +13 -23
  39. package/examples/export/langchain/production-agent-with-streaming/agent.ossa.yaml +1 -15
  40. package/examples/export/langchain/production-agent-with-tools/agent.ossa.yaml +28 -29
  41. package/examples/getting-started/01-minimal-agent.ossa.yaml +1 -1
  42. package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
  43. package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
  44. package/examples/getting-started/04-agent-with-messaging.ossa.yaml +1 -1
  45. package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
  46. package/examples/getting-started/README.md +3 -3
  47. package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
  48. package/examples/gitlab-agents/gitlab-ci-agent.ossa.yaml +221 -0
  49. package/examples/hierarchical-agent.ossa.yaml +10 -53
  50. package/examples/kagent/ossa-kagent-anthropic.ossa.yaml +2 -25
  51. package/examples/kagent/ossa-kagent-mcp-tools.ossa.yaml +2 -30
  52. package/examples/kagent/ossa-kagent-multi-tool.ossa.yaml +2 -18
  53. package/examples/kagent/ossa-kagent-poc.ossa.yaml +2 -16
  54. package/examples/pipeline-agent.ossa.yaml +3 -3
  55. package/examples/platform-specific/claude-code-subagent.yaml +1 -1
  56. package/examples/platform-specific/cursor-coding-agent.yaml +1 -1
  57. package/examples/platform-specific/warp-terminal-agent.yaml +1 -1
  58. package/examples/production-ready/01-customer-support-bot/agent.ossa.yaml +24 -31
  59. package/examples/production-ready/05-sales-assistant/agent.ossa.yaml +35 -23
  60. package/examples/production-ready/07-research-assistant/agent.ossa.yaml +27 -19
  61. package/examples/production-ready/10-meeting-assistant/agent.ossa.yaml +27 -35
  62. package/examples/reference-implementations/python-client/examples/basic_usage.py +0 -0
  63. package/examples/reference-implementations/python-client/examples/publish_agent.py +0 -0
  64. package/examples/roles/drupal-developer.role.yaml +37 -0
  65. package/examples/roles/platform-operator.role.yaml +28 -0
  66. package/examples/roles/security-auditor.role.yaml +27 -0
  67. package/examples/swarm-agent.ossa.yaml +13 -51
  68. package/examples/team-agent.ossa.yaml +12 -61
  69. package/examples/team-lead-teammate.ossa.yaml +12 -17
  70. package/openapi/agent-communication.yaml +260 -212
  71. package/openapi/agent-crud.yaml +217 -187
  72. package/openapi/agent-discovery.yaml +119 -81
  73. package/openapi/agent-identity.yaml +219 -187
  74. package/openapi/agent-taxonomy.yaml +95 -38
  75. package/openapi/agents-md-service.yaml +103 -30
  76. package/openapi/cli/openapi.yaml +147 -40
  77. package/openapi/core/ossa-core-api.openapi.yaml +327 -271
  78. package/openapi/core/ossa-registry-api.openapi.yaml +298 -235
  79. package/openapi/core/ossa-registry.openapi.yaml +299 -159
  80. package/openapi/core/unified-agent-gateway.openapi.yaml +234 -170
  81. package/openapi/daemon-api.openapi.yaml +323 -181
  82. package/openapi/dev-cli/openapi.yaml +137 -113
  83. package/openapi/github-sync.yaml +62 -19
  84. package/openapi/marketplace-plugin.openapi.yaml +539 -466
  85. package/openapi/ossa-api.openapi.yaml +354 -213
  86. package/openapi/ossa-cli-enhancements.openapi.yaml +108 -89
  87. package/openapi/ossa-cli.yaml +260 -184
  88. package/openapi/protocols/sse-streams.yaml +66 -74
  89. package/openapi/protocols/websocket-events.yaml +61 -54
  90. package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +37 -20
  91. package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +35 -23
  92. package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +29 -18
  93. package/openapi/reference-implementations/critic-agent-api.openapi.yaml +45 -19
  94. package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +30 -24
  95. package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +101 -50
  96. package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +33 -22
  97. package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +20 -16
  98. package/openapi/reference-implementations/governor-agent-api.openapi.yaml +41 -23
  99. package/openapi/reference-implementations/helm-generator.openapi.yaml +88 -46
  100. package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +30 -20
  101. package/openapi/reference-implementations/judge-agent-api.openapi.yaml +22 -16
  102. package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +32 -18
  103. package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +32 -21
  104. package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +34 -21
  105. package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +49 -27
  106. package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +27 -19
  107. package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +427 -293
  108. package/openapi/reference-implementations/worker-agent-api.openapi.yaml +34 -23
  109. package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +35 -21
  110. package/openapi/release-automation.openapi.yaml +47 -13
  111. package/openapi/schemas/common/agent.yaml +30 -29
  112. package/openapi/schemas/common/errors.yaml +13 -3
  113. package/openapi/schemas/common/metadata.yaml +22 -7
  114. package/openapi/schemas/common/pagination.yaml +18 -6
  115. package/openapi/schemas/common/security.yaml +13 -5
  116. package/openapi/schemas/index.yaml +49 -42
  117. package/openapi/uadp-asyncapi.yaml +4 -2
  118. package/openapi/uadp-openapi.yaml +243 -165
  119. package/openapi/version-management.openapi.yaml +142 -135
  120. package/package.json +114 -103
  121. package/spec/extensions/role-manifest.md +188 -0
  122. package/spec/v0.4/extensions/mcp/README.md +1 -1
  123. package/spec/v0.5/agent.schema.json +2 -1
  124. package/spec/v0.5/extensions/mcp/README.md +1 -1
  125. package/spec/v0.5/role.schema.json +268 -0
@@ -5,7 +5,9 @@ info:
5
5
  description: |
6
6
  Ultimate decision-making agent for conflict resolution and final arbitration.
7
7
  Makes decisions, resolves disputes, and prioritizes requests.
8
-
8
+ contact:
9
+ name: Bluefly OSSA Team
10
+ url: https://gitlab.com/blueflyio/ossa/openstandardagents
9
11
  x-ossa-metadata:
10
12
  version: 0.2.5-RC
11
13
  compliance:
@@ -16,37 +18,38 @@ x-ossa-metadata:
16
18
  governance:
17
19
  approved: true
18
20
  approvedBy: Architecture Council
19
- approvalDate: "2024-01-15"
20
-
21
+ approvalDate: 2024-01-15
22
+ observability:
23
+ tracing: true
24
+ metrics: true
25
+ logging: true
21
26
  x-ossa:
22
27
  version: 0.2.5-RC
23
28
  agent:
24
- id: decision-arbitration-judge
29
+ id: reference-implementations-judge-agent-api
25
30
  type: judge
26
31
  compliance:
27
32
  standards:
28
33
  - openapi-first
29
34
  - type-safe
30
35
  validated: true
31
- validatedAt: "2024-01-15T10:00:00Z"
32
-
36
+ validatedAt: 2024-01-15T10:00:00Z
33
37
  servers:
34
38
  - url: https://judge.platform.com/api/v1
35
39
  description: Production
36
-
37
40
  tags:
38
41
  - name: arbitration
39
42
  description: Arbitration operations
40
43
  - name: decisions
41
44
  description: Decision-making operations
42
-
43
45
  paths:
44
46
  /arbitrate:
45
47
  post:
46
48
  summary: Arbitrate conflict
47
49
  description: Resolve conflicts between agents or requests using consensus algorithm
48
50
  operationId: arbitrateConflict
49
- tags: [arbitration]
51
+ tags:
52
+ - arbitration
50
53
  x-ossa-capability: arbitrate-conflicts
51
54
  x-ossa-autonomy:
52
55
  level: supervised
@@ -61,7 +64,9 @@ paths:
61
64
  application/json:
62
65
  schema:
63
66
  type: object
64
- required: [conflict, participants]
67
+ required:
68
+ - conflict
69
+ - participants
65
70
  properties:
66
71
  conflict:
67
72
  type: object
@@ -85,7 +90,7 @@ paths:
85
90
  risk_assessment:
86
91
  type: number
87
92
  responses:
88
- '200':
93
+ "200":
89
94
  description: Arbitration completed
90
95
  content:
91
96
  application/json:
@@ -102,13 +107,13 @@ paths:
102
107
  type: array
103
108
  items:
104
109
  type: object
105
-
106
110
  /decide:
107
111
  post:
108
112
  summary: Make decision
109
113
  description: Make a decision based on weighted criteria and priorities
110
114
  operationId: makeDecision
111
- tags: [decisions]
115
+ tags:
116
+ - decisions
112
117
  x-ossa-capability: make-decisions
113
118
  x-ossa-autonomy:
114
119
  level: supervised
@@ -119,7 +124,9 @@ paths:
119
124
  application/json:
120
125
  schema:
121
126
  type: object
122
- required: [options, criteria]
127
+ required:
128
+ - options
129
+ - criteria
123
130
  properties:
124
131
  options:
125
132
  type: array
@@ -130,7 +137,7 @@ paths:
130
137
  weights:
131
138
  type: object
132
139
  responses:
133
- '200':
140
+ "200":
134
141
  description: Decision made
135
142
  content:
136
143
  application/json:
@@ -145,4 +152,3 @@ paths:
145
152
  type: string
146
153
  confidence:
147
154
  type: number
148
-
@@ -5,7 +5,9 @@ info:
5
5
  description: |
6
6
  Autonomous Kubernetes cluster troubleshooting agent with diagnostic capabilities.
7
7
  Diagnoses pod failures, network issues, resource constraints, and configuration problems.
8
-
8
+ contact:
9
+ name: Bluefly OSSA Team
10
+ url: https://gitlab.com/blueflyio/ossa/openstandardagents
9
11
  x-ossa-metadata:
10
12
  version: 0.2.5-RC
11
13
  compliance:
@@ -13,25 +15,26 @@ x-ossa-metadata:
13
15
  frameworks:
14
16
  - OSSA
15
17
  - OpenAPI 3.1
16
-
18
+ observability:
19
+ tracing: true
20
+ metrics: true
21
+ logging: true
17
22
  x-ossa:
18
23
  version: 0.2.5-RC
19
24
  agent:
20
- id: k8s-troubleshooter
21
- type: worker
25
+ id: reference-implementations-k8s-troubleshooter-api
26
+ type: specialist
22
27
  compliance:
23
28
  standards:
24
29
  - openapi-first
25
30
  - type-safe
26
31
  validated: true
27
- validatedAt: "2024-01-15T10:00:00Z"
28
-
32
+ validatedAt: 2024-01-15T10:00:00Z
29
33
  servers:
30
34
  - url: https://troubleshooter.platform.com/api/v1
31
35
  description: Production
32
36
  - url: http://k8s-troubleshooter:3000/api/v1
33
37
  description: Kubernetes internal
34
-
35
38
  tags:
36
39
  - name: diagnostics
37
40
  description: Diagnostic operations
@@ -39,7 +42,6 @@ tags:
39
42
  description: Pod operations
40
43
  - name: cluster
41
44
  description: Cluster operations
42
-
43
45
  paths:
44
46
  /diagnose/pod:
45
47
  post:
@@ -48,7 +50,9 @@ paths:
48
50
  Analyzes a Kubernetes pod to identify failures, configuration issues,
49
51
  and resource constraints. Uses MCP tools to gather pod logs, events, and metrics.
50
52
  operationId: diagnosePod
51
- tags: [diagnostics, pods]
53
+ tags:
54
+ - diagnostics
55
+ - pods
52
56
  x-ossa-capability: pod-diagnostics
53
57
  x-ossa-autonomy:
54
58
  level: supervised
@@ -81,7 +85,9 @@ paths:
81
85
  application/json:
82
86
  schema:
83
87
  type: object
84
- required: [pod_name, namespace]
88
+ required:
89
+ - pod_name
90
+ - namespace
85
91
  properties:
86
92
  pod_name:
87
93
  type: string
@@ -95,7 +101,7 @@ paths:
95
101
  default: true
96
102
  description: Whether to include pod logs in diagnosis
97
103
  responses:
98
- '200':
104
+ "200":
99
105
  description: Diagnosis completed
100
106
  content:
101
107
  application/json:
@@ -104,7 +110,10 @@ paths:
104
110
  properties:
105
111
  status:
106
112
  type: string
107
- enum: [healthy, degraded, failed]
113
+ enum:
114
+ - healthy
115
+ - degraded
116
+ - failed
108
117
  issues:
109
118
  type: array
110
119
  items:
@@ -112,7 +121,10 @@ paths:
112
121
  properties:
113
122
  severity:
114
123
  type: string
115
- enum: [critical, warning, info]
124
+ enum:
125
+ - critical
126
+ - warning
127
+ - info
116
128
  message:
117
129
  type: string
118
130
  resource:
@@ -129,19 +141,19 @@ paths:
129
141
  format: date-time
130
142
  execution_time_ms:
131
143
  type: integer
132
-
133
144
  /cluster/health:
134
145
  get:
135
146
  summary: Check cluster health
136
147
  description: Perform comprehensive cluster health check
137
148
  operationId: checkClusterHealth
138
- tags: [cluster]
149
+ tags:
150
+ - cluster
139
151
  x-ossa-capability: cluster-diagnostics
140
152
  x-ossa-autonomy:
141
153
  level: autonomous
142
154
  approval_required: false
143
155
  responses:
144
- '200':
156
+ "200":
145
157
  description: Cluster health status
146
158
  content:
147
159
  application/json:
@@ -150,7 +162,10 @@ paths:
150
162
  properties:
151
163
  status:
152
164
  type: string
153
- enum: [healthy, degraded, unhealthy]
165
+ enum:
166
+ - healthy
167
+ - degraded
168
+ - unhealthy
154
169
  nodes:
155
170
  type: array
156
171
  items:
@@ -164,4 +179,3 @@ paths:
164
179
  type: array
165
180
  items:
166
181
  type: string
167
-
@@ -5,7 +5,9 @@ info:
5
5
  description: |
6
6
  LangChain agent with tool chain integration.
7
7
  Uses tools to accomplish tasks with memory and chain capabilities.
8
-
8
+ contact:
9
+ name: Bluefly OSSA Team
10
+ url: https://gitlab.com/blueflyio/ossa/openstandardagents
9
11
  x-ossa-metadata:
10
12
  version: 0.2.5-RC
11
13
  compliance:
@@ -14,35 +16,36 @@ x-ossa-metadata:
14
16
  - OSSA
15
17
  - OpenAPI 3.1
16
18
  - LangChain
17
-
19
+ observability:
20
+ tracing: true
21
+ metrics: true
22
+ logging: true
18
23
  x-ossa:
19
24
  version: 0.2.5-RC
20
25
  agent:
21
- id: langchain-agent
22
- type: worker
26
+ id: reference-implementations-langchain-agent-api
27
+ type: specialist
23
28
  compliance:
24
29
  standards:
25
30
  - openapi-first
26
31
  validated: true
27
- validatedAt: "2024-01-15T10:00:00Z"
28
-
32
+ validatedAt: 2024-01-15T10:00:00Z
29
33
  servers:
30
34
  - url: http://localhost:3000
31
35
  description: Local development
32
-
33
36
  tags:
34
37
  - name: tasks
35
38
  description: Task execution operations
36
39
  - name: tools
37
40
  description: Tool operations
38
-
39
41
  paths:
40
42
  /execute:
41
43
  post:
42
44
  summary: Execute task with tools
43
45
  description: Execute a task using LangChain agent with available tools
44
46
  operationId: executeTask
45
- tags: [tasks]
47
+ tags:
48
+ - tasks
46
49
  x-ossa-capability: execute_task
47
50
  x-ossa-autonomy:
48
51
  level: autonomous
@@ -57,7 +60,8 @@ paths:
57
60
  application/json:
58
61
  schema:
59
62
  type: object
60
- required: [task]
63
+ required:
64
+ - task
61
65
  properties:
62
66
  task:
63
67
  type: string
@@ -71,7 +75,7 @@ paths:
71
75
  type: object
72
76
  description: Additional context
73
77
  responses:
74
- '200':
78
+ "200":
75
79
  description: Task executed
76
80
  content:
77
81
  application/json:
@@ -91,13 +95,13 @@ paths:
91
95
  type: string
92
96
  memory:
93
97
  type: object
94
-
95
98
  /tools/calculator:
96
99
  post:
97
100
  summary: Calculator tool
98
101
  description: Perform mathematical calculations
99
102
  operationId: calculator
100
- tags: [tools]
103
+ tags:
104
+ - tools
101
105
  x-ossa-capability: calculator
102
106
  x-ossa-autonomy:
103
107
  level: autonomous
@@ -108,17 +112,24 @@ paths:
108
112
  application/json:
109
113
  schema:
110
114
  type: object
111
- required: [operation, a, b]
115
+ required:
116
+ - operation
117
+ - a
118
+ - b
112
119
  properties:
113
120
  operation:
114
121
  type: string
115
- enum: [add, subtract, multiply, divide]
122
+ enum:
123
+ - add
124
+ - subtract
125
+ - multiply
126
+ - divide
116
127
  a:
117
128
  type: number
118
129
  b:
119
130
  type: number
120
131
  responses:
121
- '200':
132
+ "200":
122
133
  description: Calculation result
123
134
  content:
124
135
  application/json:
@@ -127,13 +138,13 @@ paths:
127
138
  properties:
128
139
  result:
129
140
  type: number
130
-
131
141
  /tools/search:
132
142
  post:
133
143
  summary: Web search tool
134
144
  description: Search the web for information
135
145
  operationId: webSearch
136
- tags: [tools]
146
+ tags:
147
+ - tools
137
148
  x-ossa-capability: web_search
138
149
  x-ossa-autonomy:
139
150
  level: autonomous
@@ -144,13 +155,14 @@ paths:
144
155
  application/json:
145
156
  schema:
146
157
  type: object
147
- required: [query]
158
+ required:
159
+ - query
148
160
  properties:
149
161
  query:
150
162
  type: string
151
163
  description: Search query
152
164
  responses:
153
- '200':
165
+ "200":
154
166
  description: Search results
155
167
  content:
156
168
  application/json:
@@ -168,4 +180,3 @@ paths:
168
180
  type: string
169
181
  snippet:
170
182
  type: string
171
-
@@ -5,7 +5,9 @@ info:
5
5
  description: |
6
6
  Real-time monitoring agent for system health, performance, and resource utilization.
7
7
  Collects metrics, detects anomalies, and generates alerts.
8
-
8
+ contact:
9
+ name: Bluefly OSSA Team
10
+ url: https://gitlab.com/blueflyio/ossa/openstandardagents
9
11
  x-ossa-metadata:
10
12
  version: 0.2.5-RC
11
13
  compliance:
@@ -13,23 +15,24 @@ x-ossa-metadata:
13
15
  frameworks:
14
16
  - OSSA
15
17
  - OpenAPI 3.1
16
-
18
+ observability:
19
+ tracing: true
20
+ metrics: true
21
+ logging: true
17
22
  x-ossa:
18
23
  version: 0.2.5-RC
19
24
  agent:
20
- id: system-performance-monitor
25
+ id: reference-implementations-monitor-agent-api
21
26
  type: monitor
22
27
  compliance:
23
28
  standards:
24
29
  - openapi-first
25
30
  - type-safe
26
31
  validated: true
27
- validatedAt: "2024-01-15T10:00:00Z"
28
-
32
+ validatedAt: 2024-01-15T10:00:00Z
29
33
  servers:
30
34
  - url: https://monitor.platform.com/api/v1
31
35
  description: Production
32
-
33
36
  tags:
34
37
  - name: metrics
35
38
  description: Metrics collection operations
@@ -37,14 +40,14 @@ tags:
37
40
  description: Health check operations
38
41
  - name: alerts
39
42
  description: Alerting operations
40
-
41
43
  paths:
42
44
  /metrics/collect:
43
45
  post:
44
46
  summary: Collect metrics
45
47
  description: Collect system metrics from specified sources
46
48
  operationId: collectMetrics
47
- tags: [metrics]
49
+ tags:
50
+ - metrics
48
51
  x-ossa-capability: collect-metrics
49
52
  x-ossa-autonomy:
50
53
  level: autonomous
@@ -55,7 +58,8 @@ paths:
55
58
  application/json:
56
59
  schema:
57
60
  type: object
58
- required: [sources]
61
+ required:
62
+ - sources
59
63
  properties:
60
64
  sources:
61
65
  type: array
@@ -66,7 +70,7 @@ paths:
66
70
  items:
67
71
  type: string
68
72
  responses:
69
- '200':
73
+ "200":
70
74
  description: Metrics collected
71
75
  content:
72
76
  application/json:
@@ -87,13 +91,13 @@ paths:
87
91
  format: date-time
88
92
  labels:
89
93
  type: object
90
-
91
94
  /health/check:
92
95
  get:
93
96
  summary: Check system health
94
97
  description: Perform health check on system components
95
98
  operationId: checkHealth
96
- tags: [health]
99
+ tags:
100
+ - health
97
101
  x-ossa-capability: check-health
98
102
  x-ossa-autonomy:
99
103
  level: autonomous
@@ -105,7 +109,7 @@ paths:
105
109
  type: string
106
110
  description: Specific component to check
107
111
  responses:
108
- '200':
112
+ "200":
109
113
  description: Health status
110
114
  content:
111
115
  application/json:
@@ -114,7 +118,10 @@ paths:
114
118
  properties:
115
119
  status:
116
120
  type: string
117
- enum: [healthy, degraded, unhealthy]
121
+ enum:
122
+ - healthy
123
+ - degraded
124
+ - unhealthy
118
125
  components:
119
126
  type: array
120
127
  items:
@@ -127,13 +134,13 @@ paths:
127
134
  last_check:
128
135
  type: string
129
136
  format: date-time
130
-
131
137
  /alerts/generate:
132
138
  post:
133
139
  summary: Generate alert
134
140
  description: Generate alert based on threshold violations or anomalies
135
141
  operationId: generateAlert
136
- tags: [alerts]
142
+ tags:
143
+ - alerts
137
144
  x-ossa-capability: generate-alerts
138
145
  x-ossa-autonomy:
139
146
  level: autonomous
@@ -144,11 +151,16 @@ paths:
144
151
  application/json:
145
152
  schema:
146
153
  type: object
147
- required: [severity, message]
154
+ required:
155
+ - severity
156
+ - message
148
157
  properties:
149
158
  severity:
150
159
  type: string
151
- enum: [critical, warning, info]
160
+ enum:
161
+ - critical
162
+ - warning
163
+ - info
152
164
  message:
153
165
  type: string
154
166
  metric:
@@ -156,7 +168,7 @@ paths:
156
168
  threshold:
157
169
  type: object
158
170
  responses:
159
- '200':
171
+ "200":
160
172
  description: Alert generated
161
173
  content:
162
174
  application/json:
@@ -167,5 +179,6 @@ paths:
167
179
  type: string
168
180
  status:
169
181
  type: string
170
- enum: [fired, resolved]
171
-
182
+ enum:
183
+ - fired
184
+ - resolved