forked from microsoft/agent-governance-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistration.json
More file actions
378 lines (378 loc) · 11 KB
/
registration.json
File metadata and controls
378 lines (378 loc) · 11 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://agentmesh.io/schemas/registration/v1",
"title": "AgentMesh Registration Handshake Schema",
"description": "JSON Schema for agent registration with the AgentMesh Identity Core",
"version": "1.0.0",
"definitions": {
"RegistrationRequest": {
"type": "object",
"required": ["agent_name", "public_key", "sponsor_email", "capabilities"],
"properties": {
"agent_name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Human-readable agent name"
},
"agent_description": {
"type": "string",
"maxLength": 1000,
"description": "Optional agent description"
},
"organization": {
"type": "string",
"description": "Organization name"
},
"organization_id": {
"type": "string",
"description": "Organization identifier"
},
"public_key": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "Ed25519 public key (base64 encoded)"
},
"key_algorithm": {
"type": "string",
"enum": ["Ed25519", "RSA-2048", "ECDSA-P256"],
"default": "Ed25519",
"description": "Public key algorithm"
},
"sponsor_email": {
"type": "string",
"format": "email",
"description": "Email of human sponsor"
},
"sponsor_id": {
"type": "string",
"description": "Unique sponsor identifier"
},
"sponsor_signature": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "Sponsor's signature over agent details (base64)"
},
"capabilities": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z_]+:[a-z_]+$"
},
"minItems": 1,
"uniqueItems": true,
"description": "Agent capabilities (e.g., ['read:data', 'write:reports'])"
},
"supported_protocols": {
"type": "array",
"items": {
"type": "string",
"enum": ["a2a", "mcp", "iatp", "acp"]
},
"uniqueItems": true,
"description": "Supported protocols"
},
"parent_did": {
"type": "string",
"pattern": "^did:mesh:[a-z0-9]{32}$",
"description": "Parent agent DID if this is a delegated agent"
},
"parent_signature": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "Parent's signature for delegation (base64)"
},
"metadata": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Custom metadata key-value pairs"
},
"requested_at": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp of request"
}
}
},
"RegistrationResponse": {
"type": "object",
"required": ["agent_did", "agent_name", "initial_trust_score", "status"],
"properties": {
"agent_did": {
"type": "string",
"pattern": "^did:mesh:[a-z0-9]{32}$",
"description": "Agent's decentralized identifier"
},
"agent_name": {
"type": "string",
"description": "Confirmed agent name"
},
"svid_certificate": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "X.509 certificate in DER format (base64)"
},
"svid_private_key": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "Private key, encrypted (base64)"
},
"svid_key_id": {
"type": "string",
"description": "Key identifier"
},
"svid_expires_at": {
"type": "string",
"format": "date-time",
"description": "Certificate expiration time (15 min default)"
},
"initial_trust_score": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"default": 500,
"description": "Initial trust score (0-1000)"
},
"trust_dimensions": {
"$ref": "#/definitions/TrustScoreDimensions"
},
"access_token": {
"type": "string",
"description": "Short-lived access token (JWT)"
},
"refresh_token": {
"type": "string",
"description": "Refresh token for credential rotation"
},
"token_ttl_seconds": {
"type": "integer",
"minimum": 60,
"maximum": 3600,
"default": 900,
"description": "Token time-to-live in seconds (15 min default)"
},
"registry_endpoint": {
"type": "string",
"format": "uri",
"description": "AgentMesh registry endpoint URL"
},
"ca_certificate": {
"type": "string",
"description": "CA certificate for mTLS verification (PEM format)"
},
"status": {
"$ref": "#/definitions/RegistrationStatus"
},
"registered_at": {
"type": "string",
"format": "date-time",
"description": "Registration timestamp"
},
"next_rotation_at": {
"type": "string",
"format": "date-time",
"description": "Next credential rotation time"
}
}
},
"TrustScoreDimensions": {
"type": "object",
"properties": {
"policy_compliance": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Policy compliance score"
},
"resource_efficiency": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Resource efficiency score"
},
"output_quality": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Output quality score"
},
"security_posture": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Security posture score"
},
"collaboration_health": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Collaboration health score"
}
}
},
"RegistrationStatus": {
"type": "string",
"enum": [
"success",
"pending_sponsor_approval",
"rejected_invalid_sponsor",
"rejected_invalid_key",
"rejected_duplicate",
"rejected_policy_violation"
],
"description": "Registration status"
},
"RegistrationError": {
"type": "object",
"required": ["error_code", "error_message"],
"properties": {
"error_code": {
"type": "string",
"description": "Machine-readable error code"
},
"error_message": {
"type": "string",
"description": "Human-readable error message"
},
"validation_errors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Field-level validation errors"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Error timestamp"
}
}
},
"CredentialRotationRequest": {
"type": "object",
"required": ["agent_did", "current_access_token", "refresh_token"],
"properties": {
"agent_did": {
"type": "string",
"pattern": "^did:mesh:[a-z0-9]{32}$",
"description": "Agent's DID"
},
"current_access_token": {
"type": "string",
"description": "Current (expiring) access token"
},
"refresh_token": {
"type": "string",
"description": "Refresh token"
},
"new_public_key": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "Optional: new public key for key rotation (base64)"
}
}
},
"CredentialRotationResponse": {
"type": "object",
"required": ["new_access_token", "expires_at", "ttl_seconds"],
"properties": {
"new_svid_certificate": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "New X.509 certificate (base64)"
},
"new_svid_private_key": {
"type": "string",
"pattern": "^[A-Za-z0-9+/=]+$",
"description": "New private key if rotated (base64)"
},
"new_access_token": {
"type": "string",
"description": "New access token"
},
"new_refresh_token": {
"type": "string",
"description": "New refresh token"
},
"expires_at": {
"type": "string",
"format": "date-time",
"description": "Token expiration time"
},
"ttl_seconds": {
"type": "integer",
"minimum": 60,
"description": "Time-to-live in seconds"
}
}
},
"TrustVerificationRequest": {
"type": "object",
"required": ["requester_did", "peer_did"],
"properties": {
"requester_did": {
"type": "string",
"pattern": "^did:mesh:[a-z0-9]{32}$",
"description": "DID of agent making the request"
},
"peer_did": {
"type": "string",
"pattern": "^did:mesh:[a-z0-9]{32}$",
"description": "DID of peer to verify"
},
"required_trust_score": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"default": 500,
"description": "Minimum required trust score"
},
"required_capabilities": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required capabilities"
}
}
},
"TrustVerificationResponse": {
"type": "object",
"required": ["verified", "peer_trust_score"],
"properties": {
"verified": {
"type": "boolean",
"description": "Whether peer meets trust requirements"
},
"peer_trust_score": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"description": "Peer's current trust score"
},
"peer_capabilities": {
"type": "array",
"items": {
"type": "string"
},
"description": "Peer's capabilities"
},
"peer_name": {
"type": "string",
"description": "Peer's agent name"
},
"rejection_reason": {
"type": "string",
"description": "Reason if verification failed"
},
"verified_at": {
"type": "string",
"format": "date-time",
"description": "Verification timestamp"
}
}
}
}
}