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
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,706 @@
|
|
|
1
|
+
import type { FailureOrigin } from "./failureOriginTypes.js";
|
|
2
|
+
/** v1 wire line: `tool_observed` without `runEventId`. */
|
|
3
|
+
export type ToolObservedEventV1 = {
|
|
4
|
+
schemaVersion: 1;
|
|
5
|
+
workflowId: string;
|
|
6
|
+
seq: number;
|
|
7
|
+
type: "tool_observed";
|
|
8
|
+
toolId: string;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
timestamp?: string;
|
|
11
|
+
};
|
|
12
|
+
/** v2 wire line: same tool fields plus stable graph ids. */
|
|
13
|
+
export type ToolObservedEventV2 = {
|
|
14
|
+
schemaVersion: 2;
|
|
15
|
+
workflowId: string;
|
|
16
|
+
runEventId: string;
|
|
17
|
+
parentRunEventId?: string;
|
|
18
|
+
type: "tool_observed";
|
|
19
|
+
seq: number;
|
|
20
|
+
toolId: string;
|
|
21
|
+
params: Record<string, unknown>;
|
|
22
|
+
timestamp?: string;
|
|
23
|
+
};
|
|
24
|
+
export type ToolObservedEvent = ToolObservedEventV1 | ToolObservedEventV2;
|
|
25
|
+
export type ModelTurnRunEvent = {
|
|
26
|
+
schemaVersion: 2;
|
|
27
|
+
workflowId: string;
|
|
28
|
+
runEventId: string;
|
|
29
|
+
parentRunEventId?: string;
|
|
30
|
+
type: "model_turn";
|
|
31
|
+
status: "completed" | "error" | "aborted" | "incomplete";
|
|
32
|
+
summary?: string;
|
|
33
|
+
timestamp?: string;
|
|
34
|
+
};
|
|
35
|
+
export type RetrievalRunEvent = {
|
|
36
|
+
schemaVersion: 2;
|
|
37
|
+
workflowId: string;
|
|
38
|
+
runEventId: string;
|
|
39
|
+
parentRunEventId?: string;
|
|
40
|
+
type: "retrieval";
|
|
41
|
+
source: string;
|
|
42
|
+
status: "ok" | "empty" | "error";
|
|
43
|
+
querySummary?: string;
|
|
44
|
+
hitCount?: number;
|
|
45
|
+
timestamp?: string;
|
|
46
|
+
};
|
|
47
|
+
export type ControlRunEvent = {
|
|
48
|
+
schemaVersion: 2;
|
|
49
|
+
workflowId: string;
|
|
50
|
+
runEventId: string;
|
|
51
|
+
parentRunEventId?: string;
|
|
52
|
+
type: "control";
|
|
53
|
+
controlKind: "branch" | "loop" | "interrupt" | "gate" | "run_completed";
|
|
54
|
+
label?: string;
|
|
55
|
+
decision?: "taken" | "skipped";
|
|
56
|
+
timestamp?: string;
|
|
57
|
+
};
|
|
58
|
+
export type ToolSkippedRunEvent = {
|
|
59
|
+
schemaVersion: 2;
|
|
60
|
+
workflowId: string;
|
|
61
|
+
runEventId: string;
|
|
62
|
+
parentRunEventId?: string;
|
|
63
|
+
type: "tool_skipped";
|
|
64
|
+
toolId: string;
|
|
65
|
+
reason: string;
|
|
66
|
+
timestamp?: string;
|
|
67
|
+
};
|
|
68
|
+
export type RunEvent = ToolObservedEvent | ModelTurnRunEvent | RetrievalRunEvent | ControlRunEvent | ToolSkippedRunEvent;
|
|
69
|
+
/** Single equality pair in registry (column + scalar or pointer). */
|
|
70
|
+
export type RegistryEqualityPair = {
|
|
71
|
+
column: {
|
|
72
|
+
const: string;
|
|
73
|
+
} | {
|
|
74
|
+
pointer: string;
|
|
75
|
+
};
|
|
76
|
+
value: {
|
|
77
|
+
const: string | number | boolean | null;
|
|
78
|
+
} | {
|
|
79
|
+
pointer: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/** Registry row verification (table, identityEq, requiredFields pointers) without discriminant. */
|
|
83
|
+
export type SqlRowVerificationSpec = {
|
|
84
|
+
table: {
|
|
85
|
+
const: string;
|
|
86
|
+
} | {
|
|
87
|
+
pointer: string;
|
|
88
|
+
};
|
|
89
|
+
identityEq: RegistryEqualityPair[];
|
|
90
|
+
requiredFields: {
|
|
91
|
+
pointer: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/** Registry negative row existence (no requiredFields). */
|
|
95
|
+
export type SqlRowAbsentVerificationSpec = {
|
|
96
|
+
table: {
|
|
97
|
+
const: string;
|
|
98
|
+
} | {
|
|
99
|
+
pointer: string;
|
|
100
|
+
};
|
|
101
|
+
identityEq: RegistryEqualityPair[];
|
|
102
|
+
filterEq?: RegistryEqualityPair[];
|
|
103
|
+
};
|
|
104
|
+
/** Expectation for aggregate / join_count (numeric only). */
|
|
105
|
+
export type RelationalExpectSpec = {
|
|
106
|
+
op: "eq" | "gte" | "lte";
|
|
107
|
+
value: {
|
|
108
|
+
const: number;
|
|
109
|
+
} | {
|
|
110
|
+
pointer: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
export type SqlRelationalCheckSpec = {
|
|
114
|
+
checkKind: "aggregate";
|
|
115
|
+
id: string;
|
|
116
|
+
table: {
|
|
117
|
+
const: string;
|
|
118
|
+
} | {
|
|
119
|
+
pointer: string;
|
|
120
|
+
};
|
|
121
|
+
fn: "COUNT_STAR" | "SUM";
|
|
122
|
+
sumColumn?: {
|
|
123
|
+
const: string;
|
|
124
|
+
} | {
|
|
125
|
+
pointer: string;
|
|
126
|
+
};
|
|
127
|
+
whereEq?: Array<{
|
|
128
|
+
column: {
|
|
129
|
+
const: string;
|
|
130
|
+
} | {
|
|
131
|
+
pointer: string;
|
|
132
|
+
};
|
|
133
|
+
value: {
|
|
134
|
+
const: string | number | boolean | null;
|
|
135
|
+
} | {
|
|
136
|
+
pointer: string;
|
|
137
|
+
};
|
|
138
|
+
}>;
|
|
139
|
+
expect: RelationalExpectSpec;
|
|
140
|
+
} | {
|
|
141
|
+
checkKind: "join_count";
|
|
142
|
+
id: string;
|
|
143
|
+
leftTable: {
|
|
144
|
+
const: string;
|
|
145
|
+
} | {
|
|
146
|
+
pointer: string;
|
|
147
|
+
};
|
|
148
|
+
rightTable: {
|
|
149
|
+
const: string;
|
|
150
|
+
} | {
|
|
151
|
+
pointer: string;
|
|
152
|
+
};
|
|
153
|
+
join: {
|
|
154
|
+
leftColumn: {
|
|
155
|
+
const: string;
|
|
156
|
+
} | {
|
|
157
|
+
pointer: string;
|
|
158
|
+
};
|
|
159
|
+
rightColumn: {
|
|
160
|
+
const: string;
|
|
161
|
+
} | {
|
|
162
|
+
pointer: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
whereEq?: Array<{
|
|
166
|
+
tableSide: "left" | "right";
|
|
167
|
+
column: {
|
|
168
|
+
const: string;
|
|
169
|
+
} | {
|
|
170
|
+
pointer: string;
|
|
171
|
+
};
|
|
172
|
+
value: {
|
|
173
|
+
const: string | number | boolean | null;
|
|
174
|
+
} | {
|
|
175
|
+
pointer: string;
|
|
176
|
+
};
|
|
177
|
+
}>;
|
|
178
|
+
expect: RelationalExpectSpec;
|
|
179
|
+
} | {
|
|
180
|
+
checkKind: "related_exists";
|
|
181
|
+
id: string;
|
|
182
|
+
childTable: {
|
|
183
|
+
const: string;
|
|
184
|
+
} | {
|
|
185
|
+
pointer: string;
|
|
186
|
+
};
|
|
187
|
+
matchEq: RegistryEqualityPair[];
|
|
188
|
+
} | {
|
|
189
|
+
checkKind: "anti_join";
|
|
190
|
+
id: string;
|
|
191
|
+
anchorTable: {
|
|
192
|
+
const: string;
|
|
193
|
+
} | {
|
|
194
|
+
pointer: string;
|
|
195
|
+
};
|
|
196
|
+
lookupTable: {
|
|
197
|
+
const: string;
|
|
198
|
+
} | {
|
|
199
|
+
pointer: string;
|
|
200
|
+
};
|
|
201
|
+
anchorColumn: {
|
|
202
|
+
const: string;
|
|
203
|
+
} | {
|
|
204
|
+
pointer: string;
|
|
205
|
+
};
|
|
206
|
+
lookupColumn: {
|
|
207
|
+
const: string;
|
|
208
|
+
} | {
|
|
209
|
+
pointer: string;
|
|
210
|
+
};
|
|
211
|
+
lookupPresenceColumn: {
|
|
212
|
+
const: string;
|
|
213
|
+
} | {
|
|
214
|
+
pointer: string;
|
|
215
|
+
};
|
|
216
|
+
filterEqAnchor?: RegistryEqualityPair[];
|
|
217
|
+
filterEqLookup?: RegistryEqualityPair[];
|
|
218
|
+
};
|
|
219
|
+
export type ToolRegistryVerification = ({
|
|
220
|
+
kind: "sql_row";
|
|
221
|
+
} & SqlRowVerificationSpec) | ({
|
|
222
|
+
kind: "sql_row_absent";
|
|
223
|
+
} & SqlRowAbsentVerificationSpec) | {
|
|
224
|
+
kind: "sql_effects";
|
|
225
|
+
effects: Array<{
|
|
226
|
+
id: string;
|
|
227
|
+
} & SqlRowVerificationSpec>;
|
|
228
|
+
} | {
|
|
229
|
+
kind: "sql_relational";
|
|
230
|
+
checks: SqlRelationalCheckSpec[];
|
|
231
|
+
};
|
|
232
|
+
export type ToolRegistryEntry = {
|
|
233
|
+
toolId: string;
|
|
234
|
+
effectDescriptionTemplate: string;
|
|
235
|
+
verification: ToolRegistryVerification;
|
|
236
|
+
};
|
|
237
|
+
export type VerificationScalar = string | number | boolean | null;
|
|
238
|
+
/** Resolved AND identity (unique columns, UTF-16 sorted by column name). */
|
|
239
|
+
export type IdentityEqPair = {
|
|
240
|
+
column: string;
|
|
241
|
+
value: string;
|
|
242
|
+
};
|
|
243
|
+
export type VerificationRequest = {
|
|
244
|
+
kind: "sql_row";
|
|
245
|
+
table: string;
|
|
246
|
+
identityEq: IdentityEqPair[];
|
|
247
|
+
requiredFields: Record<string, VerificationScalar>;
|
|
248
|
+
};
|
|
249
|
+
export type RowAbsentVerificationRequest = {
|
|
250
|
+
kind: "sql_row_absent";
|
|
251
|
+
table: string;
|
|
252
|
+
identityEq: IdentityEqPair[];
|
|
253
|
+
filterEq: IdentityEqPair[];
|
|
254
|
+
};
|
|
255
|
+
/** One resolved row check with stable id (registry `sql_effects` only). */
|
|
256
|
+
export type ResolvedEffect = {
|
|
257
|
+
id: string;
|
|
258
|
+
request: VerificationRequest;
|
|
259
|
+
};
|
|
260
|
+
/** Resolved relational check (no pointers). */
|
|
261
|
+
export type ResolvedRelationalCheck = {
|
|
262
|
+
checkKind: "related_exists";
|
|
263
|
+
id: string;
|
|
264
|
+
childTable: string;
|
|
265
|
+
matchEq: Array<{
|
|
266
|
+
column: string;
|
|
267
|
+
value: string;
|
|
268
|
+
}>;
|
|
269
|
+
} | {
|
|
270
|
+
checkKind: "aggregate";
|
|
271
|
+
id: string;
|
|
272
|
+
table: string;
|
|
273
|
+
fn: "COUNT_STAR" | "SUM";
|
|
274
|
+
sumColumn?: string;
|
|
275
|
+
whereEq: Array<{
|
|
276
|
+
column: string;
|
|
277
|
+
value: string;
|
|
278
|
+
}>;
|
|
279
|
+
expectOp: "eq" | "gte" | "lte";
|
|
280
|
+
expectValue: number;
|
|
281
|
+
} | {
|
|
282
|
+
checkKind: "join_count";
|
|
283
|
+
id: string;
|
|
284
|
+
leftTable: string;
|
|
285
|
+
rightTable: string;
|
|
286
|
+
leftJoinColumn: string;
|
|
287
|
+
rightJoinColumn: string;
|
|
288
|
+
whereEq: Array<{
|
|
289
|
+
side: "left" | "right";
|
|
290
|
+
column: string;
|
|
291
|
+
value: string;
|
|
292
|
+
}>;
|
|
293
|
+
expectOp: "eq" | "gte" | "lte";
|
|
294
|
+
expectValue: number;
|
|
295
|
+
} | {
|
|
296
|
+
checkKind: "anti_join";
|
|
297
|
+
id: string;
|
|
298
|
+
anchorTable: string;
|
|
299
|
+
lookupTable: string;
|
|
300
|
+
anchorColumn: string;
|
|
301
|
+
lookupColumn: string;
|
|
302
|
+
lookupPresenceColumn: string;
|
|
303
|
+
filterEqAnchor: Array<{
|
|
304
|
+
column: string;
|
|
305
|
+
value: string;
|
|
306
|
+
}>;
|
|
307
|
+
filterEqLookup: Array<{
|
|
308
|
+
column: string;
|
|
309
|
+
value: string;
|
|
310
|
+
}>;
|
|
311
|
+
};
|
|
312
|
+
/** One resolved relational check with stable id (registry `sql_relational`). */
|
|
313
|
+
export type ResolvedRelationalItem = {
|
|
314
|
+
id: string;
|
|
315
|
+
check: ResolvedRelationalCheck;
|
|
316
|
+
};
|
|
317
|
+
/** Emitted on the step when registry used `sql_effects`. */
|
|
318
|
+
export type SqlEffectsVerificationPayload = {
|
|
319
|
+
kind: "sql_effects";
|
|
320
|
+
effects: Array<{
|
|
321
|
+
id: string;
|
|
322
|
+
kind: "sql_row";
|
|
323
|
+
table: string;
|
|
324
|
+
identityEq: IdentityEqPair[];
|
|
325
|
+
requiredFields: Record<string, VerificationScalar>;
|
|
326
|
+
}>;
|
|
327
|
+
};
|
|
328
|
+
/** Emitted when registry used `sql_relational`. */
|
|
329
|
+
export type SqlRelationalVerificationPayload = {
|
|
330
|
+
kind: "sql_relational";
|
|
331
|
+
checks: ResolvedRelationalCheck[];
|
|
332
|
+
};
|
|
333
|
+
export type StepVerificationRequest = VerificationRequest | RowAbsentVerificationRequest | SqlEffectsVerificationPayload | SqlRelationalVerificationPayload | null;
|
|
334
|
+
export type StepStatus = "verified" | "missing" | "inconsistent" | "incomplete_verification" | "partially_verified" | "uncertain";
|
|
335
|
+
/** Active verification timing/consistency contract (emitted on WorkflowResult). */
|
|
336
|
+
export type VerificationPolicy = {
|
|
337
|
+
consistencyMode: "strong" | "eventual";
|
|
338
|
+
verificationWindowMs: number;
|
|
339
|
+
pollIntervalMs: number;
|
|
340
|
+
};
|
|
341
|
+
export type Reason = {
|
|
342
|
+
code: string;
|
|
343
|
+
message: string;
|
|
344
|
+
field?: string;
|
|
345
|
+
};
|
|
346
|
+
/** Present on wire when `status !== "verified"`; omitted when verified (schema v5). */
|
|
347
|
+
export type FailureDiagnostic = "workflow_execution" | "verification_setup" | "observation_uncertainty";
|
|
348
|
+
/** Rendered registry template for the evaluated tool_observed step (audit / review). */
|
|
349
|
+
export type IntendedEffect = {
|
|
350
|
+
narrative: string;
|
|
351
|
+
};
|
|
352
|
+
/** Canonical digest of evaluated `tool_observed.params` (same serialization as retry divergence). */
|
|
353
|
+
export type ObservedExecution = {
|
|
354
|
+
paramsCanonical: string;
|
|
355
|
+
};
|
|
356
|
+
export type StepOutcome = {
|
|
357
|
+
seq: number;
|
|
358
|
+
toolId: string;
|
|
359
|
+
intendedEffect: IntendedEffect;
|
|
360
|
+
observedExecution: ObservedExecution;
|
|
361
|
+
verificationRequest: StepVerificationRequest;
|
|
362
|
+
status: StepStatus;
|
|
363
|
+
reasons: Reason[];
|
|
364
|
+
evidenceSummary: Record<string, unknown>;
|
|
365
|
+
/** Observations in this logical step (same seq), capture order. */
|
|
366
|
+
repeatObservationCount: number;
|
|
367
|
+
/** 1-based; equals repeatObservationCount (last in capture order is evaluated). */
|
|
368
|
+
evaluatedObservationOrdinal: number;
|
|
369
|
+
/** Required when status is not verified; must be absent when status is verified. */
|
|
370
|
+
failureDiagnostic?: FailureDiagnostic;
|
|
371
|
+
};
|
|
372
|
+
export type WorkflowStatus = "complete" | "incomplete" | "inconsistent";
|
|
373
|
+
export type EventSequenceIntegrity = {
|
|
374
|
+
kind: "normal";
|
|
375
|
+
} | {
|
|
376
|
+
kind: "irregular";
|
|
377
|
+
reasons: Reason[];
|
|
378
|
+
};
|
|
379
|
+
/** Summary of the last run event in capture order (for execution-path completeness signals). */
|
|
380
|
+
export type VerificationRunContextLastEvent = {
|
|
381
|
+
ingestIndex: number;
|
|
382
|
+
type: RunEvent["type"];
|
|
383
|
+
modelTurnStatus?: ModelTurnRunEvent["status"];
|
|
384
|
+
};
|
|
385
|
+
/** Digest of v2 run graph + tool_observed positions; built at verify time from `runEvents`. */
|
|
386
|
+
export type VerificationRunContext = {
|
|
387
|
+
maxWireSchemaVersion: 1 | 2;
|
|
388
|
+
retrievalEvents: Array<{
|
|
389
|
+
ingestIndex: number;
|
|
390
|
+
runEventId: string | null;
|
|
391
|
+
source: string;
|
|
392
|
+
status: "ok" | "empty" | "error";
|
|
393
|
+
hitCount?: number;
|
|
394
|
+
}>;
|
|
395
|
+
controlEvents: Array<{
|
|
396
|
+
ingestIndex: number;
|
|
397
|
+
runEventId: string | null;
|
|
398
|
+
controlKind: ControlRunEvent["controlKind"];
|
|
399
|
+
decision?: "taken" | "skipped";
|
|
400
|
+
label?: string;
|
|
401
|
+
}>;
|
|
402
|
+
modelTurnEvents: Array<{
|
|
403
|
+
ingestIndex: number;
|
|
404
|
+
runEventId: string | null;
|
|
405
|
+
status: ModelTurnRunEvent["status"];
|
|
406
|
+
}>;
|
|
407
|
+
toolSkippedEvents: Array<{
|
|
408
|
+
ingestIndex: number;
|
|
409
|
+
toolId: string;
|
|
410
|
+
reason: string;
|
|
411
|
+
}>;
|
|
412
|
+
/** Last capture-order ingest index per tool_observed seq (string keys in JSON). */
|
|
413
|
+
toolObservedIngestIndexBySeq: Record<string, number>;
|
|
414
|
+
/** Minimum ingest index among `tool_observed` events; null if none. */
|
|
415
|
+
firstToolObservedIngestIndex: number | null;
|
|
416
|
+
/** True if any v2 `control` event has `controlKind === "run_completed"`. */
|
|
417
|
+
hasRunCompletedControl: boolean;
|
|
418
|
+
/** Last event in capture order; null if `runEvents` was empty. */
|
|
419
|
+
lastRunEvent: VerificationRunContextLastEvent | null;
|
|
420
|
+
};
|
|
421
|
+
export type FailureConfidence = "high" | "medium" | "low";
|
|
422
|
+
export type ActionableFailureCategory = "decision_error" | "bad_input" | "retrieval_failure" | "control_flow_problem" | "state_inconsistency" | "downstream_execution_failure" | "ambiguous" | "unclassified";
|
|
423
|
+
export type ActionableFailureSeverity = "high" | "medium" | "low";
|
|
424
|
+
/** Closed set; mirrors `schemas/workflow-truth-report.schema.json` → `$defs/recommendedAction`. */
|
|
425
|
+
export type RecommendedActionCode = "none" | "manual_review" | "deduplicate" | "reconcile_downstream_state" | "correct_verification_inputs" | "improve_read_connectivity" | "resolve_multi_effect_failures" | "align_tool_observations" | "fix_event_ingest_and_steps" | "fix_event_sequence_order" | "fix_run_context_controls" | "fix_cli_usage" | "fix_registry_events_or_compare_files" | "fix_verification_database_connection" | "fix_saved_workflow_json" | "fix_compare_workflow_inputs" | "fix_execution_trace_structure" | "fix_verification_policy_and_hook" | "fix_plan_document_and_patterns" | "fix_plan_transition_cli_and_refs" | "upgrade_git_or_retry_git";
|
|
426
|
+
export declare const RECOMMENDED_ACTION_CODES: readonly ["none", "manual_review", "deduplicate", "reconcile_downstream_state", "correct_verification_inputs", "improve_read_connectivity", "resolve_multi_effect_failures", "align_tool_observations", "fix_event_ingest_and_steps", "fix_event_sequence_order", "fix_run_context_controls", "fix_cli_usage", "fix_registry_events_or_compare_files", "fix_verification_database_connection", "fix_saved_workflow_json", "fix_compare_workflow_inputs", "fix_execution_trace_structure", "fix_verification_policy_and_hook", "fix_plan_document_and_patterns", "fix_plan_transition_cli_and_refs", "upgrade_git_or_retry_git"];
|
|
427
|
+
export type ActionableFailure = {
|
|
428
|
+
category: ActionableFailureCategory;
|
|
429
|
+
severity: ActionableFailureSeverity;
|
|
430
|
+
recommendedAction: RecommendedActionCode;
|
|
431
|
+
automationSafe: boolean;
|
|
432
|
+
};
|
|
433
|
+
export type FailureAnalysisEvidenceItem = {
|
|
434
|
+
scope: "run_context" | "run_level" | "event_sequence" | "step" | "effect";
|
|
435
|
+
codes?: string[];
|
|
436
|
+
ingestIndex?: number;
|
|
437
|
+
seq?: number;
|
|
438
|
+
toolId?: string;
|
|
439
|
+
effectId?: string;
|
|
440
|
+
source?: string;
|
|
441
|
+
runEventId?: string | null;
|
|
442
|
+
};
|
|
443
|
+
export type FailureAnalysisAlternative = {
|
|
444
|
+
primaryOrigin: FailureOrigin;
|
|
445
|
+
rationale: string;
|
|
446
|
+
};
|
|
447
|
+
/** Built by `buildFailureAnalysis`; enriched with `actionableFailure` in `buildWorkflowTruthReport`. */
|
|
448
|
+
export type FailureAnalysisBase = {
|
|
449
|
+
summary: string;
|
|
450
|
+
primaryOrigin: FailureOrigin;
|
|
451
|
+
confidence: FailureConfidence;
|
|
452
|
+
/** Reason codes not present in SSOT origin maps (sorted unique). */
|
|
453
|
+
unknownReasonCodes: string[];
|
|
454
|
+
evidence: FailureAnalysisEvidenceItem[];
|
|
455
|
+
alternativeHypotheses?: FailureAnalysisAlternative[];
|
|
456
|
+
};
|
|
457
|
+
export type FailureAnalysis = FailureAnalysisBase & {
|
|
458
|
+
actionableFailure: ActionableFailure;
|
|
459
|
+
};
|
|
460
|
+
export type CliFailureDiagnosis = {
|
|
461
|
+
summary: string;
|
|
462
|
+
primaryOrigin: FailureOrigin;
|
|
463
|
+
confidence: FailureConfidence;
|
|
464
|
+
evidence: Array<{
|
|
465
|
+
referenceCode: string;
|
|
466
|
+
}>;
|
|
467
|
+
actionableFailure: ActionableFailure;
|
|
468
|
+
};
|
|
469
|
+
/** Aggregated engine payload before truth report attachment (`schemaVersion` 8). */
|
|
470
|
+
export type WorkflowEngineResult = {
|
|
471
|
+
schemaVersion: 8;
|
|
472
|
+
workflowId: string;
|
|
473
|
+
status: WorkflowStatus;
|
|
474
|
+
runLevelReasons: Reason[];
|
|
475
|
+
verificationPolicy: VerificationPolicy;
|
|
476
|
+
eventSequenceIntegrity: EventSequenceIntegrity;
|
|
477
|
+
steps: StepOutcome[];
|
|
478
|
+
verificationRunContext: VerificationRunContext;
|
|
479
|
+
};
|
|
480
|
+
export type WorkflowTruthIssue = {
|
|
481
|
+
code: string;
|
|
482
|
+
message: string;
|
|
483
|
+
category: FailureDiagnostic;
|
|
484
|
+
};
|
|
485
|
+
export type WorkflowTruthEffect = {
|
|
486
|
+
id: string;
|
|
487
|
+
outcomeLabel: "VERIFIED" | "FAILED_ROW_MISSING" | "FAILED_VALUE_MISMATCH" | "INCOMPLETE_CANNOT_VERIFY";
|
|
488
|
+
reasons: Reason[];
|
|
489
|
+
};
|
|
490
|
+
export type PathConcernCategory = "context_quality" | "decision_execution" | "tool_selection_execution" | "action_inputs_invalid" | "workflow_completeness" | "capture_integrity";
|
|
491
|
+
export type PathFindingSeverity = "high" | "medium" | "low";
|
|
492
|
+
export type ExecutionPathEvidenceItem = {
|
|
493
|
+
scope: "run_context" | "run_level" | "event_sequence" | "step";
|
|
494
|
+
codes?: string[];
|
|
495
|
+
ingestIndex?: number;
|
|
496
|
+
seq?: number;
|
|
497
|
+
toolId?: string;
|
|
498
|
+
source?: string;
|
|
499
|
+
runEventId?: string | null;
|
|
500
|
+
};
|
|
501
|
+
export type ExecutionPathFinding = {
|
|
502
|
+
code: string;
|
|
503
|
+
severity: PathFindingSeverity;
|
|
504
|
+
concernCategory: PathConcernCategory;
|
|
505
|
+
message: string;
|
|
506
|
+
evidence: ExecutionPathEvidenceItem;
|
|
507
|
+
};
|
|
508
|
+
export type FailureExplanationFactId = "trust_summary" | "workflow_status" | "verification_policy" | "primary_origin" | "classification_confidence" | "failure_analysis_summary" | "primary_scope" | "primary_codes" | "primary_ingest_index" | "primary_tool_id" | "primary_source" | "primary_run_event_id" | "primary_seq" | "primary_effect_id" | "verify_target" | "intended_effect_narrative" | "evidence_summary_field" | "evidence_summary_expected" | "evidence_summary_actual" | "evidence_summary_row_count";
|
|
509
|
+
export type FailureExplanationUnknownId = "unknown_reason_code" | "classification_confidence_band" | "competing_hypothesis";
|
|
510
|
+
/** `workflowTruthReport.failureExplanation` when status is not complete (`schemaVersion` 1). */
|
|
511
|
+
export type FailureExplanationV1 = {
|
|
512
|
+
schemaVersion: 1;
|
|
513
|
+
expected: string;
|
|
514
|
+
observed: string;
|
|
515
|
+
divergence: string;
|
|
516
|
+
knownFacts: Array<{
|
|
517
|
+
id: FailureExplanationFactId;
|
|
518
|
+
value: string;
|
|
519
|
+
}>;
|
|
520
|
+
unknowns: Array<{
|
|
521
|
+
id: FailureExplanationUnknownId;
|
|
522
|
+
value: string;
|
|
523
|
+
}>;
|
|
524
|
+
};
|
|
525
|
+
/** Mirrors `schemas/workflow-truth-report.schema.json` → `$defs.correctnessEnforcementKind`. */
|
|
526
|
+
export type CorrectnessEnforcementKind = "run_ingest_integrity" | "event_capture_integrity" | "run_context_fairness" | "step_sql_expectation" | "plan_transition_expectation" | "quick_inferred_sql_row" | "quick_inferred_relational" | "quick_mapping_gap";
|
|
527
|
+
/** Nested `workflowTruthReport.correctnessDefinition` / quick unit field (`schemaVersion` 1). */
|
|
528
|
+
export type CorrectnessDefinitionV1 = {
|
|
529
|
+
schemaVersion: 1;
|
|
530
|
+
enforcementKind: CorrectnessEnforcementKind;
|
|
531
|
+
mustAlwaysHold: string;
|
|
532
|
+
enforceAs: string[];
|
|
533
|
+
enforceableProjection: {
|
|
534
|
+
projectionKind: "run_ingest_integrity";
|
|
535
|
+
workflowId: string;
|
|
536
|
+
verificationPolicyFragment: string;
|
|
537
|
+
primaryFailureCodes: string[];
|
|
538
|
+
ingestContractRequirement: "no_run_level_failures" | "non_empty_tool_observed_steps";
|
|
539
|
+
} | {
|
|
540
|
+
projectionKind: "event_capture_integrity";
|
|
541
|
+
workflowId: string;
|
|
542
|
+
verificationPolicyFragment: string;
|
|
543
|
+
forbiddenEventSequenceCodes: string[];
|
|
544
|
+
} | {
|
|
545
|
+
projectionKind: "run_context_fairness";
|
|
546
|
+
workflowId: string;
|
|
547
|
+
verificationPolicyFragment: string;
|
|
548
|
+
ingestIndex: number;
|
|
549
|
+
requiredUpstreamContract: "retrieval_ok_before_observation" | "model_turn_completed_before_observation" | "no_interrupt_before_observation" | "branch_not_skipped_before_observation" | "gate_not_skipped_before_observation" | "tool_not_skipped_before_observation";
|
|
550
|
+
primaryRunContextCodes: string[];
|
|
551
|
+
} | {
|
|
552
|
+
projectionKind: "step_sql_expectation";
|
|
553
|
+
workflowId: string;
|
|
554
|
+
verificationPolicyFragment: string;
|
|
555
|
+
seq: number;
|
|
556
|
+
toolId: string;
|
|
557
|
+
verificationRequest: StepVerificationRequest;
|
|
558
|
+
} | {
|
|
559
|
+
projectionKind: "plan_transition_expectation";
|
|
560
|
+
workflowId: string;
|
|
561
|
+
verificationPolicyFragment: string;
|
|
562
|
+
seq: number;
|
|
563
|
+
toolId: string;
|
|
564
|
+
verifyTarget: string | null;
|
|
565
|
+
primaryCodes: string[];
|
|
566
|
+
} | {
|
|
567
|
+
projectionKind: "quick_inferred_sql_row";
|
|
568
|
+
quickProvisional: true;
|
|
569
|
+
unitId: string;
|
|
570
|
+
toolName: string;
|
|
571
|
+
actionIndex: number;
|
|
572
|
+
table: string;
|
|
573
|
+
sqlRowRequest: VerificationRequest;
|
|
574
|
+
} | {
|
|
575
|
+
projectionKind: "quick_inferred_relational";
|
|
576
|
+
quickProvisional: true;
|
|
577
|
+
unitId: string;
|
|
578
|
+
toolName: string;
|
|
579
|
+
actionIndex: number;
|
|
580
|
+
childTable: string;
|
|
581
|
+
checkId: string;
|
|
582
|
+
matchEq: Array<{
|
|
583
|
+
column: string;
|
|
584
|
+
value: string;
|
|
585
|
+
}>;
|
|
586
|
+
} | {
|
|
587
|
+
projectionKind: "quick_mapping_gap";
|
|
588
|
+
quickProvisional: true;
|
|
589
|
+
toolName: string;
|
|
590
|
+
actionIndex: number;
|
|
591
|
+
reasonCodes: string[];
|
|
592
|
+
table: string | null;
|
|
593
|
+
};
|
|
594
|
+
remediationAlignment: {
|
|
595
|
+
recommendedAction: RecommendedActionCode;
|
|
596
|
+
automationSafe: boolean;
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
export type WorkflowTruthStep = {
|
|
600
|
+
seq: number;
|
|
601
|
+
toolId: string;
|
|
602
|
+
outcomeLabel: "VERIFIED" | "FAILED_ROW_MISSING" | "FAILED_VALUE_MISMATCH" | "INCOMPLETE_CANNOT_VERIFY" | "PARTIALLY_VERIFIED" | "UNCERTAIN_NOT_OBSERVED_WITHIN_WINDOW";
|
|
603
|
+
observations: {
|
|
604
|
+
evaluatedOrdinal: number;
|
|
605
|
+
repeatCount: number;
|
|
606
|
+
};
|
|
607
|
+
reasons: Reason[];
|
|
608
|
+
intendedEffect: IntendedEffect;
|
|
609
|
+
observedExecution: ObservedExecution;
|
|
610
|
+
failureCategory?: FailureDiagnostic;
|
|
611
|
+
verifyTarget: string | null;
|
|
612
|
+
/** Read-only SQL / plan evidence summary at verification time (operational-message normalized). */
|
|
613
|
+
observedStateSummary: string;
|
|
614
|
+
effects?: WorkflowTruthEffect[];
|
|
615
|
+
};
|
|
616
|
+
export type WorkflowTruthReport = {
|
|
617
|
+
schemaVersion: 9;
|
|
618
|
+
workflowId: string;
|
|
619
|
+
workflowStatus: WorkflowStatus;
|
|
620
|
+
trustSummary: string;
|
|
621
|
+
runLevelIssues: WorkflowTruthIssue[];
|
|
622
|
+
eventSequence: {
|
|
623
|
+
kind: "normal";
|
|
624
|
+
} | {
|
|
625
|
+
kind: "irregular";
|
|
626
|
+
issues: WorkflowTruthIssue[];
|
|
627
|
+
};
|
|
628
|
+
steps: WorkflowTruthStep[];
|
|
629
|
+
/** JSON `null` when workflow is complete; object when incomplete or inconsistent. */
|
|
630
|
+
failureAnalysis: FailureAnalysis | null;
|
|
631
|
+
/** JSON `null` when workflow is complete; `failureExplanationV1` when not complete. */
|
|
632
|
+
failureExplanation: FailureExplanationV1 | null;
|
|
633
|
+
/** JSON `null` when workflow is complete; forward correctness contract when not complete. */
|
|
634
|
+
correctnessDefinition: CorrectnessDefinitionV1 | null;
|
|
635
|
+
executionPathFindings: ExecutionPathFinding[];
|
|
636
|
+
executionPathSummary: string;
|
|
637
|
+
};
|
|
638
|
+
/** Emitted verification result on stdout / public API (`schemaVersion` 15). */
|
|
639
|
+
export type WorkflowResult = Omit<WorkflowEngineResult, "schemaVersion"> & {
|
|
640
|
+
schemaVersion: 15;
|
|
641
|
+
workflowTruthReport: WorkflowTruthReport;
|
|
642
|
+
};
|
|
643
|
+
export type TraceStepKind = "skipped" | "branch_taken" | "branch_skipped" | "failed" | "success" | "neutral" | "divergent_observations" | "repeated_observation";
|
|
644
|
+
export type ExecutionTraceVerificationLink = {
|
|
645
|
+
stepIndex: number;
|
|
646
|
+
seq: number;
|
|
647
|
+
engineStepStatus: StepStatus;
|
|
648
|
+
truthOutcomeLabel: string;
|
|
649
|
+
};
|
|
650
|
+
export type ExecutionTraceNode = {
|
|
651
|
+
ingestIndex: number;
|
|
652
|
+
runEventId: string;
|
|
653
|
+
wireSchemaVersion: 1 | 2;
|
|
654
|
+
wireType: RunEvent["type"];
|
|
655
|
+
parentRunEventId: string | null;
|
|
656
|
+
traceStepKind: TraceStepKind;
|
|
657
|
+
toolSeq: number | null;
|
|
658
|
+
toolId: string | null;
|
|
659
|
+
verificationLink: ExecutionTraceVerificationLink | null;
|
|
660
|
+
};
|
|
661
|
+
export type ExecutionTraceBackwardPath = {
|
|
662
|
+
pathKind: "workflow_terminal";
|
|
663
|
+
seedRunEventId: string;
|
|
664
|
+
ancestorRunEventIds: string[];
|
|
665
|
+
} | {
|
|
666
|
+
pathKind: "verification_step";
|
|
667
|
+
seedRunEventId: string;
|
|
668
|
+
ancestorRunEventIds: string[];
|
|
669
|
+
stepIndex: number;
|
|
670
|
+
seq: number;
|
|
671
|
+
};
|
|
672
|
+
export type ExecutionTraceView = {
|
|
673
|
+
schemaVersion: 1;
|
|
674
|
+
workflowId: string;
|
|
675
|
+
runCompletion: "completed" | "unknown_or_interrupted";
|
|
676
|
+
malformedEventLineCount: number;
|
|
677
|
+
nodes: ExecutionTraceNode[];
|
|
678
|
+
backwardPaths: ExecutionTraceBackwardPath[];
|
|
679
|
+
};
|
|
680
|
+
/** Aggregate counts over the raw event file (see `loadEventsForWorkflow`). */
|
|
681
|
+
export type EventFileAggregateCounts = {
|
|
682
|
+
eventFileNonEmptyLines: number;
|
|
683
|
+
schemaValidEvents: number;
|
|
684
|
+
toolObservedForRequestedWorkflowId: number;
|
|
685
|
+
toolObservedForOtherWorkflowIds: number;
|
|
686
|
+
};
|
|
687
|
+
export type LoadEventsResult = {
|
|
688
|
+
/** `tool_observed` only, sorted for verification (`prepareWorkflowEvents`). */
|
|
689
|
+
events: ToolObservedEvent[];
|
|
690
|
+
/** All valid run events for the workflow in file / capture order. */
|
|
691
|
+
runEvents: RunEvent[];
|
|
692
|
+
runLevelReasons: Reason[];
|
|
693
|
+
eventSequenceIntegrity: EventSequenceIntegrity;
|
|
694
|
+
/** NDJSON lines that failed JSON parse or event schema (same rules as batch load). */
|
|
695
|
+
malformedEventLineCount: number;
|
|
696
|
+
eventFileAggregateCounts: EventFileAggregateCounts;
|
|
697
|
+
};
|
|
698
|
+
/** Batch / CLI verification target (`verifyWorkflow`). In-process hook remains SQLite `dbPath` only. */
|
|
699
|
+
export type VerificationDatabase = {
|
|
700
|
+
kind: "sqlite";
|
|
701
|
+
path: string;
|
|
702
|
+
} | {
|
|
703
|
+
kind: "postgres";
|
|
704
|
+
connectionString: string;
|
|
705
|
+
};
|
|
706
|
+
//# sourceMappingURL=types.d.ts.map
|