audit-tools 0.51.7 → 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 +14 -2
- 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 +18 -12
- package/dist/audit/cli/laneSubmissions.d.ts.map +1 -1
- package/dist/audit/cli/laneSubmissions.js +40 -4
- 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 +14 -14
- 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 +206 -31
- 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 +363 -126
- 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 +28 -5
- 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 +19 -7
- 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 +166 -12
- 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 +43 -7
- 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
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type
|
|
2
|
+
import { type CharterLaneGraph, type CharterLaneKind, type CorrespondenceCandidate, type CharterCorrespondence, type CharterDifference, type CharterProvenance, type DifferenceRoute } from "../types/charter.js";
|
|
3
3
|
import type { Finding } from "../types/finding.js";
|
|
4
4
|
/**
|
|
5
|
-
* The charter-EXTRACTION submission (
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* homework. Lanes from every kind are merged (concatenated) before assembly;
|
|
9
|
-
* the join is by file-set overlap, so lanes never need to agree on node ids.
|
|
5
|
+
* The charter-EXTRACTION submission (step 1): ONE blind lane's goal DAG. The lane
|
|
6
|
+
* mints local ids; `premise_height` is not asked for (the tool derives it);
|
|
7
|
+
* `files` is optional (the Stated lane cites provenance only).
|
|
10
8
|
*/
|
|
11
9
|
export declare const CharterSubmissionSchema: z.ZodObject<{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
kind: z.ZodEnum<["stated", "structural", "revealed"]>;
|
|
11
|
+
nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12
|
+
node_id: z.ZodString;
|
|
15
13
|
purpose: z.ZodString;
|
|
14
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
15
|
provenance: z.ZodArray<z.ZodObject<{
|
|
17
16
|
kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
|
|
18
17
|
ref: z.ZodString;
|
|
@@ -27,126 +26,333 @@ export declare const CharterSubmissionSchema: z.ZodObject<{
|
|
|
27
26
|
quote?: string | undefined;
|
|
28
27
|
}>, "many">;
|
|
29
28
|
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
30
|
-
|
|
31
|
-
nominated_cost: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, "charter_id"> & Omit<{
|
|
33
|
-
purpose: z.ZodString;
|
|
34
|
-
premise_height: z.ZodNumber;
|
|
35
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
36
|
-
}, "purpose">, "strict", z.ZodTypeAny, {
|
|
37
|
-
files: string[];
|
|
29
|
+
}, "strict", z.ZodTypeAny, {
|
|
38
30
|
confidence: "high" | "low" | "medium";
|
|
39
|
-
kind: "stated" | "structural" | "revealed" | "true";
|
|
40
31
|
purpose: string;
|
|
41
32
|
provenance: {
|
|
42
33
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
43
34
|
ref: string;
|
|
44
35
|
quote?: string | undefined;
|
|
45
36
|
}[];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
nominated_cost?: string | undefined;
|
|
37
|
+
node_id: string;
|
|
38
|
+
files?: string[] | undefined;
|
|
49
39
|
}, {
|
|
50
|
-
files: string[];
|
|
51
40
|
confidence: "high" | "low" | "medium";
|
|
52
|
-
kind: "stated" | "structural" | "revealed" | "true";
|
|
53
41
|
purpose: string;
|
|
54
42
|
provenance: {
|
|
55
43
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
56
44
|
ref: string;
|
|
57
45
|
quote?: string | undefined;
|
|
58
46
|
}[];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
node_id: string;
|
|
48
|
+
files?: string[] | undefined;
|
|
49
|
+
}>, "many">>;
|
|
50
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
51
|
+
from: z.ZodString;
|
|
52
|
+
to: z.ZodString;
|
|
53
|
+
provenance: z.ZodArray<z.ZodObject<{
|
|
54
|
+
kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
|
|
55
|
+
ref: z.ZodString;
|
|
56
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, "strict", z.ZodTypeAny, {
|
|
58
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
59
|
+
ref: string;
|
|
60
|
+
quote?: string | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
63
|
+
ref: string;
|
|
64
|
+
quote?: string | undefined;
|
|
65
|
+
}>, "many">;
|
|
66
|
+
}, "strict", z.ZodTypeAny, {
|
|
67
|
+
from: string;
|
|
68
|
+
to: string;
|
|
69
|
+
provenance: {
|
|
70
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
71
|
+
ref: string;
|
|
72
|
+
quote?: string | undefined;
|
|
73
|
+
}[];
|
|
74
|
+
}, {
|
|
75
|
+
from: string;
|
|
76
|
+
to: string;
|
|
77
|
+
provenance: {
|
|
78
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
79
|
+
ref: string;
|
|
80
|
+
quote?: string | undefined;
|
|
81
|
+
}[];
|
|
62
82
|
}>, "many">>;
|
|
63
83
|
}, "strict", z.ZodTypeAny, {
|
|
84
|
+
kind: "stated" | "structural" | "revealed";
|
|
64
85
|
nodes: {
|
|
65
|
-
files: string[];
|
|
66
86
|
confidence: "high" | "low" | "medium";
|
|
67
|
-
kind: "stated" | "structural" | "revealed" | "true";
|
|
68
87
|
purpose: string;
|
|
69
88
|
provenance: {
|
|
70
89
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
71
90
|
ref: string;
|
|
72
91
|
quote?: string | undefined;
|
|
73
92
|
}[];
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
93
|
+
node_id: string;
|
|
94
|
+
files?: string[] | undefined;
|
|
95
|
+
}[];
|
|
96
|
+
edges: {
|
|
97
|
+
from: string;
|
|
98
|
+
to: string;
|
|
99
|
+
provenance: {
|
|
100
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
101
|
+
ref: string;
|
|
102
|
+
quote?: string | undefined;
|
|
103
|
+
}[];
|
|
77
104
|
}[];
|
|
78
105
|
}, {
|
|
106
|
+
kind: "stated" | "structural" | "revealed";
|
|
79
107
|
nodes?: {
|
|
80
|
-
files: string[];
|
|
81
108
|
confidence: "high" | "low" | "medium";
|
|
82
|
-
kind: "stated" | "structural" | "revealed" | "true";
|
|
83
109
|
purpose: string;
|
|
84
110
|
provenance: {
|
|
85
111
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
86
112
|
ref: string;
|
|
87
113
|
quote?: string | undefined;
|
|
88
114
|
}[];
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
115
|
+
node_id: string;
|
|
116
|
+
files?: string[] | undefined;
|
|
117
|
+
}[] | undefined;
|
|
118
|
+
edges?: {
|
|
119
|
+
from: string;
|
|
120
|
+
to: string;
|
|
121
|
+
provenance: {
|
|
122
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
123
|
+
ref: string;
|
|
124
|
+
quote?: string | undefined;
|
|
125
|
+
}[];
|
|
92
126
|
}[] | undefined;
|
|
93
127
|
}>;
|
|
94
128
|
export type CharterSubmission = z.infer<typeof CharterSubmissionSchema>;
|
|
95
|
-
/**
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
129
|
+
/** The TOOL-merged extraction submission: every lane's DAG, handed to the executor by path. */
|
|
130
|
+
export declare const CharterExtractionMergedSchema: z.ZodObject<{
|
|
131
|
+
lanes: z.ZodArray<z.ZodObject<{
|
|
132
|
+
kind: z.ZodEnum<["stated", "structural", "revealed"]>;
|
|
133
|
+
nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
134
|
+
node_id: z.ZodString;
|
|
135
|
+
purpose: z.ZodString;
|
|
136
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
137
|
+
provenance: z.ZodArray<z.ZodObject<{
|
|
138
|
+
kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
|
|
139
|
+
ref: z.ZodString;
|
|
140
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, "strict", z.ZodTypeAny, {
|
|
142
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
143
|
+
ref: string;
|
|
144
|
+
quote?: string | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
147
|
+
ref: string;
|
|
148
|
+
quote?: string | undefined;
|
|
149
|
+
}>, "many">;
|
|
150
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
151
|
+
}, "strict", z.ZodTypeAny, {
|
|
152
|
+
confidence: "high" | "low" | "medium";
|
|
153
|
+
purpose: string;
|
|
154
|
+
provenance: {
|
|
155
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
156
|
+
ref: string;
|
|
157
|
+
quote?: string | undefined;
|
|
158
|
+
}[];
|
|
159
|
+
node_id: string;
|
|
160
|
+
files?: string[] | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
confidence: "high" | "low" | "medium";
|
|
163
|
+
purpose: string;
|
|
164
|
+
provenance: {
|
|
165
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
166
|
+
ref: string;
|
|
167
|
+
quote?: string | undefined;
|
|
168
|
+
}[];
|
|
169
|
+
node_id: string;
|
|
170
|
+
files?: string[] | undefined;
|
|
171
|
+
}>, "many">>;
|
|
172
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
173
|
+
from: z.ZodString;
|
|
174
|
+
to: z.ZodString;
|
|
175
|
+
provenance: z.ZodArray<z.ZodObject<{
|
|
176
|
+
kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
|
|
177
|
+
ref: z.ZodString;
|
|
178
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, "strict", z.ZodTypeAny, {
|
|
180
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
181
|
+
ref: string;
|
|
182
|
+
quote?: string | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
185
|
+
ref: string;
|
|
186
|
+
quote?: string | undefined;
|
|
187
|
+
}>, "many">;
|
|
108
188
|
}, "strict", z.ZodTypeAny, {
|
|
109
|
-
|
|
110
|
-
|
|
189
|
+
from: string;
|
|
190
|
+
to: string;
|
|
191
|
+
provenance: {
|
|
192
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
193
|
+
ref: string;
|
|
194
|
+
quote?: string | undefined;
|
|
195
|
+
}[];
|
|
111
196
|
}, {
|
|
112
|
-
|
|
113
|
-
|
|
197
|
+
from: string;
|
|
198
|
+
to: string;
|
|
199
|
+
provenance: {
|
|
200
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
201
|
+
ref: string;
|
|
202
|
+
quote?: string | undefined;
|
|
203
|
+
}[];
|
|
114
204
|
}>, "many">>;
|
|
115
205
|
}, "strict", z.ZodTypeAny, {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
206
|
+
kind: "stated" | "structural" | "revealed";
|
|
207
|
+
nodes: {
|
|
208
|
+
confidence: "high" | "low" | "medium";
|
|
209
|
+
purpose: string;
|
|
210
|
+
provenance: {
|
|
211
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
212
|
+
ref: string;
|
|
213
|
+
quote?: string | undefined;
|
|
214
|
+
}[];
|
|
215
|
+
node_id: string;
|
|
216
|
+
files?: string[] | undefined;
|
|
217
|
+
}[];
|
|
218
|
+
edges: {
|
|
219
|
+
from: string;
|
|
220
|
+
to: string;
|
|
221
|
+
provenance: {
|
|
222
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
223
|
+
ref: string;
|
|
224
|
+
quote?: string | undefined;
|
|
225
|
+
}[];
|
|
120
226
|
}[];
|
|
121
227
|
}, {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
228
|
+
kind: "stated" | "structural" | "revealed";
|
|
229
|
+
nodes?: {
|
|
230
|
+
confidence: "high" | "low" | "medium";
|
|
231
|
+
purpose: string;
|
|
232
|
+
provenance: {
|
|
233
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
234
|
+
ref: string;
|
|
235
|
+
quote?: string | undefined;
|
|
236
|
+
}[];
|
|
237
|
+
node_id: string;
|
|
238
|
+
files?: string[] | undefined;
|
|
126
239
|
}[] | undefined;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
240
|
+
edges?: {
|
|
241
|
+
from: string;
|
|
242
|
+
to: string;
|
|
243
|
+
provenance: {
|
|
244
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
245
|
+
ref: string;
|
|
246
|
+
quote?: string | undefined;
|
|
247
|
+
}[];
|
|
248
|
+
}[] | undefined;
|
|
249
|
+
}>, "many">;
|
|
250
|
+
}, "strict", z.ZodTypeAny, {
|
|
251
|
+
lanes: {
|
|
252
|
+
kind: "stated" | "structural" | "revealed";
|
|
253
|
+
nodes: {
|
|
254
|
+
confidence: "high" | "low" | "medium";
|
|
255
|
+
purpose: string;
|
|
256
|
+
provenance: {
|
|
257
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
258
|
+
ref: string;
|
|
259
|
+
quote?: string | undefined;
|
|
260
|
+
}[];
|
|
261
|
+
node_id: string;
|
|
262
|
+
files?: string[] | undefined;
|
|
263
|
+
}[];
|
|
264
|
+
edges: {
|
|
265
|
+
from: string;
|
|
266
|
+
to: string;
|
|
267
|
+
provenance: {
|
|
268
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
269
|
+
ref: string;
|
|
270
|
+
quote?: string | undefined;
|
|
271
|
+
}[];
|
|
272
|
+
}[];
|
|
273
|
+
}[];
|
|
274
|
+
}, {
|
|
275
|
+
lanes: {
|
|
276
|
+
kind: "stated" | "structural" | "revealed";
|
|
277
|
+
nodes?: {
|
|
278
|
+
confidence: "high" | "low" | "medium";
|
|
279
|
+
purpose: string;
|
|
280
|
+
provenance: {
|
|
281
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
282
|
+
ref: string;
|
|
283
|
+
quote?: string | undefined;
|
|
284
|
+
}[];
|
|
285
|
+
node_id: string;
|
|
286
|
+
files?: string[] | undefined;
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
edges?: {
|
|
289
|
+
from: string;
|
|
290
|
+
to: string;
|
|
291
|
+
provenance: {
|
|
292
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
293
|
+
ref: string;
|
|
294
|
+
quote?: string | undefined;
|
|
295
|
+
}[];
|
|
296
|
+
}[] | undefined;
|
|
297
|
+
}[];
|
|
298
|
+
}>;
|
|
299
|
+
export type CharterExtractionMerged = z.infer<typeof CharterExtractionMergedSchema>;
|
|
300
|
+
export interface AssembledLaneGraph {
|
|
301
|
+
graph: CharterLaneGraph;
|
|
302
|
+
validation_issues: string[];
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Validate one lane's submission into its persisted DAG. Deterministic: same
|
|
306
|
+
* submission + same universe → same graph. Refusals, per node/edge, are recorded
|
|
307
|
+
* as validation issues (surfaced, never silent):
|
|
308
|
+
* - a duplicate `node_id` keeps the first and drops the rest;
|
|
309
|
+
* - an edge naming an unknown node, or a self-edge, is dropped;
|
|
310
|
+
* - a file outside the universe is dropped from the node's scope (a node left with
|
|
311
|
+
* an EMPTY declared scope keeps `files` absent, i.e. becomes provenance-only);
|
|
312
|
+
* - a CYCLE refuses the whole edge set: every edge on a cycle is dropped and the
|
|
313
|
+
* issue names the cycle, because a level cannot be derived from a cyclic graph
|
|
314
|
+
* and a silently broken cycle would hide which edge the lane drafted backwards
|
|
315
|
+
* ([[inverted-neighbor-edges-manufacture-a-cycle]]).
|
|
316
|
+
* `premise_height` = longest path from a ROOT (a node that serves nothing) down to
|
|
317
|
+
* the node, so 0 is a top-level purpose and a leaf mechanism sits deepest.
|
|
318
|
+
*/
|
|
319
|
+
export declare function assembleLaneGraph(submission: CharterSubmission, params: {
|
|
320
|
+
universe: ReadonlySet<string>;
|
|
321
|
+
}): AssembledLaneGraph;
|
|
322
|
+
/** The path part of a provenance ref: `<path>#<symbol>` or `<path>:<line>` → `<path>`. */
|
|
323
|
+
export declare function provenancePath(ref: string): string;
|
|
324
|
+
/**
|
|
325
|
+
* Propose correspondence candidates between every pair of lanes. Two signals, both
|
|
326
|
+
* deterministic and content-derived:
|
|
327
|
+
* - `file_overlap`: the nodes' file scopes share ≥1 path;
|
|
328
|
+
* - `cross_ref`: a node's provenance cites a path (`<path>#<symbol>` / `<path>:<line>`)
|
|
329
|
+
* that lies in the other node's file scope (the Stated lane's usual key).
|
|
330
|
+
* A pair related by both is reported once, as `file_overlap` (the stronger signal),
|
|
331
|
+
* with the union of evidence paths. Candidate ids are content-keyed on the member
|
|
332
|
+
* set, so re-proposal never churns the artifact.
|
|
333
|
+
*/
|
|
334
|
+
export declare function proposeCorrespondences(graphs: readonly CharterLaneGraph[]): CorrespondenceCandidate[];
|
|
335
|
+
/**
|
|
336
|
+
* The charter-COMPARISON submission (steps 2–3): the comparison reader's verdicts
|
|
337
|
+
* on the tool candidates (plus any it adds), and the typed differences. An empty
|
|
338
|
+
* result must affirm `no_correspondences: true` (a silent empty is indistinguishable
|
|
339
|
+
* from a reader that never ran).
|
|
340
|
+
*/
|
|
341
|
+
export declare const CharterComparisonSubmissionSchema: z.ZodEffects<z.ZodObject<{
|
|
342
|
+
correspondences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
343
|
+
candidate_id: z.ZodOptional<z.ZodString>;
|
|
344
|
+
verdict: z.ZodEnum<["confirm", "reject", "widen"]>;
|
|
345
|
+
members: z.ZodArray<z.ZodObject<{
|
|
346
|
+
kind: z.ZodEnum<["stated", "structural", "revealed"]>;
|
|
347
|
+
node_ids: z.ZodArray<z.ZodString, "many">;
|
|
348
|
+
}, "strict", z.ZodTypeAny, {
|
|
349
|
+
kind: "stated" | "structural" | "revealed";
|
|
350
|
+
node_ids: string[];
|
|
351
|
+
}, {
|
|
352
|
+
kind: "stated" | "structural" | "revealed";
|
|
353
|
+
node_ids: string[];
|
|
354
|
+
}>, "many">;
|
|
355
|
+
evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
150
356
|
kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
|
|
151
357
|
ref: z.ZodString;
|
|
152
358
|
quote: z.ZodOptional<z.ZodString>;
|
|
@@ -160,323 +366,391 @@ export declare const CharterDeltaSubmissionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
160
366
|
quote?: string | undefined;
|
|
161
367
|
}>, "many">>;
|
|
162
368
|
}, "strict", z.ZodTypeAny, {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
369
|
+
members: {
|
|
370
|
+
kind: "stated" | "structural" | "revealed";
|
|
371
|
+
node_ids: string[];
|
|
372
|
+
}[];
|
|
373
|
+
evidence: {
|
|
166
374
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
167
375
|
ref: string;
|
|
168
376
|
quote?: string | undefined;
|
|
169
377
|
}[];
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
node_id: string;
|
|
378
|
+
verdict: "confirm" | "reject" | "widen";
|
|
379
|
+
candidate_id?: string | undefined;
|
|
173
380
|
}, {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
381
|
+
members: {
|
|
382
|
+
kind: "stated" | "structural" | "revealed";
|
|
383
|
+
node_ids: string[];
|
|
384
|
+
}[];
|
|
385
|
+
verdict: "confirm" | "reject" | "widen";
|
|
386
|
+
evidence?: {
|
|
180
387
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
181
388
|
ref: string;
|
|
182
389
|
quote?: string | undefined;
|
|
183
390
|
}[] | undefined;
|
|
391
|
+
candidate_id?: string | undefined;
|
|
184
392
|
}>, "many">>;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
393
|
+
differences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
394
|
+
/** The candidate_id, or the 0-based index into `correspondences`, this rests on. */
|
|
395
|
+
correspondence: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
396
|
+
dimension: z.ZodEnum<["purpose", "presence", "responsibility", "hierarchy", "scope", "standing", "standard"]>;
|
|
397
|
+
relation: z.ZodEnum<["equivalent", "complementary", "incompatible"]>;
|
|
398
|
+
split: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
399
|
+
kind: z.ZodLiteral<"two_against_one">;
|
|
400
|
+
odd: z.ZodEnum<["stated", "structural", "revealed"]>;
|
|
190
401
|
}, "strict", z.ZodTypeAny, {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
premise_height: number;
|
|
402
|
+
kind: "two_against_one";
|
|
403
|
+
odd: "stated" | "structural" | "revealed";
|
|
194
404
|
}, {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
200
|
-
from: z.ZodString;
|
|
201
|
-
to: z.ZodString;
|
|
405
|
+
kind: "two_against_one";
|
|
406
|
+
odd: "stated" | "structural" | "revealed";
|
|
407
|
+
}>, z.ZodObject<{
|
|
408
|
+
kind: z.ZodLiteral<"three_way">;
|
|
202
409
|
}, "strict", z.ZodTypeAny, {
|
|
203
|
-
|
|
204
|
-
to: string;
|
|
410
|
+
kind: "three_way";
|
|
205
411
|
}, {
|
|
206
|
-
|
|
207
|
-
|
|
412
|
+
kind: "three_way";
|
|
413
|
+
}>]>>;
|
|
414
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
415
|
+
kind: z.ZodEnum<["stated", "structural", "revealed"]>;
|
|
416
|
+
claim: z.ZodString;
|
|
417
|
+
provenance: z.ZodArray<z.ZodObject<{
|
|
418
|
+
kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
|
|
419
|
+
ref: z.ZodString;
|
|
420
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
421
|
+
}, "strict", z.ZodTypeAny, {
|
|
422
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
423
|
+
ref: string;
|
|
424
|
+
quote?: string | undefined;
|
|
425
|
+
}, {
|
|
426
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
427
|
+
ref: string;
|
|
428
|
+
quote?: string | undefined;
|
|
429
|
+
}>, "many">;
|
|
430
|
+
}, "strict", z.ZodTypeAny, {
|
|
431
|
+
kind: "stated" | "structural" | "revealed";
|
|
432
|
+
claim: string;
|
|
433
|
+
provenance: {
|
|
434
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
435
|
+
ref: string;
|
|
436
|
+
quote?: string | undefined;
|
|
437
|
+
}[];
|
|
438
|
+
}, {
|
|
439
|
+
kind: "stated" | "structural" | "revealed";
|
|
440
|
+
claim: string;
|
|
441
|
+
provenance: {
|
|
442
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
443
|
+
ref: string;
|
|
444
|
+
quote?: string | undefined;
|
|
445
|
+
}[];
|
|
208
446
|
}>, "many">;
|
|
447
|
+
gap: z.ZodString;
|
|
448
|
+
covered_channel_gap: z.ZodOptional<z.ZodBoolean>;
|
|
209
449
|
}, "strict", z.ZodTypeAny, {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
450
|
+
dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
|
|
451
|
+
relation: "equivalent" | "complementary" | "incompatible";
|
|
452
|
+
accounts: {
|
|
453
|
+
kind: "stated" | "structural" | "revealed";
|
|
454
|
+
claim: string;
|
|
455
|
+
provenance: {
|
|
456
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
457
|
+
ref: string;
|
|
458
|
+
quote?: string | undefined;
|
|
459
|
+
}[];
|
|
218
460
|
}[];
|
|
461
|
+
gap: string;
|
|
462
|
+
correspondence: string | number;
|
|
463
|
+
split?: {
|
|
464
|
+
kind: "two_against_one";
|
|
465
|
+
odd: "stated" | "structural" | "revealed";
|
|
466
|
+
} | {
|
|
467
|
+
kind: "three_way";
|
|
468
|
+
} | undefined;
|
|
469
|
+
covered_channel_gap?: boolean | undefined;
|
|
219
470
|
}, {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
471
|
+
dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
|
|
472
|
+
relation: "equivalent" | "complementary" | "incompatible";
|
|
473
|
+
accounts: {
|
|
474
|
+
kind: "stated" | "structural" | "revealed";
|
|
475
|
+
claim: string;
|
|
476
|
+
provenance: {
|
|
477
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
478
|
+
ref: string;
|
|
479
|
+
quote?: string | undefined;
|
|
480
|
+
}[];
|
|
224
481
|
}[];
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
*/
|
|
237
|
-
no_deltas: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
gap: string;
|
|
483
|
+
correspondence: string | number;
|
|
484
|
+
split?: {
|
|
485
|
+
kind: "two_against_one";
|
|
486
|
+
odd: "stated" | "structural" | "revealed";
|
|
487
|
+
} | {
|
|
488
|
+
kind: "three_way";
|
|
489
|
+
} | undefined;
|
|
490
|
+
covered_channel_gap?: boolean | undefined;
|
|
491
|
+
}>, "many">>;
|
|
492
|
+
no_correspondences: z.ZodOptional<z.ZodBoolean>;
|
|
238
493
|
}, "strict", z.ZodTypeAny, {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
|
|
494
|
+
correspondences: {
|
|
495
|
+
members: {
|
|
496
|
+
kind: "stated" | "structural" | "revealed";
|
|
497
|
+
node_ids: string[];
|
|
244
498
|
}[];
|
|
245
|
-
|
|
246
|
-
triangulated: {
|
|
247
|
-
confidence: "high" | "low" | "medium";
|
|
248
|
-
node_id: string;
|
|
249
|
-
telos: string;
|
|
250
|
-
}[];
|
|
251
|
-
true_nominations: {
|
|
252
|
-
confidence: "high" | "low" | "medium";
|
|
253
|
-
purpose: string;
|
|
254
|
-
provenance: {
|
|
499
|
+
evidence: {
|
|
255
500
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
256
501
|
ref: string;
|
|
257
502
|
quote?: string | undefined;
|
|
258
503
|
}[];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
node_id: string;
|
|
504
|
+
verdict: "confirm" | "reject" | "widen";
|
|
505
|
+
candidate_id?: string | undefined;
|
|
262
506
|
}[];
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
507
|
+
differences: {
|
|
508
|
+
dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
|
|
509
|
+
relation: "equivalent" | "complementary" | "incompatible";
|
|
510
|
+
accounts: {
|
|
511
|
+
kind: "stated" | "structural" | "revealed";
|
|
512
|
+
claim: string;
|
|
513
|
+
provenance: {
|
|
514
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
515
|
+
ref: string;
|
|
516
|
+
quote?: string | undefined;
|
|
517
|
+
}[];
|
|
272
518
|
}[];
|
|
273
|
-
|
|
274
|
-
|
|
519
|
+
gap: string;
|
|
520
|
+
correspondence: string | number;
|
|
521
|
+
split?: {
|
|
522
|
+
kind: "two_against_one";
|
|
523
|
+
odd: "stated" | "structural" | "revealed";
|
|
524
|
+
} | {
|
|
525
|
+
kind: "three_way";
|
|
526
|
+
} | undefined;
|
|
527
|
+
covered_channel_gap?: boolean | undefined;
|
|
528
|
+
}[];
|
|
529
|
+
no_correspondences?: boolean | undefined;
|
|
275
530
|
}, {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
triangulated?: {
|
|
284
|
-
confidence: "high" | "low" | "medium";
|
|
285
|
-
node_id: string;
|
|
286
|
-
telos: string;
|
|
287
|
-
}[] | undefined;
|
|
288
|
-
true_nominations?: {
|
|
289
|
-
confidence: "high" | "low" | "medium";
|
|
290
|
-
purpose: string;
|
|
291
|
-
nominated_alternative: string;
|
|
292
|
-
nominated_cost: string;
|
|
293
|
-
node_id: string;
|
|
294
|
-
provenance?: {
|
|
531
|
+
correspondences?: {
|
|
532
|
+
members: {
|
|
533
|
+
kind: "stated" | "structural" | "revealed";
|
|
534
|
+
node_ids: string[];
|
|
535
|
+
}[];
|
|
536
|
+
verdict: "confirm" | "reject" | "widen";
|
|
537
|
+
evidence?: {
|
|
295
538
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
296
539
|
ref: string;
|
|
297
540
|
quote?: string | undefined;
|
|
298
541
|
}[] | undefined;
|
|
542
|
+
candidate_id?: string | undefined;
|
|
299
543
|
}[] | undefined;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
544
|
+
differences?: {
|
|
545
|
+
dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
|
|
546
|
+
relation: "equivalent" | "complementary" | "incompatible";
|
|
547
|
+
accounts: {
|
|
548
|
+
kind: "stated" | "structural" | "revealed";
|
|
549
|
+
claim: string;
|
|
550
|
+
provenance: {
|
|
551
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
552
|
+
ref: string;
|
|
553
|
+
quote?: string | undefined;
|
|
554
|
+
}[];
|
|
305
555
|
}[];
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
556
|
+
gap: string;
|
|
557
|
+
correspondence: string | number;
|
|
558
|
+
split?: {
|
|
559
|
+
kind: "two_against_one";
|
|
560
|
+
odd: "stated" | "structural" | "revealed";
|
|
561
|
+
} | {
|
|
562
|
+
kind: "three_way";
|
|
563
|
+
} | undefined;
|
|
564
|
+
covered_channel_gap?: boolean | undefined;
|
|
565
|
+
}[] | undefined;
|
|
566
|
+
no_correspondences?: boolean | undefined;
|
|
312
567
|
}>, {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
|
|
568
|
+
correspondences: {
|
|
569
|
+
members: {
|
|
570
|
+
kind: "stated" | "structural" | "revealed";
|
|
571
|
+
node_ids: string[];
|
|
318
572
|
}[];
|
|
319
|
-
|
|
320
|
-
triangulated: {
|
|
321
|
-
confidence: "high" | "low" | "medium";
|
|
322
|
-
node_id: string;
|
|
323
|
-
telos: string;
|
|
324
|
-
}[];
|
|
325
|
-
true_nominations: {
|
|
326
|
-
confidence: "high" | "low" | "medium";
|
|
327
|
-
purpose: string;
|
|
328
|
-
provenance: {
|
|
573
|
+
evidence: {
|
|
329
574
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
330
575
|
ref: string;
|
|
331
576
|
quote?: string | undefined;
|
|
332
577
|
}[];
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
node_id: string;
|
|
578
|
+
verdict: "confirm" | "reject" | "widen";
|
|
579
|
+
candidate_id?: string | undefined;
|
|
336
580
|
}[];
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
581
|
+
differences: {
|
|
582
|
+
dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
|
|
583
|
+
relation: "equivalent" | "complementary" | "incompatible";
|
|
584
|
+
accounts: {
|
|
585
|
+
kind: "stated" | "structural" | "revealed";
|
|
586
|
+
claim: string;
|
|
587
|
+
provenance: {
|
|
588
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
589
|
+
ref: string;
|
|
590
|
+
quote?: string | undefined;
|
|
591
|
+
}[];
|
|
342
592
|
}[];
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
593
|
+
gap: string;
|
|
594
|
+
correspondence: string | number;
|
|
595
|
+
split?: {
|
|
596
|
+
kind: "two_against_one";
|
|
597
|
+
odd: "stated" | "structural" | "revealed";
|
|
598
|
+
} | {
|
|
599
|
+
kind: "three_way";
|
|
600
|
+
} | undefined;
|
|
601
|
+
covered_channel_gap?: boolean | undefined;
|
|
602
|
+
}[];
|
|
603
|
+
no_correspondences?: boolean | undefined;
|
|
349
604
|
}, {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
triangulated?: {
|
|
358
|
-
confidence: "high" | "low" | "medium";
|
|
359
|
-
node_id: string;
|
|
360
|
-
telos: string;
|
|
361
|
-
}[] | undefined;
|
|
362
|
-
true_nominations?: {
|
|
363
|
-
confidence: "high" | "low" | "medium";
|
|
364
|
-
purpose: string;
|
|
365
|
-
nominated_alternative: string;
|
|
366
|
-
nominated_cost: string;
|
|
367
|
-
node_id: string;
|
|
368
|
-
provenance?: {
|
|
605
|
+
correspondences?: {
|
|
606
|
+
members: {
|
|
607
|
+
kind: "stated" | "structural" | "revealed";
|
|
608
|
+
node_ids: string[];
|
|
609
|
+
}[];
|
|
610
|
+
verdict: "confirm" | "reject" | "widen";
|
|
611
|
+
evidence?: {
|
|
369
612
|
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
370
613
|
ref: string;
|
|
371
614
|
quote?: string | undefined;
|
|
372
615
|
}[] | undefined;
|
|
616
|
+
candidate_id?: string | undefined;
|
|
373
617
|
}[] | undefined;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
618
|
+
differences?: {
|
|
619
|
+
dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
|
|
620
|
+
relation: "equivalent" | "complementary" | "incompatible";
|
|
621
|
+
accounts: {
|
|
622
|
+
kind: "stated" | "structural" | "revealed";
|
|
623
|
+
claim: string;
|
|
624
|
+
provenance: {
|
|
625
|
+
kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
|
|
626
|
+
ref: string;
|
|
627
|
+
quote?: string | undefined;
|
|
628
|
+
}[];
|
|
383
629
|
}[];
|
|
384
|
-
|
|
385
|
-
|
|
630
|
+
gap: string;
|
|
631
|
+
correspondence: string | number;
|
|
632
|
+
split?: {
|
|
633
|
+
kind: "two_against_one";
|
|
634
|
+
odd: "stated" | "structural" | "revealed";
|
|
635
|
+
} | {
|
|
636
|
+
kind: "three_way";
|
|
637
|
+
} | undefined;
|
|
638
|
+
covered_channel_gap?: boolean | undefined;
|
|
639
|
+
}[] | undefined;
|
|
640
|
+
no_correspondences?: boolean | undefined;
|
|
386
641
|
}>;
|
|
387
|
-
export type
|
|
642
|
+
export type CharterComparisonSubmission = z.infer<typeof CharterComparisonSubmissionSchema>;
|
|
643
|
+
export interface AssembledComparison {
|
|
644
|
+
correspondences: CharterCorrespondence[];
|
|
645
|
+
differences: CharterDifference[];
|
|
646
|
+
validation_issues: string[];
|
|
647
|
+
}
|
|
648
|
+
interface Route {
|
|
649
|
+
routed_to: DifferenceRoute;
|
|
650
|
+
severity: Finding["severity"];
|
|
651
|
+
}
|
|
388
652
|
/**
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
*
|
|
653
|
+
* The design's routing table (step 5), keyed on `(dimension, relation, split)`.
|
|
654
|
+
* The host never picks a route. Non-incompatible records route nowhere except a
|
|
655
|
+
* covered-channel Presence gap, which routes by the silent channel (Stated silent →
|
|
656
|
+
* doc rot for the remediator; a code channel silent → a clarification).
|
|
393
657
|
*/
|
|
394
|
-
export
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
658
|
+
export declare function routeDifference(input: {
|
|
659
|
+
dimension: CharterDifference["dimension"];
|
|
660
|
+
relation: CharterDifference["relation"];
|
|
661
|
+
split?: CharterDifference["split"];
|
|
662
|
+
covered_channel_gap?: boolean;
|
|
663
|
+
silent?: CharterLaneKind;
|
|
664
|
+
}): Route;
|
|
400
665
|
/**
|
|
401
|
-
*
|
|
402
|
-
*
|
|
666
|
+
* Assemble the confirmed correspondences and the difference records from the
|
|
667
|
+
* comparison submission. Refusals are validation issues, never silent:
|
|
668
|
+
* - a member naming a node absent from its lane's DAG;
|
|
669
|
+
* - a `confirm`/`widen` naming an unknown candidate;
|
|
670
|
+
* - a host-added correspondence (no candidate) with fewer than two evidence refs
|
|
671
|
+
* whose PATHS lie in the repo universe, or whose refs are all on one side;
|
|
672
|
+
* - a difference naming no confirmed correspondence, an account for a lane not in
|
|
673
|
+
* that correspondence, an `incompatible` relation without a `split`, or a split
|
|
674
|
+
* with a non-incompatible relation.
|
|
675
|
+
* Ids are content-keyed (member set / correspondence + dimension + gap).
|
|
403
676
|
*/
|
|
404
|
-
export
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
677
|
+
export declare function assembleComparison(submission: CharterComparisonSubmission, params: {
|
|
678
|
+
candidates: readonly CorrespondenceCandidate[];
|
|
679
|
+
graphs: readonly CharterLaneGraph[];
|
|
680
|
+
universe: ReadonlySet<string>;
|
|
681
|
+
}): AssembledComparison;
|
|
682
|
+
/** The fidelity lane's submission: one verdict per difference in its packet. */
|
|
683
|
+
export declare const CharterFidelitySubmissionSchema: z.ZodObject<{
|
|
684
|
+
verdicts: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
685
|
+
difference_id: z.ZodString;
|
|
686
|
+
verdict: z.ZodEnum<["supported", "interpretation", "unverifiable"]>;
|
|
687
|
+
over_read_side: z.ZodOptional<z.ZodEnum<["stated", "structural", "revealed"]>>;
|
|
688
|
+
rationale: z.ZodString;
|
|
689
|
+
}, "strict", z.ZodTypeAny, {
|
|
690
|
+
rationale: string;
|
|
691
|
+
verdict: "supported" | "interpretation" | "unverifiable";
|
|
692
|
+
difference_id: string;
|
|
693
|
+
over_read_side?: "stated" | "structural" | "revealed" | undefined;
|
|
694
|
+
}, {
|
|
695
|
+
rationale: string;
|
|
696
|
+
verdict: "supported" | "interpretation" | "unverifiable";
|
|
697
|
+
difference_id: string;
|
|
698
|
+
over_read_side?: "stated" | "structural" | "revealed" | undefined;
|
|
699
|
+
}>, {
|
|
700
|
+
rationale: string;
|
|
701
|
+
verdict: "supported" | "interpretation" | "unverifiable";
|
|
702
|
+
difference_id: string;
|
|
703
|
+
over_read_side?: "stated" | "structural" | "revealed" | undefined;
|
|
704
|
+
}, {
|
|
705
|
+
rationale: string;
|
|
706
|
+
verdict: "supported" | "interpretation" | "unverifiable";
|
|
707
|
+
difference_id: string;
|
|
708
|
+
over_read_side?: "stated" | "structural" | "revealed" | undefined;
|
|
709
|
+
}>, "many">>;
|
|
710
|
+
}, "strict", z.ZodTypeAny, {
|
|
711
|
+
verdicts: {
|
|
712
|
+
rationale: string;
|
|
713
|
+
verdict: "supported" | "interpretation" | "unverifiable";
|
|
714
|
+
difference_id: string;
|
|
715
|
+
over_read_side?: "stated" | "structural" | "revealed" | undefined;
|
|
716
|
+
}[];
|
|
717
|
+
}, {
|
|
718
|
+
verdicts?: {
|
|
719
|
+
rationale: string;
|
|
720
|
+
verdict: "supported" | "interpretation" | "unverifiable";
|
|
721
|
+
difference_id: string;
|
|
722
|
+
over_read_side?: "stated" | "structural" | "revealed" | undefined;
|
|
723
|
+
}[] | undefined;
|
|
724
|
+
}>;
|
|
725
|
+
export type CharterFidelitySubmission = z.infer<typeof CharterFidelitySubmissionSchema>;
|
|
408
726
|
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
* (src/shared/types/charter.ts, outside this module's write scope) — this is
|
|
416
|
-
* the assembler's own return shape; the wire schema's `.strict()` boundary is
|
|
417
|
-
* a separate, differently-owned concern (the seam
|
|
418
|
-
* charter-clarification-ingestion--charter-delta-identity--node-id-recovery
|
|
419
|
-
* names charter-clarification-ingestion as the consumer that reads these
|
|
420
|
-
* fields once it stops parsing delta_id).
|
|
727
|
+
* The MECHANICAL pre-check (step 4, first half): given, per provenance ref, whether
|
|
728
|
+
* its quote was found at its ref on disk (`quoteFound(ref, quote)` — the ingest reads
|
|
729
|
+
* the files; this module never does), stamp `unverifiable` (decided_by `tool`) on
|
|
730
|
+
* every finding candidate that has a side whose cited quote is absent. Records with
|
|
731
|
+
* every quote present are left for the lane. Returns the differences with the tool
|
|
732
|
+
* verdicts stamped, plus the ids still owed a lane verdict.
|
|
421
733
|
*/
|
|
422
|
-
export
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
734
|
+
export declare function precheckFidelity(differences: readonly CharterDifference[], quoteFound: (provenance: CharterProvenance) => boolean | undefined): {
|
|
735
|
+
differences: CharterDifference[];
|
|
736
|
+
pendingLane: string[];
|
|
737
|
+
};
|
|
427
738
|
/**
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
739
|
+
* Stamp the lane's verdicts (step 4, second half). A verdict naming an unknown
|
|
740
|
+
* difference, or a difference the tool already settled, is a validation issue; a
|
|
741
|
+
* finding candidate left without any verdict stays pending (never assumed
|
|
742
|
+
* `supported`).
|
|
432
743
|
*/
|
|
433
|
-
export
|
|
434
|
-
|
|
435
|
-
deltas: CharterDeltaWithIdentity[];
|
|
436
|
-
findings: Finding[];
|
|
437
|
-
triangulated: TriangulatedTelos[];
|
|
438
|
-
disagreement: ChannelDisagreement[];
|
|
439
|
-
goal_graph: GoalGraph;
|
|
744
|
+
export declare function applyFidelity(differences: readonly CharterDifference[], submission: CharterFidelitySubmission): {
|
|
745
|
+
differences: CharterDifference[];
|
|
440
746
|
validation_issues: string[];
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* The decomposition HINT: consensus `node_id → members`. A scaffold
|
|
445
|
-
* suggestion the join prefers when a node's scope overlaps it — never a
|
|
446
|
-
* forced node list (a lane may organize boundaries the decomposition missed).
|
|
447
|
-
*/
|
|
448
|
-
hint: Map<string, string[]>;
|
|
449
|
-
/**
|
|
450
|
-
* The repo file universe. Every teleology node's scope must ground here —
|
|
451
|
-
* a node citing files outside the universe is dropped with an issue (the
|
|
452
|
-
* host cannot conjure files the repo does not contain). The ingest
|
|
453
|
-
* chokepoint additionally REFUSES such lanes loudly before assembly.
|
|
454
|
-
*/
|
|
455
|
-
universe: ReadonlySet<string>;
|
|
456
|
-
}
|
|
747
|
+
still_pending: string[];
|
|
748
|
+
};
|
|
457
749
|
/**
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
* Join: each grounded node maps to the hint unit with the largest file overlap
|
|
463
|
-
* (ties → lexicographically first hint id); nodes overlapping NO hint unit are
|
|
464
|
-
* union-found into residual units on any shared file, across kinds. A unit's id
|
|
465
|
-
* is its hint `node_id` when hinted, else the lexicographically first file of
|
|
466
|
-
* its scope union (provably collision-free: a residual scope contains no hint
|
|
467
|
-
* member, so its first file can never equal a hint id, which IS a hint member).
|
|
468
|
-
* Per unit per kind, the best-overlap node becomes the kind's charter
|
|
469
|
-
* (`charter_id = unit:kind`); every joined node persists in the unit's
|
|
470
|
-
* teleology, levels intact.
|
|
750
|
+
* Surface every `supported` finding candidate as a Finding LEAD (leads-not-verdicts).
|
|
751
|
+
* `affected_files` = the union of the corresponding nodes' scopes (the report's
|
|
752
|
+
* grouping evidence); `confidence` = the weakest account's source confidence.
|
|
471
753
|
*/
|
|
472
|
-
export declare function
|
|
473
|
-
export
|
|
474
|
-
/**
|
|
475
|
-
* Whether True nominations are admissible — true ONLY at the `deepest`
|
|
476
|
-
* ceiling (the consent gate that used to live on the extraction lane set;
|
|
477
|
-
* the executor derives this from the confirmed checkpoint's ceiling).
|
|
478
|
-
*/
|
|
479
|
-
allowTrueNominations: boolean;
|
|
480
|
-
}
|
|
481
|
-
export declare function assembleDeltas(submission: CharterDeltaSubmission, subsystems: CharterSubsystem[], params: AssembleDeltasParams): AssembledDeltas;
|
|
754
|
+
export declare function differenceFindings(differences: readonly CharterDifference[], correspondences: readonly CharterCorrespondence[], graphs: readonly CharterLaneGraph[]): Finding[];
|
|
755
|
+
export {};
|
|
482
756
|
//# sourceMappingURL=charterExtraction.d.ts.map
|