spec-controller 0.1.223 → 0.1.225
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 +328 -300
- package/dist/spec-reconciliation.schema.json +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -12327,7 +12327,7 @@ function ciStepsJoined(observations, ledger, runners, layers, stepsInOrder) {
|
|
|
12327
12327
|
function summaryOf(ledger, withEvidenceObservations) {
|
|
12328
12328
|
const tally = ledgerTally(ledger);
|
|
12329
12329
|
return {
|
|
12330
|
-
|
|
12330
|
+
reconciliationTotals: {
|
|
12331
12331
|
claimReconciliations: tally.claimReconciliations,
|
|
12332
12332
|
reconciliationLines: tally.reconciliationLines,
|
|
12333
12333
|
pending: tally.pending
|
|
@@ -28245,146 +28245,109 @@ var init_messages4 = __esm({
|
|
|
28245
28245
|
[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}.`
|
|
28246
28246
|
};
|
|
28247
28247
|
(function(CoreMessage2) {
|
|
28248
|
-
CoreMessage2[CoreMessage2["
|
|
28249
|
-
CoreMessage2[CoreMessage2["
|
|
28250
|
-
CoreMessage2[CoreMessage2["
|
|
28251
|
-
CoreMessage2[CoreMessage2["
|
|
28252
|
-
CoreMessage2[CoreMessage2["
|
|
28253
|
-
CoreMessage2[CoreMessage2["
|
|
28254
|
-
CoreMessage2[CoreMessage2["
|
|
28255
|
-
CoreMessage2[CoreMessage2["
|
|
28256
|
-
CoreMessage2[CoreMessage2["
|
|
28257
|
-
CoreMessage2[CoreMessage2["
|
|
28258
|
-
CoreMessage2[CoreMessage2["
|
|
28259
|
-
CoreMessage2[CoreMessage2["
|
|
28260
|
-
CoreMessage2[CoreMessage2["
|
|
28261
|
-
CoreMessage2[CoreMessage2["
|
|
28262
|
-
CoreMessage2[CoreMessage2["
|
|
28263
|
-
CoreMessage2[CoreMessage2["
|
|
28264
|
-
CoreMessage2[CoreMessage2["
|
|
28265
|
-
CoreMessage2[CoreMessage2["
|
|
28266
|
-
CoreMessage2[CoreMessage2["
|
|
28267
|
-
CoreMessage2[CoreMessage2["
|
|
28268
|
-
CoreMessage2[CoreMessage2["
|
|
28269
|
-
CoreMessage2[CoreMessage2["
|
|
28270
|
-
CoreMessage2[CoreMessage2["
|
|
28271
|
-
CoreMessage2[CoreMessage2["
|
|
28272
|
-
CoreMessage2[CoreMessage2["
|
|
28273
|
-
CoreMessage2[CoreMessage2["
|
|
28274
|
-
CoreMessage2[CoreMessage2["
|
|
28275
|
-
CoreMessage2[CoreMessage2["
|
|
28276
|
-
CoreMessage2[CoreMessage2["
|
|
28277
|
-
CoreMessage2[CoreMessage2["
|
|
28278
|
-
CoreMessage2[CoreMessage2["
|
|
28279
|
-
CoreMessage2[CoreMessage2["
|
|
28280
|
-
CoreMessage2[CoreMessage2["
|
|
28281
|
-
CoreMessage2[CoreMessage2["
|
|
28282
|
-
CoreMessage2[CoreMessage2["
|
|
28283
|
-
CoreMessage2[CoreMessage2["
|
|
28284
|
-
CoreMessage2[CoreMessage2["
|
|
28285
|
-
CoreMessage2[CoreMessage2["
|
|
28286
|
-
CoreMessage2[CoreMessage2["
|
|
28287
|
-
CoreMessage2[CoreMessage2["
|
|
28288
|
-
CoreMessage2[CoreMessage2["
|
|
28289
|
-
CoreMessage2[CoreMessage2["
|
|
28290
|
-
CoreMessage2[CoreMessage2["
|
|
28291
|
-
CoreMessage2[CoreMessage2["
|
|
28292
|
-
CoreMessage2[CoreMessage2["
|
|
28293
|
-
CoreMessage2[CoreMessage2["
|
|
28294
|
-
CoreMessage2[CoreMessage2["
|
|
28295
|
-
CoreMessage2[CoreMessage2["
|
|
28296
|
-
CoreMessage2[CoreMessage2["
|
|
28297
|
-
CoreMessage2[CoreMessage2["
|
|
28298
|
-
CoreMessage2[CoreMessage2["
|
|
28299
|
-
CoreMessage2[CoreMessage2["
|
|
28300
|
-
CoreMessage2[CoreMessage2["
|
|
28301
|
-
CoreMessage2[CoreMessage2["
|
|
28302
|
-
CoreMessage2[CoreMessage2["
|
|
28303
|
-
CoreMessage2[CoreMessage2["
|
|
28304
|
-
CoreMessage2[CoreMessage2["
|
|
28305
|
-
CoreMessage2[CoreMessage2["
|
|
28306
|
-
CoreMessage2[CoreMessage2["
|
|
28307
|
-
CoreMessage2[CoreMessage2["
|
|
28308
|
-
CoreMessage2[CoreMessage2["
|
|
28309
|
-
CoreMessage2[CoreMessage2["
|
|
28310
|
-
CoreMessage2[CoreMessage2["
|
|
28311
|
-
CoreMessage2[CoreMessage2["
|
|
28312
|
-
CoreMessage2[CoreMessage2["
|
|
28313
|
-
CoreMessage2[CoreMessage2["
|
|
28314
|
-
CoreMessage2[CoreMessage2["
|
|
28315
|
-
CoreMessage2[CoreMessage2["
|
|
28316
|
-
CoreMessage2[CoreMessage2["
|
|
28317
|
-
CoreMessage2[CoreMessage2["
|
|
28318
|
-
CoreMessage2[CoreMessage2["
|
|
28319
|
-
CoreMessage2[CoreMessage2["
|
|
28320
|
-
CoreMessage2[CoreMessage2["
|
|
28321
|
-
CoreMessage2[CoreMessage2["
|
|
28322
|
-
CoreMessage2[CoreMessage2["
|
|
28323
|
-
CoreMessage2[CoreMessage2["
|
|
28324
|
-
CoreMessage2[CoreMessage2["
|
|
28325
|
-
CoreMessage2[CoreMessage2["
|
|
28326
|
-
CoreMessage2[CoreMessage2["
|
|
28327
|
-
CoreMessage2[CoreMessage2["
|
|
28328
|
-
CoreMessage2[CoreMessage2["
|
|
28329
|
-
CoreMessage2[CoreMessage2["
|
|
28330
|
-
CoreMessage2[CoreMessage2["
|
|
28331
|
-
CoreMessage2[CoreMessage2["
|
|
28332
|
-
CoreMessage2[CoreMessage2["
|
|
28333
|
-
CoreMessage2[CoreMessage2["
|
|
28334
|
-
CoreMessage2[CoreMessage2["
|
|
28335
|
-
CoreMessage2[CoreMessage2["
|
|
28336
|
-
CoreMessage2[CoreMessage2["
|
|
28337
|
-
CoreMessage2[CoreMessage2["
|
|
28338
|
-
CoreMessage2[CoreMessage2["
|
|
28339
|
-
CoreMessage2[CoreMessage2["
|
|
28340
|
-
CoreMessage2[CoreMessage2["
|
|
28341
|
-
CoreMessage2[CoreMessage2["
|
|
28342
|
-
CoreMessage2[CoreMessage2["
|
|
28343
|
-
CoreMessage2[CoreMessage2["
|
|
28344
|
-
CoreMessage2[CoreMessage2["
|
|
28345
|
-
CoreMessage2[CoreMessage2["
|
|
28346
|
-
CoreMessage2[CoreMessage2["
|
|
28347
|
-
CoreMessage2[CoreMessage2["
|
|
28348
|
-
CoreMessage2[CoreMessage2["
|
|
28349
|
-
CoreMessage2[CoreMessage2["
|
|
28350
|
-
CoreMessage2[CoreMessage2["
|
|
28351
|
-
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 103] = "PhantomClaimTally";
|
|
28352
|
-
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 104] = "UnnamedClaimTally";
|
|
28353
|
-
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 105] = "ExcludedScnOccurrences";
|
|
28354
|
-
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 106] = "UntaggedScenarios";
|
|
28355
|
-
CoreMessage2[CoreMessage2["SharedScnCodes"] = 107] = "SharedScnCodes";
|
|
28356
|
-
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 108] = "SharedScnCodeScenario";
|
|
28357
|
-
CoreMessage2[CoreMessage2["ClaimColumn"] = 109] = "ClaimColumn";
|
|
28358
|
-
CoreMessage2[CoreMessage2["VerdictColumn"] = 110] = "VerdictColumn";
|
|
28359
|
-
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 111] = "ReconcilingItemsColumn";
|
|
28360
|
-
CoreMessage2[CoreMessage2["CiStepsColumn"] = 112] = "CiStepsColumn";
|
|
28361
|
-
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 113] = "EvidenceCellKey";
|
|
28362
|
-
CoreMessage2[CoreMessage2["WatermelonItemKey"] = 114] = "WatermelonItemKey";
|
|
28363
|
-
CoreMessage2[CoreMessage2["PendingItem"] = 115] = "PendingItem";
|
|
28364
|
-
CoreMessage2[CoreMessage2["PendingItemFor"] = 116] = "PendingItemFor";
|
|
28365
|
-
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 117] = "CheckStepNoOutcome";
|
|
28366
|
-
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 118] = "CheckStepSkipped";
|
|
28367
|
-
CoreMessage2[CoreMessage2["CheckStepEnded"] = 119] = "CheckStepEnded";
|
|
28368
|
-
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 120] = "AmbiguousNamedStep";
|
|
28369
|
-
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 121] = "AmbiguousUnnamedStep";
|
|
28370
|
-
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 122] = "OutcomeSatisfied";
|
|
28371
|
-
CoreMessage2[CoreMessage2["OutcomeMissing"] = 123] = "OutcomeMissing";
|
|
28372
|
-
CoreMessage2[CoreMessage2["OutcomeFailing"] = 124] = "OutcomeFailing";
|
|
28373
|
-
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 125] = "OutcomeWatermelon";
|
|
28374
|
-
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 126] = "OutcomeNoScnCode";
|
|
28375
|
-
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 127] = "OutcomeDuplicateScnCode";
|
|
28376
|
-
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 128] = "OutcomeCitesUnknownScenario";
|
|
28377
|
-
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 129] = "OutcomeCitesNoScenario";
|
|
28378
|
-
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 130] = "OutcomeNoEvidenceObligation";
|
|
28379
|
-
CoreMessage2[CoreMessage2["OutcomeBroken"] = 131] = "OutcomeBroken";
|
|
28380
|
-
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 132] = "OutcomeBothMissing";
|
|
28381
|
-
CoreMessage2[CoreMessage2["ObservationPassed"] = 133] = "ObservationPassed";
|
|
28382
|
-
CoreMessage2[CoreMessage2["ObservationFailed"] = 134] = "ObservationFailed";
|
|
28383
|
-
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 135] = "UnnamedClaimGroupCounts";
|
|
28384
|
-
CoreMessage2[CoreMessage2["UnnamedClaimCiSteps"] = 136] = "UnnamedClaimCiSteps";
|
|
28385
|
-
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 137] = "UnnamedClaimFailedNames";
|
|
28386
|
-
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 138] = "SeveralScnCodes";
|
|
28387
|
-
CoreMessage2[CoreMessage2["SharedScnCode"] = 139] = "SharedScnCode";
|
|
28248
|
+
CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
|
|
28249
|
+
CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
|
|
28250
|
+
CoreMessage2[CoreMessage2["OneProofNeverRan"] = 2] = "OneProofNeverRan";
|
|
28251
|
+
CoreMessage2[CoreMessage2["ProofsNeverRan"] = 3] = "ProofsNeverRan";
|
|
28252
|
+
CoreMessage2[CoreMessage2["ScenarioCodeErrorsHeading"] = 4] = "ScenarioCodeErrorsHeading";
|
|
28253
|
+
CoreMessage2[CoreMessage2["FeatureFileNoun"] = 5] = "FeatureFileNoun";
|
|
28254
|
+
CoreMessage2[CoreMessage2["FeatureCodeNoun"] = 6] = "FeatureCodeNoun";
|
|
28255
|
+
CoreMessage2[CoreMessage2["NoFeatureFileJudged"] = 7] = "NoFeatureFileJudged";
|
|
28256
|
+
CoreMessage2[CoreMessage2["ScenarioCodesCleanOver"] = 8] = "ScenarioCodesCleanOver";
|
|
28257
|
+
CoreMessage2[CoreMessage2["CleanNoCodedScenario"] = 9] = "CleanNoCodedScenario";
|
|
28258
|
+
CoreMessage2[CoreMessage2["CleanEachFileOwnCode"] = 10] = "CleanEachFileOwnCode";
|
|
28259
|
+
CoreMessage2[CoreMessage2["CleanOthersNoFeatureCode"] = 11] = "CleanOthersNoFeatureCode";
|
|
28260
|
+
CoreMessage2[CoreMessage2["ItPronoun"] = 12] = "ItPronoun";
|
|
28261
|
+
CoreMessage2[CoreMessage2["ThemPronoun"] = 13] = "ThemPronoun";
|
|
28262
|
+
CoreMessage2[CoreMessage2["HoldsVerb"] = 14] = "HoldsVerb";
|
|
28263
|
+
CoreMessage2[CoreMessage2["HoldVerb"] = 15] = "HoldVerb";
|
|
28264
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsHeading"] = 16] = "ReconciliationTotalsHeading";
|
|
28265
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = 17] = "ReconciliationTotalsClaimReconciliationTerm";
|
|
28266
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = 18] = "ReconciliationTotalsReconciliationLineTerm";
|
|
28267
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = 19] = "ReconciliationTotalsEvidenceObligationTerm";
|
|
28268
|
+
CoreMessage2[CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = 20] = "ReconciliationTotalsEvidenceObservationTerm";
|
|
28269
|
+
CoreMessage2[CoreMessage2["SubjectColumn"] = 21] = "SubjectColumn";
|
|
28270
|
+
CoreMessage2[CoreMessage2["TotalColumn"] = 22] = "TotalColumn";
|
|
28271
|
+
CoreMessage2[CoreMessage2["BalancedColumn"] = 23] = "BalancedColumn";
|
|
28272
|
+
CoreMessage2[CoreMessage2["OutOfBalanceColumn"] = 24] = "OutOfBalanceColumn";
|
|
28273
|
+
CoreMessage2[CoreMessage2["DetailColumn"] = 25] = "DetailColumn";
|
|
28274
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationSubject"] = 26] = "ClaimReconciliationSubject";
|
|
28275
|
+
CoreMessage2[CoreMessage2["ReconciliationLineSubject"] = 27] = "ReconciliationLineSubject";
|
|
28276
|
+
CoreMessage2[CoreMessage2["PendingTally"] = 28] = "PendingTally";
|
|
28277
|
+
CoreMessage2[CoreMessage2["EvidenceObservationsHeading"] = 29] = "EvidenceObservationsHeading";
|
|
28278
|
+
CoreMessage2[CoreMessage2["EvidenceObservationsSum"] = 30] = "EvidenceObservationsSum";
|
|
28279
|
+
CoreMessage2[CoreMessage2["EvidenceObservationsTableHeader"] = 31] = "EvidenceObservationsTableHeader";
|
|
28280
|
+
CoreMessage2[CoreMessage2["FitnessRunner"] = 32] = "FitnessRunner";
|
|
28281
|
+
CoreMessage2[CoreMessage2["FitnessCiStep"] = 33] = "FitnessCiStep";
|
|
28282
|
+
CoreMessage2[CoreMessage2["RunnerLayerNamesNone"] = 34] = "RunnerLayerNamesNone";
|
|
28283
|
+
CoreMessage2[CoreMessage2["RunnerLayerUnnamed"] = 35] = "RunnerLayerUnnamed";
|
|
28284
|
+
CoreMessage2[CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = 36] = "NoStepCountedAsItsRunnerRunsIt";
|
|
28285
|
+
CoreMessage2[CoreMessage2["ReconcilerStep"] = 37] = "ReconcilerStep";
|
|
28286
|
+
CoreMessage2[CoreMessage2["ReconcilerReconciles"] = 38] = "ReconcilerReconciles";
|
|
28287
|
+
CoreMessage2[CoreMessage2["ReconcilerRecords"] = 39] = "ReconcilerRecords";
|
|
28288
|
+
CoreMessage2[CoreMessage2["StepNonCheck"] = 40] = "StepNonCheck";
|
|
28289
|
+
CoreMessage2[CoreMessage2["StepAccountingHeading"] = 41] = "StepAccountingHeading";
|
|
28290
|
+
CoreMessage2[CoreMessage2["StepAccountingTableHeader"] = 42] = "StepAccountingTableHeader";
|
|
28291
|
+
CoreMessage2[CoreMessage2["StepAccountingTotal"] = 43] = "StepAccountingTotal";
|
|
28292
|
+
CoreMessage2[CoreMessage2["StepAccountingRunnersLabel"] = 44] = "StepAccountingRunnersLabel";
|
|
28293
|
+
CoreMessage2[CoreMessage2["StepAccountingReconcilerLabel"] = 45] = "StepAccountingReconcilerLabel";
|
|
28294
|
+
CoreMessage2[CoreMessage2["StepAccountingNonChecksLabel"] = 46] = "StepAccountingNonChecksLabel";
|
|
28295
|
+
CoreMessage2[CoreMessage2["StepAccountingNotAppliedLabel"] = 47] = "StepAccountingNotAppliedLabel";
|
|
28296
|
+
CoreMessage2[CoreMessage2["StepAccountingNoWorkflowRead"] = 48] = "StepAccountingNoWorkflowRead";
|
|
28297
|
+
CoreMessage2[CoreMessage2["StepAccountingPlumbingLabel"] = 49] = "StepAccountingPlumbingLabel";
|
|
28298
|
+
CoreMessage2[CoreMessage2["StepAccountingCandidatesTerm"] = 50] = "StepAccountingCandidatesTerm";
|
|
28299
|
+
CoreMessage2[CoreMessage2["StepAccountingReconcilerTerm"] = 51] = "StepAccountingReconcilerTerm";
|
|
28300
|
+
CoreMessage2[CoreMessage2["StepAccountingNonChecksTerm"] = 52] = "StepAccountingNonChecksTerm";
|
|
28301
|
+
CoreMessage2[CoreMessage2["StepAccountingPlumbingTerm"] = 53] = "StepAccountingPlumbingTerm";
|
|
28302
|
+
CoreMessage2[CoreMessage2["StepAccountingAccountedForTerm"] = 54] = "StepAccountingAccountedForTerm";
|
|
28303
|
+
CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 55] = "OutOfBalanceByFeatureHeading";
|
|
28304
|
+
CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 56] = "ScenarioClaimReconciliationsOutOfBalance";
|
|
28305
|
+
CoreMessage2[CoreMessage2["GroupedByFeature"] = 57] = "GroupedByFeature";
|
|
28306
|
+
CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 58] = "NotGroupedByFeature";
|
|
28307
|
+
CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 59] = "PhantomClaimReconciliations";
|
|
28308
|
+
CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 60] = "UnnamedClaimReconciliations";
|
|
28309
|
+
CoreMessage2[CoreMessage2["AndJoiner"] = 61] = "AndJoiner";
|
|
28310
|
+
CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 62] = "ByFeatureTableHeader";
|
|
28311
|
+
CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 63] = "NoScnCodeScenarios";
|
|
28312
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 64] = "ClaimReconciliationsHeading";
|
|
28313
|
+
CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 65] = "ClaimReconciliationTally";
|
|
28314
|
+
CoreMessage2[CoreMessage2["PhantomClaimTally"] = 66] = "PhantomClaimTally";
|
|
28315
|
+
CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 67] = "UnnamedClaimTally";
|
|
28316
|
+
CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 68] = "ExcludedScnOccurrences";
|
|
28317
|
+
CoreMessage2[CoreMessage2["UntaggedScenarios"] = 69] = "UntaggedScenarios";
|
|
28318
|
+
CoreMessage2[CoreMessage2["SharedScnCodes"] = 70] = "SharedScnCodes";
|
|
28319
|
+
CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 71] = "SharedScnCodeScenario";
|
|
28320
|
+
CoreMessage2[CoreMessage2["ClaimColumn"] = 72] = "ClaimColumn";
|
|
28321
|
+
CoreMessage2[CoreMessage2["VerdictColumn"] = 73] = "VerdictColumn";
|
|
28322
|
+
CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 74] = "ReconcilingItemsColumn";
|
|
28323
|
+
CoreMessage2[CoreMessage2["CiStepsColumn"] = 75] = "CiStepsColumn";
|
|
28324
|
+
CoreMessage2[CoreMessage2["EvidenceCellKey"] = 76] = "EvidenceCellKey";
|
|
28325
|
+
CoreMessage2[CoreMessage2["WatermelonItemKey"] = 77] = "WatermelonItemKey";
|
|
28326
|
+
CoreMessage2[CoreMessage2["PendingItem"] = 78] = "PendingItem";
|
|
28327
|
+
CoreMessage2[CoreMessage2["PendingItemFor"] = 79] = "PendingItemFor";
|
|
28328
|
+
CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 80] = "CheckStepNoOutcome";
|
|
28329
|
+
CoreMessage2[CoreMessage2["CheckStepSkipped"] = 81] = "CheckStepSkipped";
|
|
28330
|
+
CoreMessage2[CoreMessage2["CheckStepEnded"] = 82] = "CheckStepEnded";
|
|
28331
|
+
CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 83] = "AmbiguousNamedStep";
|
|
28332
|
+
CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 84] = "AmbiguousUnnamedStep";
|
|
28333
|
+
CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 85] = "OutcomeSatisfied";
|
|
28334
|
+
CoreMessage2[CoreMessage2["OutcomeMissing"] = 86] = "OutcomeMissing";
|
|
28335
|
+
CoreMessage2[CoreMessage2["OutcomeFailing"] = 87] = "OutcomeFailing";
|
|
28336
|
+
CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 88] = "OutcomeWatermelon";
|
|
28337
|
+
CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 89] = "OutcomeNoScnCode";
|
|
28338
|
+
CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 90] = "OutcomeDuplicateScnCode";
|
|
28339
|
+
CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 91] = "OutcomeCitesUnknownScenario";
|
|
28340
|
+
CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 92] = "OutcomeCitesNoScenario";
|
|
28341
|
+
CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 93] = "OutcomeNoEvidenceObligation";
|
|
28342
|
+
CoreMessage2[CoreMessage2["OutcomeBroken"] = 94] = "OutcomeBroken";
|
|
28343
|
+
CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 95] = "OutcomeBothMissing";
|
|
28344
|
+
CoreMessage2[CoreMessage2["ObservationPassed"] = 96] = "ObservationPassed";
|
|
28345
|
+
CoreMessage2[CoreMessage2["ObservationFailed"] = 97] = "ObservationFailed";
|
|
28346
|
+
CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 98] = "UnnamedClaimGroupCounts";
|
|
28347
|
+
CoreMessage2[CoreMessage2["UnnamedClaimCiSteps"] = 99] = "UnnamedClaimCiSteps";
|
|
28348
|
+
CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 100] = "UnnamedClaimFailedNames";
|
|
28349
|
+
CoreMessage2[CoreMessage2["SeveralScnCodes"] = 101] = "SeveralScnCodes";
|
|
28350
|
+
CoreMessage2[CoreMessage2["SharedScnCode"] = 102] = "SharedScnCode";
|
|
28388
28351
|
CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
|
|
28389
28352
|
CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
28390
28353
|
CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
|
|
@@ -28407,6 +28370,43 @@ var init_messages4 = __esm({
|
|
|
28407
28370
|
CoreMessage2["ManifestKindString"] = "manifest-kind-string";
|
|
28408
28371
|
CoreMessage2["ManifestKindStringOrNull"] = "manifest-kind-string-or-null";
|
|
28409
28372
|
CoreMessage2["ManifestKindOfType"] = "manifest-kind-of-type";
|
|
28373
|
+
CoreMessage2["ReportTitle"] = "report-title";
|
|
28374
|
+
CoreMessage2["RunProvenanceHeading"] = "run-provenance-heading";
|
|
28375
|
+
CoreMessage2["ProvenanceTargetRepo"] = "provenance-target-repo";
|
|
28376
|
+
CoreMessage2["ProvenanceTargetRepoUntargeted"] = "provenance-target-repo-untargeted";
|
|
28377
|
+
CoreMessage2["ProvenanceNoInputs"] = "provenance-no-inputs";
|
|
28378
|
+
CoreMessage2["ProvenanceInputs"] = "provenance-inputs";
|
|
28379
|
+
CoreMessage2["ProvenanceNotSupplied"] = "provenance-not-supplied";
|
|
28380
|
+
CoreMessage2["ProvenanceRunTimestamp"] = "provenance-run-timestamp";
|
|
28381
|
+
CoreMessage2["ProvenanceSourceSha"] = "provenance-source-sha";
|
|
28382
|
+
CoreMessage2["ProvenanceSourceShaUnknown"] = "provenance-source-sha-unknown";
|
|
28383
|
+
CoreMessage2["ProvenanceToolSha"] = "provenance-tool-sha";
|
|
28384
|
+
CoreMessage2["ProvenanceToolShaUnknown"] = "provenance-tool-sha-unknown";
|
|
28385
|
+
CoreMessage2["ProvenanceToolVersion"] = "provenance-tool-version";
|
|
28386
|
+
CoreMessage2["RunIntegrityHeading"] = "run-integrity-heading";
|
|
28387
|
+
CoreMessage2["RunUnsound"] = "run-unsound";
|
|
28388
|
+
CoreMessage2["BrokenEvidenceNotNamed"] = "broken-evidence-not-named";
|
|
28389
|
+
CoreMessage2["BrokenEvidenceWhatBroke"] = "broken-evidence-what-broke";
|
|
28390
|
+
CoreMessage2["BrokenEvidenceNoMessage"] = "broken-evidence-no-message";
|
|
28391
|
+
CoreMessage2["SummaryHeading"] = "summary-heading";
|
|
28392
|
+
CoreMessage2["RunVerdictHeading"] = "run-verdict-heading";
|
|
28393
|
+
CoreMessage2["VerdictExit"] = "verdict-exit";
|
|
28394
|
+
CoreMessage2["ScenarioCodeErrorsHeadline"] = "scenario-code-errors-headline";
|
|
28395
|
+
CoreMessage2["ScenarioCodeErrorsGloss"] = "scenario-code-errors-gloss";
|
|
28396
|
+
CoreMessage2["SeveralScnCodesGloss"] = "several-scn-codes-gloss";
|
|
28397
|
+
CoreMessage2["MisfiledAndSeveralScnCodesGloss"] = "misfiled-and-several-scn-codes-gloss";
|
|
28398
|
+
CoreMessage2["AlsoOutOfBalance"] = "also-out-of-balance";
|
|
28399
|
+
CoreMessage2["OutOfBalanceHeadline"] = "out-of-balance-headline";
|
|
28400
|
+
CoreMessage2["OutOfBalanceGloss"] = "out-of-balance-gloss";
|
|
28401
|
+
CoreMessage2["UnsoundHeadline"] = "unsound-headline";
|
|
28402
|
+
CoreMessage2["UnsoundGloss"] = "unsound-gloss";
|
|
28403
|
+
CoreMessage2["PendingHeadline"] = "pending-headline";
|
|
28404
|
+
CoreMessage2["PendingGloss"] = "pending-gloss";
|
|
28405
|
+
CoreMessage2["BalancedHeadline"] = "balanced-headline";
|
|
28406
|
+
CoreMessage2["BalancedGloss"] = "balanced-gloss";
|
|
28407
|
+
CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
|
|
28408
|
+
CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
|
|
28409
|
+
CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
|
|
28410
28410
|
})(CoreMessage || (CoreMessage = {}));
|
|
28411
28411
|
(function(CoreError2) {
|
|
28412
28412
|
CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
|
|
@@ -28427,28 +28427,10 @@ var init_messages4 = __esm({
|
|
|
28427
28427
|
RUNNERS_PLACE = "`specController.runners` in its `package.json`";
|
|
28428
28428
|
IN_ITS_FILE = "every coded scenario sits in the file its code names";
|
|
28429
28429
|
CORE_MESSAGES = {
|
|
28430
|
-
[CoreMessage.ReportTitle]: "# Evidence Reconciliation",
|
|
28431
|
-
[CoreMessage.RunProvenanceHeading]: "## Run provenance",
|
|
28432
|
-
[CoreMessage.ProvenanceTargetRepo]: (target) => `Target repo: ${target}`,
|
|
28433
|
-
[CoreMessage.ProvenanceTargetRepoUntargeted]: (target, origin) => `Target repo: ${target} (no --target given; origin is ${origin})`,
|
|
28434
|
-
[CoreMessage.ProvenanceNoInputs]: "Inputs: none specified",
|
|
28435
|
-
[CoreMessage.ProvenanceInputs]: "Inputs:",
|
|
28436
|
-
[CoreMessage.ProvenanceNotSupplied]: (flags) => `Not supplied: ${flags}`,
|
|
28437
|
-
[CoreMessage.ProvenanceRunTimestamp]: (runStartUtc) => `Run timestamp (UTC): ${runStartUtc}`,
|
|
28438
|
-
[CoreMessage.ProvenanceSourceSha]: (sha) => `Source SHA: ${sha}`,
|
|
28439
|
-
[CoreMessage.ProvenanceSourceShaUnknown]: "unknown (non-git target)",
|
|
28440
|
-
[CoreMessage.ProvenanceToolSha]: (sha) => `Tool SHA: ${sha}`,
|
|
28441
|
-
[CoreMessage.ProvenanceToolShaUnknown]: "unknown (not a git checkout)",
|
|
28442
|
-
[CoreMessage.ProvenanceToolVersion]: (version2) => `Tool version: ${version2}`,
|
|
28443
28430
|
[CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
|
|
28444
28431
|
[CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
|
|
28445
|
-
[CoreMessage.RunIntegrityHeading]: "## Run integrity: unsound",
|
|
28446
28432
|
[CoreMessage.OneProofNeverRan]: "1 Evidence Observation never ran to a result, so the behaviour it proves was never exercised.",
|
|
28447
28433
|
[CoreMessage.ProofsNeverRan]: (count) => `${count} Evidence Observations never ran to a result, so the behaviours they prove were never exercised.`,
|
|
28448
|
-
[CoreMessage.RunUnsound]: (proofs) => `**This run is unsound.** ${proofs} A broken proof sits on the row of the claim it names, as every Evidence Observation does. On a scenario's row, an Evidence Obligation of its kind of quality check that no other proof answers reads "${MISSING}", though its test may already be written. A broken proof on the row of a phantom claim or of the unnamed claim may be the proof behind any item of its kind of quality check that reads "${MISSING}", on any row. Fix what stopped each proof listed below from running, such as its test, the code it loads, its step definitions, its runner or the CI job that runs it. Then run them again and regenerate this report.`,
|
|
28449
|
-
[CoreMessage.BrokenEvidenceNotNamed]: "(evidence not named by the runner)",
|
|
28450
|
-
[CoreMessage.BrokenEvidenceWhatBroke]: (locator) => `${locator} \u2014 what broke:`,
|
|
28451
|
-
[CoreMessage.BrokenEvidenceNoMessage]: "(no message reported by the runner)",
|
|
28452
28434
|
[CoreMessage.ScenarioCodeErrorsHeading]: "### Scenario code errors",
|
|
28453
28435
|
[CoreMessage.FeatureFileNoun]: "feature file",
|
|
28454
28436
|
[CoreMessage.FeatureCodeNoun]: "feature code",
|
|
@@ -28461,30 +28443,11 @@ var init_messages4 = __esm({
|
|
|
28461
28443
|
[CoreMessage.ThemPronoun]: "them",
|
|
28462
28444
|
[CoreMessage.HoldsVerb]: "holds",
|
|
28463
28445
|
[CoreMessage.HoldVerb]: "hold",
|
|
28464
|
-
[CoreMessage.
|
|
28465
|
-
[CoreMessage.
|
|
28466
|
-
[CoreMessage.
|
|
28467
|
-
[CoreMessage.
|
|
28468
|
-
[CoreMessage.
|
|
28469
|
-
[CoreMessage.SeveralScnCodesGloss]: (alsoOutOfBalance) => `a scenario in the corpus carries more than one scenario code, so no account was raised for it under any of them. Read \`### Scenario code errors\` above.${alsoOutOfBalance} This run FAILED.`,
|
|
28470
|
-
[CoreMessage.MisfiledAndSeveralScnCodesGloss]: (alsoOutOfBalance) => `the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted, and a scenario in it carries more than one scenario code, so no account was raised for it under any of them. Read \`### Scenario code errors\` above.${alsoOutOfBalance} This run FAILED.`,
|
|
28471
|
-
[CoreMessage.AlsoOutOfBalance]: " The accounts do not agree either: at least one Claim Reconciliation carries a reconciling item.",
|
|
28472
|
-
[CoreMessage.OutOfBalanceHeadline]: "**OUT-OF-BALANCE**",
|
|
28473
|
-
[CoreMessage.OutOfBalanceGloss]: "the accounts do not agree. At least one Claim Reconciliation carries a reconciling item. This run FAILED.",
|
|
28474
|
-
[CoreMessage.UnsoundHeadline]: "**UNSOUND**",
|
|
28475
|
-
[CoreMessage.UnsoundGloss]: "the evidence could not be TRUSTED to reconcile. A proof never ran, so the behaviour it proves was never exercised. Read the run-integrity stamp above before any count below it.",
|
|
28476
|
-
[CoreMessage.PendingHeadline]: "**PENDING**",
|
|
28477
|
-
[CoreMessage.PendingGloss]: "every Claim Reconciliation balances, but Pending Items are outstanding and this run treats a deferral as a failure (`--strict`). This run FAILED.",
|
|
28478
|
-
[CoreMessage.BalancedHeadline]: "**BALANCED**",
|
|
28479
|
-
[CoreMessage.BalancedGloss]: `every Claim Reconciliation balances: every ${SATISFIED}.`,
|
|
28480
|
-
[CoreMessage.NothingToReconcileHeadline]: "**NOTHING TO RECONCILE**",
|
|
28481
|
-
[CoreMessage.NothingToReconcileGloss]: (corpusDir) => `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.`,
|
|
28482
|
-
[CoreMessage.PendingItemsOutstanding]: "Pending Items are outstanding \u2014 deferred, not out-of-balance, so the verdict stands. A run that treats a deferral as a failure gives exit 3 under `--strict`.",
|
|
28483
|
-
[CoreMessage.EvidenceReconciliationHeading]: "### Evidence reconciliation",
|
|
28484
|
-
[CoreMessage.EvidenceReconciliationClaimReconciliationTerm]: "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).",
|
|
28485
|
-
[CoreMessage.EvidenceReconciliationReconciliationLineTerm]: "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.",
|
|
28486
|
-
[CoreMessage.EvidenceReconciliationEvidenceObligationTerm]: `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.`,
|
|
28487
|
-
[CoreMessage.EvidenceReconciliationEvidenceObservationTerm]: "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.",
|
|
28446
|
+
[CoreMessage.ReconciliationTotalsHeading]: "### Reconciliation totals",
|
|
28447
|
+
[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).",
|
|
28448
|
+
[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.",
|
|
28449
|
+
[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.`,
|
|
28450
|
+
[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.",
|
|
28488
28451
|
[CoreMessage.SubjectColumn]: "Subject",
|
|
28489
28452
|
[CoreMessage.TotalColumn]: "Total",
|
|
28490
28453
|
[CoreMessage.BalancedColumn]: "Balanced",
|
|
@@ -28656,84 +28619,6 @@ var init_reportedName = __esm({
|
|
|
28656
28619
|
}
|
|
28657
28620
|
});
|
|
28658
28621
|
|
|
28659
|
-
// ../core/dist/render/runVerdict.js
|
|
28660
|
-
function scenarioCodeErrorsGloss(errors, alsoOutOfBalance) {
|
|
28661
|
-
switch (scenarioCodeErrorsAre(errors)) {
|
|
28662
|
-
case "misfilings":
|
|
28663
|
-
return CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsGloss](alsoOutOfBalance);
|
|
28664
|
-
case "several-codes":
|
|
28665
|
-
return CORE_MESSAGES[CoreMessage.SeveralScnCodesGloss](alsoOutOfBalance);
|
|
28666
|
-
case "both":
|
|
28667
|
-
return CORE_MESSAGES[CoreMessage.MisfiledAndSeveralScnCodesGloss](alsoOutOfBalance);
|
|
28668
|
-
}
|
|
28669
|
-
}
|
|
28670
|
-
function scenarioCodeErrorsVerdict(ledger, errors) {
|
|
28671
|
-
const alsoOutOfBalance = isBalanced(ledger) ? "" : CORE_MESSAGES[CoreMessage.AlsoOutOfBalance];
|
|
28672
|
-
return {
|
|
28673
|
-
headline: CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsHeadline],
|
|
28674
|
-
gloss: scenarioCodeErrorsGloss(errors, alsoOutOfBalance)
|
|
28675
|
-
};
|
|
28676
|
-
}
|
|
28677
|
-
function nothingToReconcile(corpusDir) {
|
|
28678
|
-
return {
|
|
28679
|
-
headline: CORE_MESSAGES[CoreMessage.NothingToReconcileHeadline],
|
|
28680
|
-
gloss: CORE_MESSAGES[CoreMessage.NothingToReconcileGloss](corpusDir)
|
|
28681
|
-
};
|
|
28682
|
-
}
|
|
28683
|
-
function verdictFor2(verdict, ledger, corpusDir, codeErrors) {
|
|
28684
|
-
switch (verdict) {
|
|
28685
|
-
case "nothing-to-reconcile":
|
|
28686
|
-
return nothingToReconcile(corpusDir);
|
|
28687
|
-
case "unsound":
|
|
28688
|
-
return UNSOUND;
|
|
28689
|
-
case "scenario-code-errors":
|
|
28690
|
-
return scenarioCodeErrorsVerdict(ledger, codeErrors);
|
|
28691
|
-
case "out-of-balance":
|
|
28692
|
-
return OUT_OF_BALANCE;
|
|
28693
|
-
case "pending":
|
|
28694
|
-
return PENDING;
|
|
28695
|
-
case "balanced":
|
|
28696
|
-
return BALANCED;
|
|
28697
|
-
}
|
|
28698
|
-
}
|
|
28699
|
-
var OUT_OF_BALANCE, UNSOUND, PENDING, BALANCED, runVerdictSection;
|
|
28700
|
-
var init_runVerdict2 = __esm({
|
|
28701
|
-
"../core/dist/render/runVerdict.js"() {
|
|
28702
|
-
"use strict";
|
|
28703
|
-
init_ledger();
|
|
28704
|
-
init_scnTags();
|
|
28705
|
-
init_messages4();
|
|
28706
|
-
OUT_OF_BALANCE = {
|
|
28707
|
-
headline: CORE_MESSAGES[CoreMessage.OutOfBalanceHeadline],
|
|
28708
|
-
gloss: CORE_MESSAGES[CoreMessage.OutOfBalanceGloss]
|
|
28709
|
-
};
|
|
28710
|
-
UNSOUND = {
|
|
28711
|
-
headline: CORE_MESSAGES[CoreMessage.UnsoundHeadline],
|
|
28712
|
-
gloss: CORE_MESSAGES[CoreMessage.UnsoundGloss]
|
|
28713
|
-
};
|
|
28714
|
-
PENDING = {
|
|
28715
|
-
headline: CORE_MESSAGES[CoreMessage.PendingHeadline],
|
|
28716
|
-
gloss: CORE_MESSAGES[CoreMessage.PendingGloss]
|
|
28717
|
-
};
|
|
28718
|
-
BALANCED = {
|
|
28719
|
-
headline: CORE_MESSAGES[CoreMessage.BalancedHeadline],
|
|
28720
|
-
gloss: CORE_MESSAGES[CoreMessage.BalancedGloss]
|
|
28721
|
-
};
|
|
28722
|
-
runVerdictSection = (report, exitCodeOf2) => {
|
|
28723
|
-
const verdict = report.summary.runVerdict;
|
|
28724
|
-
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errors?.scenarioCodes ?? []);
|
|
28725
|
-
const exit = CORE_MESSAGES[CoreMessage.VerdictExit](exitCodeOf2(verdict));
|
|
28726
|
-
const lines = [CORE_MESSAGES[CoreMessage.RunVerdictHeading], "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
|
|
28727
|
-
if (verdict === "balanced" && hasPendingItems(report)) {
|
|
28728
|
-
lines.push("");
|
|
28729
|
-
lines.push(CORE_MESSAGES[CoreMessage.PendingItemsOutstanding]);
|
|
28730
|
-
}
|
|
28731
|
-
lines.push("");
|
|
28732
|
-
return lines;
|
|
28733
|
-
};
|
|
28734
|
-
}
|
|
28735
|
-
});
|
|
28736
|
-
|
|
28737
28622
|
// ../core/dist/render/messages.en.json
|
|
28738
28623
|
var messages_en_default;
|
|
28739
28624
|
var init_messages_en = __esm({
|
|
@@ -28760,7 +28645,44 @@ var init_messages_en = __esm({
|
|
|
28760
28645
|
"foreign-scn-code-carried": "{file} carries the feature code @{featureCode}, but holds the scenario @{scnId}, whose feature part names {named}. A reconciliation's by-feature cut groups on the id, so it counts this scenario under {carrierCount, plural, one {{carriers}'s row, not {file}'s. Re-code the scenario for @{featureCode}, or move it to {carriers}.} other {the one row for {named}, which {carrierCount} feature files carry \u2014 {carriers} \u2014 so that row cannot say which of them it belongs to. Re-code the scenario for @{featureCode}, or move it once a single file carries {named}.}}",
|
|
28761
28646
|
"foreign-scn-code-no-carrier": "{file} carries the feature code @{featureCode}, but holds the scenario @{scnId}, whose feature part names {named}. A reconciliation's by-feature cut groups on the id, so it opens a row for {named}, which no feature file carries as its header code, so that row stands for no file. Re-code the scenario for @{featureCode}.",
|
|
28762
28647
|
"no-feature-code": "{file} carries no feature code, but its scenarios carry @SCN codes. A feature file is the class its scenarios' codes are filed under: give it a header code of its own, and code its scenarios for it.",
|
|
28763
|
-
"several-scn-codes": `{file}'s scenario "{scenario}" carries {codeCount} @SCN codes \u2014 {codes}. A scenario is one account, so it raises its evidence obligations under none of them, and a test citing any of them cites a code no scenario carries. Give it one code
|
|
28648
|
+
"several-scn-codes": `{file}'s scenario "{scenario}" carries {codeCount} @SCN codes \u2014 {codes}. A scenario is one account, so it raises its evidence obligations under none of them, and a test citing any of them cites a code no scenario carries. Give it one code.`,
|
|
28649
|
+
"report-title": "Evidence Reconciliation",
|
|
28650
|
+
"run-provenance-heading": "Run provenance",
|
|
28651
|
+
"provenance-target-repo": "Target repo: {target}",
|
|
28652
|
+
"provenance-target-repo-untargeted": "Target repo: {target} (no --target given; origin is {origin})",
|
|
28653
|
+
"provenance-no-inputs": "Inputs: none specified",
|
|
28654
|
+
"provenance-inputs": "Inputs:",
|
|
28655
|
+
"provenance-not-supplied": "Not supplied: {flags}",
|
|
28656
|
+
"provenance-run-timestamp": "Run timestamp (UTC): {runStartUtc}",
|
|
28657
|
+
"provenance-source-sha": "Source SHA: {sha}",
|
|
28658
|
+
"provenance-source-sha-unknown": "unknown (non-git target)",
|
|
28659
|
+
"provenance-tool-sha": "Tool SHA: {sha}",
|
|
28660
|
+
"provenance-tool-sha-unknown": "unknown (not a git checkout)",
|
|
28661
|
+
"provenance-tool-version": "Tool version: {version}",
|
|
28662
|
+
"run-integrity-heading": "Run integrity: unsound",
|
|
28663
|
+
"run-unsound": `**This run is unsound.** {proofs} A broken proof sits on the row of the claim it names, as every Evidence Observation does. On a scenario's row, an Evidence Obligation of its kind of quality check that no other proof answers reads "Evidence Observation is missing", though its test may already be written. A broken proof on the row of a phantom claim or of the unnamed claim may be the proof behind any item of its kind of quality check that reads "Evidence Observation is missing", on any row. Fix what stopped each proof listed below from running, such as its test, the code it loads, its step definitions, its runner or the CI job that runs it. Then run them again and regenerate this report.`,
|
|
28664
|
+
"broken-evidence-not-named": "(evidence not named by the runner)",
|
|
28665
|
+
"broken-evidence-what-broke": "{locator} \u2014 what broke:",
|
|
28666
|
+
"broken-evidence-no-message": "(no message reported by the runner)",
|
|
28667
|
+
"summary-heading": "Summary",
|
|
28668
|
+
"run-verdict-heading": "Run verdict",
|
|
28669
|
+
"verdict-exit": "exit {code}",
|
|
28670
|
+
"scenario-code-errors-headline": "**SCENARIO CODE ERRORS**",
|
|
28671
|
+
"scenario-code-errors-gloss": "the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28672
|
+
"several-scn-codes-gloss": "a scenario in the corpus carries more than one scenario code, so no account was raised for it under any of them. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28673
|
+
"misfiled-and-several-scn-codes-gloss": "the corpus files a scenario code under the wrong feature, so the by-feature grouping cannot be trusted, and a scenario in it carries more than one scenario code, so no account was raised for it under any of them. Read `{heading}` above.{alsoOutOfBalance} This run FAILED.",
|
|
28674
|
+
"also-out-of-balance": " The accounts do not agree either: at least one Claim Reconciliation carries a reconciling item.",
|
|
28675
|
+
"out-of-balance-headline": "**OUT-OF-BALANCE**",
|
|
28676
|
+
"out-of-balance-gloss": "the accounts do not agree. At least one Claim Reconciliation carries a reconciling item. This run FAILED.",
|
|
28677
|
+
"unsound-headline": "**UNSOUND**",
|
|
28678
|
+
"unsound-gloss": "the evidence could not be TRUSTED to reconcile. A proof never ran, so the behaviour it proves was never exercised. Read the run-integrity stamp above before any count below it.",
|
|
28679
|
+
"pending-headline": "**PENDING**",
|
|
28680
|
+
"pending-gloss": "every Claim Reconciliation balances, but Pending Items are outstanding and this run treats a deferral as a failure (`--strict`). This run FAILED.",
|
|
28681
|
+
"balanced-headline": "**BALANCED**",
|
|
28682
|
+
"balanced-gloss": "every Claim Reconciliation balances: every Evidence Observation satisfies its Evidence Obligation.",
|
|
28683
|
+
"nothing-to-reconcile-headline": "**NOTHING TO RECONCILE**",
|
|
28684
|
+
"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.",
|
|
28685
|
+
"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`."
|
|
28764
28686
|
};
|
|
28765
28687
|
}
|
|
28766
28688
|
});
|
|
@@ -31564,6 +31486,96 @@ var init_coreText = __esm({
|
|
|
31564
31486
|
}
|
|
31565
31487
|
});
|
|
31566
31488
|
|
|
31489
|
+
// ../core/dist/render/heading.js
|
|
31490
|
+
var markdownHeading;
|
|
31491
|
+
var init_heading = __esm({
|
|
31492
|
+
"../core/dist/render/heading.js"() {
|
|
31493
|
+
"use strict";
|
|
31494
|
+
markdownHeading = (level, words2) => `${"#".repeat(level)} ${words2}`;
|
|
31495
|
+
}
|
|
31496
|
+
});
|
|
31497
|
+
|
|
31498
|
+
// ../core/dist/render/runVerdict.js
|
|
31499
|
+
function scenarioCodeErrorsGloss(errors, alsoOutOfBalance) {
|
|
31500
|
+
const values = { heading: CORE_MESSAGES[CoreMessage.ScenarioCodeErrorsHeading], alsoOutOfBalance };
|
|
31501
|
+
switch (scenarioCodeErrorsAre(errors)) {
|
|
31502
|
+
case "misfilings":
|
|
31503
|
+
return coreMessage(CoreMessage.ScenarioCodeErrorsGloss, values);
|
|
31504
|
+
case "several-codes":
|
|
31505
|
+
return coreMessage(CoreMessage.SeveralScnCodesGloss, values);
|
|
31506
|
+
case "both":
|
|
31507
|
+
return coreMessage(CoreMessage.MisfiledAndSeveralScnCodesGloss, values);
|
|
31508
|
+
}
|
|
31509
|
+
}
|
|
31510
|
+
function scenarioCodeErrorsVerdict(ledger, errors) {
|
|
31511
|
+
const alsoOutOfBalance = isBalanced(ledger) ? "" : coreMessage(CoreMessage.AlsoOutOfBalance);
|
|
31512
|
+
return {
|
|
31513
|
+
headline: coreMessage(CoreMessage.ScenarioCodeErrorsHeadline),
|
|
31514
|
+
gloss: scenarioCodeErrorsGloss(errors, alsoOutOfBalance)
|
|
31515
|
+
};
|
|
31516
|
+
}
|
|
31517
|
+
function nothingToReconcile(corpusDir) {
|
|
31518
|
+
return {
|
|
31519
|
+
headline: coreMessage(CoreMessage.NothingToReconcileHeadline),
|
|
31520
|
+
gloss: coreMessage(CoreMessage.NothingToReconcileGloss, { corpusDir })
|
|
31521
|
+
};
|
|
31522
|
+
}
|
|
31523
|
+
function verdictFor2(verdict, ledger, corpusDir, codeErrors) {
|
|
31524
|
+
switch (verdict) {
|
|
31525
|
+
case "nothing-to-reconcile":
|
|
31526
|
+
return nothingToReconcile(corpusDir);
|
|
31527
|
+
case "unsound":
|
|
31528
|
+
return UNSOUND;
|
|
31529
|
+
case "scenario-code-errors":
|
|
31530
|
+
return scenarioCodeErrorsVerdict(ledger, codeErrors);
|
|
31531
|
+
case "out-of-balance":
|
|
31532
|
+
return OUT_OF_BALANCE;
|
|
31533
|
+
case "pending":
|
|
31534
|
+
return PENDING;
|
|
31535
|
+
case "balanced":
|
|
31536
|
+
return BALANCED;
|
|
31537
|
+
}
|
|
31538
|
+
}
|
|
31539
|
+
var OUT_OF_BALANCE, UNSOUND, PENDING, BALANCED, runVerdictSection;
|
|
31540
|
+
var init_runVerdict2 = __esm({
|
|
31541
|
+
"../core/dist/render/runVerdict.js"() {
|
|
31542
|
+
"use strict";
|
|
31543
|
+
init_ledger();
|
|
31544
|
+
init_scnTags();
|
|
31545
|
+
init_messages4();
|
|
31546
|
+
init_coreText();
|
|
31547
|
+
init_heading();
|
|
31548
|
+
OUT_OF_BALANCE = {
|
|
31549
|
+
headline: coreMessage(CoreMessage.OutOfBalanceHeadline),
|
|
31550
|
+
gloss: coreMessage(CoreMessage.OutOfBalanceGloss)
|
|
31551
|
+
};
|
|
31552
|
+
UNSOUND = {
|
|
31553
|
+
headline: coreMessage(CoreMessage.UnsoundHeadline),
|
|
31554
|
+
gloss: coreMessage(CoreMessage.UnsoundGloss)
|
|
31555
|
+
};
|
|
31556
|
+
PENDING = {
|
|
31557
|
+
headline: coreMessage(CoreMessage.PendingHeadline),
|
|
31558
|
+
gloss: coreMessage(CoreMessage.PendingGloss)
|
|
31559
|
+
};
|
|
31560
|
+
BALANCED = {
|
|
31561
|
+
headline: coreMessage(CoreMessage.BalancedHeadline),
|
|
31562
|
+
gloss: coreMessage(CoreMessage.BalancedGloss)
|
|
31563
|
+
};
|
|
31564
|
+
runVerdictSection = (report, exitCodeOf2) => {
|
|
31565
|
+
const verdict = report.summary.runVerdict;
|
|
31566
|
+
const line = verdictFor2(verdict, report, report.runProvenance.corpus, report.errors?.scenarioCodes ?? []);
|
|
31567
|
+
const exit = coreMessage(CoreMessage.VerdictExit, { code: exitCodeOf2(verdict) });
|
|
31568
|
+
const lines = [markdownHeading(3, coreMessage(CoreMessage.RunVerdictHeading)), "", `${line.headline} \u2014 ${line.gloss} (${exit})`];
|
|
31569
|
+
if (verdict === "balanced" && hasPendingItems(report)) {
|
|
31570
|
+
lines.push("");
|
|
31571
|
+
lines.push(coreMessage(CoreMessage.PendingItemsOutstanding));
|
|
31572
|
+
}
|
|
31573
|
+
lines.push("");
|
|
31574
|
+
return lines;
|
|
31575
|
+
};
|
|
31576
|
+
}
|
|
31577
|
+
});
|
|
31578
|
+
|
|
31567
31579
|
// ../core/dist/render/errorEntry.js
|
|
31568
31580
|
var errorEntry;
|
|
31569
31581
|
var init_errorEntry = __esm({
|
|
@@ -31699,6 +31711,10 @@ function projectProvenanceObject(obj, inputNames) {
|
|
|
31699
31711
|
toolVersion: obj.toolVersion
|
|
31700
31712
|
};
|
|
31701
31713
|
}
|
|
31714
|
+
function provenanceInputsView(inputs) {
|
|
31715
|
+
const [first, ...rest] = inputs;
|
|
31716
|
+
return first === void 0 ? { kind: "none" } : { kind: "given", inputs: [first, ...rest] };
|
|
31717
|
+
}
|
|
31702
31718
|
var init_provenanceFacts = __esm({
|
|
31703
31719
|
"../core/dist/render/provenanceFacts.js"() {
|
|
31704
31720
|
"use strict";
|
|
@@ -31706,30 +31722,34 @@ var init_provenanceFacts = __esm({
|
|
|
31706
31722
|
});
|
|
31707
31723
|
|
|
31708
31724
|
// ../core/dist/render/provenanceSection.js
|
|
31725
|
+
function inputsLines(inputs) {
|
|
31726
|
+
switch (inputs.kind) {
|
|
31727
|
+
case "none":
|
|
31728
|
+
return [`- ${coreMessage(CoreMessage.ProvenanceNoInputs)}`];
|
|
31729
|
+
case "given":
|
|
31730
|
+
return [`- ${coreMessage(CoreMessage.ProvenanceInputs)}`, ...inputs.inputs.map(({ flag, value }) => ` - \`${flag} ${value}\``)];
|
|
31731
|
+
}
|
|
31732
|
+
}
|
|
31709
31733
|
var provenanceSection;
|
|
31710
31734
|
var init_provenanceSection = __esm({
|
|
31711
31735
|
"../core/dist/render/provenanceSection.js"() {
|
|
31712
31736
|
"use strict";
|
|
31713
31737
|
init_provenanceFacts();
|
|
31714
31738
|
init_messages4();
|
|
31739
|
+
init_coreText();
|
|
31740
|
+
init_heading();
|
|
31715
31741
|
provenanceSection = (report, inputNames) => {
|
|
31716
31742
|
const p = projectProvenanceObject(report.runProvenance, inputNames);
|
|
31717
|
-
const lines = [
|
|
31718
|
-
const targetRepo = p.targetOrigin === void 0 ?
|
|
31743
|
+
const lines = [markdownHeading(2, coreMessage(CoreMessage.RunProvenanceHeading)), ""];
|
|
31744
|
+
const targetRepo = p.targetOrigin === void 0 ? coreMessage(CoreMessage.ProvenanceTargetRepo, { target: p.target }) : coreMessage(CoreMessage.ProvenanceTargetRepoUntargeted, { target: p.target, origin: p.targetOrigin });
|
|
31719
31745
|
lines.push(`- ${targetRepo}`);
|
|
31720
|
-
|
|
31721
|
-
lines.push(`- ${CORE_MESSAGES[CoreMessage.ProvenanceNoInputs]}`);
|
|
31722
|
-
} else {
|
|
31723
|
-
lines.push(`- ${CORE_MESSAGES[CoreMessage.ProvenanceInputs]}`);
|
|
31724
|
-
for (const { flag, value } of p.inputs)
|
|
31725
|
-
lines.push(` - \`${flag} ${value}\``);
|
|
31726
|
-
}
|
|
31746
|
+
lines.push(...inputsLines(provenanceInputsView(p.inputs)));
|
|
31727
31747
|
if (p.absentInputs.length > 0)
|
|
31728
|
-
lines.push(`- ${
|
|
31729
|
-
lines.push(`- ${
|
|
31730
|
-
lines.push(`- ${
|
|
31731
|
-
lines.push(`- ${
|
|
31732
|
-
lines.push(`- ${
|
|
31748
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceNotSupplied, { flags: p.absentInputs.map((flag) => `\`${flag}\``).join(", ") })}`);
|
|
31749
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceRunTimestamp, { runStartUtc: p.runStartUtc })}`);
|
|
31750
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceSourceSha, { sha: p.sourceSha ?? coreMessage(CoreMessage.ProvenanceSourceShaUnknown) })}`);
|
|
31751
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceToolSha, { sha: p.toolSha ?? coreMessage(CoreMessage.ProvenanceToolShaUnknown) })}`);
|
|
31752
|
+
lines.push(`- ${coreMessage(CoreMessage.ProvenanceToolVersion, { version: p.toolVersion })}`);
|
|
31733
31753
|
lines.push("");
|
|
31734
31754
|
return lines;
|
|
31735
31755
|
};
|
|
@@ -32153,6 +32173,12 @@ function renderRowExceptions(s) {
|
|
|
32153
32173
|
const groups = [reconciling, pending].filter((g) => g.length > 0);
|
|
32154
32174
|
return groups.length === 0 ? "\u2014" : groups.join("; ");
|
|
32155
32175
|
}
|
|
32176
|
+
function brokenEvidenceNameOf({ locator }) {
|
|
32177
|
+
return locator?.trim() ? { kind: "named", locator } : { kind: "unnamed" };
|
|
32178
|
+
}
|
|
32179
|
+
function brokenEvidenceNameWords(name) {
|
|
32180
|
+
return name.kind === "named" ? name.locator : coreMessage(CoreMessage.BrokenEvidenceNotNamed);
|
|
32181
|
+
}
|
|
32156
32182
|
function pendingTally(pending) {
|
|
32157
32183
|
return pending > 0 ? ["", CORE_MESSAGES[CoreMessage.PendingTally](pending)] : [];
|
|
32158
32184
|
}
|
|
@@ -32230,7 +32256,7 @@ function ledgerTableLines(claims, columns, stepsByQualityCheckKind) {
|
|
|
32230
32256
|
function renderReport(report, inputNames, exitCodeOf2) {
|
|
32231
32257
|
return SECTIONS.flatMap((section) => section(report, inputNames, exitCodeOf2)).join("\n");
|
|
32232
32258
|
}
|
|
32233
|
-
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection,
|
|
32259
|
+
var reported, RESULT_MESSAGE, titleSection, runIntegritySection, summarySection, RECONCILIATION_TOTALS_COLUMNS, RECONCILIATION_TOTALS_TERMS, reconciliationTotalsSection, byFeatureSection, ledgerSection, scenarioCodeFactsSection, SECTIONS;
|
|
32234
32260
|
var init_markdown = __esm({
|
|
32235
32261
|
"../core/dist/render/markdown.js"() {
|
|
32236
32262
|
"use strict";
|
|
@@ -32251,6 +32277,8 @@ var init_markdown = __esm({
|
|
|
32251
32277
|
init_evidenceObservations();
|
|
32252
32278
|
init_evidenceGrid();
|
|
32253
32279
|
init_messages4();
|
|
32280
|
+
init_coreText();
|
|
32281
|
+
init_heading();
|
|
32254
32282
|
init_remarkWords();
|
|
32255
32283
|
init_codeSpan();
|
|
32256
32284
|
init_unnamedClaimGroups();
|
|
@@ -32259,7 +32287,7 @@ var init_markdown = __esm({
|
|
|
32259
32287
|
passed: CoreMessage.ObservationPassed,
|
|
32260
32288
|
failed: CoreMessage.ObservationFailed
|
|
32261
32289
|
};
|
|
32262
|
-
titleSection = () => [
|
|
32290
|
+
titleSection = () => [markdownHeading(1, coreMessage(CoreMessage.ReportTitle)), ""];
|
|
32263
32291
|
runIntegritySection = (report) => {
|
|
32264
32292
|
if (!hasBrokenEvidence(report))
|
|
32265
32293
|
return [];
|
|
@@ -32267,44 +32295,44 @@ var init_markdown = __esm({
|
|
|
32267
32295
|
const count = brokenObservations.length;
|
|
32268
32296
|
const proofs = count === 1 ? CORE_MESSAGES[CoreMessage.OneProofNeverRan] : CORE_MESSAGES[CoreMessage.ProofsNeverRan](count);
|
|
32269
32297
|
const lines = [
|
|
32270
|
-
|
|
32298
|
+
markdownHeading(2, coreMessage(CoreMessage.RunIntegrityHeading)),
|
|
32271
32299
|
"",
|
|
32272
|
-
|
|
32300
|
+
coreMessage(CoreMessage.RunUnsound, { proofs }),
|
|
32273
32301
|
""
|
|
32274
32302
|
];
|
|
32275
32303
|
for (const item of brokenObservations) {
|
|
32276
|
-
const locator = item
|
|
32277
|
-
lines.push(`- ${
|
|
32304
|
+
const locator = brokenEvidenceNameWords(brokenEvidenceNameOf(item));
|
|
32305
|
+
lines.push(`- ${coreMessage(CoreMessage.BrokenEvidenceWhatBroke, { locator: `\`${locator}\`` })}`);
|
|
32278
32306
|
lines.push("");
|
|
32279
|
-
lines.push(...fencedBlockLines("text", remarkWordsOf(item) ??
|
|
32307
|
+
lines.push(...fencedBlockLines("text", remarkWordsOf(item) ?? coreMessage(CoreMessage.BrokenEvidenceNoMessage)));
|
|
32280
32308
|
lines.push("");
|
|
32281
32309
|
}
|
|
32282
32310
|
return lines;
|
|
32283
32311
|
};
|
|
32284
|
-
summarySection = () => [
|
|
32285
|
-
|
|
32312
|
+
summarySection = () => [markdownHeading(2, coreMessage(CoreMessage.SummaryHeading)), ""];
|
|
32313
|
+
RECONCILIATION_TOTALS_COLUMNS = [
|
|
32286
32314
|
CORE_MESSAGES[CoreMessage.SubjectColumn],
|
|
32287
32315
|
CORE_MESSAGES[CoreMessage.TotalColumn],
|
|
32288
32316
|
CORE_MESSAGES[CoreMessage.BalancedColumn],
|
|
32289
32317
|
CORE_MESSAGES[CoreMessage.OutOfBalanceColumn],
|
|
32290
32318
|
CORE_MESSAGES[CoreMessage.DetailColumn]
|
|
32291
32319
|
];
|
|
32292
|
-
|
|
32293
|
-
CoreMessage.
|
|
32294
|
-
CoreMessage.
|
|
32295
|
-
CoreMessage.
|
|
32296
|
-
CoreMessage.
|
|
32320
|
+
RECONCILIATION_TOTALS_TERMS = [
|
|
32321
|
+
CoreMessage.ReconciliationTotalsClaimReconciliationTerm,
|
|
32322
|
+
CoreMessage.ReconciliationTotalsReconciliationLineTerm,
|
|
32323
|
+
CoreMessage.ReconciliationTotalsEvidenceObligationTerm,
|
|
32324
|
+
CoreMessage.ReconciliationTotalsEvidenceObservationTerm
|
|
32297
32325
|
];
|
|
32298
|
-
|
|
32299
|
-
const { claimReconciliations, reconciliationLines, pending } = report.summary.
|
|
32326
|
+
reconciliationTotalsSection = (report) => {
|
|
32327
|
+
const { claimReconciliations, reconciliationLines, pending } = report.summary.reconciliationTotals;
|
|
32300
32328
|
const row = (cells) => `| ${cells.join(" | ")} |`;
|
|
32301
32329
|
const missingSplit = reconciliationLines.missingByQualityCheckKind.map(({ qualityCheckKind, count }) => `${count} ${qualityCheckKind}`).join(" + ");
|
|
32302
32330
|
const lines = [
|
|
32303
|
-
CORE_MESSAGES[CoreMessage.
|
|
32331
|
+
CORE_MESSAGES[CoreMessage.ReconciliationTotalsHeading],
|
|
32304
32332
|
"",
|
|
32305
|
-
...
|
|
32333
|
+
...RECONCILIATION_TOTALS_TERMS.map((term) => `- ${CORE_MESSAGES[term]}`),
|
|
32306
32334
|
"",
|
|
32307
|
-
row(
|
|
32335
|
+
row(RECONCILIATION_TOTALS_COLUMNS),
|
|
32308
32336
|
row(["---", "---", "---", "---", "---"]),
|
|
32309
32337
|
row([
|
|
32310
32338
|
CORE_MESSAGES[CoreMessage.ClaimReconciliationSubject],
|
|
@@ -32333,7 +32361,7 @@ var init_markdown = __esm({
|
|
|
32333
32361
|
const rows = report.claimReconciliations;
|
|
32334
32362
|
const scenarios = rows.filter(isScenario);
|
|
32335
32363
|
const groups = report.summary.outOfBalanceByFeature ?? [];
|
|
32336
|
-
const ungrouped = ungroupedOutOfBalance(report.summary.
|
|
32364
|
+
const ungrouped = ungroupedOutOfBalance(report.summary.reconciliationTotals.claimReconciliations);
|
|
32337
32365
|
if (groups.length === 0 && ungrouped.length === 0)
|
|
32338
32366
|
return [];
|
|
32339
32367
|
const head = CORE_MESSAGES[CoreMessage.ScenarioClaimReconciliationsOutOfBalance](outOfBalanceCountOf(scenarios), scenarios.length);
|
|
@@ -32354,7 +32382,7 @@ var init_markdown = __esm({
|
|
|
32354
32382
|
return [
|
|
32355
32383
|
CORE_MESSAGES[CoreMessage.ClaimReconciliationsHeading],
|
|
32356
32384
|
"",
|
|
32357
|
-
...ledgerTallyLines(report.summary.
|
|
32385
|
+
...ledgerTallyLines(report.summary.reconciliationTotals.claimReconciliations),
|
|
32358
32386
|
"",
|
|
32359
32387
|
...evidenceKeyLines(columns),
|
|
32360
32388
|
...ledgerTableLines(claims, columns, report.summary.evidenceObservations?.byQualityCheckKind ?? []),
|
|
@@ -32381,7 +32409,7 @@ var init_markdown = __esm({
|
|
|
32381
32409
|
(report, _inputNames, exitCodeOf2) => runVerdictSection(report, exitCodeOf2),
|
|
32382
32410
|
scenarioCodesCleanStatement,
|
|
32383
32411
|
scenarioCodeFactsSection,
|
|
32384
|
-
|
|
32412
|
+
reconciliationTotalsSection,
|
|
32385
32413
|
evidenceObservationsSection,
|
|
32386
32414
|
stepAccountingSection,
|
|
32387
32415
|
byFeatureSection,
|
|
@@ -32862,7 +32890,7 @@ var init_inputShapes = __esm({
|
|
|
32862
32890
|
runProvenance: { fields: { corpus: "string" }, required: ["corpus"] },
|
|
32863
32891
|
summary: {
|
|
32864
32892
|
fields: {
|
|
32865
|
-
|
|
32893
|
+
reconciliationTotals: {
|
|
32866
32894
|
fields: {
|
|
32867
32895
|
reconciliationLines: {
|
|
32868
32896
|
fields: {
|
|
@@ -32879,7 +32907,7 @@ var init_inputShapes = __esm({
|
|
|
32879
32907
|
}
|
|
32880
32908
|
}
|
|
32881
32909
|
},
|
|
32882
|
-
required: ["
|
|
32910
|
+
required: ["reconciliationTotals", "evidenceObservations", "scenarioCodes"]
|
|
32883
32911
|
},
|
|
32884
32912
|
claimReconciliations: {
|
|
32885
32913
|
list: {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"$ref": "#/definitions/FeatureOutOfBalance"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"
|
|
30
|
+
"reconciliationTotals": {
|
|
31
31
|
"type": "object",
|
|
32
32
|
"properties": {
|
|
33
33
|
"claimReconciliations": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"required": [
|
|
58
|
-
"
|
|
58
|
+
"reconciliationTotals",
|
|
59
59
|
"runVerdict"
|
|
60
60
|
]
|
|
61
61
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.225",
|
|
4
4
|
"description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reconciliation",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fast-xml-parser": "^5.11.2",
|
|
27
27
|
"ts-json-schema-generator": "^2.9.0",
|
|
28
28
|
"yaml": "^2.9.0",
|
|
29
|
-
"@3f-consulting/spec-controller-core": "0.1.
|
|
29
|
+
"@3f-consulting/spec-controller-core": "0.1.225"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|