archctx-contracts 0.18.0 → 0.18.1

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.
@@ -72,11 +72,23 @@
72
72
  {
73
73
  "pattern": "^/"
74
74
  },
75
+ {
76
+ "pattern": "/$"
77
+ },
78
+ {
79
+ "pattern": "//"
80
+ },
75
81
  {
76
82
  "pattern": "\\\\"
77
83
  },
78
84
  {
79
- "pattern": "(^|/)\\.\\.(/|$)"
85
+ "pattern": "^[A-Za-z]:"
86
+ },
87
+ {
88
+ "pattern": "[\\u0000-\\u001f\\u007f]"
89
+ },
90
+ {
91
+ "pattern": "(^|/)\\.\\.?(/|$)"
80
92
  }
81
93
  ]
82
94
  }
@@ -214,11 +226,23 @@
214
226
  {
215
227
  "pattern": "^/"
216
228
  },
229
+ {
230
+ "pattern": "/$"
231
+ },
232
+ {
233
+ "pattern": "//"
234
+ },
217
235
  {
218
236
  "pattern": "\\\\"
219
237
  },
220
238
  {
221
- "pattern": "(^|/)\\.\\.(/|$)"
239
+ "pattern": "^[A-Za-z]:"
240
+ },
241
+ {
242
+ "pattern": "[\\u0000-\\u001f\\u007f]"
243
+ },
244
+ {
245
+ "pattern": "(^|/)\\.\\.?(/|$)"
222
246
  }
223
247
  ]
224
248
  }
@@ -248,11 +272,23 @@
248
272
  {
249
273
  "pattern": "^/"
250
274
  },
275
+ {
276
+ "pattern": "/$"
277
+ },
278
+ {
279
+ "pattern": "//"
280
+ },
251
281
  {
252
282
  "pattern": "\\\\"
253
283
  },
254
284
  {
255
- "pattern": "(^|/)\\.\\.(/|$)"
285
+ "pattern": "^[A-Za-z]:"
286
+ },
287
+ {
288
+ "pattern": "[\\u0000-\\u001f\\u007f]"
289
+ },
290
+ {
291
+ "pattern": "(^|/)\\.\\.?(/|$)"
256
292
  }
257
293
  ]
258
294
  }
@@ -296,7 +332,7 @@
296
332
  "const": "symbol"
297
333
  },
298
334
  "target": {
299
- "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))[^#\\s\\\\\\u0000-\\u001f\\u007f]+#[^\\s\\u0000-\\u001f\\u007f]+$",
335
+ "pattern": "^(?![A-Za-z]:)(?!\\.\\.?(?:/|#))[^/#\\s\\\\\\u0000-\\u001f\\u007f]+(?:/(?!\\.\\.?(?:/|#))[^/#\\s\\\\\\u0000-\\u001f\\u007f]+)*#[^#\\s\\u0000-\\u001f\\u007f]+$",
300
336
  "type": "string"
301
337
  },
302
338
  "required": {
@@ -375,6 +411,9 @@
375
411
  "splitClusterCount": {
376
412
  "minimum": 0,
377
413
  "type": "integer"
414
+ },
415
+ "observation": {
416
+ "$ref": "#/$defs/observationEvidence"
378
417
  }
379
418
  }
380
419
  }
@@ -430,5 +469,924 @@
430
469
  }
431
470
  }
432
471
  }
