-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathai-catalog.schema.json
More file actions
235 lines (235 loc) · 8.01 KB
/
Copy pathai-catalog.schema.json
File metadata and controls
235 lines (235 loc) · 8.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ards-project/ard-spec/main/spec/schemas/ai-catalog.schema.json",
"title": "AICatalogManifest",
"description": "JSON Schema for the ai-catalog.json capability manifest, defining how AI artifacts are advertised.",
"type": "object",
"required": ["specVersion", "entries"],
"properties": {
"specVersion": {
"type": "string",
"description": "Version of the ai-catalog specification used in this manifest.",
"enum": ["1.0"]
},
"host": {
"type": "object",
"description": "Information about the catalog publisher or hosting entity.",
"required": ["displayName"],
"properties": {
"displayName": {
"type": "string",
"description": "Human-readable name of the host."
},
"identifier": {
"type": "string",
"description": "Cryptographic or verifiable identifier of the host (e.g. did:web:domain.com)."
},
"documentationUrl": {
"type": "string",
"format": "uri",
"description": "URL to publisher documentation."
},
"logoUrl": {
"type": "string",
"format": "uri",
"description": "URL to the publisher's logo image."
},
"trustManifest": {
"$ref": "#/$defs/trustManifest"
}
},
"additionalProperties": false
},
"entries": {
"type": "array",
"description": "List of AI agent or capability catalog entries.",
"items": {
"$ref": "#/$defs/catalogEntry"
}
}
},
"additionalProperties": false,
"$defs": {
"catalogEntry": {
"type": "object",
"description": "A single AI capability entry within the catalog.",
"required": ["identifier", "displayName", "type"],
"oneOf": [
{
"required": ["url"],
"not": { "required": ["data"] }
},
{
"required": ["data"],
"not": { "required": ["url"] }
}
],
"properties": {
"identifier": {
"type": "string",
"pattern": "^urn:air:[a-zA-Z0-9.-]+(:[a-zA-Z0-9._-]+)+$",
"description": "RFC 8141-compliant unique logical URN formatted as: urn:air:<publisher>:<namespace>:<agent-name>"
},
"displayName": {
"type": "string",
"description": "Human-friendly display name."
},
"type": {
"type": "string",
"description": "IANA Media Type indicating the specific protocol wrapper or payload structure (e.g. application/mcp-server-card+json)."
},
"url": {
"type": "string",
"format": "uri",
"description": "HTTP URL reference to retrieve the full artifact document."
},
"data": {
"type": "object",
"description": "Embedded JSON object containing the complete artifact specification inline."
},
"description": {
"type": "string",
"description": "Brief natural-language description of the capability."
},
"tags": {
"type": "array",
"items": { "type": "string" },
"description": "Tags or keywords for basic categorizing and filtering."
},
"capabilities": {
"type": "array",
"items": { "type": "string" },
"description": "Explicit high-performance indexing tags representing skills, tools, or functions (e.g. ['WeatherTool', 'ForecastTool'])."
},
"representativeQueries": {
"type": "array",
"minItems": 2,
"maxItems": 5,
"items": { "type": "string" },
"description": "Representative natural-language search queries used for indexing and vector embedding generation."
},
"version": {
"type": "string",
"description": "Semantic version of the capability."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp of the last modification."
},
"metadata": {
"type": "object",
"description": "Arbitrary key-value pairs for custom extensions.",
"additionalProperties": {
"type": ["string", "number", "boolean", "null"]
}
},
"trustManifest": {
"$ref": "#/$defs/trustManifest"
}
}
},
"trustManifest": {
"type": "object",
"description": "Zero-trust security, identity, and compliance envelope metadata.",
"required": ["identity"],
"properties": {
"identity": {
"type": "string",
"description": "Globally unique cryptographic workload identifier principal (e.g. SPIFFE ID or DID URI)."
},
"identityType": {
"type": "string",
"enum": ["spiffe", "did", "https", "other"],
"description": "Hint representing the cryptographic format of the identity."
},
"trustSchema": {
"$ref": "#/$defs/trustSchema"
},
"attestations": {
"type": "array",
"description": "List of verifiable claims (SOC 2 audits, compliance statements, HIPAA checks).",
"items": {
"type": "object",
"required": ["type", "uri", "mediaType"],
"properties": {
"type": {
"type": "string",
"description": "Attestation standard type (e.g., SOC2-Type2, HIPAA)."
},
"uri": {
"type": "string",
"format": "uri",
"description": "Location of the attestation certificate or document."
},
"mediaType": {
"type": "string",
"description": "Format of the attestation document (e.g. application/pdf, text/html)."
},
"digest": {
"type": "string",
"description": "Cryptographic sha256 digest for document integrity verification."
}
},
"additionalProperties": false
}
},
"provenance": {
"type": "array",
"description": "Cryptographic lineage trail of the artifact.",
"items": {
"type": "object",
"required": ["relation", "sourceId"],
"properties": {
"relation": {
"type": "string",
"enum": ["derivedFrom", "publishedFrom", "copiedFrom"],
"description": "Lineage relation."
},
"sourceId": {
"type": "string",
"description": "Identifier of the source artifact."
},
"sourceDigest": {
"type": "string",
"description": "Optional sha256 digest for safety."
}
},
"additionalProperties": false
}
},
"signature": {
"type": "string",
"description": "Detached JWS signature generated over the fields of the trustManifest."
}
},
"additionalProperties": false
},
"trustSchema": {
"type": "object",
"description": "Describes the trust framework applied to the artifact.",
"required": ["identifier", "version"],
"properties": {
"identifier": {
"type": "string",
"description": "Unique identifier of the trust schema/framework (e.g. URN)."
},
"version": {
"type": "string",
"description": "Version of the trust schema/framework."
},
"governanceUri": {
"type": "string",
"format": "uri",
"description": "URI pointing to the governance policy document."
},
"verificationMethods": {
"type": "array",
"items": { "type": "string" },
"description": "Verification methods supported by the schema (e.g., ['did', 'x509', 'dns-01'])."
}
},
"additionalProperties": false
}
}
}