spec-controller 0.1.228 → 0.1.230
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 +483 -447
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12105,6 +12105,12 @@ function behaviouralObservationTally(ledger) {
|
|
|
12105
12105
|
function runningFitnessObservations(ledger) {
|
|
12106
12106
|
return ledger.claimReconciliations.flatMap((row) => observationsOf(row).flatMap((observation) => ranAsFitnessFunction(observation) ? [observation] : []));
|
|
12107
12107
|
}
|
|
12108
|
+
function runnerSteps({ ciSteps }) {
|
|
12109
|
+
const [first, ...rest] = ciSteps ?? [];
|
|
12110
|
+
if (first === void 0)
|
|
12111
|
+
return { kind: "none" };
|
|
12112
|
+
return { kind: "some", ciSteps: [first, ...rest] };
|
|
12113
|
+
}
|
|
12108
12114
|
function evidenceObservationTally(ledger) {
|
|
12109
12115
|
const behavioural = behaviouralObservationTally(ledger);
|
|
12110
12116
|
const ranByKind = { scenario: 0, "phantom-claim": 0, "unnamed-claim": 0 };
|
|
@@ -28240,364 +28246,6 @@ var init_model = __esm({
|
|
|
28240
28246
|
}
|
|
28241
28247
|
});
|
|
28242
28248
|
|
|
28243
|
-
// ../core/dist/render/messages.js
|
|
28244
|
-
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, SATISFIED, MISSING, DUPLICATE_SCN_CODE, CITED_WITH_NO_SCENARIO, NO_ONE_SCENARIO_CAN_TAKE, RUNNERS_PLACE, CORE_MESSAGES;
|
|
28245
|
-
var init_messages4 = __esm({
|
|
28246
|
-
"../core/dist/render/messages.js"() {
|
|
28247
|
-
"use strict";
|
|
28248
|
-
init_qualityCheckFault();
|
|
28249
|
-
init_claimReconciliation();
|
|
28250
|
-
QUALITY_CHECK_FAULT_MESSAGES = {
|
|
28251
|
-
[QualityCheckFaultCode.EvidenceDivergesFromOutcome]: (fault) => `QualityCheckReconciliation invariant (@SCN-LDG-030): outcome "${fault.outcome}" has the ${fault.evidence === "evidence-obligation" ? "evidence obligation (debit)" : "evidence observation"} side ${fault.presenceForOutcome} for that outcome, but it was ${fault.presenceFound}.`
|
|
28252
|
-
};
|
|
28253
|
-
(function(CoreMessage2) {
|
|
28254
|
-
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
28255
|
-
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
28256
|
-
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 2] = "ScenarioCodeErrorsHeading";
|
|
28257
|
-
CoreMessage2[CoreMessage2["ReconciliationTotalsHeading"] = 3] = "ReconciliationTotalsHeading";
|
|
28258
|
-
CoreMessage2[CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = 4] = "ReconciliationTotalsClaimReconciliationTerm";
|
|
28259
|
-
CoreMessage2[CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = 5] = "ReconciliationTotalsReconciliationLineTerm";
|
|
28260
|
-
CoreMessage2[CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = 6] = "ReconciliationTotalsEvidenceObligationTerm";
|
|
28261
|
-
CoreMessage2[CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = 7] = "ReconciliationTotalsEvidenceObservationTerm";
|
|
28262
|
-
CoreMessage2[CoreMessage2["SubjectColumn"] = 8] = "SubjectColumn";
|
|
28263
|
-
CoreMessage2[CoreMessage2["TotalColumn"] = 9] = "TotalColumn";
|
|
28264
|
-
CoreMessage2[CoreMessage2["BalancedColumn"] = 10] = "BalancedColumn";
|
|
28265
|
-
CoreMessage2[CoreMessage2["OutOfBalanceColumn"] = 11] = "OutOfBalanceColumn";
|
|
28266
|
-
CoreMessage2[CoreMessage2["DetailColumn"] = 12] = "DetailColumn";
|
|
28267
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationSubject"] = 13] = "ClaimReconciliationSubject";
|
|
28268
|
-
CoreMessage2[CoreMessage2["ReconciliationLineSubject"] = 14] = "ReconciliationLineSubject";
|
|
28269
|
-
CoreMessage2[CoreMessage2["PendingTally"] = 15] = "PendingTally";
|
|
28270
|
-
CoreMessage2[CoreMessage2["EvidenceObservationsHeading"] = 16] = "EvidenceObservationsHeading";
|
|
28271
|
-
CoreMessage2[CoreMessage2["EvidenceObservationsSum"] = 17] = "EvidenceObservationsSum";
|
|
28272
|
-
CoreMessage2[CoreMessage2["EvidenceObservationsTableHeader"] = 18] = "EvidenceObservationsTableHeader";
|
|
28273
|
-
CoreMessage2[CoreMessage2["FitnessRunner"] = 19] = "FitnessRunner";
|
|
28274
|
-
CoreMessage2[CoreMessage2["FitnessCiStep"] = 20] = "FitnessCiStep";
|
|
28275
|
-
CoreMessage2[CoreMessage2["RunnerLayerNamesNone"] = 21] = "RunnerLayerNamesNone";
|
|
28276
|
-
CoreMessage2[CoreMessage2["RunnerLayerUnnamed"] = 22] = "RunnerLayerUnnamed";
|
|
28277
|
-
CoreMessage2[CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = 23] = "NoStepCountedAsItsRunnerRunsIt";
|
|
28278
|
-
CoreMessage2[CoreMessage2["ReconcilerStep"] = 24] = "ReconcilerStep";
|
|
28279
|
-
CoreMessage2[CoreMessage2["ReconcilerReconciles"] = 25] = "ReconcilerReconciles";
|
|
28280
|
-
CoreMessage2[CoreMessage2["ReconcilerRecords"] = 26] = "ReconcilerRecords";
|
|
28281
|
-
CoreMessage2[CoreMessage2["StepNonCheck"] = 27] = "StepNonCheck";
|
|
28282
|
-
CoreMessage2[CoreMessage2["StepAccountingHeading"] = 28] = "StepAccountingHeading";
|
|
28283
|
-
CoreMessage2[CoreMessage2["StepAccountingTableHeader"] = 29] = "StepAccountingTableHeader";
|
|
28284
|
-
CoreMessage2[CoreMessage2["StepAccountingTotal"] = 30] = "StepAccountingTotal";
|
|
28285
|
-
CoreMessage2[CoreMessage2["StepAccountingRunnersLabel"] = 31] = "StepAccountingRunnersLabel";
|
|
28286
|
-
CoreMessage2[CoreMessage2["StepAccountingReconcilerLabel"] = 32] = "StepAccountingReconcilerLabel";
|
|
28287
|
-
CoreMessage2[CoreMessage2["StepAccountingNonChecksLabel"] = 33] = "StepAccountingNonChecksLabel";
|
|
28288
|
-
CoreMessage2[CoreMessage2["StepAccountingNotAppliedLabel"] = 34] = "StepAccountingNotAppliedLabel";
|
|
28289
|
-
CoreMessage2[CoreMessage2["StepAccountingNoWorkflowRead"] = 35] = "StepAccountingNoWorkflowRead";
|
|
28290
|
-
CoreMessage2[CoreMessage2["StepAccountingPlumbingLabel"] = 36] = "StepAccountingPlumbingLabel";
|
|
28291
|
-
CoreMessage2[CoreMessage2["StepAccountingCandidatesTerm"] = 37] = "StepAccountingCandidatesTerm";
|
|
28292
|
-
CoreMessage2[CoreMessage2["StepAccountingReconcilerTerm"] = 38] = "StepAccountingReconcilerTerm";
|
|
28293
|
-
CoreMessage2[CoreMessage2["StepAccountingNonChecksTerm"] = 39] = "StepAccountingNonChecksTerm";
|
|
28294
|
-
CoreMessage2[CoreMessage2["StepAccountingPlumbingTerm"] = 40] = "StepAccountingPlumbingTerm";
|
|
28295
|
-
CoreMessage2[CoreMessage2["StepAccountingAccountedForTerm"] = 41] = "StepAccountingAccountedForTerm";
|
|
28296
|
-
CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 42] = "OutOfBalanceByFeatureHeading";
|
|
28297
|
-
CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 43] = "ScenarioClaimReconciliationsOutOfBalance";
|
|
28298
|
-
CoreMessage2[CoreMessage2["GroupedByFeature"] = 44] = "GroupedByFeature";
|
|
28299
|
-
CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 45] = "NotGroupedByFeature";
|
|
28300
|
-
CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 46] = "PhantomClaimReconciliations";
|
|
28301
|
-
CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 47] = "UnnamedClaimReconciliations";
|
|
28302
|
-
CoreMessage2[CoreMessage2["AndJoiner"] = 48] = "AndJoiner";
|
|
28303
|
-
CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 49] = "ByFeatureTableHeader";
|
|
28304
|
-
CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 50] = "NoScnCodeScenarios";
|
|
28305
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 51] = "ClaimReconciliationsHeading";
|
|
28306
|
-
CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 52] = "ClaimReconciliationTally";
|
|
28307
|
-
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 53] = "PhantomClaimTally";
|
|
28308
|
-
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 54] = "UnnamedClaimTally";
|
|
28309
|
-
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 55] = "ExcludedScnOccurrences";
|
|
28310
|
-
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 56] = "UntaggedScenarios";
|
|
28311
|
-
CoreMessage2[CoreMessage2["SharedScnCodes"] = 57] = "SharedScnCodes";
|
|
28312
|
-
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 58] = "SharedScnCodeScenario";
|
|
28313
|
-
CoreMessage2[CoreMessage2["ClaimColumn"] = 59] = "ClaimColumn";
|
|
28314
|
-
CoreMessage2[CoreMessage2["VerdictColumn"] = 60] = "VerdictColumn";
|
|
28315
|
-
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 61] = "ReconcilingItemsColumn";
|
|
28316
|
-
CoreMessage2[CoreMessage2["CiStepsColumn"] = 62] = "CiStepsColumn";
|
|
28317
|
-
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 63] = "EvidenceCellKey";
|
|
28318
|
-
CoreMessage2[CoreMessage2["WatermelonItemKey"] = 64] = "WatermelonItemKey";
|
|
28319
|
-
CoreMessage2[CoreMessage2["PendingItem"] = 65] = "PendingItem";
|
|
28320
|
-
CoreMessage2[CoreMessage2["PendingItemFor"] = 66] = "PendingItemFor";
|
|
28321
|
-
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 67] = "CheckStepNoOutcome";
|
|
28322
|
-
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 68] = "CheckStepSkipped";
|
|
28323
|
-
CoreMessage2[CoreMessage2["CheckStepEnded"] = 69] = "CheckStepEnded";
|
|
28324
|
-
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 70] = "AmbiguousNamedStep";
|
|
28325
|
-
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 71] = "AmbiguousUnnamedStep";
|
|
28326
|
-
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 72] = "OutcomeSatisfied";
|
|
28327
|
-
CoreMessage2[CoreMessage2["OutcomeMissing"] = 73] = "OutcomeMissing";
|
|
28328
|
-
CoreMessage2[CoreMessage2["OutcomeFailing"] = 74] = "OutcomeFailing";
|
|
28329
|
-
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 75] = "OutcomeWatermelon";
|
|
28330
|
-
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 76] = "OutcomeNoScnCode";
|
|
28331
|
-
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 77] = "OutcomeDuplicateScnCode";
|
|
28332
|
-
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 78] = "OutcomeCitesUnknownScenario";
|
|
28333
|
-
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 79] = "OutcomeCitesNoScenario";
|
|
28334
|
-
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 80] = "OutcomeNoEvidenceObligation";
|
|
28335
|
-
CoreMessage2[CoreMessage2["OutcomeBroken"] = 81] = "OutcomeBroken";
|
|
28336
|
-
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 82] = "OutcomeBothMissing";
|
|
28337
|
-
CoreMessage2[CoreMessage2["ObservationPassed"] = 83] = "ObservationPassed";
|
|
28338
|
-
CoreMessage2[CoreMessage2["ObservationFailed"] = 84] = "ObservationFailed";
|
|
28339
|
-
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 85] = "UnnamedClaimGroupCounts";
|
|
28340
|
-
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 86] = "UnnamedClaimFailedNames";
|
|
28341
|
-
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 87] = "SeveralScnCodes";
|
|
28342
|
-
CoreMessage2[CoreMessage2["SharedScnCode"] = 88] = "SharedScnCode";
|
|
28343
|
-
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
28344
|
-
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
28345
|
-
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
28346
|
-
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
28347
|
-
CoreMessage2["ScenarioCodeErrorCount"] = "scenario-code-error-count";
|
|
28348
|
-
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
28349
|
-
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
28350
|
-
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
28351
|
-
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
28352
|
-
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
28353
|
-
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
28354
|
-
CoreMessage2["ScenarioCodeErrorsFraming"] = "scenario-code-errors-framing";
|
|
28355
|
-
CoreMessage2["SeveralScnCodesFraming"] = "several-scn-codes-framing";
|
|
28356
|
-
CoreMessage2["MisfiledAndSeveralScnCodesFraming"] = "misfiled-and-several-scn-codes-framing";
|
|
28357
|
-
CoreMessage2["DuplicateScnCodeNotListed"] = "duplicate-scn-code-not-listed";
|
|
28358
|
-
CoreMessage2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
28359
|
-
CoreMessage2["ForeignScnCodeCarried"] = "foreign-scn-code-carried";
|
|
28360
|
-
CoreMessage2["ForeignScnCodeNoCarrier"] = "foreign-scn-code-no-carrier";
|
|
28361
|
-
CoreMessage2["NoFeatureCode"] = "no-feature-code";
|
|
28362
|
-
CoreMessage2["ScenarioSeveralScnCodes"] = "several-scn-codes";
|
|
28363
|
-
CoreMessage2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
28364
|
-
CoreMessage2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
28365
|
-
CoreMessage2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
28366
|
-
CoreMessage2["ManifestKindList"] = "manifest-kind-list";
|
|
28367
|
-
CoreMessage2["ManifestKindObject"] = "manifest-kind-object";
|
|
28368
|
-
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
28369
|
-
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
28370
|
-
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
28371
|
-
CoreMessage2["ReportTitle"] = "report-title";
|
|
28372
|
-
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
28373
|
-
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
28374
|
-
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
28375
|
-
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
28376
|
-
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
28377
|
-
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
28378
|
-
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
28379
|
-
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
28380
|
-
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
28381
|
-
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
28382
|
-
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
28383
|
-
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
28384
|
-
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
28385
|
-
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
28386
|
-
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
28387
|
-
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
28388
|
-
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
28389
|
-
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
28390
|
-
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
28391
|
-
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
28392
|
-
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
28393
|
-
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
28394
|
-
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
28395
|
-
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
28396
|
-
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
28397
|
-
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
28398
|
-
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
28399
|
-
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
28400
|
-
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
28401
|
-
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
28402
|
-
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
28403
|
-
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
28404
|
-
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
28405
|
-
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
28406
|
-
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
28407
|
-
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
28408
|
-
})(CoreMessage || (CoreMessage = {}));
|
|
28409
|
-
(function(CoreError2) {
|
|
28410
|
-
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
28411
|
-
CoreError2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
28412
|
-
CoreError2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
28413
|
-
CoreError2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
28414
|
-
CoreError2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
28415
|
-
CoreError2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
28416
|
-
CoreError2["ForeignScnCode"] = "foreign-scn-code";
|
|
28417
|
-
CoreError2["NoFeatureCode"] = "no-feature-code";
|
|
28418
|
-
CoreError2["SeveralScnCodes"] = "several-scn-codes";
|
|
28419
|
-
})(CoreError || (CoreError = {}));
|
|
28420
|
-
SATISFIED = "Evidence Observation satisfies its Evidence Obligation";
|
|
28421
|
-
MISSING = "Evidence Observation is missing";
|
|
28422
|
-
DUPLICATE_SCN_CODE = "Evidence Obligation's @SCN code is carried by another Scenario";
|
|
28423
|
-
CITED_WITH_NO_SCENARIO = "cited scenario ids with no real scenario";
|
|
28424
|
-
NO_ONE_SCENARIO_CAN_TAKE = "evidence observations no one scenario can take";
|
|
28425
|
-
RUNNERS_PLACE = "`specController.runners` in its `package.json`";
|
|
28426
|
-
CORE_MESSAGES = {
|
|
28427
|
-
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
28428
|
-
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
28429
|
-
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors",
|
|
28430
|
-
[CoreMessage.ReconciliationTotalsHeading]: "### Reconciliation totals",
|
|
28431
|
-
[CoreMessage.ReconciliationTotalsClaimReconciliationTerm]: "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).",
|
|
28432
|
-
[CoreMessage.ReconciliationTotalsReconciliationLineTerm]: "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.",
|
|
28433
|
-
[CoreMessage.ReconciliationTotalsEvidenceObligationTerm]: `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 \`@SCN\` code with another, no tag defers anything: it reads "${DUPLICATE_SCN_CODE}" at each kind of quality check it raises, or once when it raises none.`,
|
|
28434
|
-
[CoreMessage.ReconciliationTotalsEvidenceObservationTerm]: "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.",
|
|
28435
|
-
[CoreMessage.SubjectColumn]: "Subject",
|
|
28436
|
-
[CoreMessage.TotalColumn]: "Total",
|
|
28437
|
-
[CoreMessage.BalancedColumn]: "Balanced",
|
|
28438
|
-
[CoreMessage.OutOfBalanceColumn]: "Out-of-balance",
|
|
28439
|
-
[CoreMessage.DetailColumn]: "Detail",
|
|
28440
|
-
[CoreMessage.ClaimReconciliationSubject]: "Claim Reconciliation",
|
|
28441
|
-
[CoreMessage.ReconciliationLineSubject]: "Reconciliation line",
|
|
28442
|
-
[CoreMessage.PendingTally]: (pending) => `${pending} Pending Item(s) \u2014 deferred, tallied apart from balanced and out-of-balance.`,
|
|
28443
|
-
[CoreMessage.EvidenceObservationsHeading]: "### Evidence observations",
|
|
28444
|
-
[CoreMessage.EvidenceObservationsSum]: (total, onScenario, onPhantomClaim, onUnnamedClaim) => `${total} evidence observations = ${onScenario} on scenarios + ${onPhantomClaim} on ${CITED_WITH_NO_SCENARIO} + ${onUnnamedClaim} that no one scenario can take.`,
|
|
28445
|
-
[CoreMessage.EvidenceObservationsTableHeader]: "| Kind of quality check | Evidence observations | Runner | CI step |",
|
|
28446
|
-
[CoreMessage.FitnessRunner]: "each fitness function's check step",
|
|
28447
|
-
[CoreMessage.FitnessCiStep]: (steps) => `${steps} step(s), each named on its fitness function's row of Claim Reconciliations.`,
|
|
28448
|
-
[CoreMessage.RunnerLayerNamesNone]: `no runner: the target declares this layer has none, by setting it to \`null\` under ${RUNNERS_PLACE}.`,
|
|
28449
|
-
[CoreMessage.RunnerLayerUnnamed]: `unnamed: the target leaves this layer's runner undeclared: ${RUNNERS_PLACE} is missing or not a block, leaves the layer out, or gives it a value that is neither a string nor \`null\`. A string there names the layer's runner.`,
|
|
28450
|
-
[CoreMessage.NoStepCountedAsItsRunnerRunsIt]: "no step counted as its runner runs it.",
|
|
28451
|
-
[CoreMessage.ReconcilerStep]: (step, whatItIs) => `${step} \u2014 the reconciler: ${whatItIs}.`,
|
|
28452
|
-
[CoreMessage.ReconcilerReconciles]: "this step runs the reconciliation this report is",
|
|
28453
|
-
[CoreMessage.ReconcilerRecords]: "this step writes the step record the reconciliation reads",
|
|
28454
|
-
[CoreMessage.StepNonCheck]: (entry) => `${entry} \u2014 a non-check: the target names it under \`specController.notChecks\`.`,
|
|
28455
|
-
[CoreMessage.StepAccountingHeading]: "### Step accounting",
|
|
28456
|
-
[CoreMessage.StepAccountingTableHeader]: "| Workflow | Job | Steps read | Candidates | Runners | Reconciler | Non-checks | GitHub plumbing | Accounted for |",
|
|
28457
|
-
[CoreMessage.StepAccountingTotal]: "Total",
|
|
28458
|
-
[CoreMessage.StepAccountingRunnersLabel]: "Runners:",
|
|
28459
|
-
[CoreMessage.StepAccountingReconcilerLabel]: "Reconciler:",
|
|
28460
|
-
[CoreMessage.StepAccountingNonChecksLabel]: "Non-checks:",
|
|
28461
|
-
[CoreMessage.StepAccountingNotAppliedLabel]: (key, workflowsRead) => `Not applied, because each ${key} entry below names a workflow this run did not read (this run read ${workflowsRead}):`,
|
|
28462
|
-
[CoreMessage.StepAccountingNoWorkflowRead]: "no workflow",
|
|
28463
|
-
[CoreMessage.StepAccountingPlumbingLabel]: "GitHub plumbing:",
|
|
28464
|
-
[CoreMessage.StepAccountingCandidatesTerm]: "A Candidate is a step read that is not a Runner, Reconciler, Non-check or GitHub plumbing step. It is read as a fitness function, and no list below names it.",
|
|
28465
|
-
[CoreMessage.StepAccountingReconcilerTerm]: "A Reconciler step runs this reconciliation or writes the step record it reads.",
|
|
28466
|
-
[CoreMessage.StepAccountingNonChecksTerm]: "A Non-check is a step the target names under `specController.notChecks`, unless it is a Reconciler step. A GitHub plumbing step named there is a Non-check too.",
|
|
28467
|
-
[CoreMessage.StepAccountingPlumbingTerm]: "A GitHub plumbing step is one that is neither a Reconciler nor a Non-check step and uses one of GitHub's own actions `actions/checkout`, `actions/cache`, `actions/upload-artifact`, `actions/download-artifact` or `actions/setup-*`. A step that runs a command, an install included, is never plumbing.",
|
|
28468
|
-
[CoreMessage.StepAccountingAccountedForTerm]: "Accounted for is the sum of the five columns from Candidates to GitHub plumbing, in which each step read is counted once.",
|
|
28469
|
-
[CoreMessage.OutOfBalanceByFeatureHeading]: "### Out-of-balance by feature",
|
|
28470
|
-
[CoreMessage.ScenarioClaimReconciliationsOutOfBalance]: (outOfBalance, claimReconciliations) => `${outOfBalance} of ${claimReconciliations} Claim Reconciliation(s) of scenarios out of balance`,
|
|
28471
|
-
[CoreMessage.GroupedByFeature]: ", grouped by feature",
|
|
28472
|
-
[CoreMessage.NotGroupedByFeature]: (ungrouped) => `${ungrouped} out of balance, not grouped by feature (no feature file names them)`,
|
|
28473
|
-
[CoreMessage.PhantomClaimReconciliations]: (count) => `${count} Claim Reconciliation(s) for ${CITED_WITH_NO_SCENARIO}`,
|
|
28474
|
-
[CoreMessage.UnnamedClaimReconciliations]: (count) => `${count} Claim Reconciliation(s) for ${NO_ONE_SCENARIO_CAN_TAKE}`,
|
|
28475
|
-
[CoreMessage.AndJoiner]: " and ",
|
|
28476
|
-
[CoreMessage.ByFeatureTableHeader]: "| Feature | Count | Out-of-balance `@SCN` ids |",
|
|
28477
|
-
[CoreMessage.NoScnCodeScenarios]: (count) => `${count} with no \`@SCN\` code`,
|
|
28478
|
-
[CoreMessage.ClaimReconciliationsHeading]: "## Claim Reconciliations",
|
|
28479
|
-
[CoreMessage.ClaimReconciliationTally]: (total, balanced, outOfBalance) => `${total} Claim Reconciliation(s): ${balanced} balanced, ${outOfBalance} out-of-balance.`,
|
|
28480
|
-
[CoreMessage.PhantomClaimTally]: (count) => `${count} Claim Reconciliation(s) for ${CITED_WITH_NO_SCENARIO}.`,
|
|
28481
|
-
[CoreMessage.UnnamedClaimTally]: (count) => `${count} Claim Reconciliation(s) for ${NO_ONE_SCENARIO_CAN_TAKE}, aggregated into "${UNNAMED_CLAIM_ID}".`,
|
|
28482
|
-
[CoreMessage.ExcludedScnOccurrences]: (count) => `${count} @SCN ids seen in non-tag context, excluded: each is an @SCN 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`,
|
|
28483
|
-
[CoreMessage.UntaggedScenarios]: (count) => `${count} scenario(s) carry no @SCN code`,
|
|
28484
|
-
[CoreMessage.SharedScnCodes]: (scenarios, codes) => `The corpus holds ${scenarios} scenarios \u2014 ${codes} @SCN code(s) carried by more than one scenario, each scenario named as \`feature file : scenario title\`:`,
|
|
28485
|
-
[CoreMessage.SharedScnCodeScenario]: (feature, title) => `this one is ${feature} : ${title}`,
|
|
28486
|
-
[CoreMessage.ClaimColumn]: "Claim",
|
|
28487
|
-
[CoreMessage.VerdictColumn]: "Verdict",
|
|
28488
|
-
[CoreMessage.ReconcilingItemsColumn]: "Reconciling items",
|
|
28489
|
-
[CoreMessage.CiStepsColumn]: "CI steps",
|
|
28490
|
-
[CoreMessage.EvidenceCellKey]: [
|
|
28491
|
-
"Key: each evidence cell reads *obligation*/*observations*.",
|
|
28492
|
-
"- 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.",
|
|
28493
|
-
"- The number counts the scenario's Evidence Observations of that kind that ran. `-` means none.",
|
|
28494
|
-
"- 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.",
|
|
28495
|
-
"- 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.",
|
|
28496
|
-
"- A row named `feature file : scenario title` is a scenario that carries no @SCN 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.",
|
|
28497
|
-
"- In Reconciling items, `\u2014` means the row has no reconciling item, and *untagged* means a scenario that carries an @SCN code and no tag that raises an Evidence Obligation.",
|
|
28498
|
-
"- 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.",
|
|
28499
|
-
"- 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."
|
|
28500
|
-
].join("\n"),
|
|
28501
|
-
[CoreMessage.WatermelonItemKey]: "- 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.",
|
|
28502
|
-
[CoreMessage.PendingItem]: "pending",
|
|
28503
|
-
[CoreMessage.PendingItemFor]: (qualityCheckKind) => `pending: ${qualityCheckKind}`,
|
|
28504
|
-
[CoreMessage.CheckStepNoOutcome]: (scnId) => `${scnId}: the CI run's record carries no outcome for this check's step \u2014 so the check did not run.`,
|
|
28505
|
-
[CoreMessage.CheckStepSkipped]: (scnId) => `${scnId}: the CI run's record says this check's step was skipped \u2014 so the check did not run.`,
|
|
28506
|
-
[CoreMessage.CheckStepEnded]: (scnId, outcome) => `${scnId}: the CI run's record says this check's step ended \`${outcome}\` \u2014 so the check did not run.`,
|
|
28507
|
-
[CoreMessage.AmbiguousNamedStep]: (step) => `The step "${step}" is ambiguous \u2014 two or more step definitions match it, so the step never ran.`,
|
|
28508
|
-
[CoreMessage.AmbiguousUnnamedStep]: "A step is ambiguous \u2014 two or more step definitions match it, so the step never ran.",
|
|
28509
|
-
[CoreMessage.OutcomeSatisfied]: SATISFIED,
|
|
28510
|
-
[CoreMessage.OutcomeMissing]: MISSING,
|
|
28511
|
-
[CoreMessage.OutcomeFailing]: "Evidence Observation is failing",
|
|
28512
|
-
[CoreMessage.OutcomeWatermelon]: "Evidence Observation is passing but its CI step or its job sets `continue-on-error` so its red might not fail the CI run",
|
|
28513
|
-
[CoreMessage.OutcomeNoScnCode]: "Evidence Obligation has no @SCN code for an Evidence Observation to link to",
|
|
28514
|
-
[CoreMessage.OutcomeDuplicateScnCode]: DUPLICATE_SCN_CODE,
|
|
28515
|
-
[CoreMessage.OutcomeCitesUnknownScenario]: "Evidence Observation cites an unknown Scenario",
|
|
28516
|
-
[CoreMessage.OutcomeCitesNoScenario]: "Evidence Observation cites no Scenario",
|
|
28517
|
-
[CoreMessage.OutcomeNoEvidenceObligation]: "Evidence Observation cites a Scenario with no matching Evidence Obligation",
|
|
28518
|
-
[CoreMessage.OutcomeBroken]: "Evidence Observation is broken because its proof never ran to a result",
|
|
28519
|
-
[CoreMessage.OutcomeBothMissing]: "Evidence Obligation and Evidence Observation are both missing \u2014 the Scenario is untagged and uncited",
|
|
28520
|
-
[CoreMessage.ObservationPassed]: "passed",
|
|
28521
|
-
[CoreMessage.ObservationFailed]: "failed",
|
|
28522
|
-
[CoreMessage.UnnamedClaimGroupCounts]: (ran, passed, failed) => `${ran} ran, ${passed} passed, ${failed} failed`,
|
|
28523
|
-
[CoreMessage.UnnamedClaimFailedNames]: (names) => `(failed: ${names.join(" / ")})`,
|
|
28524
|
-
[CoreMessage.SeveralScnCodes]: (codes) => `${codes.length} scenario codes cite ${codes.join(", ")} \u2014 a test cites exactly one scenario, so this one credits none of them.`,
|
|
28525
|
-
[CoreMessage.SharedScnCode]: (code) => `${code} is carried by more than one scenario, so evidence citing it credits none of them.`
|
|
28526
|
-
};
|
|
28527
|
-
}
|
|
28528
|
-
});
|
|
28529
|
-
|
|
28530
|
-
// ../core/dist/render/outcomeDescription.js
|
|
28531
|
-
var OUTCOME_DESCRIPTION;
|
|
28532
|
-
var init_outcomeDescription = __esm({
|
|
28533
|
-
"../core/dist/render/outcomeDescription.js"() {
|
|
28534
|
-
"use strict";
|
|
28535
|
-
init_messages4();
|
|
28536
|
-
OUTCOME_DESCRIPTION = {
|
|
28537
|
-
satisfied: CORE_MESSAGES[CoreMessage.OutcomeSatisfied],
|
|
28538
|
-
missing: CORE_MESSAGES[CoreMessage.OutcomeMissing],
|
|
28539
|
-
failing: CORE_MESSAGES[CoreMessage.OutcomeFailing],
|
|
28540
|
-
watermelon: CORE_MESSAGES[CoreMessage.OutcomeWatermelon],
|
|
28541
|
-
"no-scn-code": CORE_MESSAGES[CoreMessage.OutcomeNoScnCode],
|
|
28542
|
-
"duplicate-scn-code": CORE_MESSAGES[CoreMessage.OutcomeDuplicateScnCode],
|
|
28543
|
-
"cites-unknown-scenario": CORE_MESSAGES[CoreMessage.OutcomeCitesUnknownScenario],
|
|
28544
|
-
"cites-no-scenario": CORE_MESSAGES[CoreMessage.OutcomeCitesNoScenario],
|
|
28545
|
-
"no-evidence-obligation": CORE_MESSAGES[CoreMessage.OutcomeNoEvidenceObligation],
|
|
28546
|
-
broken: CORE_MESSAGES[CoreMessage.OutcomeBroken],
|
|
28547
|
-
"both-missing": CORE_MESSAGES[CoreMessage.OutcomeBothMissing]
|
|
28548
|
-
};
|
|
28549
|
-
}
|
|
28550
|
-
});
|
|
28551
|
-
|
|
28552
|
-
// ../core/dist/render/cellSafe.js
|
|
28553
|
-
function cellSafe(text) {
|
|
28554
|
-
return text.replace(/\s+/g, " ").replace(/[\\|]/g, "\\$&").trim();
|
|
28555
|
-
}
|
|
28556
|
-
function cellSafeKeepingCodeSpans(text) {
|
|
28557
|
-
return text.replace(/\s+/g, " ").replace(SPAN_OR_ESCAPED, (found) => found.startsWith("`") ? found.replace(/\|/g, "\\|") : `\\${found}`);
|
|
28558
|
-
}
|
|
28559
|
-
var SPAN_OR_ESCAPED;
|
|
28560
|
-
var init_cellSafe = __esm({
|
|
28561
|
-
"../core/dist/render/cellSafe.js"() {
|
|
28562
|
-
"use strict";
|
|
28563
|
-
SPAN_OR_ESCAPED = /(`+)[\s\S]*?(?<!`)\1(?!`)|[\\|]/g;
|
|
28564
|
-
}
|
|
28565
|
-
});
|
|
28566
|
-
|
|
28567
|
-
// ../core/dist/render/codeSpan.js
|
|
28568
|
-
function codeSpan(written) {
|
|
28569
|
-
const text = spanHoldsAsWritten(written) ? written : JSON.stringify(written);
|
|
28570
|
-
const fence = "`".repeat(longestBacktickRun(text) + 1);
|
|
28571
|
-
const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
|
|
28572
|
-
return `${fence}${pad}${text}${pad}${fence}`;
|
|
28573
|
-
}
|
|
28574
|
-
function fencedBlockLines(info, text) {
|
|
28575
|
-
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
28576
|
-
return [`${fence}${info}`, ...text.split("\n"), fence];
|
|
28577
|
-
}
|
|
28578
|
-
var spanHoldsAsWritten, longestBacktickRun;
|
|
28579
|
-
var init_codeSpan = __esm({
|
|
28580
|
-
"../core/dist/render/codeSpan.js"() {
|
|
28581
|
-
"use strict";
|
|
28582
|
-
spanHoldsAsWritten = (text) => text !== "" && !(text.startsWith(" ") && text.endsWith(" ")) && !/[\n\r]/.test(text) && !(text.startsWith('"') && text.endsWith('"'));
|
|
28583
|
-
longestBacktickRun = (text) => Math.max(0, ...(text.match(/`+/g) ?? []).map((run3) => run3.length));
|
|
28584
|
-
}
|
|
28585
|
-
});
|
|
28586
|
-
|
|
28587
|
-
// ../core/dist/render/reportedName.js
|
|
28588
|
-
function reportedName(text) {
|
|
28589
|
-
const name = text.replace(/\s+/g, " ").trim();
|
|
28590
|
-
return ROW_SEPARATOR.test(name) ? codeSpan(name) : name;
|
|
28591
|
-
}
|
|
28592
|
-
var ROW_SEPARATOR;
|
|
28593
|
-
var init_reportedName = __esm({
|
|
28594
|
-
"../core/dist/render/reportedName.js"() {
|
|
28595
|
-
"use strict";
|
|
28596
|
-
init_codeSpan();
|
|
28597
|
-
ROW_SEPARATOR = /; |: | \/ |, /;
|
|
28598
|
-
}
|
|
28599
|
-
});
|
|
28600
|
-
|
|
28601
28249
|
// ../core/dist/render/messages.en.json
|
|
28602
28250
|
var messages_en_default;
|
|
28603
28251
|
var init_messages_en = __esm({
|
|
@@ -28667,7 +28315,94 @@ var init_messages_en = __esm({
|
|
|
28667
28315
|
"balanced-gloss": "every Claim Reconciliation balances: every Evidence Observation satisfies its Evidence Obligation.",
|
|
28668
28316
|
"nothing-to-reconcile-headline": "**NOTHING TO RECONCILE**",
|
|
28669
28317
|
"nothing-to-reconcile-gloss": "there were no accounts to agree. The ledger carries no Claim Reconciliation at all, so this run has NO BASIS FOR A VERDICT \u2014 the corpus `{corpusDir}` carried no scenario and nothing was produced. Not balanced: a run that examined nothing must not certify.",
|
|
28670
|
-
"pending-items-outstanding": "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`."
|
|
28318
|
+
"pending-items-outstanding": "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`.",
|
|
28319
|
+
"reconciliation-totals-heading": "Reconciliation totals",
|
|
28320
|
+
"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).",
|
|
28321
|
+
"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.",
|
|
28322
|
+
"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 `@SCN` code with another, no tag defers anything: it reads \"Evidence Obligation's @SCN code is carried by another Scenario\" at each kind of quality check it raises, or once when it raises none.",
|
|
28323
|
+
"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.",
|
|
28324
|
+
"subject-column": "Subject",
|
|
28325
|
+
"total-column": "Total",
|
|
28326
|
+
"balanced-column": "Balanced",
|
|
28327
|
+
"out-of-balance-column": "Out-of-balance",
|
|
28328
|
+
"detail-column": "Detail",
|
|
28329
|
+
"claim-reconciliation-subject": "Claim Reconciliation",
|
|
28330
|
+
"reconciliation-line-subject": "Reconciliation line",
|
|
28331
|
+
"pending-tally": "{pending} Pending Item(s) \u2014 deferred, tallied apart from balanced and out-of-balance.",
|
|
28332
|
+
"evidence-observations-heading": "Evidence observations",
|
|
28333
|
+
"evidence-observations-sum": "{total} evidence observations = {onScenario} on scenarios + {onPhantomClaim} on cited scenario ids with no real scenario + {onUnnamedClaim} that no one scenario can take.",
|
|
28334
|
+
"evidence-observations-table-header": "| Kind of quality check | Evidence observations | Runner | CI step |",
|
|
28335
|
+
"fitness-runner": "each fitness function's check step",
|
|
28336
|
+
"fitness-ci-step": "{steps} step(s), each named on its fitness function's row of Claim Reconciliations.",
|
|
28337
|
+
"runner-layer-names-none": "no runner: the target declares this layer has none, by setting it to `null` under `specController.runners` in its `package.json`.",
|
|
28338
|
+
"runner-layer-unnamed": "unnamed: the target leaves this layer's runner undeclared: `specController.runners` in its `package.json` is missing or not a block, leaves the layer out, or gives it a value that is neither a string nor `null`. A string there names the layer's runner.",
|
|
28339
|
+
"no-step-counted-as-its-runner-runs-it": "no step counted as its runner runs it.",
|
|
28340
|
+
"reconciler-step": "{step} \u2014 the reconciler: {whatItIs}.",
|
|
28341
|
+
"reconciler-reconciles": "this step runs the reconciliation this report is",
|
|
28342
|
+
"reconciler-records": "this step writes the step record the reconciliation reads",
|
|
28343
|
+
"step-non-check": "{entry} \u2014 a non-check: the target names it under `specController.notChecks`.",
|
|
28344
|
+
"step-accounting-heading": "Step accounting",
|
|
28345
|
+
"step-accounting-table-header": "| Workflow | Job | Steps read | Candidates | Runners | Reconciler | Non-checks | GitHub plumbing | Accounted for |",
|
|
28346
|
+
"step-accounting-total": "Total",
|
|
28347
|
+
"step-accounting-runners-label": "Runners:",
|
|
28348
|
+
"step-accounting-reconciler-label": "Reconciler:",
|
|
28349
|
+
"step-accounting-non-checks-label": "Non-checks:",
|
|
28350
|
+
"step-accounting-not-applied-workflows-read-label": "Not applied, because each {key} entry below names a workflow this run did not read (this run read {workflows}):",
|
|
28351
|
+
"step-accounting-not-applied-no-workflow-read-label": "Not applied, because each {key} entry below names a workflow this run did not read (this run read no workflow):",
|
|
28352
|
+
"step-accounting-plumbing-label": "GitHub plumbing:",
|
|
28353
|
+
"step-accounting-candidates-term": "A Candidate is a step read that is not a Runner, Reconciler, Non-check or GitHub plumbing step. It is read as a fitness function, and no list below names it.",
|
|
28354
|
+
"step-accounting-reconciler-term": "A Reconciler step runs this reconciliation or writes the step record it reads.",
|
|
28355
|
+
"step-accounting-non-checks-term": "A Non-check is a step the target names under `specController.notChecks`, unless it is a Reconciler step. A GitHub plumbing step named there is a Non-check too.",
|
|
28356
|
+
"step-accounting-plumbing-term": "A GitHub plumbing step is one that is neither a Reconciler nor a Non-check step and uses one of GitHub's own actions `actions/checkout`, `actions/cache`, `actions/upload-artifact`, `actions/download-artifact` or `actions/setup-*`. A step that runs a command, an install included, is never plumbing.",
|
|
28357
|
+
"step-accounting-accounted-for-term": "Accounted for is the sum of the five columns from Candidates to GitHub plumbing, in which each step read is counted once.",
|
|
28358
|
+
"out-of-balance-by-feature-heading": "Out-of-balance by feature",
|
|
28359
|
+
"scenario-claim-reconciliations-out-of-balance": "{outOfBalance} of {claimReconciliations} Claim Reconciliation(s) of scenarios out of balance",
|
|
28360
|
+
"grouped-by-feature": ", grouped by feature",
|
|
28361
|
+
"not-grouped-by-feature": "{ungrouped} out of balance, not grouped by feature (no feature file names them)",
|
|
28362
|
+
"phantom-claim-reconciliations": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario",
|
|
28363
|
+
"unnamed-claim-reconciliations": "{count} Claim Reconciliation(s) for evidence observations no one scenario can take",
|
|
28364
|
+
"and-joiner": " and ",
|
|
28365
|
+
"by-feature-table-header": "| Feature | Count | Out-of-balance `@SCN` ids |",
|
|
28366
|
+
"no-scn-code-scenarios": "{count} with no `@SCN` code",
|
|
28367
|
+
"codes-and-no-scn-code-scenarios": "{codes} and {count} with no `@SCN` code",
|
|
28368
|
+
"claim-reconciliations-heading": "Claim Reconciliations",
|
|
28369
|
+
"claim-reconciliation-tally": "{total} Claim Reconciliation(s): {balanced} balanced, {outOfBalance} out-of-balance.",
|
|
28370
|
+
"phantom-claim-tally": "{count} Claim Reconciliation(s) for cited scenario ids with no real scenario.",
|
|
28371
|
+
"unnamed-claim-tally": '{count} Claim Reconciliation(s) for evidence observations no one scenario can take, aggregated into "{unnamedClaimId}".',
|
|
28372
|
+
"excluded-scn-occurrences": "{count} @SCN ids seen in non-tag context, excluded: each is an @SCN 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",
|
|
28373
|
+
"untagged-scenarios": "{count} scenario(s) carry no @SCN code",
|
|
28374
|
+
"shared-scn-codes": "The corpus holds {scenarios} scenarios \u2014 {codes} @SCN code(s) carried by more than one scenario, each scenario named as `feature file : scenario title`:",
|
|
28375
|
+
"shared-scn-code-scenario": "this one is {feature} : {title}",
|
|
28376
|
+
"claim-column": "Claim",
|
|
28377
|
+
"verdict-column": "Verdict",
|
|
28378
|
+
"reconciling-items-column": "Reconciling items",
|
|
28379
|
+
"ci-steps-column": "CI steps",
|
|
28380
|
+
"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.\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 @SCN 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 an @SCN 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.",
|
|
28381
|
+
"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.",
|
|
28382
|
+
"pending-item": "pending",
|
|
28383
|
+
"pending-item-for": "pending: {qualityCheckKind}",
|
|
28384
|
+
"check-step-no-outcome": "{scnId}: the CI run's record carries no outcome for this check's step \u2014 so the check did not run.",
|
|
28385
|
+
"check-step-skipped": "{scnId}: the CI run's record says this check's step was skipped \u2014 so the check did not run.",
|
|
28386
|
+
"check-step-ended": "{scnId}: the CI run's record says this check's step ended `{outcome}` \u2014 so the check did not run.",
|
|
28387
|
+
"ambiguous-named-step": 'The step "{step}" is ambiguous \u2014 two or more step definitions match it, so the step never ran.',
|
|
28388
|
+
"ambiguous-unnamed-step": "A step is ambiguous \u2014 two or more step definitions match it, so the step never ran.",
|
|
28389
|
+
"outcome-satisfied": "Evidence Observation satisfies its Evidence Obligation",
|
|
28390
|
+
"outcome-missing": "Evidence Observation is missing",
|
|
28391
|
+
"outcome-failing": "Evidence Observation is failing",
|
|
28392
|
+
"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",
|
|
28393
|
+
"outcome-no-scn-code": "Evidence Obligation has no @SCN code for an Evidence Observation to link to",
|
|
28394
|
+
"outcome-duplicate-scn-code": "Evidence Obligation's @SCN code is carried by another Scenario",
|
|
28395
|
+
"outcome-cites-unknown-scenario": "Evidence Observation cites an unknown Scenario",
|
|
28396
|
+
"outcome-cites-no-scenario": "Evidence Observation cites no Scenario",
|
|
28397
|
+
"outcome-no-evidence-obligation": "Evidence Observation cites a Scenario with no matching Evidence Obligation",
|
|
28398
|
+
"outcome-broken": "Evidence Observation is broken because its proof never ran to a result",
|
|
28399
|
+
"outcome-both-missing": "Evidence Obligation and Evidence Observation are both missing \u2014 the Scenario is untagged and uncited",
|
|
28400
|
+
"observation-passed": "passed",
|
|
28401
|
+
"observation-failed": "failed",
|
|
28402
|
+
"unnamed-claim-group-counts": "{ran} ran, {passed} passed, {failed} failed",
|
|
28403
|
+
"unnamed-claim-failed-names": "(failed: {names})",
|
|
28404
|
+
"several-scn-codes-cited": "{count} scenario codes cite {codes} \u2014 a test cites exactly one scenario, so this one credits none of them.",
|
|
28405
|
+
"shared-scn-code": "{code} is carried by more than one scenario, so evidence citing it credits none of them."
|
|
28671
28406
|
};
|
|
28672
28407
|
}
|
|
28673
28408
|
});
|
|
@@ -31471,6 +31206,264 @@ var init_coreText = __esm({
|
|
|
31471
31206
|
}
|
|
31472
31207
|
});
|
|
31473
31208
|
|
|
31209
|
+
// ../core/dist/render/messages.js
|
|
31210
|
+
var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, CORE_MESSAGES;
|
|
31211
|
+
var init_messages4 = __esm({
|
|
31212
|
+
"../core/dist/render/messages.js"() {
|
|
31213
|
+
"use strict";
|
|
31214
|
+
init_qualityCheckFault();
|
|
31215
|
+
QUALITY_CHECK_FAULT_MESSAGES = {
|
|
31216
|
+
[QualityCheckFaultCode.EvidenceDivergesFromOutcome]: (fault) => `QualityCheckReconciliation invariant (@SCN-LDG-030): outcome "${fault.outcome}" has the ${fault.evidence === "evidence-obligation" ? "evidence obligation (debit)" : "evidence observation"} side ${fault.presenceForOutcome} for that outcome, but it was ${fault.presenceFound}.`
|
|
31217
|
+
};
|
|
31218
|
+
(function(CoreMessage2) {
|
|
31219
|
+
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
31220
|
+
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
31221
|
+
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 2] = "ScenarioCodeErrorsHeading";
|
|
31222
|
+
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
31223
|
+
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31224
|
+
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31225
|
+
CoreMessage2["ProofsNeverRan"] = "proofs-never-ran";
|
|
31226
|
+
CoreMessage2["ScenarioCodeErrorCount"] = "scenario-code-error-count";
|
|
31227
|
+
CoreMessage2["NoFeatureFileJudged"] = "no-feature-file-judged";
|
|
31228
|
+
CoreMessage2["CleanNoCodedScenario"] = "clean-no-coded-scenario";
|
|
31229
|
+
CoreMessage2["CleanEachFileOwnCode"] = "clean-each-file-own-code";
|
|
31230
|
+
CoreMessage2["CleanOthersNoFeatureCode"] = "clean-others-no-feature-code";
|
|
31231
|
+
CoreMessage2["UnnamedClaimCiSteps"] = "unnamed-claim-ci-steps";
|
|
31232
|
+
CoreMessage2["UnnamedClaimCiStepsNamed"] = "unnamed-claim-ci-steps-named";
|
|
31233
|
+
CoreMessage2["ScenarioCodeErrorsFraming"] = "scenario-code-errors-framing";
|
|
31234
|
+
CoreMessage2["SeveralScnCodesFraming"] = "several-scn-codes-framing";
|
|
31235
|
+
CoreMessage2["MisfiledAndSeveralScnCodesFraming"] = "misfiled-and-several-scn-codes-framing";
|
|
31236
|
+
CoreMessage2["DuplicateScnCodeNotListed"] = "duplicate-scn-code-not-listed";
|
|
31237
|
+
CoreMessage2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31238
|
+
CoreMessage2["ForeignScnCodeCarried"] = "foreign-scn-code-carried";
|
|
31239
|
+
CoreMessage2["ForeignScnCodeNoCarrier"] = "foreign-scn-code-no-carrier";
|
|
31240
|
+
CoreMessage2["NoFeatureCode"] = "no-feature-code";
|
|
31241
|
+
CoreMessage2["ScenarioSeveralScnCodes"] = "several-scn-codes";
|
|
31242
|
+
CoreMessage2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31243
|
+
CoreMessage2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31244
|
+
CoreMessage2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31245
|
+
CoreMessage2["ManifestKindList"] = "manifest-kind-list";
|
|
31246
|
+
CoreMessage2["ManifestKindObject"] = "manifest-kind-object";
|
|
31247
|
+
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
31248
|
+
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
31249
|
+
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
31250
|
+
CoreMessage2["ReportTitle"] = "report-title";
|
|
31251
|
+
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
31252
|
+
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
31253
|
+
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
31254
|
+
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
31255
|
+
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
31256
|
+
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
31257
|
+
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
31258
|
+
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
31259
|
+
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
31260
|
+
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
31261
|
+
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
31262
|
+
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
31263
|
+
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
31264
|
+
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
31265
|
+
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
31266
|
+
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
31267
|
+
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
31268
|
+
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
31269
|
+
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
31270
|
+
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
31271
|
+
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
31272
|
+
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
31273
|
+
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
31274
|
+
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
31275
|
+
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
31276
|
+
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
31277
|
+
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
31278
|
+
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
31279
|
+
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
31280
|
+
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
31281
|
+
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
31282
|
+
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
31283
|
+
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
31284
|
+
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
31285
|
+
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
31286
|
+
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
31287
|
+
CoreMessage2["ReconciliationTotalsHeading"] = "reconciliation-totals-heading";
|
|
31288
|
+
CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = "reconciliation-totals-claim-reconciliation-term";
|
|
31289
|
+
CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = "reconciliation-totals-reconciliation-line-term";
|
|
31290
|
+
CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = "reconciliation-totals-evidence-obligation-term";
|
|
31291
|
+
CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = "reconciliation-totals-evidence-observation-term";
|
|
31292
|
+
CoreMessage2["SubjectColumn"] = "subject-column";
|
|
31293
|
+
CoreMessage2["TotalColumn"] = "total-column";
|
|
31294
|
+
CoreMessage2["BalancedColumn"] = "balanced-column";
|
|
31295
|
+
CoreMessage2["OutOfBalanceColumn"] = "out-of-balance-column";
|
|
31296
|
+
CoreMessage2["DetailColumn"] = "detail-column";
|
|
31297
|
+
CoreMessage2["ClaimReconciliationSubject"] = "claim-reconciliation-subject";
|
|
31298
|
+
CoreMessage2["ReconciliationLineSubject"] = "reconciliation-line-subject";
|
|
31299
|
+
CoreMessage2["PendingTally"] = "pending-tally";
|
|
31300
|
+
CoreMessage2["EvidenceObservationsHeading"] = "evidence-observations-heading";
|
|
31301
|
+
CoreMessage2["EvidenceObservationsSum"] = "evidence-observations-sum";
|
|
31302
|
+
CoreMessage2["EvidenceObservationsTableHeader"] = "evidence-observations-table-header";
|
|
31303
|
+
CoreMessage2["FitnessRunner"] = "fitness-runner";
|
|
31304
|
+
CoreMessage2["FitnessCiStep"] = "fitness-ci-step";
|
|
31305
|
+
CoreMessage2["RunnerLayerNamesNone"] = "runner-layer-names-none";
|
|
31306
|
+
CoreMessage2["RunnerLayerUnnamed"] = "runner-layer-unnamed";
|
|
31307
|
+
CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = "no-step-counted-as-its-runner-runs-it";
|
|
31308
|
+
CoreMessage2["ReconcilerStep"] = "reconciler-step";
|
|
31309
|
+
CoreMessage2["ReconcilerReconciles"] = "reconciler-reconciles";
|
|
31310
|
+
CoreMessage2["ReconcilerRecords"] = "reconciler-records";
|
|
31311
|
+
CoreMessage2["StepNonCheck"] = "step-non-check";
|
|
31312
|
+
CoreMessage2["StepAccountingHeading"] = "step-accounting-heading";
|
|
31313
|
+
CoreMessage2["StepAccountingTableHeader"] = "step-accounting-table-header";
|
|
31314
|
+
CoreMessage2["StepAccountingTotal"] = "step-accounting-total";
|
|
31315
|
+
CoreMessage2["StepAccountingRunnersLabel"] = "step-accounting-runners-label";
|
|
31316
|
+
CoreMessage2["StepAccountingReconcilerLabel"] = "step-accounting-reconciler-label";
|
|
31317
|
+
CoreMessage2["StepAccountingNonChecksLabel"] = "step-accounting-non-checks-label";
|
|
31318
|
+
CoreMessage2["StepAccountingNotAppliedWorkflowsReadLabel"] = "step-accounting-not-applied-workflows-read-label";
|
|
31319
|
+
CoreMessage2["StepAccountingNotAppliedNoWorkflowReadLabel"] = "step-accounting-not-applied-no-workflow-read-label";
|
|
31320
|
+
CoreMessage2["StepAccountingPlumbingLabel"] = "step-accounting-plumbing-label";
|
|
31321
|
+
CoreMessage2["StepAccountingCandidatesTerm"] = "step-accounting-candidates-term";
|
|
31322
|
+
CoreMessage2["StepAccountingReconcilerTerm"] = "step-accounting-reconciler-term";
|
|
31323
|
+
CoreMessage2["StepAccountingNonChecksTerm"] = "step-accounting-non-checks-term";
|
|
31324
|
+
CoreMessage2["StepAccountingPlumbingTerm"] = "step-accounting-plumbing-term";
|
|
31325
|
+
CoreMessage2["StepAccountingAccountedForTerm"] = "step-accounting-accounted-for-term";
|
|
31326
|
+
CoreMessage2["OutOfBalanceByFeatureHeading"] = "out-of-balance-by-feature-heading";
|
|
31327
|
+
CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = "scenario-claim-reconciliations-out-of-balance";
|
|
31328
|
+
CoreMessage2["GroupedByFeature"] = "grouped-by-feature";
|
|
31329
|
+
CoreMessage2["NotGroupedByFeature"] = "not-grouped-by-feature";
|
|
31330
|
+
CoreMessage2["PhantomClaimReconciliations"] = "phantom-claim-reconciliations";
|
|
31331
|
+
CoreMessage2["UnnamedClaimReconciliations"] = "unnamed-claim-reconciliations";
|
|
31332
|
+
CoreMessage2["AndJoiner"] = "and-joiner";
|
|
31333
|
+
CoreMessage2["ByFeatureTableHeader"] = "by-feature-table-header";
|
|
31334
|
+
CoreMessage2["NoScnCodeScenarios"] = "no-scn-code-scenarios";
|
|
31335
|
+
CoreMessage2["CodesAndNoScnCodeScenarios"] = "codes-and-no-scn-code-scenarios";
|
|
31336
|
+
CoreMessage2["ClaimReconciliationsHeading"] = "claim-reconciliations-heading";
|
|
31337
|
+
CoreMessage2["ClaimReconciliationTally"] = "claim-reconciliation-tally";
|
|
31338
|
+
CoreMessage2["PhantomClaimTally"] = "phantom-claim-tally";
|
|
31339
|
+
CoreMessage2["UnnamedClaimTally"] = "unnamed-claim-tally";
|
|
31340
|
+
CoreMessage2["ExcludedScnOccurrences"] = "excluded-scn-occurrences";
|
|
31341
|
+
CoreMessage2["UntaggedScenarios"] = "untagged-scenarios";
|
|
31342
|
+
CoreMessage2["SharedScnCodes"] = "shared-scn-codes";
|
|
31343
|
+
CoreMessage2["SharedScnCodeScenario"] = "shared-scn-code-scenario";
|
|
31344
|
+
CoreMessage2["ClaimColumn"] = "claim-column";
|
|
31345
|
+
CoreMessage2["VerdictColumn"] = "verdict-column";
|
|
31346
|
+
CoreMessage2["ReconcilingItemsColumn"] = "reconciling-items-column";
|
|
31347
|
+
CoreMessage2["CiStepsColumn"] = "ci-steps-column";
|
|
31348
|
+
CoreMessage2["EvidenceCellKey"] = "evidence-cell-key";
|
|
31349
|
+
CoreMessage2["WatermelonItemKey"] = "watermelon-item-key";
|
|
31350
|
+
CoreMessage2["PendingItem"] = "pending-item";
|
|
31351
|
+
CoreMessage2["PendingItemFor"] = "pending-item-for";
|
|
31352
|
+
CoreMessage2["CheckStepNoOutcome"] = "check-step-no-outcome";
|
|
31353
|
+
CoreMessage2["CheckStepSkipped"] = "check-step-skipped";
|
|
31354
|
+
CoreMessage2["CheckStepEnded"] = "check-step-ended";
|
|
31355
|
+
CoreMessage2["AmbiguousNamedStep"] = "ambiguous-named-step";
|
|
31356
|
+
CoreMessage2["AmbiguousUnnamedStep"] = "ambiguous-unnamed-step";
|
|
31357
|
+
CoreMessage2["OutcomeSatisfied"] = "outcome-satisfied";
|
|
31358
|
+
CoreMessage2["OutcomeMissing"] = "outcome-missing";
|
|
31359
|
+
CoreMessage2["OutcomeFailing"] = "outcome-failing";
|
|
31360
|
+
CoreMessage2["OutcomeWatermelon"] = "outcome-watermelon";
|
|
31361
|
+
CoreMessage2["OutcomeNoScnCode"] = "outcome-no-scn-code";
|
|
31362
|
+
CoreMessage2["OutcomeDuplicateScnCode"] = "outcome-duplicate-scn-code";
|
|
31363
|
+
CoreMessage2["OutcomeCitesUnknownScenario"] = "outcome-cites-unknown-scenario";
|
|
31364
|
+
CoreMessage2["OutcomeCitesNoScenario"] = "outcome-cites-no-scenario";
|
|
31365
|
+
CoreMessage2["OutcomeNoEvidenceObligation"] = "outcome-no-evidence-obligation";
|
|
31366
|
+
CoreMessage2["OutcomeBroken"] = "outcome-broken";
|
|
31367
|
+
CoreMessage2["OutcomeBothMissing"] = "outcome-both-missing";
|
|
31368
|
+
CoreMessage2["ObservationPassed"] = "observation-passed";
|
|
31369
|
+
CoreMessage2["ObservationFailed"] = "observation-failed";
|
|
31370
|
+
CoreMessage2["UnnamedClaimGroupCounts"] = "unnamed-claim-group-counts";
|
|
31371
|
+
CoreMessage2["UnnamedClaimFailedNames"] = "unnamed-claim-failed-names";
|
|
31372
|
+
CoreMessage2["SeveralScnCodesCited"] = "several-scn-codes-cited";
|
|
31373
|
+
CoreMessage2["SharedScnCode"] = "shared-scn-code";
|
|
31374
|
+
})(CoreMessage || (CoreMessage = {}));
|
|
31375
|
+
(function(CoreError2) {
|
|
31376
|
+
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
31377
|
+
CoreError2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
31378
|
+
CoreError2["RunnerKeyNotALayer"] = "runner-key-not-a-layer";
|
|
31379
|
+
CoreError2["NotChecksEntryMatchesNoStep"] = "not-checks-entry-matches-no-step";
|
|
31380
|
+
CoreError2["NotChecksEntryNotAStepName"] = "not-checks-entry-not-a-step-name";
|
|
31381
|
+
CoreError2["DuplicateFeatureCode"] = "duplicate-feature-code";
|
|
31382
|
+
CoreError2["ForeignScnCode"] = "foreign-scn-code";
|
|
31383
|
+
CoreError2["NoFeatureCode"] = "no-feature-code";
|
|
31384
|
+
CoreError2["SeveralScnCodes"] = "several-scn-codes";
|
|
31385
|
+
})(CoreError || (CoreError = {}));
|
|
31386
|
+
CORE_MESSAGES = {
|
|
31387
|
+
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
31388
|
+
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
31389
|
+
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors"
|
|
31390
|
+
};
|
|
31391
|
+
}
|
|
31392
|
+
});
|
|
31393
|
+
|
|
31394
|
+
// ../core/dist/render/outcomeDescription.js
|
|
31395
|
+
var OUTCOME_DESCRIPTION, outcomeDescription;
|
|
31396
|
+
var init_outcomeDescription = __esm({
|
|
31397
|
+
"../core/dist/render/outcomeDescription.js"() {
|
|
31398
|
+
"use strict";
|
|
31399
|
+
init_coreText();
|
|
31400
|
+
init_messages4();
|
|
31401
|
+
OUTCOME_DESCRIPTION = {
|
|
31402
|
+
satisfied: CoreMessage.OutcomeSatisfied,
|
|
31403
|
+
missing: CoreMessage.OutcomeMissing,
|
|
31404
|
+
failing: CoreMessage.OutcomeFailing,
|
|
31405
|
+
watermelon: CoreMessage.OutcomeWatermelon,
|
|
31406
|
+
"no-scn-code": CoreMessage.OutcomeNoScnCode,
|
|
31407
|
+
"duplicate-scn-code": CoreMessage.OutcomeDuplicateScnCode,
|
|
31408
|
+
"cites-unknown-scenario": CoreMessage.OutcomeCitesUnknownScenario,
|
|
31409
|
+
"cites-no-scenario": CoreMessage.OutcomeCitesNoScenario,
|
|
31410
|
+
"no-evidence-obligation": CoreMessage.OutcomeNoEvidenceObligation,
|
|
31411
|
+
broken: CoreMessage.OutcomeBroken,
|
|
31412
|
+
"both-missing": CoreMessage.OutcomeBothMissing
|
|
31413
|
+
};
|
|
31414
|
+
outcomeDescription = (outcome) => coreMessage(OUTCOME_DESCRIPTION[outcome]);
|
|
31415
|
+
}
|
|
31416
|
+
});
|
|
31417
|
+
|
|
31418
|
+
// ../core/dist/render/cellSafe.js
|
|
31419
|
+
function cellSafe(text) {
|
|
31420
|
+
return text.replace(/\s+/g, " ").replace(/[\\|]/g, "\\$&").trim();
|
|
31421
|
+
}
|
|
31422
|
+
function cellSafeKeepingCodeSpans(text) {
|
|
31423
|
+
return text.replace(/\s+/g, " ").replace(SPAN_OR_ESCAPED, (found) => found.startsWith("`") ? found.replace(/\|/g, "\\|") : `\\${found}`);
|
|
31424
|
+
}
|
|
31425
|
+
var SPAN_OR_ESCAPED;
|
|
31426
|
+
var init_cellSafe = __esm({
|
|
31427
|
+
"../core/dist/render/cellSafe.js"() {
|
|
31428
|
+
"use strict";
|
|
31429
|
+
SPAN_OR_ESCAPED = /(`+)[\s\S]*?(?<!`)\1(?!`)|[\\|]/g;
|
|
31430
|
+
}
|
|
31431
|
+
});
|
|
31432
|
+
|
|
31433
|
+
// ../core/dist/render/codeSpan.js
|
|
31434
|
+
function codeSpan(written) {
|
|
31435
|
+
const text = spanHoldsAsWritten(written) ? written : JSON.stringify(written);
|
|
31436
|
+
const fence = "`".repeat(longestBacktickRun(text) + 1);
|
|
31437
|
+
const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
|
|
31438
|
+
return `${fence}${pad}${text}${pad}${fence}`;
|
|
31439
|
+
}
|
|
31440
|
+
function fencedBlockLines(info, text) {
|
|
31441
|
+
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
31442
|
+
return [`${fence}${info}`, ...text.split("\n"), fence];
|
|
31443
|
+
}
|
|
31444
|
+
var spanHoldsAsWritten, longestBacktickRun;
|
|
31445
|
+
var init_codeSpan = __esm({
|
|
31446
|
+
"../core/dist/render/codeSpan.js"() {
|
|
31447
|
+
"use strict";
|
|
31448
|
+
spanHoldsAsWritten = (text) => text !== "" && !(text.startsWith(" ") && text.endsWith(" ")) && !/[\n\r]/.test(text) && !(text.startsWith('"') && text.endsWith('"'));
|
|
31449
|
+
longestBacktickRun = (text) => Math.max(0, ...(text.match(/`+/g) ?? []).map((run3) => run3.length));
|
|
31450
|
+
}
|
|
31451
|
+
});
|
|
31452
|
+
|
|
31453
|
+
// ../core/dist/render/reportedName.js
|
|
31454
|
+
function reportedName(text) {
|
|
31455
|
+
const name = text.replace(/\s+/g, " ").trim();
|
|
31456
|
+
return ROW_SEPARATOR.test(name) ? codeSpan(name) : name;
|
|
31457
|
+
}
|
|
31458
|
+
var ROW_SEPARATOR;
|
|
31459
|
+
var init_reportedName = __esm({
|
|
31460
|
+
"../core/dist/render/reportedName.js"() {
|
|
31461
|
+
"use strict";
|
|
31462
|
+
init_codeSpan();
|
|
31463
|
+
ROW_SEPARATOR = /; |: | \/ |, /;
|
|
31464
|
+
}
|
|
31465
|
+
});
|
|
31466
|
+
|
|
31474
31467
|
// ../core/dist/render/heading.js
|
|
31475
31468
|
var markdownHeading;
|
|
31476
31469
|
var init_heading = __esm({
|
|
@@ -31659,7 +31652,7 @@ var init_scenarioCodeErrorsSection = __esm({
|
|
|
31659
31652
|
"",
|
|
31660
31653
|
...errors.map((error) => errorEntry(CODE_OF[error.kind], worded(error))),
|
|
31661
31654
|
"",
|
|
31662
|
-
coreMessage(CoreMessage.DuplicateScnCodeNotListed, { outcome:
|
|
31655
|
+
coreMessage(CoreMessage.DuplicateScnCodeNotListed, { outcome: coreMessage(CoreMessage.OutcomeDuplicateScnCode) }),
|
|
31663
31656
|
""
|
|
31664
31657
|
];
|
|
31665
31658
|
};
|
|
@@ -31809,12 +31802,14 @@ var init_errorsInTheInputs = __esm({
|
|
|
31809
31802
|
});
|
|
31810
31803
|
|
|
31811
31804
|
// ../core/dist/render/stepAccounting.js
|
|
31812
|
-
var rowOf, jobRowsOf, totalRowOf, STEP_ACCOUNTING_TERMS, tableOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
|
|
31805
|
+
var rowOf, jobRowsOf, totalRowOf, STEP_ACCOUNTING_TERMS, tableOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, NOT_CHECKS_KEY, notAppliedLeadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
|
|
31813
31806
|
var init_stepAccounting = __esm({
|
|
31814
31807
|
"../core/dist/render/stepAccounting.js"() {
|
|
31815
31808
|
"use strict";
|
|
31816
31809
|
init_uncitedFitnessFunctions();
|
|
31817
31810
|
init_messages4();
|
|
31811
|
+
init_coreText();
|
|
31812
|
+
init_heading();
|
|
31818
31813
|
init_cellSafe();
|
|
31819
31814
|
init_codeSpan();
|
|
31820
31815
|
rowOf = (cells) => `| ${cells.join(" | ")} |`;
|
|
@@ -31834,7 +31829,7 @@ var init_stepAccounting = __esm({
|
|
|
31834
31829
|
return [];
|
|
31835
31830
|
const { stepsRead, candidates, runners, reconciler, nonChecks, plumbing } = total;
|
|
31836
31831
|
const counts = rowOf([stepsRead, candidates, runners, reconciler, nonChecks, plumbing, accountedForOf(total)]);
|
|
31837
|
-
return [`| ${
|
|
31832
|
+
return [`| ${coreMessage(CoreMessage.StepAccountingTotal)} | ${counts}`];
|
|
31838
31833
|
};
|
|
31839
31834
|
STEP_ACCOUNTING_TERMS = [
|
|
31840
31835
|
CoreMessage.StepAccountingCandidatesTerm,
|
|
@@ -31847,9 +31842,9 @@ var init_stepAccounting = __esm({
|
|
|
31847
31842
|
if (accounting.byJob.length === 0)
|
|
31848
31843
|
return [];
|
|
31849
31844
|
return [
|
|
31850
|
-
...STEP_ACCOUNTING_TERMS.map((term) => `- ${
|
|
31845
|
+
...STEP_ACCOUNTING_TERMS.map((term) => `- ${coreMessage(term)}`),
|
|
31851
31846
|
"",
|
|
31852
|
-
|
|
31847
|
+
coreMessage(CoreMessage.StepAccountingTableHeader),
|
|
31853
31848
|
"| --- | --- | --- | --- | --- | --- | --- | --- | --- |",
|
|
31854
31849
|
...jobRowsOf(accounting),
|
|
31855
31850
|
...totalRowOf(accounting),
|
|
@@ -31857,22 +31852,22 @@ var init_stepAccounting = __esm({
|
|
|
31857
31852
|
];
|
|
31858
31853
|
};
|
|
31859
31854
|
WHAT_IT_IS = {
|
|
31860
|
-
reconciles:
|
|
31861
|
-
records:
|
|
31855
|
+
reconciles: CoreMessage.ReconcilerReconciles,
|
|
31856
|
+
records: CoreMessage.ReconcilerRecords
|
|
31862
31857
|
};
|
|
31863
31858
|
runnersListOf = ({ steps }) => {
|
|
31864
31859
|
const runners = steps.runners ?? [];
|
|
31865
31860
|
if (runners.length === 0)
|
|
31866
31861
|
return [];
|
|
31867
|
-
return [
|
|
31862
|
+
return [coreMessage(CoreMessage.StepAccountingRunnersLabel), ...runners.map((step) => `- ${codeSpan(step)}`), ""];
|
|
31868
31863
|
};
|
|
31869
31864
|
reconcilerListOf = ({ steps }) => {
|
|
31870
31865
|
const reconciler = steps.reconciler ?? [];
|
|
31871
31866
|
if (reconciler.length === 0)
|
|
31872
31867
|
return [];
|
|
31873
31868
|
return [
|
|
31874
|
-
|
|
31875
|
-
...reconciler.map(({ step, role }) => `- ${
|
|
31869
|
+
coreMessage(CoreMessage.StepAccountingReconcilerLabel),
|
|
31870
|
+
...reconciler.map(({ step, role }) => `- ${coreMessage(CoreMessage.ReconcilerStep, { step: codeSpan(step), whatItIs: coreMessage(WHAT_IT_IS[role]) })}`),
|
|
31876
31871
|
""
|
|
31877
31872
|
];
|
|
31878
31873
|
};
|
|
@@ -31881,39 +31876,47 @@ var init_stepAccounting = __esm({
|
|
|
31881
31876
|
if (nonChecks.length === 0)
|
|
31882
31877
|
return [];
|
|
31883
31878
|
return [
|
|
31884
|
-
|
|
31885
|
-
...nonChecks.map((step) => `- ${
|
|
31879
|
+
coreMessage(CoreMessage.StepAccountingNonChecksLabel),
|
|
31880
|
+
...nonChecks.map((step) => `- ${coreMessage(CoreMessage.StepNonCheck, { entry: codeSpan(step) })}`),
|
|
31886
31881
|
""
|
|
31887
31882
|
];
|
|
31888
31883
|
};
|
|
31889
31884
|
workflowsReadOf = ({ workflowsRead, byJob }) => {
|
|
31890
|
-
const
|
|
31891
|
-
if (
|
|
31892
|
-
return
|
|
31893
|
-
return
|
|
31885
|
+
const [first, ...rest] = new Set(workflowsRead ?? byJob.map(({ workflow }) => workflow));
|
|
31886
|
+
if (first === void 0)
|
|
31887
|
+
return { kind: "none" };
|
|
31888
|
+
return { kind: "read", files: [first, ...rest] };
|
|
31889
|
+
};
|
|
31890
|
+
NOT_CHECKS_KEY = "`specController.notChecks`";
|
|
31891
|
+
notAppliedLeadOf = (view) => {
|
|
31892
|
+
switch (view.kind) {
|
|
31893
|
+
case "none":
|
|
31894
|
+
return coreMessage(CoreMessage.StepAccountingNotAppliedNoWorkflowReadLabel, { key: NOT_CHECKS_KEY });
|
|
31895
|
+
case "read":
|
|
31896
|
+
return coreMessage(CoreMessage.StepAccountingNotAppliedWorkflowsReadLabel, {
|
|
31897
|
+
key: NOT_CHECKS_KEY,
|
|
31898
|
+
workflows: view.files.map((workflow) => codeSpan(workflow)).join(", ")
|
|
31899
|
+
});
|
|
31900
|
+
}
|
|
31894
31901
|
};
|
|
31895
31902
|
notAppliedListOf = (accounting) => {
|
|
31896
31903
|
const notApplied = accounting.nonChecksNamingAWorkflowNotRead;
|
|
31897
31904
|
if (notApplied === void 0)
|
|
31898
31905
|
return [];
|
|
31899
|
-
return [
|
|
31900
|
-
CORE_MESSAGES[CoreMessage.StepAccountingNotAppliedLabel]("`specController.notChecks`", workflowsReadOf(accounting)),
|
|
31901
|
-
...notApplied.map((entry) => `- ${codeSpan(entry)}`),
|
|
31902
|
-
""
|
|
31903
|
-
];
|
|
31906
|
+
return [notAppliedLeadOf(workflowsReadOf(accounting)), ...notApplied.map((entry) => `- ${codeSpan(entry)}`), ""];
|
|
31904
31907
|
};
|
|
31905
31908
|
plumbingListOf = ({ steps }) => {
|
|
31906
31909
|
const plumbing = steps.plumbing ?? [];
|
|
31907
31910
|
if (plumbing.length === 0)
|
|
31908
31911
|
return [];
|
|
31909
|
-
return [
|
|
31912
|
+
return [coreMessage(CoreMessage.StepAccountingPlumbingLabel), ...plumbing.map((step) => `- ${codeSpan(step)}`), ""];
|
|
31910
31913
|
};
|
|
31911
31914
|
stepAccountingSection = (report) => {
|
|
31912
31915
|
const accounting = report.summary.stepAccounting;
|
|
31913
31916
|
if (accounting === void 0)
|
|
31914
31917
|
return [];
|
|
31915
31918
|
return [
|
|
31916
|
-
|
|
31919
|
+
markdownHeading(3, coreMessage(CoreMessage.StepAccountingHeading)),
|
|
31917
31920
|
"",
|
|
31918
31921
|
...tableOf(accounting),
|
|
31919
31922
|
...runnersListOf(accounting),
|
|
@@ -31927,39 +31930,60 @@ var init_stepAccounting = __esm({
|
|
|
31927
31930
|
});
|
|
31928
31931
|
|
|
31929
31932
|
// ../core/dist/render/evidenceObservations.js
|
|
31930
|
-
var runnerCells, evidenceObservationsSection;
|
|
31933
|
+
var namedRunnerStepsCell, fitnessStepsCell, runnerCells, evidenceObservationsSection;
|
|
31931
31934
|
var init_evidenceObservations = __esm({
|
|
31932
31935
|
"../core/dist/render/evidenceObservations.js"() {
|
|
31933
31936
|
"use strict";
|
|
31937
|
+
init_ledger();
|
|
31934
31938
|
init_messages4();
|
|
31939
|
+
init_coreText();
|
|
31940
|
+
init_heading();
|
|
31935
31941
|
init_cellSafe();
|
|
31936
31942
|
init_reportedName();
|
|
31937
|
-
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
+
namedRunnerStepsCell = (steps) => {
|
|
31944
|
+
switch (steps.kind) {
|
|
31945
|
+
case "none":
|
|
31946
|
+
return coreMessage(CoreMessage.NoStepCountedAsItsRunnerRunsIt);
|
|
31947
|
+
case "some":
|
|
31948
|
+
return cellSafeKeepingCodeSpans(steps.ciSteps.map(reportedName).join(", "));
|
|
31943
31949
|
}
|
|
31950
|
+
};
|
|
31951
|
+
fitnessStepsCell = (steps) => {
|
|
31952
|
+
switch (steps.kind) {
|
|
31953
|
+
case "none":
|
|
31954
|
+
return "";
|
|
31955
|
+
case "some":
|
|
31956
|
+
return coreMessage(CoreMessage.FitnessCiStep, { steps: steps.ciSteps.length });
|
|
31957
|
+
}
|
|
31958
|
+
};
|
|
31959
|
+
runnerCells = (entry) => {
|
|
31960
|
+
const { qualityCheckKind, count, runner } = entry;
|
|
31961
|
+
if (typeof runner === "string")
|
|
31962
|
+
return [cellSafe(runner), namedRunnerStepsCell(runnerSteps(entry))];
|
|
31944
31963
|
if (qualityCheckKind === "fitness") {
|
|
31945
31964
|
if (count === 0)
|
|
31946
31965
|
return ["", ""];
|
|
31947
|
-
return [
|
|
31966
|
+
return [coreMessage(CoreMessage.FitnessRunner), fitnessStepsCell(runnerSteps(entry))];
|
|
31948
31967
|
}
|
|
31949
31968
|
if (runner === void 0)
|
|
31950
|
-
return [
|
|
31951
|
-
return [
|
|
31969
|
+
return [coreMessage(CoreMessage.RunnerLayerUnnamed), ""];
|
|
31970
|
+
return [coreMessage(CoreMessage.RunnerLayerNamesNone), ""];
|
|
31952
31971
|
};
|
|
31953
31972
|
evidenceObservationsSection = (report) => {
|
|
31954
31973
|
const observations = report.summary.evidenceObservations;
|
|
31955
31974
|
if (!observations)
|
|
31956
31975
|
return [];
|
|
31957
31976
|
const lines = [
|
|
31958
|
-
|
|
31977
|
+
markdownHeading(3, coreMessage(CoreMessage.EvidenceObservationsHeading)),
|
|
31959
31978
|
"",
|
|
31960
|
-
|
|
31979
|
+
coreMessage(CoreMessage.EvidenceObservationsSum, {
|
|
31980
|
+
total: observations.total,
|
|
31981
|
+
onScenario: observations.onScenario,
|
|
31982
|
+
onPhantomClaim: observations.onPhantomClaim,
|
|
31983
|
+
onUnnamedClaim: observations.onUnnamedClaim
|
|
31984
|
+
}),
|
|
31961
31985
|
"",
|
|
31962
|
-
|
|
31986
|
+
coreMessage(CoreMessage.EvidenceObservationsTableHeader),
|
|
31963
31987
|
"| --- | --- | --- | --- |"
|
|
31964
31988
|
];
|
|
31965
31989
|
for (const entry of observations.byQualityCheckKind) {
|
|
@@ -32008,21 +32032,21 @@ var init_evidenceGrid = __esm({
|
|
|
32008
32032
|
function noteWords(note) {
|
|
32009
32033
|
switch (note.kind) {
|
|
32010
32034
|
case "several-scn-codes":
|
|
32011
|
-
return
|
|
32035
|
+
return coreMessage(CoreMessage.SeveralScnCodesCited, { count: note.codes.length, codes: note.codes.join(", ") });
|
|
32012
32036
|
case "shared-scn-code":
|
|
32013
|
-
return
|
|
32037
|
+
return coreMessage(CoreMessage.SharedScnCode, { code: note.code });
|
|
32014
32038
|
case "ambiguous-step":
|
|
32015
|
-
return note.step === void 0 ?
|
|
32039
|
+
return note.step === void 0 ? coreMessage(CoreMessage.AmbiguousUnnamedStep) : coreMessage(CoreMessage.AmbiguousNamedStep, { step: note.step });
|
|
32016
32040
|
case "check-step-did-not-run":
|
|
32017
32041
|
return checkStepWords(note.code, note.outcome);
|
|
32018
32042
|
}
|
|
32019
32043
|
}
|
|
32020
32044
|
function checkStepWords(code, outcome) {
|
|
32021
32045
|
if (outcome === void 0)
|
|
32022
|
-
return
|
|
32046
|
+
return coreMessage(CoreMessage.CheckStepNoOutcome, { scnId: code });
|
|
32023
32047
|
if (outcome === "skipped")
|
|
32024
|
-
return
|
|
32025
|
-
return
|
|
32048
|
+
return coreMessage(CoreMessage.CheckStepSkipped, { scnId: code });
|
|
32049
|
+
return coreMessage(CoreMessage.CheckStepEnded, { scnId: code, outcome });
|
|
32026
32050
|
}
|
|
32027
32051
|
function remarkWordsOf({ message: message2, notes = [] }) {
|
|
32028
32052
|
const words2 = [...message2 === void 0 || message2.trim() === "" ? [] : [message2], ...notes.map(noteWords)];
|
|
@@ -32036,6 +32060,7 @@ var init_remarkWords = __esm({
|
|
|
32036
32060
|
"../core/dist/render/remarkWords.js"() {
|
|
32037
32061
|
"use strict";
|
|
32038
32062
|
init_messages4();
|
|
32063
|
+
init_coreText();
|
|
32039
32064
|
}
|
|
32040
32065
|
});
|
|
32041
32066
|
|
|
@@ -32098,7 +32123,7 @@ var init_unnamedClaimGroups = __esm({
|
|
|
32098
32123
|
|
|
32099
32124
|
// ../core/dist/render/markdown.js
|
|
32100
32125
|
function renderLine(line) {
|
|
32101
|
-
const sentence = `${
|
|
32126
|
+
const sentence = `${outcomeDescription(line.outcome)}${scenarioClauseOf(line)}`;
|
|
32102
32127
|
if (line.outcome === "both-missing" || line.outcome === "no-scn-code" || line.qualityCheckKind === void 0) {
|
|
32103
32128
|
return sentence;
|
|
32104
32129
|
}
|
|
@@ -32118,7 +32143,7 @@ function namedSuffix(o) {
|
|
|
32118
32143
|
return quotedSuffix((isFitnessObservation(o) ? [o.fitnessFunction] : [o.locator, o.testName]).map(reported));
|
|
32119
32144
|
}
|
|
32120
32145
|
function scenarioClauseOf({ scenario }) {
|
|
32121
|
-
return scenario === void 0 ? "" : ` \u2014 ${
|
|
32146
|
+
return scenario === void 0 ? "" : ` \u2014 ${coreMessage(CoreMessage.SharedScnCodeScenario, { feature: reportedName(scenario.feature), title: reportedName(scenario.title) })}`;
|
|
32122
32147
|
}
|
|
32123
32148
|
function brokenSuffix(o) {
|
|
32124
32149
|
return quotedSuffix([reported(o.locator), remarkHeadlineOf(o, reportedName)]);
|
|
@@ -32127,19 +32152,19 @@ function observationSuffix(o) {
|
|
|
32127
32152
|
return `${namedSuffix(o)}${resultOf(o)}`;
|
|
32128
32153
|
}
|
|
32129
32154
|
function resultOf(o) {
|
|
32130
|
-
return o.status === void 0 ? "" : ` \u2014 ${
|
|
32155
|
+
return o.status === void 0 ? "" : ` \u2014 ${coreMessage(RESULT_MESSAGE[o.status])}`;
|
|
32131
32156
|
}
|
|
32132
32157
|
function renderPendingItem(item) {
|
|
32133
|
-
return item.qualityCheckKind === void 0 ?
|
|
32158
|
+
return item.qualityCheckKind === void 0 ? coreMessage(CoreMessage.PendingItem) : coreMessage(CoreMessage.PendingItemFor, { qualityCheckKind: item.qualityCheckKind });
|
|
32134
32159
|
}
|
|
32135
32160
|
function renderFileGroup(group) {
|
|
32136
32161
|
const remarks = group.remarks.flatMap((remark) => remarkHeadlineOf(remark, reportedName) ?? []);
|
|
32137
|
-
const code = group.sharedScnCode === void 0 ? [] : [
|
|
32162
|
+
const code = group.sharedScnCode === void 0 ? [] : [coreMessage(CoreMessage.SharedScnCode, { code: group.sharedScnCode })];
|
|
32138
32163
|
const said = [.../* @__PURE__ */ new Set([...code, ...remarks])].filter((part) => part !== "").join(" / ");
|
|
32139
|
-
const counts =
|
|
32164
|
+
const counts = coreMessage(CoreMessage.UnnamedClaimGroupCounts, { ran: group.ran, passed: group.passed, failed: group.failed });
|
|
32140
32165
|
const names = group.failedNames.map(reportedName).filter((name) => name !== "");
|
|
32141
|
-
const failed = names.length === 0 ? "" : ` ${
|
|
32142
|
-
return `${group.qualityCheckKind}: ${
|
|
32166
|
+
const failed = names.length === 0 ? "" : ` ${coreMessage(CoreMessage.UnnamedClaimFailedNames, { names: names.join(" / ") })}`;
|
|
32167
|
+
return `${group.qualityCheckKind}: ${outcomeDescription("cites-no-scenario")}${quotedSuffix([reported(group.locator), said])} \u2014 ${counts}${failed}`;
|
|
32143
32168
|
}
|
|
32144
32169
|
function unnamedClaimCiStepsViewOf(names) {
|
|
32145
32170
|
const named = names.filter((name) => name !== "");
|
|
@@ -32157,8 +32182,8 @@ function renderUnnamedClaimGroup(group) {
|
|
|
32157
32182
|
if (!("names" in group))
|
|
32158
32183
|
return renderFileGroup(group);
|
|
32159
32184
|
const steps = unnamedClaimCiSteps(unnamedClaimCiStepsViewOf(group.names.map(reportedName)));
|
|
32160
|
-
const remark = group.sharedScnCode === void 0 ? "" : ` (${
|
|
32161
|
-
return `fitness: ${
|
|
32185
|
+
const remark = group.sharedScnCode === void 0 ? "" : ` (${coreMessage(CoreMessage.SharedScnCode, { code: group.sharedScnCode })})`;
|
|
32186
|
+
return `fitness: ${outcomeDescription("cites-no-scenario")}${remark} \u2014 ${steps}`;
|
|
32162
32187
|
}
|
|
32163
32188
|
function renderUnnamedClaimItems(lines) {
|
|
32164
32189
|
const broken = lines.filter((line) => line.outcome === "broken");
|
|
@@ -32178,12 +32203,12 @@ function brokenEvidenceNameWords(name) {
|
|
|
32178
32203
|
return name.kind === "named" ? name.locator : coreMessage(CoreMessage.BrokenEvidenceNotNamed);
|
|
32179
32204
|
}
|
|
32180
32205
|
function pendingTally(pending) {
|
|
32181
|
-
return pending > 0 ? ["",
|
|
32206
|
+
return pending > 0 ? ["", coreMessage(CoreMessage.PendingTally, { pending })] : [];
|
|
32182
32207
|
}
|
|
32183
32208
|
function byFeatureTableLines(groups) {
|
|
32184
32209
|
if (groups.length === 0)
|
|
32185
32210
|
return [];
|
|
32186
|
-
const lines = [
|
|
32211
|
+
const lines = [coreMessage(CoreMessage.ByFeatureTableHeader), "| --- | --- | --- |"];
|
|
32187
32212
|
for (const group of groups) {
|
|
32188
32213
|
const label = group.featureFile ? `${group.featureFile} (${group.feature})` : group.feature;
|
|
32189
32214
|
lines.push(`| ${label} | ${group.count} | ${idsCell(group)} |`);
|
|
@@ -32192,36 +32217,40 @@ function byFeatureTableLines(groups) {
|
|
|
32192
32217
|
return lines;
|
|
32193
32218
|
}
|
|
32194
32219
|
function idsCell(group) {
|
|
32195
|
-
const ids = group.claims.join(", ");
|
|
32196
32220
|
const noScnCodeCount = group.scenariosWithNoScnCode ?? 0;
|
|
32197
32221
|
if (noScnCodeCount === 0)
|
|
32198
|
-
return
|
|
32199
|
-
const
|
|
32200
|
-
|
|
32222
|
+
return codeList(group.claims);
|
|
32223
|
+
const view = outOfBalanceCodesOf(group);
|
|
32224
|
+
switch (view.kind) {
|
|
32225
|
+
case "none":
|
|
32226
|
+
return coreMessage(CoreMessage.NoScnCodeScenarios, { count: noScnCodeCount });
|
|
32227
|
+
case "some":
|
|
32228
|
+
return coreMessage(CoreMessage.CodesAndNoScnCodeScenarios, { codes: codeList(view.codes), count: noScnCodeCount });
|
|
32229
|
+
}
|
|
32201
32230
|
}
|
|
32202
32231
|
function ungroupedOutOfBalance(totals) {
|
|
32203
32232
|
return [
|
|
32204
|
-
...totals.phantomClaim > 0 ? [
|
|
32205
|
-
...totals.unnamedClaim > 0 ? [
|
|
32233
|
+
...totals.phantomClaim > 0 ? [coreMessage(CoreMessage.PhantomClaimReconciliations, { count: totals.phantomClaim })] : [],
|
|
32234
|
+
...totals.unnamedClaim > 0 ? [coreMessage(CoreMessage.UnnamedClaimReconciliations, { count: totals.unnamedClaim })] : []
|
|
32206
32235
|
];
|
|
32207
32236
|
}
|
|
32208
32237
|
function ungroupedTail(ungrouped) {
|
|
32209
|
-
return ungrouped.length > 0 ? `; ${
|
|
32238
|
+
return ungrouped.length > 0 ? `; ${coreMessage(CoreMessage.NotGroupedByFeature, { ungrouped: ungrouped.join(coreMessage(CoreMessage.AndJoiner)) })}` : "";
|
|
32210
32239
|
}
|
|
32211
32240
|
function evidenceKeyLines(columns) {
|
|
32212
32241
|
if (columns.length === 0)
|
|
32213
32242
|
return [];
|
|
32214
|
-
return [...
|
|
32243
|
+
return [...coreMessage(CoreMessage.EvidenceCellKey).split("\n"), coreMessage(CoreMessage.WatermelonItemKey), ""];
|
|
32215
32244
|
}
|
|
32216
32245
|
function ledgerTallyLines(totals) {
|
|
32217
32246
|
const lines = [
|
|
32218
|
-
`- ${
|
|
32247
|
+
`- ${coreMessage(CoreMessage.ClaimReconciliationTally, { total: totals.total, balanced: totals.balanced, outOfBalance: totals.outOfBalance })}`
|
|
32219
32248
|
];
|
|
32220
32249
|
if (totals.phantomClaim > 0) {
|
|
32221
|
-
lines.push(`- ${
|
|
32250
|
+
lines.push(`- ${coreMessage(CoreMessage.PhantomClaimTally, { count: totals.phantomClaim })}`);
|
|
32222
32251
|
}
|
|
32223
32252
|
if (totals.unnamedClaim > 0) {
|
|
32224
|
-
lines.push(`- ${
|
|
32253
|
+
lines.push(`- ${coreMessage(CoreMessage.UnnamedClaimTally, { count: totals.unnamedClaim, unnamedClaimId: UNNAMED_CLAIM_ID })}`);
|
|
32225
32254
|
}
|
|
32226
32255
|
return lines;
|
|
32227
32256
|
}
|
|
@@ -32229,18 +32258,18 @@ function sharedScnCodeLines(shared, scenarios) {
|
|
|
32229
32258
|
if (shared.length === 0)
|
|
32230
32259
|
return [];
|
|
32231
32260
|
return [
|
|
32232
|
-
`- ${
|
|
32261
|
+
`- ${coreMessage(CoreMessage.SharedScnCodes, { scenarios, codes: shared.length })}`,
|
|
32233
32262
|
...shared.map((code) => ` - ${code.scnId}: ${code.scenarios.map((s) => `${s.feature} : ${s.title}`).join("; ")}`)
|
|
32234
32263
|
];
|
|
32235
32264
|
}
|
|
32236
32265
|
function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
32237
32266
|
const withSteps2 = columns.length > 0;
|
|
32238
32267
|
const headers = [
|
|
32239
|
-
|
|
32268
|
+
coreMessage(CoreMessage.ClaimColumn),
|
|
32240
32269
|
...columns.map(columnHeader),
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
...withSteps2 ? [
|
|
32270
|
+
coreMessage(CoreMessage.VerdictColumn),
|
|
32271
|
+
coreMessage(CoreMessage.ReconcilingItemsColumn),
|
|
32272
|
+
...withSteps2 ? [coreMessage(CoreMessage.CiStepsColumn)] : []
|
|
32244
32273
|
];
|
|
32245
32274
|
const lines = [`| ${headers.join(" | ")} |`, `| ${headers.map(() => "---").join(" | ")} |`];
|
|
32246
32275
|
for (const s of claims) {
|
|
@@ -32254,7 +32283,7 @@ function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
|
32254
32283
|
function renderReport(report, inputNames, exitCodeOf2) {
|
|
32255
32284
|
return SECTIONS.flatMap((section) => section(report, inputNames, exitCodeOf2)).join("\n");
|
|
32256
32285
|
}
|
|
32257
|
-
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32286
|
+
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, outOfBalanceCodesOf, codeList, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32258
32287
|
var init_markdown = __esm({
|
|
32259
32288
|
"../core/dist/render/markdown.js"() {
|
|
32260
32289
|
"use strict";
|
|
@@ -32308,11 +32337,11 @@ var init_markdown = __esm({
|
|
|
32308
32337
|
};
|
|
32309
32338
|
summarySection = () => [markdownHeading(2, coreMessage(CoreMessage.SummaryHeading)), ""];
|
|
32310
32339
|
RECONCILIATION_TOTALS_COLUMNS = [
|
|
32311
|
-
|
|
32312
|
-
|
|
32313
|
-
|
|
32314
|
-
|
|
32315
|
-
|
|
32340
|
+
CoreMessage.SubjectColumn,
|
|
32341
|
+
CoreMessage.TotalColumn,
|
|
32342
|
+
CoreMessage.BalancedColumn,
|
|
32343
|
+
CoreMessage.OutOfBalanceColumn,
|
|
32344
|
+
CoreMessage.DetailColumn
|
|
32316
32345
|
];
|
|
32317
32346
|
RECONCILIATION_TOTALS_TERMS = [
|
|
32318
32347
|
CoreMessage.ReconciliationTotalsClaimReconciliationTerm,
|
|
@@ -32325,21 +32354,21 @@ var init_markdown = __esm({
|
|
|
32325
32354
|
const row = (cells) => `| ${cells.join(" | ")} |`;
|
|
32326
32355
|
const missingSplit = reconciliationLines.missingByQualityCheckKind.map(({ qualityCheckKind, count }) => `${count} ${qualityCheckKind}`).join(" + ");
|
|
32327
32356
|
const lines = [
|
|
32328
|
-
|
|
32357
|
+
markdownHeading(3, coreMessage(CoreMessage.ReconciliationTotalsHeading)),
|
|
32329
32358
|
"",
|
|
32330
|
-
...RECONCILIATION_TOTALS_TERMS.map((term) => `- ${
|
|
32359
|
+
...RECONCILIATION_TOTALS_TERMS.map((term) => `- ${coreMessage(term)}`),
|
|
32331
32360
|
"",
|
|
32332
|
-
row(RECONCILIATION_TOTALS_COLUMNS),
|
|
32361
|
+
row(RECONCILIATION_TOTALS_COLUMNS.map((column) => coreMessage(column))),
|
|
32333
32362
|
row(["---", "---", "---", "---", "---"]),
|
|
32334
32363
|
row([
|
|
32335
|
-
|
|
32364
|
+
coreMessage(CoreMessage.ClaimReconciliationSubject),
|
|
32336
32365
|
String(claimReconciliations.total),
|
|
32337
32366
|
String(claimReconciliations.balanced),
|
|
32338
32367
|
String(claimReconciliations.outOfBalance),
|
|
32339
32368
|
""
|
|
32340
32369
|
]),
|
|
32341
32370
|
row([
|
|
32342
|
-
|
|
32371
|
+
coreMessage(CoreMessage.ReconciliationLineSubject),
|
|
32343
32372
|
String(reconciliationLines.total),
|
|
32344
32373
|
String(reconciliationLines.byOutcome.satisfied),
|
|
32345
32374
|
String(reconciliationLines.outOfBalance),
|
|
@@ -32348,7 +32377,7 @@ var init_markdown = __esm({
|
|
|
32348
32377
|
];
|
|
32349
32378
|
for (const outcome of OUT_OF_BALANCE_OUTCOMES) {
|
|
32350
32379
|
const detail = outcome === "missing" ? missingSplit : "";
|
|
32351
|
-
lines.push(row([
|
|
32380
|
+
lines.push(row([outcomeDescription(outcome), "", "", String(reconciliationLines.byOutcome[outcome]), detail]));
|
|
32352
32381
|
}
|
|
32353
32382
|
lines.push(...pendingTally(pending));
|
|
32354
32383
|
lines.push("");
|
|
@@ -32361,15 +32390,22 @@ var init_markdown = __esm({
|
|
|
32361
32390
|
const ungrouped = ungroupedOutOfBalance(report.summary.reconciliationTotals.claimReconciliations);
|
|
32362
32391
|
if (groups.length === 0 && ungrouped.length === 0)
|
|
32363
32392
|
return [];
|
|
32364
|
-
const head =
|
|
32393
|
+
const head = coreMessage(CoreMessage.ScenarioClaimReconciliationsOutOfBalance, { outOfBalance: outOfBalanceCountOf(scenarios), claimReconciliations: scenarios.length });
|
|
32365
32394
|
return [
|
|
32366
|
-
|
|
32395
|
+
markdownHeading(3, coreMessage(CoreMessage.OutOfBalanceByFeatureHeading)),
|
|
32367
32396
|
"",
|
|
32368
|
-
`${head}${groups.length > 0 ?
|
|
32397
|
+
`${head}${groups.length > 0 ? coreMessage(CoreMessage.GroupedByFeature) : ""}${ungroupedTail(ungrouped)}.`,
|
|
32369
32398
|
"",
|
|
32370
32399
|
...byFeatureTableLines(groups)
|
|
32371
32400
|
];
|
|
32372
32401
|
};
|
|
32402
|
+
outOfBalanceCodesOf = ({ claims }) => {
|
|
32403
|
+
const [first, ...rest] = claims;
|
|
32404
|
+
if (first === void 0)
|
|
32405
|
+
return { kind: "none" };
|
|
32406
|
+
return { kind: "some", codes: [first, ...rest] };
|
|
32407
|
+
};
|
|
32408
|
+
codeList = (codes) => codes.join(", ");
|
|
32373
32409
|
ledgerSection = (report) => {
|
|
32374
32410
|
const scenarioRows = report.claimReconciliations.filter(isScenario);
|
|
32375
32411
|
const phantomClaimRows2 = report.claimReconciliations.filter(isPhantomClaim);
|
|
@@ -32377,7 +32413,7 @@ var init_markdown = __esm({
|
|
|
32377
32413
|
const claims = [...scenarioRows, ...phantomClaimRows2, ...unnamedClaimRows2];
|
|
32378
32414
|
const columns = report.summary.evidenceObservations !== void 0 ? evidenceColumns(claims) : [];
|
|
32379
32415
|
return [
|
|
32380
|
-
|
|
32416
|
+
markdownHeading(2, coreMessage(CoreMessage.ClaimReconciliationsHeading)),
|
|
32381
32417
|
"",
|
|
32382
32418
|
...ledgerTallyLines(report.summary.reconciliationTotals.claimReconciliations),
|
|
32383
32419
|
"",
|
|
@@ -32390,10 +32426,10 @@ var init_markdown = __esm({
|
|
|
32390
32426
|
const codes = report.summary.scenarioCodes;
|
|
32391
32427
|
if (codes?.excludedOccurrences === void 0)
|
|
32392
32428
|
return [];
|
|
32393
|
-
const lines = [`- ${
|
|
32429
|
+
const lines = [`- ${coreMessage(CoreMessage.ExcludedScnOccurrences, { count: codes.excludedOccurrences })}`];
|
|
32394
32430
|
const untagged = (codes.untaggedScenarios ?? []).length;
|
|
32395
32431
|
if (untagged > 0)
|
|
32396
|
-
lines.push(`- ${
|
|
32432
|
+
lines.push(`- ${coreMessage(CoreMessage.UntaggedScenarios, { count: untagged })}`);
|
|
32397
32433
|
lines.push(...sharedScnCodeLines(codes.sharedScnCodes ?? [], report.claimReconciliations.filter(isScenario).length));
|
|
32398
32434
|
return [...lines, ""];
|
|
32399
32435
|
};
|