spec-controller 0.1.164 → 0.1.166
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.
- package/dist/cli.js +199 -199
- package/dist/spec-reconciliation.schema.json +34 -34
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -11632,29 +11632,29 @@ var init_corpusCounts = __esm({
|
|
|
11632
11632
|
});
|
|
11633
11633
|
|
|
11634
11634
|
// ../core/dist/domain/scenarioObligations.js
|
|
11635
|
-
function
|
|
11636
|
-
return
|
|
11635
|
+
function pendingQualityCheckKind(tag) {
|
|
11636
|
+
return PENDING_TAG_TO_QUALITY_CHECK_KIND[tag] ?? null;
|
|
11637
11637
|
}
|
|
11638
11638
|
function convertedFitnessObligationsOf(tags) {
|
|
11639
11639
|
if (!tags.includes(FITNESS_AXIS_TAG))
|
|
11640
11640
|
return [];
|
|
11641
|
-
return [{
|
|
11641
|
+
return [{ qualityCheckKind: "fitness" }];
|
|
11642
11642
|
}
|
|
11643
11643
|
function obligationsRaisedBy(tags, deferralTags) {
|
|
11644
11644
|
const evidenceObligations2 = [];
|
|
11645
|
-
const
|
|
11645
|
+
const seenLayers = /* @__PURE__ */ new Set();
|
|
11646
11646
|
const seenPending = /* @__PURE__ */ new Set();
|
|
11647
11647
|
for (const t of tags) {
|
|
11648
|
-
const pendingCheck =
|
|
11648
|
+
const pendingCheck = pendingQualityCheckKind(t);
|
|
11649
11649
|
if (pendingCheck && !seenPending.has(pendingCheck)) {
|
|
11650
11650
|
seenPending.add(pendingCheck);
|
|
11651
|
-
evidenceObligations2.push({
|
|
11651
|
+
evidenceObligations2.push({ qualityCheckKind: pendingCheck, pending: true });
|
|
11652
11652
|
continue;
|
|
11653
11653
|
}
|
|
11654
|
-
const
|
|
11655
|
-
if (
|
|
11656
|
-
|
|
11657
|
-
evidenceObligations2.push({
|
|
11654
|
+
const layer = TAG_TO_LAYER[t];
|
|
11655
|
+
if (layer && !seenLayers.has(layer)) {
|
|
11656
|
+
seenLayers.add(layer);
|
|
11657
|
+
evidenceObligations2.push({ qualityCheckKind: layer });
|
|
11658
11658
|
continue;
|
|
11659
11659
|
}
|
|
11660
11660
|
}
|
|
@@ -11665,18 +11665,18 @@ function obligationsRaisedBy(tags, deferralTags) {
|
|
|
11665
11665
|
return [{ pending: true }];
|
|
11666
11666
|
return evidenceObligations2.map((obligation) => ({ ...obligation, pending: true }));
|
|
11667
11667
|
}
|
|
11668
|
-
var
|
|
11668
|
+
var PENDING_TAG_TO_QUALITY_CHECK_KIND, TAG_TO_LAYER, FITNESS_AXIS_TAG;
|
|
11669
11669
|
var init_scenarioObligations = __esm({
|
|
11670
11670
|
"../core/dist/domain/scenarioObligations.js"() {
|
|
11671
11671
|
"use strict";
|
|
11672
|
-
|
|
11672
|
+
PENDING_TAG_TO_QUALITY_CHECK_KIND = {
|
|
11673
11673
|
fitnesspending: "fitness",
|
|
11674
11674
|
unitpending: "unit",
|
|
11675
11675
|
integrationpending: "integration",
|
|
11676
11676
|
e2epending: "e2e",
|
|
11677
11677
|
performancepending: "performance"
|
|
11678
11678
|
};
|
|
11679
|
-
|
|
11679
|
+
TAG_TO_LAYER = {
|
|
11680
11680
|
unit: "unit",
|
|
11681
11681
|
integration: "integration",
|
|
11682
11682
|
e2e: "e2e",
|
|
@@ -11787,17 +11787,17 @@ var init_scenarios = __esm({
|
|
|
11787
11787
|
});
|
|
11788
11788
|
|
|
11789
11789
|
// ../core/dist/domain/journal.js
|
|
11790
|
-
function
|
|
11791
|
-
return
|
|
11790
|
+
function fallbackLayerOf(kind) {
|
|
11791
|
+
return FALLBACK_LAYER[kind];
|
|
11792
11792
|
}
|
|
11793
|
-
function
|
|
11794
|
-
const
|
|
11793
|
+
function layersPostedAt(tagNames, fallbackLayer) {
|
|
11794
|
+
const layers = [];
|
|
11795
11795
|
for (const name of tagNames) {
|
|
11796
|
-
if (
|
|
11797
|
-
|
|
11796
|
+
if (NON_UNIT_LAYERS.has(name) && !layers.includes(name)) {
|
|
11797
|
+
layers.push(name);
|
|
11798
11798
|
}
|
|
11799
11799
|
}
|
|
11800
|
-
return
|
|
11800
|
+
return layers.length > 0 ? layers : [fallbackLayer];
|
|
11801
11801
|
}
|
|
11802
11802
|
function evidenceObligationPairsOf(scenarios) {
|
|
11803
11803
|
const pairs = /* @__PURE__ */ new Set();
|
|
@@ -11805,19 +11805,19 @@ function evidenceObligationPairsOf(scenarios) {
|
|
|
11805
11805
|
for (const obligation of scenario.evidenceObligations) {
|
|
11806
11806
|
if (obligation.pending === true)
|
|
11807
11807
|
continue;
|
|
11808
|
-
pairs.add(evidenceObligationPairKey(scenario.scnId, obligation.
|
|
11808
|
+
pairs.add(evidenceObligationPairKey(scenario.scnId, obligation.qualityCheckKind));
|
|
11809
11809
|
}
|
|
11810
11810
|
}
|
|
11811
11811
|
return pairs;
|
|
11812
11812
|
}
|
|
11813
|
-
function evidenceObligationPairKey(scnId,
|
|
11814
|
-
return `${scnId} ${
|
|
11813
|
+
function evidenceObligationPairKey(scnId, qualityCheckKind) {
|
|
11814
|
+
return `${scnId} ${qualityCheckKind}`;
|
|
11815
11815
|
}
|
|
11816
11816
|
function evidenceObligationsOf(evidenceObligations2) {
|
|
11817
11817
|
return evidenceObligations2.filter((obligation) => !obligation.pending);
|
|
11818
11818
|
}
|
|
11819
11819
|
function pendingItemsOf(scenario) {
|
|
11820
|
-
return scenario.evidenceObligations.filter((obligation) => obligation.pending).map((obligation) => ({
|
|
11820
|
+
return scenario.evidenceObligations.filter((obligation) => obligation.pending).map((obligation) => ({ qualityCheckKind: obligation.qualityCheckKind }));
|
|
11821
11821
|
}
|
|
11822
11822
|
function evidenceOfRunResult(result) {
|
|
11823
11823
|
if (result === "inconclusive")
|
|
@@ -11827,21 +11827,21 @@ function evidenceOfRunResult(result) {
|
|
|
11827
11827
|
return { status: result };
|
|
11828
11828
|
}
|
|
11829
11829
|
function isFitnessObservation(observation) {
|
|
11830
|
-
return observation.
|
|
11830
|
+
return observation.qualityCheckKind === "fitness";
|
|
11831
11831
|
}
|
|
11832
11832
|
function ranAsFitnessFunction(observation) {
|
|
11833
11833
|
return isFitnessObservation(observation) && observation.broken !== true && observation.exists;
|
|
11834
11834
|
}
|
|
11835
|
-
var
|
|
11835
|
+
var QUALITY_CHECK_KINDS, FALLBACK_LAYER, NON_UNIT_LAYERS;
|
|
11836
11836
|
var init_journal = __esm({
|
|
11837
11837
|
"../core/dist/domain/journal.js"() {
|
|
11838
11838
|
"use strict";
|
|
11839
|
-
|
|
11840
|
-
|
|
11839
|
+
QUALITY_CHECK_KINDS = ["fitness", "unit", "integration", "e2e", "performance"];
|
|
11840
|
+
FALLBACK_LAYER = {
|
|
11841
11841
|
"test-results": "unit",
|
|
11842
11842
|
"scenario-runs": "integration"
|
|
11843
11843
|
};
|
|
11844
|
-
|
|
11844
|
+
NON_UNIT_LAYERS = new Set(QUALITY_CHECK_KINDS.filter((qualityCheckKind) => qualityCheckKind !== "fitness" && qualityCheckKind !== "unit"));
|
|
11845
11845
|
}
|
|
11846
11846
|
});
|
|
11847
11847
|
|
|
@@ -11937,30 +11937,30 @@ function observationsField(observations) {
|
|
|
11937
11937
|
return observations.length > 0 ? { evidenceObservations: observations } : {};
|
|
11938
11938
|
}
|
|
11939
11939
|
function reconcileEvidenceObligation(scnId, obligation, evidenceObservations) {
|
|
11940
|
-
const citing = evidenceObservations.filter((o) => o.
|
|
11940
|
+
const citing = evidenceObservations.filter((o) => o.qualityCheckKind === obligation.qualityCheckKind && o.scnId === scnId);
|
|
11941
11941
|
const answered = citing.some((o) => o.broken !== true);
|
|
11942
11942
|
return makeQualityCheckReconciliation({
|
|
11943
|
-
|
|
11943
|
+
qualityCheckKind: obligation.qualityCheckKind,
|
|
11944
11944
|
...answered ? {} : { outcome: "missing" },
|
|
11945
11945
|
evidenceObligation: obligation,
|
|
11946
11946
|
...observationsField(linesFor(citing, "evidence-obligation"))
|
|
11947
11947
|
});
|
|
11948
11948
|
}
|
|
11949
|
-
function
|
|
11949
|
+
function reconciliationsByQualityCheckKind(observations, answering) {
|
|
11950
11950
|
const groups = /* @__PURE__ */ new Map();
|
|
11951
11951
|
for (const o of observations) {
|
|
11952
|
-
groups.set(o.
|
|
11952
|
+
groups.set(o.qualityCheckKind, [...groups.get(o.qualityCheckKind) ?? [], o]);
|
|
11953
11953
|
}
|
|
11954
|
-
return [...groups].map(([
|
|
11954
|
+
return [...groups].map(([qualityCheckKind, group]) => makeQualityCheckReconciliation({ qualityCheckKind, evidenceObservations: linesFor(group, answering) }));
|
|
11955
11955
|
}
|
|
11956
11956
|
function noEvidenceObligationReconciliationsOf(scnId, postedObservations, evidenceObligationPairs) {
|
|
11957
|
-
return
|
|
11957
|
+
return reconciliationsByQualityCheckKind(postedObservations.filter((o) => !evidenceObligationPairs.has(evidenceObligationPairKey(scnId, o.qualityCheckKind))), "scenario");
|
|
11958
11958
|
}
|
|
11959
11959
|
function citesUnknownScenarioReconciliationsOf(observations) {
|
|
11960
|
-
return
|
|
11960
|
+
return reconciliationsByQualityCheckKind(observations, "phantom-claim");
|
|
11961
11961
|
}
|
|
11962
11962
|
function unnamedClaimReconciliationsOf(observations) {
|
|
11963
|
-
return
|
|
11963
|
+
return reconciliationsByQualityCheckKind(observations, "unnamed-claim");
|
|
11964
11964
|
}
|
|
11965
11965
|
function noScnCodeReconciliations() {
|
|
11966
11966
|
return [makeQualityCheckReconciliation({ outcome: "no-scn-code", evidenceObligation: {} })];
|
|
@@ -11969,14 +11969,14 @@ function duplicateScnCodeReconciliationsOf(obligations, scenario) {
|
|
|
11969
11969
|
const naming = scenario === void 0 ? {} : { scenario };
|
|
11970
11970
|
const firstNaming = /* @__PURE__ */ new Map();
|
|
11971
11971
|
for (const obligation of obligations) {
|
|
11972
|
-
if (obligation.
|
|
11973
|
-
firstNaming.set(obligation.
|
|
11972
|
+
if (obligation.qualityCheckKind !== void 0 && !firstNaming.has(obligation.qualityCheckKind)) {
|
|
11973
|
+
firstNaming.set(obligation.qualityCheckKind, obligation);
|
|
11974
11974
|
}
|
|
11975
11975
|
}
|
|
11976
11976
|
if (firstNaming.size === 0) {
|
|
11977
11977
|
return [makeQualityCheckReconciliation({ outcome: "duplicate-scn-code", evidenceObligation: {}, ...naming })];
|
|
11978
11978
|
}
|
|
11979
|
-
return [...firstNaming].map(([
|
|
11979
|
+
return [...firstNaming].map(([qualityCheckKind, evidenceObligation]) => makeQualityCheckReconciliation({ qualityCheckKind, outcome: "duplicate-scn-code", evidenceObligation, ...naming }));
|
|
11980
11980
|
}
|
|
11981
11981
|
function bothMissingReconciliation() {
|
|
11982
11982
|
return makeQualityCheckReconciliation({ outcome: "both-missing" });
|
|
@@ -12015,7 +12015,7 @@ var init_qualityCheckReconciliation = __esm({
|
|
|
12015
12015
|
function observationLineOf(reconciliation, observation) {
|
|
12016
12016
|
const carriesObligation = carriesEvidenceObligation(reconciliation, observation);
|
|
12017
12017
|
return {
|
|
12018
|
-
...reconciliation.
|
|
12018
|
+
...reconciliation.qualityCheckKind === void 0 ? {} : { qualityCheckKind: reconciliation.qualityCheckKind },
|
|
12019
12019
|
outcome: observation.outcome,
|
|
12020
12020
|
...carriesObligation ? { evidenceObligation: reconciliation.evidenceObligation } : {},
|
|
12021
12021
|
evidenceObservation: observation
|
|
@@ -12024,7 +12024,7 @@ function observationLineOf(reconciliation, observation) {
|
|
|
12024
12024
|
function linesOf(reconciliation) {
|
|
12025
12025
|
const own = !isObligationLineOutcome(reconciliation.outcome) ? [] : [
|
|
12026
12026
|
{
|
|
12027
|
-
...reconciliation.
|
|
12027
|
+
...reconciliation.qualityCheckKind === void 0 ? {} : { qualityCheckKind: reconciliation.qualityCheckKind },
|
|
12028
12028
|
outcome: reconciliation.outcome,
|
|
12029
12029
|
...reconciliation.evidenceObligation === void 0 ? {} : { evidenceObligation: reconciliation.evidenceObligation },
|
|
12030
12030
|
...reconciliation.scenario === void 0 ? {} : { scenario: reconciliation.scenario }
|
|
@@ -12048,7 +12048,7 @@ function observationsOf(row) {
|
|
|
12048
12048
|
return row.qualityCheckReconciliations.flatMap((reconciliation) => reconciliation.evidenceObservations ?? []);
|
|
12049
12049
|
}
|
|
12050
12050
|
function obligationsOf(row) {
|
|
12051
|
-
return row.qualityCheckReconciliations.flatMap(({ evidenceObligation }) => evidenceObligation?.
|
|
12051
|
+
return row.qualityCheckReconciliations.flatMap(({ evidenceObligation }) => evidenceObligation?.qualityCheckKind === void 0 ? [] : [evidenceObligation]);
|
|
12052
12052
|
}
|
|
12053
12053
|
function isScenario(row) {
|
|
12054
12054
|
return row.kind === "scenario";
|
|
@@ -12071,26 +12071,26 @@ function carriesNoScnCode(row) {
|
|
|
12071
12071
|
function ranObservationsOf(row) {
|
|
12072
12072
|
return observationsOf(row).filter((o) => o.broken !== true);
|
|
12073
12073
|
}
|
|
12074
|
-
function
|
|
12075
|
-
return row.qualityCheckReconciliations.some((r) => r.
|
|
12074
|
+
function carriesQualityCheckKind(row, qualityCheckKind) {
|
|
12075
|
+
return row.qualityCheckReconciliations.some((r) => r.qualityCheckKind === qualityCheckKind && linesOf(r).some((line) => line.outcome !== "broken"));
|
|
12076
12076
|
}
|
|
12077
|
-
function
|
|
12078
|
-
return evidenceObligationsOf(obligationsOf(row)).some((o) => o.
|
|
12077
|
+
function namesQualityCheckKind(row, qualityCheckKind) {
|
|
12078
|
+
return evidenceObligationsOf(obligationsOf(row)).some((o) => o.qualityCheckKind === qualityCheckKind);
|
|
12079
12079
|
}
|
|
12080
|
-
function observationCountOf(row,
|
|
12081
|
-
return ranObservationsOf(row).filter((o) => o.
|
|
12080
|
+
function observationCountOf(row, qualityCheckKind) {
|
|
12081
|
+
return ranObservationsOf(row).filter((o) => o.qualityCheckKind === qualityCheckKind).length;
|
|
12082
12082
|
}
|
|
12083
|
-
function stepsAt(row,
|
|
12084
|
-
if (
|
|
12083
|
+
function stepsAt(row, qualityCheckKind, stepsByQualityCheckKind) {
|
|
12084
|
+
if (qualityCheckKind === "fitness") {
|
|
12085
12085
|
return observationsOf(row).flatMap((o) => ranAsFitnessFunction(o) && o.step !== void 0 ? [o.step] : []);
|
|
12086
12086
|
}
|
|
12087
|
-
const observed = observationsOf(row).some((o) => o.
|
|
12088
|
-
if (!
|
|
12087
|
+
const observed = observationsOf(row).some((o) => o.qualityCheckKind === qualityCheckKind);
|
|
12088
|
+
if (!namesQualityCheckKind(row, qualityCheckKind) && !observed)
|
|
12089
12089
|
return [];
|
|
12090
|
-
return
|
|
12090
|
+
return stepsByQualityCheckKind.find((entry) => entry.qualityCheckKind === qualityCheckKind)?.ciSteps ?? [];
|
|
12091
12091
|
}
|
|
12092
|
-
function ciStepsOf(row,
|
|
12093
|
-
return [...new Set(
|
|
12092
|
+
function ciStepsOf(row, stepsByQualityCheckKind) {
|
|
12093
|
+
return [...new Set(QUALITY_CHECK_KINDS.flatMap((qualityCheckKind) => stepsAt(row, qualityCheckKind, stepsByQualityCheckKind)))];
|
|
12094
12094
|
}
|
|
12095
12095
|
function qualityCheckReconciliationsOf(reconciledEvidenceObligations, noEvidenceObligationItems, pendingItems) {
|
|
12096
12096
|
const rows = [...reconciledEvidenceObligations, ...noEvidenceObligationItems];
|
|
@@ -12124,10 +12124,10 @@ function brokenItemsOf(ledger) {
|
|
|
12124
12124
|
}
|
|
12125
12125
|
function ledgerTally(ledger) {
|
|
12126
12126
|
const { claimReconciliations, pending } = claimReconciliationTally(ledger);
|
|
12127
|
-
const
|
|
12127
|
+
const reconciliationLines = reconciliationLineTotals(ledger);
|
|
12128
12128
|
return {
|
|
12129
12129
|
claimReconciliations,
|
|
12130
|
-
|
|
12130
|
+
reconciliationLines,
|
|
12131
12131
|
pending
|
|
12132
12132
|
};
|
|
12133
12133
|
}
|
|
@@ -12155,7 +12155,7 @@ function claimReconciliationTally(ledger) {
|
|
|
12155
12155
|
pending
|
|
12156
12156
|
};
|
|
12157
12157
|
}
|
|
12158
|
-
function
|
|
12158
|
+
function reconciliationLineTotals(ledger) {
|
|
12159
12159
|
const byOutcome = {
|
|
12160
12160
|
satisfied: 0,
|
|
12161
12161
|
"missing": 0,
|
|
@@ -12173,8 +12173,8 @@ function qualityCheckReconciliationTotals(ledger) {
|
|
|
12173
12173
|
for (const s of ledger.claimReconciliations) {
|
|
12174
12174
|
for (const line of s.qualityCheckReconciliations.flatMap(linesOf)) {
|
|
12175
12175
|
byOutcome[line.outcome]++;
|
|
12176
|
-
if (line.outcome === "missing" && line.
|
|
12177
|
-
missing.set(line.
|
|
12176
|
+
if (line.outcome === "missing" && line.qualityCheckKind) {
|
|
12177
|
+
missing.set(line.qualityCheckKind, (missing.get(line.qualityCheckKind) ?? 0) + 1);
|
|
12178
12178
|
}
|
|
12179
12179
|
}
|
|
12180
12180
|
}
|
|
@@ -12183,11 +12183,11 @@ function qualityCheckReconciliationTotals(ledger) {
|
|
|
12183
12183
|
total,
|
|
12184
12184
|
byOutcome,
|
|
12185
12185
|
outOfBalance: total - byOutcome.satisfied,
|
|
12186
|
-
|
|
12186
|
+
missingByQualityCheckKind: QUALITY_CHECK_KINDS.filter((s) => (missing.get(s) ?? 0) > 0).map((subject) => ({ subject, count: missing.get(subject) }))
|
|
12187
12187
|
};
|
|
12188
12188
|
}
|
|
12189
12189
|
function behaviouralObservationTally(ledger) {
|
|
12190
|
-
const
|
|
12190
|
+
const rawByLayer = {
|
|
12191
12191
|
unit: 0,
|
|
12192
12192
|
integration: 0,
|
|
12193
12193
|
e2e: 0,
|
|
@@ -12198,9 +12198,9 @@ function behaviouralObservationTally(ledger) {
|
|
|
12198
12198
|
let onUnnamedClaim = 0;
|
|
12199
12199
|
for (const row of ledger.claimReconciliations) {
|
|
12200
12200
|
for (const observation of observationsOf(row)) {
|
|
12201
|
-
if (observation.
|
|
12201
|
+
if (observation.qualityCheckKind === "fitness")
|
|
12202
12202
|
continue;
|
|
12203
|
-
|
|
12203
|
+
rawByLayer[observation.qualityCheckKind]++;
|
|
12204
12204
|
if (row.kind === "phantom-claim")
|
|
12205
12205
|
onPhantomClaim++;
|
|
12206
12206
|
else if (row.kind === "unnamed-claim")
|
|
@@ -12209,8 +12209,8 @@ function behaviouralObservationTally(ledger) {
|
|
|
12209
12209
|
onScenario++;
|
|
12210
12210
|
}
|
|
12211
12211
|
}
|
|
12212
|
-
const total =
|
|
12213
|
-
return {
|
|
12212
|
+
const total = LAYERS.reduce((n, qc) => n + rawByLayer[qc], 0);
|
|
12213
|
+
return { rawByLayer, total, onScenario, onPhantomClaim, onUnnamedClaim };
|
|
12214
12214
|
}
|
|
12215
12215
|
function runningFitnessObservations(ledger) {
|
|
12216
12216
|
return ledger.claimReconciliations.flatMap((row) => observationsOf(row).flatMap((observation) => ranAsFitnessFunction(observation) ? [observation] : []));
|
|
@@ -12227,20 +12227,20 @@ function evidenceObservationTally(ledger) {
|
|
|
12227
12227
|
onScenario: behavioural.onScenario + ranByKind.scenario,
|
|
12228
12228
|
onPhantomClaim: behavioural.onPhantomClaim + ranByKind["phantom-claim"],
|
|
12229
12229
|
onUnnamedClaim: behavioural.onUnnamedClaim + ranByKind["unnamed-claim"],
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
count:
|
|
12230
|
+
byQualityCheckKind: LAYER_ORDER_FITNESS_LAST.map((qualityCheckKind) => ({
|
|
12231
|
+
qualityCheckKind,
|
|
12232
|
+
count: qualityCheckKind === "fitness" ? ran : behavioural.rawByLayer[qualityCheckKind]
|
|
12233
12233
|
}))
|
|
12234
12234
|
};
|
|
12235
12235
|
}
|
|
12236
|
-
var
|
|
12236
|
+
var LAYERS, LAYER_ORDER_FITNESS_LAST;
|
|
12237
12237
|
var init_ledger = __esm({
|
|
12238
12238
|
"../core/dist/domain/ledger.js"() {
|
|
12239
12239
|
"use strict";
|
|
12240
12240
|
init_claimReconciliation();
|
|
12241
12241
|
init_journal();
|
|
12242
|
-
|
|
12243
|
-
|
|
12242
|
+
LAYERS = QUALITY_CHECK_KINDS.filter((qualityCheckKind) => qualityCheckKind !== "fitness");
|
|
12243
|
+
LAYER_ORDER_FITNESS_LAST = [...LAYERS, "fitness"];
|
|
12244
12244
|
}
|
|
12245
12245
|
});
|
|
12246
12246
|
|
|
@@ -12269,7 +12269,7 @@ function withSortedKeys(_key, value) {
|
|
|
12269
12269
|
}
|
|
12270
12270
|
function evidenceOrderKey(o) {
|
|
12271
12271
|
const content = JSON.stringify(o, withSortedKeys);
|
|
12272
|
-
return [
|
|
12272
|
+
return [LAYER_ORDER_FITNESS_LAST.indexOf(o.qualityCheckKind), o.locator ?? "", o.scnId ?? "", content].join("\0");
|
|
12273
12273
|
}
|
|
12274
12274
|
function inEvidenceOrder(observations) {
|
|
12275
12275
|
const byKey = /* @__PURE__ */ new Map();
|
|
@@ -12426,20 +12426,20 @@ function withSteps(entry, ciSteps) {
|
|
|
12426
12426
|
return entry;
|
|
12427
12427
|
return { ...entry, ciSteps };
|
|
12428
12428
|
}
|
|
12429
|
-
function withDeclaredRunner(entry,
|
|
12430
|
-
if (!Object.hasOwn(
|
|
12429
|
+
function withDeclaredRunner(entry, layers) {
|
|
12430
|
+
if (!Object.hasOwn(layers, entry.qualityCheckKind))
|
|
12431
12431
|
return entry;
|
|
12432
|
-
return { ...entry, runner:
|
|
12432
|
+
return { ...entry, runner: layers[entry.qualityCheckKind] };
|
|
12433
12433
|
}
|
|
12434
|
-
function ciStepsJoined(observations, ledger, runners,
|
|
12434
|
+
function ciStepsJoined(observations, ledger, runners, layers, stepsInOrder) {
|
|
12435
12435
|
return {
|
|
12436
12436
|
...observations,
|
|
12437
|
-
|
|
12438
|
-
if (entry.
|
|
12437
|
+
byQualityCheckKind: observations.byQualityCheckKind.map((entry) => {
|
|
12438
|
+
if (entry.qualityCheckKind === "fitness") {
|
|
12439
12439
|
return withSteps(entry, stepsNamed(runningFitnessObservations(ledger), stepsInOrder));
|
|
12440
12440
|
}
|
|
12441
|
-
const running = runners.filter((row) => row.
|
|
12442
|
-
return withSteps(withDeclaredRunner(entry,
|
|
12441
|
+
const running = runners.filter((row) => row.layer === entry.qualityCheckKind);
|
|
12442
|
+
return withSteps(withDeclaredRunner(entry, layers), eachOnce(running.map((row) => row.step)));
|
|
12443
12443
|
})
|
|
12444
12444
|
};
|
|
12445
12445
|
}
|
|
@@ -12448,7 +12448,7 @@ function summaryOf(ledger, withEvidenceObservations) {
|
|
|
12448
12448
|
return {
|
|
12449
12449
|
evidenceReconciliation: {
|
|
12450
12450
|
claimReconciliations: tally.claimReconciliations,
|
|
12451
|
-
|
|
12451
|
+
reconciliationLines: tally.reconciliationLines,
|
|
12452
12452
|
pending: tally.pending
|
|
12453
12453
|
},
|
|
12454
12454
|
...withEvidenceObservations ? { evidenceObservations: evidenceObservationTally(ledger) } : {}
|
|
@@ -12553,7 +12553,7 @@ var init_scnCitation = __esm({
|
|
|
12553
12553
|
|
|
12554
12554
|
// ../core/dist/parse/vitest.js
|
|
12555
12555
|
function parseVitestEvidenceObservations(report, root) {
|
|
12556
|
-
const
|
|
12556
|
+
const layer = fallbackLayerOf("test-results");
|
|
12557
12557
|
const results = [];
|
|
12558
12558
|
for (const file of report.testResults ?? []) {
|
|
12559
12559
|
const locator = file.name && relativizeToRoot(file.name, root);
|
|
@@ -12561,7 +12561,7 @@ function parseVitestEvidenceObservations(report, root) {
|
|
|
12561
12561
|
if (file.status === "failed" && assertions.length === 0) {
|
|
12562
12562
|
const evidence = evidenceOfRunResult("never-reached-its-assertions");
|
|
12563
12563
|
results.push({
|
|
12564
|
-
|
|
12564
|
+
qualityCheckKind: layer,
|
|
12565
12565
|
scnId: null,
|
|
12566
12566
|
status: evidence.status,
|
|
12567
12567
|
locator,
|
|
@@ -12576,7 +12576,7 @@ function parseVitestEvidenceObservations(report, root) {
|
|
|
12576
12576
|
continue;
|
|
12577
12577
|
const { scnId, severalCodes } = attributionOf(citingCodesOf(assertion));
|
|
12578
12578
|
results.push({
|
|
12579
|
-
|
|
12579
|
+
qualityCheckKind: layer,
|
|
12580
12580
|
scnId,
|
|
12581
12581
|
status: evidence.status,
|
|
12582
12582
|
locator,
|
|
@@ -12612,10 +12612,10 @@ function parsePytestEvidenceObservations(report) {
|
|
|
12612
12612
|
return observationsOf2(report, "never-reached-its-assertions");
|
|
12613
12613
|
}
|
|
12614
12614
|
function observationsOf2(report, errorResult) {
|
|
12615
|
-
const
|
|
12615
|
+
const layer = fallbackLayerOf("test-results");
|
|
12616
12616
|
return (report.testsuites?.testsuite ?? []).flatMap((suite) => (suite.testcase ?? []).flatMap((testcase) => {
|
|
12617
12617
|
const evidence = evidenceOfRunResult(runResultOf2(testcase, errorResult));
|
|
12618
|
-
return evidence === void 0 ? [] : [observationOf(suite, testcase, evidence,
|
|
12618
|
+
return evidence === void 0 ? [] : [observationOf(suite, testcase, evidence, layer)];
|
|
12619
12619
|
}));
|
|
12620
12620
|
}
|
|
12621
12621
|
function runResultOf2(testcase, errorResult) {
|
|
@@ -12628,21 +12628,21 @@ function runResultOf2(testcase, errorResult) {
|
|
|
12628
12628
|
return errorResult;
|
|
12629
12629
|
return testcase.failure === void 0 ? "passed" : "failed";
|
|
12630
12630
|
}
|
|
12631
|
-
function observationOf(suite, testcase, evidence,
|
|
12631
|
+
function observationOf(suite, testcase, evidence, layer) {
|
|
12632
12632
|
if (isCollectionFailure(testcase))
|
|
12633
|
-
return collectionFailureOf(testcase, evidence,
|
|
12633
|
+
return collectionFailureOf(testcase, evidence, layer);
|
|
12634
12634
|
if (isBuildFailure(testcase))
|
|
12635
|
-
return buildFailureOf(suite, testcase, evidence,
|
|
12635
|
+
return buildFailureOf(suite, testcase, evidence, layer);
|
|
12636
12636
|
if (isClassSetupFailure(testcase))
|
|
12637
|
-
return classSetupFailureOf(testcase, evidence,
|
|
12637
|
+
return classSetupFailureOf(testcase, evidence, layer);
|
|
12638
12638
|
const { scnId: soleCode, severalCodes } = attributionOf(citingCodesOf2(testcase));
|
|
12639
12639
|
const scnId = soleCode === null ? null : citedCode(soleCode);
|
|
12640
12640
|
const locator = `${testcase.classname}::${testcase.name}`;
|
|
12641
12641
|
if (evidence.broken) {
|
|
12642
|
-
return {
|
|
12642
|
+
return { qualityCheckKind: layer, scnId, status: evidence.status, locator, broken: evidence.broken, message: errorTextOf(testcase) };
|
|
12643
12643
|
}
|
|
12644
12644
|
return {
|
|
12645
|
-
|
|
12645
|
+
qualityCheckKind: layer,
|
|
12646
12646
|
scnId,
|
|
12647
12647
|
status: evidence.status,
|
|
12648
12648
|
locator,
|
|
@@ -12666,9 +12666,9 @@ function citedCode(value) {
|
|
|
12666
12666
|
function isCollectionFailure(testcase) {
|
|
12667
12667
|
return testcase.error !== void 0 && !testcase.classname;
|
|
12668
12668
|
}
|
|
12669
|
-
function collectionFailureOf(testcase, evidence,
|
|
12669
|
+
function collectionFailureOf(testcase, evidence, layer) {
|
|
12670
12670
|
return {
|
|
12671
|
-
|
|
12671
|
+
qualityCheckKind: layer,
|
|
12672
12672
|
scnId: null,
|
|
12673
12673
|
status: evidence.status,
|
|
12674
12674
|
locator: testcase.name ?? "",
|
|
@@ -12679,9 +12679,9 @@ function collectionFailureOf(testcase, evidence, qualityCheck) {
|
|
|
12679
12679
|
function isClassSetupFailure(testcase) {
|
|
12680
12680
|
return testcase.error !== void 0 && !testcase.name;
|
|
12681
12681
|
}
|
|
12682
|
-
function classSetupFailureOf(testcase, evidence,
|
|
12682
|
+
function classSetupFailureOf(testcase, evidence, layer) {
|
|
12683
12683
|
return {
|
|
12684
|
-
|
|
12684
|
+
qualityCheckKind: layer,
|
|
12685
12685
|
scnId: null,
|
|
12686
12686
|
status: evidence.status,
|
|
12687
12687
|
locator: testcase.classname,
|
|
@@ -12692,9 +12692,9 @@ function classSetupFailureOf(testcase, evidence, qualityCheck) {
|
|
|
12692
12692
|
function isBuildFailure(testcase) {
|
|
12693
12693
|
return !testcase.classname && testcase.name === GO_BUILD_FAILURE_TESTCASE && failureTextOf(testcase)?.includes(GO_BUILD_FAILURE_MARK) === true;
|
|
12694
12694
|
}
|
|
12695
|
-
function buildFailureOf(suite, testcase, evidence,
|
|
12695
|
+
function buildFailureOf(suite, testcase, evidence, layer) {
|
|
12696
12696
|
return {
|
|
12697
|
-
|
|
12697
|
+
qualityCheckKind: layer,
|
|
12698
12698
|
scnId: null,
|
|
12699
12699
|
status: evidence.status,
|
|
12700
12700
|
locator: suite.name,
|
|
@@ -12725,7 +12725,7 @@ var init_pytest = __esm({
|
|
|
12725
12725
|
|
|
12726
12726
|
// ../core/dist/parse/rspec.js
|
|
12727
12727
|
function parseRspecEvidenceObservations(report, root) {
|
|
12728
|
-
const
|
|
12728
|
+
const layer = fallbackLayerOf("test-results");
|
|
12729
12729
|
const results = [];
|
|
12730
12730
|
for (const example of report.examples ?? []) {
|
|
12731
12731
|
const evidence = evidenceOfRunResult(runResultOf3(example.status));
|
|
@@ -12733,7 +12733,7 @@ function parseRspecEvidenceObservations(report, root) {
|
|
|
12733
12733
|
continue;
|
|
12734
12734
|
const { scnId, severalCodes } = attributionOf(citingCodesOf3(example));
|
|
12735
12735
|
results.push({
|
|
12736
|
-
|
|
12736
|
+
qualityCheckKind: layer,
|
|
12737
12737
|
scnId,
|
|
12738
12738
|
status: evidence.status,
|
|
12739
12739
|
locator: example.file_path && locatorOf(example.file_path, root),
|
|
@@ -12741,9 +12741,9 @@ function parseRspecEvidenceObservations(report, root) {
|
|
|
12741
12741
|
...severalCodes ? { notes: [{ kind: "several-scn-codes", codes: severalCodes }] } : {}
|
|
12742
12742
|
});
|
|
12743
12743
|
}
|
|
12744
|
-
return [...results, ...loadErrorsOf(report,
|
|
12744
|
+
return [...results, ...loadErrorsOf(report, layer, root)];
|
|
12745
12745
|
}
|
|
12746
|
-
function loadErrorsOf(report,
|
|
12746
|
+
function loadErrorsOf(report, layer, root) {
|
|
12747
12747
|
const count = report.summary?.errors_outside_of_examples_count ?? 0;
|
|
12748
12748
|
if (count === 0)
|
|
12749
12749
|
return [];
|
|
@@ -12756,10 +12756,10 @@ function loadErrorsOf(report, qualityCheck, root) {
|
|
|
12756
12756
|
if (path === void 0)
|
|
12757
12757
|
unnamed.push(message);
|
|
12758
12758
|
else
|
|
12759
|
-
broken.push({
|
|
12759
|
+
broken.push({ qualityCheckKind: layer, scnId: null, status: evidence.status, locator: locatorOf(path, root), broken: evidence.broken, message });
|
|
12760
12760
|
}
|
|
12761
12761
|
if (count > broken.length) {
|
|
12762
|
-
broken.push({
|
|
12762
|
+
broken.push({ qualityCheckKind: layer, scnId: null, status: evidence.status, broken: evidence.broken, message: unnamed.length > 0 ? unnamed.join("\n") : void 0 });
|
|
12763
12763
|
}
|
|
12764
12764
|
return broken;
|
|
12765
12765
|
}
|
|
@@ -12806,7 +12806,7 @@ function citedCodesOf(tagNames) {
|
|
|
12806
12806
|
}
|
|
12807
12807
|
function scenarioObservations(scenario, locator) {
|
|
12808
12808
|
const tagNames = (scenario.tags ?? []).map((t) => withoutSigil(t.name ?? ""));
|
|
12809
|
-
const
|
|
12809
|
+
const layers = layersPostedAt(tagNames, fallbackLayerOf("scenario-runs"));
|
|
12810
12810
|
const { scnId, severalCodes } = attributionOf(citedCodesOf(tagNames));
|
|
12811
12811
|
const severalNotes = severalCodes ? [{ kind: "several-scn-codes", codes: severalCodes }] : [];
|
|
12812
12812
|
const steps = scenario.steps ?? [];
|
|
@@ -12816,7 +12816,7 @@ function scenarioObservations(scenario, locator) {
|
|
|
12816
12816
|
if (evidence.broken) {
|
|
12817
12817
|
const ambiguous = steps.find(isAmbiguous);
|
|
12818
12818
|
return [{
|
|
12819
|
-
|
|
12819
|
+
qualityCheckKind: layers[0],
|
|
12820
12820
|
scnId,
|
|
12821
12821
|
status: evidence.status,
|
|
12822
12822
|
locator,
|
|
@@ -12824,8 +12824,8 @@ function scenarioObservations(scenario, locator) {
|
|
|
12824
12824
|
notes: [ambiguousNote(ambiguous), ...severalNotes]
|
|
12825
12825
|
}];
|
|
12826
12826
|
}
|
|
12827
|
-
return
|
|
12828
|
-
|
|
12827
|
+
return layers.map((layer) => ({
|
|
12828
|
+
qualityCheckKind: layer,
|
|
12829
12829
|
scnId,
|
|
12830
12830
|
status: evidence.status,
|
|
12831
12831
|
locator,
|
|
@@ -27646,8 +27646,8 @@ function dispositionOfIncluded(step, runsARunner) {
|
|
|
27646
27646
|
function stepDispositions({ isReconciler, isNamedANonCheck, runsARunner }) {
|
|
27647
27647
|
return (step) => exclusionOf(step, isReconciler, isNamedANonCheck) ?? dispositionOfIncluded(step, runsARunner);
|
|
27648
27648
|
}
|
|
27649
|
-
function accountedForOf({ candidates, runners, reconciler,
|
|
27650
|
-
return candidates + runners + reconciler +
|
|
27649
|
+
function accountedForOf({ candidates, runners, reconciler, nonChecks, plumbing }) {
|
|
27650
|
+
return candidates + runners + reconciler + nonChecks + plumbing;
|
|
27651
27651
|
}
|
|
27652
27652
|
function totalOf(rows) {
|
|
27653
27653
|
const summed = (count) => rows.reduce((sum, row) => sum + row[count], 0);
|
|
@@ -27656,7 +27656,7 @@ function totalOf(rows) {
|
|
|
27656
27656
|
candidates: summed("candidates"),
|
|
27657
27657
|
runners: summed("runners"),
|
|
27658
27658
|
reconciler: summed("reconciler"),
|
|
27659
|
-
|
|
27659
|
+
nonChecks: summed("nonChecks"),
|
|
27660
27660
|
plumbing: summed("plumbing")
|
|
27661
27661
|
};
|
|
27662
27662
|
}
|
|
@@ -27667,12 +27667,12 @@ function stepsBehindCounts(steps, dispositionOf, nameOf2, roleOf) {
|
|
|
27667
27667
|
});
|
|
27668
27668
|
const namesOf = (disposition) => steps.filter((step) => dispositionOf(step) === disposition).map(nameOf2);
|
|
27669
27669
|
const runners = namesOf("runner");
|
|
27670
|
-
const
|
|
27670
|
+
const nonChecks = namesOf("nonCheck");
|
|
27671
27671
|
const plumbing = namesOf("plumbing");
|
|
27672
27672
|
return {
|
|
27673
27673
|
...runners.length > 0 ? { runners } : {},
|
|
27674
27674
|
...reconciler.length > 0 ? { reconciler } : {},
|
|
27675
|
-
...
|
|
27675
|
+
...nonChecks.length > 0 ? { nonChecks } : {},
|
|
27676
27676
|
...plumbing.length > 0 ? { plumbing } : {}
|
|
27677
27677
|
};
|
|
27678
27678
|
}
|
|
@@ -27703,8 +27703,8 @@ function declaredRunnerTest(scripts, runners, shell) {
|
|
|
27703
27703
|
}
|
|
27704
27704
|
function recognisedRunners(steps, nameOf2, scripts, runners, shell) {
|
|
27705
27705
|
const runnersRunBy = declaredRunnersRunBy(scripts, runners, shell);
|
|
27706
|
-
return steps.flatMap((step) => runnersRunBy(step).map(([
|
|
27707
|
-
|
|
27706
|
+
return steps.flatMap((step) => runnersRunBy(step).map(([layer, runner]) => ({
|
|
27707
|
+
layer,
|
|
27708
27708
|
runner,
|
|
27709
27709
|
step: nameOf2(step)
|
|
27710
27710
|
})));
|
|
@@ -27722,7 +27722,7 @@ var init_uncitedFitnessFunctions = __esm({
|
|
|
27722
27722
|
candidate: "candidates",
|
|
27723
27723
|
runner: "runners",
|
|
27724
27724
|
reconciler: "reconciler",
|
|
27725
|
-
nonCheck: "
|
|
27725
|
+
nonCheck: "nonChecks",
|
|
27726
27726
|
plumbing: "plumbing"
|
|
27727
27727
|
};
|
|
27728
27728
|
noStepsOf = ({ workflow, job }) => ({
|
|
@@ -27732,7 +27732,7 @@ var init_uncitedFitnessFunctions = __esm({
|
|
|
27732
27732
|
candidates: 0,
|
|
27733
27733
|
runners: 0,
|
|
27734
27734
|
reconciler: 0,
|
|
27735
|
-
|
|
27735
|
+
nonChecks: 0,
|
|
27736
27736
|
plumbing: 0
|
|
27737
27737
|
});
|
|
27738
27738
|
}
|
|
@@ -27741,7 +27741,7 @@ var init_uncitedFitnessFunctions = __esm({
|
|
|
27741
27741
|
// ../core/dist/domain/fitnessReconciliation.js
|
|
27742
27742
|
function namedOf({ citedScn, step }) {
|
|
27743
27743
|
return {
|
|
27744
|
-
|
|
27744
|
+
qualityCheckKind: "fitness",
|
|
27745
27745
|
fitnessFunction: citedScn,
|
|
27746
27746
|
scnId: citedScn,
|
|
27747
27747
|
...step === void 0 ? {} : { step }
|
|
@@ -27776,7 +27776,7 @@ function workflowObservationsOf(steps, isCandidate, handleOf2, stepNameOf, citat
|
|
|
27776
27776
|
const fitnessFunction = handleOf2(step);
|
|
27777
27777
|
const citation = citationOf(fitnessFunction, step.id);
|
|
27778
27778
|
return {
|
|
27779
|
-
|
|
27779
|
+
qualityCheckKind: "fitness",
|
|
27780
27780
|
fitnessFunction,
|
|
27781
27781
|
step: stepNameOf(step),
|
|
27782
27782
|
exists: true,
|
|
@@ -27885,7 +27885,7 @@ function errorsOf(scenarioCodeErrors, summary) {
|
|
|
27885
27885
|
const configuration = {
|
|
27886
27886
|
...nonEmpty("keysNotRead", summary.configurationKeysNotRead),
|
|
27887
27887
|
...nonEmpty("ofWrongKind", summary.configurationOfWrongKind),
|
|
27888
|
-
...nonEmpty("
|
|
27888
|
+
...nonEmpty("runnerKeysNotALayer", summary.runnerKeysNotALayer),
|
|
27889
27889
|
...nonEmpty("nonChecksMatchingNoStep", summary.nonChecksMatchingNoStep),
|
|
27890
27890
|
...nonEmpty("nonChecksNotAStepName", summary.nonChecksNotAStepName)
|
|
27891
27891
|
};
|
|
@@ -27895,7 +27895,7 @@ function errorsOf(scenarioCodeErrors, summary) {
|
|
|
27895
27895
|
};
|
|
27896
27896
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
27897
27897
|
}
|
|
27898
|
-
function summaryStatingNoFault({ configurationKeysNotRead: _keysNotRead, configurationOfWrongKind: _ofWrongKind,
|
|
27898
|
+
function summaryStatingNoFault({ configurationKeysNotRead: _keysNotRead, configurationOfWrongKind: _ofWrongKind, runnerKeysNotALayer: _runnerKeysNotALayer, nonChecksMatchingNoStep: _nonChecksMatchingNoStep, nonChecksNotAStepName: _nonChecksNotAStepName, ...summary }) {
|
|
27899
27899
|
return summary;
|
|
27900
27900
|
}
|
|
27901
27901
|
function nonEmpty(key, entries) {
|
|
@@ -28062,13 +28062,13 @@ var init_targetCorpus = __esm({
|
|
|
28062
28062
|
function isBlock(value) {
|
|
28063
28063
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
28064
28064
|
}
|
|
28065
|
-
function
|
|
28065
|
+
function runnerLayersOf(value) {
|
|
28066
28066
|
if (!isBlock(value))
|
|
28067
|
-
return {
|
|
28068
|
-
const
|
|
28067
|
+
return { layers: {}, unrecognisedKeys: [] };
|
|
28068
|
+
const layers = Object.fromEntries(Object.entries(value).filter((entry) => isLayer(entry[0]) && isRunner(entry[1])));
|
|
28069
28069
|
return {
|
|
28070
|
-
|
|
28071
|
-
unrecognisedKeys: Object.keys(value).filter((key) => !
|
|
28070
|
+
layers,
|
|
28071
|
+
unrecognisedKeys: Object.keys(value).filter((key) => !isLayer(key))
|
|
28072
28072
|
};
|
|
28073
28073
|
}
|
|
28074
28074
|
function kindOf(value) {
|
|
@@ -28086,11 +28086,11 @@ function wrongKindsInList(value, at) {
|
|
|
28086
28086
|
function wrongKindsInRunners(value, at) {
|
|
28087
28087
|
if (!isBlock(value))
|
|
28088
28088
|
return [wrongKind(at, value, "object")];
|
|
28089
|
-
return Object.entries(value).filter(([key, runner]) =>
|
|
28089
|
+
return Object.entries(value).filter(([key, runner]) => isLayer(key) && !isRunner(runner)).map(([key, runner]) => wrongKind(`${at}.${key}`, runner, "string-or-null"));
|
|
28090
28090
|
}
|
|
28091
28091
|
function configurationRead(values, wrongKinds, unknownKeys) {
|
|
28092
28092
|
return {
|
|
28093
|
-
runners:
|
|
28093
|
+
runners: runnerLayersOf(values.runners),
|
|
28094
28094
|
nonChecks: [...new Set(listOf(values.nonChecks))],
|
|
28095
28095
|
deferralTerms: listOf(values.deferralTags),
|
|
28096
28096
|
wrongKinds,
|
|
@@ -28105,12 +28105,12 @@ function targetConfigurationOf(block, { place, entries }) {
|
|
|
28105
28105
|
const read = Object.entries(block).flatMap(([key, value]) => Object.hasOwn(entries, key) ? [[key, entries[key], value]] : []);
|
|
28106
28106
|
return configurationRead(Object.fromEntries(read.map(([, entry, value]) => [entry, value])), read.flatMap(([key, entry, value]) => ENTRY_READS[entry](value, `${place}.${key}`)), Object.keys(block).filter((key) => !Object.hasOwn(entries, key)));
|
|
28107
28107
|
}
|
|
28108
|
-
var
|
|
28108
|
+
var isLayer, isRunner, isListEntry, wrongKind, listOf, ENTRY_READS;
|
|
28109
28109
|
var init_targetConfiguration = __esm({
|
|
28110
28110
|
"../core/dist/domain/targetConfiguration.js"() {
|
|
28111
28111
|
"use strict";
|
|
28112
28112
|
init_ledger();
|
|
28113
|
-
|
|
28113
|
+
isLayer = (key) => LAYERS.includes(key);
|
|
28114
28114
|
isRunner = (value) => typeof value === "string" || value === null;
|
|
28115
28115
|
isListEntry = (value) => typeof value === "string";
|
|
28116
28116
|
wrongKind = (entry, value, reads) => ({
|
|
@@ -28176,7 +28176,7 @@ function pipelineReadings(input) {
|
|
|
28176
28176
|
const invocation = input.reconcilerInvocation ?? "";
|
|
28177
28177
|
const scripts = packageJson.scripts ?? {};
|
|
28178
28178
|
const reconciler = reconcilerSteps(steps, qualifiedStepName, (command) => commandRuns(command, invocation, scripts));
|
|
28179
|
-
const runsARunner = declaredRunnerTest(scripts, runners.
|
|
28179
|
+
const runsARunner = declaredRunnerTest(scripts, runners.layers, shellReading);
|
|
28180
28180
|
return {
|
|
28181
28181
|
steps,
|
|
28182
28182
|
runners,
|
|
@@ -28248,18 +28248,18 @@ function withUnmatchedNonChecks(reconciliation, { matchingNoStep, notAStepName }
|
|
|
28248
28248
|
}
|
|
28249
28249
|
};
|
|
28250
28250
|
}
|
|
28251
|
-
function withRunnerAccount(reconciliation, steps, packageJson, {
|
|
28251
|
+
function withRunnerAccount(reconciliation, steps, packageJson, { layers: runnerLayers, unrecognisedKeys }) {
|
|
28252
28252
|
const scripts = packageJson.scripts ?? {};
|
|
28253
|
-
const behaviouralRunners = recognisedRunners(steps, qualifiedStepName, scripts,
|
|
28253
|
+
const behaviouralRunners = recognisedRunners(steps, qualifiedStepName, scripts, runnerLayers, shellReading);
|
|
28254
28254
|
const { evidenceObservations } = reconciliation.summary;
|
|
28255
28255
|
return {
|
|
28256
28256
|
...reconciliation,
|
|
28257
28257
|
summary: {
|
|
28258
28258
|
...reconciliation.summary,
|
|
28259
28259
|
...evidenceObservations === void 0 ? {} : {
|
|
28260
|
-
evidenceObservations: ciStepsJoined(evidenceObservations, reconciliation.ledger, behaviouralRunners,
|
|
28260
|
+
evidenceObservations: ciStepsJoined(evidenceObservations, reconciliation.ledger, behaviouralRunners, runnerLayers, steps.map(qualifiedStepName))
|
|
28261
28261
|
},
|
|
28262
|
-
...unrecognisedKeys.length > 0 ? {
|
|
28262
|
+
...unrecognisedKeys.length > 0 ? { runnerKeysNotALayer: unrecognisedKeys } : {}
|
|
28263
28263
|
}
|
|
28264
28264
|
};
|
|
28265
28265
|
}
|
|
@@ -28398,7 +28398,7 @@ var init_messages4 = __esm({
|
|
|
28398
28398
|
CoreMessage2[CoreMessage2["PendingItemsOutstanding"] = 67] = "PendingItemsOutstanding";
|
|
28399
28399
|
CoreMessage2[CoreMessage2["EvidenceReconciliationHeading"] = 68] = "EvidenceReconciliationHeading";
|
|
28400
28400
|
CoreMessage2[CoreMessage2["EvidenceReconciliationClaimReconciliationTerm"] = 69] = "EvidenceReconciliationClaimReconciliationTerm";
|
|
28401
|
-
CoreMessage2[CoreMessage2["
|
|
28401
|
+
CoreMessage2[CoreMessage2["EvidenceReconciliationReconciliationLineTerm"] = 70] = "EvidenceReconciliationReconciliationLineTerm";
|
|
28402
28402
|
CoreMessage2[CoreMessage2["EvidenceReconciliationEvidenceObligationTerm"] = 71] = "EvidenceReconciliationEvidenceObligationTerm";
|
|
28403
28403
|
CoreMessage2[CoreMessage2["EvidenceReconciliationEvidenceObservationTerm"] = 72] = "EvidenceReconciliationEvidenceObservationTerm";
|
|
28404
28404
|
CoreMessage2[CoreMessage2["SubjectColumn"] = 73] = "SubjectColumn";
|
|
@@ -28407,17 +28407,17 @@ var init_messages4 = __esm({
|
|
|
28407
28407
|
CoreMessage2[CoreMessage2["OutOfBalanceColumn"] = 76] = "OutOfBalanceColumn";
|
|
28408
28408
|
CoreMessage2[CoreMessage2["DetailColumn"] = 77] = "DetailColumn";
|
|
28409
28409
|
CoreMessage2[CoreMessage2["ClaimReconciliationSubject"] = 78] = "ClaimReconciliationSubject";
|
|
28410
|
-
CoreMessage2[CoreMessage2["
|
|
28410
|
+
CoreMessage2[CoreMessage2["ReconciliationLineSubject"] = 79] = "ReconciliationLineSubject";
|
|
28411
28411
|
CoreMessage2[CoreMessage2["PendingTally"] = 80] = "PendingTally";
|
|
28412
28412
|
CoreMessage2[CoreMessage2["EvidenceObservationsHeading"] = 81] = "EvidenceObservationsHeading";
|
|
28413
28413
|
CoreMessage2[CoreMessage2["EvidenceObservationsSum"] = 82] = "EvidenceObservationsSum";
|
|
28414
28414
|
CoreMessage2[CoreMessage2["EvidenceObservationsTableHeader"] = 83] = "EvidenceObservationsTableHeader";
|
|
28415
28415
|
CoreMessage2[CoreMessage2["FitnessRunner"] = 84] = "FitnessRunner";
|
|
28416
28416
|
CoreMessage2[CoreMessage2["FitnessCiStep"] = 85] = "FitnessCiStep";
|
|
28417
|
-
CoreMessage2[CoreMessage2["
|
|
28418
|
-
CoreMessage2[CoreMessage2["
|
|
28417
|
+
CoreMessage2[CoreMessage2["RunnerLayerNamesNone"] = 86] = "RunnerLayerNamesNone";
|
|
28418
|
+
CoreMessage2[CoreMessage2["RunnerLayerUnnamed"] = 87] = "RunnerLayerUnnamed";
|
|
28419
28419
|
CoreMessage2[CoreMessage2["NoStepReadRunsIt"] = 88] = "NoStepReadRunsIt";
|
|
28420
|
-
CoreMessage2[CoreMessage2["
|
|
28420
|
+
CoreMessage2[CoreMessage2["RunnerKeyNotALayer"] = 89] = "RunnerKeyNotALayer";
|
|
28421
28421
|
CoreMessage2[CoreMessage2["ReconcilerStep"] = 90] = "ReconcilerStep";
|
|
28422
28422
|
CoreMessage2[CoreMessage2["ReconcilerReconciles"] = 91] = "ReconcilerReconciles";
|
|
28423
28423
|
CoreMessage2[CoreMessage2["ReconcilerRecords"] = 92] = "ReconcilerRecords";
|
|
@@ -28565,7 +28565,7 @@ var init_messages4 = __esm({
|
|
|
28565
28565
|
[CoreMessage.PendingItemsOutstanding]: "Pending Items are outstanding \u2014 deferred, not out-of-balance, so the verdict stands. A run that treats a deferral as a failure gives exit 3 under `--strict`.",
|
|
28566
28566
|
[CoreMessage.EvidenceReconciliationHeading]: "### Evidence reconciliation",
|
|
28567
28567
|
[CoreMessage.EvidenceReconciliationClaimReconciliationTerm]: "A Claim Reconciliation is one row of the ledger: the evidence for one claim, a scenario, a phantom claim or the unnamed claim, reconciled quality check by quality check.",
|
|
28568
|
-
[CoreMessage.
|
|
28568
|
+
[CoreMessage.EvidenceReconciliationReconciliationLineTerm]: "A Reconciliation line is one line of a Quality Check Reconciliation, with its own outcome. No line stands in for another: a scenario whose one Evidence Obligation two passing tests answer adds one to the Claim Reconciliation total and two to the Reconciliation line total.",
|
|
28569
28569
|
[CoreMessage.EvidenceReconciliationEvidenceObligationTerm]: "An Evidence Obligation is a proof a scenario asks for, by the tags it carries, to be met by Evidence Observations.",
|
|
28570
28570
|
[CoreMessage.EvidenceReconciliationEvidenceObservationTerm]: "An Evidence Observation is one reported result of a test or a fitness function, attributed by the code it cites: to the one scenario that carries the code, to a phantom claim when no scenario carries it, and otherwise to the unnamed claim. One that never reached its assertions is broken: it was reported, but did not run to a result.",
|
|
28571
28571
|
[CoreMessage.SubjectColumn]: "Subject",
|
|
@@ -28574,17 +28574,17 @@ var init_messages4 = __esm({
|
|
|
28574
28574
|
[CoreMessage.OutOfBalanceColumn]: "Out-of-balance",
|
|
28575
28575
|
[CoreMessage.DetailColumn]: "Detail",
|
|
28576
28576
|
[CoreMessage.ClaimReconciliationSubject]: "Claim Reconciliation",
|
|
28577
|
-
[CoreMessage.
|
|
28577
|
+
[CoreMessage.ReconciliationLineSubject]: "Reconciliation line",
|
|
28578
28578
|
[CoreMessage.PendingTally]: (pending) => `${pending} Pending Item(s) \u2014 deferred, tallied apart from balanced and out-of-balance.`,
|
|
28579
28579
|
[CoreMessage.EvidenceObservationsHeading]: "### Evidence observations",
|
|
28580
28580
|
[CoreMessage.EvidenceObservationsSum]: (total, onScenario, onPhantomClaim, onUnnamedClaim) => `${total} evidence observations = ${onScenario} on scenarios + ${onPhantomClaim} on ${CITED_WITH_NO_SCENARIO} + ${onUnnamedClaim} citing no scenario.`,
|
|
28581
28581
|
[CoreMessage.EvidenceObservationsTableHeader]: "| Quality-check | Evidence observations | Runner | CI step |",
|
|
28582
28582
|
[CoreMessage.FitnessRunner]: "each fitness function's check step",
|
|
28583
28583
|
[CoreMessage.FitnessCiStep]: (steps) => `${steps} step(s), each named on its fitness function's row of Claim Reconciliations.`,
|
|
28584
|
-
[CoreMessage.
|
|
28585
|
-
[CoreMessage.
|
|
28584
|
+
[CoreMessage.RunnerLayerNamesNone]: "no runner: the target names none.",
|
|
28585
|
+
[CoreMessage.RunnerLayerUnnamed]: "unnamed: the target has not said.",
|
|
28586
28586
|
[CoreMessage.NoStepReadRunsIt]: "no step read runs it.",
|
|
28587
|
-
[CoreMessage.
|
|
28587
|
+
[CoreMessage.RunnerKeyNotALayer]: (key) => `${key} \u2014 not a tier: the runner block is keyed by the four tiers, and this key excludes nothing.`,
|
|
28588
28588
|
[CoreMessage.ReconcilerStep]: (step, whatItIs) => `${step} \u2014 the reconciler: ${whatItIs}.`,
|
|
28589
28589
|
[CoreMessage.ReconcilerReconciles]: "this step runs the reconciliation this report is",
|
|
28590
28590
|
[CoreMessage.ReconcilerRecords]: "this step writes the step record the reconciliation reads",
|
|
@@ -28629,7 +28629,7 @@ var init_messages4 = __esm({
|
|
|
28629
28629
|
"- In Reconciling items, `\u2014` means the row has no reconciling item."
|
|
28630
28630
|
].join("\n"),
|
|
28631
28631
|
[CoreMessage.PendingItem]: "pending",
|
|
28632
|
-
[CoreMessage.PendingItemFor]: (
|
|
28632
|
+
[CoreMessage.PendingItemFor]: (qualityCheckKind) => `pending: ${qualityCheckKind}`,
|
|
28633
28633
|
[CoreMessage.CheckStepNoOutcome]: (scnId) => `${scnId}: the CI run's record carries no outcome for this check's step \u2014 so the check did not run.`,
|
|
28634
28634
|
[CoreMessage.CheckStepSkipped]: (scnId) => `${scnId}: the CI run's record says this check's step was skipped \u2014 so the check did not run.`,
|
|
28635
28635
|
[CoreMessage.CheckStepEnded]: (scnId, outcome) => `${scnId}: the CI run's record says this check's step ended \`${outcome}\` \u2014 so the check did not run.`,
|
|
@@ -28957,10 +28957,10 @@ var init_configurationNotRead = __esm({
|
|
|
28957
28957
|
configurationNotReadSection = (report) => {
|
|
28958
28958
|
const wrongKinds = report.errors?.configuration?.ofWrongKind ?? [];
|
|
28959
28959
|
const unknownKeys = report.errors?.configuration?.keysNotRead ?? [];
|
|
28960
|
-
const
|
|
28960
|
+
const runnerKeysNotALayer = report.errors?.configuration?.runnerKeysNotALayer ?? [];
|
|
28961
28961
|
const nonChecksMatchingNoStep = report.errors?.configuration?.nonChecksMatchingNoStep ?? [];
|
|
28962
28962
|
const nonChecksNotAStepName = report.errors?.configuration?.nonChecksNotAStepName ?? [];
|
|
28963
|
-
if (wrongKinds.length === 0 && unknownKeys.length === 0 &&
|
|
28963
|
+
if (wrongKinds.length === 0 && unknownKeys.length === 0 && runnerKeysNotALayer.length === 0 && nonChecksMatchingNoStep.length === 0 && nonChecksNotAStepName.length === 0)
|
|
28964
28964
|
return [];
|
|
28965
28965
|
return [
|
|
28966
28966
|
CORE_MESSAGES[CoreMessage.ConfigurationNotReadHeading],
|
|
@@ -28969,7 +28969,7 @@ var init_configurationNotRead = __esm({
|
|
|
28969
28969
|
"",
|
|
28970
28970
|
...wrongKinds.map(({ entry, is, reads }) => `- ${CORE_MESSAGES[CoreMessage.ConfigurationWrongKind](codeSpan(entry), kindWords(is), kindWords(reads))}`),
|
|
28971
28971
|
...unknownKeys.map((key) => `- ${CORE_MESSAGES[CoreMessage.ConfigurationUnknownKey](codeSpan(`specController.${key}`))}`),
|
|
28972
|
-
...
|
|
28972
|
+
...runnerKeysNotALayer.map((key) => `- ${CORE_MESSAGES[CoreMessage.RunnerKeyNotALayer](codeSpan(`specController.runners.${key}`))}`),
|
|
28973
28973
|
...nonChecksMatchingNoStep.map((entry) => `- ${CORE_MESSAGES[CoreMessage.NotChecksEntryMatchesNoStep]("`specController.notChecks`", codeSpan(entry))}`),
|
|
28974
28974
|
...nonChecksNotAStepName.map((entry) => `- ${CORE_MESSAGES[CoreMessage.NotChecksEntryNotAStepName]("`specController.notChecks`", codeSpan(entry))}`),
|
|
28975
28975
|
""
|
|
@@ -28996,7 +28996,7 @@ var init_errorsInTheInputs = __esm({
|
|
|
28996
28996
|
});
|
|
28997
28997
|
|
|
28998
28998
|
// ../core/dist/render/stepAccounting.js
|
|
28999
|
-
var rowOf, jobRowsOf, totalRowOf, WHAT_IT_IS, runnersListOf, reconcilerListOf,
|
|
28999
|
+
var rowOf, jobRowsOf, totalRowOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
|
|
29000
29000
|
var init_stepAccounting = __esm({
|
|
29001
29001
|
"../core/dist/render/stepAccounting.js"() {
|
|
29002
29002
|
"use strict";
|
|
@@ -29011,15 +29011,15 @@ var init_stepAccounting = __esm({
|
|
|
29011
29011
|
row.candidates,
|
|
29012
29012
|
row.runners,
|
|
29013
29013
|
row.reconciler,
|
|
29014
|
-
row.
|
|
29014
|
+
row.nonChecks,
|
|
29015
29015
|
row.plumbing,
|
|
29016
29016
|
accountedForOf(row)
|
|
29017
29017
|
]));
|
|
29018
29018
|
totalRowOf = ({ byJob, total }) => {
|
|
29019
29019
|
if (byJob.length < 2)
|
|
29020
29020
|
return [];
|
|
29021
|
-
const { stepsRead, candidates, runners, reconciler,
|
|
29022
|
-
const counts = rowOf([stepsRead, candidates, runners, reconciler,
|
|
29021
|
+
const { stepsRead, candidates, runners, reconciler, nonChecks, plumbing } = total;
|
|
29022
|
+
const counts = rowOf([stepsRead, candidates, runners, reconciler, nonChecks, plumbing, accountedForOf(total)]);
|
|
29023
29023
|
return [`| ${CORE_MESSAGES[CoreMessage.StepAccountingTotal]} | ${counts}`];
|
|
29024
29024
|
};
|
|
29025
29025
|
WHAT_IT_IS = {
|
|
@@ -29042,13 +29042,13 @@ var init_stepAccounting = __esm({
|
|
|
29042
29042
|
""
|
|
29043
29043
|
];
|
|
29044
29044
|
};
|
|
29045
|
-
|
|
29046
|
-
const
|
|
29047
|
-
if (
|
|
29045
|
+
nonChecksListOf = ({ steps }) => {
|
|
29046
|
+
const nonChecks = steps.nonChecks ?? [];
|
|
29047
|
+
if (nonChecks.length === 0)
|
|
29048
29048
|
return [];
|
|
29049
29049
|
return [
|
|
29050
29050
|
CORE_MESSAGES[CoreMessage.StepAccountingExcludedLabel],
|
|
29051
|
-
...
|
|
29051
|
+
...nonChecks.map((step) => `- ${CORE_MESSAGES[CoreMessage.StepExcluded](step)}`),
|
|
29052
29052
|
""
|
|
29053
29053
|
];
|
|
29054
29054
|
};
|
|
@@ -29083,7 +29083,7 @@ var init_stepAccounting = __esm({
|
|
|
29083
29083
|
"",
|
|
29084
29084
|
...runnersListOf(accounting),
|
|
29085
29085
|
...reconcilerListOf(accounting),
|
|
29086
|
-
...
|
|
29086
|
+
...nonChecksListOf(accounting),
|
|
29087
29087
|
...notAppliedListOf(accounting),
|
|
29088
29088
|
...plumbingListOf(accounting)
|
|
29089
29089
|
];
|
|
@@ -29091,30 +29091,30 @@ var init_stepAccounting = __esm({
|
|
|
29091
29091
|
}
|
|
29092
29092
|
});
|
|
29093
29093
|
|
|
29094
|
-
// ../core/dist/render/
|
|
29095
|
-
var runnerCells,
|
|
29096
|
-
var
|
|
29097
|
-
"../core/dist/render/
|
|
29094
|
+
// ../core/dist/render/evidenceObservations.js
|
|
29095
|
+
var runnerCells, evidenceObservationsSection;
|
|
29096
|
+
var init_evidenceObservations = __esm({
|
|
29097
|
+
"../core/dist/render/evidenceObservations.js"() {
|
|
29098
29098
|
"use strict";
|
|
29099
29099
|
init_messages4();
|
|
29100
29100
|
init_cellSafe();
|
|
29101
|
-
runnerCells = ({
|
|
29101
|
+
runnerCells = ({ qualityCheckKind, count, runner, ciSteps }) => {
|
|
29102
29102
|
if (typeof runner === "string") {
|
|
29103
29103
|
return [
|
|
29104
29104
|
cellSafe(runner),
|
|
29105
29105
|
ciSteps ? cellSafe(ciSteps.join(", ")) : CORE_MESSAGES[CoreMessage.NoStepReadRunsIt]
|
|
29106
29106
|
];
|
|
29107
29107
|
}
|
|
29108
|
-
if (
|
|
29108
|
+
if (qualityCheckKind === "fitness") {
|
|
29109
29109
|
if (count === 0)
|
|
29110
29110
|
return ["", ""];
|
|
29111
29111
|
return [CORE_MESSAGES[CoreMessage.FitnessRunner], ciSteps ? CORE_MESSAGES[CoreMessage.FitnessCiStep](ciSteps.length) : ""];
|
|
29112
29112
|
}
|
|
29113
29113
|
if (runner === void 0)
|
|
29114
|
-
return [CORE_MESSAGES[CoreMessage.
|
|
29115
|
-
return [CORE_MESSAGES[CoreMessage.
|
|
29114
|
+
return [CORE_MESSAGES[CoreMessage.RunnerLayerUnnamed], ""];
|
|
29115
|
+
return [CORE_MESSAGES[CoreMessage.RunnerLayerNamesNone], ""];
|
|
29116
29116
|
};
|
|
29117
|
-
|
|
29117
|
+
evidenceObservationsSection = (report) => {
|
|
29118
29118
|
const observations = report.summary.evidenceObservations;
|
|
29119
29119
|
if (!observations)
|
|
29120
29120
|
return [];
|
|
@@ -29126,9 +29126,9 @@ var init_testVolume = __esm({
|
|
|
29126
29126
|
CORE_MESSAGES[CoreMessage.EvidenceObservationsTableHeader],
|
|
29127
29127
|
"| --- | --- | --- | --- |"
|
|
29128
29128
|
];
|
|
29129
|
-
for (const entry of observations.
|
|
29129
|
+
for (const entry of observations.byQualityCheckKind) {
|
|
29130
29130
|
const [runner, ciSteps] = runnerCells(entry);
|
|
29131
|
-
lines.push(`| ${entry.
|
|
29131
|
+
lines.push(`| ${entry.qualityCheckKind} | ${entry.count} | ${runner} | ${ciSteps} |`);
|
|
29132
29132
|
}
|
|
29133
29133
|
lines.push("");
|
|
29134
29134
|
return lines;
|
|
@@ -29139,26 +29139,26 @@ var init_testVolume = __esm({
|
|
|
29139
29139
|
// ../core/dist/render/evidenceGrid.js
|
|
29140
29140
|
function evidenceColumns(claims) {
|
|
29141
29141
|
const scenarioRows = claims.filter(isScenario);
|
|
29142
|
-
return
|
|
29142
|
+
return QUALITY_CHECK_KINDS.filter((qualityCheckKind) => scenarioRows.some((row) => carriesQualityCheckKind(row, qualityCheckKind)));
|
|
29143
29143
|
}
|
|
29144
|
-
function columnHeader(
|
|
29145
|
-
return
|
|
29144
|
+
function columnHeader(qualityCheckKind) {
|
|
29145
|
+
return qualityCheckKind.charAt(0).toUpperCase() + qualityCheckKind.slice(1);
|
|
29146
29146
|
}
|
|
29147
|
-
function evidenceCell(s,
|
|
29147
|
+
function evidenceCell(s, qualityCheckKind) {
|
|
29148
29148
|
if (!isScenario(s))
|
|
29149
29149
|
return "\u2014";
|
|
29150
|
-
const left =
|
|
29151
|
-
const observed = observationCountOf(s,
|
|
29150
|
+
const left = namesQualityCheckKind(s, qualityCheckKind) ? QUALITY_CHECK_KIND_LETTER[qualityCheckKind] : "-";
|
|
29151
|
+
const observed = observationCountOf(s, qualityCheckKind);
|
|
29152
29152
|
const right = observed > 0 ? String(observed) : "-";
|
|
29153
29153
|
return left === "-" && right === "-" ? "" : `${left}/${right}`;
|
|
29154
29154
|
}
|
|
29155
|
-
var
|
|
29155
|
+
var QUALITY_CHECK_KIND_LETTER;
|
|
29156
29156
|
var init_evidenceGrid = __esm({
|
|
29157
29157
|
"../core/dist/render/evidenceGrid.js"() {
|
|
29158
29158
|
"use strict";
|
|
29159
29159
|
init_journal();
|
|
29160
29160
|
init_claimReconciliation();
|
|
29161
|
-
|
|
29161
|
+
QUALITY_CHECK_KIND_LETTER = {
|
|
29162
29162
|
fitness: "F",
|
|
29163
29163
|
unit: "U",
|
|
29164
29164
|
integration: "I",
|
|
@@ -29221,7 +29221,7 @@ function groupOf(sharedScnCode, observations) {
|
|
|
29221
29221
|
const [first] = observations;
|
|
29222
29222
|
const passed = observations.filter((o) => o.status === "passed").length;
|
|
29223
29223
|
return {
|
|
29224
|
-
|
|
29224
|
+
qualityCheckKind: first.qualityCheckKind,
|
|
29225
29225
|
locator: first.locator,
|
|
29226
29226
|
...sharedScnCode === null ? {} : { sharedScnCode },
|
|
29227
29227
|
remarks: remarksOf(observations),
|
|
@@ -29248,7 +29248,7 @@ function unnamedClaimGroupsOf(lines) {
|
|
|
29248
29248
|
if (isFitnessObservation(o))
|
|
29249
29249
|
continue;
|
|
29250
29250
|
const code = sharedScnCodeOf(o);
|
|
29251
|
-
const key = JSON.stringify([o.
|
|
29251
|
+
const key = JSON.stringify([o.qualityCheckKind, o.locator ?? null, code]);
|
|
29252
29252
|
byFile.set(key, { code, members: [...byFile.get(key)?.members ?? [], o] });
|
|
29253
29253
|
}
|
|
29254
29254
|
return [...[...byFile.values()].map(({ code, members }) => groupOf(code, members)), ...stepsGroupsOf(observations)];
|
|
@@ -29263,10 +29263,10 @@ var init_unnamedClaimGroups = __esm({
|
|
|
29263
29263
|
// ../core/dist/render/markdown.js
|
|
29264
29264
|
function renderLine(line) {
|
|
29265
29265
|
const sentence = `${OUTCOME_DESCRIPTION[line.outcome]}${scenarioClauseOf(line)}`;
|
|
29266
|
-
if (line.outcome === "both-missing" || line.outcome === "no-scn-code" || line.
|
|
29266
|
+
if (line.outcome === "both-missing" || line.outcome === "no-scn-code" || line.qualityCheckKind === void 0) {
|
|
29267
29267
|
return sentence;
|
|
29268
29268
|
}
|
|
29269
|
-
const head = `${line.
|
|
29269
|
+
const head = `${line.qualityCheckKind}: ${sentence}`;
|
|
29270
29270
|
const observation = line.evidenceObservation;
|
|
29271
29271
|
if (observation === void 0)
|
|
29272
29272
|
return head;
|
|
@@ -29294,7 +29294,7 @@ function resultOf(o) {
|
|
|
29294
29294
|
return o.status === void 0 ? "" : ` \u2014 ${CORE_MESSAGES[RESULT_MESSAGE[o.status]]}`;
|
|
29295
29295
|
}
|
|
29296
29296
|
function renderPendingItem(item) {
|
|
29297
|
-
return item.
|
|
29297
|
+
return item.qualityCheckKind === void 0 ? CORE_MESSAGES[CoreMessage.PendingItem] : CORE_MESSAGES[CoreMessage.PendingItemFor](item.qualityCheckKind);
|
|
29298
29298
|
}
|
|
29299
29299
|
function renderFileGroup(group) {
|
|
29300
29300
|
const remarks = group.remarks.flatMap((remark) => remarkHeadlineOf(remark) ?? []);
|
|
@@ -29303,7 +29303,7 @@ function renderFileGroup(group) {
|
|
|
29303
29303
|
const counts = CORE_MESSAGES[CoreMessage.UnnamedClaimGroupCounts](group.ran, group.passed, group.failed);
|
|
29304
29304
|
const names = group.failedNames.map((name) => name.trim()).filter((name) => name !== "");
|
|
29305
29305
|
const failed = names.length === 0 ? "" : ` ${CORE_MESSAGES[CoreMessage.UnnamedClaimFailedNames](names)}`;
|
|
29306
|
-
return `${group.
|
|
29306
|
+
return `${group.qualityCheckKind}: ${OUTCOME_DESCRIPTION["cites-no-scenario"]}${quotedSuffix([group.locator, said])} \u2014 ${counts}${failed}`;
|
|
29307
29307
|
}
|
|
29308
29308
|
function renderUnnamedClaimGroup(group) {
|
|
29309
29309
|
if (!("names" in group))
|
|
@@ -29389,7 +29389,7 @@ function sharedScnCodeLines(shared, scenarios) {
|
|
|
29389
29389
|
...shared.map((code) => ` - ${code.scnId}: ${code.scenarios.map((s) => `${s.feature} : ${s.scenario}`).join("; ")}`)
|
|
29390
29390
|
];
|
|
29391
29391
|
}
|
|
29392
|
-
function ledgerTableLines(claims, columns,
|
|
29392
|
+
function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
29393
29393
|
const withSteps2 = columns.length > 0;
|
|
29394
29394
|
const headers = [
|
|
29395
29395
|
CORE_MESSAGES[CoreMessage.ClaimColumn],
|
|
@@ -29402,7 +29402,7 @@ function ledgerTableLines(claims, columns, stepsByQualityCheck) {
|
|
|
29402
29402
|
for (const s of claims) {
|
|
29403
29403
|
const cells = columns.map((col) => evidenceCell(s, col));
|
|
29404
29404
|
const items = renderRowExceptions(s);
|
|
29405
|
-
const steps = withSteps2 ? [cellSafe(ciStepsOf(s,
|
|
29405
|
+
const steps = withSteps2 ? [cellSafe(ciStepsOf(s, stepsByQualityCheckKind).join(", "))] : [];
|
|
29406
29406
|
lines.push(`| ${[s.claim, ...cells, s.verdict, items, ...steps].join(" | ")} |`);
|
|
29407
29407
|
}
|
|
29408
29408
|
return lines;
|
|
@@ -29427,7 +29427,7 @@ var init_markdown = __esm({
|
|
|
29427
29427
|
init_provenanceSection();
|
|
29428
29428
|
init_errorsInTheInputs();
|
|
29429
29429
|
init_stepAccounting();
|
|
29430
|
-
|
|
29430
|
+
init_evidenceObservations();
|
|
29431
29431
|
init_evidenceGrid();
|
|
29432
29432
|
init_messages4();
|
|
29433
29433
|
init_remarkWords();
|
|
@@ -29472,14 +29472,14 @@ var init_markdown = __esm({
|
|
|
29472
29472
|
];
|
|
29473
29473
|
EVIDENCE_RECONCILIATION_TERMS = [
|
|
29474
29474
|
CoreMessage.EvidenceReconciliationClaimReconciliationTerm,
|
|
29475
|
-
CoreMessage.
|
|
29475
|
+
CoreMessage.EvidenceReconciliationReconciliationLineTerm,
|
|
29476
29476
|
CoreMessage.EvidenceReconciliationEvidenceObligationTerm,
|
|
29477
29477
|
CoreMessage.EvidenceReconciliationEvidenceObservationTerm
|
|
29478
29478
|
];
|
|
29479
29479
|
evidenceReconciliationSection = (report) => {
|
|
29480
|
-
const { claimReconciliations,
|
|
29480
|
+
const { claimReconciliations, reconciliationLines, pending } = report.summary.evidenceReconciliation;
|
|
29481
29481
|
const row = (cells) => `| ${cells.join(" | ")} |`;
|
|
29482
|
-
const missingSplit =
|
|
29482
|
+
const missingSplit = reconciliationLines.missingByQualityCheckKind.map(({ subject, count }) => `${count} ${subject}`).join(" + ");
|
|
29483
29483
|
const lines = [
|
|
29484
29484
|
CORE_MESSAGES[CoreMessage.EvidenceReconciliationHeading],
|
|
29485
29485
|
"",
|
|
@@ -29495,16 +29495,16 @@ var init_markdown = __esm({
|
|
|
29495
29495
|
""
|
|
29496
29496
|
]),
|
|
29497
29497
|
row([
|
|
29498
|
-
CORE_MESSAGES[CoreMessage.
|
|
29499
|
-
String(
|
|
29500
|
-
String(
|
|
29501
|
-
String(
|
|
29498
|
+
CORE_MESSAGES[CoreMessage.ReconciliationLineSubject],
|
|
29499
|
+
String(reconciliationLines.total),
|
|
29500
|
+
String(reconciliationLines.byOutcome.satisfied),
|
|
29501
|
+
String(reconciliationLines.outOfBalance),
|
|
29502
29502
|
""
|
|
29503
29503
|
])
|
|
29504
29504
|
];
|
|
29505
29505
|
for (const outcome of OUT_OF_BALANCE_OUTCOMES) {
|
|
29506
29506
|
const detail = outcome === "missing" ? missingSplit : "";
|
|
29507
|
-
lines.push(row([OUTCOME_DESCRIPTION[outcome], "", "", String(
|
|
29507
|
+
lines.push(row([OUTCOME_DESCRIPTION[outcome], "", "", String(reconciliationLines.byOutcome[outcome]), detail]));
|
|
29508
29508
|
}
|
|
29509
29509
|
lines.push(...pendingTally(pending));
|
|
29510
29510
|
lines.push("");
|
|
@@ -29539,7 +29539,7 @@ var init_markdown = __esm({
|
|
|
29539
29539
|
...censusLines(report.scenarioCodes, scenarioRows.length),
|
|
29540
29540
|
"",
|
|
29541
29541
|
...evidenceKeyLines(columns),
|
|
29542
|
-
...ledgerTableLines(claims, columns, report.summary.evidenceObservations?.
|
|
29542
|
+
...ledgerTableLines(claims, columns, report.summary.evidenceObservations?.byQualityCheckKind ?? []),
|
|
29543
29543
|
""
|
|
29544
29544
|
];
|
|
29545
29545
|
};
|
|
@@ -29552,7 +29552,7 @@ var init_markdown = __esm({
|
|
|
29552
29552
|
(report, _inputNames, exitCodeOf2) => runVerdictSection(report, exitCodeOf2),
|
|
29553
29553
|
scenarioCodesCleanStatement,
|
|
29554
29554
|
evidenceReconciliationSection,
|
|
29555
|
-
|
|
29555
|
+
evidenceObservationsSection,
|
|
29556
29556
|
stepAccountingSection,
|
|
29557
29557
|
byFeatureSection,
|
|
29558
29558
|
ledgerSection
|
|
@@ -29837,7 +29837,7 @@ var init_inputShapes = __esm({
|
|
|
29837
29837
|
fields: {
|
|
29838
29838
|
keysNotRead: { list: "anything" },
|
|
29839
29839
|
ofWrongKind: { list: "anything" },
|
|
29840
|
-
|
|
29840
|
+
runnerKeysNotALayer: { list: "anything" },
|
|
29841
29841
|
nonChecksMatchingNoStep: { list: "anything" },
|
|
29842
29842
|
nonChecksNotAStepName: { list: "anything" }
|
|
29843
29843
|
}
|