@techis/ai-contracts 0.3.0-rc.16 → 0.4.0-rc.4

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 (243) hide show
  1. package/README.md +41 -17
  2. package/THIRD_PARTY_NOTICES +34 -34
  3. package/dist/adoption-common.d.ts +19 -0
  4. package/dist/adoption-common.d.ts.map +1 -0
  5. package/dist/adoption-common.js +27 -0
  6. package/dist/adoption-common.js.map +1 -0
  7. package/dist/application-execution-review.d.ts +34 -0
  8. package/dist/application-execution-review.d.ts.map +1 -0
  9. package/dist/application-execution-review.js +25 -0
  10. package/dist/application-execution-review.js.map +1 -0
  11. package/dist/application-route-adoption.d.ts +30 -0
  12. package/dist/application-route-adoption.d.ts.map +1 -0
  13. package/dist/application-route-adoption.js +21 -0
  14. package/dist/application-route-adoption.js.map +1 -0
  15. package/dist/catalog-delivery.d.ts +5 -0
  16. package/dist/catalog-delivery.d.ts.map +1 -1
  17. package/dist/catalog-delivery.js +24 -6
  18. package/dist/catalog-delivery.js.map +1 -1
  19. package/dist/catalog-package-data.d.ts.map +1 -1
  20. package/dist/catalog-package-data.js +43080 -7
  21. package/dist/catalog-package-data.js.map +1 -1
  22. package/dist/catalog-publication.d.ts +64 -0
  23. package/dist/catalog-publication.d.ts.map +1 -0
  24. package/dist/catalog-publication.js +113 -0
  25. package/dist/catalog-publication.js.map +1 -0
  26. package/dist/catalog-source-completeness.d.ts +27 -0
  27. package/dist/catalog-source-completeness.d.ts.map +1 -0
  28. package/dist/catalog-source-completeness.js +75 -0
  29. package/dist/catalog-source-completeness.js.map +1 -0
  30. package/dist/compatibility.d.ts +5 -2
  31. package/dist/compatibility.d.ts.map +1 -1
  32. package/dist/compatibility.js +42 -21
  33. package/dist/compatibility.js.map +1 -1
  34. package/dist/configuration-bundle.d.ts +7 -0
  35. package/dist/configuration-bundle.d.ts.map +1 -1
  36. package/dist/configuration-bundle.js +61 -16
  37. package/dist/configuration-bundle.js.map +1 -1
  38. package/dist/direct-model-receipt.d.ts +29 -0
  39. package/dist/direct-model-receipt.d.ts.map +1 -0
  40. package/dist/direct-model-receipt.js +21 -0
  41. package/dist/direct-model-receipt.js.map +1 -0
  42. package/dist/entities.d.ts +53 -19
  43. package/dist/entities.d.ts.map +1 -1
  44. package/dist/execution-provenance.d.ts +14 -0
  45. package/dist/execution-provenance.d.ts.map +1 -0
  46. package/dist/execution-provenance.js +15 -0
  47. package/dist/execution-provenance.js.map +1 -0
  48. package/dist/generation.d.ts +184 -0
  49. package/dist/generation.d.ts.map +1 -0
  50. package/dist/generation.js +2 -0
  51. package/dist/generation.js.map +1 -0
  52. package/dist/incremental-catalog-review.d.ts +152 -0
  53. package/dist/incremental-catalog-review.d.ts.map +1 -0
  54. package/dist/incremental-catalog-review.js +283 -0
  55. package/dist/incremental-catalog-review.js.map +1 -0
  56. package/dist/independent-validation.d.ts +8 -0
  57. package/dist/independent-validation.d.ts.map +1 -0
  58. package/dist/independent-validation.js +42 -0
  59. package/dist/independent-validation.js.map +1 -0
  60. package/dist/index.d.ts +24 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +24 -1
  63. package/dist/index.js.map +1 -1
  64. package/dist/model-configuration.d.ts +79 -0
  65. package/dist/model-configuration.d.ts.map +1 -0
  66. package/dist/model-configuration.js +172 -0
  67. package/dist/model-configuration.js.map +1 -0
  68. package/dist/model-maintenance.d.ts +13 -1
  69. package/dist/model-maintenance.d.ts.map +1 -1
  70. package/dist/model-maintenance.js +41 -22
  71. package/dist/model-maintenance.js.map +1 -1
  72. package/dist/model-package-data.d.ts.map +1 -1
  73. package/dist/model-package-data.js +34889 -2762
  74. package/dist/model-package-data.js.map +1 -1
  75. package/dist/model-receipt.d.ts +14 -0
  76. package/dist/model-receipt.d.ts.map +1 -0
  77. package/dist/model-receipt.js +16 -0
  78. package/dist/model-receipt.js.map +1 -0
  79. package/dist/model-resources.d.ts +206 -0
  80. package/dist/model-resources.d.ts.map +1 -0
  81. package/dist/model-resources.js +154 -0
  82. package/dist/model-resources.js.map +1 -0
  83. package/dist/named-configuration.d.ts +113 -0
  84. package/dist/named-configuration.d.ts.map +1 -0
  85. package/dist/named-configuration.js +226 -0
  86. package/dist/named-configuration.js.map +1 -0
  87. package/dist/native-receipt.d.ts +13 -0
  88. package/dist/native-receipt.d.ts.map +1 -0
  89. package/dist/native-receipt.js +7 -0
  90. package/dist/native-receipt.js.map +1 -0
  91. package/dist/profile-identity.js +2 -2
  92. package/dist/profile-identity.js.map +1 -1
  93. package/dist/profile-receipt.d.ts +8 -0
  94. package/dist/profile-receipt.d.ts.map +1 -0
  95. package/dist/profile-receipt.js +14 -0
  96. package/dist/profile-receipt.js.map +1 -0
  97. package/dist/provider-listings.d.ts +3 -3
  98. package/dist/provider-listings.d.ts.map +1 -1
  99. package/dist/provider-listings.js +46 -12
  100. package/dist/provider-listings.js.map +1 -1
  101. package/dist/reasoning-validation.d.ts +3 -1
  102. package/dist/reasoning-validation.d.ts.map +1 -1
  103. package/dist/reasoning-validation.js +34 -14
  104. package/dist/reasoning-validation.js.map +1 -1
  105. package/dist/reasoning.d.ts.map +1 -1
  106. package/dist/reasoning.js +18 -8
  107. package/dist/reasoning.js.map +1 -1
  108. package/dist/request-route.d.ts +34 -0
  109. package/dist/request-route.d.ts.map +1 -0
  110. package/dist/request-route.js +42 -0
  111. package/dist/request-route.js.map +1 -0
  112. package/dist/route-assessment.d.ts +34 -0
  113. package/dist/route-assessment.d.ts.map +1 -0
  114. package/dist/route-assessment.js +48 -0
  115. package/dist/route-assessment.js.map +1 -0
  116. package/dist/route-export.d.ts +20 -0
  117. package/dist/route-export.d.ts.map +1 -0
  118. package/dist/route-export.js +54 -0
  119. package/dist/route-export.js.map +1 -0
  120. package/dist/route-helpers.d.ts +51 -0
  121. package/dist/route-helpers.d.ts.map +1 -0
  122. package/dist/route-helpers.js +31 -0
  123. package/dist/route-helpers.js.map +1 -0
  124. package/dist/route-import.d.ts +98 -0
  125. package/dist/route-import.d.ts.map +1 -0
  126. package/dist/route-import.js +124 -0
  127. package/dist/route-import.js.map +1 -0
  128. package/dist/route-receipt.d.ts +46 -0
  129. package/dist/route-receipt.d.ts.map +1 -0
  130. package/dist/route-receipt.js +95 -0
  131. package/dist/route-receipt.js.map +1 -0
  132. package/dist/route-set-export.d.ts +4 -0
  133. package/dist/route-set-export.d.ts.map +1 -0
  134. package/dist/route-set-export.js +31 -0
  135. package/dist/route-set-export.js.map +1 -0
  136. package/dist/route-set.d.ts +61 -0
  137. package/dist/route-set.d.ts.map +1 -0
  138. package/dist/route-set.js +103 -0
  139. package/dist/route-set.js.map +1 -0
  140. package/dist/route-usage.d.ts +36 -0
  141. package/dist/route-usage.d.ts.map +1 -0
  142. package/dist/route-usage.js +62 -0
  143. package/dist/route-usage.js.map +1 -0
  144. package/dist/schemas/adoption.d.ts +95 -0
  145. package/dist/schemas/adoption.d.ts.map +1 -0
  146. package/dist/schemas/adoption.js +73 -0
  147. package/dist/schemas/adoption.js.map +1 -0
  148. package/dist/schemas/application-execution-review.schema.json +416 -0
  149. package/dist/schemas/application-route-adoption.schema.json +224 -0
  150. package/dist/schemas/catalog-release.schema.json +17 -0
  151. package/dist/schemas/config.d.ts +273 -1
  152. package/dist/schemas/config.d.ts.map +1 -1
  153. package/dist/schemas/config.js +22 -3
  154. package/dist/schemas/config.js.map +1 -1
  155. package/dist/schemas/core.d.ts +369 -0
  156. package/dist/schemas/core.d.ts.map +1 -1
  157. package/dist/schemas/core.js +11 -1
  158. package/dist/schemas/core.js.map +1 -1
  159. package/dist/schemas/direct-model-execution-receipt.schema.json +864 -0
  160. package/dist/schemas/direct-model-receipt.d.ts +270 -0
  161. package/dist/schemas/direct-model-receipt.d.ts.map +1 -0
  162. package/dist/schemas/direct-model-receipt.js +13 -0
  163. package/dist/schemas/direct-model-receipt.js.map +1 -0
  164. package/dist/schemas/execution-receipt.schema.json +483 -3
  165. package/dist/schemas/execution-requirements.schema.json +47 -0
  166. package/dist/schemas/generation.d.ts +117 -0
  167. package/dist/schemas/generation.d.ts.map +1 -0
  168. package/dist/schemas/generation.js +44 -0
  169. package/dist/schemas/generation.js.map +1 -0
  170. package/dist/schemas/independent.d.ts +50 -0
  171. package/dist/schemas/independent.d.ts.map +1 -0
  172. package/dist/schemas/independent.js +85 -0
  173. package/dist/schemas/independent.js.map +1 -0
  174. package/dist/schemas/index.d.ts +4 -1
  175. package/dist/schemas/index.d.ts.map +1 -1
  176. package/dist/schemas/index.js +15 -1
  177. package/dist/schemas/index.js.map +1 -1
  178. package/dist/schemas/model-configuration-content.schema.json +92 -0
  179. package/dist/schemas/model-configuration-request.schema.json +53 -0
  180. package/dist/schemas/model-configuration-revision.schema.json +151 -0
  181. package/dist/schemas/model-configuration-snapshot.schema.json +381 -0
  182. package/dist/schemas/model-configuration.schema.json +72 -0
  183. package/dist/schemas/model-definition.schema.json +191 -0
  184. package/dist/schemas/model-execution-receipt.schema.json +889 -0
  185. package/dist/schemas/model-package-release.schema.json +645 -0
  186. package/dist/schemas/model-receipt.d.ts +598 -0
  187. package/dist/schemas/model-receipt.d.ts.map +1 -0
  188. package/dist/schemas/model-receipt.js +23 -0
  189. package/dist/schemas/model-receipt.js.map +1 -0
  190. package/dist/schemas/model-resource-snapshot.schema.json +164 -0
  191. package/dist/schemas/model-settings.schema.json +22 -0
  192. package/dist/schemas/native-execution-receipt.schema.json +919 -0
  193. package/dist/schemas/native-receipt.d.ts +624 -0
  194. package/dist/schemas/native-receipt.d.ts.map +1 -0
  195. package/dist/schemas/native-receipt.js +16 -0
  196. package/dist/schemas/native-receipt.js.map +1 -0
  197. package/dist/schemas/profile-execution-receipt.schema.json +853 -0
  198. package/dist/schemas/profile-receipt.d.ts +579 -0
  199. package/dist/schemas/profile-receipt.d.ts.map +1 -0
  200. package/dist/schemas/profile-receipt.js +20 -0
  201. package/dist/schemas/profile-receipt.js.map +1 -0
  202. package/dist/schemas/request-route-assessment.schema.json +288 -0
  203. package/dist/schemas/request-route-execution-receipt.schema.json +864 -0
  204. package/dist/schemas/request-route-export.schema.json +42 -0
  205. package/dist/schemas/request-route-metadata.schema.json +31 -0
  206. package/dist/schemas/request-route.schema.json +235 -0
  207. package/dist/schemas/route-configuration.schema.json +205 -0
  208. package/dist/schemas/route-import-authoring.schema.json +426 -0
  209. package/dist/schemas/route-import-journal.schema.json +119 -0
  210. package/dist/schemas/route-import-proposal.schema.json +416 -0
  211. package/dist/schemas/route-import-result.schema.json +100 -0
  212. package/dist/schemas/route-set-content.schema.json +200 -0
  213. package/dist/schemas/route-set-execution-receipt.schema.json +889 -0
  214. package/dist/schemas/route-set-request.schema.json +64 -0
  215. package/dist/schemas/route-set-revision.schema.json +258 -0
  216. package/dist/schemas/route-set-snapshot.schema.json +615 -0
  217. package/dist/schemas/route-set.schema.json +71 -0
  218. package/dist/schemas/routes.d.ts +435 -0
  219. package/dist/schemas/routes.d.ts.map +1 -0
  220. package/dist/schemas/routes.js +75 -0
  221. package/dist/schemas/routes.js.map +1 -0
  222. package/dist/schemas/system-instruction-revision.schema.json +55 -0
  223. package/dist/schemas/system-instruction.schema.json +72 -0
  224. package/dist/schemas/usage-aggregate-query.schema.json +25 -1
  225. package/dist/schemas/usage-page.schema.json +17 -1
  226. package/dist/schemas/usage-query.schema.json +20 -0
  227. package/dist/schemas/usage-summary.schema.json +88 -0
  228. package/dist/schemas/usage.d.ts +124 -4
  229. package/dist/schemas/usage.d.ts.map +1 -1
  230. package/dist/schemas/usage.js +18 -3
  231. package/dist/schemas/usage.js.map +1 -1
  232. package/dist/scoped-configuration.d.ts +2 -0
  233. package/dist/scoped-configuration.d.ts.map +1 -1
  234. package/dist/scoped-configuration.js.map +1 -1
  235. package/dist/scripts/emit-schemas.js +2 -0
  236. package/dist/scripts/emit-schemas.js.map +1 -1
  237. package/dist/system-instruction.d.ts +54 -0
  238. package/dist/system-instruction.d.ts.map +1 -0
  239. package/dist/system-instruction.js +64 -0
  240. package/dist/system-instruction.js.map +1 -0
  241. package/package.json +33 -33
  242. package/third-party-licenses.json +2 -7
  243. /package/third-party-licenses/{fast-uri@3.1.7 → fast-uri@3.1.9}/LICENSE +0 -0
