audit-tools 0.51.6 → 0.51.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audit/clarification/blastRadius.d.ts +17 -16
- package/dist/audit/clarification/blastRadius.d.ts.map +1 -1
- package/dist/audit/clarification/blastRadius.js +48 -44
- package/dist/audit/clarification/blastRadius.js.map +1 -1
- package/dist/audit/clarification/dials.d.ts +4 -4
- package/dist/audit/clarification/dials.d.ts.map +1 -1
- package/dist/audit/clarification/dials.js +1 -0
- package/dist/audit/clarification/dials.js.map +1 -1
- package/dist/audit/clarification/partition.d.ts +12 -21
- package/dist/audit/clarification/partition.d.ts.map +1 -1
- package/dist/audit/clarification/partition.js +52 -59
- package/dist/audit/clarification/partition.js.map +1 -1
- package/dist/audit/clarification/riskGate.d.ts +2 -2
- package/dist/audit/clarification/riskGate.d.ts.map +1 -1
- package/dist/audit/clarification/riskGate.js +1 -0
- package/dist/audit/clarification/riskGate.js.map +1 -1
- package/dist/audit/clarification/voiQueue.d.ts +3 -3
- package/dist/audit/clarification/voiQueue.d.ts.map +1 -1
- package/dist/audit/clarification/voiQueue.js +1 -0
- package/dist/audit/clarification/voiQueue.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +15 -3
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +13 -5
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/charterClarificationPrompt.d.ts +6 -9
- package/dist/audit/cli/charterClarificationPrompt.d.ts.map +1 -1
- package/dist/audit/cli/charterClarificationPrompt.js +35 -47
- package/dist/audit/cli/charterClarificationPrompt.js.map +1 -1
- package/dist/audit/cli/charterComparisonPrompt.d.ts +14 -0
- package/dist/audit/cli/charterComparisonPrompt.d.ts.map +1 -0
- package/dist/audit/cli/charterComparisonPrompt.js +111 -0
- package/dist/audit/cli/charterComparisonPrompt.js.map +1 -0
- package/dist/audit/cli/charterExtractionPrompt.d.ts +14 -17
- package/dist/audit/cli/charterExtractionPrompt.d.ts.map +1 -1
- package/dist/audit/cli/charterExtractionPrompt.js +81 -104
- package/dist/audit/cli/charterExtractionPrompt.js.map +1 -1
- package/dist/audit/cli/charterFidelityPrompt.d.ts +14 -0
- package/dist/audit/cli/charterFidelityPrompt.d.ts.map +1 -0
- package/dist/audit/cli/charterFidelityPrompt.js +58 -0
- package/dist/audit/cli/charterFidelityPrompt.js.map +1 -0
- package/dist/audit/cli/conceptualDispatch.d.ts +39 -6
- package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
- package/dist/audit/cli/conceptualDispatch.js +59 -12
- package/dist/audit/cli/conceptualDispatch.js.map +1 -1
- package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
- package/dist/audit/cli/confirmIntentStep.js +46 -2
- package/dist/audit/cli/confirmIntentStep.js.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts +18 -6
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.js +525 -67
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
- package/dist/audit/cli/fanoutLanes.d.ts +24 -0
- package/dist/audit/cli/fanoutLanes.d.ts.map +1 -1
- package/dist/audit/cli/fanoutLanes.js +9 -1
- package/dist/audit/cli/fanoutLanes.js.map +1 -1
- package/dist/audit/cli/foldTransaction.d.ts.map +1 -1
- package/dist/audit/cli/foldTransaction.js +14 -3
- package/dist/audit/cli/foldTransaction.js.map +1 -1
- package/dist/audit/cli/forceSynthesisCommand.d.ts.map +1 -1
- package/dist/audit/cli/forceSynthesisCommand.js +4 -1
- package/dist/audit/cli/forceSynthesisCommand.js.map +1 -1
- package/dist/audit/cli/intakeCommand.d.ts.map +1 -1
- package/dist/audit/cli/intakeCommand.js +1 -0
- package/dist/audit/cli/intakeCommand.js.map +1 -1
- package/dist/audit/cli/laneSubmissions.d.ts +29 -15
- package/dist/audit/cli/laneSubmissions.d.ts.map +1 -1
- package/dist/audit/cli/laneSubmissions.js +53 -7
- package/dist/audit/cli/laneSubmissions.js.map +1 -1
- package/dist/audit/cli/laneValidators.d.ts.map +1 -1
- package/dist/audit/cli/laneValidators.js +18 -16
- package/dist/audit/cli/laneValidators.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts +7 -0
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +216 -38
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +92 -28
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +371 -133
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +10 -0
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +3 -1
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/reviewRun.d.ts +12 -0
- package/dist/audit/cli/reviewRun.d.ts.map +1 -1
- package/dist/audit/cli/reviewRun.js +242 -29
- package/dist/audit/cli/reviewRun.js.map +1 -1
- package/dist/audit/cli/sampleRunCommand.d.ts +12 -4
- package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +9 -0
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +71 -30
- package/dist/audit/cli/semanticReviewStep.js.map +1 -1
- package/dist/audit/cli/statusCommand.d.ts.map +1 -1
- package/dist/audit/cli/statusCommand.js +29 -66
- package/dist/audit/cli/statusCommand.js.map +1 -1
- package/dist/audit/cli/stepScaffold.d.ts +43 -2
- package/dist/audit/cli/stepScaffold.d.ts.map +1 -1
- package/dist/audit/cli/stepScaffold.js +24 -10
- package/dist/audit/cli/stepScaffold.js.map +1 -1
- package/dist/audit/cli/steps.d.ts +52 -29
- package/dist/audit/cli/steps.d.ts.map +1 -1
- package/dist/audit/cli/steps.js +44 -14
- package/dist/audit/cli/steps.js.map +1 -1
- package/dist/audit/cli/synthesizeCommand.d.ts.map +1 -1
- package/dist/audit/cli/synthesizeCommand.js +4 -1
- package/dist/audit/cli/synthesizeCommand.js.map +1 -1
- package/dist/audit/contracts/workerSchemas.d.ts +65 -16
- package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
- package/dist/audit/contracts/workerSchemas.js +89 -8
- package/dist/audit/contracts/workerSchemas.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +14 -21
- package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
- package/dist/audit/contracts/wrapperResponse.js +0 -1
- package/dist/audit/contracts/wrapperResponse.js.map +1 -1
- package/dist/audit/decompose/findings.d.ts.map +1 -1
- package/dist/audit/decompose/findings.js +10 -2
- package/dist/audit/decompose/findings.js.map +1 -1
- package/dist/audit/extractors/designAssessment.d.ts.map +1 -1
- package/dist/audit/extractors/designAssessment.js +13 -4
- package/dist/audit/extractors/designAssessment.js.map +1 -1
- package/dist/audit/extractors/disposition.d.ts.map +1 -1
- package/dist/audit/extractors/disposition.js +17 -5
- package/dist/audit/extractors/disposition.js.map +1 -1
- package/dist/audit/extractors/graph.d.ts +1 -1
- package/dist/audit/extractors/graph.js +1 -1
- package/dist/audit/extractors/graphRoutes.d.ts.map +1 -1
- package/dist/audit/extractors/graphRoutes.js +224 -17
- package/dist/audit/extractors/graphRoutes.js.map +1 -1
- package/dist/audit/extractors/leadLineage.d.ts +10 -0
- package/dist/audit/extractors/leadLineage.d.ts.map +1 -0
- package/dist/audit/extractors/leadLineage.js +44 -0
- package/dist/audit/extractors/leadLineage.js.map +1 -0
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +25 -8
- package/dist/audit/io/artifacts.js.map +1 -1
- package/dist/audit/io/runArtifacts.d.ts +76 -1
- package/dist/audit/io/runArtifacts.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.js +113 -20
- package/dist/audit/io/runArtifacts.js.map +1 -1
- package/dist/audit/io/toolingManifest.d.ts +15 -0
- package/dist/audit/io/toolingManifest.d.ts.map +1 -1
- package/dist/audit/io/toolingManifest.js +158 -11
- package/dist/audit/io/toolingManifest.js.map +1 -1
- package/dist/audit/orchestrator/advance.d.ts.map +1 -1
- package/dist/audit/orchestrator/advance.js +30 -4
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts +30 -7
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
- package/dist/audit/orchestrator/artifactMetadata.d.ts.map +1 -1
- package/dist/audit/orchestrator/artifactMetadata.js +39 -1
- package/dist/audit/orchestrator/artifactMetadata.js.map +1 -1
- package/dist/audit/orchestrator/auditTaskUtils.d.ts.map +1 -1
- package/dist/audit/orchestrator/auditTaskUtils.js +4 -1
- package/dist/audit/orchestrator/auditTaskUtils.js.map +1 -1
- package/dist/audit/orchestrator/charterClarificationExecutor.d.ts +11 -17
- package/dist/audit/orchestrator/charterClarificationExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterClarificationExecutor.js +61 -93
- package/dist/audit/orchestrator/charterClarificationExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterComparisonExecutor.d.ts +24 -0
- package/dist/audit/orchestrator/charterComparisonExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/charterComparisonExecutor.js +110 -0
- package/dist/audit/orchestrator/charterComparisonExecutor.js.map +1 -0
- package/dist/audit/orchestrator/charterExtractionExecutor.d.ts +34 -20
- package/dist/audit/orchestrator/charterExtractionExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterExtractionExecutor.js +80 -106
- package/dist/audit/orchestrator/charterExtractionExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterFidelityExecutor.d.ts +20 -0
- package/dist/audit/orchestrator/charterFidelityExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/charterFidelityExecutor.js +76 -0
- package/dist/audit/orchestrator/charterFidelityExecutor.js.map +1 -0
- package/dist/audit/orchestrator/charterFidelityPacket.d.ts +7 -0
- package/dist/audit/orchestrator/charterFidelityPacket.d.ts.map +1 -0
- package/dist/audit/orchestrator/charterFidelityPacket.js +68 -0
- package/dist/audit/orchestrator/charterFidelityPacket.js.map +1 -0
- package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.js +9 -8
- package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.js +7 -6
- package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
- package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewProjection.js +7 -0
- package/dist/audit/orchestrator/designReviewProjection.js.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.js +58 -19
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +6 -2
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/executors.d.ts.map +1 -1
- package/dist/audit/orchestrator/executors.js +22 -8
- package/dist/audit/orchestrator/executors.js.map +1 -1
- package/dist/audit/orchestrator/hostInputPause.js +1 -0
- package/dist/audit/orchestrator/hostInputPause.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +40 -0
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +32 -2
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.d.ts +5 -3
- package/dist/audit/orchestrator/intentCheckpointGate.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.js +34 -5
- package/dist/audit/orchestrator/intentCheckpointGate.js.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts +2 -2
- package/dist/audit/orchestrator/intentInterpreter.d.ts +1 -1
- package/dist/audit/orchestrator/intentInterpreter.js +1 -1
- package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
- package/dist/audit/orchestrator/nextStep.js +3 -1
- package/dist/audit/orchestrator/nextStep.js.map +1 -1
- package/dist/audit/orchestrator/obligationPolicy.d.ts +2 -1
- package/dist/audit/orchestrator/obligationPolicy.d.ts.map +1 -1
- package/dist/audit/orchestrator/obligationPolicy.js +23 -10
- package/dist/audit/orchestrator/obligationPolicy.js.map +1 -1
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/partitionTaskGraph.js +1 -0
- package/dist/audit/orchestrator/partitionTaskGraph.js.map +1 -1
- package/dist/audit/orchestrator/resultIngestion.d.ts.map +1 -1
- package/dist/audit/orchestrator/resultIngestion.js +3 -1
- package/dist/audit/orchestrator/resultIngestion.js.map +1 -1
- package/dist/audit/orchestrator/runtimeCommand.d.ts +72 -0
- package/dist/audit/orchestrator/runtimeCommand.d.ts.map +1 -1
- package/dist/audit/orchestrator/runtimeCommand.js +177 -20
- package/dist/audit/orchestrator/runtimeCommand.js.map +1 -1
- package/dist/audit/orchestrator/scopeIndexBaseline.d.ts +56 -0
- package/dist/audit/orchestrator/scopeIndexBaseline.d.ts.map +1 -0
- package/dist/audit/orchestrator/scopeIndexBaseline.js +114 -0
- package/dist/audit/orchestrator/scopeIndexBaseline.js.map +1 -0
- package/dist/audit/orchestrator/staleness.d.ts +70 -1
- package/dist/audit/orchestrator/staleness.d.ts.map +1 -1
- package/dist/audit/orchestrator/staleness.js +171 -21
- package/dist/audit/orchestrator/staleness.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +49 -25
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.js +7 -5
- package/dist/audit/orchestrator/structureExecutors.js.map +1 -1
- package/dist/audit/orchestrator/syntaxResolutionExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/syntaxResolutionExecutor.js +1 -0
- package/dist/audit/orchestrator/syntaxResolutionExecutor.js.map +1 -1
- package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts +13 -2
- package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/systemicChallengeExecutor.js +167 -13
- package/dist/audit/orchestrator/systemicChallengeExecutor.js.map +1 -1
- package/dist/audit/reporting/mergeFindings.d.ts.map +1 -1
- package/dist/audit/reporting/mergeFindings.js +6 -5
- package/dist/audit/reporting/mergeFindings.js.map +1 -1
- package/dist/audit/reporting/synthesis.d.ts +117 -0
- package/dist/audit/reporting/synthesis.d.ts.map +1 -1
- package/dist/audit/reporting/synthesis.js +277 -10
- package/dist/audit/reporting/synthesis.js.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.d.ts +0 -2
- package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.js +0 -3
- package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
- package/dist/audit/systemic/coveredThemes.d.ts +28 -0
- package/dist/audit/systemic/coveredThemes.d.ts.map +1 -0
- package/dist/audit/systemic/coveredThemes.js +52 -0
- package/dist/audit/systemic/coveredThemes.js.map +1 -0
- package/dist/audit/systemic/reviewFileMap.d.ts +81 -0
- package/dist/audit/systemic/reviewFileMap.d.ts.map +1 -0
- package/dist/audit/systemic/reviewFileMap.js +169 -0
- package/dist/audit/systemic/reviewFileMap.js.map +1 -0
- package/dist/audit/systemic/secondOrderAdversaryPrompt.d.ts.map +1 -1
- package/dist/audit/systemic/secondOrderAdversaryPrompt.js +149 -26
- package/dist/audit/systemic/secondOrderAdversaryPrompt.js.map +1 -1
- package/dist/audit/systemic/systemicChallengeLoop.d.ts +44 -4
- package/dist/audit/systemic/systemicChallengeLoop.d.ts.map +1 -1
- package/dist/audit/systemic/systemicChallengeLoop.js +114 -10
- package/dist/audit/systemic/systemicChallengeLoop.js.map +1 -1
- package/dist/audit/types/auditState.d.ts +6 -6
- package/dist/audit/types/charterClarification.d.ts +9 -4
- package/dist/audit/types/charterClarification.d.ts.map +1 -1
- package/dist/audit/types/charterRegister.d.ts +48 -93
- package/dist/audit/types/charterRegister.d.ts.map +1 -1
- package/dist/audit/types/charterRegister.js +15 -26
- package/dist/audit/types/charterRegister.js.map +1 -1
- package/dist/audit/types/conceptualAdjudication.d.ts +88 -18
- package/dist/audit/types/conceptualAdjudication.d.ts.map +1 -1
- package/dist/audit/types/conceptualAdjudication.js +77 -16
- package/dist/audit/types/conceptualAdjudication.js.map +1 -1
- package/dist/audit/types/designAssessment.d.ts +8 -6
- package/dist/audit/types/designAssessment.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.d.ts +2 -2
- package/dist/audit/types/systemicChallenge.d.ts +47 -9
- package/dist/audit/types/systemicChallenge.d.ts.map +1 -1
- package/dist/audit/types.d.ts +71 -10
- package/dist/audit/types.d.ts.map +1 -1
- package/dist/audit/types.js +23 -2
- package/dist/audit/types.js.map +1 -1
- package/dist/audit/validation/auditResults.d.ts +30 -0
- package/dist/audit/validation/auditResults.d.ts.map +1 -1
- package/dist/audit/validation/auditResults.js +50 -8
- package/dist/audit/validation/auditResults.js.map +1 -1
- package/dist/audit/validation/ingestIssueCodes.d.ts +1 -1
- package/dist/audit/validation/ingestIssueCodes.d.ts.map +1 -1
- package/dist/audit/validation/ingestIssueCodes.js +14 -0
- package/dist/audit/validation/ingestIssueCodes.js.map +1 -1
- package/dist/remediate/contractPipeline/artifactStore.d.ts +97 -2
- package/dist/remediate/contractPipeline/artifactStore.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/artifactStore.js +163 -9
- package/dist/remediate/contractPipeline/artifactStore.js.map +1 -1
- package/dist/remediate/contractPipeline/changeClassification.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/changeClassification.js +93 -3
- package/dist/remediate/contractPipeline/changeClassification.js.map +1 -1
- package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/cyclicSeamResolution.js +31 -0
- package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +1 -1
- package/dist/remediate/contractPipeline/derive.d.ts +0 -14
- package/dist/remediate/contractPipeline/derive.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/derive.js +52 -24
- package/dist/remediate/contractPipeline/derive.js.map +1 -1
- package/dist/remediate/contractPipeline/finalizedContractFields.d.ts +50 -0
- package/dist/remediate/contractPipeline/finalizedContractFields.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/finalizedContractFields.js +77 -0
- package/dist/remediate/contractPipeline/finalizedContractFields.js.map +1 -0
- package/dist/remediate/contractPipeline/idRegistry.d.ts +85 -0
- package/dist/remediate/contractPipeline/idRegistry.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/idRegistry.js +147 -0
- package/dist/remediate/contractPipeline/idRegistry.js.map +1 -1
- package/dist/remediate/contractPipeline/phaseCut.d.ts +13 -16
- package/dist/remediate/contractPipeline/phaseCut.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/phaseCut.js +15 -30
- package/dist/remediate/contractPipeline/phaseCut.js.map +1 -1
- package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +20 -1
- package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/reviewSnapshot.js +23 -7
- package/dist/remediate/contractPipeline/reviewSnapshot.js.map +1 -1
- package/dist/remediate/contractPipeline/semanticProjection.d.ts +17 -0
- package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/semanticProjection.js +6 -9
- package/dist/remediate/contractPipeline/semanticProjection.js.map +1 -1
- package/dist/remediate/contractPipeline/sketchSource.d.ts +183 -0
- package/dist/remediate/contractPipeline/sketchSource.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/sketchSource.js +255 -0
- package/dist/remediate/contractPipeline/sketchSource.js.map +1 -0
- package/dist/remediate/findingFilter.d.ts.map +1 -1
- package/dist/remediate/findingFilter.js +1 -0
- package/dist/remediate/findingFilter.js.map +1 -1
- package/dist/remediate/index.d.ts +81 -0
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +162 -53
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/intake.d.ts +43 -0
- package/dist/remediate/intake.d.ts.map +1 -1
- package/dist/remediate/intake.js +82 -13
- package/dist/remediate/intake.js.map +1 -1
- package/dist/remediate/phases/close.d.ts +33 -2
- package/dist/remediate/phases/close.d.ts.map +1 -1
- package/dist/remediate/phases/close.js +227 -13
- package/dist/remediate/phases/close.js.map +1 -1
- package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts +154 -0
- package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts.map +1 -0
- package/dist/remediate/phases/closeVerifyHeadEvidence.js +242 -0
- package/dist/remediate/phases/closeVerifyHeadEvidence.js.map +1 -0
- package/dist/remediate/state/runStatus.d.ts +35 -0
- package/dist/remediate/state/runStatus.d.ts.map +1 -0
- package/dist/remediate/state/runStatus.js +46 -0
- package/dist/remediate/state/runStatus.js.map +1 -0
- package/dist/remediate/state/store.d.ts +52 -2
- package/dist/remediate/state/store.d.ts.map +1 -1
- package/dist/remediate/state/store.js +124 -21
- package/dist/remediate/state/store.js.map +1 -1
- package/dist/remediate/state/types.d.ts +83 -13
- package/dist/remediate/state/types.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts +65 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +302 -85
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.js +58 -21
- package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts +87 -2
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.js +344 -44
- package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -1
- package/dist/remediate/steps/finalGate.d.ts +109 -5
- package/dist/remediate/steps/finalGate.d.ts.map +1 -1
- package/dist/remediate/steps/finalGate.js +135 -27
- package/dist/remediate/steps/finalGate.js.map +1 -1
- package/dist/remediate/steps/gateCommands.d.ts +167 -0
- package/dist/remediate/steps/gateCommands.d.ts.map +1 -1
- package/dist/remediate/steps/gateCommands.js +428 -1
- package/dist/remediate/steps/gateCommands.js.map +1 -1
- package/dist/remediate/steps/intakeResolver.d.ts +2 -13
- package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
- package/dist/remediate/steps/intakeResolver.js +22 -4
- package/dist/remediate/steps/intakeResolver.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +44 -40
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +501 -106
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/stepWriter.d.ts +1 -1
- package/dist/remediate/steps/stepWriter.d.ts.map +1 -1
- package/dist/remediate/steps/stepWriter.js +1 -0
- package/dist/remediate/steps/stepWriter.js.map +1 -1
- package/dist/remediate/steps/types.d.ts +32 -1
- package/dist/remediate/steps/types.d.ts.map +1 -1
- package/dist/remediate/steps/types.js +1 -0
- package/dist/remediate/steps/types.js.map +1 -1
- package/dist/remediate/types/options.d.ts +8 -0
- package/dist/remediate/types/options.d.ts.map +1 -1
- package/dist/remediate/utils/fileIntegrity.d.ts +8 -0
- package/dist/remediate/utils/fileIntegrity.d.ts.map +1 -1
- package/dist/remediate/utils/fileIntegrity.js +12 -1
- package/dist/remediate/utils/fileIntegrity.js.map +1 -1
- package/dist/remediate/validation/artifacts.d.ts +1 -1
- package/dist/remediate/validation/artifacts.d.ts.map +1 -1
- package/dist/remediate/validation/artifacts.js +19 -2
- package/dist/remediate/validation/artifacts.js.map +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipeline.js +26 -39
- package/dist/remediate/validation/contractPipeline.js.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.d.ts +18 -1
- package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.js +33 -5
- package/dist/remediate/validation/contractPipelineGates.js.map +1 -1
- package/dist/shared/analyzers/acquisitionEngine.d.ts +83 -5
- package/dist/shared/analyzers/acquisitionEngine.d.ts.map +1 -1
- package/dist/shared/analyzers/acquisitionEngine.js +46 -14
- package/dist/shared/analyzers/acquisitionEngine.js.map +1 -1
- package/dist/shared/analyzers/binaryAcquisition.d.ts +35 -2
- package/dist/shared/analyzers/binaryAcquisition.d.ts.map +1 -1
- package/dist/shared/analyzers/binaryAcquisition.js +5 -5
- package/dist/shared/analyzers/binaryAcquisition.js.map +1 -1
- package/dist/shared/analyzers/candidates.d.ts.map +1 -1
- package/dist/shared/analyzers/candidates.js +1 -0
- package/dist/shared/analyzers/candidates.js.map +1 -1
- package/dist/shared/analyzers/clippy.d.ts +9 -1
- package/dist/shared/analyzers/clippy.d.ts.map +1 -1
- package/dist/shared/analyzers/clippy.js +10 -2
- package/dist/shared/analyzers/clippy.js.map +1 -1
- package/dist/shared/analyzers/normalizeExternal.d.ts.map +1 -1
- package/dist/shared/analyzers/normalizeExternal.js +1 -0
- package/dist/shared/analyzers/normalizeExternal.js.map +1 -1
- package/dist/shared/analyzers/rubocop.d.ts +7 -1
- package/dist/shared/analyzers/rubocop.d.ts.map +1 -1
- package/dist/shared/analyzers/rubocop.js +8 -2
- package/dist/shared/analyzers/rubocop.js.map +1 -1
- package/dist/shared/analyzers/types.d.ts +24 -24
- package/dist/shared/analyzers/types.d.ts.map +1 -1
- package/dist/shared/analyzers/types.js +15 -0
- package/dist/shared/analyzers/types.js.map +1 -1
- package/dist/shared/artifactFreshness.d.ts.map +1 -1
- package/dist/shared/artifactFreshness.js +42 -7
- package/dist/shared/artifactFreshness.js.map +1 -1
- package/dist/shared/chunkByBudget.d.ts.map +1 -1
- package/dist/shared/chunkByBudget.js.map +1 -1
- package/dist/shared/continuityScore.d.ts.map +1 -1
- package/dist/shared/continuityScore.js +12 -4
- package/dist/shared/continuityScore.js.map +1 -1
- package/dist/shared/decompose/charterClarification.d.ts +49 -45
- package/dist/shared/decompose/charterClarification.d.ts.map +1 -1
- package/dist/shared/decompose/charterClarification.js +50 -57
- package/dist/shared/decompose/charterClarification.js.map +1 -1
- package/dist/shared/decompose/charterExtraction.d.ts +616 -342
- package/dist/shared/decompose/charterExtraction.d.ts.map +1 -1
- package/dist/shared/decompose/charterExtraction.js +590 -488
- package/dist/shared/decompose/charterExtraction.js.map +1 -1
- package/dist/shared/decompose/contentCoherence.d.ts +36 -2
- package/dist/shared/decompose/contentCoherence.d.ts.map +1 -1
- package/dist/shared/decompose/contentCoherence.js +45 -5
- package/dist/shared/decompose/contentCoherence.js.map +1 -1
- package/dist/shared/decompose/modularity.d.ts +98 -1
- package/dist/shared/decompose/modularity.d.ts.map +1 -1
- package/dist/shared/decompose/modularity.js +89 -8
- package/dist/shared/decompose/modularity.js.map +1 -1
- package/dist/shared/decompose/systemicChallenge.d.ts +111 -0
- package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
- package/dist/shared/decompose/systemicChallenge.js +28 -0
- package/dist/shared/decompose/systemicChallenge.js.map +1 -1
- package/dist/shared/engine/obligationEngine.d.ts +2 -2
- package/dist/shared/engine/obligationEngine.d.ts.map +1 -1
- package/dist/shared/engine/obligationEngine.js +8 -2
- package/dist/shared/engine/obligationEngine.js.map +1 -1
- package/dist/shared/findingSimilarity.d.ts +8 -0
- package/dist/shared/findingSimilarity.d.ts.map +1 -1
- package/dist/shared/findingSimilarity.js +10 -3
- package/dist/shared/findingSimilarity.js.map +1 -1
- package/dist/shared/findings/dedupe.d.ts +15 -0
- package/dist/shared/findings/dedupe.d.ts.map +1 -1
- package/dist/shared/findings/dedupe.js +137 -1
- package/dist/shared/findings/dedupe.js.map +1 -1
- package/dist/shared/friction/frictionRecord.d.ts.map +1 -1
- package/dist/shared/friction/frictionRecord.js +14 -1
- package/dist/shared/friction/frictionRecord.js.map +1 -1
- package/dist/shared/friction/triage.d.ts +4 -0
- package/dist/shared/friction/triage.d.ts.map +1 -1
- package/dist/shared/friction/triage.js +41 -29
- package/dist/shared/friction/triage.js.map +1 -1
- package/dist/shared/git.d.ts +14 -0
- package/dist/shared/git.d.ts.map +1 -1
- package/dist/shared/git.js +22 -0
- package/dist/shared/git.js.map +1 -1
- package/dist/shared/index.d.ts +42 -38
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +35 -23
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/intent/clauseBoundaries.d.ts +75 -0
- package/dist/shared/intent/clauseBoundaries.d.ts.map +1 -0
- package/dist/shared/intent/clauseBoundaries.js +134 -0
- package/dist/shared/intent/clauseBoundaries.js.map +1 -0
- package/dist/shared/intent/clauseInterpreter.d.ts +11 -5
- package/dist/shared/intent/clauseInterpreter.d.ts.map +1 -1
- package/dist/shared/intent/clauseInterpreter.js +16 -41
- package/dist/shared/intent/clauseInterpreter.js.map +1 -1
- package/dist/shared/intent/freeFormIntentInterpreter.d.ts +11 -0
- package/dist/shared/intent/freeFormIntentInterpreter.d.ts.map +1 -1
- package/dist/shared/intent/freeFormIntentInterpreter.js +31 -17
- package/dist/shared/intent/freeFormIntentInterpreter.js.map +1 -1
- package/dist/shared/io/fileLock.d.ts.map +1 -1
- package/dist/shared/io/fileLock.js +18 -6
- package/dist/shared/io/fileLock.js.map +1 -1
- package/dist/shared/io/frictionCapture.d.ts +25 -5
- package/dist/shared/io/frictionCapture.d.ts.map +1 -1
- package/dist/shared/io/frictionCapture.js +30 -9
- package/dist/shared/io/frictionCapture.js.map +1 -1
- package/dist/shared/io/schemaVersion.d.ts +4 -3
- package/dist/shared/io/schemaVersion.d.ts.map +1 -1
- package/dist/shared/io/schemaVersion.js +27 -4
- package/dist/shared/io/schemaVersion.js.map +1 -1
- package/dist/shared/io/stepContractWriter.d.ts +38 -4
- package/dist/shared/io/stepContractWriter.d.ts.map +1 -1
- package/dist/shared/io/stepContractWriter.js +59 -1
- package/dist/shared/io/stepContractWriter.js.map +1 -1
- package/dist/shared/loopCorePaths.d.ts.map +1 -1
- package/dist/shared/loopCorePaths.js +8 -0
- package/dist/shared/loopCorePaths.js.map +1 -1
- package/dist/shared/opencodePermissions.d.ts +27 -3
- package/dist/shared/opencodePermissions.d.ts.map +1 -1
- package/dist/shared/opencodePermissions.js +77 -26
- package/dist/shared/opencodePermissions.js.map +1 -1
- package/dist/shared/prompts.d.ts +12 -1
- package/dist/shared/prompts.d.ts.map +1 -1
- package/dist/shared/prompts.js +11 -1
- package/dist/shared/prompts.js.map +1 -1
- package/dist/shared/reReview/projectionDiff.d.ts +13 -0
- package/dist/shared/reReview/projectionDiff.d.ts.map +1 -1
- package/dist/shared/reReview/projectionDiff.js +1 -1
- package/dist/shared/reReview/projectionDiff.js.map +1 -1
- package/dist/shared/reporting/findingDisplay.d.ts +7 -0
- package/dist/shared/reporting/findingDisplay.d.ts.map +1 -1
- package/dist/shared/reporting/findingDisplay.js +8 -1
- package/dist/shared/reporting/findingDisplay.js.map +1 -1
- package/dist/shared/steps/stepEmissionScaffold.d.ts +15 -3
- package/dist/shared/steps/stepEmissionScaffold.d.ts.map +1 -1
- package/dist/shared/steps/stepEmissionScaffold.js +8 -6
- package/dist/shared/steps/stepEmissionScaffold.js.map +1 -1
- package/dist/shared/submission/hostHandoffCore.d.ts +37 -12
- package/dist/shared/submission/hostHandoffCore.d.ts.map +1 -1
- package/dist/shared/submission/hostHandoffCore.js +81 -18
- package/dist/shared/submission/hostHandoffCore.js.map +1 -1
- package/dist/shared/submission/hostResultOutcomes.d.ts +70 -1
- package/dist/shared/submission/hostResultOutcomes.d.ts.map +1 -1
- package/dist/shared/submission/hostResultOutcomes.js +66 -1
- package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
- package/dist/shared/submission/submissionLedger.d.ts +86 -1
- package/dist/shared/submission/submissionLedger.d.ts.map +1 -1
- package/dist/shared/submission/submissionLedger.js +108 -0
- package/dist/shared/submission/submissionLedger.js.map +1 -1
- package/dist/shared/submission/submissionScan.d.ts.map +1 -1
- package/dist/shared/submission/submissionScan.js +1 -0
- package/dist/shared/submission/submissionScan.js.map +1 -1
- package/dist/shared/tooling/analyzerDeps.d.ts +14 -0
- package/dist/shared/tooling/analyzerDeps.d.ts.map +1 -1
- package/dist/shared/tooling/analyzerDeps.js +23 -0
- package/dist/shared/tooling/analyzerDeps.js.map +1 -1
- package/dist/shared/tooling/commandShape.d.ts +35 -1
- package/dist/shared/tooling/commandShape.d.ts.map +1 -1
- package/dist/shared/tooling/commandShape.js +66 -4
- package/dist/shared/tooling/commandShape.js.map +1 -1
- package/dist/shared/tooling/exec.d.ts +62 -4
- package/dist/shared/tooling/exec.d.ts.map +1 -1
- package/dist/shared/tooling/exec.js +127 -8
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/types/charter.d.ts +674 -156
- package/dist/shared/types/charter.d.ts.map +1 -1
- package/dist/shared/types/charter.js +172 -118
- package/dist/shared/types/charter.js.map +1 -1
- package/dist/shared/types/closingActions.d.ts +25 -0
- package/dist/shared/types/closingActions.d.ts.map +1 -1
- package/dist/shared/types/closingActions.js +26 -0
- package/dist/shared/types/closingActions.js.map +1 -1
- package/dist/shared/types/contractPipeline/obligations.d.ts +63 -2
- package/dist/shared/types/contractPipeline/obligations.d.ts.map +1 -1
- package/dist/shared/types/contractPipeline/obligations.js +51 -0
- package/dist/shared/types/contractPipeline/obligations.js.map +1 -1
- package/dist/shared/types/contractPipeline.d.ts +1 -0
- package/dist/shared/types/contractPipeline.d.ts.map +1 -1
- package/dist/shared/types/contractPipeline.js +1 -0
- package/dist/shared/types/contractPipeline.js.map +1 -1
- package/dist/shared/types/contractPropertyShapes.d.ts +34 -0
- package/dist/shared/types/contractPropertyShapes.d.ts.map +1 -0
- package/dist/shared/types/contractPropertyShapes.js +255 -0
- package/dist/shared/types/contractPropertyShapes.js.map +1 -0
- package/dist/shared/types/finding.d.ts +376 -18
- package/dist/shared/types/finding.d.ts.map +1 -1
- package/dist/shared/types/finding.js +111 -0
- package/dist/shared/types/finding.js.map +1 -1
- package/dist/shared/types/intentCheckpoint.d.ts +214 -2
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
- package/dist/shared/types/intentCheckpoint.js +273 -0
- package/dist/shared/types/intentCheckpoint.js.map +1 -1
- package/dist/shared/types/intentInterpretation.d.ts +1 -1
- package/dist/shared/types/intentInterpretation.js +1 -1
- package/dist/shared/types/remediationOutcome.d.ts +294 -30
- package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
- package/dist/shared/types/remediationOutcome.js +96 -7
- package/dist/shared/types/remediationOutcome.js.map +1 -1
- package/dist/shared/types/stepContract.d.ts +47 -0
- package/dist/shared/types/stepContract.d.ts.map +1 -1
- package/dist/shared/types/stepContract.js +113 -0
- package/dist/shared/types/stepContract.js.map +1 -1
- package/dist/shared/validation/charterGate.d.ts +13 -28
- package/dist/shared/validation/charterGate.d.ts.map +1 -1
- package/dist/shared/validation/charterGate.js +13 -35
- package/dist/shared/validation/charterGate.js.map +1 -1
- package/dist/shared/validation/contractConstructionSites.d.ts +116 -0
- package/dist/shared/validation/contractConstructionSites.d.ts.map +1 -0
- package/dist/shared/validation/contractConstructionSites.js +277 -0
- package/dist/shared/validation/contractConstructionSites.js.map +1 -0
- package/dist/shared/validation/designFindingGrounding.d.ts +33 -4
- package/dist/shared/validation/designFindingGrounding.d.ts.map +1 -1
- package/dist/shared/validation/designFindingGrounding.js +40 -6
- package/dist/shared/validation/designFindingGrounding.js.map +1 -1
- package/dist/shared/validation/findingGrounding.d.ts.map +1 -1
- package/dist/shared/validation/findingGrounding.js +11 -1
- package/dist/shared/validation/findingGrounding.js.map +1 -1
- package/dist/shared/validation/findingsReport.d.ts.map +1 -1
- package/dist/shared/validation/findingsReport.js +5 -0
- package/dist/shared/validation/findingsReport.js.map +1 -1
- package/docs/audit-pkg/contracts.md +8 -2
- package/opencode.json +29 -29
- package/package.json +16 -3
- package/schemas/audit-code-v1alpha1.schema.json +0 -4
- package/scripts/audit/postinstall.mjs +81 -96
- package/scripts/remediate/postinstall.mjs +43 -83
- package/scripts/shared/host-asset-plan.mjs +176 -0
- package/scripts/shared/install-host-assets.mjs +44 -1
- package/scripts/shared/primitives.mjs +89 -0
- package/skills/audit-code/SKILL.md +4 -4
- package/skills/audit-code/audit-code.prompt.md +14 -10
- package/skills/remediate-code/SKILL.md +9 -5
- package/skills/remediate-code/remediate-code.prompt.md +11 -4
- package/wrapper/audit-code-wrapper-build.mjs +6 -3
- package/dist/audit/cli/charterDeltaPrompt.d.ts +0 -18
- package/dist/audit/cli/charterDeltaPrompt.d.ts.map +0 -1
- package/dist/audit/cli/charterDeltaPrompt.js +0 -150
- package/dist/audit/cli/charterDeltaPrompt.js.map +0 -1
- package/dist/audit/orchestrator/charterDeltaExecutor.d.ts +0 -24
- package/dist/audit/orchestrator/charterDeltaExecutor.d.ts.map +0 -1
- package/dist/audit/orchestrator/charterDeltaExecutor.js +0 -128
- package/dist/audit/orchestrator/charterDeltaExecutor.js.map +0 -1
- package/dist/audit/supervisor/runLedger.d.ts +0 -3
- package/dist/audit/supervisor/runLedger.d.ts.map +0 -1
- package/dist/audit/supervisor/runLedger.js +0 -69
- package/dist/audit/supervisor/runLedger.js.map +0 -1
- package/dist/shared/types/executionRecord.d.ts +0 -58
- package/dist/shared/types/executionRecord.d.ts.map +0 -1
- package/dist/shared/types/executionRecord.js +0 -26
- package/dist/shared/types/executionRecord.js.map +0 -1
- package/dist/shared/types/runLedger.d.ts +0 -17
- package/dist/shared/types/runLedger.d.ts.map +0 -1
- package/dist/shared/types/runLedger.js +0 -7
- package/dist/shared/types/runLedger.js.map +0 -1
|
@@ -54,23 +54,43 @@ export declare function mechanismContradictsOutcome(outcome: RemediationOutcomeS
|
|
|
54
54
|
* `executed` — the command list ran; `passed` is a real verdict.
|
|
55
55
|
* `scoped_out` — the suite does not apply to this target; zero commands ran.
|
|
56
56
|
* `disabled` — a gate was DUE but did not run.
|
|
57
|
+
* `history` — a verdict for this exact tree content was already recorded, so
|
|
58
|
+
* the floor was NOT re-spawned; `passed` is that recorded verdict
|
|
59
|
+
* and `commands_run` counts the commands the RECORD held, never
|
|
60
|
+
* commands this evaluation ran. A fourth kind rather than a
|
|
61
|
+
* flavour of `executed`, because "the judge ran just now" and
|
|
62
|
+
* "a judge already ruled on this unchanged tree" are different
|
|
63
|
+
* facts about the same verdict — and a reader that cannot tell
|
|
64
|
+
* them apart cannot tell whether the floor is still being
|
|
65
|
+
* exercised at all.
|
|
57
66
|
*/
|
|
58
|
-
export declare const FinalGateOutcomeKindSchema: z.ZodEnum<["executed", "scoped_out", "disabled"]>;
|
|
67
|
+
export declare const FinalGateOutcomeKindSchema: z.ZodEnum<["executed", "scoped_out", "disabled", "history"]>;
|
|
59
68
|
export type FinalGateOutcomeKind = z.infer<typeof FinalGateOutcomeKindSchema>;
|
|
69
|
+
/**
|
|
70
|
+
* Which outcomes carry a REAL verdict. `executed` because a judge just ran;
|
|
71
|
+
* `history` because a judge ran on this identical tree content and the answer
|
|
72
|
+
* cannot have changed. Every other outcome — the not-run kinds AND the report's
|
|
73
|
+
* own `absent` — has no verdict to report.
|
|
74
|
+
*
|
|
75
|
+
* Accepts `absent` as well as the gate kinds so the REPORT reader can ask this
|
|
76
|
+
* one question rather than restating the list: a second hand-written list is
|
|
77
|
+
* exactly how the next verdict-bearing kind comes back to read as absent.
|
|
78
|
+
*/
|
|
79
|
+
export declare function carriesGateVerdict(outcome: FinalGateOutcomeKind | "absent"): boolean;
|
|
60
80
|
/**
|
|
61
81
|
* What the outcomes contract says about the run's tool-owned gate.
|
|
62
82
|
*
|
|
63
|
-
* `outcome` widens the
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
83
|
+
* `outcome` widens the gate kinds with `absent` — which is NOT a gate kind but
|
|
84
|
+
* the report's own statement that no gate record existed for this run. It is
|
|
85
|
+
* stated rather than inferred: the alternative is silence, and silence about a
|
|
86
|
+
* gate reads as "fine".
|
|
67
87
|
*
|
|
68
|
-
* `passed` is `boolean | null`. Only
|
|
69
|
-
* other
|
|
70
|
-
* that did not run as a green floor.
|
|
88
|
+
* `passed` is `boolean | null`. Only a verdict-bearing kind ({@link
|
|
89
|
+
* carriesGateVerdict}) carries one; every other kind carries `null`, so no
|
|
90
|
+
* consumer of this contract can read a gate that did not run as a green floor.
|
|
71
91
|
*/
|
|
72
92
|
export declare const FinalGateReportSchema: z.ZodObject<{
|
|
73
|
-
outcome: z.ZodUnion<[z.ZodEnum<["executed", "scoped_out", "disabled"]>, z.ZodLiteral<"absent">]>;
|
|
93
|
+
outcome: z.ZodUnion<[z.ZodEnum<["executed", "scoped_out", "disabled", "history"]>, z.ZodLiteral<"absent">]>;
|
|
74
94
|
passed: z.ZodNullable<z.ZodBoolean>;
|
|
75
95
|
commands_run: z.ZodNumber;
|
|
76
96
|
/** Which gate produced it — a phase boundary, or the all-terminal funnel. */
|
|
@@ -79,14 +99,14 @@ export declare const FinalGateReportSchema: z.ZodObject<{
|
|
|
79
99
|
reason: z.ZodOptional<z.ZodString>;
|
|
80
100
|
recorded_at: z.ZodOptional<z.ZodString>;
|
|
81
101
|
}, "strict", z.ZodTypeAny, {
|
|
82
|
-
outcome: "executed" | "scoped_out" | "disabled" | "
|
|
102
|
+
outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
|
|
83
103
|
passed: boolean | null;
|
|
84
104
|
commands_run: number;
|
|
85
105
|
reason?: string | undefined;
|
|
86
106
|
scope?: string | undefined;
|
|
87
107
|
recorded_at?: string | undefined;
|
|
88
108
|
}, {
|
|
89
|
-
outcome: "executed" | "scoped_out" | "disabled" | "
|
|
109
|
+
outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
|
|
90
110
|
passed: boolean | null;
|
|
91
111
|
commands_run: number;
|
|
92
112
|
reason?: string | undefined;
|
|
@@ -100,6 +120,136 @@ export type FinalGateReport = z.infer<typeof FinalGateReportSchema>;
|
|
|
100
120
|
* a green-shaped default.
|
|
101
121
|
*/
|
|
102
122
|
export declare const ABSENT_FINAL_GATE_REPORT: FinalGateReport;
|
|
123
|
+
/**
|
|
124
|
+
* One submission the run READMITTED, and through which verb.
|
|
125
|
+
*
|
|
126
|
+
* `kind` is the submission ledger's own event kind — declared as the two
|
|
127
|
+
* recovery members rather than a boolean, because the two are not the same act:
|
|
128
|
+
* `recovered_by_hand` re-lands a payload the normal lane's validator still
|
|
129
|
+
* fully accepts, while `accepted_via_recovery` relaxed one of its corroboration
|
|
130
|
+
* checks. A surface that collapsed them would erase exactly the difference that
|
|
131
|
+
* makes a run's evidence bar legible.
|
|
132
|
+
*/
|
|
133
|
+
export declare const RecoveryMarkSchema: z.ZodObject<{
|
|
134
|
+
kind: z.ZodEnum<["recovered_by_hand", "accepted_via_recovery"]>;
|
|
135
|
+
submission_id: z.ZodString;
|
|
136
|
+
lane: z.ZodString;
|
|
137
|
+
issue_code: z.ZodOptional<z.ZodString>;
|
|
138
|
+
recorded_at: z.ZodString;
|
|
139
|
+
}, "strict", z.ZodTypeAny, {
|
|
140
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
141
|
+
lane: string;
|
|
142
|
+
recorded_at: string;
|
|
143
|
+
submission_id: string;
|
|
144
|
+
issue_code?: string | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
147
|
+
lane: string;
|
|
148
|
+
recorded_at: string;
|
|
149
|
+
submission_id: string;
|
|
150
|
+
issue_code?: string | undefined;
|
|
151
|
+
}>;
|
|
152
|
+
export type RecoveryMark = z.infer<typeof RecoveryMarkSchema>;
|
|
153
|
+
/**
|
|
154
|
+
* How the run's work was READMITTED, as read from the submission ledger at
|
|
155
|
+
* close time.
|
|
156
|
+
*
|
|
157
|
+
* REQUIRED on the outcomes contract and never omitted: like {@link
|
|
158
|
+
* FinalGateReport}, the clean case is written as an empty array rather than
|
|
159
|
+
* left out, so a reader can distinguish "this run recovered nothing" from "this
|
|
160
|
+
* release did not record the fact". The three-shape collapse the outcomes
|
|
161
|
+
* contract exists to prevent — clean, repaired, unknown — was previously
|
|
162
|
+
* expressible for the gate and not for recovery, so a run whose submission had
|
|
163
|
+
* to be re-landed through a LOWER evidence bar produced a completion contract
|
|
164
|
+
* byte-identical to a run that got it right first try.
|
|
165
|
+
*
|
|
166
|
+
* A recovery record is a monotone ACCUMULATOR over the run's ledger events: two
|
|
167
|
+
* marks for one submission (say a hand re-land followed by a relaxed
|
|
168
|
+
* acceptance) are two facts, and neither subsumes the other.
|
|
169
|
+
*/
|
|
170
|
+
export declare const RunRecoverySchema: z.ZodObject<{
|
|
171
|
+
recovered_by_hand: z.ZodArray<z.ZodObject<{
|
|
172
|
+
kind: z.ZodEnum<["recovered_by_hand", "accepted_via_recovery"]>;
|
|
173
|
+
submission_id: z.ZodString;
|
|
174
|
+
lane: z.ZodString;
|
|
175
|
+
issue_code: z.ZodOptional<z.ZodString>;
|
|
176
|
+
recorded_at: z.ZodString;
|
|
177
|
+
}, "strict", z.ZodTypeAny, {
|
|
178
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
179
|
+
lane: string;
|
|
180
|
+
recorded_at: string;
|
|
181
|
+
submission_id: string;
|
|
182
|
+
issue_code?: string | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
185
|
+
lane: string;
|
|
186
|
+
recorded_at: string;
|
|
187
|
+
submission_id: string;
|
|
188
|
+
issue_code?: string | undefined;
|
|
189
|
+
}>, "many">;
|
|
190
|
+
accepted_via_recovery: z.ZodArray<z.ZodObject<{
|
|
191
|
+
kind: z.ZodEnum<["recovered_by_hand", "accepted_via_recovery"]>;
|
|
192
|
+
submission_id: z.ZodString;
|
|
193
|
+
lane: z.ZodString;
|
|
194
|
+
issue_code: z.ZodOptional<z.ZodString>;
|
|
195
|
+
recorded_at: z.ZodString;
|
|
196
|
+
}, "strict", z.ZodTypeAny, {
|
|
197
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
198
|
+
lane: string;
|
|
199
|
+
recorded_at: string;
|
|
200
|
+
submission_id: string;
|
|
201
|
+
issue_code?: string | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
204
|
+
lane: string;
|
|
205
|
+
recorded_at: string;
|
|
206
|
+
submission_id: string;
|
|
207
|
+
issue_code?: string | undefined;
|
|
208
|
+
}>, "many">;
|
|
209
|
+
/** Ledger lines the close-phase read could not parse. See the writer. */
|
|
210
|
+
dropped_lines: z.ZodNumber;
|
|
211
|
+
}, "strict", z.ZodTypeAny, {
|
|
212
|
+
recovered_by_hand: {
|
|
213
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
214
|
+
lane: string;
|
|
215
|
+
recorded_at: string;
|
|
216
|
+
submission_id: string;
|
|
217
|
+
issue_code?: string | undefined;
|
|
218
|
+
}[];
|
|
219
|
+
accepted_via_recovery: {
|
|
220
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
221
|
+
lane: string;
|
|
222
|
+
recorded_at: string;
|
|
223
|
+
submission_id: string;
|
|
224
|
+
issue_code?: string | undefined;
|
|
225
|
+
}[];
|
|
226
|
+
dropped_lines: number;
|
|
227
|
+
}, {
|
|
228
|
+
recovered_by_hand: {
|
|
229
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
230
|
+
lane: string;
|
|
231
|
+
recorded_at: string;
|
|
232
|
+
submission_id: string;
|
|
233
|
+
issue_code?: string | undefined;
|
|
234
|
+
}[];
|
|
235
|
+
accepted_via_recovery: {
|
|
236
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
237
|
+
lane: string;
|
|
238
|
+
recorded_at: string;
|
|
239
|
+
submission_id: string;
|
|
240
|
+
issue_code?: string | undefined;
|
|
241
|
+
}[];
|
|
242
|
+
dropped_lines: number;
|
|
243
|
+
}>;
|
|
244
|
+
export type RunRecovery = z.infer<typeof RunRecoverySchema>;
|
|
245
|
+
/**
|
|
246
|
+
* The report's statement when the close-phase read found no recovery at all.
|
|
247
|
+
* NOT the same as "the ledger could not be read": a read failure is reported by
|
|
248
|
+
* the close phase itself rather than laundered into a clean-looking empty set.
|
|
249
|
+
*/
|
|
250
|
+
export declare const NO_RECOVERY: RunRecovery;
|
|
251
|
+
/** True when the run's ledger recorded any readmission. */
|
|
252
|
+
export declare function wasRecovered(recovery: RunRecovery): boolean;
|
|
103
253
|
/**
|
|
104
254
|
* Item C — result of the close-gate mechanical re-verify of an analyzer-born
|
|
105
255
|
* finding. `verified_mechanically`: the finding's content-anchored lead
|
|
@@ -194,8 +344,8 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
|
|
|
194
344
|
*/
|
|
195
345
|
recorded_by_module: z.ZodOptional<z.ZodString>;
|
|
196
346
|
}, "strict", z.ZodTypeAny, {
|
|
197
|
-
outcome: "blocked" | "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
|
|
198
347
|
lens: string;
|
|
348
|
+
outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
|
|
199
349
|
finding_id: string;
|
|
200
350
|
file_exts: string[];
|
|
201
351
|
rework_count: number;
|
|
@@ -218,8 +368,8 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
|
|
|
218
368
|
} | undefined;
|
|
219
369
|
recorded_by_module?: string | undefined;
|
|
220
370
|
}, {
|
|
221
|
-
outcome: "blocked" | "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
|
|
222
371
|
lens: string;
|
|
372
|
+
outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
|
|
223
373
|
finding_id: string;
|
|
224
374
|
file_exts: string[];
|
|
225
375
|
rework_count: number;
|
|
@@ -255,20 +405,20 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
255
405
|
verified_already_fixed: z.ZodNumber;
|
|
256
406
|
refuted: z.ZodNumber;
|
|
257
407
|
}, "strict", z.ZodTypeAny, {
|
|
258
|
-
blocked: number;
|
|
259
408
|
refuted: number;
|
|
260
409
|
resolved: number;
|
|
261
410
|
verified_no_change: number;
|
|
262
411
|
inappropriate: number;
|
|
263
412
|
ignored: number;
|
|
413
|
+
blocked: number;
|
|
264
414
|
verified_already_fixed: number;
|
|
265
415
|
}, {
|
|
266
|
-
blocked: number;
|
|
267
416
|
refuted: number;
|
|
268
417
|
resolved: number;
|
|
269
418
|
verified_no_change: number;
|
|
270
419
|
inappropriate: number;
|
|
271
420
|
ignored: number;
|
|
421
|
+
blocked: number;
|
|
272
422
|
verified_already_fixed: number;
|
|
273
423
|
}>;
|
|
274
424
|
by_lens: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -280,20 +430,20 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
280
430
|
verified_already_fixed: z.ZodOptional<z.ZodNumber>;
|
|
281
431
|
refuted: z.ZodOptional<z.ZodNumber>;
|
|
282
432
|
}, "strict", z.ZodTypeAny, {
|
|
283
|
-
blocked?: number | undefined;
|
|
284
433
|
refuted?: number | undefined;
|
|
285
434
|
resolved?: number | undefined;
|
|
286
435
|
verified_no_change?: number | undefined;
|
|
287
436
|
inappropriate?: number | undefined;
|
|
288
437
|
ignored?: number | undefined;
|
|
438
|
+
blocked?: number | undefined;
|
|
289
439
|
verified_already_fixed?: number | undefined;
|
|
290
440
|
}, {
|
|
291
|
-
blocked?: number | undefined;
|
|
292
441
|
refuted?: number | undefined;
|
|
293
442
|
resolved?: number | undefined;
|
|
294
443
|
verified_no_change?: number | undefined;
|
|
295
444
|
inappropriate?: number | undefined;
|
|
296
445
|
ignored?: number | undefined;
|
|
446
|
+
blocked?: number | undefined;
|
|
297
447
|
verified_already_fixed?: number | undefined;
|
|
298
448
|
}>>;
|
|
299
449
|
/** Earliest item started_at across all outcomes. */
|
|
@@ -311,7 +461,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
311
461
|
* executed-green one.
|
|
312
462
|
*/
|
|
313
463
|
final_gate: z.ZodObject<{
|
|
314
|
-
outcome: z.ZodUnion<[z.ZodEnum<["executed", "scoped_out", "disabled"]>, z.ZodLiteral<"absent">]>;
|
|
464
|
+
outcome: z.ZodUnion<[z.ZodEnum<["executed", "scoped_out", "disabled", "history"]>, z.ZodLiteral<"absent">]>;
|
|
315
465
|
passed: z.ZodNullable<z.ZodBoolean>;
|
|
316
466
|
commands_run: z.ZodNumber;
|
|
317
467
|
/** Which gate produced it — a phase boundary, or the all-terminal funnel. */
|
|
@@ -320,20 +470,100 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
320
470
|
reason: z.ZodOptional<z.ZodString>;
|
|
321
471
|
recorded_at: z.ZodOptional<z.ZodString>;
|
|
322
472
|
}, "strict", z.ZodTypeAny, {
|
|
323
|
-
outcome: "executed" | "scoped_out" | "disabled" | "
|
|
473
|
+
outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
|
|
324
474
|
passed: boolean | null;
|
|
325
475
|
commands_run: number;
|
|
326
476
|
reason?: string | undefined;
|
|
327
477
|
scope?: string | undefined;
|
|
328
478
|
recorded_at?: string | undefined;
|
|
329
479
|
}, {
|
|
330
|
-
outcome: "executed" | "scoped_out" | "disabled" | "
|
|
480
|
+
outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
|
|
331
481
|
passed: boolean | null;
|
|
332
482
|
commands_run: number;
|
|
333
483
|
reason?: string | undefined;
|
|
334
484
|
scope?: string | undefined;
|
|
335
485
|
recorded_at?: string | undefined;
|
|
336
486
|
}>;
|
|
487
|
+
/**
|
|
488
|
+
* How the run's work was READMITTED. REQUIRED, same shape as `final_gate`:
|
|
489
|
+
* the clean case is `NO_RECOVERY` (empty sets), never an omitted key, so a
|
|
490
|
+
* recovered run cannot render as a clean one and a pre-recovery release's
|
|
491
|
+
* artifact cannot read as clean either.
|
|
492
|
+
*/
|
|
493
|
+
recovery: z.ZodObject<{
|
|
494
|
+
recovered_by_hand: z.ZodArray<z.ZodObject<{
|
|
495
|
+
kind: z.ZodEnum<["recovered_by_hand", "accepted_via_recovery"]>;
|
|
496
|
+
submission_id: z.ZodString;
|
|
497
|
+
lane: z.ZodString;
|
|
498
|
+
issue_code: z.ZodOptional<z.ZodString>;
|
|
499
|
+
recorded_at: z.ZodString;
|
|
500
|
+
}, "strict", z.ZodTypeAny, {
|
|
501
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
502
|
+
lane: string;
|
|
503
|
+
recorded_at: string;
|
|
504
|
+
submission_id: string;
|
|
505
|
+
issue_code?: string | undefined;
|
|
506
|
+
}, {
|
|
507
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
508
|
+
lane: string;
|
|
509
|
+
recorded_at: string;
|
|
510
|
+
submission_id: string;
|
|
511
|
+
issue_code?: string | undefined;
|
|
512
|
+
}>, "many">;
|
|
513
|
+
accepted_via_recovery: z.ZodArray<z.ZodObject<{
|
|
514
|
+
kind: z.ZodEnum<["recovered_by_hand", "accepted_via_recovery"]>;
|
|
515
|
+
submission_id: z.ZodString;
|
|
516
|
+
lane: z.ZodString;
|
|
517
|
+
issue_code: z.ZodOptional<z.ZodString>;
|
|
518
|
+
recorded_at: z.ZodString;
|
|
519
|
+
}, "strict", z.ZodTypeAny, {
|
|
520
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
521
|
+
lane: string;
|
|
522
|
+
recorded_at: string;
|
|
523
|
+
submission_id: string;
|
|
524
|
+
issue_code?: string | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
527
|
+
lane: string;
|
|
528
|
+
recorded_at: string;
|
|
529
|
+
submission_id: string;
|
|
530
|
+
issue_code?: string | undefined;
|
|
531
|
+
}>, "many">;
|
|
532
|
+
/** Ledger lines the close-phase read could not parse. See the writer. */
|
|
533
|
+
dropped_lines: z.ZodNumber;
|
|
534
|
+
}, "strict", z.ZodTypeAny, {
|
|
535
|
+
recovered_by_hand: {
|
|
536
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
537
|
+
lane: string;
|
|
538
|
+
recorded_at: string;
|
|
539
|
+
submission_id: string;
|
|
540
|
+
issue_code?: string | undefined;
|
|
541
|
+
}[];
|
|
542
|
+
accepted_via_recovery: {
|
|
543
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
544
|
+
lane: string;
|
|
545
|
+
recorded_at: string;
|
|
546
|
+
submission_id: string;
|
|
547
|
+
issue_code?: string | undefined;
|
|
548
|
+
}[];
|
|
549
|
+
dropped_lines: number;
|
|
550
|
+
}, {
|
|
551
|
+
recovered_by_hand: {
|
|
552
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
553
|
+
lane: string;
|
|
554
|
+
recorded_at: string;
|
|
555
|
+
submission_id: string;
|
|
556
|
+
issue_code?: string | undefined;
|
|
557
|
+
}[];
|
|
558
|
+
accepted_via_recovery: {
|
|
559
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
560
|
+
lane: string;
|
|
561
|
+
recorded_at: string;
|
|
562
|
+
submission_id: string;
|
|
563
|
+
issue_code?: string | undefined;
|
|
564
|
+
}[];
|
|
565
|
+
dropped_lines: number;
|
|
566
|
+
}>;
|
|
337
567
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
338
568
|
finding_id: z.ZodString;
|
|
339
569
|
/** Audit lens the finding came from (free string in the wire contract). */
|
|
@@ -406,8 +636,8 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
406
636
|
*/
|
|
407
637
|
recorded_by_module: z.ZodOptional<z.ZodString>;
|
|
408
638
|
}, "strict", z.ZodTypeAny, {
|
|
409
|
-
outcome: "blocked" | "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
|
|
410
639
|
lens: string;
|
|
640
|
+
outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
|
|
411
641
|
finding_id: string;
|
|
412
642
|
file_exts: string[];
|
|
413
643
|
rework_count: number;
|
|
@@ -430,8 +660,8 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
430
660
|
} | undefined;
|
|
431
661
|
recorded_by_module?: string | undefined;
|
|
432
662
|
}, {
|
|
433
|
-
outcome: "blocked" | "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
|
|
434
663
|
lens: string;
|
|
664
|
+
outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
|
|
435
665
|
finding_id: string;
|
|
436
666
|
file_exts: string[];
|
|
437
667
|
rework_count: number;
|
|
@@ -458,34 +688,51 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
458
688
|
contract_version: string;
|
|
459
689
|
total: number;
|
|
460
690
|
by_outcome: {
|
|
461
|
-
blocked: number;
|
|
462
691
|
refuted: number;
|
|
463
692
|
resolved: number;
|
|
464
693
|
verified_no_change: number;
|
|
465
694
|
inappropriate: number;
|
|
466
695
|
ignored: number;
|
|
696
|
+
blocked: number;
|
|
467
697
|
verified_already_fixed: number;
|
|
468
698
|
};
|
|
469
699
|
by_lens: Record<string, {
|
|
470
|
-
blocked?: number | undefined;
|
|
471
700
|
refuted?: number | undefined;
|
|
472
701
|
resolved?: number | undefined;
|
|
473
702
|
verified_no_change?: number | undefined;
|
|
474
703
|
inappropriate?: number | undefined;
|
|
475
704
|
ignored?: number | undefined;
|
|
705
|
+
blocked?: number | undefined;
|
|
476
706
|
verified_already_fixed?: number | undefined;
|
|
477
707
|
}>;
|
|
478
708
|
final_gate: {
|
|
479
|
-
outcome: "executed" | "scoped_out" | "disabled" | "
|
|
709
|
+
outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
|
|
480
710
|
passed: boolean | null;
|
|
481
711
|
commands_run: number;
|
|
482
712
|
reason?: string | undefined;
|
|
483
713
|
scope?: string | undefined;
|
|
484
714
|
recorded_at?: string | undefined;
|
|
485
715
|
};
|
|
716
|
+
recovery: {
|
|
717
|
+
recovered_by_hand: {
|
|
718
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
719
|
+
lane: string;
|
|
720
|
+
recorded_at: string;
|
|
721
|
+
submission_id: string;
|
|
722
|
+
issue_code?: string | undefined;
|
|
723
|
+
}[];
|
|
724
|
+
accepted_via_recovery: {
|
|
725
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
726
|
+
lane: string;
|
|
727
|
+
recorded_at: string;
|
|
728
|
+
submission_id: string;
|
|
729
|
+
issue_code?: string | undefined;
|
|
730
|
+
}[];
|
|
731
|
+
dropped_lines: number;
|
|
732
|
+
};
|
|
486
733
|
outcomes: {
|
|
487
|
-
outcome: "blocked" | "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
|
|
488
734
|
lens: string;
|
|
735
|
+
outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
|
|
489
736
|
finding_id: string;
|
|
490
737
|
file_exts: string[];
|
|
491
738
|
rework_count: number;
|
|
@@ -515,34 +762,51 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
|
|
|
515
762
|
contract_version: string;
|
|
516
763
|
total: number;
|
|
517
764
|
by_outcome: {
|
|
518
|
-
blocked: number;
|
|
519
765
|
refuted: number;
|
|
520
766
|
resolved: number;
|
|
521
767
|
verified_no_change: number;
|
|
522
768
|
inappropriate: number;
|
|
523
769
|
ignored: number;
|
|
770
|
+
blocked: number;
|
|
524
771
|
verified_already_fixed: number;
|
|
525
772
|
};
|
|
526
773
|
by_lens: Record<string, {
|
|
527
|
-
blocked?: number | undefined;
|
|
528
774
|
refuted?: number | undefined;
|
|
529
775
|
resolved?: number | undefined;
|
|
530
776
|
verified_no_change?: number | undefined;
|
|
531
777
|
inappropriate?: number | undefined;
|
|
532
778
|
ignored?: number | undefined;
|
|
779
|
+
blocked?: number | undefined;
|
|
533
780
|
verified_already_fixed?: number | undefined;
|
|
534
781
|
}>;
|
|
535
782
|
final_gate: {
|
|
536
|
-
outcome: "executed" | "scoped_out" | "disabled" | "
|
|
783
|
+
outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
|
|
537
784
|
passed: boolean | null;
|
|
538
785
|
commands_run: number;
|
|
539
786
|
reason?: string | undefined;
|
|
540
787
|
scope?: string | undefined;
|
|
541
788
|
recorded_at?: string | undefined;
|
|
542
789
|
};
|
|
790
|
+
recovery: {
|
|
791
|
+
recovered_by_hand: {
|
|
792
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
793
|
+
lane: string;
|
|
794
|
+
recorded_at: string;
|
|
795
|
+
submission_id: string;
|
|
796
|
+
issue_code?: string | undefined;
|
|
797
|
+
}[];
|
|
798
|
+
accepted_via_recovery: {
|
|
799
|
+
kind: "recovered_by_hand" | "accepted_via_recovery";
|
|
800
|
+
lane: string;
|
|
801
|
+
recorded_at: string;
|
|
802
|
+
submission_id: string;
|
|
803
|
+
issue_code?: string | undefined;
|
|
804
|
+
}[];
|
|
805
|
+
dropped_lines: number;
|
|
806
|
+
};
|
|
543
807
|
outcomes: {
|
|
544
|
-
outcome: "blocked" | "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
|
|
545
808
|
lens: string;
|
|
809
|
+
outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
|
|
546
810
|
finding_id: string;
|
|
547
811
|
file_exts: string[];
|
|
548
812
|
rework_count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remediationOutcome.d.ts","sourceRoot":"","sources":["../../../src/shared/types/remediationOutcome.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,8BAA8B,2HAQzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAUF,eAAO,MAAM,wBAAwB,wGAK3B,CAAC;AACX,eAAO,MAAM,2BAA2B,0GAAmC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;IAKvB,qGAAqG;;;;;;;;;;;;EAG9F,CAAC;AACZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GACtC,QAAQ,IAAI,QAAQ,CAUtB;AAED,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GACtC,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,CAgBtC;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,wBAAwB,EACjC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAQT;AAaD
|
|
1
|
+
{"version":3,"file":"remediationOutcome.d.ts","sourceRoot":"","sources":["../../../src/shared/types/remediationOutcome.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,8BAA8B,2HAQzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAUF,eAAO,MAAM,wBAAwB,wGAK3B,CAAC;AACX,eAAO,MAAM,2BAA2B,0GAAmC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;IAKvB,qGAAqG;;;;;;;;;;;;EAG9F,CAAC;AACZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GACtC,QAAQ,IAAI,QAAQ,CAUtB;AAED,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GACtC,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,CAgBtC;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,wBAAwB,EACjC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAQT;AAaD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B,8DAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,oBAAoB,GAAG,QAAQ,GACvC,OAAO,CAET;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;IAK9B,6EAA6E;;IAE7E,4EAA4E;;;;;;;;;;;;;;;;;EAIrE,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AACZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI1B,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlE,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,WAIzB,CAAC;AAEF,2DAA2D;AAC3D,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAK3D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAM9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,wBAAwB;;IAGjC,2EAA2E;;IAE3E,+EAA+E;;;IAG/E,4EAA4E;;IAE5E,kEAAkE;;IAElE,mEAAmE;;IAEnE;;;;OAIG;;IAEH,oEAAoE;;IAEpE,oEAAoE;;IAEpE,8EAA8E;;IAE9E,wEAAwE;;;;;;;;;;;;;;IAExE;;;;;;OAMG;;;;;QApRH,qGAAqG;;;;;;;;;;;;;IAsRrG;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGI,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAqB1E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK1C,oDAAoD;;IAEpD,oDAAoD;;IAEpD,kEAAkE;;IAElE;;;;;;;OAOG;;;;;QA9LD,6EAA6E;;QAE7E,4EAA4E;;;;;;;;;;;;;;;;;;IA8L9E;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAtID,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6CzE,2EAA2E;;QAE3E,+EAA+E;;;QAG/E,4EAA4E;;QAE5E,kEAAkE;;QAElE,mEAAmE;;QAEnE;;;;WAIG;;QAEH,oEAAoE;;QAEpE,oEAAoE;;QAEpE,8EAA8E;;QAE9E,wEAAwE;;;;;;;;;;;;;;QAExE;;;;;;WAMG;;;;;YApRH,qGAAqG;;;;;;;;;;;;;QAsRrG;;;;;;WAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDL,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC"}
|
|
@@ -116,23 +116,46 @@ export function mechanismContradictsOutcome(outcome, mechanism) {
|
|
|
116
116
|
* `executed` — the command list ran; `passed` is a real verdict.
|
|
117
117
|
* `scoped_out` — the suite does not apply to this target; zero commands ran.
|
|
118
118
|
* `disabled` — a gate was DUE but did not run.
|
|
119
|
+
* `history` — a verdict for this exact tree content was already recorded, so
|
|
120
|
+
* the floor was NOT re-spawned; `passed` is that recorded verdict
|
|
121
|
+
* and `commands_run` counts the commands the RECORD held, never
|
|
122
|
+
* commands this evaluation ran. A fourth kind rather than a
|
|
123
|
+
* flavour of `executed`, because "the judge ran just now" and
|
|
124
|
+
* "a judge already ruled on this unchanged tree" are different
|
|
125
|
+
* facts about the same verdict — and a reader that cannot tell
|
|
126
|
+
* them apart cannot tell whether the floor is still being
|
|
127
|
+
* exercised at all.
|
|
119
128
|
*/
|
|
120
129
|
export const FinalGateOutcomeKindSchema = z.enum([
|
|
121
130
|
"executed",
|
|
122
131
|
"scoped_out",
|
|
123
132
|
"disabled",
|
|
133
|
+
"history",
|
|
124
134
|
]);
|
|
135
|
+
/**
|
|
136
|
+
* Which outcomes carry a REAL verdict. `executed` because a judge just ran;
|
|
137
|
+
* `history` because a judge ran on this identical tree content and the answer
|
|
138
|
+
* cannot have changed. Every other outcome — the not-run kinds AND the report's
|
|
139
|
+
* own `absent` — has no verdict to report.
|
|
140
|
+
*
|
|
141
|
+
* Accepts `absent` as well as the gate kinds so the REPORT reader can ask this
|
|
142
|
+
* one question rather than restating the list: a second hand-written list is
|
|
143
|
+
* exactly how the next verdict-bearing kind comes back to read as absent.
|
|
144
|
+
*/
|
|
145
|
+
export function carriesGateVerdict(outcome) {
|
|
146
|
+
return outcome === "executed" || outcome === "history";
|
|
147
|
+
}
|
|
125
148
|
/**
|
|
126
149
|
* What the outcomes contract says about the run's tool-owned gate.
|
|
127
150
|
*
|
|
128
|
-
* `outcome` widens the
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
151
|
+
* `outcome` widens the gate kinds with `absent` — which is NOT a gate kind but
|
|
152
|
+
* the report's own statement that no gate record existed for this run. It is
|
|
153
|
+
* stated rather than inferred: the alternative is silence, and silence about a
|
|
154
|
+
* gate reads as "fine".
|
|
132
155
|
*
|
|
133
|
-
* `passed` is `boolean | null`. Only
|
|
134
|
-
* other
|
|
135
|
-
* that did not run as a green floor.
|
|
156
|
+
* `passed` is `boolean | null`. Only a verdict-bearing kind ({@link
|
|
157
|
+
* carriesGateVerdict}) carries one; every other kind carries `null`, so no
|
|
158
|
+
* consumer of this contract can read a gate that did not run as a green floor.
|
|
136
159
|
*/
|
|
137
160
|
export const FinalGateReportSchema = z
|
|
138
161
|
.object({
|
|
@@ -157,6 +180,65 @@ export const ABSENT_FINAL_GATE_REPORT = {
|
|
|
157
180
|
commands_run: 0,
|
|
158
181
|
reason: "no tool-owned gate outcome was recorded for this run",
|
|
159
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* One submission the run READMITTED, and through which verb.
|
|
185
|
+
*
|
|
186
|
+
* `kind` is the submission ledger's own event kind — declared as the two
|
|
187
|
+
* recovery members rather than a boolean, because the two are not the same act:
|
|
188
|
+
* `recovered_by_hand` re-lands a payload the normal lane's validator still
|
|
189
|
+
* fully accepts, while `accepted_via_recovery` relaxed one of its corroboration
|
|
190
|
+
* checks. A surface that collapsed them would erase exactly the difference that
|
|
191
|
+
* makes a run's evidence bar legible.
|
|
192
|
+
*/
|
|
193
|
+
export const RecoveryMarkSchema = z
|
|
194
|
+
.object({
|
|
195
|
+
kind: z.enum(["recovered_by_hand", "accepted_via_recovery"]),
|
|
196
|
+
submission_id: z.string(),
|
|
197
|
+
lane: z.string(),
|
|
198
|
+
issue_code: z.string().optional(),
|
|
199
|
+
recorded_at: z.string(),
|
|
200
|
+
})
|
|
201
|
+
.strict();
|
|
202
|
+
/**
|
|
203
|
+
* How the run's work was READMITTED, as read from the submission ledger at
|
|
204
|
+
* close time.
|
|
205
|
+
*
|
|
206
|
+
* REQUIRED on the outcomes contract and never omitted: like {@link
|
|
207
|
+
* FinalGateReport}, the clean case is written as an empty array rather than
|
|
208
|
+
* left out, so a reader can distinguish "this run recovered nothing" from "this
|
|
209
|
+
* release did not record the fact". The three-shape collapse the outcomes
|
|
210
|
+
* contract exists to prevent — clean, repaired, unknown — was previously
|
|
211
|
+
* expressible for the gate and not for recovery, so a run whose submission had
|
|
212
|
+
* to be re-landed through a LOWER evidence bar produced a completion contract
|
|
213
|
+
* byte-identical to a run that got it right first try.
|
|
214
|
+
*
|
|
215
|
+
* A recovery record is a monotone ACCUMULATOR over the run's ledger events: two
|
|
216
|
+
* marks for one submission (say a hand re-land followed by a relaxed
|
|
217
|
+
* acceptance) are two facts, and neither subsumes the other.
|
|
218
|
+
*/
|
|
219
|
+
export const RunRecoverySchema = z
|
|
220
|
+
.object({
|
|
221
|
+
recovered_by_hand: z.array(RecoveryMarkSchema),
|
|
222
|
+
accepted_via_recovery: z.array(RecoveryMarkSchema),
|
|
223
|
+
/** Ledger lines the close-phase read could not parse. See the writer. */
|
|
224
|
+
dropped_lines: z.number(),
|
|
225
|
+
})
|
|
226
|
+
.strict();
|
|
227
|
+
/**
|
|
228
|
+
* The report's statement when the close-phase read found no recovery at all.
|
|
229
|
+
* NOT the same as "the ledger could not be read": a read failure is reported by
|
|
230
|
+
* the close phase itself rather than laundered into a clean-looking empty set.
|
|
231
|
+
*/
|
|
232
|
+
export const NO_RECOVERY = {
|
|
233
|
+
recovered_by_hand: [],
|
|
234
|
+
accepted_via_recovery: [],
|
|
235
|
+
dropped_lines: 0,
|
|
236
|
+
};
|
|
237
|
+
/** True when the run's ledger recorded any readmission. */
|
|
238
|
+
export function wasRecovered(recovery) {
|
|
239
|
+
return (recovery.recovered_by_hand.length > 0 ||
|
|
240
|
+
recovery.accepted_via_recovery.length > 0);
|
|
241
|
+
}
|
|
160
242
|
/**
|
|
161
243
|
* Item C — result of the close-gate mechanical re-verify of an analyzer-born
|
|
162
244
|
* finding. `verified_mechanically`: the finding's content-anchored lead
|
|
@@ -256,6 +338,13 @@ export const RemediationOutcomesReportSchema = z.object({
|
|
|
256
338
|
* executed-green one.
|
|
257
339
|
*/
|
|
258
340
|
final_gate: FinalGateReportSchema,
|
|
341
|
+
/**
|
|
342
|
+
* How the run's work was READMITTED. REQUIRED, same shape as `final_gate`:
|
|
343
|
+
* the clean case is `NO_RECOVERY` (empty sets), never an omitted key, so a
|
|
344
|
+
* recovered run cannot render as a clean one and a pre-recovery release's
|
|
345
|
+
* artifact cannot read as clean either.
|
|
346
|
+
*/
|
|
347
|
+
recovery: RunRecoverySchema,
|
|
259
348
|
outcomes: z.array(RemediationOutcomeSchema),
|
|
260
349
|
});
|
|
261
350
|
//# sourceMappingURL=remediationOutcome.js.map
|