audit-tools 0.55.20 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +6 -8
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/charterExtractionPrompt.d.ts +2 -4
- package/dist/audit/cli/charterExtractionPrompt.d.ts.map +1 -1
- package/dist/audit/cli/charterExtractionPrompt.js +15 -0
- package/dist/audit/cli/charterExtractionPrompt.js.map +1 -1
- package/dist/audit/cli/cleanup.js +2 -2
- package/dist/audit/cli/cleanup.js.map +1 -1
- package/dist/audit/cli/cleanupCommand.d.ts.map +1 -1
- package/dist/audit/cli/cleanupCommand.js +11 -10
- package/dist/audit/cli/cleanupCommand.js.map +1 -1
- package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
- package/dist/audit/cli/conceptualDispatch.js +26 -20
- 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 +3 -5
- package/dist/audit/cli/confirmIntentStep.js.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.js +46 -68
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
- package/dist/audit/cli/explainTaskCommand.d.ts.map +1 -1
- package/dist/audit/cli/explainTaskCommand.js +3 -2
- package/dist/audit/cli/explainTaskCommand.js.map +1 -1
- package/dist/audit/cli/fanoutLanes.d.ts.map +1 -1
- package/dist/audit/cli/fanoutLanes.js +7 -6
- package/dist/audit/cli/fanoutLanes.js.map +1 -1
- package/dist/audit/cli/laneSubmissions.d.ts +0 -13
- package/dist/audit/cli/laneSubmissions.d.ts.map +1 -1
- package/dist/audit/cli/laneSubmissions.js +28 -19
- package/dist/audit/cli/laneSubmissions.js.map +1 -1
- package/dist/audit/cli/laneValidators.d.ts +7 -1
- package/dist/audit/cli/laneValidators.d.ts.map +1 -1
- package/dist/audit/cli/laneValidators.js +15 -10
- package/dist/audit/cli/laneValidators.js.map +1 -1
- package/dist/audit/cli/lineIndex.d.ts.map +1 -1
- package/dist/audit/cli/lineIndex.js +4 -3
- package/dist/audit/cli/lineIndex.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +6 -7
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +29 -17
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +75 -130
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/recoverSubmissionCommand.d.ts.map +1 -1
- package/dist/audit/cli/recoverSubmissionCommand.js +5 -4
- package/dist/audit/cli/recoverSubmissionCommand.js.map +1 -1
- package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -1
- package/dist/audit/cli/resynthesizeCommand.js +3 -1
- package/dist/audit/cli/resynthesizeCommand.js.map +1 -1
- package/dist/audit/cli/reviewRun.d.ts +0 -6
- package/dist/audit/cli/reviewRun.d.ts.map +1 -1
- package/dist/audit/cli/reviewRun.js +11 -18
- package/dist/audit/cli/reviewRun.js.map +1 -1
- package/dist/audit/cli/reviewSubmission.d.ts.map +1 -1
- package/dist/audit/cli/reviewSubmission.js +16 -8
- package/dist/audit/cli/reviewSubmission.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +5 -5
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +5 -0
- 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 +3 -2
- package/dist/audit/cli/statusCommand.js.map +1 -1
- package/dist/audit/cli/steps.d.ts +11 -11
- package/dist/audit/cli/steps.d.ts.map +1 -1
- package/dist/audit/cli/steps.js +11 -11
- package/dist/audit/cli/steps.js.map +1 -1
- package/dist/audit/cli/submitCommand.d.ts.map +1 -1
- package/dist/audit/cli/submitCommand.js +9 -4
- package/dist/audit/cli/submitCommand.js.map +1 -1
- package/dist/audit/cli/submitGateResult.d.ts.map +1 -1
- package/dist/audit/cli/submitGateResult.js +2 -1
- package/dist/audit/cli/submitGateResult.js.map +1 -1
- package/dist/audit/cli/unacceptResultsCommand.d.ts +3 -2
- package/dist/audit/cli/unacceptResultsCommand.d.ts.map +1 -1
- package/dist/audit/cli/unacceptResultsCommand.js +8 -6
- package/dist/audit/cli/unacceptResultsCommand.js.map +1 -1
- package/dist/audit/cli/validateResultsCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateResultsCommand.js +5 -4
- package/dist/audit/cli/validateResultsCommand.js.map +1 -1
- package/dist/audit/cli.d.ts +0 -2
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +2 -2
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/decompose/buildStructureDecomposition.d.ts.map +1 -1
- package/dist/audit/decompose/buildStructureDecomposition.js +5 -5
- package/dist/audit/decompose/buildStructureDecomposition.js.map +1 -1
- package/dist/audit/extractors/analyzers/merge.d.ts.map +1 -1
- package/dist/audit/extractors/analyzers/merge.js +4 -11
- package/dist/audit/extractors/analyzers/merge.js.map +1 -1
- package/dist/audit/extractors/analyzers/typescript.d.ts.map +1 -1
- package/dist/audit/extractors/analyzers/typescript.js +3 -14
- package/dist/audit/extractors/analyzers/typescript.js.map +1 -1
- package/dist/audit/extractors/browserExtension.d.ts.map +1 -1
- package/dist/audit/extractors/browserExtension.js +3 -2
- package/dist/audit/extractors/browserExtension.js.map +1 -1
- package/dist/audit/extractors/commentDecomposition.d.ts +1 -1
- package/dist/audit/extractors/commentDecomposition.d.ts.map +1 -1
- package/dist/audit/extractors/commentDecomposition.js +16 -33
- package/dist/audit/extractors/commentDecomposition.js.map +1 -1
- package/dist/audit/extractors/dataStateCoupling.d.ts +4 -0
- package/dist/audit/extractors/dataStateCoupling.d.ts.map +1 -1
- package/dist/audit/extractors/dataStateCoupling.js +26 -12
- package/dist/audit/extractors/dataStateCoupling.js.map +1 -1
- package/dist/audit/extractors/designAssessment.js +1 -1
- 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 +24 -40
- package/dist/audit/extractors/disposition.js.map +1 -1
- package/dist/audit/extractors/docsDigest.js +1 -1
- package/dist/audit/extractors/docsDigest.js.map +1 -1
- package/dist/audit/extractors/flows.d.ts.map +1 -1
- package/dist/audit/extractors/flows.js +23 -19
- package/dist/audit/extractors/flows.js.map +1 -1
- package/dist/audit/extractors/fsIntake.d.ts.map +1 -1
- package/dist/audit/extractors/fsIntake.js +8 -5
- package/dist/audit/extractors/fsIntake.js.map +1 -1
- package/dist/audit/extractors/gitHistory.d.ts +6 -6
- package/dist/audit/extractors/gitHistory.d.ts.map +1 -1
- package/dist/audit/extractors/gitHistory.js +6 -6
- package/dist/audit/extractors/gitHistory.js.map +1 -1
- package/dist/audit/extractors/graph.d.ts +3 -1
- package/dist/audit/extractors/graph.d.ts.map +1 -1
- package/dist/audit/extractors/graph.js +15 -17
- package/dist/audit/extractors/graph.js.map +1 -1
- package/dist/audit/extractors/graphManifestEdges/packageJson.d.ts.map +1 -1
- package/dist/audit/extractors/graphManifestEdges/packageJson.js +23 -40
- package/dist/audit/extractors/graphManifestEdges/packageJson.js.map +1 -1
- package/dist/audit/extractors/graphPathUtils.d.ts +9 -0
- package/dist/audit/extractors/graphPathUtils.d.ts.map +1 -1
- package/dist/audit/extractors/graphPathUtils.js +35 -16
- package/dist/audit/extractors/graphPathUtils.js.map +1 -1
- package/dist/audit/extractors/graphRoutes.d.ts.map +1 -1
- package/dist/audit/extractors/graphRoutes.js +3 -7
- package/dist/audit/extractors/graphRoutes.js.map +1 -1
- package/dist/audit/extractors/graphSignals.d.ts.map +1 -1
- package/dist/audit/extractors/graphSignals.js +40 -29
- package/dist/audit/extractors/graphSignals.js.map +1 -1
- package/dist/audit/extractors/graphSuites.d.ts.map +1 -1
- package/dist/audit/extractors/graphSuites.js +4 -7
- package/dist/audit/extractors/graphSuites.js.map +1 -1
- package/dist/audit/extractors/graphTestSources.d.ts.map +1 -1
- package/dist/audit/extractors/graphTestSources.js +3 -10
- package/dist/audit/extractors/graphTestSources.js.map +1 -1
- package/dist/audit/extractors/pathPatterns.d.ts +4 -2
- package/dist/audit/extractors/pathPatterns.d.ts.map +1 -1
- package/dist/audit/extractors/pathPatterns.js +13 -21
- package/dist/audit/extractors/pathPatterns.js.map +1 -1
- package/dist/audit/extractors/risk.d.ts.map +1 -1
- package/dist/audit/extractors/risk.js +7 -7
- package/dist/audit/extractors/risk.js.map +1 -1
- package/dist/audit/extractors/surfaces.d.ts.map +1 -1
- package/dist/audit/extractors/surfaces.js +3 -9
- package/dist/audit/extractors/surfaces.js.map +1 -1
- package/dist/audit/io/artifacts.d.ts +1 -3
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +9 -9
- package/dist/audit/io/artifacts.js.map +1 -1
- package/dist/audit/io/rollover.d.ts.map +1 -1
- package/dist/audit/io/rollover.js +0 -1
- package/dist/audit/io/rollover.js.map +1 -1
- package/dist/audit/io/runArtifacts.d.ts +30 -2
- package/dist/audit/io/runArtifacts.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.js +23 -23
- package/dist/audit/io/runArtifacts.js.map +1 -1
- package/dist/audit/io/runSnapshot.js +2 -2
- package/dist/audit/io/runSnapshot.js.map +1 -1
- package/dist/audit/io/toolingManifest.d.ts.map +1 -1
- package/dist/audit/io/toolingManifest.js +7 -9
- package/dist/audit/io/toolingManifest.js.map +1 -1
- package/dist/audit/orchestrator/advance.d.ts +6 -0
- package/dist/audit/orchestrator/advance.d.ts.map +1 -1
- package/dist/audit/orchestrator/advance.js +70 -95
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/architectureDiscovery.d.ts +6 -2
- package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -1
- package/dist/audit/orchestrator/architectureDiscovery.js +19 -14
- package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -1
- package/dist/audit/orchestrator/artifactMetadata.d.ts.map +1 -1
- package/dist/audit/orchestrator/artifactMetadata.js +12 -15
- package/dist/audit/orchestrator/artifactMetadata.js.map +1 -1
- package/dist/audit/orchestrator/auditTaskUtils.d.ts +13 -0
- package/dist/audit/orchestrator/auditTaskUtils.d.ts.map +1 -1
- package/dist/audit/orchestrator/auditTaskUtils.js +10 -3
- package/dist/audit/orchestrator/auditTaskUtils.js.map +1 -1
- package/dist/audit/orchestrator/autoFixExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/autoFixExecutor.js +2 -8
- package/dist/audit/orchestrator/autoFixExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterClarificationExecutor.d.ts +4 -2
- package/dist/audit/orchestrator/charterClarificationExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterClarificationExecutor.js +12 -20
- package/dist/audit/orchestrator/charterClarificationExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterComparisonExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterComparisonExecutor.js +5 -9
- package/dist/audit/orchestrator/charterComparisonExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterExtractionExecutor.d.ts +5 -0
- package/dist/audit/orchestrator/charterExtractionExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterExtractionExecutor.js +10 -5
- package/dist/audit/orchestrator/charterExtractionExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterFidelityPacket.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterFidelityPacket.js +1 -2
- package/dist/audit/orchestrator/charterFidelityPacket.js.map +1 -1
- package/dist/audit/orchestrator/charterPacketArchive.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterPacketArchive.js +11 -7
- package/dist/audit/orchestrator/charterPacketArchive.js.map +1 -1
- package/dist/audit/orchestrator/charterPackets.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterPackets.js +30 -69
- package/dist/audit/orchestrator/charterPackets.js.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.d.ts +0 -1
- package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.js +0 -7
- package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.d.ts +20 -0
- package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.js +20 -20
- package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
- package/dist/audit/orchestrator/designReviewProjection.d.ts +1 -3
- package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewProjection.js +8 -2
- package/dist/audit/orchestrator/designReviewProjection.js.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.d.ts +2 -11
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.js +10 -25
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
- package/dist/audit/orchestrator/designReviewSnapshot.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewSnapshot.js +1 -2
- package/dist/audit/orchestrator/designReviewSnapshot.js.map +1 -1
- package/dist/audit/orchestrator/designReviewTask.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewTask.js +2 -2
- package/dist/audit/orchestrator/designReviewTask.js.map +1 -1
- package/dist/audit/orchestrator/edgeReasoning.d.ts.map +1 -1
- package/dist/audit/orchestrator/edgeReasoning.js +1 -3
- package/dist/audit/orchestrator/edgeReasoning.js.map +1 -1
- package/dist/audit/orchestrator/executorResult.d.ts +3 -32
- package/dist/audit/orchestrator/executorResult.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +33 -43
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/executors.d.ts +34 -0
- package/dist/audit/orchestrator/executors.d.ts.map +1 -1
- package/dist/audit/orchestrator/executors.js +19 -4
- package/dist/audit/orchestrator/executors.js.map +1 -1
- package/dist/audit/orchestrator/fileIntegrity.d.ts.map +1 -1
- package/dist/audit/orchestrator/fileIntegrity.js +4 -3
- package/dist/audit/orchestrator/fileIntegrity.js.map +1 -1
- package/dist/audit/orchestrator/flowPlanning.d.ts.map +1 -1
- package/dist/audit/orchestrator/flowPlanning.js +2 -2
- package/dist/audit/orchestrator/flowPlanning.js.map +1 -1
- package/dist/audit/orchestrator/flowRequeue.d.ts.map +1 -1
- package/dist/audit/orchestrator/flowRequeue.js +2 -3
- package/dist/audit/orchestrator/flowRequeue.js.map +1 -1
- package/dist/audit/orchestrator/graphEnrichmentExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/graphEnrichmentExecutor.js +5 -18
- package/dist/audit/orchestrator/graphEnrichmentExecutor.js.map +1 -1
- package/dist/audit/orchestrator/hostInputPause.d.ts +4 -20
- package/dist/audit/orchestrator/hostInputPause.d.ts.map +1 -1
- package/dist/audit/orchestrator/hostInputPause.js +4 -3
- package/dist/audit/orchestrator/hostInputPause.js.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.js +5 -17
- package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +1 -2
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +42 -53
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.d.ts +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.js +12 -8
- package/dist/audit/orchestrator/intentCheckpointGate.js.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js +13 -22
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js.map +1 -1
- package/dist/audit/orchestrator/lineCounts.d.ts +2 -0
- package/dist/audit/orchestrator/lineCounts.d.ts.map +1 -1
- package/dist/audit/orchestrator/lineCounts.js +4 -0
- package/dist/audit/orchestrator/lineCounts.js.map +1 -1
- package/dist/audit/orchestrator/obligationPolicy.d.ts.map +1 -1
- package/dist/audit/orchestrator/obligationPolicy.js +46 -48
- package/dist/audit/orchestrator/obligationPolicy.js.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.d.ts.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.js +4 -3
- package/dist/audit/orchestrator/pendingTasks.js.map +1 -1
- package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/planningExecutors.js +5 -1
- package/dist/audit/orchestrator/planningExecutors.js.map +1 -1
- package/dist/audit/orchestrator/requeue.d.ts.map +1 -1
- package/dist/audit/orchestrator/requeue.js +2 -2
- package/dist/audit/orchestrator/requeue.js.map +1 -1
- package/dist/audit/orchestrator/requeueCommand.d.ts.map +1 -1
- package/dist/audit/orchestrator/requeueCommand.js +13 -21
- package/dist/audit/orchestrator/requeueCommand.js.map +1 -1
- package/dist/audit/orchestrator/resultIngestion.d.ts.map +1 -1
- package/dist/audit/orchestrator/resultIngestion.js +3 -4
- package/dist/audit/orchestrator/resultIngestion.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphContext.js +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphContext.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts +2 -8
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js +6 -38
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketMetrics.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketMetrics.js +7 -68
- package/dist/audit/orchestrator/reviewPacketMetrics.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketShared.d.ts +0 -2
- package/dist/audit/orchestrator/reviewPacketShared.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketShared.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts +1 -3
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.js +3 -13
- package/dist/audit/orchestrator/reviewPacketSizing.js.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.d.ts +7 -8
- package/dist/audit/orchestrator/reviewPackets.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.js +17 -32
- package/dist/audit/orchestrator/reviewPackets.js.map +1 -1
- package/dist/audit/orchestrator/runtimeValidation.js +2 -2
- package/dist/audit/orchestrator/runtimeValidation.js.map +1 -1
- package/dist/audit/orchestrator/scope.d.ts.map +1 -1
- package/dist/audit/orchestrator/scope.js +3 -2
- package/dist/audit/orchestrator/scope.js.map +1 -1
- package/dist/audit/orchestrator/scopeIndexBaseline.d.ts.map +1 -1
- package/dist/audit/orchestrator/scopeIndexBaseline.js +1 -2
- package/dist/audit/orchestrator/scopeIndexBaseline.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/conflict.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js +2 -2
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts +3 -5
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js +8 -6
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js +15 -11
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/index.d.ts +3 -3
- package/dist/audit/orchestrator/selectiveDeepening/index.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/index.js +50 -77
- package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js +27 -18
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts +1 -2
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js +6 -3
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts +12 -9
- package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/shared.js +15 -35
- package/dist/audit/orchestrator/selectiveDeepening/shared.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js +9 -16
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js.map +1 -1
- package/dist/audit/orchestrator/staleness.d.ts.map +1 -1
- package/dist/audit/orchestrator/staleness.js +40 -36
- 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 +16 -17
- 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 +5 -4
- package/dist/audit/orchestrator/structureExecutors.js.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.js +19 -15
- package/dist/audit/orchestrator/taskAffinityGraph.js.map +1 -1
- package/dist/audit/orchestrator/taskBuilder.d.ts.map +1 -1
- package/dist/audit/orchestrator/taskBuilder.js +2 -3
- package/dist/audit/orchestrator/taskBuilder.js.map +1 -1
- package/dist/audit/orchestrator/trivialAudit.d.ts.map +1 -1
- package/dist/audit/orchestrator/trivialAudit.js +2 -1
- package/dist/audit/orchestrator/trivialAudit.js.map +1 -1
- package/dist/audit/reporting/mergeFindings.d.ts.map +1 -1
- package/dist/audit/reporting/mergeFindings.js +6 -4
- package/dist/audit/reporting/mergeFindings.js.map +1 -1
- package/dist/audit/reporting/synthesis.d.ts.map +1 -1
- package/dist/audit/reporting/synthesis.js +5 -10
- package/dist/audit/reporting/synthesis.js.map +1 -1
- package/dist/audit/reporting/workBlocks.d.ts +0 -1
- package/dist/audit/reporting/workBlocks.d.ts.map +1 -1
- package/dist/audit/reporting/workBlocks.js +8 -15
- package/dist/audit/reporting/workBlocks.js.map +1 -1
- package/dist/audit/systemic/reviewFileMap.js +2 -2
- package/dist/audit/systemic/reviewFileMap.js.map +1 -1
- package/dist/audit/systemic/secondOrderAdversaryPrompt.d.ts.map +1 -1
- package/dist/audit/systemic/secondOrderAdversaryPrompt.js +2 -2
- package/dist/audit/systemic/secondOrderAdversaryPrompt.js.map +1 -1
- package/dist/audit/systemic/systemicChallengeLoop.js +3 -3
- package/dist/audit/systemic/systemicChallengeLoop.js.map +1 -1
- package/dist/audit/types/reviewPlanning.d.ts +10 -8
- package/dist/audit/types/reviewPlanning.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.js +3 -1
- package/dist/audit/types/reviewPlanning.js.map +1 -1
- package/dist/remediate/contractPipeline/executionPlan.d.ts +3 -0
- package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/executionPlan.js +27 -22
- package/dist/remediate/contractPipeline/executionPlan.js.map +1 -1
- package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts +1 -0
- package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/runtimePlanAuthority.js +4 -3
- package/dist/remediate/contractPipeline/runtimePlanAuthority.js.map +1 -1
- package/dist/remediate/dedup/crossLensDedup.d.ts +0 -2
- package/dist/remediate/dedup/crossLensDedup.d.ts.map +1 -1
- package/dist/remediate/dedup/crossLensDedup.js +1 -4
- package/dist/remediate/dedup/crossLensDedup.js.map +1 -1
- package/dist/remediate/droppedFindingsRecord.d.ts.map +1 -1
- package/dist/remediate/droppedFindingsRecord.js +3 -1
- package/dist/remediate/droppedFindingsRecord.js.map +1 -1
- package/dist/remediate/index.d.ts +2 -3
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +51 -27
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/intake.d.ts +9 -8
- package/dist/remediate/intake.d.ts.map +1 -1
- package/dist/remediate/intake.js +9 -5
- package/dist/remediate/intake.js.map +1 -1
- package/dist/remediate/intakeSelection.js +3 -3
- package/dist/remediate/intakeSelection.js.map +1 -1
- package/dist/remediate/intent/intentOrdering.d.ts +10 -9
- package/dist/remediate/intent/intentOrdering.d.ts.map +1 -1
- package/dist/remediate/intent/intentOrdering.js +10 -9
- package/dist/remediate/intent/intentOrdering.js.map +1 -1
- package/dist/remediate/intent/intentPersistence.d.ts +1 -0
- package/dist/remediate/intent/intentPersistence.d.ts.map +1 -1
- package/dist/remediate/intent/intentPersistence.js +18 -10
- package/dist/remediate/intent/intentPersistence.js.map +1 -1
- package/dist/remediate/phases/close.d.ts +16 -15
- package/dist/remediate/phases/close.d.ts.map +1 -1
- package/dist/remediate/phases/close.js +172 -163
- package/dist/remediate/phases/close.js.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
- package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyHeadEvidence.js +11 -11
- package/dist/remediate/phases/closeVerifyHeadEvidence.js.map +1 -1
- package/dist/remediate/phases/closeVerifyLandingGates.d.ts +6 -0
- package/dist/remediate/phases/closeVerifyLandingGates.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyLandingGates.js +10 -6
- package/dist/remediate/phases/closeVerifyLandingGates.js.map +1 -1
- package/dist/remediate/phases/grounding.d.ts +1 -1
- package/dist/remediate/phases/grounding.d.ts.map +1 -1
- package/dist/remediate/phases/triage.d.ts.map +1 -1
- package/dist/remediate/phases/triage.js +19 -25
- package/dist/remediate/phases/triage.js.map +1 -1
- package/dist/remediate/phases/triageConformance.d.ts.map +1 -1
- package/dist/remediate/phases/triageConformance.js +11 -15
- package/dist/remediate/phases/triageConformance.js.map +1 -1
- package/dist/remediate/review/autonomousGate.d.ts +5 -5
- package/dist/remediate/review/autonomousGate.d.ts.map +1 -1
- package/dist/remediate/review/autonomousGate.js +5 -0
- package/dist/remediate/review/autonomousGate.js.map +1 -1
- package/dist/remediate/review/reviewGate.d.ts.map +1 -1
- package/dist/remediate/review/reviewGate.js +12 -11
- package/dist/remediate/review/reviewGate.js.map +1 -1
- package/dist/remediate/riskSignal.d.ts +0 -1
- package/dist/remediate/riskSignal.d.ts.map +1 -1
- package/dist/remediate/riskSignal.js.map +1 -1
- package/dist/remediate/state/decisionConsumption.d.ts +2 -0
- package/dist/remediate/state/decisionConsumption.d.ts.map +1 -1
- package/dist/remediate/state/decisionConsumption.js +12 -10
- package/dist/remediate/state/decisionConsumption.js.map +1 -1
- package/dist/remediate/state/itemStatus.d.ts +3 -3
- package/dist/remediate/state/itemStatus.js +5 -5
- package/dist/remediate/state/store.d.ts +4 -3
- package/dist/remediate/state/store.d.ts.map +1 -1
- package/dist/remediate/state/store.js +11 -24
- package/dist/remediate/state/store.js.map +1 -1
- package/dist/remediate/state/types.d.ts +2 -2
- package/dist/remediate/state/types.d.ts.map +1 -1
- package/dist/remediate/state/types.js +12 -14
- package/dist/remediate/state/types.js.map +1 -1
- package/dist/remediate/steps/clarificationResolution.d.ts.map +1 -1
- package/dist/remediate/steps/clarificationResolution.js +4 -2
- package/dist/remediate/steps/clarificationResolution.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +26 -23
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.d.ts +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.js +3 -2
- package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
- package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +8 -3
- package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/contractConformanceReview.js +15 -12
- package/dist/remediate/steps/dispatch/contractConformanceReview.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostContracts.d.ts +2 -0
- package/dist/remediate/steps/dispatch/hostContracts.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostContracts.js +6 -3
- package/dist/remediate/steps/dispatch/hostContracts.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostCorroboration.d.ts +11 -12
- package/dist/remediate/steps/dispatch/hostCorroboration.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostCorroboration.js +13 -6
- package/dist/remediate/steps/dispatch/hostCorroboration.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts +5 -7
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.js +162 -265
- package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -1
- package/dist/remediate/steps/dispatch/requiredTests.d.ts +18 -0
- package/dist/remediate/steps/dispatch/requiredTests.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/requiredTests.js +9 -11
- package/dist/remediate/steps/dispatch/requiredTests.js.map +1 -1
- package/dist/remediate/steps/finalGate.d.ts +1 -1
- package/dist/remediate/steps/finalGate.d.ts.map +1 -1
- package/dist/remediate/steps/finalGate.js +12 -12
- package/dist/remediate/steps/finalGate.js.map +1 -1
- package/dist/remediate/steps/frictionCloseout.d.ts.map +1 -1
- package/dist/remediate/steps/frictionCloseout.js +0 -1
- package/dist/remediate/steps/frictionCloseout.js.map +1 -1
- package/dist/remediate/steps/gateCommands.d.ts +5 -10
- package/dist/remediate/steps/gateCommands.d.ts.map +1 -1
- package/dist/remediate/steps/gateCommands.js +8 -12
- package/dist/remediate/steps/gateCommands.js.map +1 -1
- package/dist/remediate/steps/intakeResolver.d.ts +5 -7
- package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
- package/dist/remediate/steps/intakeResolver.js +30 -33
- package/dist/remediate/steps/intakeResolver.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +1 -1
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +134 -158
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/prompts.d.ts +4 -30
- package/dist/remediate/steps/prompts.d.ts.map +1 -1
- package/dist/remediate/steps/prompts.js +5 -114
- package/dist/remediate/steps/prompts.js.map +1 -1
- package/dist/remediate/steps/recoverIngest.d.ts +5 -13
- package/dist/remediate/steps/recoverIngest.d.ts.map +1 -1
- package/dist/remediate/steps/recoverIngest.js +20 -26
- package/dist/remediate/steps/recoverIngest.js.map +1 -1
- package/dist/remediate/steps/stepWriter.d.ts +5 -4
- package/dist/remediate/steps/stepWriter.d.ts.map +1 -1
- package/dist/remediate/steps/stepWriter.js +8 -5
- package/dist/remediate/steps/stepWriter.js.map +1 -1
- package/dist/remediate/steps/submitGateResult.d.ts +0 -5
- package/dist/remediate/steps/submitGateResult.d.ts.map +1 -1
- package/dist/remediate/steps/submitGateResult.js +8 -8
- package/dist/remediate/steps/submitGateResult.js.map +1 -1
- package/dist/remediate/steps/types.d.ts +1 -1
- package/dist/remediate/steps/types.d.ts.map +1 -1
- package/dist/remediate/steps/types.js +0 -1
- package/dist/remediate/steps/types.js.map +1 -1
- package/dist/remediate/validation/artifacts.d.ts.map +1 -1
- package/dist/remediate/validation/artifacts.js +11 -9
- package/dist/remediate/validation/artifacts.js.map +1 -1
- package/dist/remediate/validation/remediationState.d.ts +0 -2
- package/dist/remediate/validation/remediationState.d.ts.map +1 -1
- package/dist/remediate/validation/remediationState.js +9 -46
- package/dist/remediate/validation/remediationState.js.map +1 -1
- package/dist/shared/accessMemory.d.ts +3 -9
- package/dist/shared/accessMemory.d.ts.map +1 -1
- package/dist/shared/accessMemory.js +2 -4
- package/dist/shared/accessMemory.js.map +1 -1
- package/dist/shared/affinityArtifacts.d.ts.map +1 -1
- package/dist/shared/affinityArtifacts.js +5 -7
- package/dist/shared/affinityArtifacts.js.map +1 -1
- package/dist/shared/agentReflections.d.ts.map +1 -1
- package/dist/shared/agentReflections.js +11 -14
- package/dist/shared/agentReflections.js.map +1 -1
- package/dist/shared/analyzers/binaryAcquisition.d.ts.map +1 -1
- package/dist/shared/analyzers/binaryAcquisition.js +2 -1
- package/dist/shared/analyzers/binaryAcquisition.js.map +1 -1
- package/dist/shared/analyzers/candidates.js +1 -1
- package/dist/shared/analyzers/candidates.js.map +1 -1
- package/dist/shared/analyzers/clippy.d.ts +2 -25
- package/dist/shared/analyzers/clippy.d.ts.map +1 -1
- package/dist/shared/analyzers/clippy.js +1 -17
- package/dist/shared/analyzers/clippy.js.map +1 -1
- package/dist/shared/analyzers/normalizeExternal.d.ts +0 -15
- package/dist/shared/analyzers/normalizeExternal.d.ts.map +1 -1
- package/dist/shared/analyzers/normalizeExternal.js +2 -1
- package/dist/shared/analyzers/normalizeExternal.js.map +1 -1
- package/dist/shared/analyzers/rubocop.d.ts +1 -19
- package/dist/shared/analyzers/rubocop.d.ts.map +1 -1
- package/dist/shared/analyzers/rubocop.js +0 -23
- package/dist/shared/analyzers/rubocop.js.map +1 -1
- package/dist/shared/artifactFreshness.d.ts.map +1 -1
- package/dist/shared/artifactFreshness.js +4 -6
- package/dist/shared/artifactFreshness.js.map +1 -1
- package/dist/shared/chunkByBudget.d.ts +1 -24
- package/dist/shared/chunkByBudget.d.ts.map +1 -1
- package/dist/shared/chunkByBudget.js +2 -13
- package/dist/shared/chunkByBudget.js.map +1 -1
- package/dist/shared/compareCodeUnits.d.ts +2 -0
- package/dist/shared/compareCodeUnits.d.ts.map +1 -1
- package/dist/shared/compareCodeUnits.js +5 -0
- package/dist/shared/compareCodeUnits.js.map +1 -1
- package/dist/shared/contentKey.d.ts.map +1 -1
- package/dist/shared/contentKey.js +3 -1
- package/dist/shared/contentKey.js.map +1 -1
- package/dist/shared/countBy.d.ts.map +1 -1
- package/dist/shared/countBy.js +4 -3
- package/dist/shared/countBy.js.map +1 -1
- package/dist/shared/decompose/charterExtraction.d.ts.map +1 -1
- package/dist/shared/decompose/charterExtraction.js +11 -20
- package/dist/shared/decompose/charterExtraction.js.map +1 -1
- package/dist/shared/decompose/consensus.d.ts.map +1 -1
- package/dist/shared/decompose/consensus.js +4 -12
- package/dist/shared/decompose/consensus.js.map +1 -1
- package/dist/shared/decompose/contentCoherence.d.ts.map +1 -1
- package/dist/shared/decompose/contentCoherence.js +12 -15
- package/dist/shared/decompose/contentCoherence.js.map +1 -1
- package/dist/shared/decompose/modularity.d.ts.map +1 -1
- package/dist/shared/decompose/modularity.js +7 -19
- package/dist/shared/decompose/modularity.js.map +1 -1
- package/dist/shared/decompose/systemicChallenge.d.ts +8 -0
- package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
- package/dist/shared/decompose/systemicChallenge.js +8 -8
- package/dist/shared/decompose/systemicChallenge.js.map +1 -1
- package/dist/shared/findingIdentitySignature.d.ts +6 -1
- package/dist/shared/findingIdentitySignature.d.ts.map +1 -1
- package/dist/shared/findingIdentitySignature.js +8 -6
- package/dist/shared/findingIdentitySignature.js.map +1 -1
- package/dist/shared/findingSimilarity.d.ts.map +1 -1
- package/dist/shared/findingSimilarity.js +9 -14
- package/dist/shared/findingSimilarity.js.map +1 -1
- package/dist/shared/findings/dedupe.d.ts.map +1 -1
- package/dist/shared/findings/dedupe.js +1 -10
- package/dist/shared/findings/dedupe.js.map +1 -1
- package/dist/shared/friction/captureFrictionEvent.d.ts +1 -1
- package/dist/shared/friction/captureFrictionEvent.d.ts.map +1 -1
- package/dist/shared/friction/frictionRecord.d.ts.map +1 -1
- package/dist/shared/friction/frictionRecord.js +3 -2
- package/dist/shared/friction/frictionRecord.js.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts +1 -2
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/friction/triage.d.ts.map +1 -1
- package/dist/shared/friction/triage.js +4 -3
- package/dist/shared/friction/triage.js.map +1 -1
- package/dist/shared/git.d.ts +2 -10
- package/dist/shared/git.d.ts.map +1 -1
- package/dist/shared/git.js +6 -17
- package/dist/shared/git.js.map +1 -1
- package/dist/shared/graph/graphPaths.d.ts +2 -5
- package/dist/shared/graph/graphPaths.d.ts.map +1 -1
- package/dist/shared/graph/graphPaths.js +5 -6
- package/dist/shared/graph/graphPaths.js.map +1 -1
- package/dist/shared/index.d.ts +41 -61
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +25 -7
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/intent/pathScope.d.ts +5 -0
- package/dist/shared/intent/pathScope.d.ts.map +1 -1
- package/dist/shared/intent/pathScope.js +17 -8
- package/dist/shared/intent/pathScope.js.map +1 -1
- package/dist/shared/io/auditToolsPaths.d.ts +9 -16
- package/dist/shared/io/auditToolsPaths.d.ts.map +1 -1
- package/dist/shared/io/auditToolsPaths.js +9 -18
- package/dist/shared/io/auditToolsPaths.js.map +1 -1
- package/dist/shared/io/frictionCapture.d.ts.map +1 -1
- package/dist/shared/io/frictionCapture.js +3 -2
- package/dist/shared/io/frictionCapture.js.map +1 -1
- package/dist/shared/io/stepContractWriter.d.ts.map +1 -1
- package/dist/shared/io/stepContractWriter.js +10 -8
- package/dist/shared/io/stepContractWriter.js.map +1 -1
- package/dist/shared/mcp/submitServer.d.ts.map +1 -1
- package/dist/shared/mcp/submitServer.js +21 -29
- package/dist/shared/mcp/submitServer.js.map +1 -1
- package/dist/shared/observability/rootLogObservations.d.ts.map +1 -1
- package/dist/shared/observability/rootLogObservations.js +3 -2
- package/dist/shared/observability/rootLogObservations.js.map +1 -1
- package/dist/shared/parsing/toml.d.ts.map +1 -1
- package/dist/shared/parsing/toml.js +3 -4
- package/dist/shared/parsing/toml.js.map +1 -1
- package/dist/shared/reporting/auditDeliverable.d.ts.map +1 -1
- package/dist/shared/reporting/auditDeliverable.js +6 -15
- package/dist/shared/reporting/auditDeliverable.js.map +1 -1
- package/dist/shared/reporting/lensCoverage.d.ts.map +1 -1
- package/dist/shared/reporting/lensCoverage.js +4 -5
- package/dist/shared/reporting/lensCoverage.js.map +1 -1
- package/dist/shared/reporting/markdown.d.ts +3 -0
- package/dist/shared/reporting/markdown.d.ts.map +1 -0
- package/dist/shared/reporting/markdown.js +6 -0
- package/dist/shared/reporting/markdown.js.map +1 -0
- package/dist/shared/sessionConfig.d.ts.map +1 -1
- package/dist/shared/sessionConfig.js +3 -7
- package/dist/shared/sessionConfig.js.map +1 -1
- package/dist/shared/submission/handRecovery.d.ts.map +1 -1
- package/dist/shared/submission/handRecovery.js +3 -2
- package/dist/shared/submission/handRecovery.js.map +1 -1
- package/dist/shared/submission/hostResultOutcomes.d.ts +1 -1
- package/dist/shared/submission/hostResultOutcomes.js +2 -2
- package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
- package/dist/shared/submission/submissionClassifier.d.ts.map +1 -1
- package/dist/shared/submission/submissionClassifier.js +4 -3
- package/dist/shared/submission/submissionClassifier.js.map +1 -1
- package/dist/shared/submission/submissionIdentity.d.ts.map +1 -1
- package/dist/shared/submission/submissionIdentity.js +3 -1
- package/dist/shared/submission/submissionIdentity.js.map +1 -1
- package/dist/shared/submission/submissionLedger.d.ts +1 -0
- package/dist/shared/submission/submissionLedger.d.ts.map +1 -1
- package/dist/shared/submission/submissionLedger.js +9 -5
- package/dist/shared/submission/submissionLedger.js.map +1 -1
- package/dist/shared/tooling/allowlistedExec.d.ts.map +1 -1
- package/dist/shared/tooling/allowlistedExec.js +35 -67
- package/dist/shared/tooling/allowlistedExec.js.map +1 -1
- package/dist/shared/tooling/analyzerDeps.d.ts.map +1 -1
- package/dist/shared/tooling/analyzerDeps.js +2 -1
- package/dist/shared/tooling/analyzerDeps.js.map +1 -1
- package/dist/shared/tooling/exec.d.ts +1 -1
- package/dist/shared/tooling/exec.d.ts.map +1 -1
- package/dist/shared/tooling/exec.js +3 -2
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/tooling/landingGates.d.ts +3 -3
- package/dist/shared/tooling/landingGates.js +3 -3
- package/dist/shared/tooling/ownedProcessLifecycle.d.ts +0 -1
- package/dist/shared/tooling/ownedProcessLifecycle.d.ts.map +1 -1
- package/dist/shared/tooling/ownedProcessLifecycle.js +1 -1
- package/dist/shared/tooling/ownedProcessLifecycle.js.map +1 -1
- package/dist/shared/tooling/projectTestAdmission.d.ts +7 -12
- package/dist/shared/tooling/projectTestAdmission.d.ts.map +1 -1
- package/dist/shared/tooling/projectTestAdmission.js.map +1 -1
- package/dist/shared/tooling/testCommand.d.ts +0 -14
- package/dist/shared/tooling/testCommand.d.ts.map +1 -1
- package/dist/shared/tooling/testCommand.js +2 -3
- package/dist/shared/tooling/testCommand.js.map +1 -1
- package/dist/shared/tooling/windowsOwnedJob.d.ts +2 -1
- package/dist/shared/tooling/windowsOwnedJob.d.ts.map +1 -1
- package/dist/shared/types/accessMemory.d.ts +3 -19
- package/dist/shared/types/accessMemory.d.ts.map +1 -1
- package/dist/shared/types/accessMemory.js +3 -19
- package/dist/shared/types/accessMemory.js.map +1 -1
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
- package/dist/shared/types/intentCheckpoint.js +2 -1
- package/dist/shared/types/intentCheckpoint.js.map +1 -1
- package/dist/shared/types/lens.d.ts +5 -0
- package/dist/shared/types/lens.d.ts.map +1 -1
- package/dist/shared/types/lens.js +13 -0
- package/dist/shared/types/lens.js.map +1 -1
- package/dist/shared/types/remediationOutcome.d.ts +10 -0
- package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
- package/dist/shared/types/remediationOutcome.js +3 -0
- package/dist/shared/types/remediationOutcome.js.map +1 -1
- package/dist/shared/validation/contractConstructionSites.d.ts.map +1 -1
- package/dist/shared/validation/contractConstructionSites.js +2 -1
- package/dist/shared/validation/contractConstructionSites.js.map +1 -1
- package/dist/shared/validation/findingGrounding.d.ts +2 -1
- package/dist/shared/validation/findingGrounding.d.ts.map +1 -1
- package/dist/shared/validation/findingGrounding.js +9 -5
- package/dist/shared/validation/findingGrounding.js.map +1 -1
- package/dist/shared/validation/findingsReport.d.ts +6 -0
- package/dist/shared/validation/findingsReport.d.ts.map +1 -1
- package/dist/shared/validation/findingsReport.js +29 -19
- package/dist/shared/validation/findingsReport.js.map +1 -1
- package/docs/audit-pkg/contracts.md +73 -6
- package/docs/audit-pkg/operator-guide.md +10 -2
- package/docs/audit-pkg/product.md +1 -1
- package/package.json +1 -3
- package/remediate-code.mjs +13 -5
- package/scripts/audit/postinstall.mjs +6 -21
- package/scripts/remediate/postinstall.mjs +2 -17
- package/scripts/shared/install-host-assets.mjs +11 -3
- package/scripts/shared/primitives.mjs +14 -3
- package/wrapper/audit-code-wrapper-build.mjs +21 -18
- package/wrapper/audit-code-wrapper-install-hosts.mjs +6 -120
- package/wrapper/audit-code-wrapper-lib.mjs +28 -42
- package/wrapper/audit-code-wrapper-opencode.mjs +11 -24
- package/wrapper/installer-verb-help.mjs +21 -8
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +15 -130
- package/wrapper/remediate-code-wrapper-opencode.mjs +11 -24
- package/wrapper/repo-root.mjs +2 -2
- package/wrapper/shared-install-hosts.mjs +119 -0
- package/wrapper/shared-project-opencode.mjs +22 -0
- package/dist/audit/io/runArtifactTypes.d.ts +0 -8
- package/dist/audit/io/runArtifactTypes.d.ts.map +0 -1
- package/dist/audit/io/runArtifactTypes.js +0 -2
- package/dist/audit/io/runArtifactTypes.js.map +0 -1
- package/dist/audit/orchestrator/accessMemory.d.ts +0 -35
- package/dist/audit/orchestrator/accessMemory.d.ts.map +0 -1
- package/dist/audit/orchestrator/accessMemory.js +0 -54
- package/dist/audit/orchestrator/accessMemory.js.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts +0 -4
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraph.js +0 -7
- package/dist/audit/orchestrator/reviewPacketGraph.js.map +0 -1
- package/dist/shared/continuityScore.d.ts +0 -13
- package/dist/shared/continuityScore.d.ts.map +0 -1
- package/dist/shared/continuityScore.js +0 -164
- package/dist/shared/continuityScore.js.map +0 -1
- package/dist/shared/graph/directedCycles.d.ts +0 -61
- package/dist/shared/graph/directedCycles.d.ts.map +0 -1
- package/dist/shared/graph/directedCycles.js +0 -190
- package/dist/shared/graph/directedCycles.js.map +0 -1
- package/dist/shared/io/pathIdentity.d.ts +0 -26
- package/dist/shared/io/pathIdentity.d.ts.map +0 -1
- package/dist/shared/io/pathIdentity.js +0 -50
- package/dist/shared/io/pathIdentity.js.map +0 -1
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { collectGraphEdges, normalizeGraphPath } from "./graph/graphPaths.js";
|
|
2
|
-
/**
|
|
3
|
-
* Continuity scoring (context-efficiency access-memory track, increment 2b/2d).
|
|
4
|
-
*
|
|
5
|
-
* SINGLE-SOURCED in `audit-tools/shared` so BOTH orchestrators can consume the
|
|
6
|
-
* identical scorer — the auditor/remediator mirroring the harvest core
|
|
7
|
-
* (`deriveAccessMemoryFromEvents`) already established. It is the ONE home for
|
|
8
|
-
* the algorithm, and today the seam is REAL but UNUSED: the audit
|
|
9
|
-
* `reviewPackets` builder carries an optional `continuityScores` input and
|
|
10
|
-
* `continuityMassForPaths` is how a caller applies one, but no production call
|
|
11
|
-
* site passes either — the only consumer of this module is the shared barrel.
|
|
12
|
-
* So the ORDERING described below is a capability the seam provides, not a bias
|
|
13
|
-
* audit or remediate currently applies. (The former claim here — that audit
|
|
14
|
-
* re-exported `computeContinuityScores` and biased review-packet ORDERING with
|
|
15
|
-
* it, and that remediate biased file-ownership sub-wave admission — was false
|
|
16
|
-
* at HEAD; the wiring was retired with the execution substrate and the header
|
|
17
|
-
* outlived it.)
|
|
18
|
-
*
|
|
19
|
-
* Turns the per-run `access_memory.json` record (which files earlier steps
|
|
20
|
-
* covered/edited, with step-ordinal recency) into a per-file continuity score
|
|
21
|
-
* used to bias later work toward files already in play — the known god-file-
|
|
22
|
-
* re-read waste hotspot.
|
|
23
|
-
*
|
|
24
|
-
* The score is an *ideal composition* (per the design of record), NOT a cheap
|
|
25
|
-
* tier-ladder: a recency×frequency seed propagated over the language-neutral
|
|
26
|
-
* dependency graph via **deterministic personalized PageRank**. Recency/frequency
|
|
27
|
-
* are the seed; the graph is the propagation, so a touched file lifts its
|
|
28
|
-
* structural neighbours too (direct + structural continuity). The derived
|
|
29
|
-
* ORDERING is deterministic — power iteration runs to a FIXED count (no
|
|
30
|
-
* convergence-threshold nondeterminism), node/neighbour iteration is sorted
|
|
31
|
-
* (stable float accumulation order for a given runtime), and step-ordinal recency
|
|
32
|
-
* keeps wall-clock out of the signal. (The raw float scores are not claimed
|
|
33
|
-
* bit-portable across V8 versions, but they are never persisted or hashed — only
|
|
34
|
-
* the `access_memory.json` integer counters are — and the mass rounding in
|
|
35
|
-
* {@link continuityMassForPaths} absorbs ULP differences well before they could
|
|
36
|
-
* flip an ordering.)
|
|
37
|
-
*
|
|
38
|
-
* When there is no graph (remediate has no `graph_bundle` at dispatch), pass
|
|
39
|
-
* `graphBundle` as `undefined`: adjacency is empty and PageRank degrades to a
|
|
40
|
-
* pure recency×frequency seed ordering — a valid, weaker continuity signal.
|
|
41
|
-
*
|
|
42
|
-
* Scores are derived JIT at dispatch and never persisted (only the raw counters
|
|
43
|
-
* in `access_memory.json` are). Returns an empty map when there is no signal yet
|
|
44
|
-
* (no access-memory, or every record has zero frequency) — callers treat an empty
|
|
45
|
-
* map as "no bias", so behaviour is identical to pre-continuity on the first steps.
|
|
46
|
-
*/
|
|
47
|
-
const PAGERANK_ALPHA = 0.85;
|
|
48
|
-
const PAGERANK_ITERATIONS = 20;
|
|
49
|
-
/** Per-step recency decay in STEP-ORDINAL space (not wall-clock). */
|
|
50
|
-
const RECENCY_DECAY = 0.9;
|
|
51
|
-
/** `edited` weighted above `covered` — an edit is stronger continuity than a read. */
|
|
52
|
-
const EDITED_WEIGHT = 3;
|
|
53
|
-
function pushNeighbour(adjacency, from, to) {
|
|
54
|
-
let set = adjacency.get(from);
|
|
55
|
-
if (!set) {
|
|
56
|
-
set = new Set();
|
|
57
|
-
adjacency.set(from, set);
|
|
58
|
-
}
|
|
59
|
-
set.add(to);
|
|
60
|
-
}
|
|
61
|
-
export function computeContinuityScores(accessMemory, graphBundle) {
|
|
62
|
-
if (!accessMemory || accessMemory.paths.length === 0) {
|
|
63
|
-
return new Map();
|
|
64
|
-
}
|
|
65
|
-
// 1. Seed vector: recency(step-ordinal decay) × frequency, edited > covered.
|
|
66
|
-
const totalOrdinals = Math.max(1, accessMemory.total_ordinals);
|
|
67
|
-
const seed = new Map();
|
|
68
|
-
for (const record of accessMemory.paths) {
|
|
69
|
-
const frequency = record.covered_count + EDITED_WEIGHT * record.edited_count;
|
|
70
|
-
if (frequency <= 0)
|
|
71
|
-
continue;
|
|
72
|
-
const stepsAgo = Math.max(0, totalOrdinals - 1 - record.last_ordinal);
|
|
73
|
-
const recency = Math.pow(RECENCY_DECAY, stepsAgo);
|
|
74
|
-
const path = normalizeGraphPath(record.path);
|
|
75
|
-
seed.set(path, (seed.get(path) ?? 0) + frequency * recency);
|
|
76
|
-
}
|
|
77
|
-
if (seed.size === 0) {
|
|
78
|
-
return new Map();
|
|
79
|
-
}
|
|
80
|
-
// Normalize the seed to a probability distribution (the PageRank personalization
|
|
81
|
-
// vector) so α/(1-α) teleport mass is well-defined. Guard seedTotal>0 (not just
|
|
82
|
-
// seed.size>0): if every seeded record is so many step-ordinals stale that its
|
|
83
|
-
// recency underflows to 0, seedTotal is 0 and the division would poison every
|
|
84
|
-
// score with NaN — degrade to "no signal" instead.
|
|
85
|
-
const seedTotal = [...seed.values()].reduce((sum, value) => sum + value, 0);
|
|
86
|
-
if (!(seedTotal > 0)) {
|
|
87
|
-
return new Map();
|
|
88
|
-
}
|
|
89
|
-
for (const [key, value] of seed) {
|
|
90
|
-
seed.set(key, value / seedTotal);
|
|
91
|
-
}
|
|
92
|
-
// 2. Undirected structural adjacency over the same edge set packet planning
|
|
93
|
-
// uses. Continuity flows both ways along an edge: a touched file makes its
|
|
94
|
-
// neighbours likely-relevant regardless of import/call direction. Parallel
|
|
95
|
-
// edges are deduped so a hub isn't over-weighted by edge multiplicity.
|
|
96
|
-
const adjacency = new Map();
|
|
97
|
-
const nodes = new Set(seed.keys());
|
|
98
|
-
for (const edge of collectGraphEdges(graphBundle)) {
|
|
99
|
-
const from = normalizeGraphPath(edge.from);
|
|
100
|
-
const to = normalizeGraphPath(edge.to);
|
|
101
|
-
if (from === to)
|
|
102
|
-
continue;
|
|
103
|
-
nodes.add(from);
|
|
104
|
-
nodes.add(to);
|
|
105
|
-
pushNeighbour(adjacency, from, to);
|
|
106
|
-
pushNeighbour(adjacency, to, from);
|
|
107
|
-
}
|
|
108
|
-
// Sorted node list + sorted neighbour lists → stable float accumulation order.
|
|
109
|
-
const nodeList = [...nodes].sort();
|
|
110
|
-
const neighbours = new Map();
|
|
111
|
-
for (const node of nodeList) {
|
|
112
|
-
const set = adjacency.get(node);
|
|
113
|
-
neighbours.set(node, set ? [...set].sort() : []);
|
|
114
|
-
}
|
|
115
|
-
// 3. Personalized PageRank via power iteration to a FIXED count (deterministic).
|
|
116
|
-
// rank₀ = seed distribution; dangling (no-neighbour) mass teleports back to
|
|
117
|
-
// the seed distribution so an isolated touched file keeps its score.
|
|
118
|
-
let rank = new Map();
|
|
119
|
-
for (const node of nodeList) {
|
|
120
|
-
rank.set(node, seed.get(node) ?? 0);
|
|
121
|
-
}
|
|
122
|
-
for (let iteration = 0; iteration < PAGERANK_ITERATIONS; iteration++) {
|
|
123
|
-
const next = new Map();
|
|
124
|
-
for (const node of nodeList) {
|
|
125
|
-
next.set(node, (1 - PAGERANK_ALPHA) * (seed.get(node) ?? 0));
|
|
126
|
-
}
|
|
127
|
-
let danglingMass = 0;
|
|
128
|
-
for (const node of nodeList) {
|
|
129
|
-
const r = rank.get(node) ?? 0;
|
|
130
|
-
const outs = neighbours.get(node) ?? [];
|
|
131
|
-
if (outs.length === 0) {
|
|
132
|
-
danglingMass += r;
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
const share = (PAGERANK_ALPHA * r) / outs.length;
|
|
136
|
-
for (const neighbour of outs) {
|
|
137
|
-
next.set(neighbour, (next.get(neighbour) ?? 0) + share);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (danglingMass > 0) {
|
|
141
|
-
for (const [node, seedShare] of seed) {
|
|
142
|
-
next.set(node, (next.get(node) ?? 0) + PAGERANK_ALPHA * danglingMass * seedShare);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
rank = next;
|
|
146
|
-
}
|
|
147
|
-
return rank;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Sum a work-unit's member-file continuity scores (rounded to fixed precision so
|
|
151
|
-
* ULP-level float differences can't reorder units). Higher = more of the unit's
|
|
152
|
-
* files are connected to already-touched code. Single-sourced so audit's
|
|
153
|
-
* per-packet mass and remediate's per-block mass reduce identically — both
|
|
154
|
-
* normalize each path with {@link normalizeGraphPath} to match the scorer's seed
|
|
155
|
-
* keys, and both round at 1e6 so the derived ordering is stable.
|
|
156
|
-
*/
|
|
157
|
-
export function continuityMassForPaths(paths, scores) {
|
|
158
|
-
let sum = 0;
|
|
159
|
-
for (const path of paths) {
|
|
160
|
-
sum += scores.get(normalizeGraphPath(path)) ?? 0;
|
|
161
|
-
}
|
|
162
|
-
return Math.round(sum * 1e6) / 1e6;
|
|
163
|
-
}
|
|
164
|
-
//# sourceMappingURL=continuityScore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"continuityScore.js","sourceRoot":"","sources":["../../src/shared/continuityScore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,qEAAqE;AACrE,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,sFAAsF;AACtF,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB,SAAS,aAAa,CACpB,SAAmC,EACnC,IAAY,EACZ,EAAU;IAEV,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,GAAG,GAAG,IAAI,GAAG,EAAU,CAAC;QACxB,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC3B,CAAC;IACD,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,Y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gBAC7B,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;QACD,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;YACrB,KAAK,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;gBACrC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,cAAc,GAAG,YAAY,GAAG,SAAS,CAAC,CAAC;YACpF,CAAC;QACH,CAAC;QACD,IAAI,GAAG,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAwB,EACxB,MAA2B;IAE3B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AACrC,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Directed-cycle primitives over an id + dependency-list graph — the ONE core
|
|
3
|
-
* every cycle question in this package draws from.
|
|
4
|
-
*
|
|
5
|
-
* Four call sites used to ask the same question three hand-rolled ways: two
|
|
6
|
-
* Kahn drains (the cyclic-seam detector and the design-spec circular-obligation
|
|
7
|
-
* gate) and a recursive white/gray/black DFS (the obligation-ledger
|
|
8
|
-
* construction guard and the implementation-DAG validator). The Kahn drains
|
|
9
|
-
* were WRONG about membership: a Kahn remainder is "every node that never
|
|
10
|
-
* reached in-degree zero", which includes every node DOWNSTREAM of a cycle, so
|
|
11
|
-
* a tail that merely depends on a cycle member was reported as a member of the
|
|
12
|
-
* cycle it can never be part of. Exact membership is the strongly connected
|
|
13
|
-
* component, and that is what {@link findCyclicComponents} returns.
|
|
14
|
-
*
|
|
15
|
-
* Both traversals are ITERATIVE. A ledger or DAG reaching these functions is
|
|
16
|
-
* host-authored, untrusted input of arbitrary depth; a recursive DFS over one
|
|
17
|
-
* stack-overflows rather than reporting.
|
|
18
|
-
*
|
|
19
|
-
* Determinism is part of the contract — these results reach persisted artifacts
|
|
20
|
-
* and prompt text. Component order, member order and the witness path all
|
|
21
|
-
* follow the caller's input order, never Map/Set iteration accident.
|
|
22
|
-
*/
|
|
23
|
-
/** A node in a directed dependency graph: an id and the ids it depends on. */
|
|
24
|
-
interface DirectedGraphNode {
|
|
25
|
-
/** Node identifier. Duplicate ids are normalized away (see below). */
|
|
26
|
-
id: string;
|
|
27
|
-
/** Ids this node depends on. Ids outside the input set are ignored. */
|
|
28
|
-
depends_on: readonly string[];
|
|
29
|
-
}
|
|
30
|
-
interface DirectedCycleOptions {
|
|
31
|
-
/**
|
|
32
|
-
* Treat a self-edge (`id` → `id`) as a cycle: a 1-member component is
|
|
33
|
-
* reported, and the witness may be `["A","A"]`. Default `false` — the
|
|
34
|
-
* implementation-DAG validator deliberately strips self-edges.
|
|
35
|
-
*/
|
|
36
|
-
includeSelfLoops?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Every CYCLIC strongly connected component of the graph — exact cycle
|
|
40
|
-
* membership, with no downstream tail and no upstream feeder.
|
|
41
|
-
*
|
|
42
|
-
* A component qualifies when it holds two or more mutually reachable nodes, or
|
|
43
|
-
* when it is a single node with a self-edge and `includeSelfLoops` is set.
|
|
44
|
-
* Iterative Tarjan; components are ordered by their first member's input
|
|
45
|
-
* position and members are listed in input order, so the result is stable
|
|
46
|
-
* across runs and platforms.
|
|
47
|
-
*/
|
|
48
|
-
export declare function findCyclicComponents(nodes: readonly DirectedGraphNode[], options?: DirectedCycleOptions): string[][];
|
|
49
|
-
/**
|
|
50
|
-
* The first cycle reachable in input order, as a witness PATH with its start
|
|
51
|
-
* repeated at the end — `["A","B","A"]` — or `null` for an acyclic graph.
|
|
52
|
-
*
|
|
53
|
-
* This is the shape callers render into an error message, so it is a path, not
|
|
54
|
-
* a set: it names the edges that close the loop. Iterative white/gray/black
|
|
55
|
-
* DFS, visiting roots and each node's dependencies in input order, so the
|
|
56
|
-
* reported cycle is the same one on every run. A self-edge yields `["A","A"]`
|
|
57
|
-
* when `includeSelfLoops` is set, and is invisible otherwise.
|
|
58
|
-
*/
|
|
59
|
-
export declare function findFirstCycleWitness(nodes: readonly DirectedGraphNode[], options?: DirectedCycleOptions): string[] | null;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=directedCycles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directedCycles.d.ts","sourceRoot":"","sources":["../../../src/shared/graph/directedCycles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,8EAA8E;AAC9E,UAAU,iBAAiB;IACzB,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,uEAAuE;IACvE,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AA6DD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,iBAAiB,EAAE,EACnC,OAAO,GAAE,oBAAyB,GACjC,MAAM,EAAE,EAAE,CAuEZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,iBAAiB,EAAE,EACnC,OAAO,GAAE,oBAAyB,GACjC,MAAM,EAAE,GAAG,IAAI,CAuCjB"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Directed-cycle primitives over an id + dependency-list graph — the ONE core
|
|
3
|
-
* every cycle question in this package draws from.
|
|
4
|
-
*
|
|
5
|
-
* Four call sites used to ask the same question three hand-rolled ways: two
|
|
6
|
-
* Kahn drains (the cyclic-seam detector and the design-spec circular-obligation
|
|
7
|
-
* gate) and a recursive white/gray/black DFS (the obligation-ledger
|
|
8
|
-
* construction guard and the implementation-DAG validator). The Kahn drains
|
|
9
|
-
* were WRONG about membership: a Kahn remainder is "every node that never
|
|
10
|
-
* reached in-degree zero", which includes every node DOWNSTREAM of a cycle, so
|
|
11
|
-
* a tail that merely depends on a cycle member was reported as a member of the
|
|
12
|
-
* cycle it can never be part of. Exact membership is the strongly connected
|
|
13
|
-
* component, and that is what {@link findCyclicComponents} returns.
|
|
14
|
-
*
|
|
15
|
-
* Both traversals are ITERATIVE. A ledger or DAG reaching these functions is
|
|
16
|
-
* host-authored, untrusted input of arbitrary depth; a recursive DFS over one
|
|
17
|
-
* stack-overflows rather than reporting.
|
|
18
|
-
*
|
|
19
|
-
* Determinism is part of the contract — these results reach persisted artifacts
|
|
20
|
-
* and prompt text. Component order, member order and the witness path all
|
|
21
|
-
* follow the caller's input order, never Map/Set iteration accident.
|
|
22
|
-
*/
|
|
23
|
-
const NO_DEPS = [];
|
|
24
|
-
/**
|
|
25
|
-
* Collapse the caller's node list into a clean adjacency map.
|
|
26
|
-
*
|
|
27
|
-
* MULTISET tolerance is deliberate: a caller may feed the same id twice (the
|
|
28
|
-
* cycle-break re-check used to append a mediator that was already in the
|
|
29
|
-
* graph). A duplicate id keeps its FIRST position and takes the union of every
|
|
30
|
-
* occurrence's dependencies, so a duplicate with identical deps is exactly a
|
|
31
|
-
* de-duplication. Dependencies naming an id outside the input set are external
|
|
32
|
-
* references and are dropped, as is a repeated edge.
|
|
33
|
-
*/
|
|
34
|
-
function normalizeGraph(nodes) {
|
|
35
|
-
const order = [];
|
|
36
|
-
const collected = new Map();
|
|
37
|
-
for (const node of nodes) {
|
|
38
|
-
const existing = collected.get(node.id);
|
|
39
|
-
if (existing === undefined) {
|
|
40
|
-
order.push(node.id);
|
|
41
|
-
collected.set(node.id, [...node.depends_on]);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
existing.push(...node.depends_on);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const known = new Set(order);
|
|
48
|
-
const deps = new Map();
|
|
49
|
-
const selfLoops = new Set();
|
|
50
|
-
for (const id of order) {
|
|
51
|
-
const seen = new Set();
|
|
52
|
-
const edges = [];
|
|
53
|
-
for (const dep of collected.get(id) ?? NO_DEPS) {
|
|
54
|
-
if (!known.has(dep) || seen.has(dep))
|
|
55
|
-
continue;
|
|
56
|
-
seen.add(dep);
|
|
57
|
-
if (dep === id)
|
|
58
|
-
selfLoops.add(id);
|
|
59
|
-
edges.push(dep);
|
|
60
|
-
}
|
|
61
|
-
deps.set(id, edges);
|
|
62
|
-
}
|
|
63
|
-
return { order, deps, selfLoops };
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Every CYCLIC strongly connected component of the graph — exact cycle
|
|
67
|
-
* membership, with no downstream tail and no upstream feeder.
|
|
68
|
-
*
|
|
69
|
-
* A component qualifies when it holds two or more mutually reachable nodes, or
|
|
70
|
-
* when it is a single node with a self-edge and `includeSelfLoops` is set.
|
|
71
|
-
* Iterative Tarjan; components are ordered by their first member's input
|
|
72
|
-
* position and members are listed in input order, so the result is stable
|
|
73
|
-
* across runs and platforms.
|
|
74
|
-
*/
|
|
75
|
-
export function findCyclicComponents(nodes, options = {}) {
|
|
76
|
-
const includeSelfLoops = options.includeSelfLoops === true;
|
|
77
|
-
const { order, deps, selfLoops } = normalizeGraph(nodes);
|
|
78
|
-
const position = new Map();
|
|
79
|
-
for (const [i, id] of order.entries())
|
|
80
|
-
position.set(id, i);
|
|
81
|
-
const index = new Map();
|
|
82
|
-
const lowLink = new Map();
|
|
83
|
-
const onStack = new Set();
|
|
84
|
-
const componentStack = [];
|
|
85
|
-
const frames = [];
|
|
86
|
-
const components = [];
|
|
87
|
-
let counter = 0;
|
|
88
|
-
const open = (id) => {
|
|
89
|
-
index.set(id, counter);
|
|
90
|
-
lowLink.set(id, counter);
|
|
91
|
-
counter += 1;
|
|
92
|
-
componentStack.push(id);
|
|
93
|
-
onStack.add(id);
|
|
94
|
-
frames.push({ id, next: 0 });
|
|
95
|
-
};
|
|
96
|
-
for (const root of order) {
|
|
97
|
-
if (index.has(root))
|
|
98
|
-
continue;
|
|
99
|
-
open(root);
|
|
100
|
-
while (frames.length > 0) {
|
|
101
|
-
const frame = frames[frames.length - 1];
|
|
102
|
-
const edges = deps.get(frame.id) ?? NO_DEPS;
|
|
103
|
-
if (frame.next < edges.length) {
|
|
104
|
-
const dep = edges[frame.next];
|
|
105
|
-
frame.next += 1;
|
|
106
|
-
if (!index.has(dep)) {
|
|
107
|
-
open(dep);
|
|
108
|
-
}
|
|
109
|
-
else if (onStack.has(dep)) {
|
|
110
|
-
lowLink.set(frame.id, Math.min(lowLink.get(frame.id) ?? 0, index.get(dep) ?? 0));
|
|
111
|
-
}
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
frames.pop();
|
|
115
|
-
if (frames.length > 0) {
|
|
116
|
-
const parent = frames[frames.length - 1];
|
|
117
|
-
lowLink.set(parent.id, Math.min(lowLink.get(parent.id) ?? 0, lowLink.get(frame.id) ?? 0));
|
|
118
|
-
}
|
|
119
|
-
if (lowLink.get(frame.id) === index.get(frame.id)) {
|
|
120
|
-
const members = [];
|
|
121
|
-
let popped;
|
|
122
|
-
do {
|
|
123
|
-
popped = componentStack.pop();
|
|
124
|
-
if (popped === undefined)
|
|
125
|
-
break;
|
|
126
|
-
onStack.delete(popped);
|
|
127
|
-
members.push(popped);
|
|
128
|
-
} while (popped !== frame.id);
|
|
129
|
-
components.push(members);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
const cyclic = components.filter((members) => members.length > 1 || (includeSelfLoops && selfLoops.has(members[0])));
|
|
134
|
-
for (const members of cyclic) {
|
|
135
|
-
members.sort((a, b) => (position.get(a) ?? 0) - (position.get(b) ?? 0));
|
|
136
|
-
}
|
|
137
|
-
cyclic.sort((a, b) => (position.get(a[0]) ?? 0) - (position.get(b[0]) ?? 0));
|
|
138
|
-
return cyclic;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* The first cycle reachable in input order, as a witness PATH with its start
|
|
142
|
-
* repeated at the end — `["A","B","A"]` — or `null` for an acyclic graph.
|
|
143
|
-
*
|
|
144
|
-
* This is the shape callers render into an error message, so it is a path, not
|
|
145
|
-
* a set: it names the edges that close the loop. Iterative white/gray/black
|
|
146
|
-
* DFS, visiting roots and each node's dependencies in input order, so the
|
|
147
|
-
* reported cycle is the same one on every run. A self-edge yields `["A","A"]`
|
|
148
|
-
* when `includeSelfLoops` is set, and is invisible otherwise.
|
|
149
|
-
*/
|
|
150
|
-
export function findFirstCycleWitness(nodes, options = {}) {
|
|
151
|
-
const includeSelfLoops = options.includeSelfLoops === true;
|
|
152
|
-
const { order, deps } = normalizeGraph(nodes);
|
|
153
|
-
const WHITE = 0;
|
|
154
|
-
const GRAY = 1;
|
|
155
|
-
const BLACK = 2;
|
|
156
|
-
const color = new Map();
|
|
157
|
-
const path = [];
|
|
158
|
-
const frames = [];
|
|
159
|
-
for (const root of order) {
|
|
160
|
-
if ((color.get(root) ?? WHITE) !== WHITE)
|
|
161
|
-
continue;
|
|
162
|
-
color.set(root, GRAY);
|
|
163
|
-
path.push(root);
|
|
164
|
-
frames.push({ id: root, next: 0 });
|
|
165
|
-
while (frames.length > 0) {
|
|
166
|
-
const frame = frames[frames.length - 1];
|
|
167
|
-
const edges = deps.get(frame.id) ?? NO_DEPS;
|
|
168
|
-
if (frame.next < edges.length) {
|
|
169
|
-
const dep = edges[frame.next];
|
|
170
|
-
frame.next += 1;
|
|
171
|
-
if (dep === frame.id && !includeSelfLoops)
|
|
172
|
-
continue;
|
|
173
|
-
const seen = color.get(dep) ?? WHITE;
|
|
174
|
-
if (seen === BLACK)
|
|
175
|
-
continue;
|
|
176
|
-
if (seen === GRAY)
|
|
177
|
-
return path.slice(path.indexOf(dep)).concat(dep);
|
|
178
|
-
color.set(dep, GRAY);
|
|
179
|
-
path.push(dep);
|
|
180
|
-
frames.push({ id: dep, next: 0 });
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
color.set(frame.id, BLACK);
|
|
184
|
-
path.pop();
|
|
185
|
-
frames.pop();
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return null;
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=directedCycles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directedCycles.js","sourceRoot":"","sources":["../../../src/shared/graph/directedCycles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA6BH,MAAM,OAAO,GAAsB,EAAE,CAAC;AAEtC;;;;;;;;;GASG;AACH,SAAS,cAAc,CAAC,KAAmC;IACzD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,SAAS,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC9C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACxC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACpB,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,MAAM,KAA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,CAAC,CAAC;gBACpE,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;gBACrB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACf,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;gBAClC,SAAS;YACX,CAAC;YACD,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,MAAM,CAAC,GAAG,EAAE,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The single-sourced path canonicalization for ownership identity (INV-SOO-09).
|
|
3
|
-
*
|
|
4
|
-
* Resolves a path to a stable physical-file key: absolute (against `root` when
|
|
5
|
-
* supplied, else cwd), `..`/`.`-collapsed (via `resolve`), separators normalized
|
|
6
|
-
* to `/`, and case-folded on a case-insensitive filesystem. All spellings of one
|
|
7
|
-
* file therefore collide, closing the rel/abs/case/`..` mismatch (CE-004).
|
|
8
|
-
*
|
|
9
|
-
* Symlink identity is a RECORDED RESIDUAL, not silently treated as disjoint
|
|
10
|
-
* (INV-SOO-09 / fail-3): when `resolveSymlinks` is set and the path exists, the
|
|
11
|
-
* realpath is folded in so `link.ts → x.ts` collides; when realpath is
|
|
12
|
-
* unavailable (path absent, or FS symlink resolution out of scope) the lexical
|
|
13
|
-
* canonical key is used and the unresolved case degrades to the downstream merge
|
|
14
|
-
* guard rather than being asserted disjoint here.
|
|
15
|
-
*
|
|
16
|
-
* This is the ONLY normalization scheme for ownership identity — callers must
|
|
17
|
-
* not introduce a second one (failure-mode: path-identity mismatch). It lives in
|
|
18
|
-
* `audit-tools/shared` so BOTH orchestrators' ownership scheduling resolves file
|
|
19
|
-
* identity identically (a remediate write-scope and an audit read-scope key the
|
|
20
|
-
* same file the same way).
|
|
21
|
-
*/
|
|
22
|
-
export declare function canonicalizeFilePath(path: string, opts?: {
|
|
23
|
-
root?: string;
|
|
24
|
-
resolveSymlinks?: boolean;
|
|
25
|
-
}): string;
|
|
26
|
-
//# sourceMappingURL=pathIdentity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pathIdentity.d.ts","sourceRoot":"","sources":["../../../src/shared/io/pathIdentity.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GACtD,MAAM,CAgBR"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { realpathSync } from "node:fs";
|
|
2
|
-
import { isAbsolute, resolve, sep } from "node:path";
|
|
3
|
-
/**
|
|
4
|
-
* Whether the host filesystem is case-insensitive for path identity. win32 and
|
|
5
|
-
* darwin default to case-insensitive volumes; linux is case-sensitive. Used so
|
|
6
|
-
* <!-- comment-citation-exempt: illustrative case-collision paths -->
|
|
7
|
-
* `src/A.ts` and `src/a.ts` collide on a Windows/macOS volume (one physical
|
|
8
|
-
* file) but stay distinct on Linux — INV-SOO-09 canonical physical-file identity.
|
|
9
|
-
*/
|
|
10
|
-
const CASE_INSENSITIVE_FS = process.platform === "win32" || process.platform === "darwin";
|
|
11
|
-
/**
|
|
12
|
-
* The single-sourced path canonicalization for ownership identity (INV-SOO-09).
|
|
13
|
-
*
|
|
14
|
-
* Resolves a path to a stable physical-file key: absolute (against `root` when
|
|
15
|
-
* supplied, else cwd), `..`/`.`-collapsed (via `resolve`), separators normalized
|
|
16
|
-
* to `/`, and case-folded on a case-insensitive filesystem. All spellings of one
|
|
17
|
-
* file therefore collide, closing the rel/abs/case/`..` mismatch (CE-004).
|
|
18
|
-
*
|
|
19
|
-
* Symlink identity is a RECORDED RESIDUAL, not silently treated as disjoint
|
|
20
|
-
* (INV-SOO-09 / fail-3): when `resolveSymlinks` is set and the path exists, the
|
|
21
|
-
* realpath is folded in so `link.ts → x.ts` collides; when realpath is
|
|
22
|
-
* unavailable (path absent, or FS symlink resolution out of scope) the lexical
|
|
23
|
-
* canonical key is used and the unresolved case degrades to the downstream merge
|
|
24
|
-
* guard rather than being asserted disjoint here.
|
|
25
|
-
*
|
|
26
|
-
* This is the ONLY normalization scheme for ownership identity — callers must
|
|
27
|
-
* not introduce a second one (failure-mode: path-identity mismatch). It lives in
|
|
28
|
-
* `audit-tools/shared` so BOTH orchestrators' ownership scheduling resolves file
|
|
29
|
-
* identity identically (a remediate write-scope and an audit read-scope key the
|
|
30
|
-
* same file the same way).
|
|
31
|
-
*/
|
|
32
|
-
export function canonicalizeFilePath(path, opts = {}) {
|
|
33
|
-
const { root, resolveSymlinks = false } = opts;
|
|
34
|
-
let abs = isAbsolute(path)
|
|
35
|
-
? resolve(path)
|
|
36
|
-
: resolve(root ?? process.cwd(), path);
|
|
37
|
-
if (resolveSymlinks) {
|
|
38
|
-
try {
|
|
39
|
-
abs = realpathSync(abs);
|
|
40
|
-
}
|
|
41
|
-
catch {
|
|
42
|
-
// Symlink/realpath unavailable (path absent or FS resolution out of scope):
|
|
43
|
-
// keep the lexical key — the unresolved symlink case is a recorded residual
|
|
44
|
-
// handled by the downstream merge guard, never asserted disjoint here.
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const slashed = abs.split(sep).join("/");
|
|
48
|
-
return CASE_INSENSITIVE_FS ? slashed.toLowerCase() : slashed;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=pathIdentity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pathIdentity.js","sourceRoot":"","sources":["../../../src/shared/io/pathIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAY,EACZ,OAAqD,EAAE;IAEvD,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC;IAC/C,IAAI,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC;QACxB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QACf,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,eAAe,EAAE,CAAC;QACpB,IAAI,CAAC;YACH,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,4EAA4E;YAC5E,4EAA4E;YAC5E,uEAAuE;QACzE,CAAC;IACH,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzC,OAAO,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AAC/D,CAAC"}
|