agentskeptic 0.1.1
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/LICENSE +21 -0
- package/README.md +342 -0
- package/dist/actionableFailure.d.ts +53 -0
- package/dist/actionableFailure.d.ts.map +1 -0
- package/dist/actionableFailure.js +424 -0
- package/dist/actionableFailure.js.map +1 -0
- package/dist/actionableFailure.partitionExhaustive.test.d.ts +2 -0
- package/dist/actionableFailure.partitionExhaustive.test.d.ts.map +1 -0
- package/dist/actionableFailure.partitionExhaustive.test.js +20 -0
- package/dist/actionableFailure.partitionExhaustive.test.js.map +1 -0
- package/dist/actionableFailure.remediationExhaustive.test.d.ts +2 -0
- package/dist/actionableFailure.remediationExhaustive.test.d.ts.map +1 -0
- package/dist/actionableFailure.remediationExhaustive.test.js +297 -0
- package/dist/actionableFailure.remediationExhaustive.test.js.map +1 -0
- package/dist/actionableFailure.test.d.ts +2 -0
- package/dist/actionableFailure.test.d.ts.map +1 -0
- package/dist/actionableFailure.test.js +211 -0
- package/dist/actionableFailure.test.js.map +1 -0
- package/dist/agentRunBundle.d.ts +24 -0
- package/dist/agentRunBundle.d.ts.map +1 -0
- package/dist/agentRunBundle.js +114 -0
- package/dist/agentRunBundle.js.map +1 -0
- package/dist/agentRunBundle.rollback.test.d.ts +2 -0
- package/dist/agentRunBundle.rollback.test.d.ts.map +1 -0
- package/dist/agentRunBundle.rollback.test.js +65 -0
- package/dist/agentRunBundle.rollback.test.js.map +1 -0
- package/dist/agentRunBundle.test.d.ts +2 -0
- package/dist/agentRunBundle.test.d.ts.map +1 -0
- package/dist/agentRunBundle.test.js +126 -0
- package/dist/agentRunBundle.test.js.map +1 -0
- package/dist/agentRunRecord.d.ts +82 -0
- package/dist/agentRunRecord.d.ts.map +1 -0
- package/dist/agentRunRecord.js +51 -0
- package/dist/agentRunRecord.js.map +1 -0
- package/dist/agentRunRecord.test.d.ts +2 -0
- package/dist/agentRunRecord.test.d.ts.map +1 -0
- package/dist/agentRunRecord.test.js +49 -0
- package/dist/agentRunRecord.test.js.map +1 -0
- package/dist/aggregate.d.ts +3 -0
- package/dist/aggregate.d.ts.map +1 -0
- package/dist/aggregate.js +36 -0
- package/dist/aggregate.js.map +1 -0
- package/dist/assurance/assurancePathArgs.d.ts +10 -0
- package/dist/assurance/assurancePathArgs.d.ts.map +1 -0
- package/dist/assurance/assurancePathArgs.js +54 -0
- package/dist/assurance/assurancePathArgs.js.map +1 -0
- package/dist/assurance/checkStale.d.ts +14 -0
- package/dist/assurance/checkStale.d.ts.map +1 -0
- package/dist/assurance/checkStale.js +48 -0
- package/dist/assurance/checkStale.js.map +1 -0
- package/dist/assurance/findRepoRoot.d.ts +6 -0
- package/dist/assurance/findRepoRoot.d.ts.map +1 -0
- package/dist/assurance/findRepoRoot.js +27 -0
- package/dist/assurance/findRepoRoot.js.map +1 -0
- package/dist/assurance/runAssurance.d.ts +24 -0
- package/dist/assurance/runAssurance.d.ts.map +1 -0
- package/dist/assurance/runAssurance.js +105 -0
- package/dist/assurance/runAssurance.js.map +1 -0
- package/dist/bundleSignatureCodes.d.ts +13 -0
- package/dist/bundleSignatureCodes.d.ts.map +1 -0
- package/dist/bundleSignatureCodes.js +12 -0
- package/dist/bundleSignatureCodes.js.map +1 -0
- package/dist/canonicalParams.d.ts +3 -0
- package/dist/canonicalParams.d.ts.map +1 -0
- package/dist/canonicalParams.js +16 -0
- package/dist/canonicalParams.js.map +1 -0
- package/dist/ciLock.d.ts +52 -0
- package/dist/ciLock.d.ts.map +1 -0
- package/dist/ciLock.js +117 -0
- package/dist/ciLock.js.map +1 -0
- package/dist/ciLockWorkflow.d.ts +4 -0
- package/dist/ciLockWorkflow.d.ts.map +1 -0
- package/dist/ciLockWorkflow.js +278 -0
- package/dist/ciLockWorkflow.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.failureExplanationInvariant.test.d.ts +2 -0
- package/dist/cli.failureExplanationInvariant.test.d.ts.map +1 -0
- package/dist/cli.failureExplanationInvariant.test.js +40 -0
- package/dist/cli.failureExplanationInvariant.test.js.map +1 -0
- package/dist/cli.js +998 -0
- package/dist/cli.js.map +1 -0
- package/dist/cliArgv.d.ts +40 -0
- package/dist/cliArgv.d.ts.map +1 -0
- package/dist/cliArgv.js +149 -0
- package/dist/cliArgv.js.map +1 -0
- package/dist/cliOperationalCodes.d.ts +65 -0
- package/dist/cliOperationalCodes.d.ts.map +1 -0
- package/dist/cliOperationalCodes.js +64 -0
- package/dist/cliOperationalCodes.js.map +1 -0
- package/dist/commercial/licensePreflight.d.ts +7 -0
- package/dist/commercial/licensePreflight.d.ts.map +1 -0
- package/dist/commercial/licensePreflight.js +95 -0
- package/dist/commercial/licensePreflight.js.map +1 -0
- package/dist/commercial/licensePreflight.test.d.ts +2 -0
- package/dist/commercial/licensePreflight.test.d.ts.map +1 -0
- package/dist/commercial/licensePreflight.test.js +123 -0
- package/dist/commercial/licensePreflight.test.js.map +1 -0
- package/dist/compare.acceptance.test.d.ts +2 -0
- package/dist/compare.acceptance.test.d.ts.map +1 -0
- package/dist/compare.acceptance.test.js +80 -0
- package/dist/compare.acceptance.test.js.map +1 -0
- package/dist/correctnessDefinition.d.ts +23 -0
- package/dist/correctnessDefinition.d.ts.map +1 -0
- package/dist/correctnessDefinition.docParity.test.d.ts +2 -0
- package/dist/correctnessDefinition.docParity.test.d.ts.map +1 -0
- package/dist/correctnessDefinition.docParity.test.js +22 -0
- package/dist/correctnessDefinition.docParity.test.js.map +1 -0
- package/dist/correctnessDefinition.js +283 -0
- package/dist/correctnessDefinition.js.map +1 -0
- package/dist/correctnessDefinitionTemplates.d.ts +70 -0
- package/dist/correctnessDefinitionTemplates.d.ts.map +1 -0
- package/dist/correctnessDefinitionTemplates.js +121 -0
- package/dist/correctnessDefinitionTemplates.js.map +1 -0
- package/dist/debug-ui/app.css +188 -0
- package/dist/debug-ui/app.js +245 -0
- package/dist/debug-ui/index.html +79 -0
- package/dist/debugCorpus.d.ts +68 -0
- package/dist/debugCorpus.d.ts.map +1 -0
- package/dist/debugCorpus.js +544 -0
- package/dist/debugCorpus.js.map +1 -0
- package/dist/debugCorpus.test.d.ts +2 -0
- package/dist/debugCorpus.test.d.ts.map +1 -0
- package/dist/debugCorpus.test.js +159 -0
- package/dist/debugCorpus.test.js.map +1 -0
- package/dist/debugFocus.d.ts +16 -0
- package/dist/debugFocus.d.ts.map +1 -0
- package/dist/debugFocus.js +51 -0
- package/dist/debugFocus.js.map +1 -0
- package/dist/debugFocus.test.d.ts +2 -0
- package/dist/debugFocus.test.d.ts.map +1 -0
- package/dist/debugFocus.test.js +43 -0
- package/dist/debugFocus.test.js.map +1 -0
- package/dist/debugPanels.d.ts +13 -0
- package/dist/debugPanels.d.ts.map +1 -0
- package/dist/debugPanels.js +113 -0
- package/dist/debugPanels.js.map +1 -0
- package/dist/debugPanels.test.d.ts +2 -0
- package/dist/debugPanels.test.d.ts.map +1 -0
- package/dist/debugPanels.test.js +204 -0
- package/dist/debugPanels.test.js.map +1 -0
- package/dist/debugPatterns.d.ts +47 -0
- package/dist/debugPatterns.d.ts.map +1 -0
- package/dist/debugPatterns.js +113 -0
- package/dist/debugPatterns.js.map +1 -0
- package/dist/debugPatterns.test.d.ts +2 -0
- package/dist/debugPatterns.test.d.ts.map +1 -0
- package/dist/debugPatterns.test.js +48 -0
- package/dist/debugPatterns.test.js.map +1 -0
- package/dist/debugRunFilters.d.ts +31 -0
- package/dist/debugRunFilters.d.ts.map +1 -0
- package/dist/debugRunFilters.js +118 -0
- package/dist/debugRunFilters.js.map +1 -0
- package/dist/debugRunFilters.test.d.ts +2 -0
- package/dist/debugRunFilters.test.d.ts.map +1 -0
- package/dist/debugRunFilters.test.js +78 -0
- package/dist/debugRunFilters.test.js.map +1 -0
- package/dist/debugRunIndex.d.ts +27 -0
- package/dist/debugRunIndex.d.ts.map +1 -0
- package/dist/debugRunIndex.js +58 -0
- package/dist/debugRunIndex.js.map +1 -0
- package/dist/debugServer.d.ts +19 -0
- package/dist/debugServer.d.ts.map +1 -0
- package/dist/debugServer.js +315 -0
- package/dist/debugServer.js.map +1 -0
- package/dist/debugServer.test.d.ts +2 -0
- package/dist/debugServer.test.d.ts.map +1 -0
- package/dist/debugServer.test.js +207 -0
- package/dist/debugServer.test.js.map +1 -0
- package/dist/discovery-payload-v1.json +75 -0
- package/dist/distributionFooter.d.ts +3 -0
- package/dist/distributionFooter.d.ts.map +1 -0
- package/dist/distributionFooter.js +3 -0
- package/dist/distributionFooter.js.map +1 -0
- package/dist/documentationCopyConsistency.test.d.ts +2 -0
- package/dist/documentationCopyConsistency.test.d.ts.map +1 -0
- package/dist/documentationCopyConsistency.test.js +94 -0
- package/dist/documentationCopyConsistency.test.js.map +1 -0
- package/dist/enforceCli.d.ts +4 -0
- package/dist/enforceCli.d.ts.map +1 -0
- package/dist/enforceCli.js +93 -0
- package/dist/enforceCli.js.map +1 -0
- package/dist/eventSequenceIntegrity.d.ts +7 -0
- package/dist/eventSequenceIntegrity.d.ts.map +1 -0
- package/dist/eventSequenceIntegrity.js +47 -0
- package/dist/eventSequenceIntegrity.js.map +1 -0
- package/dist/eventSequenceIntegrity.test.d.ts +2 -0
- package/dist/eventSequenceIntegrity.test.d.ts.map +1 -0
- package/dist/eventSequenceIntegrity.test.js +65 -0
- package/dist/eventSequenceIntegrity.test.js.map +1 -0
- package/dist/executionPathFindings.d.ts +15 -0
- package/dist/executionPathFindings.d.ts.map +1 -0
- package/dist/executionPathFindings.js +299 -0
- package/dist/executionPathFindings.js.map +1 -0
- package/dist/executionPathFindings.requirements.test.d.ts +2 -0
- package/dist/executionPathFindings.requirements.test.d.ts.map +1 -0
- package/dist/executionPathFindings.requirements.test.js +332 -0
- package/dist/executionPathFindings.requirements.test.js.map +1 -0
- package/dist/executionTrace.d.ts +13 -0
- package/dist/executionTrace.d.ts.map +1 -0
- package/dist/executionTrace.js +272 -0
- package/dist/executionTrace.js.map +1 -0
- package/dist/executionTrace.test.d.ts +2 -0
- package/dist/executionTrace.test.d.ts.map +1 -0
- package/dist/executionTrace.test.js +200 -0
- package/dist/executionTrace.test.js.map +1 -0
- package/dist/failureAnalysis.d.ts +8 -0
- package/dist/failureAnalysis.d.ts.map +1 -0
- package/dist/failureAnalysis.js +337 -0
- package/dist/failureAnalysis.js.map +1 -0
- package/dist/failureAnalysis.test.d.ts +2 -0
- package/dist/failureAnalysis.test.d.ts.map +1 -0
- package/dist/failureAnalysis.test.js +196 -0
- package/dist/failureAnalysis.test.js.map +1 -0
- package/dist/failureCatalog.d.ts +26 -0
- package/dist/failureCatalog.d.ts.map +1 -0
- package/dist/failureCatalog.js +51 -0
- package/dist/failureCatalog.js.map +1 -0
- package/dist/failureCatalog.test.d.ts +2 -0
- package/dist/failureCatalog.test.d.ts.map +1 -0
- package/dist/failureCatalog.test.js +25 -0
- package/dist/failureCatalog.test.js.map +1 -0
- package/dist/failureExplanation.d.ts +52 -0
- package/dist/failureExplanation.d.ts.map +1 -0
- package/dist/failureExplanation.failureAnalysisMock.test.d.ts +2 -0
- package/dist/failureExplanation.failureAnalysisMock.test.d.ts.map +1 -0
- package/dist/failureExplanation.failureAnalysisMock.test.js +200 -0
- package/dist/failureExplanation.failureAnalysisMock.test.js.map +1 -0
- package/dist/failureExplanation.golden.test.d.ts +2 -0
- package/dist/failureExplanation.golden.test.d.ts.map +1 -0
- package/dist/failureExplanation.golden.test.js +530 -0
- package/dist/failureExplanation.golden.test.js.map +1 -0
- package/dist/failureExplanation.js +389 -0
- package/dist/failureExplanation.js.map +1 -0
- package/dist/failureExplanationDocumentationParity.test.d.ts +2 -0
- package/dist/failureExplanationDocumentationParity.test.d.ts.map +1 -0
- package/dist/failureExplanationDocumentationParity.test.js +56 -0
- package/dist/failureExplanationDocumentationParity.test.js.map +1 -0
- package/dist/failureOriginCatalog.d.ts +30 -0
- package/dist/failureOriginCatalog.d.ts.map +1 -0
- package/dist/failureOriginCatalog.js +106 -0
- package/dist/failureOriginCatalog.js.map +1 -0
- package/dist/failureOriginCatalog.test.d.ts +2 -0
- package/dist/failureOriginCatalog.test.d.ts.map +1 -0
- package/dist/failureOriginCatalog.test.js +17 -0
- package/dist/failureOriginCatalog.test.js.map +1 -0
- package/dist/failureOriginSchemaEnum.test.d.ts +2 -0
- package/dist/failureOriginSchemaEnum.test.d.ts.map +1 -0
- package/dist/failureOriginSchemaEnum.test.js +21 -0
- package/dist/failureOriginSchemaEnum.test.js.map +1 -0
- package/dist/failureOriginSchemaParity.test.d.ts +2 -0
- package/dist/failureOriginSchemaParity.test.d.ts.map +1 -0
- package/dist/failureOriginSchemaParity.test.js +33 -0
- package/dist/failureOriginSchemaParity.test.js.map +1 -0
- package/dist/failureOriginTypes.d.ts +4 -0
- package/dist/failureOriginTypes.d.ts.map +1 -0
- package/dist/failureOriginTypes.generated.d.ts +4 -0
- package/dist/failureOriginTypes.generated.d.ts.map +1 -0
- package/dist/failureOriginTypes.generated.js +10 -0
- package/dist/failureOriginTypes.generated.js.map +1 -0
- package/dist/failureOriginTypes.js +3 -0
- package/dist/failureOriginTypes.js.map +1 -0
- package/dist/generated/commercialBuildFlags.d.ts +4 -0
- package/dist/generated/commercialBuildFlags.d.ts.map +1 -0
- package/dist/generated/commercialBuildFlags.js +5 -0
- package/dist/generated/commercialBuildFlags.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/jsonPointer.d.ts +3 -0
- package/dist/jsonPointer.d.ts.map +1 -0
- package/dist/jsonPointer.js +28 -0
- package/dist/jsonPointer.js.map +1 -0
- package/dist/jsonStableStringify.d.ts +3 -0
- package/dist/jsonStableStringify.d.ts.map +1 -0
- package/dist/jsonStableStringify.js +3 -0
- package/dist/jsonStableStringify.js.map +1 -0
- package/dist/loadEvents.d.ts +3 -0
- package/dist/loadEvents.d.ts.map +1 -0
- package/dist/loadEvents.eventFileAggregateCounts.test.d.ts +2 -0
- package/dist/loadEvents.eventFileAggregateCounts.test.d.ts.map +1 -0
- package/dist/loadEvents.eventFileAggregateCounts.test.js +18 -0
- package/dist/loadEvents.eventFileAggregateCounts.test.js.map +1 -0
- package/dist/loadEvents.js +85 -0
- package/dist/loadEvents.js.map +1 -0
- package/dist/multiEffectRollup.d.ts +43 -0
- package/dist/multiEffectRollup.d.ts.map +1 -0
- package/dist/multiEffectRollup.js +164 -0
- package/dist/multiEffectRollup.js.map +1 -0
- package/dist/multiEffectRollup.test.d.ts +2 -0
- package/dist/multiEffectRollup.test.d.ts.map +1 -0
- package/dist/multiEffectRollup.test.js +128 -0
- package/dist/multiEffectRollup.test.js.map +1 -0
- package/dist/noStepsMessage.d.ts +7 -0
- package/dist/noStepsMessage.d.ts.map +1 -0
- package/dist/noStepsMessage.js +12 -0
- package/dist/noStepsMessage.js.map +1 -0
- package/dist/noStepsMessage.test.d.ts +2 -0
- package/dist/noStepsMessage.test.d.ts.map +1 -0
- package/dist/noStepsMessage.test.js +15 -0
- package/dist/noStepsMessage.test.js.map +1 -0
- package/dist/operationalDisposition.d.ts +498 -0
- package/dist/operationalDisposition.d.ts.map +1 -0
- package/dist/operationalDisposition.js +490 -0
- package/dist/operationalDisposition.js.map +1 -0
- package/dist/operationalDispositionDerivation.test.d.ts +2 -0
- package/dist/operationalDispositionDerivation.test.d.ts.map +1 -0
- package/dist/operationalDispositionDerivation.test.js +19 -0
- package/dist/operationalDispositionDerivation.test.js.map +1 -0
- package/dist/operationalFailureDiagnosis.d.ts +3 -0
- package/dist/operationalFailureDiagnosis.d.ts.map +1 -0
- package/dist/operationalFailureDiagnosis.js +25 -0
- package/dist/operationalFailureDiagnosis.js.map +1 -0
- package/dist/pipeline.d.ts +38 -0
- package/dist/pipeline.d.ts.map +1 -0
- package/dist/pipeline.js +457 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/planLogicalSteps.d.ts +16 -0
- package/dist/planLogicalSteps.d.ts.map +1 -0
- package/dist/planLogicalSteps.js +51 -0
- package/dist/planLogicalSteps.js.map +1 -0
- package/dist/planLogicalSteps.test.d.ts +2 -0
- package/dist/planLogicalSteps.test.d.ts.map +1 -0
- package/dist/planLogicalSteps.test.js +88 -0
- package/dist/planLogicalSteps.test.js.map +1 -0
- package/dist/planTransition.d.ts +88 -0
- package/dist/planTransition.d.ts.map +1 -0
- package/dist/planTransition.js +490 -0
- package/dist/planTransition.js.map +1 -0
- package/dist/planTransition.test.d.ts +2 -0
- package/dist/planTransition.test.d.ts.map +1 -0
- package/dist/planTransition.test.js +956 -0
- package/dist/planTransition.test.js.map +1 -0
- package/dist/planTransitionConstants.d.ts +3 -0
- package/dist/planTransitionConstants.d.ts.map +1 -0
- package/dist/planTransitionConstants.js +3 -0
- package/dist/planTransitionConstants.js.map +1 -0
- package/dist/planTransitionPathHarvest.d.ts +24 -0
- package/dist/planTransitionPathHarvest.d.ts.map +1 -0
- package/dist/planTransitionPathHarvest.js +273 -0
- package/dist/planTransitionPathHarvest.js.map +1 -0
- package/dist/planTransitionPathHarvest.test.d.ts +2 -0
- package/dist/planTransitionPathHarvest.test.d.ts.map +1 -0
- package/dist/planTransitionPathHarvest.test.js +232 -0
- package/dist/planTransitionPathHarvest.test.js.map +1 -0
- package/dist/prepareWorkflowEvents.d.ts +6 -0
- package/dist/prepareWorkflowEvents.d.ts.map +1 -0
- package/dist/prepareWorkflowEvents.js +8 -0
- package/dist/prepareWorkflowEvents.js.map +1 -0
- package/dist/publicDistribution.generated.d.ts +3 -0
- package/dist/publicDistribution.generated.d.ts.map +1 -0
- package/dist/publicDistribution.generated.js +9 -0
- package/dist/publicDistribution.generated.js.map +1 -0
- package/dist/quickVerify/atomicWrite.d.ts +6 -0
- package/dist/quickVerify/atomicWrite.d.ts.map +1 -0
- package/dist/quickVerify/atomicWrite.js +33 -0
- package/dist/quickVerify/atomicWrite.js.map +1 -0
- package/dist/quickVerify/buildQuickContractEventsNdjson.d.ts +14 -0
- package/dist/quickVerify/buildQuickContractEventsNdjson.d.ts.map +1 -0
- package/dist/quickVerify/buildQuickContractEventsNdjson.js +28 -0
- package/dist/quickVerify/buildQuickContractEventsNdjson.js.map +1 -0
- package/dist/quickVerify/canonicalJson.d.ts +5 -0
- package/dist/quickVerify/canonicalJson.d.ts.map +1 -0
- package/dist/quickVerify/canonicalJson.js +23 -0
- package/dist/quickVerify/canonicalJson.js.map +1 -0
- package/dist/quickVerify/decomposeUnits.d.ts +15 -0
- package/dist/quickVerify/decomposeUnits.d.ts.map +1 -0
- package/dist/quickVerify/decomposeUnits.js +50 -0
- package/dist/quickVerify/decomposeUnits.js.map +1 -0
- package/dist/quickVerify/exportTool.d.ts +6 -0
- package/dist/quickVerify/exportTool.d.ts.map +1 -0
- package/dist/quickVerify/exportTool.js +20 -0
- package/dist/quickVerify/exportTool.js.map +1 -0
- package/dist/quickVerify/forbiddenMutatingSql.d.ts +4 -0
- package/dist/quickVerify/forbiddenMutatingSql.d.ts.map +1 -0
- package/dist/quickVerify/forbiddenMutatingSql.js +6 -0
- package/dist/quickVerify/forbiddenMutatingSql.js.map +1 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.d.ts +17 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.d.ts.map +1 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.js +65 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.js.map +1 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.test.d.ts +2 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.test.d.ts.map +1 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.test.js +41 -0
- package/dist/quickVerify/formatQuickVerifyHumanReport.test.js.map +1 -0
- package/dist/quickVerify/ingest.d.ts +34 -0
- package/dist/quickVerify/ingest.d.ts.map +1 -0
- package/dist/quickVerify/ingest.js +327 -0
- package/dist/quickVerify/ingest.js.map +1 -0
- package/dist/quickVerify/noMutatingSqlInSources.test.d.ts +2 -0
- package/dist/quickVerify/noMutatingSqlInSources.test.d.ts.map +1 -0
- package/dist/quickVerify/noMutatingSqlInSources.test.js +34 -0
- package/dist/quickVerify/noMutatingSqlInSources.test.js.map +1 -0
- package/dist/quickVerify/postgresCatalog.d.ts +19 -0
- package/dist/quickVerify/postgresCatalog.d.ts.map +1 -0
- package/dist/quickVerify/postgresCatalog.js +107 -0
- package/dist/quickVerify/postgresCatalog.js.map +1 -0
- package/dist/quickVerify/quickVerifyHumanCopy.d.ts +9 -0
- package/dist/quickVerify/quickVerifyHumanCopy.d.ts.map +1 -0
- package/dist/quickVerify/quickVerifyHumanCopy.js +24 -0
- package/dist/quickVerify/quickVerifyHumanCopy.js.map +1 -0
- package/dist/quickVerify/quickVerifyProductTruth.d.ts +16 -0
- package/dist/quickVerify/quickVerifyProductTruth.d.ts.map +1 -0
- package/dist/quickVerify/quickVerifyProductTruth.js +19 -0
- package/dist/quickVerify/quickVerifyProductTruth.js.map +1 -0
- package/dist/quickVerify/quickVerifyScope.d.ts +12 -0
- package/dist/quickVerify/quickVerifyScope.d.ts.map +1 -0
- package/dist/quickVerify/quickVerifyScope.js +16 -0
- package/dist/quickVerify/quickVerifyScope.js.map +1 -0
- package/dist/quickVerify/relationalPlan.d.ts +10 -0
- package/dist/quickVerify/relationalPlan.d.ts.map +1 -0
- package/dist/quickVerify/relationalPlan.js +37 -0
- package/dist/quickVerify/relationalPlan.js.map +1 -0
- package/dist/quickVerify/rowUnit.d.ts +15 -0
- package/dist/quickVerify/rowUnit.d.ts.map +1 -0
- package/dist/quickVerify/rowUnit.js +132 -0
- package/dist/quickVerify/rowUnit.js.map +1 -0
- package/dist/quickVerify/runQuickVerify.d.ts +65 -0
- package/dist/quickVerify/runQuickVerify.d.ts.map +1 -0
- package/dist/quickVerify/runQuickVerify.js +320 -0
- package/dist/quickVerify/runQuickVerify.js.map +1 -0
- package/dist/quickVerify/schemaCatalogTypes.d.ts +22 -0
- package/dist/quickVerify/schemaCatalogTypes.d.ts.map +1 -0
- package/dist/quickVerify/schemaCatalogTypes.js +2 -0
- package/dist/quickVerify/schemaCatalogTypes.js.map +1 -0
- package/dist/quickVerify/sqliteCatalog.d.ts +13 -0
- package/dist/quickVerify/sqliteCatalog.d.ts.map +1 -0
- package/dist/quickVerify/sqliteCatalog.js +48 -0
- package/dist/quickVerify/sqliteCatalog.js.map +1 -0
- package/dist/quickVerify/tableScoring.d.ts +24 -0
- package/dist/quickVerify/tableScoring.d.ts.map +1 -0
- package/dist/quickVerify/tableScoring.js +156 -0
- package/dist/quickVerify/tableScoring.js.map +1 -0
- package/dist/quickVerify/thresholds.d.ts +11 -0
- package/dist/quickVerify/thresholds.d.ts.map +1 -0
- package/dist/quickVerify/thresholds.js +11 -0
- package/dist/quickVerify/thresholds.js.map +1 -0
- package/dist/quickVerify/verifyExecution.d.ts +15 -0
- package/dist/quickVerify/verifyExecution.d.ts.map +1 -0
- package/dist/quickVerify/verifyExecution.js +153 -0
- package/dist/quickVerify/verifyExecution.js.map +1 -0
- package/dist/reconciler.d.ts +25 -0
- package/dist/reconciler.d.ts.map +1 -0
- package/dist/reconciler.js +266 -0
- package/dist/reconciler.js.map +1 -0
- package/dist/reconciliationPresentation.d.ts +83 -0
- package/dist/reconciliationPresentation.d.ts.map +1 -0
- package/dist/reconciliationPresentation.js +195 -0
- package/dist/reconciliationPresentation.js.map +1 -0
- package/dist/registryValidation.d.ts +48 -0
- package/dist/registryValidation.d.ts.map +1 -0
- package/dist/registryValidation.js +254 -0
- package/dist/registryValidation.js.map +1 -0
- package/dist/registryValidation.test.d.ts +2 -0
- package/dist/registryValidation.test.d.ts.map +1 -0
- package/dist/registryValidation.test.js +186 -0
- package/dist/registryValidation.test.js.map +1 -0
- package/dist/relationalInvariant.d.ts +28 -0
- package/dist/relationalInvariant.d.ts.map +1 -0
- package/dist/relationalInvariant.existsSql.test.d.ts +2 -0
- package/dist/relationalInvariant.existsSql.test.d.ts.map +1 -0
- package/dist/relationalInvariant.existsSql.test.js +12 -0
- package/dist/relationalInvariant.existsSql.test.js.map +1 -0
- package/dist/relationalInvariant.js +347 -0
- package/dist/relationalInvariant.js.map +1 -0
- package/dist/relationalInvariant.test.d.ts +2 -0
- package/dist/relationalInvariant.test.d.ts.map +1 -0
- package/dist/relationalInvariant.test.js +32 -0
- package/dist/relationalInvariant.test.js.map +1 -0
- package/dist/remediationConsumptionGuard.test.d.ts +2 -0
- package/dist/remediationConsumptionGuard.test.d.ts.map +1 -0
- package/dist/remediationConsumptionGuard.test.js +80 -0
- package/dist/remediationConsumptionGuard.test.js.map +1 -0
- package/dist/remediationWireSurfaceGuard.test.d.ts +2 -0
- package/dist/remediationWireSurfaceGuard.test.d.ts.map +1 -0
- package/dist/remediationWireSurfaceGuard.test.js +39 -0
- package/dist/remediationWireSurfaceGuard.test.js.map +1 -0
- package/dist/resolveExpectation.d.ts +28 -0
- package/dist/resolveExpectation.d.ts.map +1 -0
- package/dist/resolveExpectation.js +654 -0
- package/dist/resolveExpectation.js.map +1 -0
- package/dist/resolveExpectation.test.d.ts +2 -0
- package/dist/resolveExpectation.test.d.ts.map +1 -0
- package/dist/resolveExpectation.test.js +434 -0
- package/dist/resolveExpectation.test.js.map +1 -0
- package/dist/resolveFailureCodes.d.ts +2 -0
- package/dist/resolveFailureCodes.d.ts.map +1 -0
- package/dist/resolveFailureCodes.js +7 -0
- package/dist/resolveFailureCodes.js.map +1 -0
- package/dist/runComparison.d.ts +168 -0
- package/dist/runComparison.d.ts.map +1 -0
- package/dist/runComparison.js +675 -0
- package/dist/runComparison.js.map +1 -0
- package/dist/runComparison.test.d.ts +2 -0
- package/dist/runComparison.test.d.ts.map +1 -0
- package/dist/runComparison.test.js +507 -0
- package/dist/runComparison.test.js.map +1 -0
- package/dist/runLevelDriftMessages.d.ts +4 -0
- package/dist/runLevelDriftMessages.d.ts.map +1 -0
- package/dist/runLevelDriftMessages.js +4 -0
- package/dist/runLevelDriftMessages.js.map +1 -0
- package/dist/schema-validation.test.d.ts +2 -0
- package/dist/schema-validation.test.d.ts.map +1 -0
- package/dist/schema-validation.test.js +531 -0
- package/dist/schema-validation.test.js.map +1 -0
- package/dist/schemaLoad.d.ts +5 -0
- package/dist/schemaLoad.d.ts.map +1 -0
- package/dist/schemaLoad.js +152 -0
- package/dist/schemaLoad.js.map +1 -0
- package/dist/shareReport/postPublicVerificationReport.d.ts +26 -0
- package/dist/shareReport/postPublicVerificationReport.d.ts.map +1 -0
- package/dist/shareReport/postPublicVerificationReport.js +38 -0
- package/dist/shareReport/postPublicVerificationReport.js.map +1 -0
- package/dist/slice6.compare.ac.test.d.ts +2 -0
- package/dist/slice6.compare.ac.test.d.ts.map +1 -0
- package/dist/slice6.compare.ac.test.js +81 -0
- package/dist/slice6.compare.ac.test.js.map +1 -0
- package/dist/sqlConnector.d.ts +15 -0
- package/dist/sqlConnector.d.ts.map +1 -0
- package/dist/sqlConnector.js +36 -0
- package/dist/sqlConnector.js.map +1 -0
- package/dist/sqlReadBackend.d.ts +19 -0
- package/dist/sqlReadBackend.d.ts.map +1 -0
- package/dist/sqlReadBackend.js +67 -0
- package/dist/sqlReadBackend.js.map +1 -0
- package/dist/standardVerifyWorkflowCli.d.ts +24 -0
- package/dist/standardVerifyWorkflowCli.d.ts.map +1 -0
- package/dist/standardVerifyWorkflowCli.js +95 -0
- package/dist/standardVerifyWorkflowCli.js.map +1 -0
- package/dist/taxonomyAuthority.test.d.ts +2 -0
- package/dist/taxonomyAuthority.test.d.ts.map +1 -0
- package/dist/taxonomyAuthority.test.js +44 -0
- package/dist/taxonomyAuthority.test.js.map +1 -0
- package/dist/toolsRegistryLoad.d.ts +7 -0
- package/dist/toolsRegistryLoad.d.ts.map +1 -0
- package/dist/toolsRegistryLoad.js +32 -0
- package/dist/toolsRegistryLoad.js.map +1 -0
- package/dist/truthLayerError.d.ts +8 -0
- package/dist/truthLayerError.d.ts.map +1 -0
- package/dist/truthLayerError.js +9 -0
- package/dist/truthLayerError.js.map +1 -0
- package/dist/types.d.ts +706 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +24 -0
- package/dist/types.js.map +1 -0
- package/dist/valueVerification.d.ts +12 -0
- package/dist/valueVerification.d.ts.map +1 -0
- package/dist/valueVerification.js +112 -0
- package/dist/valueVerification.js.map +1 -0
- package/dist/valueVerification.test.d.ts +2 -0
- package/dist/valueVerification.test.d.ts.map +1 -0
- package/dist/valueVerification.test.js +112 -0
- package/dist/valueVerification.test.js.map +1 -0
- package/dist/verificationAgainstSystemState.requirements.test.d.ts +2 -0
- package/dist/verificationAgainstSystemState.requirements.test.d.ts.map +1 -0
- package/dist/verificationAgainstSystemState.requirements.test.js +326 -0
- package/dist/verificationAgainstSystemState.requirements.test.js.map +1 -0
- package/dist/verificationDiagnostics.d.ts +21 -0
- package/dist/verificationDiagnostics.d.ts.map +1 -0
- package/dist/verificationDiagnostics.js +141 -0
- package/dist/verificationDiagnostics.js.map +1 -0
- package/dist/verificationDiagnostics.test.d.ts +2 -0
- package/dist/verificationDiagnostics.test.d.ts.map +1 -0
- package/dist/verificationDiagnostics.test.js +228 -0
- package/dist/verificationDiagnostics.test.js.map +1 -0
- package/dist/verificationPolicy.d.ts +33 -0
- package/dist/verificationPolicy.d.ts.map +1 -0
- package/dist/verificationPolicy.js +495 -0
- package/dist/verificationPolicy.js.map +1 -0
- package/dist/verificationPolicy.test.d.ts +2 -0
- package/dist/verificationPolicy.test.d.ts.map +1 -0
- package/dist/verificationPolicy.test.js +252 -0
- package/dist/verificationPolicy.test.js.map +1 -0
- package/dist/verificationRunContext.d.ts +10 -0
- package/dist/verificationRunContext.d.ts.map +1 -0
- package/dist/verificationRunContext.js +111 -0
- package/dist/verificationRunContext.js.map +1 -0
- package/dist/verificationUserPhrases.d.ts +22 -0
- package/dist/verificationUserPhrases.d.ts.map +1 -0
- package/dist/verificationUserPhrases.js +99 -0
- package/dist/verificationUserPhrases.js.map +1 -0
- package/dist/verificationUserPhrases.test.d.ts +2 -0
- package/dist/verificationUserPhrases.test.d.ts.map +1 -0
- package/dist/verificationUserPhrases.test.js +47 -0
- package/dist/verificationUserPhrases.test.js.map +1 -0
- package/dist/verifyRunBundleSignature.d.ts +14 -0
- package/dist/verifyRunBundleSignature.d.ts.map +1 -0
- package/dist/verifyRunBundleSignature.js +139 -0
- package/dist/verifyRunBundleSignature.js.map +1 -0
- package/dist/verifyRunBundleSignature.test.d.ts +2 -0
- package/dist/verifyRunBundleSignature.test.d.ts.map +1 -0
- package/dist/verifyRunBundleSignature.test.js +169 -0
- package/dist/verifyRunBundleSignature.test.js.map +1 -0
- package/dist/wireReasonCodes.d.ts +57 -0
- package/dist/wireReasonCodes.d.ts.map +1 -0
- package/dist/wireReasonCodes.js +57 -0
- package/dist/wireReasonCodes.js.map +1 -0
- package/dist/wireReasonEmittersGuard.test.d.ts +2 -0
- package/dist/wireReasonEmittersGuard.test.d.ts.map +1 -0
- package/dist/wireReasonEmittersGuard.test.js +36 -0
- package/dist/wireReasonEmittersGuard.test.js.map +1 -0
- package/dist/withWorkflowVerification.persistBundle.test.d.ts +2 -0
- package/dist/withWorkflowVerification.persistBundle.test.d.ts.map +1 -0
- package/dist/withWorkflowVerification.persistBundle.test.js +104 -0
- package/dist/withWorkflowVerification.persistBundle.test.js.map +1 -0
- package/dist/workflowResultNormalize.d.ts +9 -0
- package/dist/workflowResultNormalize.d.ts.map +1 -0
- package/dist/workflowResultNormalize.js +40 -0
- package/dist/workflowResultNormalize.js.map +1 -0
- package/dist/workflowResultSignature.d.ts +8 -0
- package/dist/workflowResultSignature.d.ts.map +1 -0
- package/dist/workflowResultSignature.js +44 -0
- package/dist/workflowResultSignature.js.map +1 -0
- package/dist/workflowRunLevelConsistency.d.ts +5 -0
- package/dist/workflowRunLevelConsistency.d.ts.map +1 -0
- package/dist/workflowRunLevelConsistency.js +30 -0
- package/dist/workflowRunLevelConsistency.js.map +1 -0
- package/dist/workflowTruthReport.d.ts +24 -0
- package/dist/workflowTruthReport.d.ts.map +1 -0
- package/dist/workflowTruthReport.js +395 -0
- package/dist/workflowTruthReport.js.map +1 -0
- package/dist/workflowTruthReport.semantics.test.d.ts +2 -0
- package/dist/workflowTruthReport.semantics.test.d.ts.map +1 -0
- package/dist/workflowTruthReport.semantics.test.js +182 -0
- package/dist/workflowTruthReport.semantics.test.js.map +1 -0
- package/dist/workflowVerdictSurface.test.d.ts +2 -0
- package/dist/workflowVerdictSurface.test.d.ts.map +1 -0
- package/dist/workflowVerdictSurface.test.js +68 -0
- package/dist/workflowVerdictSurface.test.js.map +1 -0
- package/dist/writeRunBundleCli.d.ts +9 -0
- package/dist/writeRunBundleCli.d.ts.map +1 -0
- package/dist/writeRunBundleCli.js +28 -0
- package/dist/writeRunBundleCli.js.map +1 -0
- package/package.json +115 -0
- package/schemas/agent-run-record-v1.schema.json +51 -0
- package/schemas/agent-run-record-v2.schema.json +61 -0
- package/schemas/assurance-manifest-v1.schema.json +28 -0
- package/schemas/assurance-run-report-v1.schema.json +28 -0
- package/schemas/ci-lock-v1.schema.json +163 -0
- package/schemas/cli-error-envelope.schema.json +48 -0
- package/schemas/event.schema.json +111 -0
- package/schemas/execution-trace-view.schema.json +122 -0
- package/schemas/openapi-commercial-v1.in.yaml +215 -0
- package/schemas/openapi-commercial-v1.yaml +215 -0
- package/schemas/plan-validation-core.schema.json +95 -0
- package/schemas/public-verification-report-v1.schema.json +51 -0
- package/schemas/quick-verify-report.schema.json +251 -0
- package/schemas/registry-validation-result.schema.json +99 -0
- package/schemas/run-comparison-report.schema.json +513 -0
- package/schemas/tools-registry-export.schema.json +9 -0
- package/schemas/tools-registry.schema.json +284 -0
- package/schemas/workflow-engine-result.schema.json +591 -0
- package/schemas/workflow-result-compare-input.schema.json +15 -0
- package/schemas/workflow-result-signature.schema.json +20 -0
- package/schemas/workflow-result-v9.schema.json +85 -0
- package/schemas/workflow-result.schema.json +80 -0
- package/schemas/workflow-truth-report.schema.json +761 -0
- package/scripts/discovery-acquisition.lib.cjs +195 -0
- package/scripts/discovery-payload.lib.cjs +346 -0
- package/scripts/render-discovery-ci.mjs +103 -0
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
import { buildActionableCategoryRecurrence, buildCategoryHistogram, } from "./actionableFailure.js";
|
|
2
|
+
import { compareUtf16Id } from "./resolveExpectation.js";
|
|
3
|
+
/** Max keys / signatures per compareHighlights list (normative cap). */
|
|
4
|
+
export const COMPARE_HIGHLIGHTS_MAX = 20;
|
|
5
|
+
function severityRank(s) {
|
|
6
|
+
if (s === "high")
|
|
7
|
+
return 0;
|
|
8
|
+
if (s === "medium")
|
|
9
|
+
return 1;
|
|
10
|
+
return 2;
|
|
11
|
+
}
|
|
12
|
+
/** Trend from first run → last run actionable posture (higher severity rank = better). */
|
|
13
|
+
export function actionableTrend(first, last) {
|
|
14
|
+
const fc = first.category;
|
|
15
|
+
const lc = last.category;
|
|
16
|
+
if (fc === "complete" && lc === "complete")
|
|
17
|
+
return "unchanged";
|
|
18
|
+
if (fc !== "complete" && lc === "complete")
|
|
19
|
+
return "improving";
|
|
20
|
+
if (fc === "complete" && lc !== "complete")
|
|
21
|
+
return "worsening";
|
|
22
|
+
if (fc !== lc)
|
|
23
|
+
return "mixed";
|
|
24
|
+
const fr = severityRank(first.severity);
|
|
25
|
+
const lr = severityRank(last.severity);
|
|
26
|
+
if (lr > fr)
|
|
27
|
+
return "improving";
|
|
28
|
+
if (lr < fr)
|
|
29
|
+
return "worsening";
|
|
30
|
+
return "unchanged";
|
|
31
|
+
}
|
|
32
|
+
/** Per compared run: actionable rollup (`complete` + low severity when workflow is trusted). */
|
|
33
|
+
export function perRunActionableFromWorkflowResult(r, runIndex) {
|
|
34
|
+
const fa = r.workflowTruthReport.failureAnalysis;
|
|
35
|
+
if (fa === null) {
|
|
36
|
+
return {
|
|
37
|
+
runIndex,
|
|
38
|
+
category: "complete",
|
|
39
|
+
severity: "low",
|
|
40
|
+
recommendedAction: "none",
|
|
41
|
+
automationSafe: true,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
runIndex,
|
|
46
|
+
category: fa.actionableFailure.category,
|
|
47
|
+
severity: fa.actionableFailure.severity,
|
|
48
|
+
recommendedAction: fa.actionableFailure.recommendedAction,
|
|
49
|
+
automationSafe: fa.actionableFailure.automationSafe,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function buildRecurrenceBurden(patterns) {
|
|
53
|
+
const patternCount = patterns.length;
|
|
54
|
+
const maxRunsHitCount = patternCount === 0 ? 0 : Math.max(...patterns.map((p) => p.runsHitCount));
|
|
55
|
+
const crossRunFailure = patternCount > 0;
|
|
56
|
+
let rationale;
|
|
57
|
+
if (patternCount === 0) {
|
|
58
|
+
rationale = "No failure signature appears in two or more distinct runs in this window.";
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
rationale = `${patternCount} failure signature(s) appear in two or more distinct runs in this window (max runs hit per signature: ${maxRunsHitCount}).`;
|
|
62
|
+
}
|
|
63
|
+
return { patternCount, maxRunsHitCount, crossRunFailure, rationale };
|
|
64
|
+
}
|
|
65
|
+
function buildReliabilityAssessment(perRun, priorRunIndex, currentRunIndex, patterns) {
|
|
66
|
+
const first = perRun[0];
|
|
67
|
+
const last = perRun[perRun.length - 1];
|
|
68
|
+
const windowTrend = actionableTrend(first, last);
|
|
69
|
+
const priorA = perRun[priorRunIndex];
|
|
70
|
+
const currentA = perRun[currentRunIndex];
|
|
71
|
+
const pairwiseTrend = actionableTrend(priorA, currentA);
|
|
72
|
+
const recurrenceBurden = buildRecurrenceBurden(patterns);
|
|
73
|
+
let headlineVerdict;
|
|
74
|
+
let headlineRationale;
|
|
75
|
+
if (windowTrend === "worsening") {
|
|
76
|
+
headlineVerdict = "worsening";
|
|
77
|
+
headlineRationale = `First run actionable ${first.category}/${first.severity} vs last run ${last.category}/${last.severity}: overall window worsened.`;
|
|
78
|
+
if (recurrenceBurden.crossRunFailure) {
|
|
79
|
+
headlineRationale += ` ${recurrenceBurden.rationale}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else if (windowTrend === "improving") {
|
|
83
|
+
headlineVerdict = "improving";
|
|
84
|
+
headlineRationale = `First run actionable ${first.category}/${first.severity} vs last run ${last.category}/${last.severity}: overall window improved.`;
|
|
85
|
+
if (pairwiseTrend === "worsening") {
|
|
86
|
+
headlineRationale +=
|
|
87
|
+
" Latest step backslid vs prior run (pairwise trend worsening) despite window-level improvement.";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else if (windowTrend === "mixed") {
|
|
91
|
+
headlineVerdict = "mixed";
|
|
92
|
+
headlineRationale = `Window trend mixed: first vs last actionable categories differ (${first.category} vs ${last.category}) without a single ordering rule.`;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
if (pairwiseTrend !== "unchanged") {
|
|
96
|
+
headlineVerdict = pairwiseTrend;
|
|
97
|
+
headlineRationale = `Window actionable unchanged (${last.category}/${last.severity}); immediate prior→current hop is ${pairwiseTrend}.`;
|
|
98
|
+
}
|
|
99
|
+
else if (recurrenceBurden.crossRunFailure) {
|
|
100
|
+
headlineVerdict = "mixed";
|
|
101
|
+
headlineRationale = `Window and pairwise actionable unchanged, but recurring failure patterns exist. ${recurrenceBurden.rationale}`;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
headlineVerdict = "unchanged";
|
|
105
|
+
headlineRationale = `Window and pairwise actionable posture unchanged; no cross-run recurring failure signatures.`;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
windowTrend,
|
|
110
|
+
pairwiseTrend,
|
|
111
|
+
recurrenceBurden,
|
|
112
|
+
headlineVerdict,
|
|
113
|
+
headlineRationale,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function capSortKeys(keys) {
|
|
117
|
+
return [...keys].sort(compareUtf16Id).slice(0, COMPARE_HIGHLIGHTS_MAX);
|
|
118
|
+
}
|
|
119
|
+
function buildCompareHighlights(bucketA, bucketB, patterns) {
|
|
120
|
+
const introduced = [];
|
|
121
|
+
const resolved = [];
|
|
122
|
+
const bothChurn = [];
|
|
123
|
+
for (const e of bucketA) {
|
|
124
|
+
if (e.kind === "introducedFailure")
|
|
125
|
+
introduced.push(e.logicalStepKey);
|
|
126
|
+
else if (e.kind === "resolvedFailure")
|
|
127
|
+
resolved.push(e.logicalStepKey);
|
|
128
|
+
else if (e.kind === "bothFailing") {
|
|
129
|
+
if (e.introducedStepReasonCodes.length > 0 || e.resolvedStepReasonCodes.length > 0) {
|
|
130
|
+
bothChurn.push({
|
|
131
|
+
logicalStepKey: e.logicalStepKey,
|
|
132
|
+
introducedStepReasonCodes: [...e.introducedStepReasonCodes],
|
|
133
|
+
resolvedStepReasonCodes: [...e.resolvedStepReasonCodes],
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const recurring = capSortKeys(patterns.map((p) => p.signature));
|
|
139
|
+
const bIntro = bucketB.introducedFailureSignatures
|
|
140
|
+
.slice()
|
|
141
|
+
.sort((a, b) => compareUtf16Id(a.signature, b.signature))
|
|
142
|
+
.slice(0, COMPARE_HIGHLIGHTS_MAX);
|
|
143
|
+
const bReso = bucketB.resolvedFailureSignatures
|
|
144
|
+
.slice()
|
|
145
|
+
.sort((a, b) => compareUtf16Id(a.signature, b.signature))
|
|
146
|
+
.slice(0, COMPARE_HIGHLIGHTS_MAX);
|
|
147
|
+
return {
|
|
148
|
+
introducedLogicalStepKeys: capSortKeys(introduced),
|
|
149
|
+
resolvedLogicalStepKeys: capSortKeys(resolved),
|
|
150
|
+
bothFailingChurn: bothChurn
|
|
151
|
+
.sort((a, b) => compareUtf16Id(a.logicalStepKey, b.logicalStepKey))
|
|
152
|
+
.slice(0, COMPARE_HIGHLIGHTS_MAX),
|
|
153
|
+
bucketBIntroducedSignatures: bIntro,
|
|
154
|
+
bucketBResolvedSignatures: bReso,
|
|
155
|
+
recurringSignatures: recurring,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function isFailing(status) {
|
|
159
|
+
return status !== "verified";
|
|
160
|
+
}
|
|
161
|
+
function codesFromReasons(reasons) {
|
|
162
|
+
return reasons.map((r) => r.code);
|
|
163
|
+
}
|
|
164
|
+
/** Multiset: expand to sorted array (lexicographic on code string) for deterministic serialization. */
|
|
165
|
+
function sortMultisetCodes(codes) {
|
|
166
|
+
return [...codes].sort(compareUtf16Id);
|
|
167
|
+
}
|
|
168
|
+
function multisetFromCodes(codes) {
|
|
169
|
+
const m = new Map();
|
|
170
|
+
for (const c of codes) {
|
|
171
|
+
m.set(c, (m.get(c) ?? 0) + 1);
|
|
172
|
+
}
|
|
173
|
+
return m;
|
|
174
|
+
}
|
|
175
|
+
/** a minus b (multiset). */
|
|
176
|
+
function multisetSubtract(a, b) {
|
|
177
|
+
const out = new Map();
|
|
178
|
+
for (const [k, va] of a) {
|
|
179
|
+
const vb = b.get(k) ?? 0;
|
|
180
|
+
const d = va - vb;
|
|
181
|
+
if (d > 0)
|
|
182
|
+
out.set(k, d);
|
|
183
|
+
}
|
|
184
|
+
return out;
|
|
185
|
+
}
|
|
186
|
+
function multisetToCodes(m) {
|
|
187
|
+
const out = [];
|
|
188
|
+
const keys = [...m.keys()].sort(compareUtf16Id);
|
|
189
|
+
for (const k of keys) {
|
|
190
|
+
const n = m.get(k) ?? 0;
|
|
191
|
+
for (let i = 0; i < n; i++)
|
|
192
|
+
out.push(k);
|
|
193
|
+
}
|
|
194
|
+
return out;
|
|
195
|
+
}
|
|
196
|
+
function getEffectRows(step) {
|
|
197
|
+
const raw = step.evidenceSummary?.effects;
|
|
198
|
+
if (!Array.isArray(raw))
|
|
199
|
+
return null;
|
|
200
|
+
const out = [];
|
|
201
|
+
for (const e of raw) {
|
|
202
|
+
if (e === null || typeof e !== "object")
|
|
203
|
+
continue;
|
|
204
|
+
const rec = e;
|
|
205
|
+
const id = rec.id;
|
|
206
|
+
const status = rec.status;
|
|
207
|
+
if (typeof id !== "string" || typeof status !== "string")
|
|
208
|
+
continue;
|
|
209
|
+
const reasons = Array.isArray(rec.reasons) ? rec.reasons : [];
|
|
210
|
+
out.push({ id, status: status, reasons });
|
|
211
|
+
}
|
|
212
|
+
return out.length > 0 ? out : null;
|
|
213
|
+
}
|
|
214
|
+
function canonicalEqKey(pairs) {
|
|
215
|
+
return [...pairs]
|
|
216
|
+
.slice()
|
|
217
|
+
.sort((a, b) => compareUtf16Id(a.column, b.column))
|
|
218
|
+
.map((x) => `${x.column}=${x.value}`)
|
|
219
|
+
.join("&");
|
|
220
|
+
}
|
|
221
|
+
/** Normative: see docs — sql_row / sql_effects key. */
|
|
222
|
+
export function logicalStepKeyFromStep(step) {
|
|
223
|
+
const vr = step.verificationRequest;
|
|
224
|
+
if (vr === null)
|
|
225
|
+
return null;
|
|
226
|
+
if (vr.kind === "sql_row") {
|
|
227
|
+
return `sql_row|${vr.table}|${canonicalEqKey(vr.identityEq)}`;
|
|
228
|
+
}
|
|
229
|
+
if (vr.kind === "sql_row_absent") {
|
|
230
|
+
return `sql_row_absent|${vr.table}|${canonicalEqKey(vr.identityEq)}|${canonicalEqKey(vr.filterEq)}`;
|
|
231
|
+
}
|
|
232
|
+
if (vr.kind === "sql_relational") {
|
|
233
|
+
const parts = [...vr.checks].sort((a, b) => compareUtf16Id(a.id, b.id));
|
|
234
|
+
const segs = parts.map((c) => {
|
|
235
|
+
if (c.checkKind === "related_exists") {
|
|
236
|
+
return `id|${c.id}|related_exists|${c.childTable}|${canonicalEqKey(c.matchEq)}|`;
|
|
237
|
+
}
|
|
238
|
+
if (c.checkKind === "aggregate") {
|
|
239
|
+
const w = [...c.whereEq]
|
|
240
|
+
.map((x) => `${x.column}=${x.value}`)
|
|
241
|
+
.sort((a, b) => compareUtf16Id(a, b))
|
|
242
|
+
.join("&");
|
|
243
|
+
return `id|${c.id}|aggregate|${c.table}|${c.fn}|${c.sumColumn ?? ""}|${c.expectOp}|${c.expectValue}|${w}|`;
|
|
244
|
+
}
|
|
245
|
+
if (c.checkKind === "anti_join") {
|
|
246
|
+
return `id|${c.id}|anti_join|${c.anchorTable}|${c.lookupTable}|${c.anchorColumn}|${c.lookupColumn}|${c.lookupPresenceColumn}|fa:${canonicalEqKey(c.filterEqAnchor)}|fl:${canonicalEqKey(c.filterEqLookup)}|`;
|
|
247
|
+
}
|
|
248
|
+
const w = [...c.whereEq]
|
|
249
|
+
.map((x) => `${x.side}.${x.column}=${x.value}`)
|
|
250
|
+
.sort((a, b) => compareUtf16Id(a, b))
|
|
251
|
+
.join("&");
|
|
252
|
+
return `id|${c.id}|join_count|${c.leftTable}|${c.rightTable}|${c.leftJoinColumn}|${c.rightJoinColumn}|${c.expectOp}|${c.expectValue}|${w}|`;
|
|
253
|
+
});
|
|
254
|
+
return `sql_relational|${segs.join("")}`;
|
|
255
|
+
}
|
|
256
|
+
const parts = [...vr.effects].sort((a, b) => compareUtf16Id(a.id, b.id));
|
|
257
|
+
const segs = parts.map((ef) => `id|${ef.id}|${ef.table}|${canonicalEqKey(ef.identityEq)}|`);
|
|
258
|
+
return `sql_effects|${segs.join("")}`;
|
|
259
|
+
}
|
|
260
|
+
export function buildLogicalStepKeyMap(steps) {
|
|
261
|
+
const map = new Map();
|
|
262
|
+
const ambiguous = [];
|
|
263
|
+
for (const step of steps) {
|
|
264
|
+
const key = logicalStepKeyFromStep(step);
|
|
265
|
+
if (key === null)
|
|
266
|
+
continue;
|
|
267
|
+
const existing = map.get(key);
|
|
268
|
+
if (!existing) {
|
|
269
|
+
map.set(key, step);
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
if (step.seq < existing.seq) {
|
|
273
|
+
ambiguous.push({
|
|
274
|
+
logicalStepKey: key,
|
|
275
|
+
chosenSeq: step.seq,
|
|
276
|
+
droppedSeq: existing.seq,
|
|
277
|
+
});
|
|
278
|
+
map.set(key, step);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
ambiguous.push({
|
|
282
|
+
logicalStepKey: key,
|
|
283
|
+
chosenSeq: existing.seq,
|
|
284
|
+
droppedSeq: step.seq,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return { map, ambiguous };
|
|
289
|
+
}
|
|
290
|
+
/** Failing-effect contributions only; UTF-16 sort by effect id. */
|
|
291
|
+
export function recurrenceSignature(step) {
|
|
292
|
+
const stepCodes = sortMultisetCodes(codesFromReasons(step.reasons));
|
|
293
|
+
let s = `${step.status}|${stepCodes.join(",")}`;
|
|
294
|
+
const effects = getEffectRows(step);
|
|
295
|
+
if (effects) {
|
|
296
|
+
const failing = effects.filter((e) => isFailing(e.status));
|
|
297
|
+
failing.sort((a, b) => compareUtf16Id(a.id, b.id));
|
|
298
|
+
for (const e of failing) {
|
|
299
|
+
const rc = sortMultisetCodes(codesFromReasons(e.reasons));
|
|
300
|
+
s += `|e:${e.id}:${e.status}:r:${rc.join(",")}`;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return s;
|
|
304
|
+
}
|
|
305
|
+
function runLevelCodeMultiset(result) {
|
|
306
|
+
return multisetFromCodes(result.runLevelReasons.map((r) => r.code));
|
|
307
|
+
}
|
|
308
|
+
function compareBucketAEntry(a, b) {
|
|
309
|
+
const keyA = "logicalStepKey" in a ? a.logicalStepKey : "";
|
|
310
|
+
const keyB = "logicalStepKey" in b ? b.logicalStepKey : "";
|
|
311
|
+
return compareUtf16Id(keyA, keyB);
|
|
312
|
+
}
|
|
313
|
+
function pairwiseBucketA(prior, current) {
|
|
314
|
+
const { map: mapP, ambiguous: ambP } = buildLogicalStepKeyMap(prior.steps);
|
|
315
|
+
const { map: mapC, ambiguous: ambC } = buildLogicalStepKeyMap(current.steps);
|
|
316
|
+
const ambiguous = [...ambP, ...ambC].sort((x, y) => compareUtf16Id(x.logicalStepKey, y.logicalStepKey));
|
|
317
|
+
const keys = new Set([...mapP.keys(), ...mapC.keys()]);
|
|
318
|
+
const entries = [];
|
|
319
|
+
for (const k of [...keys].sort(compareUtf16Id)) {
|
|
320
|
+
const sp = mapP.get(k);
|
|
321
|
+
const sc = mapC.get(k);
|
|
322
|
+
if (sp && !sc) {
|
|
323
|
+
entries.push({
|
|
324
|
+
kind: "structuralRemoval",
|
|
325
|
+
logicalStepKey: k,
|
|
326
|
+
seqPrior: sp.seq,
|
|
327
|
+
toolIdPrior: sp.toolId,
|
|
328
|
+
priorWasFailing: isFailing(sp.status),
|
|
329
|
+
});
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
if (!sp && sc) {
|
|
333
|
+
entries.push({
|
|
334
|
+
kind: "structuralAddition",
|
|
335
|
+
logicalStepKey: k,
|
|
336
|
+
seqCurrent: sc.seq,
|
|
337
|
+
toolIdCurrent: sc.toolId,
|
|
338
|
+
currentIsFailing: isFailing(sc.status),
|
|
339
|
+
});
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
if (!sp || !sc)
|
|
343
|
+
continue;
|
|
344
|
+
const toolIdChanged = sp.toolId !== sc.toolId;
|
|
345
|
+
const fp = isFailing(sp.status);
|
|
346
|
+
const fc = isFailing(sc.status);
|
|
347
|
+
if (!fp && !fc) {
|
|
348
|
+
entries.push({
|
|
349
|
+
kind: "unchangedOk",
|
|
350
|
+
logicalStepKey: k,
|
|
351
|
+
seqPrior: sp.seq,
|
|
352
|
+
seqCurrent: sc.seq,
|
|
353
|
+
toolIdPrior: sp.toolId,
|
|
354
|
+
toolIdCurrent: sc.toolId,
|
|
355
|
+
});
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
358
|
+
if (!fp && fc) {
|
|
359
|
+
entries.push({
|
|
360
|
+
kind: "introducedFailure",
|
|
361
|
+
logicalStepKey: k,
|
|
362
|
+
seqPrior: sp.seq,
|
|
363
|
+
seqCurrent: sc.seq,
|
|
364
|
+
toolIdPrior: sp.toolId,
|
|
365
|
+
toolIdCurrent: sc.toolId,
|
|
366
|
+
});
|
|
367
|
+
continue;
|
|
368
|
+
}
|
|
369
|
+
if (fp && !fc) {
|
|
370
|
+
entries.push({
|
|
371
|
+
kind: "resolvedFailure",
|
|
372
|
+
logicalStepKey: k,
|
|
373
|
+
seqPrior: sp.seq,
|
|
374
|
+
seqCurrent: sc.seq,
|
|
375
|
+
toolIdPrior: sp.toolId,
|
|
376
|
+
toolIdCurrent: sc.toolId,
|
|
377
|
+
});
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
const mP = multisetFromCodes(codesFromReasons(sp.reasons));
|
|
381
|
+
const mC = multisetFromCodes(codesFromReasons(sc.reasons));
|
|
382
|
+
const introducedStepReasonCodes = multisetToCodes(multisetSubtract(mC, mP));
|
|
383
|
+
const resolvedStepReasonCodes = multisetToCodes(multisetSubtract(mP, mC));
|
|
384
|
+
const effectsP = getEffectRows(sp);
|
|
385
|
+
const effectsC = getEffectRows(sc);
|
|
386
|
+
const effectDeltas = [];
|
|
387
|
+
if (effectsP || effectsC) {
|
|
388
|
+
const byP = new Map((effectsP ?? []).map((e) => [e.id, e]));
|
|
389
|
+
const byC = new Map((effectsC ?? []).map((e) => [e.id, e]));
|
|
390
|
+
const ids = new Set([...byP.keys(), ...byC.keys()]);
|
|
391
|
+
for (const id of [...ids].sort(compareUtf16Id)) {
|
|
392
|
+
const ep = byP.get(id);
|
|
393
|
+
const ec = byC.get(id);
|
|
394
|
+
if (ep && !ec) {
|
|
395
|
+
effectDeltas.push({
|
|
396
|
+
effectId: id,
|
|
397
|
+
kind: isFailing(ep.status) ? "resolvedFailure" : "unchangedOk",
|
|
398
|
+
introducedReasonCodes: [],
|
|
399
|
+
resolvedReasonCodes: sortMultisetCodes(codesFromReasons(ep.reasons)),
|
|
400
|
+
statusPrior: ep.status,
|
|
401
|
+
statusCurrent: null,
|
|
402
|
+
});
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
if (!ep && ec) {
|
|
406
|
+
effectDeltas.push({
|
|
407
|
+
effectId: id,
|
|
408
|
+
kind: isFailing(ec.status) ? "introducedFailure" : "unchangedOk",
|
|
409
|
+
introducedReasonCodes: sortMultisetCodes(codesFromReasons(ec.reasons)),
|
|
410
|
+
resolvedReasonCodes: [],
|
|
411
|
+
statusPrior: null,
|
|
412
|
+
statusCurrent: ec.status,
|
|
413
|
+
});
|
|
414
|
+
continue;
|
|
415
|
+
}
|
|
416
|
+
if (!ep || !ec)
|
|
417
|
+
continue;
|
|
418
|
+
const mp = multisetFromCodes(codesFromReasons(ep.reasons));
|
|
419
|
+
const mc = multisetFromCodes(codesFromReasons(ec.reasons));
|
|
420
|
+
const intro = multisetToCodes(multisetSubtract(mc, mp));
|
|
421
|
+
const reso = multisetToCodes(multisetSubtract(mp, mc));
|
|
422
|
+
const fpE = isFailing(ep.status);
|
|
423
|
+
const fcE = isFailing(ec.status);
|
|
424
|
+
let kind;
|
|
425
|
+
if (!fpE && !fcE) {
|
|
426
|
+
kind = "unchangedOk";
|
|
427
|
+
}
|
|
428
|
+
else if (!fpE && fcE) {
|
|
429
|
+
kind = "introducedFailure";
|
|
430
|
+
}
|
|
431
|
+
else if (fpE && !fcE) {
|
|
432
|
+
kind = "resolvedFailure";
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
kind = "bothFailing";
|
|
436
|
+
}
|
|
437
|
+
effectDeltas.push({
|
|
438
|
+
effectId: id,
|
|
439
|
+
kind,
|
|
440
|
+
introducedReasonCodes: intro,
|
|
441
|
+
resolvedReasonCodes: reso,
|
|
442
|
+
statusPrior: ep.status,
|
|
443
|
+
statusCurrent: ec.status,
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
entries.push({
|
|
448
|
+
kind: "bothFailing",
|
|
449
|
+
logicalStepKey: k,
|
|
450
|
+
seqPrior: sp.seq,
|
|
451
|
+
seqCurrent: sc.seq,
|
|
452
|
+
toolIdPrior: sp.toolId,
|
|
453
|
+
toolIdCurrent: sc.toolId,
|
|
454
|
+
toolIdChanged,
|
|
455
|
+
introducedStepReasonCodes,
|
|
456
|
+
resolvedStepReasonCodes,
|
|
457
|
+
effects: effectDeltas,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
entries.sort(compareBucketAEntry);
|
|
461
|
+
return { entries, ambiguous };
|
|
462
|
+
}
|
|
463
|
+
function pairwiseBucketB(prior, current) {
|
|
464
|
+
const sigsP = prior.steps
|
|
465
|
+
.filter((s) => s.verificationRequest === null && isFailing(s.status))
|
|
466
|
+
.map((s) => recurrenceSignature(s));
|
|
467
|
+
const sigsC = current.steps
|
|
468
|
+
.filter((s) => s.verificationRequest === null && isFailing(s.status))
|
|
469
|
+
.map((s) => recurrenceSignature(s));
|
|
470
|
+
const mP = multisetFromCodes(sigsP);
|
|
471
|
+
const mC = multisetFromCodes(sigsC);
|
|
472
|
+
const introduced = multisetToCodes(multisetSubtract(mC, mP));
|
|
473
|
+
const resolved = multisetToCodes(multisetSubtract(mP, mC));
|
|
474
|
+
const introducedMap = multisetFromCodes(introduced);
|
|
475
|
+
const resolvedMap = multisetFromCodes(resolved);
|
|
476
|
+
const unchanged = [];
|
|
477
|
+
for (const sig of [...new Set([...mP.keys(), ...mC.keys()])].sort(compareUtf16Id)) {
|
|
478
|
+
const n = Math.min(mP.get(sig) ?? 0, mC.get(sig) ?? 0);
|
|
479
|
+
if (n > 0)
|
|
480
|
+
unchanged.push({ signature: sig, matchedCount: n });
|
|
481
|
+
}
|
|
482
|
+
return {
|
|
483
|
+
introducedFailureSignatures: multisetToPairArray(introducedMap),
|
|
484
|
+
resolvedFailureSignatures: multisetToPairArray(resolvedMap),
|
|
485
|
+
unchangedFailureInstanceCounts: unchanged,
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
function multisetToPairArray(m) {
|
|
489
|
+
return [...m.entries()]
|
|
490
|
+
.sort((a, b) => compareUtf16Id(a[0], b[0]))
|
|
491
|
+
.map(([signature, count]) => ({ signature, count }));
|
|
492
|
+
}
|
|
493
|
+
function buildRecurrence(results) {
|
|
494
|
+
const signatureToRuns = new Map();
|
|
495
|
+
const signatureToExemplars = new Map();
|
|
496
|
+
for (let ri = 0; ri < results.length; ri++) {
|
|
497
|
+
const seen = new Set();
|
|
498
|
+
for (const step of results[ri].steps) {
|
|
499
|
+
if (!isFailing(step.status))
|
|
500
|
+
continue;
|
|
501
|
+
const sig = recurrenceSignature(step);
|
|
502
|
+
if (seen.has(sig))
|
|
503
|
+
continue;
|
|
504
|
+
seen.add(sig);
|
|
505
|
+
let set = signatureToRuns.get(sig);
|
|
506
|
+
if (!set) {
|
|
507
|
+
set = new Set();
|
|
508
|
+
signatureToRuns.set(sig, set);
|
|
509
|
+
}
|
|
510
|
+
set.add(ri);
|
|
511
|
+
let ex = signatureToExemplars.get(sig);
|
|
512
|
+
if (!ex) {
|
|
513
|
+
ex = [];
|
|
514
|
+
signatureToExemplars.set(sig, ex);
|
|
515
|
+
}
|
|
516
|
+
if (ex.length < 3) {
|
|
517
|
+
ex.push({ runIndex: ri, seq: step.seq, toolId: step.toolId });
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
const patterns = [];
|
|
522
|
+
for (const sig of [...signatureToRuns.keys()].sort(compareUtf16Id)) {
|
|
523
|
+
const runs = signatureToRuns.get(sig);
|
|
524
|
+
if (runs.size < 2)
|
|
525
|
+
continue;
|
|
526
|
+
const runIndices = [...runs].sort((a, b) => a - b);
|
|
527
|
+
patterns.push({
|
|
528
|
+
signature: sig,
|
|
529
|
+
runIndices,
|
|
530
|
+
runsHitCount: runs.size,
|
|
531
|
+
exemplars: signatureToExemplars.get(sig) ?? [],
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
return { patterns };
|
|
535
|
+
}
|
|
536
|
+
export function buildRunComparisonReport(results, displayLabels) {
|
|
537
|
+
if (results.length !== displayLabels.length) {
|
|
538
|
+
throw new Error("buildRunComparisonReport: results and displayLabels length mismatch");
|
|
539
|
+
}
|
|
540
|
+
if (results.length < 2) {
|
|
541
|
+
throw new Error("buildRunComparisonReport: at least two runs required");
|
|
542
|
+
}
|
|
543
|
+
const wf = results[0].workflowId;
|
|
544
|
+
for (const r of results) {
|
|
545
|
+
if (r.workflowId !== wf) {
|
|
546
|
+
throw new Error("buildRunComparisonReport: workflowId mismatch");
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
const n = results.length;
|
|
550
|
+
const prior = results[n - 2];
|
|
551
|
+
const current = results[n - 1];
|
|
552
|
+
const mP = runLevelCodeMultiset(prior);
|
|
553
|
+
const mC = runLevelCodeMultiset(current);
|
|
554
|
+
const { entries: bucketA, ambiguous } = pairwiseBucketA(prior, current);
|
|
555
|
+
const bucketB = pairwiseBucketB(prior, current);
|
|
556
|
+
const perRunActionableFailures = results.map((r, i) => perRunActionableFromWorkflowResult(r, i));
|
|
557
|
+
const categoryHistogram = buildCategoryHistogram(perRunActionableFailures);
|
|
558
|
+
const actionableCategoryRecurrence = buildActionableCategoryRecurrence(perRunActionableFailures);
|
|
559
|
+
const recurrence = buildRecurrence(results);
|
|
560
|
+
const reliabilityAssessment = buildReliabilityAssessment(perRunActionableFailures, n - 2, n - 1, recurrence.patterns);
|
|
561
|
+
const compareHighlights = buildCompareHighlights(bucketA, bucketB, recurrence.patterns);
|
|
562
|
+
return {
|
|
563
|
+
schemaVersion: 4,
|
|
564
|
+
workflowId: wf,
|
|
565
|
+
runs: results.map((_, i) => ({
|
|
566
|
+
runIndex: i,
|
|
567
|
+
displayLabel: displayLabels[i],
|
|
568
|
+
})),
|
|
569
|
+
perRunActionableFailures,
|
|
570
|
+
categoryHistogram,
|
|
571
|
+
actionableCategoryRecurrence,
|
|
572
|
+
pairwise: {
|
|
573
|
+
priorRunIndex: n - 2,
|
|
574
|
+
currentRunIndex: n - 1,
|
|
575
|
+
runLevel: {
|
|
576
|
+
introducedRunLevelCodes: multisetToCodes(multisetSubtract(mC, mP)),
|
|
577
|
+
resolvedRunLevelCodes: multisetToCodes(multisetSubtract(mP, mC)),
|
|
578
|
+
},
|
|
579
|
+
ambiguousLogicalKeyResolutions: ambiguous.map((a) => ({
|
|
580
|
+
logicalStepKey: a.logicalStepKey,
|
|
581
|
+
chosenSeq: a.chosenSeq,
|
|
582
|
+
droppedSeq: a.droppedSeq,
|
|
583
|
+
})),
|
|
584
|
+
bucketA,
|
|
585
|
+
bucketB,
|
|
586
|
+
},
|
|
587
|
+
recurrence,
|
|
588
|
+
reliabilityAssessment,
|
|
589
|
+
compareHighlights,
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
export function formatRunComparisonReport(report) {
|
|
593
|
+
const lines = [];
|
|
594
|
+
lines.push(`cross_run_comparison:`);
|
|
595
|
+
lines.push(` workflow_id: ${report.workflowId}`);
|
|
596
|
+
lines.push(` runs: ${report.runs.map((r) => `${r.runIndex}=${r.displayLabel}`).join(", ")}`);
|
|
597
|
+
lines.push(` per_run_actionable: ${report.perRunActionableFailures.map((p) => `${p.runIndex}=${p.category}/${p.severity}/${p.recommendedAction}/${p.automationSafe}`).join(", ")}`);
|
|
598
|
+
lines.push(` category_histogram: ${report.categoryHistogram.map((h) => `${h.category}×${h.count}`).join("; ") || "(none)"}`);
|
|
599
|
+
lines.push(` actionable_category_recurrence:`);
|
|
600
|
+
for (const row of report.actionableCategoryRecurrence) {
|
|
601
|
+
lines.push(` - ${row.category} indices=${row.runIndicesAscending.join(",")} hits=${row.runsHitCount} max_streak=${row.maxConsecutiveRunStreak}`);
|
|
602
|
+
}
|
|
603
|
+
lines.push(` pairwise: prior_run_index=${report.pairwise.priorRunIndex} current_run_index=${report.pairwise.currentRunIndex}`);
|
|
604
|
+
const rl = report.pairwise.runLevel;
|
|
605
|
+
lines.push(` run_level_introduced: ${rl.introducedRunLevelCodes.length ? rl.introducedRunLevelCodes.join(", ") : "(none)"}`);
|
|
606
|
+
lines.push(` run_level_resolved: ${rl.resolvedRunLevelCodes.length ? rl.resolvedRunLevelCodes.join(", ") : "(none)"}`);
|
|
607
|
+
if (report.pairwise.ambiguousLogicalKeyResolutions.length) {
|
|
608
|
+
lines.push(` ambiguous_logical_keys:`);
|
|
609
|
+
for (const a of report.pairwise.ambiguousLogicalKeyResolutions) {
|
|
610
|
+
lines.push(` - key=${a.logicalStepKey} kept_seq=${a.chosenSeq} dropped_seq=${a.droppedSeq}`);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
lines.push(` bucket_a:`);
|
|
614
|
+
for (const e of report.pairwise.bucketA) {
|
|
615
|
+
if (e.kind === "unchangedOk") {
|
|
616
|
+
lines.push(` - unchanged_ok key=${e.logicalStepKey} seq_prior=${e.seqPrior} seq_current=${e.seqCurrent} tool_prior=${e.toolIdPrior} tool_current=${e.toolIdCurrent}`);
|
|
617
|
+
}
|
|
618
|
+
else if (e.kind === "introducedFailure") {
|
|
619
|
+
lines.push(` - introduced_failure key=${e.logicalStepKey} seq_current=${e.seqCurrent} tool_current=${e.toolIdCurrent}`);
|
|
620
|
+
}
|
|
621
|
+
else if (e.kind === "resolvedFailure") {
|
|
622
|
+
lines.push(` - resolved_failure key=${e.logicalStepKey} seq_prior=${e.seqPrior} tool_prior=${e.toolIdPrior}`);
|
|
623
|
+
}
|
|
624
|
+
else if (e.kind === "structuralRemoval") {
|
|
625
|
+
lines.push(` - structural_removal key=${e.logicalStepKey} seq_prior=${e.seqPrior} prior_was_failing=${e.priorWasFailing}`);
|
|
626
|
+
}
|
|
627
|
+
else if (e.kind === "structuralAddition") {
|
|
628
|
+
lines.push(` - structural_addition key=${e.logicalStepKey} seq_current=${e.seqCurrent} current_is_failing=${e.currentIsFailing}`);
|
|
629
|
+
}
|
|
630
|
+
else if (e.kind === "bothFailing") {
|
|
631
|
+
lines.push(` - both_failing key=${e.logicalStepKey} seq_prior=${e.seqPrior} seq_current=${e.seqCurrent} tool_id_changed=${e.toolIdChanged} introduced_reasons=${e.introducedStepReasonCodes.join(",") || "(none)"} resolved_reasons=${e.resolvedStepReasonCodes.join(",") || "(none)"}`);
|
|
632
|
+
for (const ef of e.effects) {
|
|
633
|
+
lines.push(` effect ${ef.effectId}: ${ef.kind} intro=${ef.introducedReasonCodes.join(",") || "(none)"} resolved=${ef.resolvedReasonCodes.join(",") || "(none)"}`);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
const b = report.pairwise.bucketB;
|
|
638
|
+
lines.push(` bucket_b_null_request:`);
|
|
639
|
+
lines.push(` introduced_signatures: ${b.introducedFailureSignatures.map((x) => `${x.signature}×${x.count}`).join("; ") || "(none)"}`);
|
|
640
|
+
lines.push(` resolved_signatures: ${b.resolvedFailureSignatures.map((x) => `${x.signature}×${x.count}`).join("; ") || "(none)"}`);
|
|
641
|
+
lines.push(` unchanged_instance_counts: ${b.unchangedFailureInstanceCounts.map((x) => `${x.signature}×${x.matchedCount}`).join("; ") || "(none)"}`);
|
|
642
|
+
lines.push(` recurrence_patterns:`);
|
|
643
|
+
if (report.recurrence.patterns.length === 0) {
|
|
644
|
+
lines.push(` (none)`);
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
for (const p of report.recurrence.patterns) {
|
|
648
|
+
lines.push(` - runs=${p.runIndices.join(",")} hit_count=${p.runsHitCount}`);
|
|
649
|
+
lines.push(` signature: ${p.signature}`);
|
|
650
|
+
for (const ex of p.exemplars) {
|
|
651
|
+
lines.push(` exemplar: run=${ex.runIndex} seq=${ex.seq} tool=${ex.toolId}`);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
const ra = report.reliabilityAssessment;
|
|
656
|
+
lines.push(` reliability_assessment:`);
|
|
657
|
+
lines.push(` window_trend: ${ra.windowTrend}`);
|
|
658
|
+
lines.push(` pairwise_trend: ${ra.pairwiseTrend}`);
|
|
659
|
+
lines.push(` recurrence_pattern_count: ${ra.recurrenceBurden.patternCount}`);
|
|
660
|
+
lines.push(` recurrence_max_runs_hit: ${ra.recurrenceBurden.maxRunsHitCount}`);
|
|
661
|
+
lines.push(` recurrence_cross_run_failure: ${ra.recurrenceBurden.crossRunFailure}`);
|
|
662
|
+
lines.push(` recurrence_rationale: ${ra.recurrenceBurden.rationale}`);
|
|
663
|
+
lines.push(` headline_verdict: ${ra.headlineVerdict}`);
|
|
664
|
+
lines.push(` headline_rationale: ${ra.headlineRationale}`);
|
|
665
|
+
const ch = report.compareHighlights;
|
|
666
|
+
lines.push(` compare_highlights:`);
|
|
667
|
+
lines.push(` introduced_keys: ${ch.introducedLogicalStepKeys.join("; ") || "(none)"}`);
|
|
668
|
+
lines.push(` resolved_keys: ${ch.resolvedLogicalStepKeys.join("; ") || "(none)"}`);
|
|
669
|
+
lines.push(` both_failing_churn_count: ${ch.bothFailingChurn.length}`);
|
|
670
|
+
lines.push(` bucket_b_introduced: ${ch.bucketBIntroducedSignatures.map((x) => `${x.signature}×${x.count}`).join("; ") || "(none)"}`);
|
|
671
|
+
lines.push(` bucket_b_resolved: ${ch.bucketBResolvedSignatures.map((x) => `${x.signature}×${x.count}`).join("; ") || "(none)"}`);
|
|
672
|
+
lines.push(` recurring_signatures: ${ch.recurringSignatures.join("; ") || "(none)"}`);
|
|
673
|
+
return lines.join("\n");
|
|
674
|
+
}
|
|
675
|
+
//# sourceMappingURL=runComparison.js.map
|