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,9 +1,8 @@
|
|
|
1
|
-
import { readdir } from "node:fs/promises";
|
|
2
1
|
import { join } from "node:path";
|
|
3
2
|
import { isFileMissingError, readJsonFile } from "audit-tools/shared";
|
|
4
|
-
import { loadRunLedger } from "../supervisor/runLedger.js";
|
|
5
3
|
import { getArtifactsDir } from "./args.js";
|
|
6
4
|
import { outputJson } from "./cliHelpers.js";
|
|
5
|
+
import { loadCurrentActiveReviewRun } from "./reviewRun.js";
|
|
7
6
|
export async function cmdStatus(argv) {
|
|
8
7
|
const artifactsDir = getArtifactsDir(argv);
|
|
9
8
|
const auditStatePath = join(artifactsDir, "audit_state.json");
|
|
@@ -36,82 +35,46 @@ export async function cmdStatus(argv) {
|
|
|
36
35
|
obligationStates[state]++;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
// 2. Read
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
status: entry.status,
|
|
53
|
-
started_at: entry.started_at,
|
|
54
|
-
ended_at: entry.ended_at,
|
|
55
|
-
...(duration_ms !== undefined ? { duration_ms } : {}),
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
// 3. Find the most recent run directory and read pending-audit-tasks.json
|
|
38
|
+
// 2. Read the ACTIVE run's pending-audit-tasks.json
|
|
39
|
+
//
|
|
40
|
+
// The active run is the one the loop is on, named by the review-run manifest
|
|
41
|
+
// the pause wrote — never "the newest directory under runs/". That inference
|
|
42
|
+
// sorted the directory NAMES, which only meant "newest" while a run id began
|
|
43
|
+
// with a UTC timestamp: with the derived id (obligation slug + digest) the
|
|
44
|
+
// sort is alphabetical, so the command would report an arbitrary obligation's
|
|
45
|
+
// pending count and call it current.
|
|
46
|
+
//
|
|
47
|
+
// Both reads degrade to "no run" rather than to a stack. A malformed
|
|
48
|
+
// manifest, an unreadable manifest and an absent manifest all say the same
|
|
49
|
+
// true thing about the ACTIVE run: `status` does not know of one. A status
|
|
50
|
+
// command that throws tells an operator nothing it could have reported.
|
|
59
51
|
let pendingTasksSummary = null;
|
|
60
|
-
const runsDir = join(artifactsDir, "runs");
|
|
61
|
-
let runDirs = [];
|
|
62
52
|
try {
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
|
|
53
|
+
const activeRun = await loadCurrentActiveReviewRun(artifactsDir);
|
|
54
|
+
if (activeRun) {
|
|
55
|
+
const tasks = await readJsonFile(activeRun.pending_audit_tasks_path);
|
|
56
|
+
if (Array.isArray(tasks)) {
|
|
57
|
+
// Count remaining: tasks without status "complete"
|
|
58
|
+
const total = tasks.length;
|
|
59
|
+
const remaining = tasks.filter((t) => t.status !== "complete").length;
|
|
60
|
+
pendingTasksSummary = {
|
|
61
|
+
run_id: activeRun.run_id,
|
|
62
|
+
total,
|
|
63
|
+
remaining,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
69
67
|
}
|
|
70
68
|
catch {
|
|
71
|
-
//
|
|
72
|
-
}
|
|
73
|
-
for (const runDirName of runDirs) {
|
|
74
|
-
const runDir = join(runsDir, runDirName);
|
|
75
|
-
const tasksPath = join(runDir, "pending-audit-tasks.json");
|
|
76
|
-
let tasks = null;
|
|
77
|
-
try {
|
|
78
|
-
tasks = await readJsonFile(tasksPath);
|
|
79
|
-
}
|
|
80
|
-
catch {
|
|
81
|
-
continue; // no pending-audit-tasks.json in this run dir — try previous
|
|
82
|
-
}
|
|
83
|
-
if (!Array.isArray(tasks))
|
|
84
|
-
continue;
|
|
85
|
-
// Count remaining: tasks without status "complete"
|
|
86
|
-
const total = tasks.length;
|
|
87
|
-
const remaining = tasks.filter((t) => t.status !== "complete").length;
|
|
88
|
-
pendingTasksSummary = {
|
|
89
|
-
run_id: runDirName,
|
|
90
|
-
total,
|
|
91
|
-
remaining,
|
|
92
|
-
};
|
|
93
|
-
break;
|
|
69
|
+
// Malformed / unreadable active-run manifest: report "no run", never throw.
|
|
94
70
|
}
|
|
95
|
-
// Derive the started_at and elapsed time for the current last_obligation from
|
|
96
|
-
// the most recent ledger entry that matches it, so operators can tell whether
|
|
97
|
-
// the audit is stuck or merely running.
|
|
98
|
-
const lastObligationEntry = auditState.last_obligation
|
|
99
|
-
? [...ledger.runs].reverse().find((r) => r.obligation_id === auditState.last_obligation)
|
|
100
|
-
: undefined;
|
|
101
|
-
const lastObligationStartedAt = lastObligationEntry?.started_at ?? null;
|
|
102
|
-
const lastObligationElapsedMs = lastObligationStartedAt
|
|
103
|
-
? Date.now() - Date.parse(lastObligationStartedAt)
|
|
104
|
-
: null;
|
|
105
71
|
outputJson({
|
|
106
72
|
artifacts_dir: artifactsDir,
|
|
107
73
|
status: auditState.status,
|
|
108
74
|
last_obligation: auditState.last_obligation ?? null,
|
|
109
|
-
last_obligation_started_at: lastObligationStartedAt,
|
|
110
|
-
last_obligation_elapsed_ms: lastObligationElapsedMs,
|
|
111
75
|
last_executor: auditState.last_executor ?? null,
|
|
112
76
|
blockers: auditState.blockers ?? [],
|
|
113
77
|
obligations_summary: obligationStates,
|
|
114
|
-
recent_runs: recentRuns,
|
|
115
78
|
pending_tasks: pendingTasksSummary,
|
|
116
79
|
});
|
|
117
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/statusCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"statusCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/statusCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBA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selects — the field that makes the choice
|
|
3
|
+
* a stated one rather than an implied one.
|
|
4
|
+
*
|
|
5
|
+
* `preferredExecutor` is not a runner preference; it is a mode switch. A forced
|
|
6
|
+
* executor runs exactly ONE step and bypasses the shared obligation engine
|
|
7
|
+
* entirely, while the absence of one runs the PRIORITY scan and drains the
|
|
8
|
+
* deterministic frontier (`advanceAudit`'s own doc comment). The two modes are
|
|
9
|
+
* different DRAWS over the same registry, so a command that serves one cannot
|
|
10
|
+
* be made to serve the other by filling in a field.
|
|
11
|
+
*
|
|
12
|
+
* It is spelled as a string-literal union rather than a constant because
|
|
13
|
+
* `runAuditStep` already takes `preferredExecutor?: string`, so a constant
|
|
14
|
+
* could be widened silently at the call site. An `executor` mode carries the
|
|
15
|
+
* id; a `drain` mode has no id to carry; a future mode names itself.
|
|
16
|
+
*/
|
|
17
|
+
export type StepCommandMode = "drain" | "executor";
|
|
18
|
+
/**
|
|
19
|
+
* The mode THIS scaffold implements, stated once.
|
|
20
|
+
*
|
|
21
|
+
* The scaffold hard-codes `executor`: a spec that asks for any other mode is
|
|
22
|
+
* refused at the boundary. That refusal is the point. `cmdPlan` is the drain
|
|
23
|
+
* draw — it takes no `preferredExecutor` precisely because supplying one would
|
|
24
|
+
* silently convert the plan draw into a single forced dispatch — and the way it
|
|
25
|
+
* stays out is that adopting this scaffold would require writing
|
|
26
|
+
* `mode: "drain"`, which throws here naming the command's real shape. Before
|
|
27
|
+
* this field existed, `cmdPlan` could not adopt the scaffold at all (the
|
|
28
|
+
* required `preferredExecutor` was the only obstacle), and the day someone
|
|
29
|
+
* relaxed that field to optional is the day the plan draw would have become a
|
|
30
|
+
* forced dispatch with nothing red: the CLI suites pin only that each module
|
|
31
|
+
* exports a function of that name.
|
|
32
|
+
*/
|
|
33
|
+
export declare const STEP_SCAFFOLD_MODE: StepCommandMode;
|
|
1
34
|
export interface StepCommandSpec {
|
|
2
35
|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
36
|
+
* The execution mode this command runs in. Must match
|
|
37
|
+
* {@link STEP_SCAFFOLD_MODE}; anything else is refused with a message naming
|
|
38
|
+
* the mode's real home.
|
|
39
|
+
*/
|
|
40
|
+
mode: StepCommandMode;
|
|
41
|
+
/**
|
|
42
|
+
* The executor to force — the id half of `mode: "executor"`. Required, and
|
|
43
|
+
* not an oversight to relax casually: a defaulted id would run a step the
|
|
44
|
+
* command never asked for, in the mode that makes such a step look
|
|
45
|
+
* intentional.
|
|
5
46
|
*/
|
|
6
47
|
preferredExecutor: string;
|
|
7
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepScaffold.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/stepScaffold.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stepScaffold.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/stepScaffold.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,EAAE,eAA4B,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,IAAI,CAAC,CAwBf"}
|
|
@@ -12,19 +12,25 @@
|
|
|
12
12
|
// CLI VERB in the dispatch table. This is the scaffold those verbs are built
|
|
13
13
|
// from, and it is not dispatchable, so naming it to match that convention would
|
|
14
14
|
// misdescribe it.
|
|
15
|
-
//
|
|
16
|
-
// ⚠ `preferredExecutor` is REQUIRED here, and that is not an oversight to relax
|
|
17
|
-
// casually. It is a MODE SWITCH, not a choice of runner: a forced executor makes
|
|
18
|
-
// `advanceAudit` run exactly one step and bypass the shared engine entirely,
|
|
19
|
-
// while its absence runs the PRIORITY scan and drains the deterministic
|
|
20
|
-
// frontier. So this scaffold serves single-action commands ONLY. `cmdPlan` takes
|
|
21
|
-
// no `preferredExecutor` and therefore CANNOT adopt this as written — giving it
|
|
22
|
-
// one to satisfy the field would silently convert the plan draw into a single
|
|
23
|
-
// forced dispatch. Making the field optional is a real option, but it widens
|
|
24
|
-
// this contract to two modes and belongs in its own change.
|
|
25
15
|
import { runAuditStep } from "./auditStep.js";
|
|
26
16
|
import { getArtifactsDir, getRootDir, warnIfNotGitRepo } from "./args.js";
|
|
27
17
|
import { outputJson } from "./cliHelpers.js";
|
|
18
|
+
/**
|
|
19
|
+
* The mode THIS scaffold implements, stated once.
|
|
20
|
+
*
|
|
21
|
+
* The scaffold hard-codes `executor`: a spec that asks for any other mode is
|
|
22
|
+
* refused at the boundary. That refusal is the point. `cmdPlan` is the drain
|
|
23
|
+
* draw — it takes no `preferredExecutor` precisely because supplying one would
|
|
24
|
+
* silently convert the plan draw into a single forced dispatch — and the way it
|
|
25
|
+
* stays out is that adopting this scaffold would require writing
|
|
26
|
+
* `mode: "drain"`, which throws here naming the command's real shape. Before
|
|
27
|
+
* this field existed, `cmdPlan` could not adopt the scaffold at all (the
|
|
28
|
+
* required `preferredExecutor` was the only obstacle), and the day someone
|
|
29
|
+
* relaxed that field to optional is the day the plan draw would have become a
|
|
30
|
+
* forced dispatch with nothing red: the CLI suites pin only that each module
|
|
31
|
+
* exports a function of that name.
|
|
32
|
+
*/
|
|
33
|
+
export const STEP_SCAFFOLD_MODE = "executor";
|
|
28
34
|
/**
|
|
29
35
|
* Run one forced-executor audit step and print its envelope.
|
|
30
36
|
*
|
|
@@ -32,6 +38,14 @@ import { outputJson } from "./cliHelpers.js";
|
|
|
32
38
|
* every adopter — the shape all three hand-rolled copies already emitted.
|
|
33
39
|
*/
|
|
34
40
|
export async function runStepCommand(argv, spec) {
|
|
41
|
+
if (spec.mode !== STEP_SCAFFOLD_MODE) {
|
|
42
|
+
throw new Error(`The step-command scaffold serves mode "${STEP_SCAFFOLD_MODE}" only, but this ` +
|
|
43
|
+
`command asked for "${spec.mode}". A "${spec.mode}" draw is NOT a single forced ` +
|
|
44
|
+
`dispatch: it runs the PRIORITY scan and drains the deterministic frontier, ` +
|
|
45
|
+
`stopping at the first boundary that needs host work. Express that mode in the ` +
|
|
46
|
+
`command's own contract or leave the command bespoke — never reach it by ` +
|
|
47
|
+
`supplying an executor id it does not have.`);
|
|
48
|
+
}
|
|
35
49
|
const root = getRootDir(argv);
|
|
36
50
|
if (spec.warnIfNotGit)
|
|
37
51
|
warnIfNotGitRepo(root);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepScaffold.js","sourceRoot":"","sources":["../../../src/audit/cli/stepScaffold.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,+EAA+E;AAC/E,2EAA2E;AAC3E,kBAAkB;AAClB,EAAE;AACF,0EAA0E;AAC1E,mEAAmE;AACnE,+EAA+E;AAC/E,iDAAiD;AACjD,EAAE;AACF,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,kBAAkB;AAClB,
|
|
1
|
+
{"version":3,"file":"stepScaffold.js","sourceRoot":"","sources":["../../../src/audit/cli/stepScaffold.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,+EAA+E;AAC/E,2EAA2E;AAC3E,kBAAkB;AAClB,EAAE;AACF,0EAA0E;AAC1E,mEAAmE;AACnE,+EAA+E;AAC/E,iDAAiD;AACjD,EAAE;AACF,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,kBAAkB;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAoB7C;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAoB,UAAU,CAAC;AAwB9D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,IAAc,EACd,IAAqB;IAErB,IAAI,IAAI,CAAC,IAAI,KAAK,kBAAkB,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CACb,0CAA0C,kBAAkB,mBAAmB;YAC7E,sBAAsB,IAAI,CAAC,IAAI,SAAS,IAAI,CAAC,IAAI,gCAAgC;YACjF,6EAA6E;YAC7E,gFAAgF;YAChF,0EAA0E;YAC1E,4CAA4C,CAC/C,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,IAAI,CAAC,YAAY;QAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC;QAChC,IAAI;QACJ,YAAY;QACZ,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;KAC1C,CAAC,CAAC;IACH,UAAU,CAAC;QACT,aAAa,EAAE,YAAY;QAC3B,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;KAC1C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import type { AccessDeclaration, StepStatus } from "audit-tools/shared";
|
|
3
3
|
import { type LaneSubmissionShortfall } from "./laneSubmissions.js";
|
|
4
4
|
export declare const STEP_CONTRACT_VERSION = "audit-code-step/v1alpha1";
|
|
5
|
-
export declare const StepKindSchema: z.ZodEnum<["dispatch_review", "design_review", "design_review_parallel", "design_review_contract", "design_review_conceptual", "charter_extraction", "
|
|
5
|
+
export declare const StepKindSchema: z.ZodEnum<["dispatch_review", "design_review", "design_review_parallel", "design_review_contract", "design_review_conceptual", "charter_extraction", "charter_comparison", "charter_fidelity", "charter_clarification", "systemic_challenge", "confirm_intent", "intent_equivalence", "analyzer_install", "analyzer_consent", "edge_reasoning_dispatch", "critical_flow_fallback", "synthesis_narrative", "present_report", "blocked"]>;
|
|
6
6
|
export type StepKind = z.infer<typeof StepKindSchema>;
|
|
7
7
|
/**
|
|
8
8
|
* Lightweight run-level orientation surfaced in the step contract so a host
|
|
@@ -54,10 +54,24 @@ export declare const StepProgressSchema: z.ZodObject<{
|
|
|
54
54
|
export type StepProgress = z.infer<typeof StepProgressSchema>;
|
|
55
55
|
export declare const StepArtifactSchema: z.ZodObject<{
|
|
56
56
|
contract_version: z.ZodLiteral<"audit-code-step/v1alpha1">;
|
|
57
|
-
step_kind: z.ZodEnum<["dispatch_review", "design_review", "design_review_parallel", "design_review_contract", "design_review_conceptual", "charter_extraction", "
|
|
57
|
+
step_kind: z.ZodEnum<["dispatch_review", "design_review", "design_review_parallel", "design_review_contract", "design_review_conceptual", "charter_extraction", "charter_comparison", "charter_fidelity", "charter_clarification", "systemic_challenge", "confirm_intent", "intent_equivalence", "analyzer_install", "analyzer_consent", "edge_reasoning_dispatch", "critical_flow_fallback", "synthesis_narrative", "present_report", "blocked"]>;
|
|
58
58
|
prompt_path: z.ZodString;
|
|
59
59
|
status: z.ZodEnum<["ready", "blocked", "complete"]>;
|
|
60
60
|
run_id: z.ZodNullable<z.ZodString>;
|
|
61
|
+
/**
|
|
62
|
+
* The per-process agent id `writeStepContract` stamps on every step it
|
|
63
|
+
* writes — the owner of the `steps/<agentId>/` slot the step's canonical
|
|
64
|
+
* `prompt_path` points into.
|
|
65
|
+
*
|
|
66
|
+
* NAMED HERE because the schema is `.strict()`: the writer stamped it and
|
|
67
|
+
* this list omitted it, so the contract the tool WRITES was rejected by the
|
|
68
|
+
* schema the tool declares for reading it. The strictness is right and the
|
|
69
|
+
* omission was the bug — a reader must not be able to loosen `.strict()`
|
|
70
|
+
* away, because that is the property catching every future such drift.
|
|
71
|
+
* Optional for a HAND-BUILT fixture that predates the per-agent slot; the
|
|
72
|
+
* writer always supplies it.
|
|
73
|
+
*/
|
|
74
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
61
75
|
/** Run-level orientation; omitted for steps that have no meaningful summary. */
|
|
62
76
|
progress: z.ZodOptional<z.ZodObject<{
|
|
63
77
|
/** One-line, human-readable summary safe to show a resuming host. */
|
|
@@ -104,13 +118,6 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
104
118
|
}>>;
|
|
105
119
|
/** Shell commands the host may run for this step. */
|
|
106
120
|
allowed_commands: z.ZodArray<z.ZodString, "many">;
|
|
107
|
-
/**
|
|
108
|
-
* MCP tool names equivalent to `allowed_commands`, for hosts driving the
|
|
109
|
-
* backend through the MCP adapter. Omitted when the step has no MCP
|
|
110
|
-
* equivalents, so a shell host never has to guess which list entries are
|
|
111
|
-
* tool names versus runnable commands.
|
|
112
|
-
*/
|
|
113
|
-
allowed_mcp_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
114
121
|
stop_condition: z.ZodString;
|
|
115
122
|
repo_root: z.ZodString;
|
|
116
123
|
artifacts_dir: z.ZodString;
|
|
@@ -145,47 +152,47 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
145
152
|
message: z.ZodString;
|
|
146
153
|
}, "strict", z.ZodTypeAny, {
|
|
147
154
|
message: string;
|
|
148
|
-
submission_path: string;
|
|
149
|
-
submission_id: string;
|
|
150
155
|
lane: string;
|
|
156
|
+
submission_id: string;
|
|
151
157
|
issue_code: string;
|
|
158
|
+
submission_path: string;
|
|
152
159
|
}, {
|
|
153
160
|
message: string;
|
|
154
|
-
submission_path: string;
|
|
155
|
-
submission_id: string;
|
|
156
161
|
lane: string;
|
|
162
|
+
submission_id: string;
|
|
157
163
|
issue_code: string;
|
|
164
|
+
submission_path: string;
|
|
158
165
|
}>, "many">;
|
|
159
166
|
}, "strict", z.ZodTypeAny, {
|
|
160
167
|
expected: number;
|
|
161
168
|
accepted: number;
|
|
162
169
|
outstanding: {
|
|
163
170
|
message: string;
|
|
164
|
-
submission_path: string;
|
|
165
|
-
submission_id: string;
|
|
166
171
|
lane: string;
|
|
172
|
+
submission_id: string;
|
|
167
173
|
issue_code: string;
|
|
174
|
+
submission_path: string;
|
|
168
175
|
}[];
|
|
169
176
|
}, {
|
|
170
177
|
expected: number;
|
|
171
178
|
accepted: number;
|
|
172
179
|
outstanding: {
|
|
173
180
|
message: string;
|
|
174
|
-
submission_path: string;
|
|
175
|
-
submission_id: string;
|
|
176
181
|
lane: string;
|
|
182
|
+
submission_id: string;
|
|
177
183
|
issue_code: string;
|
|
184
|
+
submission_path: string;
|
|
178
185
|
}[];
|
|
179
186
|
}>>;
|
|
180
187
|
}, "strict", z.ZodTypeAny, {
|
|
181
188
|
status: "blocked" | "ready" | "complete";
|
|
182
|
-
contract_version: "audit-code-step/v1alpha1";
|
|
183
189
|
run_id: string | null;
|
|
190
|
+
contract_version: "audit-code-step/v1alpha1";
|
|
184
191
|
prompt_path: string;
|
|
185
192
|
repo_root: string;
|
|
186
193
|
artifacts_dir: string;
|
|
187
194
|
artifact_paths: Record<string, string | null>;
|
|
188
|
-
step_kind: "
|
|
195
|
+
step_kind: "design_review" | "charter_clarification" | "blocked" | "analyzer_consent" | "systemic_challenge" | "critical_flow_fallback" | "synthesis_narrative" | "design_review_contract" | "design_review_conceptual" | "intent_equivalence" | "charter_comparison" | "charter_fidelity" | "dispatch_review" | "design_review_parallel" | "charter_extraction" | "confirm_intent" | "analyzer_install" | "edge_reasoning_dispatch" | "present_report";
|
|
189
196
|
allowed_commands: string[];
|
|
190
197
|
stop_condition: string;
|
|
191
198
|
progress?: {
|
|
@@ -199,7 +206,7 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
199
206
|
confirmation_recommended?: boolean | undefined;
|
|
200
207
|
dispatch_summary?: string | undefined;
|
|
201
208
|
} | undefined;
|
|
202
|
-
|
|
209
|
+
agent_id?: string | undefined;
|
|
203
210
|
access?: {
|
|
204
211
|
read_paths: string[];
|
|
205
212
|
write_paths: string[];
|
|
@@ -210,21 +217,21 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
210
217
|
accepted: number;
|
|
211
218
|
outstanding: {
|
|
212
219
|
message: string;
|
|
213
|
-
submission_path: string;
|
|
214
|
-
submission_id: string;
|
|
215
220
|
lane: string;
|
|
221
|
+
submission_id: string;
|
|
216
222
|
issue_code: string;
|
|
223
|
+
submission_path: string;
|
|
217
224
|
}[];
|
|
218
225
|
} | undefined;
|
|
219
226
|
}, {
|
|
220
227
|
status: "blocked" | "ready" | "complete";
|
|
221
|
-
contract_version: "audit-code-step/v1alpha1";
|
|
222
228
|
run_id: string | null;
|
|
229
|
+
contract_version: "audit-code-step/v1alpha1";
|
|
223
230
|
prompt_path: string;
|
|
224
231
|
repo_root: string;
|
|
225
232
|
artifacts_dir: string;
|
|
226
233
|
artifact_paths: Record<string, string | null>;
|
|
227
|
-
step_kind: "
|
|
234
|
+
step_kind: "design_review" | "charter_clarification" | "blocked" | "analyzer_consent" | "systemic_challenge" | "critical_flow_fallback" | "synthesis_narrative" | "design_review_contract" | "design_review_conceptual" | "intent_equivalence" | "charter_comparison" | "charter_fidelity" | "dispatch_review" | "design_review_parallel" | "charter_extraction" | "confirm_intent" | "analyzer_install" | "edge_reasoning_dispatch" | "present_report";
|
|
228
235
|
allowed_commands: string[];
|
|
229
236
|
stop_condition: string;
|
|
230
237
|
progress?: {
|
|
@@ -238,7 +245,7 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
238
245
|
confirmation_recommended?: boolean | undefined;
|
|
239
246
|
dispatch_summary?: string | undefined;
|
|
240
247
|
} | undefined;
|
|
241
|
-
|
|
248
|
+
agent_id?: string | undefined;
|
|
242
249
|
access?: {
|
|
243
250
|
read_paths: string[];
|
|
244
251
|
write_paths: string[];
|
|
@@ -249,10 +256,10 @@ export declare const StepArtifactSchema: z.ZodObject<{
|
|
|
249
256
|
accepted: number;
|
|
250
257
|
outstanding: {
|
|
251
258
|
message: string;
|
|
252
|
-
submission_path: string;
|
|
253
|
-
submission_id: string;
|
|
254
259
|
lane: string;
|
|
260
|
+
submission_id: string;
|
|
255
261
|
issue_code: string;
|
|
262
|
+
submission_path: string;
|
|
256
263
|
}[];
|
|
257
264
|
} | undefined;
|
|
258
265
|
}>;
|
|
@@ -265,7 +272,7 @@ export type StepArtifact = z.infer<typeof StepArtifactSchema>;
|
|
|
265
272
|
* writer to shared is what fixed audit-code's Windows path-separator drift: it
|
|
266
273
|
* previously wrote `prompt_path` / `repo_root` / `artifacts_dir` /
|
|
267
274
|
* `artifact_paths` with raw backslashes, while remediate-code normalized them.
|
|
268
|
-
* Audit's optional fields (progress,
|
|
275
|
+
* Audit's optional fields (progress, access) ride through
|
|
269
276
|
* `extraFields` with the same conditional-omission semantics as before.
|
|
270
277
|
*/
|
|
271
278
|
/**
|
|
@@ -278,13 +285,29 @@ export type StepArtifact = z.infer<typeof StepArtifactSchema>;
|
|
|
278
285
|
* Lenient: no/malformed summary file → no line.
|
|
279
286
|
*/
|
|
280
287
|
export declare function scopeEchoLine(artifactsDir: string): string | null;
|
|
288
|
+
/**
|
|
289
|
+
* The reserved `artifact_paths` key carrying the run's agent-reflection file
|
|
290
|
+
* (`<artifactsDir>/agent-feedback.jsonl`, append-only NDJSON).
|
|
291
|
+
*
|
|
292
|
+
* WHY IT IS ON THE STEP. The loader prompt asks the host to append reflections
|
|
293
|
+
* (and requires one for a degraded quick/shallow run), but a host can only do
|
|
294
|
+
* that if it knows WHICH FILE. `parseReflectionsNdjson` reports a malformed line
|
|
295
|
+
* inside a file it FOUND; it returns an empty list, silently, when the file is
|
|
296
|
+
* absent — so a host that guessed a different filename produced no reflection,
|
|
297
|
+
* no error, and a quietly thinner audit report. Handing the path over on the
|
|
298
|
+
* contract is what makes the filename something the tool SUPPLIES rather than
|
|
299
|
+
* something a host must reproduce from prose (auditor-agnostic robustness).
|
|
300
|
+
*
|
|
301
|
+
* Set HERE, in the one funnel every audit step emission goes through, so no
|
|
302
|
+
* step kind can be added that forgets it.
|
|
303
|
+
*/
|
|
304
|
+
export declare const AGENT_FEEDBACK_ARTIFACT_KEY = "agent_feedback";
|
|
281
305
|
export declare function writeCurrentStep(params: {
|
|
282
306
|
artifactsDir: string;
|
|
283
307
|
stepKind: StepKind;
|
|
284
308
|
status: StepStatus;
|
|
285
309
|
runId: string | null;
|
|
286
310
|
allowedCommands: string[];
|
|
287
|
-
allowedMcpTools?: string[];
|
|
288
311
|
progress?: StepProgress;
|
|
289
312
|
stopCondition: string;
|
|
290
313
|
repoRoot: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/steps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAEhE,eAAO,MAAM,cAAc,yaAoBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAE3B,qEAAqE;;IAErE,0EAA0E;;IAE1E,kDAAkD;;IAElD,uEAAuE;;IAEvE,6EAA6E;;IAE7E,iEAAiE;;IAEjE,6DAA6D;;IAE7D;;;OAGG;;IAEH,oFAAoF;;;;;;;;;;;;;;;;;;;;;;EAG7E,CAAC;AACZ,MAAM,MAAM,YAAY,GAAG,CAAC,CA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C3B,mBAAmB,CAAC,EAAE,uBAAuB,CAAC;CAC/C,GAAG,OAAO,CAAC,YAAY,CAAC,CAoCxB"}
|
package/dist/audit/cli/steps.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
// sites-pinned: tests/audit/next-step-helpers.test.ts, tests/audit/charter-emit-order.test.ts, tests/audit/executor-registry-sync.test.ts, tests/audit/pipeline-integration.test.ts
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import { readFileSync } from "node:fs";
|
|
3
4
|
import { join } from "node:path";
|
|
4
|
-
import { writeStepContract, StepStatusSchema, AccessDeclarationSchema, } from "audit-tools/shared";
|
|
5
|
+
import { writeStepContract, StepStatusSchema, AccessDeclarationSchema, AGENT_FEEDBACK_FILENAME, } from "audit-tools/shared";
|
|
5
6
|
import { LaneSubmissionShortfallSchema, } from "./laneSubmissions.js";
|
|
6
7
|
export const STEP_CONTRACT_VERSION = "audit-code-step/v1alpha1";
|
|
7
8
|
export const StepKindSchema = z.enum([
|
|
@@ -11,7 +12,8 @@ export const StepKindSchema = z.enum([
|
|
|
11
12
|
"design_review_contract",
|
|
12
13
|
"design_review_conceptual",
|
|
13
14
|
"charter_extraction",
|
|
14
|
-
"
|
|
15
|
+
"charter_comparison",
|
|
16
|
+
"charter_fidelity",
|
|
15
17
|
"charter_clarification",
|
|
16
18
|
"systemic_challenge",
|
|
17
19
|
"confirm_intent",
|
|
@@ -60,17 +62,24 @@ export const StepArtifactSchema = z
|
|
|
60
62
|
prompt_path: z.string(),
|
|
61
63
|
status: StepStatusSchema,
|
|
62
64
|
run_id: z.string().nullable(),
|
|
65
|
+
/**
|
|
66
|
+
* The per-process agent id `writeStepContract` stamps on every step it
|
|
67
|
+
* writes — the owner of the `steps/<agentId>/` slot the step's canonical
|
|
68
|
+
* `prompt_path` points into.
|
|
69
|
+
*
|
|
70
|
+
* NAMED HERE because the schema is `.strict()`: the writer stamped it and
|
|
71
|
+
* this list omitted it, so the contract the tool WRITES was rejected by the
|
|
72
|
+
* schema the tool declares for reading it. The strictness is right and the
|
|
73
|
+
* omission was the bug — a reader must not be able to loosen `.strict()`
|
|
74
|
+
* away, because that is the property catching every future such drift.
|
|
75
|
+
* Optional for a HAND-BUILT fixture that predates the per-agent slot; the
|
|
76
|
+
* writer always supplies it.
|
|
77
|
+
*/
|
|
78
|
+
agent_id: z.string().optional(),
|
|
63
79
|
/** Run-level orientation; omitted for steps that have no meaningful summary. */
|
|
64
80
|
progress: StepProgressSchema.optional(),
|
|
65
81
|
/** Shell commands the host may run for this step. */
|
|
66
82
|
allowed_commands: z.array(z.string()),
|
|
67
|
-
/**
|
|
68
|
-
* MCP tool names equivalent to `allowed_commands`, for hosts driving the
|
|
69
|
-
* backend through the MCP adapter. Omitted when the step has no MCP
|
|
70
|
-
* equivalents, so a shell host never has to guess which list entries are
|
|
71
|
-
* tool names versus runnable commands.
|
|
72
|
-
*/
|
|
73
|
-
allowed_mcp_tools: z.array(z.string()).optional(),
|
|
74
83
|
stop_condition: z.string(),
|
|
75
84
|
repo_root: z.string(),
|
|
76
85
|
artifacts_dir: z.string(),
|
|
@@ -93,7 +102,7 @@ export const StepArtifactSchema = z
|
|
|
93
102
|
* writer to shared is what fixed audit-code's Windows path-separator drift: it
|
|
94
103
|
* previously wrote `prompt_path` / `repo_root` / `artifacts_dir` /
|
|
95
104
|
* `artifact_paths` with raw backslashes, while remediate-code normalized them.
|
|
96
|
-
* Audit's optional fields (progress,
|
|
105
|
+
* Audit's optional fields (progress, access) ride through
|
|
97
106
|
* `extraFields` with the same conditional-omission semantics as before.
|
|
98
107
|
*/
|
|
99
108
|
/**
|
|
@@ -119,6 +128,23 @@ export function scopeEchoLine(artifactsDir) {
|
|
|
119
128
|
return null;
|
|
120
129
|
}
|
|
121
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* The reserved `artifact_paths` key carrying the run's agent-reflection file
|
|
133
|
+
* (`<artifactsDir>/agent-feedback.jsonl`, append-only NDJSON).
|
|
134
|
+
*
|
|
135
|
+
* WHY IT IS ON THE STEP. The loader prompt asks the host to append reflections
|
|
136
|
+
* (and requires one for a degraded quick/shallow run), but a host can only do
|
|
137
|
+
* that if it knows WHICH FILE. `parseReflectionsNdjson` reports a malformed line
|
|
138
|
+
* inside a file it FOUND; it returns an empty list, silently, when the file is
|
|
139
|
+
* absent — so a host that guessed a different filename produced no reflection,
|
|
140
|
+
* no error, and a quietly thinner audit report. Handing the path over on the
|
|
141
|
+
* contract is what makes the filename something the tool SUPPLIES rather than
|
|
142
|
+
* something a host must reproduce from prose (auditor-agnostic robustness).
|
|
143
|
+
*
|
|
144
|
+
* Set HERE, in the one funnel every audit step emission goes through, so no
|
|
145
|
+
* step kind can be added that forgets it.
|
|
146
|
+
*/
|
|
147
|
+
export const AGENT_FEEDBACK_ARTIFACT_KEY = "agent_feedback";
|
|
122
148
|
export async function writeCurrentStep(params) {
|
|
123
149
|
const echo = scopeEchoLine(params.artifactsDir);
|
|
124
150
|
return writeStepContract({
|
|
@@ -131,14 +157,18 @@ export async function writeCurrentStep(params) {
|
|
|
131
157
|
repoRoot: params.repoRoot,
|
|
132
158
|
artifactsDir: params.artifactsDir,
|
|
133
159
|
prompt: echo ? `${echo}\n\n${params.prompt}` : params.prompt,
|
|
134
|
-
artifactPaths:
|
|
160
|
+
artifactPaths: {
|
|
161
|
+
...params.artifactPaths,
|
|
162
|
+
// The canonical reflection destination, supplied on EVERY step and
|
|
163
|
+
// overwriting any caller entry of the same name — a reserved slot, the
|
|
164
|
+
// same rule as current_step / current_prompt, so no caller can repoint a
|
|
165
|
+
// host at a file the loader will not read.
|
|
166
|
+
[AGENT_FEEDBACK_ARTIFACT_KEY]: join(params.artifactsDir, AGENT_FEEDBACK_FILENAME),
|
|
167
|
+
},
|
|
135
168
|
extraFields: {
|
|
136
169
|
// Optional audit fields keep their conditional-omission semantics; they
|
|
137
170
|
// ride before the canonical path fields so they can never clobber them.
|
|
138
171
|
...(params.progress ? { progress: params.progress } : {}),
|
|
139
|
-
...(params.allowedMcpTools && params.allowedMcpTools.length > 0
|
|
140
|
-
? { allowed_mcp_tools: params.allowedMcpTools }
|
|
141
|
-
: {}),
|
|
142
172
|
...(params.access ? { access: params.access } : {}),
|
|
143
173
|
// Omitted when nothing is outstanding: a field that is always present
|
|
144
174
|
// reads as noise, while its presence IS the statement.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../src/audit/cli/steps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,6BAA6B,GAE9B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,iBAAiB;IACjB,eAAe;IACf,wBAAwB;IACxB,wBAAwB;IACxB,0BAA0B;IAC1B,oBAAoB;IACpB,
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../src/audit/cli/steps.ts"],"names":[],"mappings":"AAAA,oLAAoL;AACpL,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,6BAA6B,GAE9B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;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B,CACxB;SACF;QACD,WAAW,EAAE;YACX,wEAAwE;YACxE,wEAAwE;YACxE,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnD,sEAAsE;YACtE,uDAAuD;YACvD,GAAG,CAAC,MAAM,CAAC,mBAAmB;gBAC9B,MAAM,CAAC,mBAAmB,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;gBAC/C,CAAC,CAAC,EAAE,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,EAAE;gBACtD,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synthesizeCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/synthesizeCommand.ts"],"names":[],"mappings":"AAEA,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"synthesizeCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/synthesizeCommand.ts"],"names":[],"mappings":"AAEA,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAKjE"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { runStepCommand } from "./stepScaffold.js";
|
|
2
2
|
export async function cmdSynthesize(argv) {
|
|
3
|
-
await runStepCommand(argv, {
|
|
3
|
+
await runStepCommand(argv, {
|
|
4
|
+
mode: "executor",
|
|
5
|
+
preferredExecutor: "synthesis_executor",
|
|
6
|
+
});
|
|
4
7
|
}
|
|
5
8
|
//# sourceMappingURL=synthesizeCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synthesizeCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/synthesizeCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAc;IAChD,MAAM,cAAc,CAAC,IAAI,EAAE,EAAE,iBAAiB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"synthesizeCommand.js","sourceRoot":"","sources":["../../../src/audit/cli/synthesizeCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAc;IAChD,MAAM,cAAc,CAAC,IAAI,EAAE;QACzB,IAAI,EAAE,UAAU;QAChB,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC"}
|