spec-controller 0.1.122 → 0.1.124

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.
@@ -21,45 +21,6 @@
21
21
  "runVerdict": {
22
22
  "$ref": "#/definitions/RunVerdict"
23
23
  },
24
- "stepAccounting": {
25
- "type": "object",
26
- "additionalProperties": false,
27
- "properties": {
28
- "everyStepAccountedFor": {
29
- "type": "boolean"
30
- },
31
- "stepsRead": {
32
- "type": "number"
33
- },
34
- "candidates": {
35
- "type": "number"
36
- },
37
- "runners": {
38
- "type": "number"
39
- },
40
- "reconciler": {
41
- "type": "number"
42
- },
43
- "excluded": {
44
- "type": "number"
45
- },
46
- "plumbing": {
47
- "type": "number"
48
- },
49
- "accountedFor": {
50
- "type": "number"
51
- }
52
- },
53
- "required": [
54
- "accountedFor",
55
- "candidates",
56
- "everyStepAccountedFor",
57
- "excluded",
58
- "reconciler",
59
- "runners",
60
- "stepsRead"
61
- ]
62
- },
63
24
  "claimReconciliations": {
64
25
  "$ref": "#/definitions/ClaimReconciliationTotals"
65
26
  },
@@ -114,23 +75,8 @@
114
75
  "$ref": "#/definitions/TierWithoutRunner"
115
76
  }
116
77
  },
117
- "excludedSteps": {
118
- "type": "array",
119
- "items": {
120
- "type": "string"
121
- }
122
- },
123
- "reconcilerSteps": {
124
- "type": "array",
125
- "items": {
126
- "$ref": "#/definitions/ReconcilerStep"
127
- }
128
- },
129
- "discoveryScope": {
130
- "type": "array",
131
- "items": {
132
- "$ref": "#/definitions/JobDiscoveryScope"
133
- }
78
+ "stepAccounting": {
79
+ "$ref": "#/definitions/StepAccounting"
134
80
  }
135
81
  },
136
82
  "required": [
@@ -702,47 +648,156 @@
702
648
  "performance"
703
649
  ]
704
650
  },
