audit-tools 0.56.2 → 0.57.0
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/README.md +8 -22
- package/dist/audit/cli/args.d.ts +0 -1
- package/dist/audit/cli/args.d.ts.map +1 -1
- package/dist/audit/cli/args.js +0 -14
- package/dist/audit/cli/args.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +0 -59
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +2 -136
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/cleanup.d.ts.map +1 -1
- package/dist/audit/cli/cleanup.js +4 -1
- package/dist/audit/cli/cleanup.js.map +1 -1
- package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
- package/dist/audit/cli/confirmIntentStep.js +16 -31
- package/dist/audit/cli/confirmIntentStep.js.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts +414 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.js +223 -1
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
- package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts +254 -0
- package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/questionReviewAcceptance.js +181 -0
- package/dist/audit/cli/dispatch/questionReviewAcceptance.js.map +1 -0
- package/dist/audit/cli/functionalPreflight.d.ts +4 -4
- package/dist/audit/cli/laneSubmissions.d.ts +4 -4
- package/dist/audit/cli/nextStepCommand.d.ts +3 -20
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +39 -133
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +10 -72
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +95 -363
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +0 -2
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +3 -14
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/questionReviewCycle.d.ts +239 -0
- package/dist/audit/cli/questionReviewCycle.d.ts.map +1 -0
- package/dist/audit/cli/questionReviewCycle.js +55 -0
- package/dist/audit/cli/questionReviewCycle.js.map +1 -0
- package/dist/audit/cli/questionReviewSession.d.ts +7 -0
- package/dist/audit/cli/questionReviewSession.d.ts.map +1 -0
- package/dist/audit/cli/questionReviewSession.js +46 -0
- package/dist/audit/cli/questionReviewSession.js.map +1 -0
- package/dist/audit/cli/questionWorkloadBindings.d.ts +7 -0
- package/dist/audit/cli/questionWorkloadBindings.d.ts.map +1 -0
- package/dist/audit/cli/questionWorkloadBindings.js +66 -0
- package/dist/audit/cli/questionWorkloadBindings.js.map +1 -0
- package/dist/audit/cli/resynthesizeCommand.d.ts +1 -0
- package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -1
- package/dist/audit/cli/resynthesizeCommand.js +52 -51
- package/dist/audit/cli/resynthesizeCommand.js.map +1 -1
- package/dist/audit/cli/sampleRunCommand.d.ts +565 -160
- package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -1
- package/dist/audit/cli/sampleRunCommand.js +66 -152
- package/dist/audit/cli/sampleRunCommand.js.map +1 -1
- package/dist/audit/cli/statusCommand.d.ts.map +1 -1
- package/dist/audit/cli/statusCommand.js +20 -14
- package/dist/audit/cli/statusCommand.js.map +1 -1
- package/dist/audit/cli/steps.d.ts +10 -10
- package/dist/audit/cli/submitCommand.d.ts +11 -6
- package/dist/audit/cli/submitCommand.d.ts.map +1 -1
- package/dist/audit/cli/submitCommand.js +91 -24
- package/dist/audit/cli/submitCommand.js.map +1 -1
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +6 -17
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/contracts/findingContractPrompt.d.ts +4 -4
- package/dist/audit/contracts/workerSchemas.d.ts +69 -68
- package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
- package/dist/audit/contracts/workerSchemas.js +8 -1
- package/dist/audit/contracts/workerSchemas.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +13 -13
- 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/extractors/designAssessment.js +2 -2
- package/dist/audit/extractors/designAssessment.js.map +1 -1
- package/dist/audit/io/artifacts.d.ts +31 -9
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +197 -31
- 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 +7 -16
- package/dist/audit/io/rollover.js.map +1 -1
- package/dist/audit/io/runSnapshot.d.ts +1 -1
- package/dist/audit/io/runSnapshot.js +1 -1
- package/dist/audit/orchestrator/architectureDiscovery.d.ts +9 -10
- package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -1
- package/dist/audit/orchestrator/architectureDiscovery.js +95 -13
- package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -1
- package/dist/audit/orchestrator/charterPacketArchive.d.ts +3 -0
- package/dist/audit/orchestrator/charterPacketArchive.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterPacketArchive.js +31 -2
- package/dist/audit/orchestrator/charterPacketArchive.js.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.d.ts +2 -8
- package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.js +10 -105
- package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.d.ts +2 -3
- package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.js +2 -35
- package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.js +24 -14
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +14 -21
- 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 +1 -131
- package/dist/audit/orchestrator/executors.js.map +1 -1
- package/dist/audit/orchestrator/flowPlanning.d.ts +1 -1
- package/dist/audit/orchestrator/flowPlanning.js +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.js +19 -12
- package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +2 -2
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +37 -36
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
- package/dist/audit/orchestrator/lensSelection.d.ts +6 -37
- package/dist/audit/orchestrator/lensSelection.d.ts.map +1 -1
- package/dist/audit/orchestrator/lensSelection.js +42 -68
- package/dist/audit/orchestrator/lensSelection.js.map +1 -1
- package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
- package/dist/audit/orchestrator/nextStep.js +1 -4
- package/dist/audit/orchestrator/nextStep.js.map +1 -1
- package/dist/audit/orchestrator/questionEvidence.d.ts +67 -0
- package/dist/audit/orchestrator/questionEvidence.d.ts.map +1 -0
- package/dist/audit/orchestrator/questionEvidence.js +177 -0
- package/dist/audit/orchestrator/questionEvidence.js.map +1 -0
- package/dist/audit/orchestrator/questionPlanExecutor.d.ts +10 -0
- package/dist/audit/orchestrator/questionPlanExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/questionPlanExecutor.js +23 -0
- package/dist/audit/orchestrator/questionPlanExecutor.js.map +1 -0
- package/dist/audit/orchestrator/questionPlanning.d.ts +48 -0
- package/dist/audit/orchestrator/questionPlanning.d.ts.map +1 -0
- package/dist/audit/orchestrator/questionPlanning.js +326 -0
- package/dist/audit/orchestrator/questionPlanning.js.map +1 -0
- package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts +11 -0
- package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewLensPlaybooks.js +11 -0
- package/dist/audit/orchestrator/reviewLensPlaybooks.js.map +1 -0
- package/dist/audit/orchestrator/runtimeValidation.d.ts.map +1 -1
- package/dist/audit/orchestrator/runtimeValidation.js +14 -0
- package/dist/audit/orchestrator/runtimeValidation.js.map +1 -1
- package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts +1 -1
- package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts.map +1 -1
- package/dist/audit/orchestrator/runtimeValidationUpdate.js +13 -4
- package/dist/audit/orchestrator/runtimeValidationUpdate.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/index.js +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +8 -60
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/orchestrator/synthesisExecutors.d.ts +15 -1
- package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/synthesisExecutors.js +76 -25
- package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
- package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/systemicChallengeExecutor.js +11 -6
- package/dist/audit/orchestrator/systemicChallengeExecutor.js.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts +4 -4
- package/dist/audit/reporting/questionReport.d.ts +27 -0
- package/dist/audit/reporting/questionReport.d.ts.map +1 -0
- package/dist/audit/reporting/questionReport.js +183 -0
- package/dist/audit/reporting/questionReport.js.map +1 -0
- package/dist/audit/reporting/synthesis.d.ts +10 -1
- package/dist/audit/reporting/synthesis.d.ts.map +1 -1
- package/dist/audit/reporting/synthesis.js +161 -24
- package/dist/audit/reporting/synthesis.js.map +1 -1
- package/dist/audit/reporting/synthesisNarrativePrompt.d.ts +4 -1
- package/dist/audit/reporting/synthesisNarrativePrompt.d.ts.map +1 -1
- package/dist/audit/reporting/synthesisNarrativePrompt.js +5 -1
- package/dist/audit/reporting/synthesisNarrativePrompt.js.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.d.ts +2 -3
- package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.js +3 -18
- package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
- package/dist/audit/systemic/aggregateMetricsDigest.d.ts.map +1 -1
- package/dist/audit/systemic/aggregateMetricsDigest.js +0 -2
- package/dist/audit/systemic/aggregateMetricsDigest.js.map +1 -1
- package/dist/audit/types/artifactMetadata.d.ts +1 -2
- package/dist/audit/types/artifactMetadata.d.ts.map +1 -1
- package/dist/audit/types/auditState.d.ts +6 -6
- package/dist/audit/types/conceptualAdjudication.d.ts +708 -50
- package/dist/audit/types/conceptualAdjudication.d.ts.map +1 -1
- package/dist/audit/types/conceptualAdjudication.js +2 -0
- package/dist/audit/types/conceptualAdjudication.js.map +1 -1
- package/dist/audit/types/runtimeValidation.d.ts +58 -6
- package/dist/audit/types/runtimeValidation.d.ts.map +1 -1
- package/dist/audit/types/runtimeValidation.js +8 -0
- package/dist/audit/types/runtimeValidation.js.map +1 -1
- package/dist/audit/types.d.ts +539 -22
- package/dist/audit/types.d.ts.map +1 -1
- package/dist/audit/validation/auditResults.d.ts +1 -1
- package/dist/audit/validation/auditResults.js +1 -1
- package/dist/audit/validation/ingestIssueCodes.d.ts.map +1 -1
- package/dist/audit/validation/ingestIssueCodes.js +0 -1
- package/dist/audit/validation/ingestIssueCodes.js.map +1 -1
- package/dist/remediate/contractPipeline/executionPlan.d.ts +679 -52
- package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/executionPlan.js +23 -0
- package/dist/remediate/contractPipeline/executionPlan.js.map +1 -1
- package/dist/remediate/findingFilter.d.ts.map +1 -1
- package/dist/remediate/findingFilter.js +6 -2
- package/dist/remediate/findingFilter.js.map +1 -1
- package/dist/remediate/intake.d.ts +4 -4
- package/dist/remediate/phases/close.d.ts.map +1 -1
- package/dist/remediate/phases/close.js +15 -5
- package/dist/remediate/phases/close.js.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts +5 -0
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +37 -8
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
- package/dist/remediate/state/types.d.ts +619 -26
- package/dist/remediate/state/types.d.ts.map +1 -1
- package/dist/remediate/state/types.js +2 -1
- package/dist/remediate/state/types.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +2 -0
- 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 +2 -0
- package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
- package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +3 -3
- package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
- package/dist/remediate/steps/intakeResolver.js +31 -6
- package/dist/remediate/steps/intakeResolver.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +31 -40
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/prompts.d.ts.map +1 -1
- package/dist/remediate/steps/prompts.js +3 -0
- package/dist/remediate/steps/prompts.js.map +1 -1
- package/dist/shared/analyzers/types.d.ts +18 -18
- package/dist/shared/contentKey.d.ts +1 -1
- package/dist/shared/contentKey.js +1 -1
- package/dist/shared/decompose/charterClarification.d.ts +4 -4
- package/dist/shared/decompose/charterExtraction.d.ts +30 -30
- package/dist/shared/decompose/contentCoherence.d.ts +1 -1
- package/dist/shared/decompose/contentCoherence.js +1 -1
- package/dist/shared/decompose/systemicChallenge.d.ts +629 -18
- package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
- package/dist/shared/engine/obligationEngine.d.ts +2 -2
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +2 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/io/stepContractWriter.js +1 -1
- package/dist/shared/io/stepContractWriter.js.map +1 -1
- package/dist/shared/loopCorePaths.d.ts.map +1 -1
- package/dist/shared/loopCorePaths.js +5 -2
- package/dist/shared/loopCorePaths.js.map +1 -1
- package/dist/shared/mcp/submitServer.d.ts +1 -0
- package/dist/shared/mcp/submitServer.d.ts.map +1 -1
- package/dist/shared/mcp/submitServer.js +1 -1
- package/dist/shared/mcp/submitServer.js.map +1 -1
- package/dist/shared/submission/hostResultOutcomes.js +1 -1
- package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
- package/dist/shared/tooling/exec.js +1 -1
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/types/charter.d.ts +38 -38
- package/dist/shared/types/contractPropertyShapes.d.ts.map +1 -1
- package/dist/shared/types/contractPropertyShapes.js +7 -0
- package/dist/shared/types/contractPropertyShapes.js.map +1 -1
- package/dist/shared/types/executionPlan.d.ts +88 -12
- package/dist/shared/types/executionPlan.d.ts.map +1 -1
- package/dist/shared/types/executionPlan.js +1 -0
- package/dist/shared/types/executionPlan.js.map +1 -1
- package/dist/shared/types/finding.d.ts +1721 -56
- package/dist/shared/types/finding.d.ts.map +1 -1
- package/dist/shared/types/finding.js +7 -10
- package/dist/shared/types/finding.js.map +1 -1
- package/dist/shared/types/findingVocabulary.d.ts +8 -0
- package/dist/shared/types/findingVocabulary.d.ts.map +1 -0
- package/dist/shared/types/findingVocabulary.js +13 -0
- package/dist/shared/types/findingVocabulary.js.map +1 -0
- package/dist/shared/types/intentCheckpoint.d.ts +8 -3
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
- package/dist/shared/types/intentCheckpoint.js +4 -3
- package/dist/shared/types/intentCheckpoint.js.map +1 -1
- package/dist/shared/types/questionReviewReport.d.ts +9912 -0
- package/dist/shared/types/questionReviewReport.d.ts.map +1 -0
- package/dist/shared/types/questionReviewReport.js +185 -0
- package/dist/shared/types/questionReviewReport.js.map +1 -0
- package/dist/shared/types/remediationOutcome.d.ts +1379 -148
- package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
- package/dist/shared/types/remediationOutcome.js +5 -0
- package/dist/shared/types/remediationOutcome.js.map +1 -1
- package/dist/shared/types/reviewIndependence.d.ts +24 -24
- package/dist/shared/types/reviewQuestion.d.ts +4359 -0
- package/dist/shared/types/reviewQuestion.d.ts.map +1 -0
- package/dist/shared/types/reviewQuestion.js +182 -0
- package/dist/shared/types/reviewQuestion.js.map +1 -0
- package/dist/shared/types/stepContract.js +1 -1
- package/dist/shared/types/stepContract.js.map +1 -1
- package/dist/shared/validation/designFindingGrounding.js +1 -1
- package/dist/shared/validation/designFindingGrounding.js.map +1 -1
- package/dist/shared/validation/findingsReport.d.ts.map +1 -1
- package/dist/shared/validation/findingsReport.js +19 -4
- package/dist/shared/validation/findingsReport.js.map +1 -1
- package/docs/audit-pkg/contracts.md +27 -56
- package/docs/audit-pkg/operator-guide.md +31 -17
- package/docs/audit-pkg/product.md +17 -23
- package/package.json +1 -1
- package/schemas/audit-code-v1alpha1.schema.json +0 -1
- package/schemas/review_submission.schema.json +514 -0
- package/skills/audit-code/audit-code.prompt.md +7 -5
- package/wrapper/audit-code-wrapper-lib.mjs +1 -5
- package/wrapper/installer-verb-help.mjs +1 -1
- package/dist/audit/cli/explainTaskCommand.d.ts +0 -4
- package/dist/audit/cli/explainTaskCommand.d.ts.map +0 -1
- package/dist/audit/cli/explainTaskCommand.js +0 -45
- package/dist/audit/cli/explainTaskCommand.js.map +0 -1
- package/dist/audit/cli/ingestResultsCommand.d.ts +0 -2
- package/dist/audit/cli/ingestResultsCommand.d.ts.map +0 -1
- package/dist/audit/cli/ingestResultsCommand.js +0 -42
- package/dist/audit/cli/ingestResultsCommand.js.map +0 -1
- package/dist/audit/cli/requeueCommand.d.ts +0 -2
- package/dist/audit/cli/requeueCommand.d.ts.map +0 -1
- package/dist/audit/cli/requeueCommand.js +0 -12
- package/dist/audit/cli/requeueCommand.js.map +0 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +0 -41
- package/dist/audit/cli/semanticReviewStep.d.ts.map +0 -1
- package/dist/audit/cli/semanticReviewStep.js +0 -185
- package/dist/audit/cli/semanticReviewStep.js.map +0 -1
- package/dist/audit/cli/unacceptResultsCommand.d.ts +0 -19
- package/dist/audit/cli/unacceptResultsCommand.d.ts.map +0 -1
- package/dist/audit/cli/unacceptResultsCommand.js +0 -52
- package/dist/audit/cli/unacceptResultsCommand.js.map +0 -1
- package/dist/audit/cli/updateRuntimeValidationCommand.d.ts +0 -2
- package/dist/audit/cli/updateRuntimeValidationCommand.d.ts.map +0 -1
- package/dist/audit/cli/updateRuntimeValidationCommand.js +0 -18
- package/dist/audit/cli/updateRuntimeValidationCommand.js.map +0 -1
- package/dist/audit/cli/validateResultsCommand.d.ts +0 -13
- package/dist/audit/cli/validateResultsCommand.d.ts.map +0 -1
- package/dist/audit/cli/validateResultsCommand.js +0 -87
- package/dist/audit/cli/validateResultsCommand.js.map +0 -1
- package/dist/audit/cli/workerResult.d.ts +0 -2
- package/dist/audit/cli/workerResult.d.ts.map +0 -1
- package/dist/audit/cli/workerResult.js +0 -6
- package/dist/audit/cli/workerResult.js.map +0 -1
- package/dist/audit/orchestrator/coverageElementBaseline.d.ts +0 -54
- package/dist/audit/orchestrator/coverageElementBaseline.d.ts.map +0 -1
- package/dist/audit/orchestrator/coverageElementBaseline.js +0 -136
- package/dist/audit/orchestrator/coverageElementBaseline.js.map +0 -1
- package/dist/audit/orchestrator/planning.d.ts +0 -5
- package/dist/audit/orchestrator/planning.d.ts.map +0 -1
- package/dist/audit/orchestrator/planning.js +0 -79
- package/dist/audit/orchestrator/planning.js.map +0 -1
- package/dist/audit/orchestrator/planningExecutors.d.ts +0 -21
- package/dist/audit/orchestrator/planningExecutors.d.ts.map +0 -1
- package/dist/audit/orchestrator/planningExecutors.js +0 -273
- package/dist/audit/orchestrator/planningExecutors.js.map +0 -1
- package/dist/audit/orchestrator/taskBuilder.d.ts +0 -62
- package/dist/audit/orchestrator/taskBuilder.d.ts.map +0 -1
- package/dist/audit/orchestrator/taskBuilder.js +0 -412
- package/dist/audit/orchestrator/taskBuilder.js.map +0 -1
- package/dist/audit/orchestrator/trivialAudit.d.ts +0 -21
- package/dist/audit/orchestrator/trivialAudit.d.ts.map +0 -1
- package/dist/audit/orchestrator/trivialAudit.js +0 -80
- package/dist/audit/orchestrator/trivialAudit.js.map +0 -1
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import type { ReviewAcceptedAnswer, ReviewAdjudication, ReviewAnswer, ReviewAssignment, ReviewEvidence, ReviewQuestion, ReviewSourceRef, ReviewSubmission } from "../../../shared/types/reviewQuestion.js";
|
|
2
|
+
export interface AuditQuestionBinding {
|
|
3
|
+
question: ReviewQuestion;
|
|
4
|
+
assignment: ReviewAssignment;
|
|
5
|
+
sourceFiles: readonly {
|
|
6
|
+
path: string;
|
|
7
|
+
line_count: number;
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
}[];
|
|
10
|
+
evidence: readonly ReviewEvidence[];
|
|
11
|
+
/** Recomputed by the evidence owner for this exact issued question. */
|
|
12
|
+
dependencies: ReviewAcceptedAnswer["dependency_bindings"];
|
|
13
|
+
}
|
|
14
|
+
export declare function validateQuestionSource(binding: AuditQuestionBinding, ref: ReviewSourceRef): void;
|
|
15
|
+
export declare function acceptQuestionReview(answers: readonly ReviewAcceptedAnswer[], binding: AuditQuestionBinding, submission: ReviewSubmission, acceptedAt: string): {
|
|
16
|
+
kind: "replay" | "accepted";
|
|
17
|
+
record: ReviewAcceptedAnswer;
|
|
18
|
+
};
|
|
19
|
+
export declare function validateQuestionAdjudication(answers: readonly ReviewAcceptedAnswer[], existing: readonly ReviewAdjudication[], adjudication: ReviewAdjudication, question: ReviewQuestion, dependencies: ReviewAcceptedAnswer["dependency_bindings"]): "replay" | "accepted";
|
|
20
|
+
/** An inconclusive observation remains open; no implicit parent-level credit. */
|
|
21
|
+
export declare function reviewAnswerDisposition(requested: readonly string[], parts: ReviewAnswer["parts"]): {
|
|
22
|
+
answered: string[];
|
|
23
|
+
open: string[];
|
|
24
|
+
};
|
|
25
|
+
/** Report current observations without ever changing the accepted originals. */
|
|
26
|
+
export declare function projectQuestionReview(question: ReviewQuestion, answers: readonly ReviewAcceptedAnswer[], dependencies: Readonly<ReviewAcceptedAnswer["dependency_bindings"]> | undefined, adjudications?: readonly ReviewAdjudication[]): {
|
|
27
|
+
current: {
|
|
28
|
+
schema_version: "audit-tools/question-review/v1";
|
|
29
|
+
accepted_at: string;
|
|
30
|
+
submission: {
|
|
31
|
+
question_id: string;
|
|
32
|
+
revision_id: string;
|
|
33
|
+
snapshot_id: string;
|
|
34
|
+
schema_version: "audit-tools/question-review/v1";
|
|
35
|
+
assignment_id: string;
|
|
36
|
+
evidence_ids: string[];
|
|
37
|
+
submission_id: string;
|
|
38
|
+
inspected_sources: {
|
|
39
|
+
path: string;
|
|
40
|
+
symbol?: string | undefined;
|
|
41
|
+
start_line?: number | undefined;
|
|
42
|
+
end_line?: number | undefined;
|
|
43
|
+
}[];
|
|
44
|
+
limitations: string[];
|
|
45
|
+
answer: {
|
|
46
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
47
|
+
findings: {
|
|
48
|
+
confidence: "high" | "low" | "medium";
|
|
49
|
+
kind: "confirmed_defect" | "design_opportunity" | "lead";
|
|
50
|
+
source_refs: {
|
|
51
|
+
path: string;
|
|
52
|
+
symbol?: string | undefined;
|
|
53
|
+
start_line?: number | undefined;
|
|
54
|
+
end_line?: number | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
question_id: string;
|
|
57
|
+
revision_id: string;
|
|
58
|
+
schema_version: "audit-tools/question-review/v1";
|
|
59
|
+
finding_id: string;
|
|
60
|
+
severity: "info" | "high" | "low" | "critical" | "medium";
|
|
61
|
+
claim: string;
|
|
62
|
+
consequence: string;
|
|
63
|
+
next_step: string;
|
|
64
|
+
evidence_ids: string[];
|
|
65
|
+
verification: ({
|
|
66
|
+
kind: "analyzer";
|
|
67
|
+
obligation_id: string;
|
|
68
|
+
provenance: {
|
|
69
|
+
path: string;
|
|
70
|
+
analyzer_id: string;
|
|
71
|
+
snippet_hash: string;
|
|
72
|
+
rule?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
expected: string;
|
|
76
|
+
kind: "assertion";
|
|
77
|
+
source_refs: {
|
|
78
|
+
path: string;
|
|
79
|
+
symbol?: string | undefined;
|
|
80
|
+
start_line?: number | undefined;
|
|
81
|
+
end_line?: number | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
obligation_id: string;
|
|
84
|
+
} | {
|
|
85
|
+
reason: string;
|
|
86
|
+
kind: "disposition";
|
|
87
|
+
obligation_id: string;
|
|
88
|
+
disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
|
|
89
|
+
})[];
|
|
90
|
+
observation_ids?: string[] | undefined;
|
|
91
|
+
purpose?: string | undefined;
|
|
92
|
+
divergence?: string | undefined;
|
|
93
|
+
}[];
|
|
94
|
+
observations: {
|
|
95
|
+
kind: "source_confirmed" | "runtime_observed" | "unverified";
|
|
96
|
+
source_refs: {
|
|
97
|
+
path: string;
|
|
98
|
+
symbol?: string | undefined;
|
|
99
|
+
start_line?: number | undefined;
|
|
100
|
+
end_line?: number | undefined;
|
|
101
|
+
}[];
|
|
102
|
+
part_id: string;
|
|
103
|
+
question_id: string;
|
|
104
|
+
revision_id: string;
|
|
105
|
+
snapshot_id: string;
|
|
106
|
+
schema_version: "audit-tools/question-review/v1";
|
|
107
|
+
observation_id: string;
|
|
108
|
+
statement: string;
|
|
109
|
+
evidence_refs: {
|
|
110
|
+
evidence_id: string;
|
|
111
|
+
observation_id?: string | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
}[];
|
|
114
|
+
parts: {
|
|
115
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
116
|
+
part_id: string;
|
|
117
|
+
observation_ids: string[];
|
|
118
|
+
reason?: string | undefined;
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
dependency_bindings: {
|
|
123
|
+
kind: "source" | "evidence" | "membership";
|
|
124
|
+
key: string;
|
|
125
|
+
fingerprint: string;
|
|
126
|
+
}[];
|
|
127
|
+
}[];
|
|
128
|
+
stale: {
|
|
129
|
+
schema_version: "audit-tools/question-review/v1";
|
|
130
|
+
accepted_at: string;
|
|
131
|
+
submission: {
|
|
132
|
+
question_id: string;
|
|
133
|
+
revision_id: string;
|
|
134
|
+
snapshot_id: string;
|
|
135
|
+
schema_version: "audit-tools/question-review/v1";
|
|
136
|
+
assignment_id: string;
|
|
137
|
+
evidence_ids: string[];
|
|
138
|
+
submission_id: string;
|
|
139
|
+
inspected_sources: {
|
|
140
|
+
path: string;
|
|
141
|
+
symbol?: string | undefined;
|
|
142
|
+
start_line?: number | undefined;
|
|
143
|
+
end_line?: number | undefined;
|
|
144
|
+
}[];
|
|
145
|
+
limitations: string[];
|
|
146
|
+
answer: {
|
|
147
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
148
|
+
findings: {
|
|
149
|
+
confidence: "high" | "low" | "medium";
|
|
150
|
+
kind: "confirmed_defect" | "design_opportunity" | "lead";
|
|
151
|
+
source_refs: {
|
|
152
|
+
path: string;
|
|
153
|
+
symbol?: string | undefined;
|
|
154
|
+
start_line?: number | undefined;
|
|
155
|
+
end_line?: number | undefined;
|
|
156
|
+
}[];
|
|
157
|
+
question_id: string;
|
|
158
|
+
revision_id: string;
|
|
159
|
+
schema_version: "audit-tools/question-review/v1";
|
|
160
|
+
finding_id: string;
|
|
161
|
+
severity: "info" | "high" | "low" | "critical" | "medium";
|
|
162
|
+
claim: string;
|
|
163
|
+
consequence: string;
|
|
164
|
+
next_step: string;
|
|
165
|
+
evidence_ids: string[];
|
|
166
|
+
verification: ({
|
|
167
|
+
kind: "analyzer";
|
|
168
|
+
obligation_id: string;
|
|
169
|
+
provenance: {
|
|
170
|
+
path: string;
|
|
171
|
+
analyzer_id: string;
|
|
172
|
+
snippet_hash: string;
|
|
173
|
+
rule?: string | undefined;
|
|
174
|
+
};
|
|
175
|
+
} | {
|
|
176
|
+
expected: string;
|
|
177
|
+
kind: "assertion";
|
|
178
|
+
source_refs: {
|
|
179
|
+
path: string;
|
|
180
|
+
symbol?: string | undefined;
|
|
181
|
+
start_line?: number | undefined;
|
|
182
|
+
end_line?: number | undefined;
|
|
183
|
+
}[];
|
|
184
|
+
obligation_id: string;
|
|
185
|
+
} | {
|
|
186
|
+
reason: string;
|
|
187
|
+
kind: "disposition";
|
|
188
|
+
obligation_id: string;
|
|
189
|
+
disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
|
|
190
|
+
})[];
|
|
191
|
+
observation_ids?: string[] | undefined;
|
|
192
|
+
purpose?: string | undefined;
|
|
193
|
+
divergence?: string | undefined;
|
|
194
|
+
}[];
|
|
195
|
+
observations: {
|
|
196
|
+
kind: "source_confirmed" | "runtime_observed" | "unverified";
|
|
197
|
+
source_refs: {
|
|
198
|
+
path: string;
|
|
199
|
+
symbol?: string | undefined;
|
|
200
|
+
start_line?: number | undefined;
|
|
201
|
+
end_line?: number | undefined;
|
|
202
|
+
}[];
|
|
203
|
+
part_id: string;
|
|
204
|
+
question_id: string;
|
|
205
|
+
revision_id: string;
|
|
206
|
+
snapshot_id: string;
|
|
207
|
+
schema_version: "audit-tools/question-review/v1";
|
|
208
|
+
observation_id: string;
|
|
209
|
+
statement: string;
|
|
210
|
+
evidence_refs: {
|
|
211
|
+
evidence_id: string;
|
|
212
|
+
observation_id?: string | undefined;
|
|
213
|
+
}[];
|
|
214
|
+
}[];
|
|
215
|
+
parts: {
|
|
216
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
217
|
+
part_id: string;
|
|
218
|
+
observation_ids: string[];
|
|
219
|
+
reason?: string | undefined;
|
|
220
|
+
}[];
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
dependency_bindings: {
|
|
224
|
+
kind: "source" | "evidence" | "membership";
|
|
225
|
+
key: string;
|
|
226
|
+
fingerprint: string;
|
|
227
|
+
}[];
|
|
228
|
+
}[];
|
|
229
|
+
parts: {
|
|
230
|
+
observations: {
|
|
231
|
+
assignment_id: string;
|
|
232
|
+
submission_id: string;
|
|
233
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
234
|
+
part_id: string;
|
|
235
|
+
observation_ids: string[];
|
|
236
|
+
reason?: string | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
resolution?: {
|
|
239
|
+
question_id: string;
|
|
240
|
+
revision_id: string;
|
|
241
|
+
snapshot_id: string;
|
|
242
|
+
schema_version: "audit-tools/question-review/v1";
|
|
243
|
+
decision: "agree" | "disputed" | "resolved";
|
|
244
|
+
adjudication_id: string;
|
|
245
|
+
submission_ids: string[];
|
|
246
|
+
reviewer: string;
|
|
247
|
+
rationale: string;
|
|
248
|
+
selected_submission_ids: string[];
|
|
249
|
+
} | undefined;
|
|
250
|
+
part_id: string;
|
|
251
|
+
state: string;
|
|
252
|
+
}[];
|
|
253
|
+
};
|
|
254
|
+
//# sourceMappingURL=questionReviewAcceptance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionReviewAcceptance.d.ts","sourceRoot":"","sources":["../../../../src/audit/cli/dispatch/questionReviewAcceptance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3M,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,cAAc,CAAC;IACzB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClF,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;IACpC,uEAAuE;IACvE,YAAY,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;CAC3D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,eAAe,GAAG,IAAI,CAYhG;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAC1G,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAC/C;IAAE,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,CA6F/D;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,EAAE,QAAQ,EAAE,SAAS,kBAAkB,EAAE,EAC5H,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,GACpH,QAAQ,GAAG,UAAU,CAevB;AAED,iFAAiF;AACjF,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;;;EAIjG;AAOD,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,oBAAoB,EAAE,EACtG,YAAY,EAAE,QAAQ,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,CAAC,GAAG,SAAS,EAC/E,aAAa,GAAE,SAAS,kBAAkB,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BlD"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// sites-pinned: tests/audit/question-review-acceptance.test.ts
|
|
2
|
+
import { compareCodeUnits, pathMatchesPrefix, stableStringify } from "audit-tools/shared";
|
|
3
|
+
export function validateQuestionSource(binding, ref) {
|
|
4
|
+
const scope = binding.assignment.authorized_scope;
|
|
5
|
+
const source = binding.sourceFiles.find((item) => item.path === ref.path);
|
|
6
|
+
if (!source || !scope.include.some((path) => pathMatchesPrefix(ref.path, path)) ||
|
|
7
|
+
scope.exclude.some((path) => pathMatchesPrefix(ref.path, path))) {
|
|
8
|
+
throw new Error(`Source is outside this assignment: ${ref.path}`);
|
|
9
|
+
}
|
|
10
|
+
if ((ref.start_line !== undefined && (!Number.isInteger(ref.start_line) || ref.start_line < 1)) ||
|
|
11
|
+
(ref.end_line !== undefined && (!Number.isInteger(ref.end_line) || ref.end_line < (ref.start_line ?? 1))) ||
|
|
12
|
+
(ref.end_line ?? ref.start_line ?? 0) > source.line_count) {
|
|
13
|
+
throw new Error(`Source span is outside the issued file: ${ref.path}`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function acceptQuestionReview(answers, binding, submission, acceptedAt) {
|
|
17
|
+
const prior = answers.find((row) => row.submission.submission_id === submission.submission_id);
|
|
18
|
+
if (prior) {
|
|
19
|
+
if (stableStringify(prior.submission) !== stableStringify(submission))
|
|
20
|
+
throw new Error("Conflicting reuse of an accepted review submission ID");
|
|
21
|
+
return { kind: "replay", record: prior };
|
|
22
|
+
}
|
|
23
|
+
const { question, assignment } = binding;
|
|
24
|
+
if (submission.assignment_id !== assignment.assignment_id || submission.question_id !== assignment.question_id ||
|
|
25
|
+
submission.question_id !== question.question_id || submission.revision_id !== assignment.revision_id ||
|
|
26
|
+
submission.revision_id !== question.revision_id || submission.snapshot_id !== assignment.snapshot_id ||
|
|
27
|
+
submission.snapshot_id !== question.snapshot_id) {
|
|
28
|
+
throw new Error("Review submission does not match the current issued assignment, question revision and snapshot");
|
|
29
|
+
}
|
|
30
|
+
if (answers.some((row) => row.submission.assignment_id === submission.assignment_id)) {
|
|
31
|
+
throw new Error("An assignment already has an accepted response; a second independent response requires an independently issued assignment");
|
|
32
|
+
}
|
|
33
|
+
const actual = new Set();
|
|
34
|
+
const bindSource = (ref) => { validateQuestionSource(binding, ref); actual.add(ref.path); };
|
|
35
|
+
for (const ref of submission.inspected_sources)
|
|
36
|
+
bindSource(ref);
|
|
37
|
+
const evidence = new Map(binding.evidence.filter((row) => row.snapshot_id === submission.snapshot_id).map((row) => [row.evidence_id, row]));
|
|
38
|
+
for (const id of submission.evidence_ids) {
|
|
39
|
+
const issued = evidence.get(id);
|
|
40
|
+
if (!issued || !assignment.available_evidence_ids.includes(id))
|
|
41
|
+
throw new Error(`Evidence was not issued for this assignment: ${id}`);
|
|
42
|
+
for (const ref of issued.source_refs)
|
|
43
|
+
bindSource(ref);
|
|
44
|
+
}
|
|
45
|
+
const requested = new Set(question.requested_parts.map((part) => part.part_id));
|
|
46
|
+
const seen = new Set();
|
|
47
|
+
const observations = new Map();
|
|
48
|
+
for (const observation of submission.answer.observations) {
|
|
49
|
+
if (observations.has(observation.observation_id) || !requested.has(observation.part_id) ||
|
|
50
|
+
observation.question_id !== submission.question_id || observation.revision_id !== submission.revision_id ||
|
|
51
|
+
observation.snapshot_id !== submission.snapshot_id)
|
|
52
|
+
throw new Error("Unknown, duplicate or misbound review observation");
|
|
53
|
+
for (const ref of observation.source_refs)
|
|
54
|
+
bindSource(ref);
|
|
55
|
+
if (observation.kind === "source_confirmed" && observation.source_refs.length === 0)
|
|
56
|
+
throw new Error("Source confirmation requires inspected source");
|
|
57
|
+
for (const ref of observation.evidence_refs) {
|
|
58
|
+
const bundle = evidence.get(ref.evidence_id);
|
|
59
|
+
const named = bundle?.observations?.find((item) => item.observation_id === ref.observation_id);
|
|
60
|
+
if (!submission.evidence_ids.includes(ref.evidence_id) || !bundle ||
|
|
61
|
+
(observation.kind !== "unverified" && bundle.status !== "observed") ||
|
|
62
|
+
(ref.observation_id !== undefined && !named) ||
|
|
63
|
+
(observation.kind === "runtime_observed" && (bundle.execution?.executed !== true || !named))) {
|
|
64
|
+
throw new Error(`Observation links unavailable or unissued evidence: ${ref.evidence_id}`);
|
|
65
|
+
}
|
|
66
|
+
for (const source of named?.source_refs ?? [])
|
|
67
|
+
bindSource(source);
|
|
68
|
+
}
|
|
69
|
+
observations.set(observation.observation_id, observation);
|
|
70
|
+
}
|
|
71
|
+
for (const part of submission.answer.parts) {
|
|
72
|
+
if (seen.has(part.part_id) || !requested.has(part.part_id))
|
|
73
|
+
throw new Error(`Unknown or duplicate requested part: ${part.part_id}`);
|
|
74
|
+
if ((part.outcome !== "inconclusive" && !part.observation_ids.some((id) => observations.get(id)?.kind !== "unverified")) ||
|
|
75
|
+
part.observation_ids.some((id) => observations.get(id)?.part_id !== part.part_id))
|
|
76
|
+
throw new Error(`Review part has unsupported observation links: ${part.part_id}`);
|
|
77
|
+
seen.add(part.part_id);
|
|
78
|
+
}
|
|
79
|
+
const findings = new Set();
|
|
80
|
+
const claimedObservations = new Set();
|
|
81
|
+
for (const finding of submission.answer.findings) {
|
|
82
|
+
if (findings.has(finding.finding_id))
|
|
83
|
+
throw new Error("Duplicate local finding ID");
|
|
84
|
+
findings.add(finding.finding_id);
|
|
85
|
+
const links = finding.observation_ids ?? [];
|
|
86
|
+
if (new Set(links).size !== links.length || links.some(id => !observations.has(id))) {
|
|
87
|
+
throw new Error("Finding has unknown or duplicate observation links");
|
|
88
|
+
}
|
|
89
|
+
if (finding.kind === "confirmed_defect" && !links.some(id => observations.get(id)?.kind !== "unverified" && submission.answer.parts.some(part => part.outcome === "findings" && part.observation_ids.includes(id)))) {
|
|
90
|
+
throw new Error("Confirmed defect requires its own supported findings-part observation");
|
|
91
|
+
}
|
|
92
|
+
if (finding.question_id !== submission.question_id || finding.revision_id !== submission.revision_id ||
|
|
93
|
+
finding.evidence_ids.some((id) => !submission.evidence_ids.includes(id)))
|
|
94
|
+
throw new Error("Finding does not match accepted scope or evidence");
|
|
95
|
+
for (const ref of finding.source_refs)
|
|
96
|
+
bindSource(ref);
|
|
97
|
+
for (const obligation of finding.verification)
|
|
98
|
+
if (obligation.kind === "assertion") {
|
|
99
|
+
for (const ref of obligation.source_refs)
|
|
100
|
+
bindSource(ref);
|
|
101
|
+
}
|
|
102
|
+
else if (obligation.kind === "analyzer")
|
|
103
|
+
bindSource({ path: obligation.provenance.path });
|
|
104
|
+
for (const id of links) {
|
|
105
|
+
if (observations.get(id)?.kind !== "unverified")
|
|
106
|
+
claimedObservations.add(id);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
for (const part of submission.answer.parts) {
|
|
110
|
+
if (part.outcome === "findings" && !part.observation_ids.some(id => claimedObservations.has(id))) {
|
|
111
|
+
throw new Error(`Findings part requires a claim linked to its own supported observation: ${part.part_id}`);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return { kind: "accepted", record: {
|
|
115
|
+
schema_version: submission.schema_version,
|
|
116
|
+
accepted_at: acceptedAt,
|
|
117
|
+
submission,
|
|
118
|
+
dependency_bindings: [...new Map([
|
|
119
|
+
...binding.dependencies,
|
|
120
|
+
...binding.sourceFiles.filter((item) => actual.has(item.path)).map((item) => ({ kind: "source", key: item.path, fingerprint: item.fingerprint })),
|
|
121
|
+
...submission.evidence_ids.flatMap((id) => evidence.get(id)?.dependencies ?? []),
|
|
122
|
+
].map((dependency) => [dependencyIdentity([dependency]), dependency])).values()],
|
|
123
|
+
} };
|
|
124
|
+
}
|
|
125
|
+
export function validateQuestionAdjudication(answers, existing, adjudication, question, dependencies) {
|
|
126
|
+
const previous = existing.find((item) => item.adjudication_id === adjudication.adjudication_id);
|
|
127
|
+
if (previous) {
|
|
128
|
+
if (stableStringify(previous) !== stableStringify(adjudication))
|
|
129
|
+
throw new Error("Conflicting reuse of an adjudication ID");
|
|
130
|
+
return "replay";
|
|
131
|
+
}
|
|
132
|
+
const currentIds = new Set(projectQuestionReview(question, answers, dependencies).current.map(({ submission }) => submission.submission_id));
|
|
133
|
+
if (adjudication.question_id !== question.question_id || adjudication.revision_id !== question.revision_id ||
|
|
134
|
+
adjudication.snapshot_id !== question.snapshot_id || new Set(adjudication.submission_ids).size !== adjudication.submission_ids.length ||
|
|
135
|
+
adjudication.submission_ids.some((id) => !currentIds.has(id)) ||
|
|
136
|
+
adjudication.selected_submission_ids.some((id) => !adjudication.submission_ids.includes(id)) ||
|
|
137
|
+
(adjudication.decision === "resolved" && adjudication.selected_submission_ids.length === 0)) {
|
|
138
|
+
throw new Error("Adjudication must name the current question and the accepted answers it actually resolves");
|
|
139
|
+
}
|
|
140
|
+
return "accepted";
|
|
141
|
+
}
|
|
142
|
+
/** An inconclusive observation remains open; no implicit parent-level credit. */
|
|
143
|
+
export function reviewAnswerDisposition(requested, parts) {
|
|
144
|
+
const supported = new Set(parts.filter((part) => part.outcome !== "inconclusive" && part.observation_ids.length > 0)
|
|
145
|
+
.map((part) => part.part_id));
|
|
146
|
+
return { answered: requested.filter((part) => supported.has(part)), open: requested.filter((part) => !supported.has(part)) };
|
|
147
|
+
}
|
|
148
|
+
function dependencyIdentity(dependencies) {
|
|
149
|
+
return stableStringify(dependencies.map((entry) => [entry.kind, entry.key, entry.fingerprint])
|
|
150
|
+
.sort((a, b) => compareCodeUnits(a.join("\0"), b.join("\0"))));
|
|
151
|
+
}
|
|
152
|
+
/** Report current observations without ever changing the accepted originals. */
|
|
153
|
+
export function projectQuestionReview(question, answers, dependencies, adjudications = []) {
|
|
154
|
+
const currentBindings = new Set(dependencies?.map((row) => dependencyIdentity([row])));
|
|
155
|
+
const required = [...question.source_dependencies, ...question.evidence_dependencies];
|
|
156
|
+
const sameQuestion = answers.filter((row) => row.submission.question_id === question.question_id)
|
|
157
|
+
.sort((a, b) => compareCodeUnits(a.submission.submission_id, b.submission.submission_id));
|
|
158
|
+
const current = sameQuestion.filter((row) => dependencies !== undefined &&
|
|
159
|
+
row.submission.revision_id === question.revision_id &&
|
|
160
|
+
row.dependency_bindings.length > 0 && row.dependency_bindings.every((item) => currentBindings.has(dependencyIdentity([item]))) &&
|
|
161
|
+
required.every((dependency) => row.dependency_bindings.some((item) => dependencyIdentity([item]) === dependencyIdentity([dependency]))));
|
|
162
|
+
const stale = sameQuestion.filter((row) => !current.includes(row));
|
|
163
|
+
const parts = question.requested_parts.map(({ part_id }) => {
|
|
164
|
+
const observations = current.flatMap(({ submission }) => submission.answer.parts
|
|
165
|
+
.filter((part) => part.part_id === part_id)
|
|
166
|
+
.map((part) => ({ ...part, assignment_id: submission.assignment_id, submission_id: submission.submission_id })));
|
|
167
|
+
const supported = observations.filter((part) => part.outcome !== "inconclusive" && part.observation_ids.length > 0);
|
|
168
|
+
const verdicts = new Set(supported.map((part) => part.outcome));
|
|
169
|
+
const supportedIds = new Set(supported.map((part) => part.submission_id));
|
|
170
|
+
const decisions = adjudications.filter((decision) => decision.question_id === question.question_id &&
|
|
171
|
+
decision.revision_id === question.revision_id && decision.snapshot_id === question.snapshot_id &&
|
|
172
|
+
[...supportedIds].every((id) => decision.submission_ids.includes(id)) &&
|
|
173
|
+
supported.some((part) => decision.selected_submission_ids.includes(part.submission_id)));
|
|
174
|
+
const resolution = decisions.length === 1 && decisions[0]?.decision === "resolved" ? decisions[0] : undefined;
|
|
175
|
+
const selected = resolution ? new Set(supported.filter((part) => resolution.selected_submission_ids.includes(part.submission_id)).map((part) => part.outcome)) : verdicts;
|
|
176
|
+
const state = selected.size > 1 ? "disputed" : selected.has("findings") ? "findings" : selected.has("clean") ? "clean" : "open";
|
|
177
|
+
return { part_id, state, ...(resolution ? { resolution } : {}), observations: observations.sort((a, b) => compareCodeUnits(a.submission_id, b.submission_id)) };
|
|
178
|
+
});
|
|
179
|
+
return { current, stale, parts };
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=questionReviewAcceptance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionReviewAcceptance.js","sourceRoot":"","sources":["../../../../src/audit/cli/dispatch/questionReviewAcceptance.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAY1F,MAAM,UAAU,sBAAsB,CAAC,OAA6B,EAAE,GAAoB;IACxF,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAClD,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1E,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG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AAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;IAClK,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AACnC,CAAC"}
|
|
@@ -29,6 +29,7 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
29
29
|
limitation: z.ZodOptional<z.ZodString>;
|
|
30
30
|
}, "strict", z.ZodTypeAny, {
|
|
31
31
|
run_id: string;
|
|
32
|
+
decision: "degraded" | "ready" | "stop";
|
|
32
33
|
contract_version: "audit-functional-preflight/v1";
|
|
33
34
|
repository_root: string;
|
|
34
35
|
source_inspection: {
|
|
@@ -39,11 +40,11 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
39
40
|
evidence: string;
|
|
40
41
|
available: boolean;
|
|
41
42
|
};
|
|
42
|
-
decision: "degraded" | "ready" | "stop";
|
|
43
43
|
operator_approved_degraded: boolean;
|
|
44
44
|
limitation?: string | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
run_id: string;
|
|
47
|
+
decision: "degraded" | "ready" | "stop";
|
|
47
48
|
contract_version: "audit-functional-preflight/v1";
|
|
48
49
|
repository_root: string;
|
|
49
50
|
source_inspection: {
|
|
@@ -54,11 +55,11 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
54
55
|
evidence: string;
|
|
55
56
|
available: boolean;
|
|
56
57
|
};
|
|
57
|
-
decision: "degraded" | "ready" | "stop";
|
|
58
58
|
operator_approved_degraded?: boolean | undefined;
|
|
59
59
|
limitation?: string | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
run_id: string;
|
|
62
|
+
decision: "degraded" | "ready" | "stop";
|
|
62
63
|
contract_version: "audit-functional-preflight/v1";
|
|
63
64
|
repository_root: string;
|
|
64
65
|
source_inspection: {
|
|
@@ -69,11 +70,11 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
69
70
|
evidence: string;
|
|
70
71
|
available: boolean;
|
|
71
72
|
};
|
|
72
|
-
decision: "degraded" | "ready" | "stop";
|
|
73
73
|
operator_approved_degraded: boolean;
|
|
74
74
|
limitation?: string | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
run_id: string;
|
|
77
|
+
decision: "degraded" | "ready" | "stop";
|
|
77
78
|
contract_version: "audit-functional-preflight/v1";
|
|
78
79
|
repository_root: string;
|
|
79
80
|
source_inspection: {
|
|
@@ -84,7 +85,6 @@ export declare const FunctionalPreflightSchema: z.ZodEffects<z.ZodObject<{
|
|
|
84
85
|
evidence: string;
|
|
85
86
|
available: boolean;
|
|
86
87
|
};
|
|
87
|
-
decision: "degraded" | "ready" | "stop";
|
|
88
88
|
operator_approved_degraded?: boolean | undefined;
|
|
89
89
|
limitation?: string | undefined;
|
|
90
90
|
}>;
|
|
@@ -133,14 +133,14 @@ export declare const LaneSubmissionShortfallSchema: z.ZodObject<{
|
|
|
133
133
|
message: z.ZodString;
|
|
134
134
|
}, "strict", z.ZodTypeAny, {
|
|
135
135
|
message: string;
|
|
136
|
-
lane: string;
|
|
137
136
|
submission_id: string;
|
|
137
|
+
lane: string;
|
|
138
138
|
issue_code: string;
|
|
139
139
|
submission_path: string;
|
|
140
140
|
}, {
|
|
141
141
|
message: string;
|
|
142
|
-
lane: string;
|
|
143
142
|
submission_id: string;
|
|
143
|
+
lane: string;
|
|
144
144
|
issue_code: string;
|
|
145
145
|
submission_path: string;
|
|
146
146
|
}>, "many">;
|
|
@@ -149,8 +149,8 @@ export declare const LaneSubmissionShortfallSchema: z.ZodObject<{
|
|
|
149
149
|
accepted: number;
|
|
150
150
|
outstanding: {
|
|
151
151
|
message: string;
|
|
152
|
-
lane: string;
|
|
153
152
|
submission_id: string;
|
|
153
|
+
lane: string;
|
|
154
154
|
issue_code: string;
|
|
155
155
|
submission_path: string;
|
|
156
156
|
}[];
|
|
@@ -159,8 +159,8 @@ export declare const LaneSubmissionShortfallSchema: z.ZodObject<{
|
|
|
159
159
|
accepted: number;
|
|
160
160
|
outstanding: {
|
|
161
161
|
message: string;
|
|
162
|
-
lane: string;
|
|
163
162
|
submission_id: string;
|
|
163
|
+
lane: string;
|
|
164
164
|
issue_code: string;
|
|
165
165
|
submission_path: string;
|
|
166
166
|
}[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { writeBlockedStepContract } from "audit-tools/shared";
|
|
2
2
|
import type { AnalyzerPolicy } from "audit-tools/shared";
|
|
3
3
|
import type { ExternalAcquisitionAdvanceOptions } from "../orchestrator/acquisitionExecutor.js";
|
|
4
|
-
import { renderSemanticReviewStep } from "./semanticReviewStep.js";
|
|
5
4
|
import { writeCurrentStep } from "./steps.js";
|
|
6
5
|
import type { NextStepResult } from "./nextStepHelpers.js";
|
|
7
6
|
export { tryConsumeSubmission, consumeArraySubmission, consumeObjectSubmission, renderDesignReviewRejectionNotice, renderEdgeReasoningRejectionNotice, buildTerminalStep, handleGraphEnrichmentBranch, handleDesignReviewBranch, handleSynthesisNarrativeBranch, executeAndRecord, checkFinalizationCycle, checkNoProgressBeforeDispatch, runDeterministicForNextStep, } from "./nextStepHelpers.js";
|
|
@@ -22,31 +21,16 @@ interface NextStepEmitContext {
|
|
|
22
21
|
*/
|
|
23
22
|
analyzerPolicy: AnalyzerPolicy | null;
|
|
24
23
|
result: NextStepResult;
|
|
25
|
-
/**
|
|
26
|
-
* The fold's carried advisories as prompt lines, when it drained a non-empty
|
|
27
|
-
* carry onto a result kind with no advisory channel of its own. Read from the
|
|
28
|
-
* RESULT ({@link NextStepResult.advisoryNotice}) rather than kept beside it —
|
|
29
|
-
* one value, one home — and applied uniformly below the dispatch table.
|
|
30
|
-
*/
|
|
31
|
-
advisoryNotice?: readonly string[];
|
|
32
24
|
}
|
|
33
|
-
/**
|
|
34
|
-
* What to emit, never how to write it. Three writers exist (the step-contract
|
|
35
|
-
* writer, the blocked-step writer, and the semantic-review renderer that
|
|
36
|
-
* publishes the host workload), and each is called from exactly ONE place —
|
|
37
|
-
* `writeAuditStep` — so the emit contract has a single edit site per writer.
|
|
38
|
-
*/
|
|
25
|
+
/** What to emit; the one writer dispatch owns contract persistence. */
|
|
39
26
|
type AuditStepPlan = {
|
|
40
27
|
via: "current";
|
|
41
28
|
params: Parameters<typeof writeCurrentStep>[0];
|
|
42
29
|
} | {
|
|
43
30
|
via: "blocked";
|
|
44
31
|
params: Parameters<typeof writeBlockedStepContract>[0];
|
|
45
|
-
} | {
|
|
46
|
-
via: "semantic_review";
|
|
47
|
-
params: Parameters<typeof renderSemanticReviewStep>[0];
|
|
48
32
|
};
|
|
49
|
-
type NextStepEmissionKind =
|
|
33
|
+
type NextStepEmissionKind = NextStepResult["kind"];
|
|
50
34
|
type NextStepEmissionRow = (ctx: NextStepEmitContext) => Promise<AuditStepPlan>;
|
|
51
35
|
/** Durable settings select resolution; only the active run record supplies consent. */
|
|
52
36
|
export declare function buildExternalAcquisitionOptions(policy: AnalyzerPolicy): ExternalAcquisitionAdvanceOptions;
|
|
@@ -65,8 +49,7 @@ export declare function renderIntentEquivalencePrompt(input: IntentEquivalencePr
|
|
|
65
49
|
/**
|
|
66
50
|
* The step-emission dispatch table: exactly one row per host-actionable result
|
|
67
51
|
* kind. Typed as a TOTAL record over the kind union, so a kind added upstream
|
|
68
|
-
* with no row here is a compile error rather than a step that silently falls
|
|
69
|
-
* through to the semantic-review dispatch.
|
|
52
|
+
* with no row here is a compile error rather than a step that silently falls back to a different workload.
|
|
70
53
|
*
|
|
71
54
|
* Exported together with the handled-kinds set below so a drift guard imports
|
|
72
55
|
* the real thing instead of reconstructing it by reading a branch chain.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextStepCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/nextStepCommand.ts"],"names":[],"mappings":"AAaA,OAAO,EAML,wBAAwB,EAQzB,MAAM,oBAAoB,CAAC;A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