@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.15

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 (171) hide show
  1. package/LICENSE +122 -0
  2. package/README.md +28 -3
  3. package/THIRD_PARTY_NOTICES +34 -0
  4. package/dist/availability.d.ts +21 -0
  5. package/dist/availability.d.ts.map +1 -0
  6. package/dist/availability.js +2 -0
  7. package/dist/availability.js.map +1 -0
  8. package/dist/catalog-adoption.d.ts +20 -0
  9. package/dist/catalog-adoption.d.ts.map +1 -0
  10. package/dist/catalog-adoption.js +76 -0
  11. package/dist/catalog-adoption.js.map +1 -0
  12. package/dist/catalog-composition.d.ts +10 -0
  13. package/dist/catalog-composition.d.ts.map +1 -0
  14. package/dist/catalog-composition.js +58 -0
  15. package/dist/catalog-composition.js.map +1 -0
  16. package/dist/catalog-delivery.d.ts +47 -0
  17. package/dist/catalog-delivery.d.ts.map +1 -0
  18. package/dist/catalog-delivery.js +83 -0
  19. package/dist/catalog-delivery.js.map +1 -0
  20. package/dist/catalog-package-data.d.ts +8 -0
  21. package/dist/catalog-package-data.d.ts.map +1 -0
  22. package/dist/catalog-package-data.js +2640 -0
  23. package/dist/catalog-package-data.js.map +1 -0
  24. package/dist/compatibility.d.ts +68 -0
  25. package/dist/compatibility.d.ts.map +1 -0
  26. package/dist/compatibility.js +207 -0
  27. package/dist/compatibility.js.map +1 -0
  28. package/dist/configuration-bundle.d.ts +201 -0
  29. package/dist/configuration-bundle.d.ts.map +1 -0
  30. package/dist/configuration-bundle.js +619 -0
  31. package/dist/configuration-bundle.js.map +1 -0
  32. package/dist/entities.d.ts +619 -0
  33. package/dist/entities.d.ts.map +1 -0
  34. package/dist/entities.js +2 -0
  35. package/dist/entities.js.map +1 -0
  36. package/dist/fixtures.d.ts +25 -0
  37. package/dist/fixtures.d.ts.map +1 -0
  38. package/dist/fixtures.js +546 -0
  39. package/dist/fixtures.js.map +1 -0
  40. package/dist/hash.d.ts +8 -0
  41. package/dist/hash.d.ts.map +1 -0
  42. package/dist/hash.js +13 -0
  43. package/dist/hash.js.map +1 -0
  44. package/dist/host-qualification.d.ts +90 -0
  45. package/dist/host-qualification.d.ts.map +1 -0
  46. package/dist/host-qualification.js +65 -0
  47. package/dist/host-qualification.js.map +1 -0
  48. package/dist/icc-catalog.d.ts +31 -0
  49. package/dist/icc-catalog.d.ts.map +1 -0
  50. package/dist/icc-catalog.js +321 -0
  51. package/dist/icc-catalog.js.map +1 -0
  52. package/dist/icc-csf-profiles.d.ts +28 -0
  53. package/dist/icc-csf-profiles.d.ts.map +1 -0
  54. package/dist/icc-csf-profiles.js +394 -0
  55. package/dist/icc-csf-profiles.js.map +1 -0
  56. package/dist/index.d.ts +24 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +24 -0
  59. package/dist/index.js.map +1 -0
  60. package/dist/model-maintenance.d.ts +216 -0
  61. package/dist/model-maintenance.d.ts.map +1 -0
  62. package/dist/model-maintenance.js +387 -0
  63. package/dist/model-maintenance.js.map +1 -0
  64. package/dist/model-package-data.d.ts +3 -0
  65. package/dist/model-package-data.d.ts.map +1 -0
  66. package/dist/model-package-data.js +867 -0
  67. package/dist/model-package-data.js.map +1 -0
  68. package/dist/persona-inventory.d.ts +143 -0
  69. package/dist/persona-inventory.d.ts.map +1 -0
  70. package/dist/persona-inventory.js +56 -0
  71. package/dist/persona-inventory.js.map +1 -0
  72. package/dist/profile-identity.d.ts +27 -0
  73. package/dist/profile-identity.d.ts.map +1 -0
  74. package/dist/profile-identity.js +30 -0
  75. package/dist/profile-identity.js.map +1 -0
  76. package/dist/reasoning-validation.d.ts +9 -0
  77. package/dist/reasoning-validation.d.ts.map +1 -0
  78. package/dist/reasoning-validation.js +79 -0
  79. package/dist/reasoning-validation.js.map +1 -0
  80. package/dist/reasoning.d.ts +55 -0
  81. package/dist/reasoning.d.ts.map +1 -0
  82. package/dist/reasoning.js +13 -0
  83. package/dist/reasoning.js.map +1 -0
  84. package/dist/receipt.d.ts +16 -0
  85. package/dist/receipt.d.ts.map +1 -0
  86. package/dist/receipt.js +18 -0
  87. package/dist/receipt.js.map +1 -0
  88. package/dist/schemas/adoption-change-set.schema.json +91 -0
  89. package/dist/schemas/bundle.d.ts +124 -0
  90. package/dist/schemas/bundle.d.ts.map +1 -0
  91. package/dist/schemas/bundle.js +84 -0
  92. package/dist/schemas/bundle.js.map +1 -0
  93. package/dist/schemas/catalog-release.schema.json +110 -0
  94. package/dist/schemas/catalog-review-input.schema.json +179 -0
  95. package/dist/schemas/catalog-review-output.schema.json +259 -0
  96. package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
  97. package/dist/schemas/catalog-review-record.schema.json +391 -0
  98. package/dist/schemas/client-persona-inventory.schema.json +107 -0
  99. package/dist/schemas/common.schema.json +324 -0
  100. package/dist/schemas/config.d.ts +1106 -0
  101. package/dist/schemas/config.d.ts.map +1 -0
  102. package/dist/schemas/config.js +496 -0
  103. package/dist/schemas/config.js.map +1 -0
  104. package/dist/schemas/configuration-bundle-manifest.schema.json +143 -0
  105. package/dist/schemas/configuration-manifest.schema.json +109 -0
  106. package/dist/schemas/connection.schema.json +49 -0
  107. package/dist/schemas/core.d.ts +1333 -0
  108. package/dist/schemas/core.d.ts.map +1 -0
  109. package/dist/schemas/core.js +341 -0
  110. package/dist/schemas/core.js.map +1 -0
  111. package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
  112. package/dist/schemas/execution-profile-revision.schema.json +235 -0
  113. package/dist/schemas/execution-receipt.schema.json +431 -0
  114. package/dist/schemas/host-adapter-qualification.schema.json +161 -0
  115. package/dist/schemas/host-qualification-policy.schema.json +50 -0
  116. package/dist/schemas/index.d.ts +11 -0
  117. package/dist/schemas/index.d.ts.map +1 -0
  118. package/dist/schemas/index.js +34 -0
  119. package/dist/schemas/index.js.map +1 -0
  120. package/dist/schemas/inventory.d.ts +170 -0
  121. package/dist/schemas/inventory.d.ts.map +1 -0
  122. package/dist/schemas/inventory.js +87 -0
  123. package/dist/schemas/inventory.js.map +1 -0
  124. package/dist/schemas/model-definition.schema.json +429 -0
  125. package/dist/schemas/model-package-release.schema.json +594 -0
  126. package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
  127. package/dist/schemas/operation-contract-document.schema.json +153 -0
  128. package/dist/schemas/persona-assignments.schema.json +125 -0
  129. package/dist/schemas/persona-registry-overlay.schema.json +93 -0
  130. package/dist/schemas/persona-source-document.schema.json +86 -0
  131. package/dist/schemas/persona-specification.schema.json +122 -0
  132. package/dist/schemas/price-revision.schema.json +299 -0
  133. package/dist/schemas/profile-assessment.schema.json +288 -0
  134. package/dist/schemas/scoped.d.ts +424 -0
  135. package/dist/schemas/scoped.d.ts.map +1 -0
  136. package/dist/schemas/scoped.js +203 -0
  137. package/dist/schemas/scoped.js.map +1 -0
  138. package/dist/schemas/usage-aggregate-query.schema.json +86 -0
  139. package/dist/schemas/usage-page.schema.json +22 -0
  140. package/dist/schemas/usage-query.schema.json +77 -0
  141. package/dist/schemas/usage-summary.schema.json +468 -0
  142. package/dist/schemas/usage.d.ts +527 -0
  143. package/dist/schemas/usage.d.ts.map +1 -0
  144. package/dist/schemas/usage.js +142 -0
  145. package/dist/schemas/usage.js.map +1 -0
  146. package/dist/scoped-configuration.d.ts +208 -0
  147. package/dist/scoped-configuration.d.ts.map +1 -0
  148. package/dist/scoped-configuration.js +425 -0
  149. package/dist/scoped-configuration.js.map +1 -0
  150. package/dist/scripts/emit-schemas.d.ts +2 -0
  151. package/dist/scripts/emit-schemas.d.ts.map +1 -0
  152. package/dist/scripts/emit-schemas.js +24 -0
  153. package/dist/scripts/emit-schemas.js.map +1 -0
  154. package/dist/scripts/verify-bundle.d.ts +3 -0
  155. package/dist/scripts/verify-bundle.d.ts.map +1 -0
  156. package/dist/scripts/verify-bundle.js +59 -0
  157. package/dist/scripts/verify-bundle.js.map +1 -0
  158. package/dist/validation.d.ts +11 -0
  159. package/dist/validation.d.ts.map +1 -0
  160. package/dist/validation.js +41 -0
  161. package/dist/validation.js.map +1 -0
  162. package/package.json +33 -6
  163. package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
  164. package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
  165. package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
  166. package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
  167. package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
  168. package/third-party-licenses/require-from-string@2.0.2/license +21 -0
  169. package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
  170. package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
  171. package/third-party-licenses.json +102 -0
