spec-controller 0.1.227 → 0.1.229

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.
Files changed (2) hide show
  1. package/dist/cli.js +218 -182
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -11507,7 +11507,7 @@ function pendingQualityCheckKind(tag) {
11507
11507
  return PENDING_TAG_TO_QUALITY_CHECK_KIND[tag] ?? null;
11508
11508
  }
11509
11509
  function convertedFitnessObligationsOf(tags) {
11510
- if (!tags.includes(FITNESS_AXIS_TAG))
11510
+ if (!tags.includes(FITNESS_TAG))
11511
11511
  return [];
11512
11512
  return [{ qualityCheckKind: "fitness" }];
11513
11513
  }
@@ -11516,10 +11516,10 @@ function obligationsRaisedBy(tags, deferralTags) {
11516
11516
  const seenLayers = /* @__PURE__ */ new Set();
11517
11517
  const seenPending = /* @__PURE__ */ new Set();
11518
11518
  for (const t of tags) {
11519
- const pendingCheck = pendingQualityCheckKind(t);
11520
- if (pendingCheck && !seenPending.has(pendingCheck)) {
11521
- seenPending.add(pendingCheck);
11522
- evidenceObligations2.push({ qualityCheckKind: pendingCheck, pending: true });
11519
+ const pendingKind = pendingQualityCheckKind(t);
11520
+ if (pendingKind && !seenPending.has(pendingKind)) {
11521
+ seenPending.add(pendingKind);
11522
+ evidenceObligations2.push({ qualityCheckKind: pendingKind, pending: true });
11523
11523
  continue;
11524
11524
  }
11525
11525
  const layer = TAG_TO_LAYER[t];
@@ -11536,7 +11536,7 @@ function obligationsRaisedBy(tags, deferralTags) {
11536
11536
  return [{ pending: true }];
11537
11537
  return evidenceObligations2.map((obligation) => ({ ...obligation, pending: true }));
11538
11538
  }
11539
- var PENDING_TAG_TO_QUALITY_CHECK_KIND, TAG_TO_LAYER, FITNESS_AXIS_TAG;
11539
+ var PENDING_TAG_TO_QUALITY_CHECK_KIND, TAG_TO_LAYER, FITNESS_TAG;
11540
11540
  var init_scenarioObligations = __esm({
11541
11541
  "../core/dist/domain/scenarioObligations.js"() {
11542
11542
  "use strict";
@@ -11553,7 +11553,7 @@ var init_scenarioObligations = __esm({
11553
11553
  e2e: "e2e",
11554
11554
  performance: "performance"
11555
11555
  };
11556
- FITNESS_AXIS_TAG = "fitness";
11556
+ FITNESS_TAG = "fitness";
11557
11557
  }
11558
11558
  });
11559
11559
 
@@ -12099,12 +12099,18 @@ function behaviouralObservationTally(ledger) {
12099
12099
  onScenario++;
12100
12100
  }
12101
12101
  }
12102
- const total = LAYERS.reduce((n, qc) => n + rawByLayer[qc], 0);
12102
+ const total = LAYERS.reduce((n, layer) => n + rawByLayer[layer], 0);
12103
12103
  return { rawByLayer, total, onScenario, onPhantomClaim, onUnnamedClaim };
12104
12104
  }
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 };
@@ -28241,7 +28247,7 @@ var init_model = __esm({
28241
28247
  });
28242
28248
 
28243
28249
  // ../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;
28250
+ var QUALITY_CHECK_FAULT_MESSAGES, CoreMessage, CoreError, SATISFIED, MISSING, DUPLICATE_SCN_CODE, CITED_WITH_NO_SCENARIO, NO_ONE_SCENARIO_CAN_TAKE, CORE_MESSAGES;
28245
28251
  var init_messages4 = __esm({
28246
28252
  "../core/dist/render/messages.js"() {
28247
28253
  "use strict";
@@ -28254,92 +28260,53 @@ var init_messages4 = __esm({
28254
28260
  CoreMessage2[CoreMessage2["ErrorsInTheInputsHeading"] = 0] = "ErrorsInTheInputsHeading";
28255
28261
  CoreMessage2[CoreMessage2["ConfigurationNotReadHeading"] = 1] = "ConfigurationNotReadHeading";
28256
28262
  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";
28263
+ CoreMessage2[CoreMessage2["OutOfBalanceByFeatureHeading"] = 3] = "OutOfBalanceByFeatureHeading";
28264
+ CoreMessage2[CoreMessage2["ScenarioClaimReconciliationsOutOfBalance"] = 4] = "ScenarioClaimReconciliationsOutOfBalance";
28265
+ CoreMessage2[CoreMessage2["GroupedByFeature"] = 5] = "GroupedByFeature";
28266
+ CoreMessage2[CoreMessage2["NotGroupedByFeature"] = 6] = "NotGroupedByFeature";
28267
+ CoreMessage2[CoreMessage2["PhantomClaimReconciliations"] = 7] = "PhantomClaimReconciliations";
28268
+ CoreMessage2[CoreMessage2["UnnamedClaimReconciliations"] = 8] = "UnnamedClaimReconciliations";
28269
+ CoreMessage2[CoreMessage2["AndJoiner"] = 9] = "AndJoiner";
28270
+ CoreMessage2[CoreMessage2["ByFeatureTableHeader"] = 10] = "ByFeatureTableHeader";
28271
+ CoreMessage2[CoreMessage2["NoScnCodeScenarios"] = 11] = "NoScnCodeScenarios";
28272
+ CoreMessage2[CoreMessage2["ClaimReconciliationsHeading"] = 12] = "ClaimReconciliationsHeading";
28273
+ CoreMessage2[CoreMessage2["ClaimReconciliationTally"] = 13] = "ClaimReconciliationTally";
28274
+ CoreMessage2[CoreMessage2["PhantomClaimTally"] = 14] = "PhantomClaimTally";
28275
+ CoreMessage2[CoreMessage2["UnnamedClaimTally"] = 15] = "UnnamedClaimTally";
28276
+ CoreMessage2[CoreMessage2["ExcludedScnOccurrences"] = 16] = "ExcludedScnOccurrences";
28277
+ CoreMessage2[CoreMessage2["UntaggedScenarios"] = 17] = "UntaggedScenarios";
28278
+ CoreMessage2[CoreMessage2["SharedScnCodes"] = 18] = "SharedScnCodes";
28279
+ CoreMessage2[CoreMessage2["SharedScnCodeScenario"] = 19] = "SharedScnCodeScenario";
28280
+ CoreMessage2[CoreMessage2["ClaimColumn"] = 20] = "ClaimColumn";
28281
+ CoreMessage2[CoreMessage2["VerdictColumn"] = 21] = "VerdictColumn";
28282
+ CoreMessage2[CoreMessage2["ReconcilingItemsColumn"] = 22] = "ReconcilingItemsColumn";
28283
+ CoreMessage2[CoreMessage2["CiStepsColumn"] = 23] = "CiStepsColumn";
28284
+ CoreMessage2[CoreMessage2["EvidenceCellKey"] = 24] = "EvidenceCellKey";
28285
+ CoreMessage2[CoreMessage2["WatermelonItemKey"] = 25] = "WatermelonItemKey";
28286
+ CoreMessage2[CoreMessage2["PendingItem"] = 26] = "PendingItem";
28287
+ CoreMessage2[CoreMessage2["PendingItemFor"] = 27] = "PendingItemFor";
28288
+ CoreMessage2[CoreMessage2["CheckStepNoOutcome"] = 28] = "CheckStepNoOutcome";
28289
+ CoreMessage2[CoreMessage2["CheckStepSkipped"] = 29] = "CheckStepSkipped";
28290
+ CoreMessage2[CoreMessage2["CheckStepEnded"] = 30] = "CheckStepEnded";
28291
+ CoreMessage2[CoreMessage2["AmbiguousNamedStep"] = 31] = "AmbiguousNamedStep";
28292
+ CoreMessage2[CoreMessage2["AmbiguousUnnamedStep"] = 32] = "AmbiguousUnnamedStep";
28293
+ CoreMessage2[CoreMessage2["OutcomeSatisfied"] = 33] = "OutcomeSatisfied";
28294
+ CoreMessage2[CoreMessage2["OutcomeMissing"] = 34] = "OutcomeMissing";
28295
+ CoreMessage2[CoreMessage2["OutcomeFailing"] = 35] = "OutcomeFailing";
28296
+ CoreMessage2[CoreMessage2["OutcomeWatermelon"] = 36] = "OutcomeWatermelon";
28297
+ CoreMessage2[CoreMessage2["OutcomeNoScnCode"] = 37] = "OutcomeNoScnCode";
28298
+ CoreMessage2[CoreMessage2["OutcomeDuplicateScnCode"] = 38] = "OutcomeDuplicateScnCode";
28299
+ CoreMessage2[CoreMessage2["OutcomeCitesUnknownScenario"] = 39] = "OutcomeCitesUnknownScenario";
28300
+ CoreMessage2[CoreMessage2["OutcomeCitesNoScenario"] = 40] = "OutcomeCitesNoScenario";
28301
+ CoreMessage2[CoreMessage2["OutcomeNoEvidenceObligation"] = 41] = "OutcomeNoEvidenceObligation";
28302
+ CoreMessage2[CoreMessage2["OutcomeBroken"] = 42] = "OutcomeBroken";
28303
+ CoreMessage2[CoreMessage2["OutcomeBothMissing"] = 43] = "OutcomeBothMissing";
28304
+ CoreMessage2[CoreMessage2["ObservationPassed"] = 44] = "ObservationPassed";
28305
+ CoreMessage2[CoreMessage2["ObservationFailed"] = 45] = "ObservationFailed";
28306
+ CoreMessage2[CoreMessage2["UnnamedClaimGroupCounts"] = 46] = "UnnamedClaimGroupCounts";
28307
+ CoreMessage2[CoreMessage2["UnnamedClaimFailedNames"] = 47] = "UnnamedClaimFailedNames";
28308
+ CoreMessage2[CoreMessage2["SeveralScnCodes"] = 48] = "SeveralScnCodes";
28309
+ CoreMessage2[CoreMessage2["SharedScnCode"] = 49] = "SharedScnCode";
28343
28310
  CoreMessage2["ConfigurationNotReadIntro"] = "configuration-not-read-intro";
28344
28311
  CoreMessage2["ConfigurationWrongKind"] = "configuration-wrong-kind";
28345
28312
  CoreMessage2["ConfigurationUnknownKey"] = "configuration-unknown-key";
@@ -28405,6 +28372,45 @@ var init_messages4 = __esm({
28405
28372
  CoreMessage2["NothingToReconcileHeadline"] = "nothing-to-reconcile-headline";
28406
28373
  CoreMessage2["NothingToReconcileGloss"] = "nothing-to-reconcile-gloss";
28407
28374
  CoreMessage2["PendingItemsOutstanding"] = "pending-items-outstanding";
28375
+ CoreMessage2["ReconciliationTotalsHeading"] = "reconciliation-totals-heading";
28376
+ CoreMessage2["ReconciliationTotalsClaimReconciliationTerm"] = "reconciliation-totals-claim-reconciliation-term";
28377
+ CoreMessage2["ReconciliationTotalsReconciliationLineTerm"] = "reconciliation-totals-reconciliation-line-term";
28378
+ CoreMessage2["ReconciliationTotalsEvidenceObligationTerm"] = "reconciliation-totals-evidence-obligation-term";
28379
+ CoreMessage2["ReconciliationTotalsEvidenceObservationTerm"] = "reconciliation-totals-evidence-observation-term";
28380
+ CoreMessage2["SubjectColumn"] = "subject-column";
28381
+ CoreMessage2["TotalColumn"] = "total-column";
28382
+ CoreMessage2["BalancedColumn"] = "balanced-column";
28383
+ CoreMessage2["OutOfBalanceColumn"] = "out-of-balance-column";
28384
+ CoreMessage2["DetailColumn"] = "detail-column";
28385
+ CoreMessage2["ClaimReconciliationSubject"] = "claim-reconciliation-subject";
28386
+ CoreMessage2["ReconciliationLineSubject"] = "reconciliation-line-subject";
28387
+ CoreMessage2["PendingTally"] = "pending-tally";
28388
+ CoreMessage2["EvidenceObservationsHeading"] = "evidence-observations-heading";
28389
+ CoreMessage2["EvidenceObservationsSum"] = "evidence-observations-sum";
28390
+ CoreMessage2["EvidenceObservationsTableHeader"] = "evidence-observations-table-header";
28391
+ CoreMessage2["FitnessRunner"] = "fitness-runner";
28392
+ CoreMessage2["FitnessCiStep"] = "fitness-ci-step";
28393
+ CoreMessage2["RunnerLayerNamesNone"] = "runner-layer-names-none";
28394
+ CoreMessage2["RunnerLayerUnnamed"] = "runner-layer-unnamed";
28395
+ CoreMessage2["NoStepCountedAsItsRunnerRunsIt"] = "no-step-counted-as-its-runner-runs-it";
28396
+ CoreMessage2["ReconcilerStep"] = "reconciler-step";
28397
+ CoreMessage2["ReconcilerReconciles"] = "reconciler-reconciles";
28398
+ CoreMessage2["ReconcilerRecords"] = "reconciler-records";
28399
+ CoreMessage2["StepNonCheck"] = "step-non-check";
28400
+ CoreMessage2["StepAccountingHeading"] = "step-accounting-heading";
28401
+ CoreMessage2["StepAccountingTableHeader"] = "step-accounting-table-header";
28402
+ CoreMessage2["StepAccountingTotal"] = "step-accounting-total";
28403
+ CoreMessage2["StepAccountingRunnersLabel"] = "step-accounting-runners-label";
28404
+ CoreMessage2["StepAccountingReconcilerLabel"] = "step-accounting-reconciler-label";
28405
+ CoreMessage2["StepAccountingNonChecksLabel"] = "step-accounting-non-checks-label";
28406
+ CoreMessage2["StepAccountingNotAppliedWorkflowsReadLabel"] = "step-accounting-not-applied-workflows-read-label";
28407
+ CoreMessage2["StepAccountingNotAppliedNoWorkflowReadLabel"] = "step-accounting-not-applied-no-workflow-read-label";
28408
+ CoreMessage2["StepAccountingPlumbingLabel"] = "step-accounting-plumbing-label";
28409
+ CoreMessage2["StepAccountingCandidatesTerm"] = "step-accounting-candidates-term";
28410
+ CoreMessage2["StepAccountingReconcilerTerm"] = "step-accounting-reconciler-term";
28411
+ CoreMessage2["StepAccountingNonChecksTerm"] = "step-accounting-non-checks-term";
28412
+ CoreMessage2["StepAccountingPlumbingTerm"] = "step-accounting-plumbing-term";
28413
+ CoreMessage2["StepAccountingAccountedForTerm"] = "step-accounting-accounted-for-term";
28408
28414
  })(CoreMessage || (CoreMessage = {}));
28409
28415
  (function(CoreError2) {
28410
28416
  CoreError2["ConfigurationWrongKind"] = "configuration-wrong-kind";
@@ -28422,50 +28428,10 @@ var init_messages4 = __esm({
28422
28428
  DUPLICATE_SCN_CODE = "Evidence Obligation's @SCN code is carried by another Scenario";
28423
28429
  CITED_WITH_NO_SCENARIO = "cited scenario ids with no real scenario";
28424
28430
  NO_ONE_SCENARIO_CAN_TAKE = "evidence observations no one scenario can take";
28425
- RUNNERS_PLACE = "`specController.runners` in its `package.json`";
28426
28431
  CORE_MESSAGES = {
28427
28432
  [CoreMessage.ErrorsInTheInputsHeading]: "## Errors in the inputs",
28428
28433
  [CoreMessage.ConfigurationNotReadHeading]: "### Configuration not read",
28429
28434
  [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
28435
  [CoreMessage.OutOfBalanceByFeatureHeading]: "### Out-of-balance by feature",
28470
28436
  [CoreMessage.ScenarioClaimReconciliationsOutOfBalance]: (outOfBalance, claimReconciliations) => `${outOfBalance} of ${claimReconciliations} Claim Reconciliation(s) of scenarios out of balance`,
28471
28437
  [CoreMessage.GroupedByFeature]: ", grouped by feature",
@@ -28667,7 +28633,46 @@ var init_messages_en = __esm({
28667
28633
  "balanced-gloss": "every Claim Reconciliation balances: every Evidence Observation satisfies its Evidence Obligation.",
28668
28634
  "nothing-to-reconcile-headline": "**NOTHING TO RECONCILE**",
28669
28635
  "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`."
28636
+ "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`.",
28637
+ "reconciliation-totals-heading": "Reconciliation totals",
28638
+ "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).",
28639
+ "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.",
28640
+ "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.",
28641
+ "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.",
28642
+ "subject-column": "Subject",
28643
+ "total-column": "Total",
28644
+ "balanced-column": "Balanced",
28645
+ "out-of-balance-column": "Out-of-balance",
28646
+ "detail-column": "Detail",
28647
+ "claim-reconciliation-subject": "Claim Reconciliation",
28648
+ "reconciliation-line-subject": "Reconciliation line",
28649
+ "pending-tally": "{pending} Pending Item(s) \u2014 deferred, tallied apart from balanced and out-of-balance.",
28650
+ "evidence-observations-heading": "Evidence observations",
28651
+ "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.",
28652
+ "evidence-observations-table-header": "| Kind of quality check | Evidence observations | Runner | CI step |",
28653
+ "fitness-runner": "each fitness function's check step",
28654
+ "fitness-ci-step": "{steps} step(s), each named on its fitness function's row of Claim Reconciliations.",
28655
+ "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`.",
28656
+ "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.",
28657
+ "no-step-counted-as-its-runner-runs-it": "no step counted as its runner runs it.",
28658
+ "reconciler-step": "{step} \u2014 the reconciler: {whatItIs}.",
28659
+ "reconciler-reconciles": "this step runs the reconciliation this report is",
28660
+ "reconciler-records": "this step writes the step record the reconciliation reads",
28661
+ "step-non-check": "{entry} \u2014 a non-check: the target names it under `specController.notChecks`.",
28662
+ "step-accounting-heading": "Step accounting",
28663
+ "step-accounting-table-header": "| Workflow | Job | Steps read | Candidates | Runners | Reconciler | Non-checks | GitHub plumbing | Accounted for |",
28664
+ "step-accounting-total": "Total",
28665
+ "step-accounting-runners-label": "Runners:",
28666
+ "step-accounting-reconciler-label": "Reconciler:",
28667
+ "step-accounting-non-checks-label": "Non-checks:",
28668
+ "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}):",
28669
+ "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):",
28670
+ "step-accounting-plumbing-label": "GitHub plumbing:",
28671
+ "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.",
28672
+ "step-accounting-reconciler-term": "A Reconciler step runs this reconciliation or writes the step record it reads.",
28673
+ "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.",
28674
+ "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.",
28675
+ "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."
28671
28676
  };
28672
28677
  }
28673
28678
  });
@@ -31809,12 +31814,14 @@ var init_errorsInTheInputs = __esm({
31809
31814
  });
31810
31815
 
31811
31816
  // ../core/dist/render/stepAccounting.js
31812
- var rowOf, jobRowsOf, totalRowOf, STEP_ACCOUNTING_TERMS, tableOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
31817
+ var rowOf, jobRowsOf, totalRowOf, STEP_ACCOUNTING_TERMS, tableOf, WHAT_IT_IS, runnersListOf, reconcilerListOf, nonChecksListOf, workflowsReadOf, NOT_CHECKS_KEY, notAppliedLeadOf, notAppliedListOf, plumbingListOf, stepAccountingSection;
31813
31818
  var init_stepAccounting = __esm({
31814
31819
  "../core/dist/render/stepAccounting.js"() {
31815
31820
  "use strict";
31816
31821
  init_uncitedFitnessFunctions();
31817
31822
  init_messages4();
31823
+ init_coreText();
31824
+ init_heading();
31818
31825
  init_cellSafe();
31819
31826
  init_codeSpan();
31820
31827
  rowOf = (cells) => `| ${cells.join(" | ")} |`;
@@ -31834,7 +31841,7 @@ var init_stepAccounting = __esm({
31834
31841
  return [];
31835
31842
  const { stepsRead, candidates, runners, reconciler, nonChecks, plumbing } = total;
31836
31843
  const counts = rowOf([stepsRead, candidates, runners, reconciler, nonChecks, plumbing, accountedForOf(total)]);
31837
- return [`| ${CORE_MESSAGES[CoreMessage.StepAccountingTotal]} | ${counts}`];
31844
+ return [`| ${coreMessage(CoreMessage.StepAccountingTotal)} | ${counts}`];
31838
31845
  };
31839
31846
  STEP_ACCOUNTING_TERMS = [
31840
31847
  CoreMessage.StepAccountingCandidatesTerm,
@@ -31847,9 +31854,9 @@ var init_stepAccounting = __esm({
31847
31854
  if (accounting.byJob.length === 0)
31848
31855
  return [];
31849
31856
  return [
31850
- ...STEP_ACCOUNTING_TERMS.map((term) => `- ${CORE_MESSAGES[term]}`),
31857
+ ...STEP_ACCOUNTING_TERMS.map((term) => `- ${coreMessage(term)}`),
31851
31858
  "",
31852
- CORE_MESSAGES[CoreMessage.StepAccountingTableHeader],
31859
+ coreMessage(CoreMessage.StepAccountingTableHeader),
31853
31860
  "| --- | --- | --- | --- | --- | --- | --- | --- | --- |",
31854
31861
  ...jobRowsOf(accounting),
31855
31862
  ...totalRowOf(accounting),
@@ -31857,22 +31864,22 @@ var init_stepAccounting = __esm({
31857
31864
  ];
31858
31865
  };
31859
31866
  WHAT_IT_IS = {
31860
- reconciles: CORE_MESSAGES[CoreMessage.ReconcilerReconciles],
31861
- records: CORE_MESSAGES[CoreMessage.ReconcilerRecords]
31867
+ reconciles: CoreMessage.ReconcilerReconciles,
31868
+ records: CoreMessage.ReconcilerRecords
31862
31869
  };
31863
31870
  runnersListOf = ({ steps }) => {
31864
31871
  const runners = steps.runners ?? [];
31865
31872
  if (runners.length === 0)
31866
31873
  return [];
31867
- return [CORE_MESSAGES[CoreMessage.StepAccountingRunnersLabel], ...runners.map((step) => `- ${codeSpan(step)}`), ""];
31874
+ return [coreMessage(CoreMessage.StepAccountingRunnersLabel), ...runners.map((step) => `- ${codeSpan(step)}`), ""];
31868
31875
  };
31869
31876
  reconcilerListOf = ({ steps }) => {
31870
31877
  const reconciler = steps.reconciler ?? [];
31871
31878
  if (reconciler.length === 0)
31872
31879
  return [];
31873
31880
  return [
31874
- CORE_MESSAGES[CoreMessage.StepAccountingReconcilerLabel],
31875
- ...reconciler.map(({ step, role }) => `- ${CORE_MESSAGES[CoreMessage.ReconcilerStep](codeSpan(step), WHAT_IT_IS[role])}`),
31881
+ coreMessage(CoreMessage.StepAccountingReconcilerLabel),
31882
+ ...reconciler.map(({ step, role }) => `- ${coreMessage(CoreMessage.ReconcilerStep, { step: codeSpan(step), whatItIs: coreMessage(WHAT_IT_IS[role]) })}`),
31876
31883
  ""
31877
31884
  ];
31878
31885
  };
@@ -31881,39 +31888,47 @@ var init_stepAccounting = __esm({
31881
31888
  if (nonChecks.length === 0)
31882
31889
  return [];
31883
31890
  return [
31884
- CORE_MESSAGES[CoreMessage.StepAccountingNonChecksLabel],
31885
- ...nonChecks.map((step) => `- ${CORE_MESSAGES[CoreMessage.StepNonCheck](codeSpan(step))}`),
31891
+ coreMessage(CoreMessage.StepAccountingNonChecksLabel),
31892
+ ...nonChecks.map((step) => `- ${coreMessage(CoreMessage.StepNonCheck, { entry: codeSpan(step) })}`),
31886
31893
  ""
31887
31894
  ];
31888
31895
  };
31889
31896
  workflowsReadOf = ({ workflowsRead, byJob }) => {
31890
- const workflows = [...new Set(workflowsRead ?? byJob.map(({ workflow }) => workflow))];
31891
- if (workflows.length === 0)
31892
- return CORE_MESSAGES[CoreMessage.StepAccountingNoWorkflowRead];
31893
- return workflows.map((workflow) => codeSpan(workflow)).join(", ");
31897
+ const [first, ...rest] = new Set(workflowsRead ?? byJob.map(({ workflow }) => workflow));
31898
+ if (first === void 0)
31899
+ return { kind: "none" };
31900
+ return { kind: "read", files: [first, ...rest] };
31901
+ };
31902
+ NOT_CHECKS_KEY = "`specController.notChecks`";
31903
+ notAppliedLeadOf = (view) => {
31904
+ switch (view.kind) {
31905
+ case "none":
31906
+ return coreMessage(CoreMessage.StepAccountingNotAppliedNoWorkflowReadLabel, { key: NOT_CHECKS_KEY });
31907
+ case "read":
31908
+ return coreMessage(CoreMessage.StepAccountingNotAppliedWorkflowsReadLabel, {
31909
+ key: NOT_CHECKS_KEY,
31910
+ workflows: view.files.map((workflow) => codeSpan(workflow)).join(", ")
31911
+ });
31912
+ }
31894
31913
  };
31895
31914
  notAppliedListOf = (accounting) => {
31896
31915
  const notApplied = accounting.nonChecksNamingAWorkflowNotRead;
31897
31916
  if (notApplied === void 0)
31898
31917
  return [];
31899
- return [
31900
- CORE_MESSAGES[CoreMessage.StepAccountingNotAppliedLabel]("`specController.notChecks`", workflowsReadOf(accounting)),
31901
- ...notApplied.map((entry) => `- ${codeSpan(entry)}`),
31902
- ""
31903
- ];
31918
+ return [notAppliedLeadOf(workflowsReadOf(accounting)), ...notApplied.map((entry) => `- ${codeSpan(entry)}`), ""];
31904
31919
  };
31905
31920
  plumbingListOf = ({ steps }) => {
31906
31921
  const plumbing = steps.plumbing ?? [];
31907
31922
  if (plumbing.length === 0)
31908
31923
  return [];
31909
- return [CORE_MESSAGES[CoreMessage.StepAccountingPlumbingLabel], ...plumbing.map((step) => `- ${codeSpan(step)}`), ""];
31924
+ return [coreMessage(CoreMessage.StepAccountingPlumbingLabel), ...plumbing.map((step) => `- ${codeSpan(step)}`), ""];
31910
31925
  };
31911
31926
  stepAccountingSection = (report) => {
31912
31927
  const accounting = report.summary.stepAccounting;
31913
31928
  if (accounting === void 0)
31914
31929
  return [];
31915
31930
  return [
31916
- CORE_MESSAGES[CoreMessage.StepAccountingHeading],
31931
+ markdownHeading(3, coreMessage(CoreMessage.StepAccountingHeading)),
31917
31932
  "",
31918
31933
  ...tableOf(accounting),
31919
31934
  ...runnersListOf(accounting),
@@ -31927,39 +31942,60 @@ var init_stepAccounting = __esm({
31927
31942
  });
31928
31943
 
31929
31944
  // ../core/dist/render/evidenceObservations.js
31930
- var runnerCells, evidenceObservationsSection;
31945
+ var namedRunnerStepsCell, fitnessStepsCell, runnerCells, evidenceObservationsSection;
31931
31946
  var init_evidenceObservations = __esm({
31932
31947
  "../core/dist/render/evidenceObservations.js"() {
31933
31948
  "use strict";
31949
+ init_ledger();
31934
31950
  init_messages4();
31951
+ init_coreText();
31952
+ init_heading();
31935
31953
  init_cellSafe();
31936
31954
  init_reportedName();
31937
- runnerCells = ({ qualityCheckKind, count, runner, ciSteps }) => {
31938
- if (typeof runner === "string") {
31939
- return [
31940
- cellSafe(runner),
31941
- ciSteps ? cellSafeKeepingCodeSpans(ciSteps.map(reportedName).join(", ")) : CORE_MESSAGES[CoreMessage.NoStepCountedAsItsRunnerRunsIt]
31942
- ];
31955
+ namedRunnerStepsCell = (steps) => {
31956
+ switch (steps.kind) {
31957
+ case "none":
31958
+ return coreMessage(CoreMessage.NoStepCountedAsItsRunnerRunsIt);
31959
+ case "some":
31960
+ return cellSafeKeepingCodeSpans(steps.ciSteps.map(reportedName).join(", "));
31943
31961
  }
31962
+ };
31963
+ fitnessStepsCell = (steps) => {
31964
+ switch (steps.kind) {
31965
+ case "none":
31966
+ return "";
31967
+ case "some":
31968
+ return coreMessage(CoreMessage.FitnessCiStep, { steps: steps.ciSteps.length });
31969
+ }
31970
+ };
31971
+ runnerCells = (entry) => {
31972
+ const { qualityCheckKind, count, runner } = entry;
31973
+ if (typeof runner === "string")
31974
+ return [cellSafe(runner), namedRunnerStepsCell(runnerSteps(entry))];
31944
31975
  if (qualityCheckKind === "fitness") {
31945
31976
  if (count === 0)
31946
31977
  return ["", ""];
31947
- return [CORE_MESSAGES[CoreMessage.FitnessRunner], ciSteps ? CORE_MESSAGES[CoreMessage.FitnessCiStep](ciSteps.length) : ""];
31978
+ return [coreMessage(CoreMessage.FitnessRunner), fitnessStepsCell(runnerSteps(entry))];
31948
31979
  }
31949
31980
  if (runner === void 0)
31950
- return [CORE_MESSAGES[CoreMessage.RunnerLayerUnnamed], ""];
31951
- return [CORE_MESSAGES[CoreMessage.RunnerLayerNamesNone], ""];
31981
+ return [coreMessage(CoreMessage.RunnerLayerUnnamed), ""];
31982
+ return [coreMessage(CoreMessage.RunnerLayerNamesNone), ""];
31952
31983
  };
31953
31984
  evidenceObservationsSection = (report) => {
31954
31985
  const observations = report.summary.evidenceObservations;
31955
31986
  if (!observations)
31956
31987
  return [];
31957
31988
  const lines = [
31958
- CORE_MESSAGES[CoreMessage.EvidenceObservationsHeading],
31989
+ markdownHeading(3, coreMessage(CoreMessage.EvidenceObservationsHeading)),
31959
31990
  "",
31960
- CORE_MESSAGES[CoreMessage.EvidenceObservationsSum](observations.total, observations.onScenario, observations.onPhantomClaim, observations.onUnnamedClaim),
31991
+ coreMessage(CoreMessage.EvidenceObservationsSum, {
31992
+ total: observations.total,
31993
+ onScenario: observations.onScenario,
31994
+ onPhantomClaim: observations.onPhantomClaim,
31995
+ onUnnamedClaim: observations.onUnnamedClaim
31996
+ }),
31961
31997
  "",
31962
- CORE_MESSAGES[CoreMessage.EvidenceObservationsTableHeader],
31998
+ coreMessage(CoreMessage.EvidenceObservationsTableHeader),
31963
31999
  "| --- | --- | --- | --- |"
31964
32000
  ];
31965
32001
  for (const entry of observations.byQualityCheckKind) {
@@ -32178,7 +32214,7 @@ function brokenEvidenceNameWords(name) {
32178
32214
  return name.kind === "named" ? name.locator : coreMessage(CoreMessage.BrokenEvidenceNotNamed);
32179
32215
  }
32180
32216
  function pendingTally(pending) {
32181
- return pending > 0 ? ["", CORE_MESSAGES[CoreMessage.PendingTally](pending)] : [];
32217
+ return pending > 0 ? ["", coreMessage(CoreMessage.PendingTally, { pending })] : [];
32182
32218
  }
32183
32219
  function byFeatureTableLines(groups) {
32184
32220
  if (groups.length === 0)
@@ -32308,11 +32344,11 @@ var init_markdown = __esm({
32308
32344
  };
32309
32345
  summarySection = () => [markdownHeading(2, coreMessage(CoreMessage.SummaryHeading)), ""];
32310
32346
  RECONCILIATION_TOTALS_COLUMNS = [
32311
- CORE_MESSAGES[CoreMessage.SubjectColumn],
32312
- CORE_MESSAGES[CoreMessage.TotalColumn],
32313
- CORE_MESSAGES[CoreMessage.BalancedColumn],
32314
- CORE_MESSAGES[CoreMessage.OutOfBalanceColumn],
32315
- CORE_MESSAGES[CoreMessage.DetailColumn]
32347
+ CoreMessage.SubjectColumn,
32348
+ CoreMessage.TotalColumn,
32349
+ CoreMessage.BalancedColumn,
32350
+ CoreMessage.OutOfBalanceColumn,
32351
+ CoreMessage.DetailColumn
32316
32352
  ];
32317
32353
  RECONCILIATION_TOTALS_TERMS = [
32318
32354
  CoreMessage.ReconciliationTotalsClaimReconciliationTerm,
@@ -32325,21 +32361,21 @@ var init_markdown = __esm({
32325
32361
  const row = (cells) => `| ${cells.join(" | ")} |`;
32326
32362
  const missingSplit = reconciliationLines.missingByQualityCheckKind.map(({ qualityCheckKind, count }) => `${count} ${qualityCheckKind}`).join(" + ");
32327
32363
  const lines = [
32328
- CORE_MESSAGES[CoreMessage.ReconciliationTotalsHeading],
32364
+ markdownHeading(3, coreMessage(CoreMessage.ReconciliationTotalsHeading)),
32329
32365
  "",
32330
- ...RECONCILIATION_TOTALS_TERMS.map((term) => `- ${CORE_MESSAGES[term]}`),
32366
+ ...RECONCILIATION_TOTALS_TERMS.map((term) => `- ${coreMessage(term)}`),
32331
32367
  "",
32332
- row(RECONCILIATION_TOTALS_COLUMNS),
32368
+ row(RECONCILIATION_TOTALS_COLUMNS.map((column) => coreMessage(column))),
32333
32369
  row(["---", "---", "---", "---", "---"]),
32334
32370
  row([
32335
- CORE_MESSAGES[CoreMessage.ClaimReconciliationSubject],
32371
+ coreMessage(CoreMessage.ClaimReconciliationSubject),
32336
32372
  String(claimReconciliations.total),
32337
32373
  String(claimReconciliations.balanced),
32338
32374
  String(claimReconciliations.outOfBalance),
32339
32375
  ""
32340
32376
  ]),
32341
32377
  row([
32342
- CORE_MESSAGES[CoreMessage.ReconciliationLineSubject],
32378
+ coreMessage(CoreMessage.ReconciliationLineSubject),
32343
32379
  String(reconciliationLines.total),
32344
32380
  String(reconciliationLines.byOutcome.satisfied),
32345
32381
  String(reconciliationLines.outOfBalance),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.227",
3
+ "version": "0.1.229",
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.227"
29
+ "@3f-consulting/spec-controller-core": "0.1.229"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"