705
- "ReconcilerStep": {
651
+ "StepAccounting": {
706
652
  "type": "object",
707
653
  "properties": {
708
- "step": {
709
- "type": "string"
654
+ "byJob": {
655
+ "type": "array",
656
+ "items": {
657
+ "$ref": "#/definitions/JobStepAccount"
658
+ }
710
659
  },
711
- "role": {
712
- "type": "string",
713
- "enum": [
714
- "reconciles",
715
- "records"
716
- ]
660
+ "total": {
661
+ "$ref": "#/definitions/StepAccountTotal"
662
+ },
663
+ "everyStepAccountedFor": {
664
+ "type": "boolean"
665
+ },
666
+ "steps": {
667
+ "$ref": "#/definitions/StepsBehindCounts"
717
668
  }
718
669
  },
719
670
  "required": [
720
- "step",
721
- "role"
671
+ "byJob",
672
+ "total",
673
+ "everyStepAccountedFor",
674
+ "steps"
722
675
  ],
723
676
  "additionalProperties": false
724
677
  },
725
- "JobDiscoveryScope": {
678
+ "JobStepAccount": {
726
679
  "type": "object",
727
680
  "properties": {
728
- "source": {
681
+ "workflow": {
729
682
  "type": "string"
730
683
  },
731
684
  "job": {
732
685
  "type": "string"
733
686
  },
734
- "steps": {
687
+ "stepsRead": {
735
688
  "type": "number"
736
689
  },
737
690
  "candidates": {
738
691
  "type": "number"
692
+ },
693
+ "runners": {
694
+ "type": "number"
695
+ },
696
+ "reconciler": {
697
+ "type": "number"
698
+ },
699
+ "excluded": {
700
+ "type": "number"
701
+ },
702
+ "plumbing": {
703
+ "type": "number"
739
704
  }
740
705
  },
741
706
  "required": [
742
- "source",
707
+ "workflow",
743
708
  "job",
744
- "steps",
745
- "candidates"
709
+ "stepsRead",
710
+ "candidates",
711
+ "runners",
712
+ "reconciler",
713
+ "excluded",
714
+ "plumbing"
715
+ ],
716
+ "additionalProperties": false
717
+ },
718
+ "StepAccountTotal": {
719
+ "type": "object",
720
+ "properties": {
721
+ "stepsRead": {
722
+ "type": "number"
723
+ },
724
+ "candidates": {
725
+ "type": "number"
726
+ },
727
+ "runners": {
728
+ "type": "number"
729
+ },
730
+ "reconciler": {
731
+ "type": "number"
732
+ },
733
+ "excluded": {
734
+ "type": "number"
735
+ },
736
+ "plumbing": {
737
+ "type": "number"
738
+ },
739
+ "accountedFor": {
740
+ "type": "number"
741
+ }
742
+ },
743
+ "required": [
744
+ "accountedFor",
745
+ "candidates",
746
+ "excluded",
747
+ "plumbing",
748
+ "reconciler",
749
+ "runners",
750
+ "stepsRead"
751
+ ],
752
+ "additionalProperties": false
753
+ },
754
+ "StepsBehindCounts": {
755
+ "type": "object",
756
+ "properties": {
757
+ "runners": {
758
+ "type": "array",
759
+ "items": {
760
+ "type": "string"
761
+ }
762
+ },
763
+ "reconciler": {
764
+ "type": "array",
765
+ "items": {
766
+ "$ref": "#/definitions/ReconcilerStep"
767
+ }
768
+ },
769
+ "excluded": {
770
+ "type": "array",
771
+ "items": {
772
+ "type": "string"
773
+ }
774
+ },
775
+ "plumbing": {
776
+ "type": "array",
777
+ "items": {
778
+ "type": "string"
779
+ }
780
+ }
781
+ },
782
+ "additionalProperties": false
783
+ },
784
+ "ReconcilerStep": {
785
+ "type": "object",
786
+ "properties": {
787
+ "step": {
788
+ "type": "string"
789
+ },
790
+ "role": {
791
+ "type": "string",
792
+ "enum": [
793
+ "reconciles",
794
+ "records"
795
+ ]
796
+ }
797
+ },
798
+ "required": [
799
+ "step",
800
+ "role"
746
801
  ],
747
802
  "additionalProperties": false
748
803
  },
@@ -764,7 +819,7 @@
764
819
  "ClaimReconciliation": {
765
820
  "type": "object",
766
821
  "properties": {
767
- "scnId": {
822
+ "claim": {
768
823
  "type": "string"
769
824
  },
770
825
  "kind": {
@@ -773,30 +828,12 @@
773
828
  "verdict": {
774
829
  "$ref": "#/definitions/Verdict"
775
830
  },
776
- "evidenceObservations": {
777
- "type": "array",
778
- "items": {
779
- "$ref": "#/definitions/EvidenceObservation"
780
- }
781
- },
782
- "evidenceObligations": {
783
- "type": "array",
784
- "items": {
785
- "$ref": "#/definitions/EvidenceObligation"
786
- }
787
- },
788
831
  "qualityCheckReconciliations": {
789
832
  "type": "array",
790
833
  "items": {
791
834
  "$ref": "#/definitions/QualityCheckReconciliation"
792
835
  }
793
836
  },
794
- "reconcilingItems": {
795
- "type": "array",
796
- "items": {
797
- "$ref": "#/definitions/QualityCheckReconciliation"
798
- }
799
- },
800
837
  "pendingItems": {
801
838
  "type": "array",
802
839
  "items": {
@@ -805,13 +842,10 @@
805
842
  }
806
843
  },
807
844
  "required": [
808
- "scnId",
845
+ "claim",
809
846
  "kind",
810
847
  "verdict",
811
- "evidenceObservations",
812
- "evidenceObligations",
813
848
  "qualityCheckReconciliations",
814
- "reconcilingItems",
815
849
  "pendingItems"
816
850
  ],
817
851
  "additionalProperties": false
@@ -831,58 +865,169 @@
831
865
  "out-of-balance"
832
866
  ]
833
867
  },
834
- "EvidenceObservation": {
835
- "anyOf": [
836
- {
837
- "$ref": "#/definitions/BehaviouralEvidenceObservation"
838
- },
839
- {
840
- "$ref": "#/definitions/FitnessEvidenceObservation"
841
- }
842
- ]
843
- },
844
- "BehaviouralEvidenceObservation": {
868
+ "QualityCheckReconciliation": {
845
869
  "type": "object",
870
+ "additionalProperties": false,
846
871
  "properties": {
847
872
  "qualityCheck": {
848
- "$ref": "#/definitions/BehaviouralQualityCheck"
849
- },
850
- "scnId": {
851
- "type": [
852
- "string",
853
- "null"
854
- ]
855
- },
856
- "status": {
857
- "$ref": "#/definitions/EvidenceStatus"
858
- },
859
- "locator": {
860
- "type": "string"
873
+ "$ref": "#/definitions/QualityCheck"
861
874
  },
862
- "broken": {
863
- "type": "boolean",
864
- "const": true
875
+ "outcome": {
876
+ "$ref": "#/definitions/Outcome"
865
877
  },
866
- "message": {
867
- "type": "string"
878
+ "evidenceObligation": {
879
+ "$ref": "#/definitions/EvidenceObligation"
868
880
  },
869
- "notes": {
881
+ "evidenceObservations": {
870
882
  "type": "array",
871
883
  "items": {
872
- "$ref": "#/definitions/ObservationNote"
884
+ "$ref": "#/definitions/ReconciledEvidenceObservation"
873
885
  }
874
886
  },
875
- "testName": {
876
- "type": "string"
887
+ "scenario": {
888
+ "$ref": "#/definitions/ScenarioName"
889
+ }
890
+ }
891
+ },
892
+ "QualityCheck": {
893
+ "type": "string",
894
+ "enum": [
895
+ "fitness",
896
+ "unit",
897
+ "integration",
898
+ "e2e",
899
+ "performance"
900
+ ]
901
+ },
902
+ "Outcome": {
903
+ "type": "string",
904
+ "enum": [
905
+ "satisfied",
906
+ "failing",
907
+ "watermelon",
908
+ "missing",
909
+ "cites-unknown-scenario",
910
+ "cites-no-scenario",
911
+ "broken",
912
+ "no-evidence-obligation",
913
+ "no-scn-code",
914
+ "duplicate-scn-code",
915
+ "both-missing"
916
+ ]
917
+ },
918
+ "EvidenceObligation": {
919
+ "type": "object",
920
+ "properties": {
921
+ "qualityCheck": {
922
+ "$ref": "#/definitions/QualityCheck"
923
+ },
924
+ "pending": {
925
+ "type": "boolean"
877
926
  }
878
927
  },
879
- "required": [
880
- "qualityCheck",
881
- "scnId",
882
- "status"
883
- ],
884
928
  "additionalProperties": false
885
929
  },
930
+ "ReconciledEvidenceObservation": {
931
+ "anyOf": [
932
+ {
933
+ "type": "object",
934
+ "additionalProperties": false,
935
+ "properties": {
936
+ "outcome": {
937
+ "$ref": "#/definitions/Outcome"
938
+ },
939
+ "qualityCheck": {
940
+ "$ref": "#/definitions/BehaviouralQualityCheck"
941
+ },
942
+ "scnId": {
943
+ "type": [
944
+ "string",
945
+ "null"
946
+ ]
947
+ },
948
+ "status": {
949
+ "$ref": "#/definitions/EvidenceStatus"
950
+ },
951
+ "locator": {
952
+ "type": "string"
953
+ },
954
+ "broken": {
955
+ "type": "boolean",
956
+ "const": true
957
+ },
958
+ "message": {
959
+ "type": "string"
960
+ },
961
+ "notes": {
962
+ "type": "array",
963
+ "items": {
964
+ "$ref": "#/definitions/ObservationNote"
965
+ }
966
+ },
967
+ "testName": {
968
+ "type": "string"
969
+ }
970
+ },
971
+ "required": [
972
+ "outcome",
973
+ "qualityCheck",
974
+ "scnId",
975
+ "status"
976
+ ]
977
+ },
978
+ {
979
+ "type": "object",
980
+ "additionalProperties": false,
981
+ "properties": {
982
+ "outcome": {
983
+ "$ref": "#/definitions/Outcome"
984
+ },
985
+ "qualityCheck": {
986
+ "type": "string",
987
+ "const": "fitness"
988
+ },
989
+ "fitnessFunction": {
990
+ "type": "string"
991
+ },
992
+ "scnId": {
993
+ "type": "string"
994
+ },
995
+ "exists": {
996
+ "type": "boolean"
997
+ },
998
+ "enforcedOverRealSource": {
999
+ "type": "boolean"
1000
+ },
1001
+ "status": {
1002
+ "$ref": "#/definitions/EvidenceStatus"
1003
+ },
1004
+ "broken": {
1005
+ "type": "boolean",
1006
+ "const": true
1007
+ },
1008
+ "message": {
1009
+ "type": "string"
1010
+ },
1011
+ "notes": {
1012
+ "type": "array",
1013
+ "items": {
1014
+ "$ref": "#/definitions/ObservationNote"
1015
+ }
1016
+ },
1017
+ "locator": {
1018
+ "type": "string"
1019
+ }
1020
+ },
1021
+ "required": [
1022
+ "enforcedOverRealSource",
1023
+ "exists",
1024
+ "fitnessFunction",
1025
+ "outcome",
1026
+ "qualityCheck"
1027
+ ]
1028
+ }
1029
+ ]
1030
+ },
886
1031
  "EvidenceStatus": {
887
1032
  "type": "string",
888
1033
  "enum": [
@@ -912,6 +1057,23 @@
912
1057
  ],
913
1058
  "additionalProperties": false
914
1059
  },
1060
+ {
1061
+ "type": "object",
1062
+ "properties": {
1063
+ "kind": {
1064
+ "type": "string",
1065
+ "const": "shared-scn-code"
1066
+ },
1067
+ "code": {
1068
+ "type": "string"
1069
+ }
1070
+ },
1071
+ "required": [
1072
+ "kind",
1073
+ "code"
1074
+ ],
1075
+ "additionalProperties": false
1076
+ },
915
1077
  {
916
1078
  "type": "object",
917
1079
  "properties": {
@@ -950,126 +1112,22 @@
950
1112
  }
951
1113
  ]
952
1114
  },
953
- "FitnessEvidenceObservation": {
1115
+ "ScenarioName": {
954
1116
  "type": "object",
955
1117
  "properties": {
956
- "qualityCheck": {
957
- "type": "string",
958
- "const": "fitness"
959
- },
960
- "fitnessFunction": {
961
- "type": "string"
962
- },
963
- "scnId": {
1118
+ "feature": {
964
1119
  "type": "string"
965
1120
  },
966
- "exists": {
967
- "type": "boolean"
968
- },
969
- "enforcedOverRealSource": {
970
- "type": "boolean"
971
- },
972
- "status": {
973
- "$ref": "#/definitions/EvidenceStatus"
974
- },
975
- "broken": {
976
- "type": "boolean",
977
- "const": true
978
- },
979
- "message": {
980
- "type": "string"
981
- },
982
- "notes": {
983
- "type": "array",
984
- "items": {
985
- "$ref": "#/definitions/ObservationNote"
986
- }
987
- },
988
- "locator": {
1121
+ "title": {
989
1122
  "type": "string"
990
1123
  }
991
1124
  },
992
1125
  "required": [
993
- "qualityCheck",
994
- "fitnessFunction",
995
- "exists",
996
- "enforcedOverRealSource"
1126
+ "feature",
1127
+ "title"
997
1128
  ],
998
- "additionalProperties": false
999
- },
1000
- "EvidenceObligation": {
1001
- "type": "object",
1002
- "properties": {
1003
- "qualityCheck": {
1004
- "$ref": "#/definitions/QualityCheck"
1005
- },
1006
- "pending": {
1007
- "type": "boolean"
1008
- }
1009
- },
1010
- "additionalProperties": false
1011
- },
1012
- "QualityCheck": {
1013
- "type": "string",
1014
- "enum": [
1015
- "fitness",
1016
- "unit",
1017
- "integration",
1018
- "e2e",
1019
- "performance"
1020
- ]
1021
- },
1022
- "QualityCheckReconciliation": {
1023
- "type": "object",
1024
1129
  "additionalProperties": false,
1025
- "properties": {
1026
- "qualityCheck": {
1027
- "$ref": "#/definitions/QualityCheck"
1028
- },
1029
- "fitnessFunction": {
1030
- "type": "string"
1031
- },
1032
- "outcome": {
1033
- "$ref": "#/definitions/Outcome"
1034
- },
1035
- "evidenceObligation": {
1036
- "$ref": "#/definitions/EvidenceObligation"
1037
- },
1038
- "evidenceObservation": {
1039
- "$ref": "#/definitions/EvidenceObservation"
1040
- },
1041
- "locator": {
1042
- "type": "string"
1043
- },
1044
- "message": {
1045
- "type": "string"
1046
- },
1047
- "notes": {
1048
- "type": "array",
1049
- "items": {
1050
- "$ref": "#/definitions/ObservationNote"
1051
- }
1052
- }
1053
- },
1054
- "required": [
1055
- "outcome"
1056
- ]
1057
- },
1058
- "Outcome": {
1059
- "type": "string",
1060
- "enum": [
1061
- "satisfied",
1062
- "failing",
1063
- "watermelon",
1064
- "missing",
1065
- "cites-unknown-scenario",
1066
- "cites-no-scenario",
1067
- "broken",
1068
- "no-evidence-obligation",
1069
- "no-scn-code",
1070
- "duplicate-scn-code",
1071
- "both-missing"
1072
- ]
1130
+ "description": "The scenario a duplicate-scn-code reconciliation reconciles, by its feature file and title."
1073
1131
  },
1074
1132
  "PendingItem": {
1075
1133
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.122",
3
+ "version": "0.1.124",
4
4
  "description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
5
5
  "keywords": [
6
6
  "reconciliation",
@@ -26,7 +26,7 @@
26
26
  "fast-xml-parser": "^5.11.2",
27
27
  "ts-json-schema-generator": "^2.9.0",
28
28
  "yaml": "^2.9.0",
29
- "@3f-consulting/spec-controller-core": "0.1.122"
29
+ "@3f-consulting/spec-controller-core": "0.1.124"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"