@@ -589,6 +589,651 @@
589
589
  "payloadHash": {
590
590
  "type": "string",
591
591
  "pattern": "^[a-f0-9]{64}$"
592
+ },
593
+ "incrementalReview": {
594
+ "type": "object",
595
+ "additionalProperties": false,
596
+ "required": [
597
+ "schemaVersion",
598
+ "kind",
599
+ "baselineInput",
600
+ "rounds",
601
+ "outcome",
602
+ "compositionHash"
603
+ ],
604
+ "properties": {
605
+ "schemaVersion": {
606
+ "const": 1
607
+ },
608
+ "kind": {
609
+ "const": "incremental-catalog-review"
610
+ },
611
+ "baselineInput": {
612
+ "type": "object",
613
+ "additionalProperties": false,
614
+ "required": [
615
+ "base",
616
+ "catalog",
617
+ "evidence",
618
+ "policy"
619
+ ],
620
+ "properties": {
621
+ "base": {},
622
+ "catalog": {},
623
+ "evidence": {
624
+ "type": "array",
625
+ "items": {
626
+ "type": "object",
627
+ "additionalProperties": false,
628
+ "required": [
629
+ "evidenceId",
630
+ "kind",
631
+ "uri",
632
+ "collectedAt",
633
+ "content",
634
+ "sha256",
635
+ "claims"
636
+ ],
637
+ "properties": {
638
+ "evidenceId": {
639
+ "type": "string",
640
+ "minLength": 1
641
+ },
642
+ "kind": {
643
+ "enum": [
644
+ "provider-documentation",
645
+ "provider-discovery",
646
+ "provider-advisory",
647
+ "evaluation",
648
+ "host-qualification"
649
+ ]
650
+ },
651
+ "uri": {
652
+ "type": "string",
653
+ "minLength": 1
654
+ },
655
+ "collectedAt": {
656
+ "type": "string",
657
+ "minLength": 1
658
+ },
659
+ "content": {
660
+ "type": "string",
661
+ "minLength": 1
662
+ },
663
+ "sha256": {
664
+ "type": "string",
665
+ "pattern": "^[a-f0-9]{64}$"
666
+ },
667
+ "claims": {
668
+ "type": "array",
669
+ "items": {
670
+ "type": "object",
671
+ "additionalProperties": false,
672
+ "required": [
673
+ "key",
674
+ "value",
675
+ "quote"
676
+ ],
677
+ "properties": {
678
+ "key": {
679
+ "type": "string",
680
+ "minLength": 1
681
+ },
682
+ "value": {},
683
+ "quote": {
684
+ "type": "string",
685
+ "minLength": 1
686
+ },
687
+ "taskDefinition": {
688
+ "type": "string",
689
+ "minLength": 1
690
+ },
691
+ "successCriterion": {
692
+ "type": "string",
693
+ "minLength": 1
694
+ }
695
+ }
696
+ }
697
+ }
698
+ }
699
+ }
700
+ },
701
+ "policy": {
702
+ "type": "object",
703
+ "additionalProperties": false,
704
+ "required": [
705
+ "revision",
706
+ "allowedSourceOrigins",
707
+ "maxEvidenceAgeDays"
708
+ ],
709
+ "properties": {
710
+ "schemaVersion": {
711
+ "const": 2
712
+ },
713
+ "revision": {
714
+ "type": "string",
715
+ "minLength": 1
716
+ },
717
+ "allowedSourceOrigins": {
718
+ "type": "array",
719
+ "items": {
720
+ "type": "string",
721
+ "minLength": 1
722
+ },
723
+ "minItems": 1
724
+ },
725
+ "maxEvidenceAgeDays": {
726
+ "anyOf": [
727
+ {
728
+ "type": "number",
729
+ "minimum": 0
730
+ },
731
+ {
732
+ "type": "null"
733
+ }
734
+ ]
735
+ },
736
+ "hostQualification": {
737
+ "type": "object",
738
+ "additionalProperties": false,
739
+ "required": [
740
+ "schemaVersion",
741
+ "artifactPins"
742
+ ],
743
+ "properties": {
744
+ "schemaVersion": {
745
+ "const": 1
746
+ },
747
+ "artifactPins": {
748
+ "type": "array",
749
+ "minItems": 1,
750
+ "items": {
751
+ "type": "object",
752
+ "additionalProperties": false,
753
+ "required": [
754
+ "qualificationSha256",
755
+ "runtimePackageSha256",
756
+ "adapterModuleSha256",
757
+ "receiptSha256",
758
+ "conformanceSha256"
759
+ ],
760
+ "properties": {
761
+ "qualificationSha256": {
762
+ "type": "string",
763
+ "pattern": "^[a-f0-9]{64}$"
764
+ },
765
+ "runtimePackageSha256": {
766
+ "type": "string",
767
+ "pattern": "^[a-f0-9]{64}$"
768
+ },
769
+ "adapterModuleSha256": {
770
+ "type": "string",
771
+ "pattern": "^[a-f0-9]{64}$"
772
+ },
773
+ "receiptSha256": {
774
+ "type": "string",
775
+ "pattern": "^[a-f0-9]{64}$"
776
+ },
777
+ "conformanceSha256": {
778
+ "type": "string",
779
+ "pattern": "^[a-f0-9]{64}$"
780
+ }
781
+ }
782
+ }
783
+ }
784
+ }
785
+ }
786
+ }
787
+ }
788
+ }
789
+ },
790
+ "rounds": {
791
+ "type": "array",
792
+ "minItems": 1,
793
+ "maxItems": 32,
794
+ "items": {
795
+ "type": "object",
796
+ "additionalProperties": false,
797
+ "required": [
798
+ "input",
799
+ "review"
800
+ ],
801
+ "properties": {
802
+ "input": {
803
+ "type": "object",
804
+ "additionalProperties": false,
805
+ "required": [
806
+ "base",
807
+ "catalog",
808
+ "evidence",
809
+ "policy"
810
+ ],
811
+ "properties": {
812
+ "base": {},
813
+ "catalog": {},
814
+ "evidence": {
815
+ "type": "array",
816
+ "items": {
817
+ "type": "object",
818
+ "additionalProperties": false,
819
+ "required": [
820
+ "evidenceId",
821
+ "kind",
822
+ "uri",
823
+ "collectedAt",
824
+ "content",
825
+ "sha256",
826
+ "claims"
827
+ ],
828
+ "properties": {
829
+ "evidenceId": {
830
+ "type": "string",
831
+ "minLength": 1
832
+ },
833
+ "kind": {
834
+ "enum": [
835
+ "provider-documentation",
836
+ "provider-discovery",
837
+ "provider-advisory",
838
+ "evaluation",
839
+ "host-qualification"
840
+ ]
841
+ },
842
+ "uri": {
843
+ "type": "string",
844
+ "minLength": 1
845
+ },
846
+ "collectedAt": {
847
+ "type": "string",
848
+ "minLength": 1
849
+ },
850
+ "content": {
851
+ "type": "string",
852
+ "minLength": 1
853
+ },
854
+ "sha256": {
855
+ "type": "string",
856
+ "pattern": "^[a-f0-9]{64}$"
857
+ },
858
+ "claims": {
859
+ "type": "array",
860
+ "items": {
861
+ "type": "object",
862
+ "additionalProperties": false,
863
+ "required": [
864
+ "key",
865
+ "value",
866
+ "quote"
867
+ ],
868
+ "properties": {
869
+ "key": {
870
+ "type": "string",
871
+ "minLength": 1
872
+ },
873
+ "value": {},
874
+ "quote": {
875
+ "type": "string",
876
+ "minLength": 1
877
+ },
878
+ "taskDefinition": {
879
+ "type": "string",
880
+ "minLength": 1
881
+ },
882
+ "successCriterion": {
883
+ "type": "string",
884
+ "minLength": 1
885
+ }
886
+ }
887
+ }
888
+ }
889
+ }
890
+ }
891
+ },
892
+ "policy": {
893
+ "type": "object",
894
+ "additionalProperties": false,
895
+ "required": [
896
+ "revision",
897
+ "allowedSourceOrigins",
898
+ "maxEvidenceAgeDays"
899
+ ],
900
+ "properties": {
901
+ "schemaVersion": {
902
+ "const": 2
903
+ },
904
+ "revision": {
905
+ "type": "string",
906
+ "minLength": 1
907
+ },
908
+ "allowedSourceOrigins": {
909
+ "type": "array",
910
+ "items": {
911
+ "type": "string",
912
+ "minLength": 1
913
+ },
914
+ "minItems": 1
915
+ },
916
+ "maxEvidenceAgeDays": {
917
+ "anyOf": [
918
+ {
919
+ "type": "number",
920
+ "minimum": 0
921
+ },
922
+ {
923
+ "type": "null"
924
+ }
925
+ ]
926
+ },
927
+ "hostQualification": {
928
+ "type": "object",
929
+ "additionalProperties": false,
930
+ "required": [
931
+ "schemaVersion",
932
+ "artifactPins"
933
+ ],
934
+ "properties": {
935
+ "schemaVersion": {
936
+ "const": 1
937
+ },
938
+ "artifactPins": {
939
+ "type": "array",
940
+ "minItems": 1,
941
+ "items": {
942
+ "type": "object",
943
+ "additionalProperties": false,
944
+ "required": [
945
+ "qualificationSha256",
946
+ "runtimePackageSha256",
947
+ "adapterModuleSha256",
948
+ "receiptSha256",
949
+ "conformanceSha256"
950
+ ],
951
+ "properties": {
952
+ "qualificationSha256": {
953
+ "type": "string",
954
+ "pattern": "^[a-f0-9]{64}$"
955
+ },
956
+ "runtimePackageSha256": {
957
+ "type": "string",
958
+ "pattern": "^[a-f0-9]{64}$"
959
+ },
960
+ "adapterModuleSha256": {
961
+ "type": "string",
962
+ "pattern": "^[a-f0-9]{64}$"
963
+ },
964
+ "receiptSha256": {
965
+ "type": "string",
966
+ "pattern": "^[a-f0-9]{64}$"
967
+ },
968
+ "conformanceSha256": {
969
+ "type": "string",
970
+ "pattern": "^[a-f0-9]{64}$"
971
+ }
972
+ }
973
+ }
974
+ }
975
+ }
976
+ }
977
+ }
978
+ }
979
+ }
980
+ },
981
+ "review": {
982
+ "type": "object",
983
+ "additionalProperties": false,
984
+ "required": [
985
+ "schemaVersion",
986
+ "kind",
987
+ "recordId",
988
+ "planHash",
989
+ "instructionsHash",
990
+ "reviewer",
991
+ "receipt",
992
+ "modelOutput",
993
+ "reviewedAt"
994
+ ],
995
+ "properties": {
996
+ "schemaVersion": {
997
+ "const": 1
998
+ },
999
+ "kind": {
1000
+ "const": "catalog-delta-review"
1001
+ },
1002
+ "recordId": {
1003
+ "type": "string",
1004
+ "pattern": "^[a-f0-9]{64}$"
1005
+ },
1006
+ "planHash": {
1007
+ "type": "string",
1008
+ "pattern": "^[a-f0-9]{64}$"
1009
+ },
1010
+ "instructionsHash": {
1011
+ "type": "string",
1012
+ "pattern": "^[a-f0-9]{64}$"
1013
+ },
1014
+ "reviewer": {
1015
+ "type": "object",
1016
+ "additionalProperties": false,
1017
+ "required": [
1018
+ "provider",
1019
+ "providerModelId",
1020
+ "profileId",
1021
+ "profileRevision",
1022
+ "spendingCap"
1023
+ ],
1024
+ "properties": {
1025
+ "provider": {
1026
+ "type": "string",
1027
+ "minLength": 1
1028
+ },
1029
+ "providerModelId": {
1030
+ "type": "string",
1031
+ "minLength": 1
1032
+ },
1033
+ "profileId": {
1034
+ "type": "string",
1035
+ "minLength": 1
1036
+ },
1037
+ "profileRevision": {
1038
+ "type": "string",
1039
+ "minLength": 1
1040
+ },
1041
+ "spendingCap": {
1042
+ "anyOf": [
1043
+ {
1044
+ "type": "object",
1045
+ "additionalProperties": false,
1046
+ "required": [
1047
+ "currency",
1048
+ "amount"
1049
+ ],
1050
+ "properties": {
1051
+ "currency": {
1052
+ "type": "string",
1053
+ "minLength": 1
1054
+ },
1055
+ "amount": {
1056
+ "type": "number",
1057
+ "minimum": 0
1058
+ }
1059
+ }
1060
+ },
1061
+ {
1062
+ "type": "null"
1063
+ }
1064
+ ]
1065
+ }
1066
+ }
1067
+ },
1068
+ "receipt": {
1069
+ "type": "object"
1070
+ },
1071
+ "modelOutput": {
1072
+ "type": "object",
1073
+ "additionalProperties": false,
1074
+ "required": [
1075
+ "schemaVersion",
1076
+ "planHash",
1077
+ "outcome",
1078
+ "findings",
1079
+ "metadataFindings",
1080
+ "closures",
1081
+ "issues"
1082
+ ],
1083
+ "properties": {
1084
+ "schemaVersion": {
1085
+ "const": 1
1086
+ },
1087
+ "planHash": {
1088
+ "type": "string",
1089
+ "pattern": "^[a-f0-9]{64}$"
1090
+ },
1091
+ "outcome": {
1092
+ "enum": [
1093
+ "accepted",
1094
+ "needs-evidence",
1095
+ "rejected"
1096
+ ]
1097
+ },
1098
+ "findings": {
1099
+ "type": "array",
1100
+ "items": {
1101
+ "type": "object",
1102
+ "additionalProperties": false,
1103
+ "required": [
1104
+ "factKey",
1105
+ "status",
1106
+ "evidenceIds",
1107
+ "reason"
1108
+ ],
1109
+ "properties": {
1110
+ "factKey": {
1111
+ "type": "string",
1112
+ "minLength": 1
1113
+ },
1114
+ "status": {
1115
+ "enum": [
1116
+ "supported",
1117
+ "insufficient",
1118
+ "contradicted"
1119
+ ]
1120
+ },
1121
+ "evidenceIds": {
1122
+ "type": "array",
1123
+ "items": {
1124
+ "type": "string",
1125
+ "minLength": 1
1126
+ }
1127
+ },
1128
+ "reason": {
1129
+ "type": "string",
1130
+ "minLength": 1
1131
+ }
1132
+ }
1133
+ }
1134
+ },
1135
+ "metadataFindings": {
1136
+ "type": "array",
1137
+ "items": {
1138
+ "type": "object",
1139
+ "additionalProperties": false,
1140
+ "required": [
1141
+ "changeId",
1142
+ "status",
1143
+ "evidenceIds",
1144
+ "reason"
1145
+ ],
1146
+ "properties": {
1147
+ "changeId": {
1148
+ "type": "string",
1149
+ "pattern": "^[a-f0-9]{64}$"
1150
+ },
1151
+ "status": {
1152
+ "enum": [
1153
+ "supported",
1154
+ "insufficient",
1155
+ "contradicted"
1156
+ ]
1157
+ },
1158
+ "evidenceIds": {
1159
+ "type": "array",
1160
+ "items": {
1161
+ "type": "string",
1162
+ "minLength": 1
1163
+ }
1164
+ },
1165
+ "reason": {
1166
+ "type": "string",
1167
+ "minLength": 1
1168
+ }
1169
+ }
1170
+ }
1171
+ },
1172
+ "closures": {
1173
+ "type": "array",
1174
+ "items": {
1175
+ "type": "object",
1176
+ "additionalProperties": false,
1177
+ "required": [
1178
+ "gapId",
1179
+ "status",
1180
+ "evidenceIds",
1181
+ "reason"
1182
+ ],
1183
+ "properties": {
1184
+ "gapId": {
1185
+ "type": "string",
1186
+ "pattern": "^[a-f0-9]{64}$"
1187
+ },
1188
+ "status": {
1189
+ "enum": [
1190
+ "closed",
1191
+ "open"
1192
+ ]
1193
+ },
1194
+ "evidenceIds": {
1195
+ "type": "array",
1196
+ "items": {
1197
+ "type": "string",
1198
+ "minLength": 1
1199
+ }
1200
+ },
1201
+ "reason": {
1202
+ "type": "string",
1203
+ "minLength": 1
1204
+ }
1205
+ }
1206
+ }
1207
+ },
1208
+ "issues": {
1209
+ "type": "array",
1210
+ "items": {
1211
+ "type": "string",
1212
+ "minLength": 1
1213
+ }
1214
+ }
1215
+ }
1216
+ },
1217
+ "reviewedAt": {
1218
+ "type": "string",
1219
+ "minLength": 1
1220
+ }
1221
+ }
1222
+ }
1223
+ }
1224
+ }
1225
+ },
1226
+ "outcome": {
1227
+ "enum": [
1228
+ "accepted",
1229
+ "needs-evidence"
1230
+ ]
1231
+ },
1232
+ "compositionHash": {
1233
+ "type": "string",
1234
+ "pattern": "^[a-f0-9]{64}$"
1235
+ }
1236
+ }
592
1237
  }
593
1238
  }
594
1239
  }