472
+ },
473
+ "$defs": {
474
+ "evidenceImportEdge": {
475
+ "additionalProperties": false,
476
+ "type": "object",
477
+ "required": [
478
+ "fromPath",
479
+ "fromLine",
480
+ "toPath",
481
+ "specifier",
482
+ "fromNodeId",
483
+ "toNodeId"
484
+ ],
485
+ "properties": {
486
+ "fromPath": {
487
+ "type": "string",
488
+ "minLength": 1,
489
+ "not": {
490
+ "anyOf": [
491
+ {
492
+ "pattern": "^/"
493
+ },
494
+ {
495
+ "pattern": "/$"
496
+ },
497
+ {
498
+ "pattern": "//"
499
+ },
500
+ {
501
+ "pattern": "\\\\"
502
+ },
503
+ {
504
+ "pattern": "^[A-Za-z]:"
505
+ },
506
+ {
507
+ "pattern": "[\\u0000-\\u001f\\u007f]"
508
+ },
509
+ {
510
+ "pattern": "(^|/)\\.\\.?(/|$)"
511
+ }
512
+ ]
513
+ }
514
+ },
515
+ "fromLine": {
516
+ "minimum": 1,
517
+ "type": [
518
+ "integer",
519
+ "null"
520
+ ]
521
+ },
522
+ "toPath": {
523
+ "type": "string",
524
+ "minLength": 1,
525
+ "not": {
526
+ "anyOf": [
527
+ {
528
+ "pattern": "^/"
529
+ },
530
+ {
531
+ "pattern": "/$"
532
+ },
533
+ {
534
+ "pattern": "//"
535
+ },
536
+ {
537
+ "pattern": "\\\\"
538
+ },
539
+ {
540
+ "pattern": "^[A-Za-z]:"
541
+ },
542
+ {
543
+ "pattern": "[\\u0000-\\u001f\\u007f]"
544
+ },
545
+ {
546
+ "pattern": "(^|/)\\.\\.?(/|$)"
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ "specifier": {
552
+ "minLength": 1,
553
+ "type": "string"
554
+ },
555
+ "fromNodeId": {
556
+ "minLength": 1,
557
+ "type": "string"
558
+ },
559
+ "toNodeId": {
560
+ "minLength": 1,
561
+ "type": "string"
562
+ }
563
+ }
564
+ },
565
+ "evidencePairDirection": {
566
+ "additionalProperties": false,
567
+ "type": "object",
568
+ "required": [
569
+ "fromNodeId",
570
+ "toNodeId",
571
+ "totalCount",
572
+ "sampledCount"
573
+ ],
574
+ "properties": {
575
+ "fromNodeId": {
576
+ "minLength": 1,
577
+ "type": "string"
578
+ },
579
+ "toNodeId": {
580
+ "minLength": 1,
581
+ "type": "string"
582
+ },
583
+ "totalCount": {
584
+ "minimum": 0,
585
+ "type": "integer"
586
+ },
587
+ "sampledCount": {
588
+ "minimum": 0,
589
+ "type": "integer"
590
+ }
591
+ }
592
+ },
593
+ "evidenceDirectionViolation": {
594
+ "additionalProperties": false,
595
+ "type": "object",
596
+ "required": [
597
+ "constraintId",
598
+ "fromPath",
599
+ "fromLine",
600
+ "toPath",
601
+ "specifier",
602
+ "fromNodeId",
603
+ "toNodeId"
604
+ ],
605
+ "properties": {
606
+ "constraintId": {
607
+ "minLength": 1,
608
+ "type": "string"
609
+ },
610
+ "fromPath": {
611
+ "type": "string",
612
+ "minLength": 1,
613
+ "not": {
614
+ "anyOf": [
615
+ {
616
+ "pattern": "^/"
617
+ },
618
+ {
619
+ "pattern": "/$"
620
+ },
621
+ {
622
+ "pattern": "//"
623
+ },
624
+ {
625
+ "pattern": "\\\\"
626
+ },
627
+ {
628
+ "pattern": "^[A-Za-z]:"
629
+ },
630
+ {
631
+ "pattern": "[\\u0000-\\u001f\\u007f]"
632
+ },
633
+ {
634
+ "pattern": "(^|/)\\.\\.?(/|$)"
635
+ }
636
+ ]
637
+ }
638
+ },
639
+ "fromLine": {
640
+ "minimum": 1,
641
+ "type": [
642
+ "integer",
643
+ "null"
644
+ ]
645
+ },
646
+ "toPath": {
647
+ "type": "string",
648
+ "minLength": 1,
649
+ "not": {
650
+ "anyOf": [
651
+ {
652
+ "pattern": "^/"
653
+ },
654
+ {
655
+ "pattern": "/$"
656
+ },
657
+ {
658
+ "pattern": "//"
659
+ },
660
+ {
661
+ "pattern": "\\\\"
662
+ },
663
+ {
664
+ "pattern": "^[A-Za-z]:"
665
+ },
666
+ {
667
+ "pattern": "[\\u0000-\\u001f\\u007f]"
668
+ },
669
+ {
670
+ "pattern": "(^|/)\\.\\.?(/|$)"
671
+ }
672
+ ]
673
+ }
674
+ },
675
+ "specifier": {
676
+ "minLength": 1,
677
+ "type": "string"
678
+ },
679
+ "fromNodeId": {
680
+ "minLength": 1,
681
+ "type": "string"
682
+ },
683
+ "toNodeId": {
684
+ "minLength": 1,
685
+ "type": "string"
686
+ }
687
+ }
688
+ },
689
+ "evidencePathEntry": {
690
+ "additionalProperties": false,
691
+ "type": "object",
692
+ "required": [
693
+ "path",
694
+ "candidateOwnerNodeIds",
695
+ "candidateOwnerCount"
696
+ ],
697
+ "properties": {
698
+ "path": {
699
+ "type": "string",
700
+ "minLength": 1,
701
+ "not": {
702
+ "anyOf": [
703
+ {
704
+ "pattern": "^/"
705
+ },
706
+ {
707
+ "pattern": "/$"
708
+ },
709
+ {
710
+ "pattern": "//"
711
+ },
712
+ {
713
+ "pattern": "\\\\"
714
+ },
715
+ {
716
+ "pattern": "^[A-Za-z]:"
717
+ },
718
+ {
719
+ "pattern": "[\\u0000-\\u001f\\u007f]"
720
+ },
721
+ {
722
+ "pattern": "(^|/)\\.\\.?(/|$)"
723
+ }
724
+ ]
725
+ }
726
+ },
727
+ "candidateOwnerNodeIds": {
728
+ "uniqueItems": true,
729
+ "type": "array",
730
+ "items": {
731
+ "minLength": 1,
732
+ "type": "string"
733
+ }
734
+ },
735
+ "candidateOwnerCount": {
736
+ "minimum": 0,
737
+ "type": "integer"
738
+ }
739
+ }
740
+ },
741
+ "evidenceUnresolvedImport": {
742
+ "additionalProperties": false,
743
+ "type": "object",
744
+ "required": [
745
+ "fromPath",
746
+ "fromLine",
747
+ "specifier"
748
+ ],
749
+ "properties": {
750
+ "fromPath": {
751
+ "type": "string",
752
+ "minLength": 1,
753
+ "not": {
754
+ "anyOf": [
755
+ {
756
+ "pattern": "^/"
757
+ },
758
+ {
759
+ "pattern": "/$"
760
+ },
761
+ {
762
+ "pattern": "//"
763
+ },
764
+ {
765
+ "pattern": "\\\\"
766
+ },
767
+ {
768
+ "pattern": "^[A-Za-z]:"
769
+ },
770
+ {
771
+ "pattern": "[\\u0000-\\u001f\\u007f]"
772
+ },
773
+ {
774
+ "pattern": "(^|/)\\.\\.?(/|$)"
775
+ }
776
+ ]
777
+ }
778
+ },
779
+ "fromLine": {
780
+ "minimum": 1,
781
+ "type": [
782
+ "integer",
783
+ "null"
784
+ ]
785
+ },
786
+ "specifier": {
787
+ "minLength": 1,
788
+ "type": "string"
789
+ }
790
+ }
791
+ },
792
+ "evidenceLowCohesionCluster": {
793
+ "additionalProperties": false,
794
+ "type": "object",
795
+ "required": [
796
+ "symbols",
797
+ "startLine",
798
+ "endLine",
799
+ "intraClusterEdges",
800
+ "crossClusterEdges"
801
+ ],
802
+ "properties": {
803
+ "symbols": {
804
+ "uniqueItems": true,
805
+ "type": "array",
806
+ "items": {
807
+ "minLength": 1,
808
+ "type": "string"
809
+ }
810
+ },
811
+ "startLine": {
812
+ "minimum": 1,
813
+ "type": "integer"
814
+ },
815
+ "endLine": {
816
+ "minimum": 1,
817
+ "type": "integer"
818
+ },
819
+ "intraClusterEdges": {
820
+ "minimum": 0,
821
+ "type": "integer"
822
+ },
823
+ "crossClusterEdges": {
824
+ "minimum": 0,
825
+ "type": "integer"
826
+ }
827
+ }
828
+ },
829
+ "evidenceLowCohesionFile": {
830
+ "additionalProperties": false,
831
+ "type": "object",
832
+ "required": [
833
+ "path",
834
+ "lineCount",
835
+ "topLevelSymbolCount",
836
+ "clusterCount",
837
+ "clusters"
838
+ ],
839
+ "properties": {
840
+ "path": {
841
+ "type": "string",
842
+ "minLength": 1,
843
+ "not": {
844
+ "anyOf": [
845
+ {
846
+ "pattern": "^/"
847
+ },
848
+ {
849
+ "pattern": "/$"
850
+ },
851
+ {
852
+ "pattern": "//"
853
+ },
854
+ {
855
+ "pattern": "\\\\"
856
+ },
857
+ {
858
+ "pattern": "^[A-Za-z]:"
859
+ },
860
+ {
861
+ "pattern": "[\\u0000-\\u001f\\u007f]"
862
+ },
863
+ {
864
+ "pattern": "(^|/)\\.\\.?(/|$)"
865
+ }
866
+ ]
867
+ }
868
+ },
869
+ "lineCount": {
870
+ "minimum": 0,
871
+ "type": "integer"
872
+ },
873
+ "topLevelSymbolCount": {
874
+ "minimum": 0,
875
+ "type": "integer"
876
+ },
877
+ "clusterCount": {
878
+ "minimum": 0,
879
+ "type": "integer"
880
+ },
881
+ "clusters": {
882
+ "type": "array",
883
+ "items": {
884
+ "$ref": "#/$defs/evidenceLowCohesionCluster"
885
+ }
886
+ }
887
+ }
888
+ },
889
+ "evidenceUnstableTarget": {
890
+ "additionalProperties": false,
891
+ "type": "object",
892
+ "required": [
893
+ "targetNodeId",
894
+ "targetInstability",
895
+ "delta",
896
+ "edgeCount"
897
+ ],
898
+ "properties": {
899
+ "targetNodeId": {
900
+ "minLength": 1,
901
+ "type": "string"
902
+ },
903
+ "targetInstability": {
904
+ "minimum": 0,
905
+ "maximum": 1,
906
+ "type": "number"
907
+ },
908
+ "delta": {
909
+ "minimum": -1,
910
+ "maximum": 1,
911
+ "type": "number"
912
+ },
913
+ "edgeCount": {
914
+ "minimum": 1,
915
+ "type": "integer"
916
+ }
917
+ }
918
+ },
919
+ "evidenceCoChangePair": {
920
+ "additionalProperties": false,
921
+ "type": "object",
922
+ "required": [
923
+ "pathA",
924
+ "pathB",
925
+ "coChangeCount",
926
+ "jaccard"
927
+ ],
928
+ "properties": {
929
+ "pathA": {
930
+ "type": "string",
931
+ "minLength": 1,
932
+ "not": {
933
+ "anyOf": [
934
+ {
935
+ "pattern": "^/"
936
+ },
937
+ {
938
+ "pattern": "/$"
939
+ },
940
+ {
941
+ "pattern": "//"
942
+ },
943
+ {
944
+ "pattern": "\\\\"
945
+ },
946
+ {
947
+ "pattern": "^[A-Za-z]:"
948
+ },
949
+ {
950
+ "pattern": "[\\u0000-\\u001f\\u007f]"
951
+ },
952
+ {
953
+ "pattern": "(^|/)\\.\\.?(/|$)"
954
+ }
955
+ ]
956
+ }
957
+ },
958
+ "pathB": {
959
+ "type": "string",
960
+ "minLength": 1,
961
+ "not": {
962
+ "anyOf": [
963
+ {
964
+ "pattern": "^/"
965
+ },
966
+ {
967
+ "pattern": "/$"
968
+ },
969
+ {
970
+ "pattern": "//"
971
+ },
972
+ {
973
+ "pattern": "\\\\"
974
+ },
975
+ {
976
+ "pattern": "^[A-Za-z]:"
977
+ },
978
+ {
979
+ "pattern": "[\\u0000-\\u001f\\u007f]"
980
+ },
981
+ {
982
+ "pattern": "(^|/)\\.\\.?(/|$)"
983
+ }
984
+ ]
985
+ }
986
+ },
987
+ "coChangeCount": {
988
+ "minimum": 1,
989
+ "type": "integer"
990
+ },
991
+ "jaccard": {
992
+ "minimum": 0,
993
+ "maximum": 1,
994
+ "type": "number"
995
+ }
996
+ }
997
+ },
998
+ "observationEvidence": {
999
+ "oneOf": [
1000
+ {
1001
+ "additionalProperties": false,
1002
+ "type": "object",
1003
+ "required": [
1004
+ "kind",
1005
+ "memberNodeIds",
1006
+ "directions",
1007
+ "edges",
1008
+ "totalCount",
1009
+ "truncated"
1010
+ ],
1011
+ "properties": {
1012
+ "kind": {
1013
+ "const": "cycle"
1014
+ },
1015
+ "memberNodeIds": {
1016
+ "uniqueItems": true,
1017
+ "type": "array",
1018
+ "items": {
1019
+ "minLength": 1,
1020
+ "type": "string"
1021
+ }
1022
+ },
1023
+ "directions": {
1024
+ "type": "array",
1025
+ "items": {
1026
+ "$ref": "#/$defs/evidencePairDirection"
1027
+ }
1028
+ },
1029
+ "edges": {
1030
+ "type": "array",
1031
+ "items": {
1032
+ "$ref": "#/$defs/evidenceImportEdge"
1033
+ }
1034
+ },
1035
+ "totalCount": {
1036
+ "minimum": 0,
1037
+ "type": "integer"
1038
+ },
1039
+ "truncated": {
1040
+ "type": "boolean"
1041
+ }
1042
+ }
1043
+ },
1044
+ {
1045
+ "additionalProperties": false,
1046
+ "type": "object",
1047
+ "required": [
1048
+ "kind",
1049
+ "memberNodeIds",
1050
+ "edges",
1051
+ "totalCount",
1052
+ "truncated"
1053
+ ],
1054
+ "properties": {
1055
+ "kind": {
1056
+ "const": "residual-cycle"
1057
+ },
1058
+ "memberNodeIds": {
1059
+ "uniqueItems": true,
1060
+ "type": "array",
1061
+ "items": {
1062
+ "minLength": 1,
1063
+ "type": "string"
1064
+ }
1065
+ },
1066
+ "edges": {
1067
+ "type": "array",
1068
+ "items": {
1069
+ "$ref": "#/$defs/evidenceImportEdge"
1070
+ }
1071
+ },
1072
+ "totalCount": {
1073
+ "minimum": 0,
1074
+ "type": "integer"
1075
+ },
1076
+ "truncated": {
1077
+ "type": "boolean"
1078
+ }
1079
+ }
1080
+ },
1081
+ {
1082
+ "additionalProperties": false,
1083
+ "type": "object",
1084
+ "required": [
1085
+ "kind",
1086
+ "constraintIds",
1087
+ "constraintCount",
1088
+ "violations",
1089
+ "totalCount",
1090
+ "truncated"
1091
+ ],
1092
+ "properties": {
1093
+ "kind": {
1094
+ "const": "direction-violation"
1095
+ },
1096
+ "constraintIds": {
1097
+ "uniqueItems": true,
1098
+ "type": "array",
1099
+ "items": {
1100
+ "minLength": 1,
1101
+ "type": "string"
1102
+ }
1103
+ },
1104
+ "constraintCount": {
1105
+ "minimum": 0,
1106
+ "type": "integer"
1107
+ },
1108
+ "violations": {
1109
+ "type": "array",
1110
+ "items": {
1111
+ "$ref": "#/$defs/evidenceDirectionViolation"
1112
+ }
1113
+ },
1114
+ "totalCount": {
1115
+ "minimum": 0,
1116
+ "type": "integer"
1117
+ },
1118
+ "truncated": {
1119
+ "type": "boolean"
1120
+ }
1121
+ }
1122
+ },
1123
+ {
1124
+ "additionalProperties": false,
1125
+ "type": "object",
1126
+ "required": [
1127
+ "kind",
1128
+ "paths",
1129
+ "totalCount",
1130
+ "truncated"
1131
+ ],
1132
+ "properties": {
1133
+ "kind": {
1134
+ "type": "string",
1135
+ "enum": [
1136
+ "ownership-ambiguous",
1137
+ "undeclared-footprint",
1138
+ "unowned-paths"
1139
+ ]
1140
+ },
1141
+ "paths": {
1142
+ "type": "array",
1143
+ "items": {
1144
+ "$ref": "#/$defs/evidencePathEntry"
1145
+ }
1146
+ },
1147
+ "totalCount": {
1148
+ "minimum": 0,
1149
+ "type": "integer"
1150
+ },
1151
+ "truncated": {
1152
+ "type": "boolean"
1153
+ }
1154
+ }
1155
+ },
1156
+ {
1157
+ "additionalProperties": false,
1158
+ "type": "object",
1159
+ "required": [
1160
+ "kind",
1161
+ "coverage",
1162
+ "reasonCodes",
1163
+ "unresolvedImports",
1164
+ "totalCount",
1165
+ "truncated"
1166
+ ],
1167
+ "properties": {
1168
+ "kind": {
1169
+ "const": "evidence-gap"
1170
+ },
1171
+ "coverage": {
1172
+ "type": "string",
1173
+ "enum": [
1174
+ "complete",
1175
+ "partial",
1176
+ "unknown"
1177
+ ]
1178
+ },
1179
+ "reasonCodes": {
1180
+ "uniqueItems": true,
1181
+ "type": "array",
1182
+ "items": {
1183
+ "minLength": 1,
1184
+ "maxLength": 1024,
1185
+ "type": "string"
1186
+ }
1187
+ },
1188
+ "unresolvedImports": {
1189
+ "type": "array",
1190
+ "items": {
1191
+ "$ref": "#/$defs/evidenceUnresolvedImport"
1192
+ }
1193
+ },
1194
+ "totalCount": {
1195
+ "minimum": 0,
1196
+ "type": "integer"
1197
+ },
1198
+ "truncated": {
1199
+ "type": "boolean"
1200
+ }
1201
+ }
1202
+ },
1203
+ {
1204
+ "additionalProperties": false,
1205
+ "type": "object",
1206
+ "required": [
1207
+ "kind",
1208
+ "files",
1209
+ "totalCount",
1210
+ "truncated"
1211
+ ],
1212
+ "properties": {
1213
+ "kind": {
1214
+ "const": "low-cohesion-god-file"
1215
+ },
1216
+ "files": {
1217
+ "type": "array",
1218
+ "items": {
1219
+ "$ref": "#/$defs/evidenceLowCohesionFile"
1220
+ }
1221
+ },
1222
+ "totalCount": {
1223
+ "minimum": 0,
1224
+ "type": "integer"
1225
+ },
1226
+ "truncated": {
1227
+ "type": "boolean"
1228
+ }
1229
+ }
1230
+ },
1231
+ {
1232
+ "additionalProperties": false,
1233
+ "type": "object",
1234
+ "required": [
1235
+ "kind",
1236
+ "declaredEntrypointPaths",
1237
+ "edges",
1238
+ "totalCount",
1239
+ "truncated"
1240
+ ],
1241
+ "properties": {
1242
+ "kind": {
1243
+ "const": "entrypoint-bypass"
1244
+ },
1245
+ "declaredEntrypointPaths": {
1246
+ "uniqueItems": true,
1247
+ "type": "array",
1248
+ "items": {
1249
+ "type": "string",
1250
+ "minLength": 1,
1251
+ "not": {
1252
+ "anyOf": [
1253
+ {
1254
+ "pattern": "^/"
1255
+ },
1256
+ {
1257
+ "pattern": "/$"
1258
+ },
1259
+ {
1260
+ "pattern": "//"
1261
+ },
1262
+ {
1263
+ "pattern": "\\\\"
1264
+ },
1265
+ {
1266
+ "pattern": "^[A-Za-z]:"
1267
+ },
1268
+ {
1269
+ "pattern": "[\\u0000-\\u001f\\u007f]"
1270
+ },
1271
+ {
1272
+ "pattern": "(^|/)\\.\\.?(/|$)"
1273
+ }
1274
+ ]
1275
+ }
1276
+ }
1277
+ },
1278
+ "edges": {
1279
+ "type": "array",
1280
+ "items": {
1281
+ "$ref": "#/$defs/evidenceImportEdge"
1282
+ }
1283
+ },
1284
+ "totalCount": {
1285
+ "minimum": 0,
1286
+ "type": "integer"
1287
+ },
1288
+ "truncated": {
1289
+ "type": "boolean"
1290
+ }
1291
+ }
1292
+ },
1293
+ {
1294
+ "additionalProperties": false,
1295
+ "type": "object",
1296
+ "required": [
1297
+ "kind",
1298
+ "sourceFanIn",
1299
+ "sourceInstability",
1300
+ "targets",
1301
+ "totalCount",
1302
+ "truncated"
1303
+ ],
1304
+ "properties": {
1305
+ "kind": {
1306
+ "const": "unstable-dependency"
1307
+ },
1308
+ "sourceFanIn": {
1309
+ "minimum": 0,
1310
+ "type": "integer"
1311
+ },
1312
+ "sourceInstability": {
1313
+ "minimum": 0,
1314
+ "maximum": 1,
1315
+ "type": "number"
1316
+ },
1317
+ "targets": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "$ref": "#/$defs/evidenceUnstableTarget"
1321
+ }
1322
+ },
1323
+ "totalCount": {
1324
+ "minimum": 0,
1325
+ "type": "integer"
1326
+ },
1327
+ "truncated": {
1328
+ "type": "boolean"
1329
+ }
1330
+ }
1331
+ },
1332
+ {
1333
+ "additionalProperties": false,
1334
+ "type": "object",
1335
+ "required": [
1336
+ "kind",
1337
+ "memberNodeIds",
1338
+ "coverageStatus",
1339
+ "windowLimit",
1340
+ "observedCommitCount",
1341
+ "pairs",
1342
+ "totalCount",
1343
+ "truncated"
1344
+ ],
1345
+ "properties": {
1346
+ "kind": {
1347
+ "const": "co-change-coupling"
1348
+ },
1349
+ "memberNodeIds": {
1350
+ "uniqueItems": true,
1351
+ "type": "array",
1352
+ "items": {
1353
+ "minLength": 1,
1354
+ "type": "string"
1355
+ }
1356
+ },
1357
+ "coverageStatus": {
1358
+ "type": "string",
1359
+ "enum": [
1360
+ "complete",
1361
+ "shallow",
1362
+ "insufficient-history",
1363
+ "unavailable"
1364
+ ]
1365
+ },
1366
+ "windowLimit": {
1367
+ "minimum": 1,
1368
+ "type": "integer"
1369
+ },
1370
+ "observedCommitCount": {
1371
+ "minimum": 0,
1372
+ "type": "integer"
1373
+ },
1374
+ "pairs": {
1375
+ "type": "array",
1376
+ "items": {
1377
+ "$ref": "#/$defs/evidenceCoChangePair"
1378
+ }
1379
+ },
1380
+ "totalCount": {
1381
+ "minimum": 0,
1382
+ "type": "integer"
1383
+ },
1384
+ "truncated": {
1385
+ "type": "boolean"
1386
+ }
1387
+ }
1388
+ }
1389
+ ]
1390
+ }
433
1391
  }
434
1392
  }