spec-controller 0.1.239 → 0.1.240
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 +230 -230
- package/dist/spec-reconciliation.schema.json +30 -30
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -204,21 +204,21 @@ var init_messages_en = __esm({
|
|
|
204
204
|
"junit-flag": "A JUnit XML report from any test runner that writes one, such as gotestsum --junitfile, or a directory of them, such as Maven Surefire's \u2014 runtime unit test evidence.",
|
|
205
205
|
"rspec-flag": "An RSpec JSON report (rspec --format json --out) \u2014 runtime unit test evidence.",
|
|
206
206
|
"cucumber-flag": "A Cucumber JSON report \u2014 runtime test evidence.",
|
|
207
|
-
"ci-flag": "Your CI workflows \u2014 a file, or a directory of them (default .github/workflows). Where a fitness function you have not converted is found running over the real source, and where a check step's `id:` supplies the
|
|
208
|
-
"package-json-flag": "The target's package.json \u2014 its `scripts`, and its specController.runners, specController.notChecks and specController.deferralTags. A fitness function is named by its @fitness scenario and the CI step whose id: is that scenario's
|
|
207
|
+
"ci-flag": "Your CI workflows \u2014 a file, or a directory of them (default .github/workflows). Where a fitness function you have not converted is found running over the real source, and where a check step's `id:` supplies the claim code its result cites.",
|
|
208
|
+
"package-json-flag": "The target's package.json \u2014 its `scripts`, and its specController.runners, specController.notChecks and specController.deferralTags. A fitness function is named by its @fitness scenario and the CI step whose id: is that scenario's claim code; no manifest key names one.",
|
|
209
209
|
"ci-steps-flag": "The CI run's own record of what each of its steps did \u2014 your pipeline's `toJSON(steps)` dump, evidence for the converted fitness functions. Omit it if you have converted none.",
|
|
210
210
|
"target-flag": "A name recorded verbatim in the report's provenance (which project this run reconciled).",
|
|
211
211
|
"source-sha-flag": "Override the git commit SHA recorded in provenance (defaults to the resolved HEAD).",
|
|
212
212
|
"format-flag": "Where to send output (md or json, optionally :<path> to write to a file). Repeatable.",
|
|
213
213
|
"render-from-json-flag": "Re-render Markdown from a previously saved Evidence Reconciliation JSON \u2014 no reconcile, no live inputs.",
|
|
214
214
|
"strict-flag": "Fail the run (exit 3) when it carries Pending Items \u2014 the opt-in that escalates otherwise-run-neutral deferred obligations.",
|
|
215
|
-
"exit-zero-flag": "Print the same report but exit 0 on an out-of-balance or
|
|
215
|
+
"exit-zero-flag": "Print the same report but exit 0 on an out-of-balance or claim-code-error (1) or --strict pending (3) verdict \u2014 the on-ramp before gating. Usage (2), unsound (4) and nothing-to-reconcile (5) still fail.",
|
|
216
216
|
"configuration-heading": "Configuration (in the target repo's package.json):",
|
|
217
217
|
"deferral-tags-key": "specController.deferralTags: string[]",
|
|
218
218
|
"deferral-tags-explanation": "Extra recognised deferral tags. A scenario carrying one defers every obligation it\nnames to a Pending Item, extending (never replacing) the built-in set.",
|
|
219
219
|
"built-in-deferral-tags": "Built-in deferral tags: {tags}",
|
|
220
|
-
"measurements-replacement": "A fitness function's evidence observation is the outcome of its own CI step: put the check's
|
|
221
|
-
"allocate-summary": "Print the next
|
|
220
|
+
"measurements-replacement": "A fitness function's evidence observation is the outcome of its own CI step: put the check's claim code on that step's `id:` and hand balance the run's step record with --ci-steps.",
|
|
221
|
+
"allocate-summary": "Print the next claim code for a feature part: one past the highest the repository has ever carried, the code alone on stdout.",
|
|
222
222
|
"feature-part-argument": "The feature part: a feature file's header code, two to five of A-Z and 0-9.",
|
|
223
223
|
"new-flag": "Start a part no feature file's header carries yet: its first code, or one past any number the repository already carries for it.",
|
|
224
224
|
"shallow-history-risks-part-code": "history: shallow clone \u2014 history before {before} unread; a code of {part} may have been used before",
|
|
@@ -11424,8 +11424,8 @@ var init_bareTerm = __esm({
|
|
|
11424
11424
|
});
|
|
11425
11425
|
|
|
11426
11426
|
// ../core/dist/domain/featureCode.js
|
|
11427
|
-
function featureCodeOf(
|
|
11428
|
-
const match = FEATURE_CODE_OF.exec(
|
|
11427
|
+
function featureCodeOf(claimCode) {
|
|
11428
|
+
const match = FEATURE_CODE_OF.exec(claimCode);
|
|
11429
11429
|
return match ? match[1] : null;
|
|
11430
11430
|
}
|
|
11431
11431
|
function isFeaturePart(text) {
|
|
@@ -11451,8 +11451,8 @@ var init_featureCode = __esm({
|
|
|
11451
11451
|
function attributionOf(codes) {
|
|
11452
11452
|
const distinct = [...new Set(codes)];
|
|
11453
11453
|
if (distinct.length > 1)
|
|
11454
|
-
return {
|
|
11455
|
-
return {
|
|
11454
|
+
return { claimCode: null, severalCodes: distinct };
|
|
11455
|
+
return { claimCode: distinct[0] ?? null };
|
|
11456
11456
|
}
|
|
11457
11457
|
var init_attribution = __esm({
|
|
11458
11458
|
"../core/dist/domain/attribution.js"() {
|
|
@@ -11466,10 +11466,10 @@ function foreignCodeCarriersOf(error) {
|
|
|
11466
11466
|
return first === void 0 ? { kind: "none" } : { kind: "carried", files: [first, ...rest] };
|
|
11467
11467
|
}
|
|
11468
11468
|
function hasScenarioCodeErrors(reconciliation) {
|
|
11469
|
-
return (reconciliation.
|
|
11469
|
+
return (reconciliation.claimCodeErrors ?? []).length > 0;
|
|
11470
11470
|
}
|
|
11471
11471
|
function scenarioCodeErrorsAre(errors) {
|
|
11472
|
-
const several = errors.filter((error) => error.kind === "several-
|
|
11472
|
+
const several = errors.filter((error) => error.kind === "several-claim-codes").length;
|
|
11473
11473
|
if (several === 0)
|
|
11474
11474
|
return "misfilings";
|
|
11475
11475
|
return several === errors.length ? "several-codes" : "both";
|
|
@@ -11510,8 +11510,8 @@ function duplicateFeatureCodes(features) {
|
|
|
11510
11510
|
}
|
|
11511
11511
|
function codedScenarioIds(feature) {
|
|
11512
11512
|
return feature.scenarios.flatMap(({ tags }) => {
|
|
11513
|
-
const {
|
|
11514
|
-
return
|
|
11513
|
+
const { claimCode } = scenarioCodesOf(tags);
|
|
11514
|
+
return claimCode === null ? [] : [claimCode];
|
|
11515
11515
|
});
|
|
11516
11516
|
}
|
|
11517
11517
|
function foreignScenarioCodes(features) {
|
|
@@ -11520,16 +11520,16 @@ function foreignScenarioCodes(features) {
|
|
|
11520
11520
|
for (const feature of features) {
|
|
11521
11521
|
if (feature.featureCode === null)
|
|
11522
11522
|
continue;
|
|
11523
|
-
for (const
|
|
11524
|
-
const named = featureCodeOf(
|
|
11523
|
+
for (const claimCode of codedScenarioIds(feature)) {
|
|
11524
|
+
const named = featureCodeOf(claimCode);
|
|
11525
11525
|
if (named === null || named === feature.featureCode)
|
|
11526
11526
|
continue;
|
|
11527
11527
|
const carriers = carriersByCode.get(named) ?? [];
|
|
11528
11528
|
faults.push({
|
|
11529
|
-
kind: "foreign-
|
|
11529
|
+
kind: "foreign-claim-code",
|
|
11530
11530
|
files: [feature.file],
|
|
11531
11531
|
featureCode: feature.featureCode,
|
|
11532
|
-
|
|
11532
|
+
claimCode,
|
|
11533
11533
|
namedFeatureCode: named,
|
|
11534
11534
|
namedFeatureFiles: carriers
|
|
11535
11535
|
});
|
|
@@ -11550,7 +11550,7 @@ function severalScnCodes(features) {
|
|
|
11550
11550
|
return [];
|
|
11551
11551
|
return [
|
|
11552
11552
|
{
|
|
11553
|
-
kind: "several-
|
|
11553
|
+
kind: "several-claim-codes",
|
|
11554
11554
|
files: [feature.file],
|
|
11555
11555
|
scenario: name,
|
|
11556
11556
|
codes: severalCodes
|
|
@@ -11584,11 +11584,11 @@ function untaggedScenarioId({ feature, title }) {
|
|
|
11584
11584
|
function sharedScnCodesOf(files) {
|
|
11585
11585
|
const byCode = /* @__PURE__ */ new Map();
|
|
11586
11586
|
for (const { feature, taggedScenarios } of files) {
|
|
11587
|
-
for (const {
|
|
11588
|
-
byCode.set(
|
|
11587
|
+
for (const { claimCode, name } of taggedScenarios) {
|
|
11588
|
+
byCode.set(claimCode, [...byCode.get(claimCode) ?? [], { feature, title: name }]);
|
|
11589
11589
|
}
|
|
11590
11590
|
}
|
|
11591
|
-
return [...byCode].filter(([, scenarios]) => scenarios.length > 1).map(([
|
|
11591
|
+
return [...byCode].filter(([, scenarios]) => scenarios.length > 1).map(([claimCode, scenarios]) => ({ claimCode, scenarios })).sort((a, b) => a.claimCode.localeCompare(b.claimCode));
|
|
11592
11592
|
}
|
|
11593
11593
|
function corpusCountsOf(files) {
|
|
11594
11594
|
const raw = files.reduce((n, f) => n + f.rawScnOccurrences, 0);
|
|
@@ -11597,13 +11597,13 @@ function corpusCountsOf(files) {
|
|
|
11597
11597
|
const untagged = files.flatMap(({ feature, untaggedScenarios }) => untaggedScenarios.map((title) => ({ feature, title }))).sort((a, b) => a.feature.localeCompare(b.feature) || a.title.localeCompare(b.title));
|
|
11598
11598
|
return evidenceObligations(raw, scenarioCount, untagged, sharedScnCodesOf(files), tagOccurrences);
|
|
11599
11599
|
}
|
|
11600
|
-
function evidenceObligations(raw, scenarioCount, untaggedScenarios = [],
|
|
11600
|
+
function evidenceObligations(raw, scenarioCount, untaggedScenarios = [], sharedClaimCodes = [], tagOccurrences = scenarioCount) {
|
|
11601
11601
|
return {
|
|
11602
11602
|
rawScnOccurrences: raw,
|
|
11603
11603
|
scenarioCount,
|
|
11604
11604
|
excludedOccurrences: raw - tagOccurrences,
|
|
11605
11605
|
untaggedScenarios,
|
|
11606
|
-
|
|
11606
|
+
sharedClaimCodes
|
|
11607
11607
|
};
|
|
11608
11608
|
}
|
|
11609
11609
|
var init_corpusCounts = __esm({
|
|
@@ -11732,13 +11732,13 @@ function scenariosByScnCodeOf({ scenarios }) {
|
|
|
11732
11732
|
const taggedScenarios = [];
|
|
11733
11733
|
const untaggedScenarios = [];
|
|
11734
11734
|
for (const { name, tags } of scenarios) {
|
|
11735
|
-
const {
|
|
11735
|
+
const { claimCode, severalCodes } = scenarioCodesOf(tags);
|
|
11736
11736
|
if (severalCodes !== void 0)
|
|
11737
11737
|
continue;
|
|
11738
|
-
if (
|
|
11738
|
+
if (claimCode === null)
|
|
11739
11739
|
untaggedScenarios.push(name);
|
|
11740
11740
|
else
|
|
11741
|
-
taggedScenarios.push({
|
|
11741
|
+
taggedScenarios.push({ claimCode, tags, name });
|
|
11742
11742
|
}
|
|
11743
11743
|
return { taggedScenarios, untaggedScenarios };
|
|
11744
11744
|
}
|
|
@@ -11759,7 +11759,7 @@ function corpusCountsOfFeatures(features) {
|
|
|
11759
11759
|
}
|
|
11760
11760
|
function namedScenariosOf(feature, deferralTags = []) {
|
|
11761
11761
|
return scenariosByScnCodeOf(feature).taggedScenarios.map((scenario) => ({
|
|
11762
|
-
|
|
11762
|
+
claimCode: scenario.claimCode,
|
|
11763
11763
|
evidenceObligations: obligationsRaisedBy(scenario.tags, deferralTags),
|
|
11764
11764
|
feature: feature.file,
|
|
11765
11765
|
title: scenario.name
|
|
@@ -11800,13 +11800,13 @@ function evidenceObligationPairsOf(scenarios) {
|
|
|
11800
11800
|
for (const obligation of scenario.evidenceObligations) {
|
|
11801
11801
|
if (obligation.pending === true)
|
|
11802
11802
|
continue;
|
|
11803
|
-
pairs.add(evidenceObligationPairKey(scenario.
|
|
11803
|
+
pairs.add(evidenceObligationPairKey(scenario.claimCode, obligation.qualityCheckKind));
|
|
11804
11804
|
}
|
|
11805
11805
|
}
|
|
11806
11806
|
return pairs;
|
|
11807
11807
|
}
|
|
11808
|
-
function evidenceObligationPairKey(
|
|
11809
|
-
return `${
|
|
11808
|
+
function evidenceObligationPairKey(claimCode, qualityCheckKind) {
|
|
11809
|
+
return `${claimCode} ${qualityCheckKind}`;
|
|
11810
11810
|
}
|
|
11811
11811
|
function evidenceObligationsOf(evidenceObligations2) {
|
|
11812
11812
|
return evidenceObligations2.filter((obligation) => !obligation.pending);
|
|
@@ -11931,8 +11931,8 @@ function linesFor(observations, answering) {
|
|
|
11931
11931
|
function observationsField(observations) {
|
|
11932
11932
|
return observations.length > 0 ? { evidenceObservations: observations } : {};
|
|
11933
11933
|
}
|
|
11934
|
-
function reconcileEvidenceObligation(
|
|
11935
|
-
const citing = evidenceObservations.filter((o) => o.qualityCheckKind === obligation.qualityCheckKind && o.
|
|
11934
|
+
function reconcileEvidenceObligation(claimCode, obligation, evidenceObservations) {
|
|
11935
|
+
const citing = evidenceObservations.filter((o) => o.qualityCheckKind === obligation.qualityCheckKind && o.claimCode === claimCode);
|
|
11936
11936
|
const answered = citing.some((o) => o.broken !== true);
|
|
11937
11937
|
return makeQualityCheckReconciliation({
|
|
11938
11938
|
qualityCheckKind: obligation.qualityCheckKind,
|
|
@@ -11948,8 +11948,8 @@ function reconciliationsByQualityCheckKind(observations, answering) {
|
|
|
11948
11948
|
}
|
|
11949
11949
|
return [...groups].map(([qualityCheckKind, group]) => makeQualityCheckReconciliation({ qualityCheckKind, evidenceObservations: linesFor(group, answering) }));
|
|
11950
11950
|
}
|
|
11951
|
-
function noEvidenceObligationReconciliationsOf(
|
|
11952
|
-
return reconciliationsByQualityCheckKind(postedObservations.filter((o) => !evidenceObligationPairs.has(evidenceObligationPairKey(
|
|
11951
|
+
function noEvidenceObligationReconciliationsOf(claimCode, postedObservations, evidenceObligationPairs) {
|
|
11952
|
+
return reconciliationsByQualityCheckKind(postedObservations.filter((o) => !evidenceObligationPairs.has(evidenceObligationPairKey(claimCode, o.qualityCheckKind))), "scenario");
|
|
11953
11953
|
}
|
|
11954
11954
|
function citesUnknownScenarioReconciliationsOf(observations) {
|
|
11955
11955
|
return reconciliationsByQualityCheckKind(observations, "phantom-claim");
|
|
@@ -11958,7 +11958,7 @@ function unnamedClaimReconciliationsOf(observations) {
|
|
|
11958
11958
|
return reconciliationsByQualityCheckKind(observations, "unnamed-claim");
|
|
11959
11959
|
}
|
|
11960
11960
|
function noScnCodeReconciliations() {
|
|
11961
|
-
return [makeQualityCheckReconciliation({ outcome: "no-
|
|
11961
|
+
return [makeQualityCheckReconciliation({ outcome: "no-claim-code", evidenceObligation: { qualityCheckKind: null } })];
|
|
11962
11962
|
}
|
|
11963
11963
|
function duplicateScnCodeReconciliationsOf(obligations, scenario) {
|
|
11964
11964
|
const naming = scenario === void 0 ? {} : { scenario };
|
|
@@ -11968,11 +11968,11 @@ function duplicateScnCodeReconciliationsOf(obligations, scenario) {
|
|
|
11968
11968
|
kinds.add(obligation.qualityCheckKind);
|
|
11969
11969
|
}
|
|
11970
11970
|
if (kinds.size === 0) {
|
|
11971
|
-
return [makeQualityCheckReconciliation({ outcome: "duplicate-
|
|
11971
|
+
return [makeQualityCheckReconciliation({ outcome: "duplicate-claim-code", evidenceObligation: { qualityCheckKind: null }, ...naming })];
|
|
11972
11972
|
}
|
|
11973
11973
|
return [...kinds].map((qualityCheckKind) => makeQualityCheckReconciliation({
|
|
11974
11974
|
qualityCheckKind,
|
|
11975
|
-
outcome: "duplicate-
|
|
11975
|
+
outcome: "duplicate-claim-code",
|
|
11976
11976
|
evidenceObligation: { qualityCheckKind },
|
|
11977
11977
|
...naming
|
|
11978
11978
|
}));
|
|
@@ -11992,8 +11992,8 @@ var init_qualityCheckReconciliation = __esm({
|
|
|
11992
11992
|
missing: { obligation: "Exists", observation: "None" },
|
|
11993
11993
|
failing: { obligation: "Exists", observation: "Exists" },
|
|
11994
11994
|
watermelon: { obligation: "Exists", observation: "Exists" },
|
|
11995
|
-
"no-
|
|
11996
|
-
"duplicate-
|
|
11995
|
+
"no-claim-code": { obligation: "Exists", observation: "None" },
|
|
11996
|
+
"duplicate-claim-code": { obligation: "Exists", observation: "None" },
|
|
11997
11997
|
"cites-unknown-scenario": { obligation: "None", observation: "Exists" },
|
|
11998
11998
|
"cites-no-scenario": { obligation: "None", observation: "Exists" },
|
|
11999
11999
|
"no-evidence-obligation": { obligation: "None", observation: "Exists" },
|
|
@@ -12065,7 +12065,7 @@ function outOfBalanceCountOf(rows) {
|
|
|
12065
12065
|
return rows.filter(isOutOfBalance).length;
|
|
12066
12066
|
}
|
|
12067
12067
|
function carriesNoScnCode(row) {
|
|
12068
|
-
return reconcilingItemsOf(row).some((item) => item.outcome === "no-
|
|
12068
|
+
return reconcilingItemsOf(row).some((item) => item.outcome === "no-claim-code");
|
|
12069
12069
|
}
|
|
12070
12070
|
function ranObservationsOf(row) {
|
|
12071
12071
|
return observationsOf(row).filter((o) => o.broken !== true);
|
|
@@ -12162,8 +12162,8 @@ function reconciliationLineTotals(ledger) {
|
|
|
12162
12162
|
"watermelon": 0,
|
|
12163
12163
|
"cites-unknown-scenario": 0,
|
|
12164
12164
|
"cites-no-scenario": 0,
|
|
12165
|
-
"no-
|
|
12166
|
-
"duplicate-
|
|
12165
|
+
"no-claim-code": 0,
|
|
12166
|
+
"duplicate-claim-code": 0,
|
|
12167
12167
|
"broken": 0,
|
|
12168
12168
|
"no-evidence-obligation": 0,
|
|
12169
12169
|
"both-missing": 0
|
|
@@ -12250,14 +12250,14 @@ var init_ledger = __esm({
|
|
|
12250
12250
|
});
|
|
12251
12251
|
|
|
12252
12252
|
// ../core/dist/domain/posting.js
|
|
12253
|
-
function postingOf(observation, scenarioIds,
|
|
12254
|
-
const
|
|
12255
|
-
if (
|
|
12253
|
+
function postingOf(observation, scenarioIds, sharedClaimCodes = /* @__PURE__ */ new Set()) {
|
|
12254
|
+
const claimCode = observation.claimCode ?? null;
|
|
12255
|
+
if (claimCode === null || sharedClaimCodes.has(claimCode)) {
|
|
12256
12256
|
if (observation.broken === true)
|
|
12257
12257
|
return { kind: "unnamed-claim", posted: "broken" };
|
|
12258
|
-
return { kind: "unnamed-claim", posted:
|
|
12258
|
+
return { kind: "unnamed-claim", posted: claimCode === null ? "cites-nothing" : "cites-shared-code" };
|
|
12259
12259
|
}
|
|
12260
|
-
return scenarioIds.has(
|
|
12260
|
+
return scenarioIds.has(claimCode) ? { kind: "scenario", claimCode } : { kind: "phantom-claim", claimCode };
|
|
12261
12261
|
}
|
|
12262
12262
|
var init_posting = __esm({
|
|
12263
12263
|
"../core/dist/domain/posting.js"() {
|
|
@@ -12274,7 +12274,7 @@ function withSortedKeys(_key, value) {
|
|
|
12274
12274
|
}
|
|
12275
12275
|
function evidenceOrderKey(o) {
|
|
12276
12276
|
const content = JSON.stringify(o, withSortedKeys);
|
|
12277
|
-
return [QUALITY_CHECK_KINDS_FITNESS_LAST.indexOf(o.qualityCheckKind), o.locator ?? "", o.
|
|
12277
|
+
return [QUALITY_CHECK_KINDS_FITNESS_LAST.indexOf(o.qualityCheckKind), o.locator ?? "", o.claimCode ?? "", content].join("\0");
|
|
12278
12278
|
}
|
|
12279
12279
|
function inEvidenceOrder(observations) {
|
|
12280
12280
|
const byKey = /* @__PURE__ */ new Map();
|
|
@@ -12297,29 +12297,29 @@ function citationIndex() {
|
|
|
12297
12297
|
const phantomClaimIds = [];
|
|
12298
12298
|
return {
|
|
12299
12299
|
file(posting, observation) {
|
|
12300
|
-
const list = byScn.get(posting.
|
|
12300
|
+
const list = byScn.get(posting.claimCode) ?? [];
|
|
12301
12301
|
list.push(observation);
|
|
12302
|
-
byScn.set(posting.
|
|
12303
|
-
if (posting.kind === "phantom-claim" && !phantomClaimIds.includes(posting.
|
|
12304
|
-
phantomClaimIds.push(posting.
|
|
12302
|
+
byScn.set(posting.claimCode, list);
|
|
12303
|
+
if (posting.kind === "phantom-claim" && !phantomClaimIds.includes(posting.claimCode)) {
|
|
12304
|
+
phantomClaimIds.push(posting.claimCode);
|
|
12305
12305
|
}
|
|
12306
12306
|
},
|
|
12307
|
-
observationsFor: (
|
|
12307
|
+
observationsFor: (claimCode) => byScn.get(claimCode) ?? [],
|
|
12308
12308
|
phantomClaimIds
|
|
12309
12309
|
};
|
|
12310
12310
|
}
|
|
12311
12311
|
function namingSharedCode(observation, code) {
|
|
12312
|
-
return { ...observation, notes: [...observation.notes ?? [], { kind: "shared-
|
|
12312
|
+
return { ...observation, notes: [...observation.notes ?? [], { kind: "shared-claim-code", code }] };
|
|
12313
12313
|
}
|
|
12314
|
-
function routeObservations(evidenceObservations, scenarioIds,
|
|
12314
|
+
function routeObservations(evidenceObservations, scenarioIds, sharedClaimCodes) {
|
|
12315
12315
|
const citations = citationIndex();
|
|
12316
12316
|
const onUnnamedClaim = [];
|
|
12317
12317
|
for (const o of evidenceObservations) {
|
|
12318
|
-
const posting = postingOf(o, scenarioIds,
|
|
12318
|
+
const posting = postingOf(o, scenarioIds, sharedClaimCodes);
|
|
12319
12319
|
if (posting.kind !== "unnamed-claim")
|
|
12320
12320
|
citations.file(posting, o);
|
|
12321
|
-
else if (o.
|
|
12322
|
-
onUnnamedClaim.push(namingSharedCode(o, o.
|
|
12321
|
+
else if (o.claimCode !== null && o.claimCode !== void 0 && sharedClaimCodes.has(o.claimCode))
|
|
12322
|
+
onUnnamedClaim.push(namingSharedCode(o, o.claimCode));
|
|
12323
12323
|
else
|
|
12324
12324
|
onUnnamedClaim.push(o);
|
|
12325
12325
|
}
|
|
@@ -12327,11 +12327,11 @@ function routeObservations(evidenceObservations, scenarioIds, sharedScnCodes) {
|
|
|
12327
12327
|
}
|
|
12328
12328
|
function scenarioRow(d, evidenceObservations, citations, evidenceObligationPairs) {
|
|
12329
12329
|
const pendingItems = pendingItemsOf(d);
|
|
12330
|
-
const reconciledEvidenceObligations = evidenceObligationsOf(d.evidenceObligations).map((obligation) => reconcileEvidenceObligation(d.
|
|
12331
|
-
const noEvidenceObligationItems = noEvidenceObligationReconciliationsOf(d.
|
|
12330
|
+
const reconciledEvidenceObligations = evidenceObligationsOf(d.evidenceObligations).map((obligation) => reconcileEvidenceObligation(d.claimCode, obligation, evidenceObservations));
|
|
12331
|
+
const noEvidenceObligationItems = noEvidenceObligationReconciliationsOf(d.claimCode, citations.observationsFor(d.claimCode), evidenceObligationPairs);
|
|
12332
12332
|
const qualityCheckReconciliations = qualityCheckReconciliationsOf(reconciledEvidenceObligations, noEvidenceObligationItems, pendingItems);
|
|
12333
12333
|
return {
|
|
12334
|
-
claim: d.
|
|
12334
|
+
claim: d.claimCode,
|
|
12335
12335
|
kind: "scenario",
|
|
12336
12336
|
verdict: verdictFor(qualityCheckReconciliations),
|
|
12337
12337
|
qualityCheckReconciliations,
|
|
@@ -12344,16 +12344,16 @@ function scenarioNameOf({ feature, title }) {
|
|
|
12344
12344
|
function accountsByCode(scenarios) {
|
|
12345
12345
|
const byCode = /* @__PURE__ */ new Map();
|
|
12346
12346
|
for (const scenario of scenarios) {
|
|
12347
|
-
const sharers = byCode.get(scenario.
|
|
12347
|
+
const sharers = byCode.get(scenario.claimCode) ?? [];
|
|
12348
12348
|
sharers.push(scenario);
|
|
12349
|
-
byCode.set(scenario.
|
|
12349
|
+
byCode.set(scenario.claimCode, sharers);
|
|
12350
12350
|
}
|
|
12351
12351
|
return [...byCode.values()];
|
|
12352
12352
|
}
|
|
12353
12353
|
function duplicateScnCodeRow(sharer) {
|
|
12354
12354
|
const items = duplicateScnCodeReconciliationsOf(sharer.evidenceObligations, scenarioNameOf(sharer));
|
|
12355
12355
|
return {
|
|
12356
|
-
claim: sharer.
|
|
12356
|
+
claim: sharer.claimCode,
|
|
12357
12357
|
kind: "scenario",
|
|
12358
12358
|
verdict: verdictFor(items),
|
|
12359
12359
|
qualityCheckReconciliations: items,
|
|
@@ -12362,11 +12362,11 @@ function duplicateScnCodeRow(sharer) {
|
|
|
12362
12362
|
}
|
|
12363
12363
|
function phantomClaimRows(citations) {
|
|
12364
12364
|
const rows = [];
|
|
12365
|
-
for (const
|
|
12366
|
-
const observations = citations.observationsFor(
|
|
12365
|
+
for (const claimCode of citations.phantomClaimIds) {
|
|
12366
|
+
const observations = citations.observationsFor(claimCode);
|
|
12367
12367
|
const items = citesUnknownScenarioReconciliationsOf(observations);
|
|
12368
12368
|
rows.push({
|
|
12369
|
-
claim:
|
|
12369
|
+
claim: claimCode,
|
|
12370
12370
|
kind: "phantom-claim",
|
|
12371
12371
|
verdict: verdictFor(items),
|
|
12372
12372
|
qualityCheckReconciliations: items,
|
|
@@ -12404,12 +12404,12 @@ function untaggedScenarioRows(untaggedScenarios) {
|
|
|
12404
12404
|
return rows;
|
|
12405
12405
|
}
|
|
12406
12406
|
function reconcile(scenarios, evidenceObservations, untaggedScenarios = []) {
|
|
12407
|
-
const scenarioIds = new Set(scenarios.map((d) => d.
|
|
12407
|
+
const scenarioIds = new Set(scenarios.map((d) => d.claimCode));
|
|
12408
12408
|
const evidenceObligationPairs = evidenceObligationPairsOf(scenarios);
|
|
12409
12409
|
const observations = inEvidenceOrder(evidenceObservations);
|
|
12410
12410
|
const accounts = accountsByCode(scenarios);
|
|
12411
|
-
const
|
|
12412
|
-
const { citations, ...unnamed } = routeObservations(observations, scenarioIds,
|
|
12411
|
+
const sharedClaimCodes = new Set(accounts.filter((sharers) => sharers.length > 1).map((sharers) => sharers[0].claimCode));
|
|
12412
|
+
const { citations, ...unnamed } = routeObservations(observations, scenarioIds, sharedClaimCodes);
|
|
12413
12413
|
return {
|
|
12414
12414
|
claimReconciliations: [
|
|
12415
12415
|
...accounts.flatMap((sharers) => sharers.length === 1 ? [scenarioRow(sharers[0], observations, citations, evidenceObligationPairs)] : sharers.map(duplicateScnCodeRow)),
|
|
@@ -12571,7 +12571,7 @@ function parseVitestEvidenceObservations(report, root) {
|
|
|
12571
12571
|
const evidence = evidenceOfRunResult("never-reached-its-assertions");
|
|
12572
12572
|
results.push({
|
|
12573
12573
|
qualityCheckKind: layer,
|
|
12574
|
-
|
|
12574
|
+
claimCode: null,
|
|
12575
12575
|
status: evidence.status,
|
|
12576
12576
|
locator,
|
|
12577
12577
|
broken: evidence.broken,
|
|
@@ -12583,14 +12583,14 @@ function parseVitestEvidenceObservations(report, root) {
|
|
|
12583
12583
|
const evidence = evidenceOfRunResult(runResultOf(assertion.status));
|
|
12584
12584
|
if (evidence === void 0)
|
|
12585
12585
|
continue;
|
|
12586
|
-
const {
|
|
12586
|
+
const { claimCode, severalCodes } = attributionOf(citingCodesOf(assertion));
|
|
12587
12587
|
results.push({
|
|
12588
12588
|
qualityCheckKind: layer,
|
|
12589
|
-
|
|
12589
|
+
claimCode,
|
|
12590
12590
|
status: evidence.status,
|
|
12591
12591
|
locator,
|
|
12592
12592
|
testName: assertion.fullName ?? assertion.title,
|
|
12593
|
-
...severalCodes ? { notes: [{ kind: "several-
|
|
12593
|
+
...severalCodes ? { notes: [{ kind: "several-claim-codes", codes: severalCodes }] } : {}
|
|
12594
12594
|
});
|
|
12595
12595
|
}
|
|
12596
12596
|
}
|
|
@@ -12644,18 +12644,18 @@ function observationOf(suite, testcase, evidence, layer) {
|
|
|
12644
12644
|
return buildFailureOf(suite, testcase, evidence, layer);
|
|
12645
12645
|
if (isClassSetupFailure(testcase))
|
|
12646
12646
|
return classSetupFailureOf(testcase, evidence, layer);
|
|
12647
|
-
const {
|
|
12648
|
-
const
|
|
12647
|
+
const { claimCode: soleCode, severalCodes } = attributionOf(citingCodesOf2(testcase));
|
|
12648
|
+
const claimCode = soleCode === null ? null : citedCode(soleCode);
|
|
12649
12649
|
const locator = `${testcase.classname}::${testcase.name}`;
|
|
12650
12650
|
if (evidence.broken) {
|
|
12651
|
-
return { qualityCheckKind: layer,
|
|
12651
|
+
return { qualityCheckKind: layer, claimCode, status: evidence.status, locator, broken: evidence.broken, message: errorTextOf(testcase) };
|
|
12652
12652
|
}
|
|
12653
12653
|
return {
|
|
12654
12654
|
qualityCheckKind: layer,
|
|
12655
|
-
|
|
12655
|
+
claimCode,
|
|
12656
12656
|
status: evidence.status,
|
|
12657
12657
|
locator,
|
|
12658
|
-
...severalCodes ? { notes: [{ kind: "several-
|
|
12658
|
+
...severalCodes ? { notes: [{ kind: "several-claim-codes", codes: severalCodes }] } : {}
|
|
12659
12659
|
};
|
|
12660
12660
|
}
|
|
12661
12661
|
function citingCodesOf2(testcase) {
|
|
@@ -12678,7 +12678,7 @@ function isCollectionFailure(testcase) {
|
|
|
12678
12678
|
function collectionFailureOf(testcase, evidence, layer) {
|
|
12679
12679
|
return {
|
|
12680
12680
|
qualityCheckKind: layer,
|
|
12681
|
-
|
|
12681
|
+
claimCode: null,
|
|
12682
12682
|
status: evidence.status,
|
|
12683
12683
|
locator: testcase.name ?? "",
|
|
12684
12684
|
broken: evidence.broken,
|
|
@@ -12691,7 +12691,7 @@ function isClassSetupFailure(testcase) {
|
|
|
12691
12691
|
function classSetupFailureOf(testcase, evidence, layer) {
|
|
12692
12692
|
return {
|
|
12693
12693
|
qualityCheckKind: layer,
|
|
12694
|
-
|
|
12694
|
+
claimCode: null,
|
|
12695
12695
|
status: evidence.status,
|
|
12696
12696
|
locator: testcase.classname,
|
|
12697
12697
|
broken: evidence.broken,
|
|
@@ -12704,7 +12704,7 @@ function isBuildFailure(testcase) {
|
|
|
12704
12704
|
function buildFailureOf(suite, testcase, evidence, layer) {
|
|
12705
12705
|
return {
|
|
12706
12706
|
qualityCheckKind: layer,
|
|
12707
|
-
|
|
12707
|
+
claimCode: null,
|
|
12708
12708
|
status: evidence.status,
|
|
12709
12709
|
locator: suite.name,
|
|
12710
12710
|
broken: evidence.broken,
|
|
@@ -12740,14 +12740,14 @@ function parseRspecEvidenceObservations(report, root) {
|
|
|
12740
12740
|
const evidence = evidenceOfRunResult(runResultOf3(example.status));
|
|
12741
12741
|
if (evidence === void 0)
|
|
12742
12742
|
continue;
|
|
12743
|
-
const {
|
|
12743
|
+
const { claimCode, severalCodes } = attributionOf(citingCodesOf3(example));
|
|
12744
12744
|
results.push({
|
|
12745
12745
|
qualityCheckKind: layer,
|
|
12746
|
-
|
|
12746
|
+
claimCode,
|
|
12747
12747
|
status: evidence.status,
|
|
12748
12748
|
locator: example.file_path && locatorOf(example.file_path, root),
|
|
12749
12749
|
testName: example.full_description,
|
|
12750
|
-
...severalCodes ? { notes: [{ kind: "several-
|
|
12750
|
+
...severalCodes ? { notes: [{ kind: "several-claim-codes", codes: severalCodes }] } : {}
|
|
12751
12751
|
});
|
|
12752
12752
|
}
|
|
12753
12753
|
return [...results, ...loadErrorsOf(report, layer, root)];
|
|
@@ -12765,10 +12765,10 @@ function loadErrorsOf(report, layer, root) {
|
|
|
12765
12765
|
if (path === void 0)
|
|
12766
12766
|
unnamed.push(message2);
|
|
12767
12767
|
else
|
|
12768
|
-
broken.push({ qualityCheckKind: layer,
|
|
12768
|
+
broken.push({ qualityCheckKind: layer, claimCode: null, status: evidence.status, locator: locatorOf(path, root), broken: evidence.broken, message: message2 });
|
|
12769
12769
|
}
|
|
12770
12770
|
if (count > broken.length) {
|
|
12771
|
-
broken.push({ qualityCheckKind: layer,
|
|
12771
|
+
broken.push({ qualityCheckKind: layer, claimCode: null, status: evidence.status, broken: evidence.broken, message: unnamed.length > 0 ? unnamed.join("\n") : void 0 });
|
|
12772
12772
|
}
|
|
12773
12773
|
return broken;
|
|
12774
12774
|
}
|
|
@@ -12816,8 +12816,8 @@ function citedCodesOf(tagNames) {
|
|
|
12816
12816
|
function scenarioObservations(scenario, locator) {
|
|
12817
12817
|
const tagNames = (scenario.tags ?? []).map((t) => withoutSigil(t.name ?? ""));
|
|
12818
12818
|
const layers = layersPostedAt(tagNames, fallbackLayerOf("scenario-runs"));
|
|
12819
|
-
const {
|
|
12820
|
-
const severalNotes = severalCodes ? [{ kind: "several-
|
|
12819
|
+
const { claimCode, severalCodes } = attributionOf(citedCodesOf(tagNames));
|
|
12820
|
+
const severalNotes = severalCodes ? [{ kind: "several-claim-codes", codes: severalCodes }] : [];
|
|
12821
12821
|
const steps = scenario.steps ?? [];
|
|
12822
12822
|
const evidence = evidenceOfRunResult(runResultOf4(steps));
|
|
12823
12823
|
if (evidence === void 0)
|
|
@@ -12826,7 +12826,7 @@ function scenarioObservations(scenario, locator) {
|
|
|
12826
12826
|
const ambiguous = steps.find(isAmbiguous);
|
|
12827
12827
|
return [{
|
|
12828
12828
|
qualityCheckKind: layers[0],
|
|
12829
|
-
|
|
12829
|
+
claimCode,
|
|
12830
12830
|
status: evidence.status,
|
|
12831
12831
|
locator,
|
|
12832
12832
|
broken: evidence.broken,
|
|
@@ -12835,7 +12835,7 @@ function scenarioObservations(scenario, locator) {
|
|
|
12835
12835
|
}
|
|
12836
12836
|
return layers.map((layer) => ({
|
|
12837
12837
|
qualityCheckKind: layer,
|
|
12838
|
-
|
|
12838
|
+
claimCode,
|
|
12839
12839
|
status: evidence.status,
|
|
12840
12840
|
locator,
|
|
12841
12841
|
testName: scenario.name,
|
|
@@ -27776,18 +27776,18 @@ var init_uncitedFitnessFunctions = __esm({
|
|
|
27776
27776
|
});
|
|
27777
27777
|
|
|
27778
27778
|
// ../core/dist/domain/fitnessReconciliation.js
|
|
27779
|
-
function namedOf({
|
|
27779
|
+
function namedOf({ citedClaimCode, step }) {
|
|
27780
27780
|
return {
|
|
27781
27781
|
qualityCheckKind: "fitness",
|
|
27782
|
-
fitnessFunction:
|
|
27783
|
-
|
|
27782
|
+
fitnessFunction: citedClaimCode,
|
|
27783
|
+
claimCode: citedClaimCode,
|
|
27784
27784
|
...step === void 0 ? {} : { step }
|
|
27785
27785
|
};
|
|
27786
27786
|
}
|
|
27787
27787
|
function checkDidNotRunNote(step) {
|
|
27788
27788
|
return {
|
|
27789
27789
|
kind: "check-step-did-not-run",
|
|
27790
|
-
code: step.
|
|
27790
|
+
code: step.citedClaimCode,
|
|
27791
27791
|
...step.said === void 0 ? {} : { outcome: step.said }
|
|
27792
27792
|
};
|
|
27793
27793
|
}
|
|
@@ -27818,7 +27818,7 @@ function workflowObservationsOf(steps, isCandidate, handleOf2, stepNameOf, citat
|
|
|
27818
27818
|
step: stepNameOf(step),
|
|
27819
27819
|
exists: true,
|
|
27820
27820
|
enforcedOverRealSource: step.abortsJob,
|
|
27821
|
-
...citation !== null ? {
|
|
27821
|
+
...citation !== null ? { claimCode: step.id ?? citation.claimCode } : {}
|
|
27822
27822
|
};
|
|
27823
27823
|
}).sort((a, b) => a.fitnessFunction.localeCompare(b.fitnessFunction));
|
|
27824
27824
|
}
|
|
@@ -27828,7 +27828,7 @@ function stepCarryingCode(steps, code, stepNameOf) {
|
|
|
27828
27828
|
}
|
|
27829
27829
|
function recordedAtSteps(recorded, steps, stepNameOf) {
|
|
27830
27830
|
return recorded?.map((entry) => {
|
|
27831
|
-
const step = stepCarryingCode(steps, entry.
|
|
27831
|
+
const step = stepCarryingCode(steps, entry.citedClaimCode, stepNameOf);
|
|
27832
27832
|
return step === void 0 ? entry : { ...entry, step };
|
|
27833
27833
|
});
|
|
27834
27834
|
}
|
|
@@ -27836,7 +27836,7 @@ function fitnessObservationsOf(workflow, recorded) {
|
|
|
27836
27836
|
if (recorded === void 0)
|
|
27837
27837
|
return [...workflow];
|
|
27838
27838
|
return [
|
|
27839
|
-
...workflow.filter((observation) => observation.
|
|
27839
|
+
...workflow.filter((observation) => observation.claimCode === void 0),
|
|
27840
27840
|
...recorded.map((step) => recordedObservationOf(step))
|
|
27841
27841
|
];
|
|
27842
27842
|
}
|
|
@@ -27863,9 +27863,9 @@ function handleOf(step, scripts) {
|
|
|
27863
27863
|
const invoked = Object.keys(scripts).filter((name) => commandInvokesScript(step.command, name));
|
|
27864
27864
|
return invoked[0] ?? step.identity;
|
|
27865
27865
|
}
|
|
27866
|
-
function fitnessFunctionsAmong(steps, packageJson, isCandidate,
|
|
27866
|
+
function fitnessFunctionsAmong(steps, packageJson, isCandidate, citedClaimCode) {
|
|
27867
27867
|
const scripts = packageJson.scripts ?? {};
|
|
27868
|
-
return workflowObservationsOf(steps, isCandidate, (step) => handleOf(step, scripts), qualifiedStepName,
|
|
27868
|
+
return workflowObservationsOf(steps, isCandidate, (step) => handleOf(step, scripts), qualifiedStepName, citedClaimCode);
|
|
27869
27869
|
}
|
|
27870
27870
|
var init_runningFitnessFunctions = __esm({
|
|
27871
27871
|
"../core/dist/parse/runningFitnessFunctions.js"() {
|
|
@@ -27914,11 +27914,11 @@ function scenarioCodesOf2(population, obligations) {
|
|
|
27914
27914
|
...obligations ? {
|
|
27915
27915
|
excludedOccurrences: obligations.excludedOccurrences,
|
|
27916
27916
|
untaggedScenarios: obligations.untaggedScenarios,
|
|
27917
|
-
...nonEmpty("
|
|
27917
|
+
...nonEmpty("sharedClaimCodes", obligations.sharedClaimCodes)
|
|
27918
27918
|
} : {}
|
|
27919
27919
|
};
|
|
27920
27920
|
}
|
|
27921
|
-
function errorsOf(
|
|
27921
|
+
function errorsOf(claimCodeErrors, summary) {
|
|
27922
27922
|
const configurationNotRead2 = {
|
|
27923
27923
|
...nonEmpty("keysNotRead", summary.configurationKeysNotRead),
|
|
27924
27924
|
...nonEmpty("ofWrongKind", summary.configurationOfWrongKind),
|
|
@@ -27927,7 +27927,7 @@ function errorsOf(scenarioCodeErrors, summary) {
|
|
|
27927
27927
|
...nonEmpty("nonChecksNotAStepName", summary.nonChecksNotAStepName)
|
|
27928
27928
|
};
|
|
27929
27929
|
const errors = {
|
|
27930
|
-
...nonEmpty("
|
|
27930
|
+
...nonEmpty("claimCodeErrors", claimCodeErrors),
|
|
27931
27931
|
...Object.keys(configurationNotRead2).length > 0 ? { configurationNotRead: configurationNotRead2 } : {}
|
|
27932
27932
|
};
|
|
27933
27933
|
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
@@ -27951,7 +27951,7 @@ function runVerdict(run3) {
|
|
|
27951
27951
|
if (hasBrokenEvidence(run3.ledger))
|
|
27952
27952
|
return "unsound";
|
|
27953
27953
|
if (hasScenarioCodeErrors(run3))
|
|
27954
|
-
return "
|
|
27954
|
+
return "claim-code-errors";
|
|
27955
27955
|
if (!isBalanced(run3.ledger))
|
|
27956
27956
|
return "out-of-balance";
|
|
27957
27957
|
if (run3.strict && hasPendingItems(run3.ledger))
|
|
@@ -27991,7 +27991,7 @@ function outOfBalanceByFeature(rows, untagged, featureNames) {
|
|
|
27991
27991
|
...featureFile ? { featureFile } : {},
|
|
27992
27992
|
count: claims.length + noScnCode,
|
|
27993
27993
|
claims,
|
|
27994
|
-
...noScnCode > 0 ? {
|
|
27994
|
+
...noScnCode > 0 ? { scenariosWithNoClaimCode: noScnCode } : {}
|
|
27995
27995
|
};
|
|
27996
27996
|
});
|
|
27997
27997
|
}
|
|
@@ -28010,19 +28010,19 @@ function concludedSummary(summary, verdictInputs) {
|
|
|
28010
28010
|
return { runVerdict: runVerdict(verdictInputs), ...rest };
|
|
28011
28011
|
}
|
|
28012
28012
|
function assembleRenderInput(evidenceReconciliation, ctx, evidenceObligations2, featureNames) {
|
|
28013
|
-
const errorsInTheInputs = errorsOf(evidenceReconciliation.
|
|
28014
|
-
const
|
|
28015
|
-
const byFeature = outOfBalanceByFeature(evidenceReconciliation.ledger.claimReconciliations,
|
|
28013
|
+
const errorsInTheInputs = errorsOf(evidenceReconciliation.claimCodeErrors, evidenceReconciliation.summary);
|
|
28014
|
+
const claimCodes = scenarioCodesOf2(evidenceReconciliation.scenarioCodePopulation, evidenceObligations2);
|
|
28015
|
+
const byFeature = outOfBalanceByFeature(evidenceReconciliation.ledger.claimReconciliations, claimCodes?.untaggedScenarios ?? [], Object.fromEntries(featureNames ?? []));
|
|
28016
28016
|
return {
|
|
28017
28017
|
runProvenance: provenanceObject(ctx),
|
|
28018
28018
|
...errorsInTheInputs ? { errorsInTheInputs } : {},
|
|
28019
28019
|
summary: concludedSummary({
|
|
28020
|
-
...
|
|
28020
|
+
...claimCodes ? { claimCodes } : {},
|
|
28021
28021
|
...summaryStatingNoFault(evidenceReconciliation.summary),
|
|
28022
28022
|
...byFeature.length > 0 ? { outOfBalanceByFeature: byFeature } : {}
|
|
28023
28023
|
}, {
|
|
28024
28024
|
ledger: evidenceReconciliation.ledger,
|
|
28025
|
-
|
|
28025
|
+
claimCodeErrors: evidenceReconciliation.claimCodeErrors,
|
|
28026
28026
|
strict: ctx.strict === true
|
|
28027
28027
|
}),
|
|
28028
28028
|
claimReconciliations: evidenceReconciliation.ledger.claimReconciliations
|
|
@@ -28049,8 +28049,8 @@ function reportOf(outcome) {
|
|
|
28049
28049
|
function recordedCheckStepsOf(record) {
|
|
28050
28050
|
if (record === void 0)
|
|
28051
28051
|
return void 0;
|
|
28052
|
-
return Object.entries(record).filter(([
|
|
28053
|
-
|
|
28052
|
+
return Object.entries(record).filter(([citedClaimCode]) => SCN_CODE.test(citedClaimCode)).map(([citedClaimCode, step]) => ({
|
|
28053
|
+
citedClaimCode,
|
|
28054
28054
|
report: reportOf(step.outcome),
|
|
28055
28055
|
...step.outcome === void 0 ? {} : { said: step.outcome }
|
|
28056
28056
|
}));
|
|
@@ -28067,11 +28067,11 @@ var init_ciStepRecord = __esm({
|
|
|
28067
28067
|
});
|
|
28068
28068
|
|
|
28069
28069
|
// ../core/dist/parse/fitnessCitations.js
|
|
28070
|
-
function citationOfCitedRow(
|
|
28071
|
-
if (
|
|
28070
|
+
function citationOfCitedRow(citedClaimCode) {
|
|
28071
|
+
if (citedClaimCode === void 0)
|
|
28072
28072
|
return null;
|
|
28073
|
-
const
|
|
28074
|
-
return SCN_CODE.test(
|
|
28073
|
+
const claimCode = bareTerm(citedClaimCode);
|
|
28074
|
+
return SCN_CODE.test(claimCode) ? { claimCode } : null;
|
|
28075
28075
|
}
|
|
28076
28076
|
var init_fitnessCitations = __esm({
|
|
28077
28077
|
"../core/dist/parse/fitnessCitations.js"() {
|
|
@@ -28085,7 +28085,7 @@ var init_fitnessCitations = __esm({
|
|
|
28085
28085
|
function readTargetCorpus(features, deferralTags) {
|
|
28086
28086
|
return {
|
|
28087
28087
|
scenarios: features.flatMap((feature) => namedScenariosOf(feature, deferralTags)),
|
|
28088
|
-
citedRow: (
|
|
28088
|
+
citedRow: (citedClaimCode) => citationOfCitedRow(citedClaimCode)
|
|
28089
28089
|
};
|
|
28090
28090
|
}
|
|
28091
28091
|
var init_targetCorpus = __esm({
|
|
@@ -28254,7 +28254,7 @@ function withConfigurationAccount(reconciliation, packageJson) {
|
|
|
28254
28254
|
function withScenarioCodeErrors(reconciliation, input) {
|
|
28255
28255
|
return {
|
|
28256
28256
|
...reconciliation,
|
|
28257
|
-
|
|
28257
|
+
claimCodeErrors: scenarioCodeErrorsOf(input.features),
|
|
28258
28258
|
scenarioCodePopulation: scenarioCodePopulationOf(input.features)
|
|
28259
28259
|
};
|
|
28260
28260
|
}
|
|
@@ -28332,7 +28332,7 @@ function assembleSavedReport(saved, strictGiven) {
|
|
|
28332
28332
|
runProvenance: { ...saved.runProvenance, strict },
|
|
28333
28333
|
summary: concludedSummary(saved.summary, {
|
|
28334
28334
|
ledger: { claimReconciliations: saved.claimReconciliations },
|
|
28335
|
-
|
|
28335
|
+
claimCodeErrors: saved.errorsInTheInputs?.claimCodeErrors,
|
|
28336
28336
|
strict
|
|
28337
28337
|
})
|
|
28338
28338
|
};
|
|
@@ -28362,7 +28362,7 @@ var init_messages_en2 = __esm({
|
|
|
28362
28362
|
messages_en_default2 = {
|
|
28363
28363
|
"errors-in-the-inputs-heading": "Errors in the inputs",
|
|
28364
28364
|
"configuration-not-read-heading": "Configuration not read",
|
|
28365
|
-
"
|
|
28365
|
+
"claim-code-errors-heading": "Claim code errors",
|
|
28366
28366
|
"configuration-not-read-intro": "The target's package.json holds configuration this run could not use. Each line below says what this run did with its entry, and every account in this report is the one the target gives without it.",
|
|
28367
28367
|
"configuration-wrong-kind": "{entry} is {is} where {reads} is read, so this run read it as absent.",
|
|
28368
28368
|
"configuration-unknown-key": "{key} is not a key the specController block reads, so this run read nothing from it.",
|
|
@@ -28375,22 +28375,22 @@ var init_messages_en2 = __esm({
|
|
|
28375
28375
|
"manifest-kind-string-or-null": "a string or null",
|
|
28376
28376
|
"manifest-kind-of-type": "a {type}",
|
|
28377
28377
|
"proofs-never-ran": "{count, plural, one {{count} Evidence Observation never ran to a result, so the behaviour it proves was never exercised.} other {{count} Evidence Observations never ran to a result, so the behaviours they prove were never exercised.}}",
|
|
28378
|
-
"
|
|
28379
|
-
"no-feature-file-judged": "No feature file was judged, so no
|
|
28380
|
-
"clean-no-coded-scenario": "
|
|
28381
|
-
"clean-each-file-own-code": "
|
|
28382
|
-
"clean-others-no-feature-code": "
|
|
28378
|
+
"claim-code-error-count": "{count, plural, one {{count} claim code error} other {{count} claim code errors}}",
|
|
28379
|
+
"no-feature-file-judged": "No feature file was judged, so no claim code is vouched for.",
|
|
28380
|
+
"clean-no-coded-scenario": "Claim codes are clean over {featureFiles, plural, one {{featureFiles} feature file} other {{featureFiles} feature files}} carrying 0 feature codes (a feature code is the tag heading a feature file, the `<FFF>` that each `@SCN-<FFF>-<NNN>` code in that file repeats): no scenario in {featureFiles, plural, one {it} other {them}} carries a claim code to misfile.",
|
|
28381
|
+
"clean-each-file-own-code": "Claim codes are clean over {featureFiles, plural, one {{featureFiles} feature file} other {{featureFiles} feature files}} carrying {featureCodes, plural, one {{featureCodes} feature code} other {{featureCodes} feature codes}} (a feature code is the tag heading a feature file, the `<FFF>` that each `@SCN-<FFF>-<NNN>` code in that file repeats): each file carries a code of its own, and every coded scenario sits in the file its code names.",
|
|
28382
|
+
"clean-others-no-feature-code": "Claim codes are clean over {featureFiles, plural, one {{featureFiles} feature file} other {{featureFiles} feature files}} carrying {featureCodes, plural, one {{featureCodes} feature code} other {{featureCodes} feature codes}} (a feature code is the tag heading a feature file, the `<FFF>` that each `@SCN-<FFF>-<NNN>` code in that file repeats): each code is carried by exactly one file, every coded scenario sits in the file its code names, and the other {noFeatureCode} {noFeatureCode, plural, one {holds} other {hold}} no coded scenario.",
|
|
28383
28383
|
"unnamed-claim-ci-steps": "{count, plural, one {{count} CI step} other {{count} CI steps}}",
|
|
28384
28384
|
"unnamed-claim-ci-steps-named": "{count, plural, one {{count} CI step} other {{count} CI steps}}: {list}",
|
|
28385
|
-
"
|
|
28386
|
-
"several-
|
|
28387
|
-
"misfiled-and-several-
|
|
28388
|
-
"duplicate-
|
|
28385
|
+
"claim-code-errors-framing": "{count} \u2014 each misfiles a claim code, so the by-feature cut below cannot be trusted, and the run fails (exit 1). Every account still reconciles as it would if the code were filed correctly.",
|
|
28386
|
+
"several-claim-codes-framing": "{count} \u2014 each is a scenario carrying more than one claim code, so no account was raised for it under any of them, and the run fails (exit 1).",
|
|
28387
|
+
"misfiled-and-several-claim-codes-framing": "{count} \u2014 each either misfiles a claim code, so the by-feature cut below cannot be trusted, or is a scenario carrying more than one claim code, so no account was raised for it under any of them. The run fails (exit 1).",
|
|
28388
|
+
"duplicate-claim-code-not-listed": `A duplicated claim code is not listed here: it is reported on its account's rows, as "{outcome}".`,
|
|
28389
28389
|
"duplicate-feature-code": "the feature code @{code} is carried by {fileCount} feature files \u2014 {files}. A feature code names exactly one feature file: a reconciliation's by-feature cut groups on it, so two files sharing a code report as one row and attribute one file's scenarios to the other. Give one of them a code of its own.",
|
|
28390
|
-
"foreign-
|
|
28391
|
-
"foreign-
|
|
28392
|
-
"no-feature-code": "{file} carries no feature code, but its scenarios carry
|
|
28393
|
-
"several-
|
|
28390
|
+
"foreign-claim-code-carried": "{file} carries the feature code @{featureCode}, but holds the scenario @{claimCode}, whose feature part names {named}. A reconciliation's by-feature cut groups on the id, so it counts this scenario under {carrierCount, plural, one {{carriers}'s row, not {file}'s. Re-code the scenario for @{featureCode}, or move it to {carriers}.} other {the one row for {named}, which {carrierCount} feature files carry \u2014 {carriers} \u2014 so that row cannot say which of them it belongs to. Re-code the scenario for @{featureCode}, or move it once a single file carries {named}.}}",
|
|
28391
|
+
"foreign-claim-code-no-carrier": "{file} carries the feature code @{featureCode}, but holds the scenario @{claimCode}, whose feature part names {named}. A reconciliation's by-feature cut groups on the id, so it opens a row for {named}, which no feature file carries as its header code, so that row stands for no file. Re-code the scenario for @{featureCode}.",
|
|
28392
|
+
"no-feature-code": "{file} carries no feature code, but its scenarios carry claim codes. A feature file is the class its scenarios' codes are filed under: give it a header code of its own, and code its scenarios for it.",
|
|
28393
|
+
"several-claim-codes": `{file}'s scenario "{scenario}" carries {codeCount} claim codes \u2014 {codes}. A scenario is one account, so it raises its evidence obligations under none of them, and a test citing any of them cites a code no scenario carries. Give it one code.`,
|
|
28394
28394
|
"report-title": "Evidence Reconciliation",
|
|
28395
28395
|
"run-provenance-heading": "Run provenance",
|
|
28396
28396
|
"provenance-target-repo": "Target repo: {target}",
|
|
@@ -28412,10 +28412,10 @@ var init_messages_en2 = __esm({
|
|
|
28412
28412
|
"summary-heading": "Summary",
|
|
28413
28413
|
"run-verdict-heading": "Run verdict",
|
|
28414
28414
|
"verdict-exit": "exit {code}",
|
|
28415
|
-
"
|
|
28416
|
-
"
|
|
28417
|
-
"several-
|
|
28418
|
-
"misfiled-and-several-
|
|
28415
|
+
"claim-code-errors-headline": "**CLAIM CODE ERRORS**",
|
|
28416
|
+
"claim-code-errors-gloss": "the corpus files a claim code under the wrong feature, so the by-feature grouping cannot be trusted. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28417
|
+
"several-claim-codes-gloss": "a scenario in the corpus carries more than one claim code, so no account was raised for it under any of them. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28418
|
+
"misfiled-and-several-claim-codes-gloss": "the corpus files a claim code under the wrong feature, so the by-feature grouping cannot be trusted, and a scenario in it carries more than one claim code, so no account was raised for it under any of them. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28419
28419
|
"also-out-of-balance": " The accounts do not agree either: at least one Claim Reconciliation carries a reconciling item.",
|
|
28420
28420
|
"out-of-balance-headline": "**OUT-OF-BALANCE**",
|
|
28421
28421
|
"out-of-balance-gloss": "the accounts do not agree. At least one Claim Reconciliation carries a reconciling item. This run FAILED.",
|
|
@@ -28431,7 +28431,7 @@ var init_messages_en2 = __esm({
|
|
|
28431
28431
|
"reconciliation-totals-heading": "Reconciliation totals",
|
|
28432
28432
|
"reconciliation-totals-claim-reconciliation-term": "A Claim Reconciliation is one row of the ledger: one claim, reconciled in its Quality Check Reconciliations. A Quality Check Reconciliation reconciles the evidence of one kind of quality check within the claim: the claim's Evidence Obligation of that kind, when it has one, against its Evidence Observations of that kind. A claim is a scenario, a phantom claim (a code that evidence cites and no scenario carries, which the table below calls an unknown Scenario) or the unnamed claim (the one row for the evidence that no scenario or phantom claim takes).",
|
|
28433
28433
|
"reconciliation-totals-reconciliation-line-term": "A Reconciliation line is one line of a Quality Check Reconciliation, with its own outcome: each Evidence Observation it holds is one line, and its Evidence Obligation is one more when no Evidence Observation that ran answers it. A scenario with no Evidence Obligation, no Pending Item and no Evidence Observation still has one Quality Check Reconciliation, holding neither, and it is a single line. 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.",
|
|
28434
|
-
"reconciliation-totals-evidence-obligation-term": "An Evidence Obligation is the evidence a scenario asks for, by the tags it carries, to be met by Evidence Observations. A pending tag such as `@unitpending` defers the evidence of its kind of quality check, and a deferral tag such as `@wip` defers all of the scenario's: what a tag defers raises no Evidence Obligation and is a Pending Item instead, tallied after the table, apart from balanced and out-of-balance, when there is one. On a scenario that shares its
|
|
28434
|
+
"reconciliation-totals-evidence-obligation-term": "An Evidence Obligation is the evidence a scenario asks for, by the tags it carries, to be met by Evidence Observations. A pending tag such as `@unitpending` defers the evidence of its kind of quality check, and a deferral tag such as `@wip` defers all of the scenario's: what a tag defers raises no Evidence Obligation and is a Pending Item instead, tallied after the table, apart from balanced and out-of-balance, when there is one. On a scenario that shares its claim code with another, no tag defers anything: it reads \"Evidence Obligation's claim code is carried by another Scenario\" at each kind of quality check it raises, or once when it raises none.",
|
|
28435
28435
|
"reconciliation-totals-evidence-observation-term": "An Evidence Observation is one reported result of a test or a fitness function, attributed by the codes it cites: to the one scenario that carries its one code, to a phantom claim when no scenario carries its one code, and otherwise to the unnamed claim, because no one scenario can take it. One that never reached its assertions is broken: it was reported, but did not run to a result.",
|
|
28436
28436
|
"subject-column": "Subject",
|
|
28437
28437
|
"total-column": "Total",
|
|
@@ -28474,36 +28474,36 @@ var init_messages_en2 = __esm({
|
|
|
28474
28474
|
"phantom-claim-reconciliations": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario",
|
|
28475
28475
|
"unnamed-claim-reconciliations": "{count} Claim Reconciliation(s) for evidence observations no one scenario can take",
|
|
28476
28476
|
"and-joiner": " and ",
|
|
28477
|
-
"by-feature-table-header": "| Feature | Count | Out-of-balance
|
|
28478
|
-
"no-
|
|
28479
|
-
"codes-and-no-
|
|
28477
|
+
"by-feature-table-header": "| Feature | Count | Out-of-balance claim codes |",
|
|
28478
|
+
"no-claim-code-scenarios": "{count} with no claim code",
|
|
28479
|
+
"codes-and-no-claim-code-scenarios": "{codes} and {count} with no claim code",
|
|
28480
28480
|
"claim-reconciliations-heading": "Claim Reconciliations",
|
|
28481
28481
|
"claim-reconciliation-tally": "{total} Claim Reconciliation(s): {balanced} balanced, {outOfBalance} out-of-balance.",
|
|
28482
28482
|
"phantom-claim-tally": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario.",
|
|
28483
28483
|
"unnamed-claim-tally": '{count} Claim Reconciliation(s) for evidence observations no one scenario can take, aggregated into "{unnamedClaimId}".',
|
|
28484
|
-
"excluded-
|
|
28485
|
-
"untagged-scenarios": "{count} scenario(s) carry no
|
|
28486
|
-
"shared-
|
|
28487
|
-
"shared-
|
|
28484
|
+
"excluded-claim-occurrences": "{count} claim codes seen in non-tag context, excluded: each is a claim code written in a feature file's prose, a comment or step text rather than as a tag, so it marks no scenario and raises no claim",
|
|
28485
|
+
"untagged-scenarios": "{count} scenario(s) carry no claim code",
|
|
28486
|
+
"shared-claim-codes": "The corpus holds {scenarios} scenarios \u2014 {codes} claim code(s) carried by more than one scenario, each scenario named as `feature file : scenario title`:",
|
|
28487
|
+
"shared-claim-code-scenario": "this one is {feature} : {title}",
|
|
28488
28488
|
"claim-column": "Claim",
|
|
28489
28489
|
"verdict-column": "Verdict",
|
|
28490
28490
|
"reconciling-items-column": "Reconciling items",
|
|
28491
28491
|
"ci-steps-column": "CI steps",
|
|
28492
|
-
"evidence-cell-key": "Key: each evidence cell reads *obligation*/*observations*.\n- The letter says the scenario's tags raise an Evidence Obligation of that kind: (F)itness, (U)nit, (I)ntegration, (E)2e, (P)erformance. `-` means they raise none of that kind, as a pending tag raises none unless the scenario shares its
|
|
28492
|
+
"evidence-cell-key": "Key: each evidence cell reads *obligation*/*observations*.\n- The letter says the scenario's tags raise an Evidence Obligation of that kind: (F)itness, (U)nit, (I)ntegration, (E)2e, (P)erformance. `-` means they raise none of that kind, as a pending tag raises none unless the scenario shares its claim code with another.\n- The number counts the scenario's Evidence Observations of that kind that ran. `-` means none.\n- For example, `U/2` is a unit obligation answered by two unit tests; `U/-` is a unit obligation that no unit test answered; `-/1` is one unit test citing a scenario that raises no unit obligation, which puts the row out of balance even where its unit evidence is pending.\n- A blank cell means no obligation and no Evidence Observation that ran; `\u2014` marks the row of a phantom claim or of the unnamed claim.\n- A row named `feature file : scenario title` is a scenario that carries no claim code. The run reads none of its tags, so its evidence cells are blank, and its reconciling item says that no Evidence Observation can link to it.\n- In Reconciling items, `\u2014` means the row has no reconciling item, and *untagged* means a scenario that carries a claim code and no tag that raises an Evidence Obligation.\n- On the unnamed claim's row, the counts after an item, such as `1 ran, 1 passed, 0 failed`, are of that item's own tests, and a fitness item counts its CI steps; a broken item stands alone, outside those counts.\n- CI steps names the steps the Evidence observations table gives for each kind of quality check other than fitness that the row obligates or observes, whether or not an Evidence Observation of that kind ran for the row, and the step each of the row's fitness Evidence Observations names: `U/-` beside a step names the step that runs unit tests, none of which answered this row. A blank CI steps cell means no such step is known.",
|
|
28493
28493
|
"watermelon-item-key": "- Where a row's item says its CI step or its job sets `continue-on-error`, the name in parentheses after it is its fitness function. Remove `continue-on-error` from its CI step and from its job, or set it to false, and the check's red fails the CI run.",
|
|
28494
28494
|
"pending-item": "pending",
|
|
28495
28495
|
"pending-item-for": "pending: {qualityCheckKind}",
|
|
28496
|
-
"check-step-no-outcome": "{
|
|
28497
|
-
"check-step-skipped": "{
|
|
28498
|
-
"check-step-ended": "{
|
|
28496
|
+
"check-step-no-outcome": "{claimCode}: the CI run's record carries no outcome for this check's step \u2014 so the check did not run.",
|
|
28497
|
+
"check-step-skipped": "{claimCode}: the CI run's record says this check's step was skipped \u2014 so the check did not run.",
|
|
28498
|
+
"check-step-ended": "{claimCode}: the CI run's record says this check's step ended `{outcome}` \u2014 so the check did not run.",
|
|
28499
28499
|
"ambiguous-named-step": 'The step "{step}" is ambiguous \u2014 two or more step definitions match it, so the step never ran.',
|
|
28500
28500
|
"ambiguous-unnamed-step": "A step is ambiguous \u2014 two or more step definitions match it, so the step never ran.",
|
|
28501
28501
|
"outcome-satisfied": "Evidence Observation satisfies its Evidence Obligation",
|
|
28502
28502
|
"outcome-missing": "Evidence Observation is missing",
|
|
28503
28503
|
"outcome-failing": "Evidence Observation is failing",
|
|
28504
28504
|
"outcome-watermelon": "Evidence Observation is passing but its CI step or its job sets `continue-on-error` so its red might not fail the CI run",
|
|
28505
|
-
"outcome-no-
|
|
28506
|
-
"outcome-duplicate-
|
|
28505
|
+
"outcome-no-claim-code": "Evidence Obligation has no claim code for an Evidence Observation to link to",
|
|
28506
|
+
"outcome-duplicate-claim-code": "Evidence Obligation's claim code is carried by another Scenario",
|
|
28507
28507
|
"outcome-cites-unknown-scenario": "Evidence Observation cites an unknown Scenario",
|
|
28508
28508
|
"outcome-cites-no-scenario": "Evidence Observation cites no Scenario",
|
|
28509
28509
|
"outcome-no-evidence-obligation": "Evidence Observation cites a Scenario with no matching Evidence Obligation",
|
|
@@ -28513,8 +28513,8 @@ var init_messages_en2 = __esm({
|
|
|
28513
28513
|
"observation-failed": "failed",
|
|
28514
28514
|
"unnamed-claim-group-counts": "{ran} ran, {passed} passed, {failed} failed",
|
|
28515
28515
|
"unnamed-claim-failed-names": "(failed: {names})",
|
|
28516
|
-
"several-
|
|
28517
|
-
"shared-
|
|
28516
|
+
"several-claim-codes-cited": "{count} claim codes cite {codes} \u2014 a test cites exactly one scenario, so this one credits none of them.",
|
|
28517
|
+
"shared-claim-code": "{code} is carried by more than one scenario, so evidence citing it credits none of them.",
|
|
28518
28518
|
"evidence-obligation-diverges-from-outcome": 'QualityCheckReconciliation invariant (@SCN-LDG-030): outcome "{outcome}" has the evidence obligation (debit) side {presenceForOutcome} for that outcome, but it was {presenceFound}.',
|
|
28519
28519
|
"evidence-observation-diverges-from-outcome": 'QualityCheckReconciliation invariant (@SCN-LDG-030): outcome "{outcome}" has the evidence observation side {presenceForOutcome} for that outcome, but it was {presenceFound}.'
|
|
28520
28520
|
};
|
|
@@ -31328,27 +31328,27 @@ var init_messages4 = __esm({
|
|
|
31328
31328
|
(function(CoreMessage2) {
|
|
31329
31329
|
CoreMessage2["ErrorsInTheInputsHeading"] = "errors-in-the-inputs-heading";
|
|
31330
31330
|
CoreMessage2["ConfigurationNotReadHeading"] = "configuration-not-read-heading";
|
|
31331
|
-
CoreMessage2["
|
|
31331
|
+
CoreMessage2["ClaimCodeErrorsHeading"] = "claim-code-errors-heading";
|
|
31332
31332
|
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
31333
31333
|
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31334
31334
|
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31335
31335
|
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
31336
|
-
CoreMessage2["
|
|
31336
|
+
CoreMessage2["ClaimCodeErrorCount"] = "claim-code-error-count";
|
|
31337
31337
|
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
31338
31338
|
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
31339
31339
|
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
31340
31340
|
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
31341
31341
|
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
31342
31342
|
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
31343
|
-
CoreMessage2["
|
|
31344
|
-
CoreMessage2["
|
|
31345
|
-
CoreMessage2["
|
|
31346
|
-
CoreMessage2["
|
|
31343
|
+
CoreMessage2["ClaimCodeErrorsFraming"] = "claim-code-errors-framing";
|
|
31344
|
+
CoreMessage2["SeveralClaimCodesFraming"] = "several-claim-codes-framing";
|
|
31345
|
+
CoreMessage2["MisfiledAndSeveralClaimCodesFraming"] = "misfiled-and-several-claim-codes-framing";
|
|
31346
|
+
CoreMessage2["DuplicateClaimCodeNotListed"] = "duplicate-claim-code-not-listed";
|
|
31347
31347
|
CoreMessage2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31348
|
-
CoreMessage2["
|
|
31349
|
-
CoreMessage2["
|
|
31348
|
+
CoreMessage2["ForeignClaimCodeCarried"] = "foreign-claim-code-carried";
|
|
31349
|
+
CoreMessage2["ForeignClaimCodeNoCarrier"] = "foreign-claim-code-no-carrier";
|
|
31350
31350
|
CoreMessage2["NoFeatureCode"] = "no-feature-code";
|
|
31351
|
-
CoreMessage2["
|
|
31351
|
+
CoreMessage2["ScenarioSeveralClaimCodes"] = "several-claim-codes";
|
|
31352
31352
|
CoreMessage2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31353
31353
|
CoreMessage2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31354
31354
|
CoreMessage2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
@@ -31378,10 +31378,10 @@ var init_messages4 = __esm({
|
|
|
31378
31378
|
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
31379
31379
|
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
31380
31380
|
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
31381
|
-
CoreMessage2["
|
|
31382
|
-
CoreMessage2["
|
|
31383
|
-
CoreMessage2["
|
|
31384
|
-
CoreMessage2["
|
|
31381
|
+
CoreMessage2["ClaimCodeErrorsHeadline"] = "claim-code-errors-headline";
|
|
31382
|
+
CoreMessage2["ClaimCodeErrorsGloss"] = "claim-code-errors-gloss";
|
|
31383
|
+
CoreMessage2["SeveralClaimCodesGloss"] = "several-claim-codes-gloss";
|
|
31384
|
+
CoreMessage2["MisfiledAndSeveralClaimCodesGloss"] = "misfiled-and-several-claim-codes-gloss";
|
|
31385
31385
|
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
31386
31386
|
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
31387
31387
|
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
@@ -31441,16 +31441,16 @@ var init_messages4 = __esm({
|
|
|
31441
31441
|
CoreMessage2["UnnamedClaimReconciliations"] = "unnamed-claim-reconciliations";
|
|
31442
31442
|
CoreMessage2["AndJoiner"] = "and-joiner";
|
|
31443
31443
|
CoreMessage2["ByFeatureTableHeader"] = "by-feature-table-header";
|
|
31444
|
-
CoreMessage2["
|
|
31445
|
-
CoreMessage2["
|
|
31444
|
+
CoreMessage2["NoClaimCodeScenarios"] = "no-claim-code-scenarios";
|
|
31445
|
+
CoreMessage2["CodesAndNoClaimCodeScenarios"] = "codes-and-no-claim-code-scenarios";
|
|
31446
31446
|
CoreMessage2["ClaimReconciliationsHeading"] = "claim-reconciliations-heading";
|
|
31447
31447
|
CoreMessage2["ClaimReconciliationTally"] = "claim-reconciliation-tally";
|
|
31448
31448
|
CoreMessage2["PhantomClaimTally"] = "phantom-claim-tally";
|
|
31449
31449
|
CoreMessage2["UnnamedClaimTally"] = "unnamed-claim-tally";
|
|
31450
|
-
CoreMessage2["
|
|
31450
|
+
CoreMessage2["ExcludedClaimOccurrences"] = "excluded-claim-occurrences";
|
|
31451
31451
|
CoreMessage2["UntaggedScenarios"] = "untagged-scenarios";
|
|
31452
|
-
CoreMessage2["
|
|
31453
|
-
CoreMessage2["
|
|
31452
|
+
CoreMessage2["SharedClaimCodes"] = "shared-claim-codes";
|
|
31453
|
+
CoreMessage2["SharedClaimCodeScenario"] = "shared-claim-code-scenario";
|
|
31454
31454
|
CoreMessage2["ClaimColumn"] = "claim-column";
|
|
31455
31455
|
CoreMessage2["VerdictColumn"] = "verdict-column";
|
|
31456
31456
|
CoreMessage2["ReconcilingItemsColumn"] = "reconciling-items-column";
|
|
@@ -31468,8 +31468,8 @@ var init_messages4 = __esm({
|
|
|
31468
31468
|
CoreMessage2["OutcomeMissing"] = "outcome-missing";
|
|
31469
31469
|
CoreMessage2["OutcomeFailing"] = "outcome-failing";
|
|
31470
31470
|
CoreMessage2["OutcomeWatermelon"] = "outcome-watermelon";
|
|
31471
|
-
CoreMessage2["
|
|
31472
|
-
CoreMessage2["
|
|
31471
|
+
CoreMessage2["OutcomeNoClaimCode"] = "outcome-no-claim-code";
|
|
31472
|
+
CoreMessage2["OutcomeDuplicateClaimCode"] = "outcome-duplicate-claim-code";
|
|
31473
31473
|
CoreMessage2["OutcomeCitesUnknownScenario"] = "outcome-cites-unknown-scenario";
|
|
31474
31474
|
CoreMessage2["OutcomeCitesNoScenario"] = "outcome-cites-no-scenario";
|
|
31475
31475
|
CoreMessage2["OutcomeNoEvidenceObligation"] = "outcome-no-evidence-obligation";
|
|
@@ -31479,8 +31479,8 @@ var init_messages4 = __esm({
|
|
|
31479
31479
|
CoreMessage2["ObservationFailed"] = "observation-failed";
|
|
31480
31480
|
CoreMessage2["UnnamedClaimGroupCounts"] = "unnamed-claim-group-counts";
|
|
31481
31481
|
CoreMessage2["UnnamedClaimFailedNames"] = "unnamed-claim-failed-names";
|
|
31482
|
-
CoreMessage2["
|
|
31483
|
-
CoreMessage2["
|
|
31482
|
+
CoreMessage2["SeveralClaimCodesCited"] = "several-claim-codes-cited";
|
|
31483
|
+
CoreMessage2["SharedClaimCode"] = "shared-claim-code";
|
|
31484
31484
|
CoreMessage2["EvidenceObligationDivergesFromOutcome"] = "evidence-obligation-diverges-from-outcome";
|
|
31485
31485
|
CoreMessage2["EvidenceObservationDivergesFromOutcome"] = "evidence-observation-diverges-from-outcome";
|
|
31486
31486
|
})(CoreMessage || (CoreMessage = {}));
|
|
@@ -31491,9 +31491,9 @@ var init_messages4 = __esm({
|
|
|
31491
31491
|
CoreError2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31492
31492
|
CoreError2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31493
31493
|
CoreError2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31494
|
-
CoreError2["
|
|
31494
|
+
CoreError2["ForeignClaimCode"] = "foreign-claim-code";
|
|
31495
31495
|
CoreError2["NoFeatureCode"] = "no-feature-code";
|
|
31496
|
-
CoreError2["
|
|
31496
|
+
CoreError2["SeveralClaimCodes"] = "several-claim-codes";
|
|
31497
31497
|
})(CoreError || (CoreError = {}));
|
|
31498
31498
|
}
|
|
31499
31499
|
});
|
|
@@ -31510,8 +31510,8 @@ var init_outcomeDescription = __esm({
|
|
|
31510
31510
|
missing: CoreMessage.OutcomeMissing,
|
|
31511
31511
|
failing: CoreMessage.OutcomeFailing,
|
|
31512
31512
|
watermelon: CoreMessage.OutcomeWatermelon,
|
|
31513
|
-
"no-
|
|
31514
|
-
"duplicate-
|
|
31513
|
+
"no-claim-code": CoreMessage.OutcomeNoClaimCode,
|
|
31514
|
+
"duplicate-claim-code": CoreMessage.OutcomeDuplicateClaimCode,
|
|
31515
31515
|
"cites-unknown-scenario": CoreMessage.OutcomeCitesUnknownScenario,
|
|
31516
31516
|
"cites-no-scenario": CoreMessage.OutcomeCitesNoScenario,
|
|
31517
31517
|
"no-evidence-obligation": CoreMessage.OutcomeNoEvidenceObligation,
|
|
@@ -31582,20 +31582,20 @@ var init_heading = __esm({
|
|
|
31582
31582
|
|
|
31583
31583
|
// ../core/dist/render/runVerdict.js
|
|
31584
31584
|
function scenarioCodeErrorsGloss(errors, alsoOutOfBalance) {
|
|
31585
|
-
const values = { heading: markdownHeading(3, coreMessage(CoreMessage.
|
|
31585
|
+
const values = { heading: markdownHeading(3, coreMessage(CoreMessage.ClaimCodeErrorsHeading)), alsoOutOfBalance };
|
|
31586
31586
|
switch (scenarioCodeErrorsAre(errors)) {
|
|
31587
31587
|
case "misfilings":
|
|
31588
|
-
return coreMessage(CoreMessage.
|
|
31588
|
+
return coreMessage(CoreMessage.ClaimCodeErrorsGloss, values);
|
|
31589
31589
|
case "several-codes":
|
|
31590
|
-
return coreMessage(CoreMessage.
|
|
31590
|
+
return coreMessage(CoreMessage.SeveralClaimCodesGloss, values);
|
|
31591
31591
|
case "both":
|
|
31592
|
-
return coreMessage(CoreMessage.
|
|
31592
|
+
return coreMessage(CoreMessage.MisfiledAndSeveralClaimCodesGloss, values);
|
|
31593
31593
|
}
|
|
31594
31594
|
}
|
|
31595
31595
|
function scenarioCodeErrorsVerdict(ledger, errors) {
|
|
31596
31596
|
const alsoOutOfBalance = isBalanced(ledger) ? "" : coreMessage(CoreMessage.AlsoOutOfBalance);
|
|
31597
31597
|
return {
|
|
31598
|
-
headline: coreMessage(CoreMessage.
|
|
31598
|
+
headline: coreMessage(CoreMessage.ClaimCodeErrorsHeadline),
|
|
31599
31599
|
gloss: scenarioCodeErrorsGloss(errors, alsoOutOfBalance)
|
|
31600
31600
|
};
|
|
31601
31601
|
}
|
|
@@ -31611,7 +31611,7 @@ function verdictFor2(verdict, ledger, corpusDir, codeErrors) {
|
|
|
31611
31611
|
return nothingToReconcile(corpusDir);
|
|
31612
31612
|
case "unsound":
|
|
31613
31613
|
return UNSOUND;
|
|
31614
|
-
case "
|
|
31614
|
+
case "claim-code-errors":
|
|
31615
31615
|
return scenarioCodeErrorsVerdict(ledger, codeErrors);
|
|
31616
31616
|
case "out-of-balance":
|
|
31617
31617
|
return OUT_OF_BALANCE;
|
|
@@ -31648,7 +31648,7 @@ var init_runVerdict2 = __esm({
|
|
|
31648
31648
|
};
|
|
31649
31649
|
runVerdictSection = (report, exitCodeOf2) => {
|
|
31650
31650
|
const verdict = report.summary.runVerdict;
|
|
31651
|
-
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errorsInTheInputs?.
|
|
31651
|
+
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errorsInTheInputs?.claimCodeErrors ?? []);
|
|
31652
31652
|
const exit = coreMessage(CoreMessage.VerdictExit, { code: exitCodeOf2(verdict) });
|
|
31653
31653
|
const lines = [markdownHeading(3, coreMessage(CoreMessage.RunVerdictHeading)), "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
|
|
31654
31654
|
if (verdict === "balanced" && hasPendingItems(report)) {
|
|
@@ -31674,11 +31674,11 @@ var init_errorEntry = __esm({
|
|
|
31674
31674
|
function scenarioCodeErrorsFraming(errors, count) {
|
|
31675
31675
|
switch (scenarioCodeErrorsAre(errors)) {
|
|
31676
31676
|
case "misfilings":
|
|
31677
|
-
return coreMessage(CoreMessage.
|
|
31677
|
+
return coreMessage(CoreMessage.ClaimCodeErrorsFraming, { count });
|
|
31678
31678
|
case "several-codes":
|
|
31679
|
-
return coreMessage(CoreMessage.
|
|
31679
|
+
return coreMessage(CoreMessage.SeveralClaimCodesFraming, { count });
|
|
31680
31680
|
case "both":
|
|
31681
|
-
return coreMessage(CoreMessage.
|
|
31681
|
+
return coreMessage(CoreMessage.MisfiledAndSeveralClaimCodesFraming, { count });
|
|
31682
31682
|
}
|
|
31683
31683
|
}
|
|
31684
31684
|
function cleanStatement(cleanliness) {
|
|
@@ -31708,11 +31708,11 @@ function worded(error) {
|
|
|
31708
31708
|
files: error.files.join(", ")
|
|
31709
31709
|
});
|
|
31710
31710
|
}
|
|
31711
|
-
if (error.kind === "foreign-
|
|
31711
|
+
if (error.kind === "foreign-claim-code")
|
|
31712
31712
|
return foreignWorded(error);
|
|
31713
31713
|
if (error.kind === "no-feature-code")
|
|
31714
31714
|
return coreMessage(CoreMessage.NoFeatureCode, { file: error.files.join(", ") });
|
|
31715
|
-
return coreMessage(CoreMessage.
|
|
31715
|
+
return coreMessage(CoreMessage.ScenarioSeveralClaimCodes, {
|
|
31716
31716
|
file: error.files.join(", "),
|
|
31717
31717
|
scenario: error.scenario,
|
|
31718
31718
|
codeCount: error.codes.length,
|
|
@@ -31720,13 +31720,13 @@ function worded(error) {
|
|
|
31720
31720
|
});
|
|
31721
31721
|
}
|
|
31722
31722
|
function foreignWorded(error) {
|
|
31723
|
-
const values = { file: error.files.join(", "), featureCode: error.featureCode,
|
|
31723
|
+
const values = { file: error.files.join(", "), featureCode: error.featureCode, claimCode: error.claimCode, named: error.namedFeatureCode };
|
|
31724
31724
|
const carriers = foreignCodeCarriersOf(error);
|
|
31725
31725
|
switch (carriers.kind) {
|
|
31726
31726
|
case "none":
|
|
31727
|
-
return coreMessage(CoreMessage.
|
|
31727
|
+
return coreMessage(CoreMessage.ForeignClaimCodeNoCarrier, values);
|
|
31728
31728
|
case "carried":
|
|
31729
|
-
return coreMessage(CoreMessage.
|
|
31729
|
+
return coreMessage(CoreMessage.ForeignClaimCodeCarried, {
|
|
31730
31730
|
...values,
|
|
31731
31731
|
carrierCount: carriers.files.length,
|
|
31732
31732
|
carriers: carriers.files.join(", ")
|
|
@@ -31744,30 +31744,30 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31744
31744
|
init_errorEntry();
|
|
31745
31745
|
CODE_OF = {
|
|
31746
31746
|
"duplicate-feature-code": CoreError.DuplicateFeatureCode,
|
|
31747
|
-
"foreign-
|
|
31747
|
+
"foreign-claim-code": CoreError.ForeignClaimCode,
|
|
31748
31748
|
"no-feature-code": CoreError.NoFeatureCode,
|
|
31749
|
-
"several-
|
|
31749
|
+
"several-claim-codes": CoreError.SeveralClaimCodes
|
|
31750
31750
|
};
|
|
31751
31751
|
scenarioCodeErrorsSection = (report) => {
|
|
31752
|
-
const errors = report.errorsInTheInputs?.
|
|
31752
|
+
const errors = report.errorsInTheInputs?.claimCodeErrors;
|
|
31753
31753
|
if (errors === void 0)
|
|
31754
31754
|
return [];
|
|
31755
|
-
const count = coreMessage(CoreMessage.
|
|
31755
|
+
const count = coreMessage(CoreMessage.ClaimCodeErrorCount, { count: errors.length });
|
|
31756
31756
|
return [
|
|
31757
|
-
markdownHeading(3, coreMessage(CoreMessage.
|
|
31757
|
+
markdownHeading(3, coreMessage(CoreMessage.ClaimCodeErrorsHeading)),
|
|
31758
31758
|
"",
|
|
31759
31759
|
scenarioCodeErrorsFraming(errors, count),
|
|
31760
31760
|
"",
|
|
31761
31761
|
...errors.map((error) => errorEntry(CODE_OF[error.kind], worded(error))),
|
|
31762
31762
|
"",
|
|
31763
|
-
coreMessage(CoreMessage.
|
|
31763
|
+
coreMessage(CoreMessage.DuplicateClaimCodeNotListed, { outcome: coreMessage(CoreMessage.OutcomeDuplicateClaimCode) }),
|
|
31764
31764
|
""
|
|
31765
31765
|
];
|
|
31766
31766
|
};
|
|
31767
31767
|
scenarioCodesCleanStatement = (report) => {
|
|
31768
|
-
if (report.errorsInTheInputs?.
|
|
31768
|
+
if (report.errorsInTheInputs?.claimCodeErrors !== void 0)
|
|
31769
31769
|
return [];
|
|
31770
|
-
const { featureFiles, featureCodes } = report.summary.
|
|
31770
|
+
const { featureFiles, featureCodes } = report.summary.claimCodes ?? {};
|
|
31771
31771
|
if (typeof featureFiles !== "number" || typeof featureCodes !== "number")
|
|
31772
31772
|
return [];
|
|
31773
31773
|
return [cleanStatement(scenarioCodeCleanlinessOf({ featureFiles, featureCodes })), ""];
|
|
@@ -32142,10 +32142,10 @@ var init_evidenceGrid = __esm({
|
|
|
32142
32142
|
// ../core/dist/render/remarkWords.js
|
|
32143
32143
|
function noteWords(note) {
|
|
32144
32144
|
switch (note.kind) {
|
|
32145
|
-
case "several-
|
|
32146
|
-
return coreMessage(CoreMessage.
|
|
32147
|
-
case "shared-
|
|
32148
|
-
return coreMessage(CoreMessage.
|
|
32145
|
+
case "several-claim-codes":
|
|
32146
|
+
return coreMessage(CoreMessage.SeveralClaimCodesCited, { count: note.codes.length, codes: note.codes.join(", ") });
|
|
32147
|
+
case "shared-claim-code":
|
|
32148
|
+
return coreMessage(CoreMessage.SharedClaimCode, { code: note.code });
|
|
32149
32149
|
case "ambiguous-step":
|
|
32150
32150
|
return note.step === void 0 ? coreMessage(CoreMessage.AmbiguousUnnamedStep) : coreMessage(CoreMessage.AmbiguousNamedStep, { step: note.step });
|
|
32151
32151
|
case "check-step-did-not-run":
|
|
@@ -32154,10 +32154,10 @@ function noteWords(note) {
|
|
|
32154
32154
|
}
|
|
32155
32155
|
function checkStepWords(code, outcome) {
|
|
32156
32156
|
if (outcome === void 0)
|
|
32157
|
-
return coreMessage(CoreMessage.CheckStepNoOutcome, {
|
|
32157
|
+
return coreMessage(CoreMessage.CheckStepNoOutcome, { claimCode: code });
|
|
32158
32158
|
if (outcome === "skipped")
|
|
32159
|
-
return coreMessage(CoreMessage.CheckStepSkipped, {
|
|
32160
|
-
return coreMessage(CoreMessage.CheckStepEnded, {
|
|
32159
|
+
return coreMessage(CoreMessage.CheckStepSkipped, { claimCode: code });
|
|
32160
|
+
return coreMessage(CoreMessage.CheckStepEnded, { claimCode: code, outcome });
|
|
32161
32161
|
}
|
|
32162
32162
|
function remarkWordsOf({ message: message2, notes = [] }) {
|
|
32163
32163
|
const words2 = [...message2 === void 0 || message2.trim() === "" ? [] : [message2], ...notes.map(noteWords)];
|
|
@@ -32180,12 +32180,12 @@ function citingNoScenario(lines) {
|
|
|
32180
32180
|
return lines.filter((line) => line.outcome === "cites-no-scenario").flatMap((line) => line.evidenceObservation ?? []);
|
|
32181
32181
|
}
|
|
32182
32182
|
function sharedScnCodeOf(observation) {
|
|
32183
|
-
const [code = null] = (observation.notes ?? []).flatMap((note) => note.kind === "shared-
|
|
32183
|
+
const [code = null] = (observation.notes ?? []).flatMap((note) => note.kind === "shared-claim-code" ? [note.code] : []);
|
|
32184
32184
|
return code;
|
|
32185
32185
|
}
|
|
32186
32186
|
function remarksOf(observations) {
|
|
32187
32187
|
return observations.flatMap(({ message: message2, notes = [] }) => {
|
|
32188
|
-
const kept = notes.filter((note) => note.kind !== "shared-
|
|
32188
|
+
const kept = notes.filter((note) => note.kind !== "shared-claim-code");
|
|
32189
32189
|
return message2 === void 0 && kept.length === 0 ? [] : [{ ...message2 !== void 0 ? { message: message2 } : {}, ...kept.length > 0 ? { notes: kept } : {} }];
|
|
32190
32190
|
});
|
|
32191
32191
|
}
|
|
@@ -32235,7 +32235,7 @@ var init_unnamedClaimGroups = __esm({
|
|
|
32235
32235
|
// ../core/dist/render/markdown.js
|
|
32236
32236
|
function renderLine(line) {
|
|
32237
32237
|
const sentence = `${outcomeDescription(line.outcome)}${scenarioClauseOf(line)}`;
|
|
32238
|
-
if (line.outcome === "both-missing" || line.outcome === "no-
|
|
32238
|
+
if (line.outcome === "both-missing" || line.outcome === "no-claim-code" || line.qualityCheckKind === void 0) {
|
|
32239
32239
|
return sentence;
|
|
32240
32240
|
}
|
|
32241
32241
|
const head = `${line.qualityCheckKind}: ${sentence}`;
|
|
@@ -32254,7 +32254,7 @@ function namedSuffix(o) {
|
|
|
32254
32254
|
return quotedSuffix((isFitnessObservation(o) ? [o.fitnessFunction] : [o.locator, o.testName]).map(reported));
|
|
32255
32255
|
}
|
|
32256
32256
|
function scenarioClauseOf({ scenario }) {
|
|
32257
|
-
return scenario === void 0 ? "" : ` \u2014 ${coreMessage(CoreMessage.
|
|
32257
|
+
return scenario === void 0 ? "" : ` \u2014 ${coreMessage(CoreMessage.SharedClaimCodeScenario, { feature: reportedName(scenario.feature), title: reportedName(scenario.title) })}`;
|
|
32258
32258
|
}
|
|
32259
32259
|
function brokenSuffix(o) {
|
|
32260
32260
|
return quotedSuffix([reported(o.locator), remarkHeadlineOf(o, reportedName)]);
|
|
@@ -32271,7 +32271,7 @@ function renderPendingItem(item) {
|
|
|
32271
32271
|
}
|
|
32272
32272
|
function renderFileGroup(group) {
|
|
32273
32273
|
const remarks = group.remarks.flatMap((remark) => remarkHeadlineOf(remark, reportedName) ?? []);
|
|
32274
|
-
const code = group.sharedScnCode === void 0 ? [] : [coreMessage(CoreMessage.
|
|
32274
|
+
const code = group.sharedScnCode === void 0 ? [] : [coreMessage(CoreMessage.SharedClaimCode, { code: group.sharedScnCode })];
|
|
32275
32275
|
const said = [.../* @__PURE__ */ new Set([...code, ...remarks])].filter((part) => part !== "").join(" / ");
|
|
32276
32276
|
const counts = coreMessage(CoreMessage.UnnamedClaimGroupCounts, { ran: group.ran, passed: group.passed, failed: group.failed });
|
|
32277
32277
|
const names = group.failedNames.map(reportedName).filter((name) => name !== "");
|
|
@@ -32294,7 +32294,7 @@ function renderUnnamedClaimGroup(group) {
|
|
|
32294
32294
|
if (!("names" in group))
|
|
32295
32295
|
return renderFileGroup(group);
|
|
32296
32296
|
const steps = unnamedClaimCiSteps(unnamedClaimCiStepsViewOf(group.names.map(reportedName)));
|
|
32297
|
-
const remark = group.sharedScnCode === void 0 ? "" : ` (${coreMessage(CoreMessage.
|
|
32297
|
+
const remark = group.sharedScnCode === void 0 ? "" : ` (${coreMessage(CoreMessage.SharedClaimCode, { code: group.sharedScnCode })})`;
|
|
32298
32298
|
return `fitness: ${outcomeDescription("cites-no-scenario")}${remark} \u2014 ${steps}`;
|
|
32299
32299
|
}
|
|
32300
32300
|
function renderUnnamedClaimItems(lines) {
|
|
@@ -32329,15 +32329,15 @@ function byFeatureTableLines(groups) {
|
|
|
32329
32329
|
return lines;
|
|
32330
32330
|
}
|
|
32331
32331
|
function idsCell(group) {
|
|
32332
|
-
const noScnCodeCount = group.
|
|
32332
|
+
const noScnCodeCount = group.scenariosWithNoClaimCode ?? 0;
|
|
32333
32333
|
if (noScnCodeCount === 0)
|
|
32334
32334
|
return codeList(group.claims);
|
|
32335
32335
|
const view = outOfBalanceCodesOf(group);
|
|
32336
32336
|
switch (view.kind) {
|
|
32337
32337
|
case "none":
|
|
32338
|
-
return coreMessage(CoreMessage.
|
|
32338
|
+
return coreMessage(CoreMessage.NoClaimCodeScenarios, { count: noScnCodeCount });
|
|
32339
32339
|
case "some":
|
|
32340
|
-
return coreMessage(CoreMessage.
|
|
32340
|
+
return coreMessage(CoreMessage.CodesAndNoClaimCodeScenarios, { codes: codeList(view.codes), count: noScnCodeCount });
|
|
32341
32341
|
}
|
|
32342
32342
|
}
|
|
32343
32343
|
function ungroupedOutOfBalance(totals) {
|
|
@@ -32370,8 +32370,8 @@ function sharedScnCodeLines(shared, scenarios) {
|
|
|
32370
32370
|
if (shared.length === 0)
|
|
32371
32371
|
return [];
|
|
32372
32372
|
return [
|
|
32373
|
-
`- ${coreMessage(CoreMessage.
|
|
32374
|
-
...shared.map((code) => ` - ${code.
|
|
32373
|
+
`- ${coreMessage(CoreMessage.SharedClaimCodes, { scenarios, codes: shared.length })}`,
|
|
32374
|
+
...shared.map((code) => ` - ${code.claimCode}: ${code.scenarios.map((s) => `${s.feature} : ${s.title}`).join("; ")}`)
|
|
32375
32375
|
];
|
|
32376
32376
|
}
|
|
32377
32377
|
function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
@@ -32535,14 +32535,14 @@ var init_markdown = __esm({
|
|
|
32535
32535
|
];
|
|
32536
32536
|
};
|
|
32537
32537
|
scenarioCodeFactsSection = (report) => {
|
|
32538
|
-
const codes = report.summary.
|
|
32538
|
+
const codes = report.summary.claimCodes;
|
|
32539
32539
|
if (codes?.excludedOccurrences === void 0)
|
|
32540
32540
|
return [];
|
|
32541
|
-
const lines = [`- ${coreMessage(CoreMessage.
|
|
32541
|
+
const lines = [`- ${coreMessage(CoreMessage.ExcludedClaimOccurrences, { count: codes.excludedOccurrences })}`];
|
|
32542
32542
|
const untagged = (codes.untaggedScenarios ?? []).length;
|
|
32543
32543
|
if (untagged > 0)
|
|
32544
32544
|
lines.push(`- ${coreMessage(CoreMessage.UntaggedScenarios, { count: untagged })}`);
|
|
32545
|
-
lines.push(...sharedScnCodeLines(codes.
|
|
32545
|
+
lines.push(...sharedScnCodeLines(codes.sharedClaimCodes ?? [], report.claimReconciliations.filter(isScenario).length));
|
|
32546
32546
|
return [...lines, ""];
|
|
32547
32547
|
};
|
|
32548
32548
|
SECTIONS = [
|
|
@@ -32938,14 +32938,14 @@ var init_inputShapes = __esm({
|
|
|
32938
32938
|
}
|
|
32939
32939
|
},
|
|
32940
32940
|
evidenceObservations: { fields: {} },
|
|
32941
|
-
|
|
32941
|
+
claimCodes: {
|
|
32942
32942
|
fields: {
|
|
32943
32943
|
untaggedScenarios: { list: SCENARIO_NAME },
|
|
32944
|
-
|
|
32944
|
+
sharedClaimCodes: { list: { fields: { scenarios: { list: SCENARIO_NAME } } } }
|
|
32945
32945
|
}
|
|
32946
32946
|
}
|
|
32947
32947
|
},
|
|
32948
|
-
required: ["reconciliationTotals", "evidenceObservations", "
|
|
32948
|
+
required: ["reconciliationTotals", "evidenceObservations", "claimCodes"]
|
|
32949
32949
|
},
|
|
32950
32950
|
claimReconciliations: {
|
|
32951
32951
|
list: {
|
|
@@ -32959,7 +32959,7 @@ var init_inputShapes = __esm({
|
|
|
32959
32959
|
},
|
|
32960
32960
|
errorsInTheInputs: {
|
|
32961
32961
|
fields: {
|
|
32962
|
-
|
|
32962
|
+
claimCodeErrors: { list: "anything" },
|
|
32963
32963
|
configurationNotRead: {
|
|
32964
32964
|
fields: {
|
|
32965
32965
|
keysNotRead: { list: "anything" },
|
|
@@ -32970,7 +32970,7 @@ var init_inputShapes = __esm({
|
|
|
32970
32970
|
}
|
|
32971
32971
|
}
|
|
32972
32972
|
},
|
|
32973
|
-
retired: { scenarioCodes: "
|
|
32973
|
+
retired: { scenarioCodes: "claimCodeErrors", configuration: "configurationNotRead" }
|
|
32974
32974
|
}
|
|
32975
32975
|
},
|
|
32976
32976
|
required: ["runProvenance", "summary", "claimReconciliations"],
|
|
@@ -33343,14 +33343,14 @@ var init_exitStatus = __esm({
|
|
|
33343
33343
|
EXIT_CODE = {
|
|
33344
33344
|
balanced: 0,
|
|
33345
33345
|
"out-of-balance": 1,
|
|
33346
|
-
"
|
|
33346
|
+
"claim-code-errors": 1,
|
|
33347
33347
|
pending: 3,
|
|
33348
33348
|
unsound: 4,
|
|
33349
33349
|
"nothing-to-reconcile": 5
|
|
33350
33350
|
};
|
|
33351
33351
|
MOVED_BY_EXIT_ZERO = /* @__PURE__ */ new Set([
|
|
33352
33352
|
"out-of-balance",
|
|
33353
|
-
"
|
|
33353
|
+
"claim-code-errors",
|
|
33354
33354
|
"pending"
|
|
33355
33355
|
]);
|
|
33356
33356
|
reportedExitCodeOf = (verdict) => exitCodeOf(verdict, false);
|