archctx-contracts 0.17.0 → 0.18.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 (119) hide show
  1. package/fixtures/invalid/projection-result-applied-incomplete-coverage.json +3 -3
  2. package/fixtures/valid/archctx-capabilities.json +2 -2
  3. package/fixtures/valid/flow-selector-check.json +1 -1
  4. package/fixtures/valid/product-version-manifest.json +5 -11
  5. package/fixtures/valid/projection-manifest.json +1 -1
  6. package/fixtures/valid/projection-result.json +3 -3
  7. package/package.json +4 -1
  8. package/schemas/repo/refactor-decision.schema.json +283 -37
  9. package/schemas/runtime/archctx-capabilities.schema.json +144 -20
  10. package/schemas/runtime/architecture-debt-delta.schema.json +58 -19
  11. package/schemas/runtime/architecture-debt.schema.json +42 -42
  12. package/schemas/runtime/architecture-event.schema.json +1 -1
  13. package/schemas/runtime/architecture-history.schema.json +354 -0
  14. package/schemas/runtime/capability-dependencies.schema.json +266 -59
  15. package/schemas/runtime/cli-check.schema.json +197 -0
  16. package/schemas/runtime/cli-help.schema.json +28 -0
  17. package/schemas/runtime/dependency-constraint-evaluation.schema.json +67 -68
  18. package/schemas/runtime/docs-anchors.schema.json +250 -67
  19. package/schemas/runtime/doctor-code-facts.schema.json +49 -0
  20. package/schemas/runtime/evidence-binding.schema.json +1 -1
  21. package/schemas/runtime/flow-selector-check.schema.json +179 -46
  22. package/schemas/runtime/hook-debt-checkpoint.schema.json +12 -12
  23. package/schemas/runtime/index-seed.schema.json +56 -0
  24. package/schemas/runtime/path-context.schema.json +108 -0
  25. package/schemas/runtime/product-version-manifest.schema.json +142 -54
  26. package/schemas/runtime/projection-apply-readback.schema.json +2 -2
  27. package/schemas/runtime/projection-apply-recovery.schema.json +1 -1
  28. package/schemas/runtime/projection-result.schema.json +1 -1
  29. package/schemas/runtime/projection-slice.schema.json +34 -34
  30. package/schemas/runtime/recommendation-v3.schema.json +372 -1
  31. package/schemas/runtime/ref-impact-batch-request.schema.json +20 -7
  32. package/schemas/runtime/ref-impact-batch.schema.json +83 -13
  33. package/schemas/runtime/ref-impact.schema.json +68 -61
  34. package/schemas/runtime/refactor-scan-v2.schema.json +434 -0
  35. package/schemas/runtime/refactor-simulate.schema.json +505 -0
  36. package/schemas/runtime/refactor-verify-v2.schema.json +172 -0
  37. package/schemas/runtime/resolve-path.schema.json +69 -0
  38. package/schemas/runtime/runtime-recommendation-show.schema.json +531 -2
  39. package/schemas/runtime/runtime-refactor-scan.schema.json +498 -2
  40. package/schemas/runtime/runtime-verify.schema.json +274 -56
  41. package/schemas/runtime/state-machine-check.schema.json +357 -89
  42. package/schemas/runtime/structural-observation-payload.schema.json +372 -1
  43. package/schemas/runtime/sync-check.schema.json +65 -0
  44. package/src/architecture-debt.ts +125 -38
  45. package/src/architecture-history.ts +168 -42
  46. package/src/architecture.ts +100 -0
  47. package/src/cli-read.ts +228 -0
  48. package/src/docs-anchors.ts +105 -50
  49. package/src/explorer-occurrence-ports.ts +175 -0
  50. package/src/explorer-query-ports.ts +270 -0
  51. package/src/failure.ts +3 -0
  52. package/src/index-seed.ts +42 -0
  53. package/src/index.ts +5 -0
  54. package/src/ledger-records.ts +262 -0
  55. package/src/ledger.ts +27 -566
  56. package/src/ownership-dependencies.ts +115 -5
  57. package/src/ports.ts +12 -543
  58. package/src/product-version.ts +75 -56
  59. package/src/projection-apply-types.ts +216 -0
  60. package/src/projection-apply-validators.ts +355 -0
  61. package/src/projection-capabilities.ts +181 -0
  62. package/src/projection-constants.ts +317 -0
  63. package/src/projection-manifest-types.ts +298 -0
  64. package/src/projection-manifest.ts +12 -299
  65. package/src/projection-recovery-validators.ts +229 -0
  66. package/src/projection-request-validators.ts +326 -0
  67. package/src/projection-types.ts +365 -0
  68. package/src/projection-validation-helpers.ts +15 -0
  69. package/src/projection.ts +7 -1689
  70. package/src/ref-impact.ts +225 -33
  71. package/src/refactor-constants.ts +213 -0
  72. package/src/refactor-decision-validators.ts +350 -0
  73. package/src/refactor-evidence-types.ts +286 -0
  74. package/src/refactor-observation-validators.ts +359 -0
  75. package/src/refactor-resolution-validators.ts +229 -0
  76. package/src/refactor-snapshot-validators.ts +368 -0
  77. package/src/refactor-types.ts +270 -0
  78. package/src/refactor-v2.ts +389 -0
  79. package/src/refactor-validation-helpers.ts +195 -0
  80. package/src/refactor.ts +7 -1849
  81. package/src/review-guards.ts +3 -23
  82. package/src/runtime-verify.ts +87 -0
  83. package/src/schema-kit.ts +183 -0
  84. package/src/schema-registry.ts +73 -0
  85. package/src/schema.ts +0 -4
  86. package/src/state-machine-schemas.ts +192 -0
  87. package/src/state-machine-types.ts +188 -0
  88. package/src/state-machine.ts +9 -189
  89. package/fixtures/boundary/agent-job-expired.json +0 -33
  90. package/fixtures/invalid/adapter-fidelity-reverse-sync.json +0 -9
  91. package/fixtures/invalid/agent-job-direct-mutation.json +0 -32
  92. package/fixtures/invalid/cloud-egress-envelope-private-field.json +0 -12
  93. package/fixtures/invalid/investigation-report-direct-mutation.json +0 -38
  94. package/fixtures/invalid/investigation-report-missing-proposed-delta.json +0 -19
  95. package/fixtures/invalid/notification-event-code-field.json +0 -11
  96. package/fixtures/valid/adapter-fidelity.json +0 -9
  97. package/fixtures/valid/agent-job.json +0 -33
  98. package/fixtures/valid/architecture-candidate-delta-policy.json +0 -45
  99. package/fixtures/valid/architecture-candidate-delta.json +0 -188
  100. package/fixtures/valid/chatgpt-ga-tool.json +0 -9
  101. package/fixtures/valid/cloud-egress-envelope.json +0 -11
  102. package/fixtures/valid/entitlement.json +0 -12
  103. package/fixtures/valid/investigation-report.json +0 -38
  104. package/fixtures/valid/likec4-mapping.json +0 -14
  105. package/fixtures/valid/notification-event.json +0 -10
  106. package/fixtures/valid/notification-provider.json +0 -12
  107. package/fixtures/valid/structurizr-mapping.json +0 -15
  108. package/schemas/cloud/cloud-egress-envelope.schema.json +0 -19
  109. package/schemas/cloud/entitlement.schema.json +0 -24
  110. package/schemas/integrations/adapter-fidelity.schema.json +0 -21
  111. package/schemas/integrations/chatgpt-ga-tool.schema.json +0 -25
  112. package/schemas/integrations/likec4-mapping.schema.json +0 -32
  113. package/schemas/integrations/structurizr-mapping.schema.json +0 -33
  114. package/schemas/runtime/agent-job.schema.json +0 -63
  115. package/schemas/runtime/architecture-candidate-delta-policy.schema.json +0 -129
  116. package/schemas/runtime/architecture-candidate-delta.schema.json +0 -386
  117. package/schemas/runtime/investigation-report.schema.json +0 -119
  118. package/schemas/runtime/notification-event.schema.json +0 -18
  119. package/schemas/runtime/notification-provider.schema.json +0 -26
