|
5 | 5 | "description": "Secret-free adapter request/response contract for optional non-authoritative external identity, reputation, certificate-tier, counterparty, and registry lookup signals used as Agent Registry verifier inputs.", |
6 | 6 | "type": "object", |
7 | 7 | "additionalProperties": false, |
| 8 | + "required": ["specVersion", "id", "kind", "request", "response", "receiptSafety", "observedAt"], |
| 9 | + "$defs": { |
| 10 | + "signalType": { |
| 11 | + "type": "string", |
| 12 | + "enum": ["agent-identity", "cert-tier", "reputation-score", "counterparty-check", "registry-lookup", "other"] |
| 13 | + }, |
| 14 | + "sha256Digest": { |
| 15 | + "type": ["string", "null"], |
8 | 16 | "required": [ |
9 | 17 | "specVersion", |
10 | 18 | "id", |
|
36 | 44 | "freshness": { |
37 | 45 | "type": "object", |
38 | 46 | "additionalProperties": false, |
| 47 | + "required": ["maxAgeSeconds", "observedAgeSeconds", "fresh"], |
| 48 | + "properties": { |
| 49 | + "maxAgeSeconds": { "type": "integer", "minimum": 0 }, |
| 50 | + "observedAgeSeconds": { "type": "integer", "minimum": 0 }, |
| 51 | + "fresh": { "type": "boolean" } |
39 | 52 | "required": [ |
40 | 53 | "maxAgeSeconds", |
41 | 54 | "observedAgeSeconds", |
|
58 | 71 | "signature": { |
59 | 72 | "type": "object", |
60 | 73 | "additionalProperties": false, |
| 74 | + "required": ["required", "observed", "signatureRef", "signerRef"], |
| 75 | + "properties": { |
| 76 | + "required": { "type": "boolean" }, |
| 77 | + "observed": { "type": "boolean" }, |
| 78 | + "signatureRef": { "type": ["string", "null"] }, |
| 79 | + "signerRef": { "type": ["string", "null"] } |
61 | 80 | "required": [ |
62 | 81 | "required", |
63 | 82 | "observed", |
|
88 | 107 | "externalTrustSignal": { |
89 | 108 | "type": "object", |
90 | 109 | "additionalProperties": false, |
| 110 | + "required": ["providerRef", "signalType", "signalRef", "signalDigest", "verifiedAt", "freshness", "signature", "authority", "failureReason"], |
| 111 | + "properties": { |
| 112 | + "providerRef": { "type": "string" }, |
| 113 | + "signalType": { "$ref": "#/$defs/signalType" }, |
| 114 | + "signalRef": { "type": "string" }, |
| 115 | + "signalDigest": { "$ref": "#/$defs/sha256Digest" }, |
| 116 | + "verifiedAt": { "type": "string" }, |
| 117 | + "freshness": { "$ref": "#/$defs/freshness" }, |
| 118 | + "signature": { "$ref": "#/$defs/signature" }, |
| 119 | + "authority": { "type": "string", "const": "non-authoritative-verifier-input" }, |
| 120 | + "failureReason": { "type": ["string", "null"] }, |
| 121 | + "notes": { "type": "array", "items": { "type": "string" } } |
91 | 122 | "required": [ |
92 | 123 | "providerRef", |
93 | 124 | "signalType", |
|
141 | 172 | } |
142 | 173 | }, |
143 | 174 | "properties": { |
| 175 | + "specVersion": { "type": "string", "const": "0.1.0" }, |
144 | 176 | "specVersion": { |
145 | 177 | "type": "string", |
146 | 178 | "const": "0.1.0" |
|
149 | 181 | "type": "string", |
150 | 182 | "pattern": "^urn:srcos:agent-machine:external-trust-signal-provider:[a-z0-9][a-z0-9-]*$" |
151 | 183 | }, |
| 184 | + "kind": { "type": "string", "const": "ExternalTrustSignalProvider" }, |
| 185 | + "request": { |
| 186 | + "type": "object", |
| 187 | + "additionalProperties": false, |
| 188 | + "required": ["requestId", "providerRef", "agentPodId", "requestedAgentIdentityRef", "sessionRef", "workroomRef", "topicRef", "requestedSignalTypes", "verificationFreshnessSeconds", "requestedExpiresAt", "signatureRequired"], |
| 189 | + "properties": { |
| 190 | + "requestId": { "type": "string" }, |
| 191 | + "providerRef": { "type": "string" }, |
152 | 192 | "kind": { |
153 | 193 | "type": "string", |
154 | 194 | "const": "ExternalTrustSignalProvider" |
|
180 | 220 | "type": "string", |
181 | 221 | "pattern": "^urn:srcos:agent-machine:agent-pod:[a-z0-9][a-z0-9-]*$" |
182 | 222 | }, |
| 223 | + "requestedAgentIdentityRef": { "type": "string" }, |
| 224 | + "sessionRef": { "type": "string" }, |
| 225 | + "workroomRef": { "type": ["string", "null"] }, |
| 226 | + "topicRef": { "type": ["string", "null"] }, |
| 227 | + "requestedSignalTypes": { |
| 228 | + "type": "array", |
| 229 | + "items": { "$ref": "#/$defs/signalType" }, |
| 230 | + "minItems": 1, |
| 231 | + "uniqueItems": true |
| 232 | + }, |
| 233 | + "verificationFreshnessSeconds": { "type": "integer", "minimum": 0 }, |
| 234 | + "requestedExpiresAt": { "type": ["string", "null"] }, |
| 235 | + "signatureRequired": { "type": "boolean" } |
183 | 236 | "requestedAgentIdentityRef": { |
184 | 237 | "type": "string" |
185 | 238 | }, |
|
224 | 277 | "response": { |
225 | 278 | "type": "object", |
226 | 279 | "additionalProperties": false, |
| 280 | + "required": ["status", "usableForGrantResolution", "providerRef", "authority", "verifiedAt", "freshness", "signals", "failureReason"], |
| 281 | + "properties": { |
| 282 | + "status": { |
| 283 | + "type": "string", |
| 284 | + "enum": ["available", "unavailable", "stale", "malformed", "unsigned", "denied", "error"] |
| 285 | + }, |
| 286 | + "usableForGrantResolution": { "type": "boolean" }, |
| 287 | + "providerRef": { "type": "string" }, |
| 288 | + "authority": { "type": "string", "const": "non-authoritative-verifier-input" }, |
| 289 | + "verifiedAt": { "type": ["string", "null"] }, |
| 290 | + "freshness": { "$ref": "#/$defs/freshness" }, |
| 291 | + "signals": { |
| 292 | + "type": "array", |
| 293 | + "items": { "$ref": "#/$defs/externalTrustSignal" } |
| 294 | + }, |
| 295 | + "failureReason": { "type": ["string", "null"] } |
227 | 296 | "required": [ |
228 | 297 | "status", |
229 | 298 | "usableForGrantResolution", |
|
283 | 352 | "receiptSafety": { |
284 | 353 | "type": "object", |
285 | 354 | "additionalProperties": false, |
| 355 | + "required": ["includeRawContent", "rawPromptContentIncluded", "rawKvCacheContentIncluded", "secretValuesIncluded", "privateMemoryIncluded", "apiKeysIncluded", "walletPrivateKeysIncluded", "rawCredentialsIncluded", "rawUserDataIncluded"], |
| 356 | + "properties": { |
| 357 | + "includeRawContent": { "type": "boolean", "const": false }, |
| 358 | + "rawPromptContentIncluded": { "type": "boolean", "const": false }, |
| 359 | + "rawKvCacheContentIncluded": { "type": "boolean", "const": false }, |
| 360 | + "secretValuesIncluded": { "type": "boolean", "const": false }, |
| 361 | + "privateMemoryIncluded": { "type": "boolean", "const": false }, |
| 362 | + "apiKeysIncluded": { "type": "boolean", "const": false }, |
| 363 | + "walletPrivateKeysIncluded": { "type": "boolean", "const": false }, |
| 364 | + "rawCredentialsIncluded": { "type": "boolean", "const": false }, |
| 365 | + "rawUserDataIncluded": { "type": "boolean", "const": false } |
| 366 | + } |
| 367 | + }, |
| 368 | + "observedAt": { "type": "string" }, |
| 369 | + "labels": { "type": "object", "additionalProperties": { "type": "string" } } |
286 | 370 | "required": [ |
287 | 371 | "includeRawContent", |
288 | 372 | "rawPromptContentIncluded", |
|
0 commit comments