@@ -0,0 +1,122 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/persona-specification.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "applicationId",
8
+ "personaId",
9
+ "name",
10
+ "systemInstructions",
11
+ "instructionVersion",
12
+ "instructionHash",
13
+ "tools",
14
+ "inputRequirements",
15
+ "outputRequirements"
16
+ ],
17
+ "properties": {
18
+ "schemaVersion": {
19
+ "const": 1
20
+ },
21
+ "applicationId": {
22
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
23
+ },
24
+ "personaId": {
25
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
26
+ },
27
+ "name": {
28
+ "type": "string",
29
+ "minLength": 1
30
+ },
31
+ "systemInstructions": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "instructionVersion": {
36
+ "type": "integer",
37
+ "minimum": 1
38
+ },
39
+ "instructionHash": {
40
+ "type": "string",
41
+ "pattern": "^[a-f0-9]{64}$"
42
+ },
43
+ "registeredBy": {
44
+ "type": "string",
45
+ "minLength": 1
46
+ },
47
+ "registeredAt": {
48
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
49
+ },
50
+ "tools": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string",
54
+ "minLength": 1
55
+ }
56
+ },
57
+ "inputRequirements": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "modalities"
62
+ ],
63
+ "properties": {
64
+ "modalities": {
65
+ "type": "array",
66
+ "minItems": 1,
67
+ "items": {
68
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
69
+ }
70
+ },
71
+ "description": {
72
+ "type": "string"
73
+ }
74
+ }
75
+ },
76
+ "outputRequirements": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": [
80
+ "kind"
81
+ ],
82
+ "properties": {
83
+ "kind": {
84
+ "enum": [
85
+ "text",
86
+ "structured"
87
+ ]
88
+ },
89
+ "schema": {
90
+ "type": "object"
91
+ },
92
+ "description": {
93
+ "type": "string"
94
+ }
95
+ }
96
+ },
97
+ "constraints": {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "properties": {
101
+ "latencyPreference": {
102
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/latencyPreference"
103
+ },
104
+ "costPreference": {
105
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/costPreference"
106
+ },
107
+ "notes": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "assumptions": {
116
+ "type": "array",
117
+ "items": {
118
+ "type": "string"
119
+ }
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,299 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/price-revision.schema.json",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "priceRevisionId",
10
+ "scope",
11
+ "currency",
12
+ "units",
13
+ "effectiveDate",
14
+ "source"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": 1
19
+ },
20
+ "priceRevisionId": {
21
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
22
+ },
23
+ "scope": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "minProperties": 1,
27
+ "properties": {
28
+ "catalogId": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "provider": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ },
36
+ "service": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ }
40
+ }
41
+ },
42
+ "currency": {
43
+ "type": "string",
44
+ "minLength": 3,
45
+ "maxLength": 3
46
+ },
47
+ "units": {
48
+ "enum": [
49
+ "per-million-tokens",
50
+ "per-thousand-calls",
51
+ "per-call"
52
+ ]
53
+ },
54
+ "input": {
55
+ "type": "number",
56
+ "minimum": 0
57
+ },
58
+ "output": {
59
+ "type": "number",
60
+ "minimum": 0
61
+ },
62
+ "cachedInput": {
63
+ "type": "number",
64
+ "minimum": 0
65
+ },
66
+ "cacheWriteInput": {
67
+ "type": "number",
68
+ "minimum": 0
69
+ },
70
+ "servicePrice": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "dimension",
77
+ "price",
78
+ "unit"
79
+ ],
80
+ "properties": {
81
+ "dimension": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "price": {
86
+ "type": "number",
87
+ "minimum": 0
88
+ },
89
+ "unit": {
90
+ "type": "string",
91
+ "minLength": 1
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "longContextTiers": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "object",
100
+ "additionalProperties": false,
101
+ "required": [
102
+ "inputTokenThreshold",
103
+ "inputMultiplier",
104
+ "outputMultiplier"
105
+ ],
106
+ "properties": {
107
+ "inputTokenThreshold": {
108
+ "type": "integer",
109
+ "minimum": 1
110
+ },
111
+ "inputMultiplier": {
112
+ "type": "number",
113
+ "minimum": 0
114
+ },
115
+ "outputMultiplier": {
116
+ "type": "number",
117
+ "minimum": 0
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "effectiveDate": {
123
+ "type": "string",
124
+ "format": "date"
125
+ },
126
+ "source": {
127
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
128
+ },
129
+ "conditions": {
130
+ "type": "string"
131
+ },
132
+ "unknownDimensions": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ }
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": [
145
+ "schemaVersion",
146
+ "priceRevisionId",
147
+ "scope",
148
+ "currency",
149
+ "units",
150
+ "effectiveDate",
151
+ "source",
152
+ "observedAt"
153
+ ],
154
+ "properties": {
155
+ "schemaVersion": {
156
+ "const": 2
157
+ },
158
+ "priceRevisionId": {
159
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
160
+ },
161
+ "scope": {
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "minProperties": 1,
165
+ "properties": {
166
+ "catalogId": {
167
+ "type": "string",
168
+ "minLength": 1
169
+ },
170
+ "provider": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ },
174
+ "service": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ }
178
+ }
179
+ },
180
+ "currency": {
181
+ "type": "string",
182
+ "minLength": 3,
183
+ "maxLength": 3
184
+ },
185
+ "units": {
186
+ "enum": [
187
+ "per-million-tokens",
188
+ "per-thousand-calls",
189
+ "per-call"
190
+ ]
191
+ },
192
+ "input": {
193
+ "type": "number",
194
+ "minimum": 0
195
+ },
196
+ "output": {
197
+ "type": "number",
198
+ "minimum": 0
199
+ },
200
+ "cachedInput": {
201
+ "type": "number",
202
+ "minimum": 0
203
+ },
204
+ "cacheWriteInput": {
205
+ "type": "number",
206
+ "minimum": 0
207
+ },
208
+ "servicePrice": {
209
+ "type": "array",
210
+ "items": {
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "required": [
214
+ "dimension",
215
+ "price",
216
+ "unit"
217
+ ],
218
+ "properties": {
219
+ "dimension": {
220
+ "type": "string",
221
+ "minLength": 1
222
+ },
223
+ "price": {
224
+ "type": "number",
225
+ "minimum": 0
226
+ },
227
+ "unit": {
228
+ "type": "string",
229
+ "minLength": 1
230
+ }
231
+ }
232
+ }
233
+ },
234
+ "longContextTiers": {
235
+ "type": "array",
236
+ "items": {
237
+ "type": "object",
238
+ "additionalProperties": false,
239
+ "required": [
240
+ "inputTokenThreshold",
241
+ "inputMultiplier",
242
+ "outputMultiplier"
243
+ ],
244
+ "properties": {
245
+ "inputTokenThreshold": {
246
+ "type": "integer",
247
+ "minimum": 1
248
+ },
249
+ "inputMultiplier": {
250
+ "type": "number",
251
+ "minimum": 0
252
+ },
253
+ "outputMultiplier": {
254
+ "type": "number",
255
+ "minimum": 0
256
+ },
257
+ "cachedInputMultiplier": {
258
+ "type": "number",
259
+ "minimum": 0
260
+ },
261
+ "cacheWriteInputMultiplier": {
262
+ "type": "number",
263
+ "minimum": 0
264
+ }
265
+ }
266
+ }
267
+ },
268
+ "effectiveDate": {
269
+ "anyOf": [
270
+ {
271
+ "type": "string",
272
+ "format": "date"
273
+ },
274
+ {
275
+ "type": "null"
276
+ }
277
+ ]
278
+ },
279
+ "source": {
280
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
281
+ },
282
+ "conditions": {
283
+ "type": "string"
284
+ },
285
+ "unknownDimensions": {
286
+ "type": "array",
287
+ "items": {
288
+ "type": "string",
289
+ "minLength": 1
290
+ }
291
+ },
292
+ "observedAt": {
293
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
294
+ }
295
+ },
296
+ "$id": "https://techis.dev/ai/contracts/v2/price-revision.schema.json"
297
+ }
298
+ ]
299
+ }
@@ -0,0 +1,288 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/profile-assessment.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "assessmentId",
8
+ "applicationId",
9
+ "personaId",
10
+ "instructionHash",
11
+ "catalogRevision",
12
+ "profileRevisionsAssessed",
13
+ "extractedRequirements",
14
+ "recommendation",
15
+ "gaps",
16
+ "assumptions",
17
+ "evidence",
18
+ "status",
19
+ "createdAt"
20
+ ],
21
+ "properties": {
22
+ "schemaVersion": {
23
+ "const": 1
24
+ },
25
+ "assessmentId": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "applicationId": {
30
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
31
+ },
32
+ "personaId": {
33
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
34
+ },
35
+ "instructionHash": {
36
+ "type": "string",
37
+ "pattern": "^[a-f0-9]{64}$"
38
+ },
39
+ "catalogRevision": {
40
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
41
+ },
42
+ "profileRevisionsAssessed": {
43
+ "type": "array",
44
+ "items": {
45
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
46
+ }
47
+ },
48
+ "extractedRequirements": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "required": [
52
+ "purpose",
53
+ "inputModalities",
54
+ "outputKind",
55
+ "providerTools"
56
+ ],
57
+ "properties": {
58
+ "purpose": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ },
62
+ "inputModalities": {
63
+ "type": "array",
64
+ "minItems": 1,
65
+ "items": {
66
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
67
+ }
68
+ },
69
+ "outputKind": {
70
+ "enum": [
71
+ "text",
72
+ "structured"
73
+ ]
74
+ },
75
+ "providerTools": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "latencyPreference": {
82
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/latencyPreference"
83
+ },
84
+ "costPreference": {
85
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/costPreference"
86
+ },
87
+ "observations": {
88
+ "type": "array",
89
+ "items": {
90
+ "type": "string"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "recommendation": {
96
+ "anyOf": [
97
+ {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": [
101
+ "kind",
102
+ "profileId",
103
+ "profileRevision",
104
+ "suitability",
105
+ "rationale",
106
+ "tradeoffs"
107
+ ],
108
+ "properties": {
109
+ "kind": {
110
+ "const": "reuse"
111
+ },
112
+ "profileId": {
113
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
114
+ },
115
+ "profileRevision": {
116
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
117
+ },
118
+ "suitability": {
119
+ "enum": [
120
+ "high",
121
+ "moderate"
122
+ ]
123
+ },
124
+ "rationale": {
125
+ "type": "string",
126
+ "minLength": 1
127
+ },
128
+ "tradeoffs": {
129
+ "type": "array",
130
+ "items": {
131
+ "type": "string"
132
+ }
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": [
140
+ "kind",
141
+ "draftProfile",
142
+ "rationale"
143
+ ],
144
+ "properties": {
145
+ "kind": {
146
+ "const": "draft"
147
+ },
148
+ "draftProfile": {
149
+ "$ref": "https://techis.dev/ai/contracts/execution-profile-revision.schema.json"
150
+ },
151
+ "rationale": {
152
+ "type": "string",
153
+ "minLength": 1
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "required": [
161
+ "kind",
162
+ "questions",
163
+ "rationale"
164
+ ],
165
+ "properties": {
166
+ "kind": {
167
+ "const": "needs-information"
168
+ },
169
+ "questions": {
170
+ "type": "array",
171
+ "minItems": 1,
172
+ "items": {
173
+ "type": "string"
174
+ }
175
+ },
176
+ "rationale": {
177
+ "type": "string",
178
+ "minLength": 1
179
+ }
180
+ }
181
+ }
182
+ ]
183
+ },
184
+ "gaps": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ "assumptions": {
191
+ "type": "array",
192
+ "items": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ "evidence": {
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "status",
201
+ "records"
202
+ ],
203
+ "properties": {
204
+ "status": {
205
+ "enum": [
206
+ "none",
207
+ "provisional",
208
+ "evaluated"
209
+ ]
210
+ },
211
+ "records": {
212
+ "type": "array",
213
+ "items": {
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "required": [
217
+ "evaluationId",
218
+ "basis",
219
+ "performedAt",
220
+ "workloadDescription",
221
+ "results"
222
+ ],
223
+ "properties": {
224
+ "evaluationId": {
225
+ "type": "string",
226
+ "minLength": 1
227
+ },
228
+ "basis": {
229
+ "enum": [
230
+ "live",
231
+ "simulated"
232
+ ]
233
+ },
234
+ "performedAt": {
235
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
236
+ },
237
+ "workloadDescription": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ },
241
+ "results": {
242
+ "type": "object",
243
+ "additionalProperties": false,
244
+ "properties": {
245
+ "costEstimate": {
246
+ "type": "object",
247
+ "additionalProperties": false,
248
+ "required": [
249
+ "currency",
250
+ "amount"
251
+ ],
252
+ "properties": {
253
+ "currency": {
254
+ "type": "string"
255
+ },
256
+ "amount": {
257
+ "type": "number"
258
+ }
259
+ }
260
+ },
261
+ "latencyMs": {
262
+ "type": "integer",
263
+ "minimum": 0
264
+ },
265
+ "qualityNotes": {
266
+ "type": "string"
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ },
275
+ "status": {
276
+ "enum": [
277
+ "active",
278
+ "stale"
279
+ ]
280
+ },
281
+ "staleReason": {
282
+ "type": "string"
283
+ },
284
+ "createdAt": {
285
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
286
+ }
287
+ }
288
+ }