@@ -0,0 +1,505 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archcontext.dev/schemas/runtime/refactor-simulate.schema.json",
4
+ "title": "RefactorSimulateV1",
5
+ "description": "Read-only move/cut impact simulation preview (#638, #643 Phase 2).",
6
+ "additionalProperties": false,
7
+ "type": "object",
8
+ "required": [
9
+ "schemaVersion",
10
+ "beforeSnapshotDigest",
11
+ "modelDigest",
12
+ "codeFactsCoverage",
13
+ "moves",
14
+ "targetSubject",
15
+ "measurementStatus",
16
+ "unmeasuredReasons",
17
+ "metricsDelta",
18
+ "newlyIntroducedCycles",
19
+ "resolvedCycles",
20
+ "newlyIntroducedViolations",
21
+ "cutCandidates",
22
+ "simulationDigest",
23
+ "privacy"
24
+ ],
25
+ "properties": {
26
+ "schemaVersion": {
27
+ "const": "archcontext.runtime-refactor-simulate/v1"
28
+ },
29
+ "beforeSnapshotDigest": {
30
+ "pattern": "^sha256:[a-f0-9]{64}$",
31
+ "type": "string"
32
+ },
33
+ "modelDigest": {
34
+ "pattern": "^sha256:[a-f0-9]{64}$",
35
+ "type": "string"
36
+ },
37
+ "codeFactsCoverage": {
38
+ "type": "string",
39
+ "enum": [
40
+ "complete",
41
+ "partial",
42
+ "unknown"
43
+ ]
44
+ },
45
+ "moves": {
46
+ "type": "array",
47
+ "items": {
48
+ "additionalProperties": false,
49
+ "type": "object",
50
+ "required": [
51
+ "path",
52
+ "toNodeId"
53
+ ],
54
+ "properties": {
55
+ "path": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "not": {
59
+ "anyOf": [
60
+ {
61
+ "pattern": "^/"
62
+ },
63
+ {
64
+ "pattern": "\\\\"
65
+ },
66
+ {
67
+ "pattern": "(^|/)\\.\\.(/|$)"
68
+ }
69
+ ]
70
+ }
71
+ },
72
+ "toNodeId": {
73
+ "minLength": 1,
74
+ "type": "string"
75
+ },
76
+ "symbols": {
77
+ "uniqueItems": true,
78
+ "minItems": 1,
79
+ "type": "array",
80
+ "items": {
81
+ "minLength": 1,
82
+ "type": "string"
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "targetSubject": {
89
+ "anyOf": [
90
+ {
91
+ "minLength": 1,
92
+ "type": "string"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ "measurementStatus": {
100
+ "type": "string",
101
+ "enum": [
102
+ "measured",
103
+ "unmeasured"
104
+ ]
105
+ },
106
+ "unmeasuredReasons": {
107
+ "uniqueItems": true,
108
+ "type": "array",
109
+ "items": {
110
+ "minLength": 1,
111
+ "maxLength": 1024,
112
+ "type": "string"
113
+ }
114
+ },
115
+ "metricsDelta": {
116
+ "additionalProperties": false,
117
+ "type": "object",
118
+ "required": [
119
+ "before",
120
+ "after",
121
+ "delta"
122
+ ],
123
+ "properties": {
124
+ "before": {
125
+ "additionalProperties": false,
126
+ "type": "object",
127
+ "required": [
128
+ "pairThinDirectionEdgeCount",
129
+ "crossModuleEdgeCount",
130
+ "crossModuleCycleCount",
131
+ "residualCycleCount",
132
+ "directionViolationCount"
133
+ ],
134
+ "properties": {
135
+ "pairThinDirectionEdgeCount": {
136
+ "minimum": 0,
137
+ "type": "integer"
138
+ },
139
+ "crossModuleEdgeCount": {
140
+ "minimum": 0,
141
+ "type": "integer"
142
+ },
143
+ "crossModuleCycleCount": {
144
+ "minimum": 0,
145
+ "type": "integer"
146
+ },
147
+ "residualCycleCount": {
148
+ "minimum": 0,
149
+ "type": "integer"
150
+ },
151
+ "directionViolationCount": {
152
+ "minimum": 0,
153
+ "type": "integer"
154
+ }
155
+ }
156
+ },
157
+ "after": {
158
+ "anyOf": [
159
+ {
160
+ "additionalProperties": false,
161
+ "type": "object",
162
+ "required": [
163
+ "pairThinDirectionEdgeCount",
164
+ "crossModuleEdgeCount",
165
+ "crossModuleCycleCount",
166
+ "residualCycleCount",
167
+ "directionViolationCount"
168
+ ],
169
+ "properties": {
170
+ "pairThinDirectionEdgeCount": {
171
+ "minimum": 0,
172
+ "type": "integer"
173
+ },
174
+ "crossModuleEdgeCount": {
175
+ "minimum": 0,
176
+ "type": "integer"
177
+ },
178
+ "crossModuleCycleCount": {
179
+ "minimum": 0,
180
+ "type": "integer"
181
+ },
182
+ "residualCycleCount": {
183
+ "minimum": 0,
184
+ "type": "integer"
185
+ },
186
+ "directionViolationCount": {
187
+ "minimum": 0,
188
+ "type": "integer"
189
+ }
190
+ }
191
+ },
192
+ {
193
+ "type": "null"
194
+ }
195
+ ]
196
+ },
197
+ "delta": {
198
+ "anyOf": [
199
+ {
200
+ "additionalProperties": false,
201
+ "type": "object",
202
+ "required": [
203
+ "pairThinDirectionEdgeCount",
204
+ "crossModuleEdgeCount",
205
+ "crossModuleCycleCount",
206
+ "residualCycleCount",
207
+ "directionViolationCount"
208
+ ],
209
+ "properties": {
210
+ "pairThinDirectionEdgeCount": {
211
+ "type": "integer"
212
+ },
213
+ "crossModuleEdgeCount": {
214
+ "type": "integer"
215
+ },
216
+ "crossModuleCycleCount": {
217
+ "type": "integer"
218
+ },
219
+ "residualCycleCount": {
220
+ "type": "integer"
221
+ },
222
+ "directionViolationCount": {
223
+ "type": "integer"
224
+ }
225
+ }
226
+ },
227
+ {
228
+ "type": "null"
229
+ }
230
+ ]
231
+ }
232
+ }
233
+ },
234
+ "newlyIntroducedCycles": {
235
+ "type": "array",
236
+ "items": {
237
+ "minLength": 1,
238
+ "type": "string"
239
+ }
240
+ },
241
+ "resolvedCycles": {
242
+ "type": "array",
243
+ "items": {
244
+ "minLength": 1,
245
+ "type": "string"
246
+ }
247
+ },
248
+ "newlyIntroducedViolations": {
249
+ "type": "array",
250
+ "items": {
251
+ "additionalProperties": false,
252
+ "type": "object",
253
+ "required": [
254
+ "constraintId",
255
+ "fromPath",
256
+ "toPath",
257
+ "fromNode",
258
+ "toNode",
259
+ "severity"
260
+ ],
261
+ "properties": {
262
+ "constraintId": {
263
+ "minLength": 1,
264
+ "type": "string"
265
+ },
266
+ "fromPath": {
267
+ "type": "string",
268
+ "minLength": 1,
269
+ "not": {
270
+ "anyOf": [
271
+ {
272
+ "pattern": "^/"
273
+ },
274
+ {
275
+ "pattern": "\\\\"
276
+ },
277
+ {
278
+ "pattern": "(^|/)\\.\\.(/|$)"
279
+ }
280
+ ]
281
+ }
282
+ },
283
+ "toPath": {
284
+ "type": "string",
285
+ "minLength": 1,
286
+ "not": {
287
+ "anyOf": [
288
+ {
289
+ "pattern": "^/"
290
+ },
291
+ {
292
+ "pattern": "\\\\"
293
+ },
294
+ {
295
+ "pattern": "(^|/)\\.\\.(/|$)"
296
+ }
297
+ ]
298
+ }
299
+ },
300
+ "fromNode": {
301
+ "minLength": 1,
302
+ "type": "string"
303
+ },
304
+ "toNode": {
305
+ "minLength": 1,
306
+ "type": "string"
307
+ },
308
+ "severity": {
309
+ "enum": [
310
+ "notice",
311
+ "warning",
312
+ "error",
313
+ "critical"
314
+ ]
315
+ },
316
+ "fromLayer": {
317
+ "minLength": 1,
318
+ "type": "string"
319
+ },
320
+ "toLayer": {
321
+ "minLength": 1,
322
+ "type": "string"
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "cutCandidates": {
328
+ "type": "array",
329
+ "items": {
330
+ "additionalProperties": false,
331
+ "type": "object",
332
+ "required": [
333
+ "strategy",
334
+ "measured",
335
+ "measurementStatus",
336
+ "summary",
337
+ "moves",
338
+ "thinDirectionEdgeDelta",
339
+ "crossModuleCycleDelta",
340
+ "directionViolationDelta",
341
+ "newlyIntroducedViolationCount",
342
+ "breaksPair",
343
+ "caveats"
344
+ ],
345
+ "properties": {
346
+ "strategy": {
347
+ "type": "string",
348
+ "enum": [
349
+ "move-source-file",
350
+ "move-target-file",
351
+ "extract-shared-leaf",
352
+ "invert-interface"
353
+ ]
354
+ },
355
+ "measured": {
356
+ "type": "boolean"
357
+ },
358
+ "measurementStatus": {
359
+ "type": "string",
360
+ "enum": [
361
+ "measured",
362
+ "unmeasured"
363
+ ]
364
+ },
365
+ "summary": {
366
+ "minLength": 1,
367
+ "maxLength": 1024,
368
+ "type": "string"
369
+ },
370
+ "moves": {
371
+ "type": "array",
372
+ "items": {
373
+ "additionalProperties": false,
374
+ "type": "object",
375
+ "required": [
376
+ "path",
377
+ "toNodeId"
378
+ ],
379
+ "properties": {
380
+ "path": {
381
+ "type": "string",
382
+ "minLength": 1,
383
+ "not": {
384
+ "anyOf": [
385
+ {
386
+ "pattern": "^/"
387
+ },
388
+ {
389
+ "pattern": "\\\\"
390
+ },
391
+ {
392
+ "pattern": "(^|/)\\.\\.(/|$)"
393
+ }
394
+ ]
395
+ }
396
+ },
397
+ "toNodeId": {
398
+ "minLength": 1,
399
+ "type": "string"
400
+ },
401
+ "symbols": {
402
+ "uniqueItems": true,
403
+ "minItems": 1,
404
+ "type": "array",
405
+ "items": {
406
+ "minLength": 1,
407
+ "type": "string"
408
+ }
409
+ }
410
+ }
411
+ }
412
+ },
413
+ "thinDirectionEdgeDelta": {
414
+ "anyOf": [
415
+ {
416
+ "type": "integer"
417
+ },
418
+ {
419
+ "type": "null"
420
+ }
421
+ ]
422
+ },
423
+ "crossModuleCycleDelta": {
424
+ "anyOf": [
425
+ {
426
+ "type": "integer"
427
+ },
428
+ {
429
+ "type": "null"
430
+ }
431
+ ]
432
+ },
433
+ "directionViolationDelta": {
434
+ "anyOf": [
435
+ {
436
+ "type": "integer"
437
+ },
438
+ {
439
+ "type": "null"
440
+ }
441
+ ]
442
+ },
443
+ "newlyIntroducedViolationCount": {
444
+ "anyOf": [
445
+ {
446
+ "minimum": 0,
447
+ "type": "integer"
448
+ },
449
+ {
450
+ "type": "null"
451
+ }
452
+ ]
453
+ },
454
+ "breaksPair": {
455
+ "anyOf": [
456
+ {
457
+ "type": "boolean"
458
+ },
459
+ {
460
+ "type": "null"
461
+ }
462
+ ]
463
+ },
464
+ "caveats": {
465
+ "uniqueItems": true,
466
+ "type": "array",
467
+ "items": {
468
+ "minLength": 1,
469
+ "maxLength": 1024,
470
+ "type": "string"
471
+ }
472
+ }
473
+ }
474
+ }
475
+ },
476
+ "simulationDigest": {
477
+ "pattern": "^sha256:[a-f0-9]{64}$",
478
+ "type": "string"
479
+ },
480
+ "privacy": {
481
+ "additionalProperties": false,
482
+ "type": "object",
483
+ "required": [
484
+ "writes",
485
+ "rawSourcePersisted",
486
+ "rawDiffPersisted",
487
+ "promptPersisted"
488
+ ],
489
+ "properties": {
490
+ "writes": {
491
+ "const": "none"
492
+ },
493
+ "rawSourcePersisted": {
494
+ "const": false
495
+ },
496
+ "rawDiffPersisted": {
497
+ "const": false
498
+ },
499
+ "promptPersisted": {
500
+ "const": false
501
+ }
502
+ }
503
+ }
504
+ }
505
+ }
@@ -0,0 +1,172 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://archcontext.dev/schemas/runtime/refactor-verify-v2.schema.json",
4
+ "title": "RefactorVerifyV2",
5
+ "description": "v2 Stage 5 attested resolution verification output for `archctx verify <id> --json` (#643).",
6
+ "additionalProperties": false,
7
+ "type": "object",
8
+ "required": [
9
+ "schemaVersion",
10
+ "recommendationId",
11
+ "headSha",
12
+ "snapshotDigest",
13
+ "disposition",
14
+ "resolutionDigest",
15
+ "killListChecks",
16
+ "metricChecks",
17
+ "blockingReasons"
18
+ ],
19
+ "properties": {
20
+ "schemaVersion": {
21
+ "const": "archcontext.refactor-verify/v2"
22
+ },
23
+ "recommendationId": {
24
+ "pattern": "^recommendation\\.[a-f0-9]{16}$",
25
+ "type": "string"
26
+ },
27
+ "headSha": {
28
+ "pattern": "^[a-f0-9]{40}$",
29
+ "type": "string"
30
+ },
31
+ "snapshotDigest": {
32
+ "pattern": "^sha256:[a-f0-9]{64}$",
33
+ "type": "string"
34
+ },
35
+ "disposition": {
36
+ "type": "string",
37
+ "enum": [
38
+ "resolved",
39
+ "partially_resolved",
40
+ "unresolved",
41
+ "regressed",
42
+ "stale"
43
+ ]
44
+ },
45
+ "resolutionDigest": {
46
+ "pattern": "^sha256:[a-f0-9]{64}$",
47
+ "type": "string"
48
+ },
49
+ "killListChecks": {
50
+ "type": "array",
51
+ "items": {
52
+ "additionalProperties": false,
53
+ "type": "object",
54
+ "required": [
55
+ "kind",
56
+ "target",
57
+ "required",
58
+ "status"
59
+ ],
60
+ "properties": {
61
+ "kind": {
62
+ "type": "string",
63
+ "enum": [
64
+ "path",
65
+ "relation",
66
+ "symbol"
67
+ ]
68
+ },
69
+ "target": {
70
+ "minLength": 1,
71
+ "type": "string"
72
+ },
73
+ "required": {
74
+ "type": "boolean"
75
+ },
76
+ "status": {
77
+ "type": "string",
78
+ "enum": [
79
+ "removed",
80
+ "still-present",
81
+ "uncheckable"
82
+ ]
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "metricChecks": {
88
+ "type": "array",
89
+ "items": {
90
+ "additionalProperties": false,
91
+ "type": "object",
92
+ "required": [
93
+ "metric",
94
+ "before",
95
+ "after",
96
+ "satisfied"
97
+ ],
98
+ "properties": {
99
+ "metric": {
100
+ "minLength": 1,
101
+ "type": "string"
102
+ },
103
+ "before": {
104
+ "anyOf": [
105
+ {
106
+ "type": "number"
107
+ },
108
+ {
109
+ "type": "null"
110
+ }
111
+ ]
112
+ },
113
+ "after": {
114
+ "anyOf": [
115
+ {
116
+ "type": "number"
117
+ },
118
+ {
119
+ "type": "null"
120
+ }
121
+ ]
122
+ },
123
+ "satisfied": {
124
+ "type": "boolean"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "blockingReasons": {
130
+ "uniqueItems": true,
131
+ "type": "array",
132
+ "items": {
133
+ "minLength": 1,
134
+ "maxLength": 1024,
135
+ "type": "string"
136
+ }
137
+ },
138
+ "historicalReceipt": {
139
+ "additionalProperties": false,
140
+ "type": "object",
141
+ "required": [
142
+ "status",
143
+ "headSha",
144
+ "resolutionDigest"
145
+ ],
146
+ "properties": {
147
+ "status": {
148
+ "type": "string",
149
+ "enum": [
150
+ "acknowledged",
151
+ "accepted",
152
+ "deferred",
153
+ "rejected",
154
+ "resolved",
155
+ "waived"
156
+ ]
157
+ },
158
+ "headSha": {
159
+ "pattern": "^[a-f0-9]{40}$",
160
+ "type": "string"
161
+ },
162
+ "resolutionDigest": {
163
+ "pattern": "^sha256:[a-f0-9]{64}$",
164
+ "type": [
165
+ "string",
166
+ "null"
167
+ ]
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }