audit-tools 0.56.2 → 0.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -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 +7 -139
- 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 +459 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.js +312 -1
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
- package/dist/audit/cli/dispatch/packetFilter.d.ts +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 +183 -0
- package/dist/audit/cli/dispatch/questionReviewAcceptance.js.map +1 -0
- package/dist/audit/cli/foldTransaction.d.ts +1 -1
- package/dist/audit/cli/foldTransaction.d.ts.map +1 -1
- package/dist/audit/cli/foldTransaction.js +3 -2
- package/dist/audit/cli/foldTransaction.js.map +1 -1
- 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 +64 -141
- 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 +115 -375
- 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 +281 -0
- package/dist/audit/cli/questionReviewCycle.d.ts.map +1 -0
- package/dist/audit/cli/questionReviewCycle.js +87 -0
- package/dist/audit/cli/questionReviewCycle.js.map +1 -0
- package/dist/audit/cli/questionReviewSession.d.ts +21 -0
- package/dist/audit/cli/questionReviewSession.d.ts.map +1 -0
- package/dist/audit/cli/questionReviewSession.js +111 -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 +68 -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 +600 -159
- 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 +13 -6
- package/dist/audit/cli/submitCommand.d.ts.map +1 -1
- package/dist/audit/cli/submitCommand.js +121 -24
- package/dist/audit/cli/submitCommand.js.map +1 -1
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +7 -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 +83 -82
- 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 +37 -10
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +217 -33
- 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/requeueCommand.d.ts +1 -1
- 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 +28 -0
- package/dist/audit/reporting/questionReport.d.ts.map +1 -0
- package/dist/audit/reporting/questionReport.js +186 -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 +551 -34
- 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 +47 -44
- 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 +31 -31
- 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 +10574 -0
- package/dist/shared/types/questionReviewReport.d.ts.map +1 -0
- package/dist/shared/types/questionReviewReport.js +186 -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 +4710 -0
- package/dist/shared/types/reviewQuestion.d.ts.map +1 -0
- package/dist/shared/types/reviewQuestion.js +216 -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,281 @@
|
|
|
1
|
+
import type { ArtifactBundle } from "../io/artifacts.js";
|
|
2
|
+
import { type ScopeIndexMemo } from "../orchestrator/scopeIndexBaseline.js";
|
|
3
|
+
import { type AuditQuestionBinding } from "./dispatch/questionReviewAcceptance.js";
|
|
4
|
+
import type { ReviewReopenEvent } from "../../shared/types/reviewQuestion.js";
|
|
5
|
+
interface QuestionCycleOptions {
|
|
6
|
+
root: string;
|
|
7
|
+
sourceRoot: string;
|
|
8
|
+
artifactsDir: string;
|
|
9
|
+
bundle: ArtifactBundle;
|
|
10
|
+
readOnlyRunId?: string;
|
|
11
|
+
}
|
|
12
|
+
/** The same source/evidence binding for dispatch, report and direct submit. */
|
|
13
|
+
export declare function deriveCurrentQuestionBindings(bundle: ArtifactBundle, sourceRoot: string, verifiedSourceFiles?: AuditQuestionBinding["sourceFiles"], reopens?: readonly ReviewReopenEvent[]): Promise<{
|
|
14
|
+
bindings: AuditQuestionBinding[];
|
|
15
|
+
evidence: {
|
|
16
|
+
status: "not_run" | "observed" | "unavailable";
|
|
17
|
+
kind: "source" | "command" | "measurement" | "fixture";
|
|
18
|
+
source_refs: {
|
|
19
|
+
path: string;
|
|
20
|
+
symbol?: string | undefined;
|
|
21
|
+
start_line?: number | undefined;
|
|
22
|
+
end_line?: number | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
snapshot_id: string;
|
|
25
|
+
schema_version: "audit-tools/question-review/v1";
|
|
26
|
+
evidence_id: string;
|
|
27
|
+
dependencies: {
|
|
28
|
+
kind: "source" | "evidence" | "membership";
|
|
29
|
+
key: string;
|
|
30
|
+
fingerprint: string;
|
|
31
|
+
}[];
|
|
32
|
+
description: string;
|
|
33
|
+
observations?: {
|
|
34
|
+
observation_id: string;
|
|
35
|
+
statement: string;
|
|
36
|
+
source_refs?: {
|
|
37
|
+
path: string;
|
|
38
|
+
symbol?: string | undefined;
|
|
39
|
+
start_line?: number | undefined;
|
|
40
|
+
end_line?: number | undefined;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
execution?: {
|
|
44
|
+
tool: string;
|
|
45
|
+
tool_version: string;
|
|
46
|
+
config_fingerprint: string;
|
|
47
|
+
input_fingerprint: string;
|
|
48
|
+
environment_fingerprint: string;
|
|
49
|
+
exclusions: string[];
|
|
50
|
+
executed: boolean;
|
|
51
|
+
elapsed_ms?: number | undefined;
|
|
52
|
+
usage?: Record<string, number> | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}[];
|
|
55
|
+
sourceFiles: Map<string, string>;
|
|
56
|
+
}>;
|
|
57
|
+
/** One projection for host dispatch and report synthesis. The existing host
|
|
58
|
+
* run ledger is the only accepted-answer store. Call inside the artifact hold. */
|
|
59
|
+
export declare function deriveQuestionCycleUnlocked(options: QuestionCycleOptions): Promise<{
|
|
60
|
+
accepted_count: number;
|
|
61
|
+
answers: {
|
|
62
|
+
schema_version: "audit-tools/question-review/v1";
|
|
63
|
+
accepted_at: string;
|
|
64
|
+
submission: {
|
|
65
|
+
question_id: string;
|
|
66
|
+
revision_id: string;
|
|
67
|
+
snapshot_id: string;
|
|
68
|
+
schema_version: "audit-tools/question-review/v1";
|
|
69
|
+
assignment_id: string;
|
|
70
|
+
evidence_ids: string[];
|
|
71
|
+
submission_id: string;
|
|
72
|
+
inspected_sources: {
|
|
73
|
+
path: string;
|
|
74
|
+
symbol?: string | undefined;
|
|
75
|
+
start_line?: number | undefined;
|
|
76
|
+
end_line?: number | undefined;
|
|
77
|
+
}[];
|
|
78
|
+
limitations: string[];
|
|
79
|
+
answer: {
|
|
80
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
81
|
+
findings: {
|
|
82
|
+
confidence: "high" | "low" | "medium";
|
|
83
|
+
kind: "confirmed_defect" | "design_opportunity" | "lead";
|
|
84
|
+
source_refs: {
|
|
85
|
+
path: string;
|
|
86
|
+
symbol?: string | undefined;
|
|
87
|
+
start_line?: number | undefined;
|
|
88
|
+
end_line?: number | undefined;
|
|
89
|
+
}[];
|
|
90
|
+
question_id: string;
|
|
91
|
+
revision_id: string;
|
|
92
|
+
schema_version: "audit-tools/question-review/v1";
|
|
93
|
+
finding_id: string;
|
|
94
|
+
severity: "info" | "high" | "low" | "critical" | "medium";
|
|
95
|
+
claim: string;
|
|
96
|
+
consequence: string;
|
|
97
|
+
next_step: string;
|
|
98
|
+
evidence_ids: string[];
|
|
99
|
+
verification: ({
|
|
100
|
+
kind: "analyzer";
|
|
101
|
+
obligation_id: string;
|
|
102
|
+
provenance: {
|
|
103
|
+
path: string;
|
|
104
|
+
analyzer_id: string;
|
|
105
|
+
snippet_hash: string;
|
|
106
|
+
rule?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
expected: string;
|
|
110
|
+
kind: "assertion";
|
|
111
|
+
source_refs: {
|
|
112
|
+
path: string;
|
|
113
|
+
symbol?: string | undefined;
|
|
114
|
+
start_line?: number | undefined;
|
|
115
|
+
end_line?: number | undefined;
|
|
116
|
+
}[];
|
|
117
|
+
obligation_id: string;
|
|
118
|
+
} | {
|
|
119
|
+
reason: string;
|
|
120
|
+
kind: "disposition";
|
|
121
|
+
obligation_id: string;
|
|
122
|
+
disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
|
|
123
|
+
})[];
|
|
124
|
+
observation_ids?: string[] | undefined;
|
|
125
|
+
purpose?: string | undefined;
|
|
126
|
+
divergence?: string | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
observations: {
|
|
129
|
+
kind: "source_confirmed" | "runtime_observed" | "unverified";
|
|
130
|
+
source_refs: {
|
|
131
|
+
path: string;
|
|
132
|
+
symbol?: string | undefined;
|
|
133
|
+
start_line?: number | undefined;
|
|
134
|
+
end_line?: number | undefined;
|
|
135
|
+
}[];
|
|
136
|
+
part_id: string;
|
|
137
|
+
question_id: string;
|
|
138
|
+
revision_id: string;
|
|
139
|
+
snapshot_id: string;
|
|
140
|
+
schema_version: "audit-tools/question-review/v1";
|
|
141
|
+
observation_id: string;
|
|
142
|
+
statement: string;
|
|
143
|
+
evidence_refs: {
|
|
144
|
+
evidence_id: string;
|
|
145
|
+
observation_id?: string | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
}[];
|
|
148
|
+
parts: {
|
|
149
|
+
outcome: "clean" | "findings" | "inconclusive";
|
|
150
|
+
part_id: string;
|
|
151
|
+
observation_ids: string[];
|
|
152
|
+
reason?: string | undefined;
|
|
153
|
+
}[];
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
dependency_bindings: {
|
|
157
|
+
kind: "source" | "evidence" | "membership";
|
|
158
|
+
key: string;
|
|
159
|
+
fingerprint: string;
|
|
160
|
+
}[];
|
|
161
|
+
}[];
|
|
162
|
+
adjudications: {
|
|
163
|
+
question_id: string;
|
|
164
|
+
revision_id: string;
|
|
165
|
+
snapshot_id: string;
|
|
166
|
+
schema_version: "audit-tools/question-review/v1";
|
|
167
|
+
decision: "agree" | "disputed" | "resolved";
|
|
168
|
+
adjudication_id: string;
|
|
169
|
+
submission_ids: string[];
|
|
170
|
+
reviewer: string;
|
|
171
|
+
rationale: string;
|
|
172
|
+
selected_submission_ids: string[];
|
|
173
|
+
}[];
|
|
174
|
+
consolidations: {
|
|
175
|
+
reason: string;
|
|
176
|
+
decided_by: string;
|
|
177
|
+
decision_id: string;
|
|
178
|
+
sources: {
|
|
179
|
+
finding_id: string;
|
|
180
|
+
answer_id: string;
|
|
181
|
+
}[];
|
|
182
|
+
}[];
|
|
183
|
+
reopens: {
|
|
184
|
+
reason: string;
|
|
185
|
+
questions: {
|
|
186
|
+
question_id: string;
|
|
187
|
+
revision_id: string;
|
|
188
|
+
snapshot_id: string;
|
|
189
|
+
expected_submission_ids: string[];
|
|
190
|
+
}[];
|
|
191
|
+
reopen_id: string;
|
|
192
|
+
reopened_at: string;
|
|
193
|
+
tooling_transition?: {
|
|
194
|
+
reason: string;
|
|
195
|
+
prior_implementation_hash: string;
|
|
196
|
+
current_implementation_hash: string;
|
|
197
|
+
} | undefined;
|
|
198
|
+
tooling_qualification?: {
|
|
199
|
+
run_id: string;
|
|
200
|
+
snapshot_id: string;
|
|
201
|
+
policy: "source-stable-question-review/v1";
|
|
202
|
+
prior: {
|
|
203
|
+
generated_at: string;
|
|
204
|
+
package_root: string;
|
|
205
|
+
package_version: string | null;
|
|
206
|
+
implementation_hash: string;
|
|
207
|
+
inputs: string[];
|
|
208
|
+
};
|
|
209
|
+
current: {
|
|
210
|
+
generated_at: string;
|
|
211
|
+
package_root: string;
|
|
212
|
+
package_version: string | null;
|
|
213
|
+
implementation_hash: string;
|
|
214
|
+
inputs: string[];
|
|
215
|
+
};
|
|
216
|
+
input_hashes: Record<string, string | null>;
|
|
217
|
+
} | undefined;
|
|
218
|
+
}[];
|
|
219
|
+
issues: {
|
|
220
|
+
assignment_id: string;
|
|
221
|
+
reason: string;
|
|
222
|
+
}[];
|
|
223
|
+
runId: string;
|
|
224
|
+
bindings: AuditQuestionBinding[];
|
|
225
|
+
pending: AuditQuestionBinding[];
|
|
226
|
+
evidence: {
|
|
227
|
+
status: "not_run" | "observed" | "unavailable";
|
|
228
|
+
kind: "source" | "command" | "measurement" | "fixture";
|
|
229
|
+
source_refs: {
|
|
230
|
+
path: string;
|
|
231
|
+
symbol?: string | undefined;
|
|
232
|
+
start_line?: number | undefined;
|
|
233
|
+
end_line?: number | undefined;
|
|
234
|
+
}[];
|
|
235
|
+
snapshot_id: string;
|
|
236
|
+
schema_version: "audit-tools/question-review/v1";
|
|
237
|
+
evidence_id: string;
|
|
238
|
+
dependencies: {
|
|
239
|
+
kind: "source" | "evidence" | "membership";
|
|
240
|
+
key: string;
|
|
241
|
+
fingerprint: string;
|
|
242
|
+
}[];
|
|
243
|
+
description: string;
|
|
244
|
+
observations?: {
|
|
245
|
+
observation_id: string;
|
|
246
|
+
statement: string;
|
|
247
|
+
source_refs?: {
|
|
248
|
+
path: string;
|
|
249
|
+
symbol?: string | undefined;
|
|
250
|
+
start_line?: number | undefined;
|
|
251
|
+
end_line?: number | undefined;
|
|
252
|
+
}[] | undefined;
|
|
253
|
+
}[] | undefined;
|
|
254
|
+
execution?: {
|
|
255
|
+
tool: string;
|
|
256
|
+
tool_version: string;
|
|
257
|
+
config_fingerprint: string;
|
|
258
|
+
input_fingerprint: string;
|
|
259
|
+
environment_fingerprint: string;
|
|
260
|
+
exclusions: string[];
|
|
261
|
+
executed: boolean;
|
|
262
|
+
elapsed_ms?: number | undefined;
|
|
263
|
+
usage?: Record<string, number> | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
}[];
|
|
266
|
+
dependenciesByQuestion: Map<string, readonly ({
|
|
267
|
+
kind: "source" | "evidence" | "membership";
|
|
268
|
+
key: string;
|
|
269
|
+
fingerprint: string;
|
|
270
|
+
} | {
|
|
271
|
+
kind: "source";
|
|
272
|
+
key: string;
|
|
273
|
+
fingerprint: string;
|
|
274
|
+
})[]>;
|
|
275
|
+
}>;
|
|
276
|
+
export declare function assertQualifiedReviewObligation(obligation: string | null): void;
|
|
277
|
+
/** The tooling receipt authorizes a review continuation, never fresh acquisition.
|
|
278
|
+
* Use the unchanged DAG and probe the same tracked corpus as normal advance. */
|
|
279
|
+
export declare function assertQualifiedReviewStillCurrent(bundle: ArtifactBundle, sourceRoot: string, memo?: ScopeIndexMemo): Promise<void>;
|
|
280
|
+
export {};
|
|
281
|
+
//# sourceMappingURL=questionReviewCycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionReviewCycle.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/questionReviewCycle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKzD,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAGtG,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAG1G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,+EAA+E;AAC/E,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,MAAM,EAClB,mBAAmB,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,EACzD,OAAO,GAAE,SAAS,iBAAiB,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAc3C;AAED;kFACkF;AAClF,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B9E;AAED,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAI/E;AAED;gFACgF;AAChF,wBAAsB,iCAAiC,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,iBAkBxH"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// sites-pinned: tests/audit/next-step-question-workload.test.ts
|
|
2
|
+
import { isFileMissingError } from "audit-tools/shared";
|
|
3
|
+
import { collectQuestionEvidence } from "../orchestrator/questionEvidence.js";
|
|
4
|
+
import { reviewSourceScope } from "../orchestrator/questionPlanning.js";
|
|
5
|
+
import { checkFileIntegrity } from "../orchestrator/fileIntegrity.js";
|
|
6
|
+
import { decideNextStep } from "../orchestrator/nextStep.js";
|
|
7
|
+
import { probeScopeIndexKeyCached } from "../orchestrator/scopeIndexBaseline.js";
|
|
8
|
+
import { computeStaleArtifacts } from "../orchestrator/staleness.js";
|
|
9
|
+
import { ingestAuditQuestionResults, readAuditQuestionLedger } from "./dispatch/hostHandoff.js";
|
|
10
|
+
import { projectQuestionReview } from "./dispatch/questionReviewAcceptance.js";
|
|
11
|
+
import { ensureQuestionReviewRunIdUnlocked } from "./questionReviewSession.js";
|
|
12
|
+
import { questionWorkloadBindings } from "./questionWorkloadBindings.js";
|
|
13
|
+
/** The same source/evidence binding for dispatch, report and direct submit. */
|
|
14
|
+
export async function deriveCurrentQuestionBindings(bundle, sourceRoot, verifiedSourceFiles, reopens = []) {
|
|
15
|
+
const plan = bundle.review_plan;
|
|
16
|
+
if (!plan)
|
|
17
|
+
throw new Error("Question review requires the active plan");
|
|
18
|
+
const scope = reviewSourceScope(bundle, bundle.scope);
|
|
19
|
+
const sourceFiles = new Map([...scope.allowedSourcePaths, ...scope.allowedContractPaths].flatMap(path => {
|
|
20
|
+
const fingerprint = scope.files.get(path)?.hash;
|
|
21
|
+
return fingerprint ? [[path, fingerprint]] : [];
|
|
22
|
+
}));
|
|
23
|
+
const evidence = await collectQuestionEvidence({
|
|
24
|
+
snapshot_id: plan.snapshot_id, sourceRoot, sourceFiles, analyzerResults: bundle.external_analyzer_results ?? [],
|
|
25
|
+
});
|
|
26
|
+
const bindings = await questionWorkloadBindings(bundle, sourceRoot, evidence, verifiedSourceFiles, reopens);
|
|
27
|
+
return { bindings, evidence, sourceFiles };
|
|
28
|
+
}
|
|
29
|
+
/** One projection for host dispatch and report synthesis. The existing host
|
|
30
|
+
* run ledger is the only accepted-answer store. Call inside the artifact hold. */
|
|
31
|
+
export async function deriveQuestionCycleUnlocked(options) {
|
|
32
|
+
const { bundle, root, sourceRoot, artifactsDir } = options;
|
|
33
|
+
const plan = bundle.review_plan;
|
|
34
|
+
if (!plan)
|
|
35
|
+
throw new Error("Question review requires the active plan");
|
|
36
|
+
const runId = options.readOnlyRunId ?? await ensureQuestionReviewRunIdUnlocked(artifactsDir);
|
|
37
|
+
const boundary = { root, artifactsDir, runId };
|
|
38
|
+
const ledger = await readAuditQuestionLedger(boundary);
|
|
39
|
+
const { bindings, evidence, sourceFiles } = await deriveCurrentQuestionBindings(bundle, sourceRoot, undefined, ledger.reopens);
|
|
40
|
+
const currentAssignmentIds = new Set(bindings.map(({ assignment }) => assignment.assignment_id));
|
|
41
|
+
const ledgerOnly = { ...ledger, accepted_count: 0, issues: [] };
|
|
42
|
+
const ingestion = options.readOnlyRunId !== undefined ? ledgerOnly
|
|
43
|
+
: await ingestAuditQuestionResults(boundary, currentAssignmentIds).catch(error => {
|
|
44
|
+
if (isFileMissingError(error))
|
|
45
|
+
return ledgerOnly;
|
|
46
|
+
throw error;
|
|
47
|
+
});
|
|
48
|
+
const currentInputs = [...sourceFiles].map(([key, fingerprint]) => ({ kind: "source", key, fingerprint }));
|
|
49
|
+
const dependenciesByQuestion = new Map(bindings.map(binding => [binding.question.question_id, [
|
|
50
|
+
...binding.dependencies, ...currentInputs, ...binding.evidence.flatMap(item => item.dependencies),
|
|
51
|
+
]]));
|
|
52
|
+
const pending = bindings.filter(binding => {
|
|
53
|
+
const active = projectQuestionReview(binding.question, ingestion.answers, dependenciesByQuestion.get(binding.question.question_id), ingestion.adjudications);
|
|
54
|
+
// An accepted inconclusive answer is not a clean result or a reason for
|
|
55
|
+
// infinite redispatch. Reporting keeps its unanswered parts visible.
|
|
56
|
+
return active.current.length === 0;
|
|
57
|
+
});
|
|
58
|
+
return { runId, bindings, pending, evidence, dependenciesByQuestion, ...ingestion };
|
|
59
|
+
}
|
|
60
|
+
export function assertQualifiedReviewObligation(obligation) {
|
|
61
|
+
if (obligation !== null && !["audit_tasks_completed", "synthesis_current", "synthesis_narrative_current"].includes(obligation)) {
|
|
62
|
+
throw new Error("Qualified question review cannot derive upstream obligation: " + obligation);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** The tooling receipt authorizes a review continuation, never fresh acquisition.
|
|
66
|
+
* Use the unchanged DAG and probe the same tracked corpus as normal advance. */
|
|
67
|
+
export async function assertQualifiedReviewStillCurrent(bundle, sourceRoot, memo) {
|
|
68
|
+
if (!bundle.review_tooling_qualification)
|
|
69
|
+
return;
|
|
70
|
+
const stale = computeStaleArtifacts(bundle, { emit: false });
|
|
71
|
+
const derivedReports = new Set(["audit-findings.json", "audit-report.md", "synthesis-narrative.json"]);
|
|
72
|
+
if ([...stale, ...stale.deferred].some(name => !derivedReports.has(name))) {
|
|
73
|
+
throw new Error("Qualified question review has stale non-report inputs; refusing to reacquire evidence.");
|
|
74
|
+
}
|
|
75
|
+
const manifest = bundle.repo_manifest;
|
|
76
|
+
if (!manifest ||
|
|
77
|
+
await probeScopeIndexKeyCached(memo, sourceRoot, manifest.files.map(file => file.path)) !== (manifest.scope_index_key ?? null)) {
|
|
78
|
+
throw new Error("Qualified question review has a changed or unverified frozen scope index.");
|
|
79
|
+
}
|
|
80
|
+
const scope = reviewSourceScope(bundle, bundle.scope);
|
|
81
|
+
const admitted = [...new Set([...scope.allowedSourcePaths, ...scope.allowedContractPaths])];
|
|
82
|
+
if (!(await checkFileIntegrity(sourceRoot, manifest, admitted)).is_clean) {
|
|
83
|
+
throw new Error("Qualified question review cannot continue: frozen source changed.");
|
|
84
|
+
}
|
|
85
|
+
assertQualifiedReviewObligation(decideNextStep(bundle, { emitStaleness: false }).selected_obligation);
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=questionReviewCycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionReviewCycle.js","sourceRoot":"","sources":["../../../src/audit/cli/questionReviewCycle.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,C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AC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,kBAAkB,EAAE,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC5F,IAAI,CAAC,CAAC,MAAM,kBAAkB,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QACzE,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;IACD,+BAA+B,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACxG,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReviewToolingQualification, type ReviewToolingTransition } from "../../shared/types/reviewQuestion.js";
|
|
2
|
+
import type { ToolingManifest } from "../types/toolingManifest.js";
|
|
3
|
+
export declare function readQuestionReviewRunId(artifactsDir: string, options?: {
|
|
4
|
+
includeEnded?: boolean;
|
|
5
|
+
}): Promise<string | undefined>;
|
|
6
|
+
/** The next-step fold already holds the artifact-tree lock. Reuse this run
|
|
7
|
+
* across plan revisions; ordinary finished-run rollover removes the pointer. */
|
|
8
|
+
export declare function ensureQuestionReviewRunIdUnlocked(artifactsDir: string): Promise<string>;
|
|
9
|
+
/** A reopen changes report currency in the same atomic write as the event.
|
|
10
|
+
* A still-present working JSON or its Markdown mirror must not feed remediation. */
|
|
11
|
+
export declare function hasStaleReopenedWorkingReport(artifactsDir: string): Promise<boolean>;
|
|
12
|
+
export declare function qualifyQuestionReviewTooling(params: {
|
|
13
|
+
artifactsDir: string;
|
|
14
|
+
snapshotId?: string;
|
|
15
|
+
prior?: ToolingManifest;
|
|
16
|
+
current: ToolingManifest;
|
|
17
|
+
recordedToolingHash?: string;
|
|
18
|
+
requested?: ReviewToolingTransition;
|
|
19
|
+
allowQualifiedReview: boolean;
|
|
20
|
+
}): Promise<ReviewToolingQualification | undefined>;
|
|
21
|
+
//# sourceMappingURL=questionReviewSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionReviewSession.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/questionReviewSession.ts"],"names":[],"mappings":"AAQA,OAAO,EAA2B,KAAK,0BAA0B,EAAE,KAAK,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAI9I,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AASnE,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7D,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAiB7B;AAED;gFACgF;AAChF,wBAAsB,iCAAiC,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7F;AAED;oFACoF;AACpF,wBAAsB,6BAA6B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO1F;AAgBD,wBAAsB,4BAA4B,CAAC,MAAM,EAAE;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,eAAe,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,oBAAoB,EAAE,OAAO,CAAC;CAC/B,GAAG,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAoClD"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// sites-pinned: tests/audit/result-submit.test.ts, tests/audit/rollover-legacy-archive.test.ts, tests/audit/next-step-question-workload.test.ts
|
|
2
|
+
// sites-pinned: tests/audit/result-submit.test.ts, tests/audit/next-step-question-workload.test.ts
|
|
3
|
+
import { randomUUID } from "node:crypto";
|
|
4
|
+
import { access } from "node:fs/promises";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { assertSubmissionRunId, contentSha256, isFileMissingError, readJsonFile, readOptionalJsonFile, readOptionalTextFile, stableStringify, writeJsonFile } from "audit-tools/shared";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import { auditFindingsPath } from "../../shared/io/auditToolsPaths.js";
|
|
9
|
+
import { ReviewReopenEventSchema } from "../../shared/types/reviewQuestion.js";
|
|
10
|
+
import { QuestionAuditFindingsReportSchema } from "../../shared/types/questionReviewReport.js";
|
|
11
|
+
import { hashArtifactValue } from "../../shared/artifactFreshness.js";
|
|
12
|
+
const schemaVersion = "audit-tools/question-review-session/v1";
|
|
13
|
+
const Session = z.strictObject({
|
|
14
|
+
schema_version: z.literal(schemaVersion),
|
|
15
|
+
run_id: z.string().startsWith("question-review-"),
|
|
16
|
+
});
|
|
17
|
+
const sessionPath = (artifactsDir) => join(artifactsDir, "review_session.json");
|
|
18
|
+
export async function readQuestionReviewRunId(artifactsDir, options = {}) {
|
|
19
|
+
if (!options.includeEnded) {
|
|
20
|
+
try {
|
|
21
|
+
await access(join(artifactsDir, "run-ended.json"));
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
if (!isFileMissingError(error))
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
const record = Session.parse(await readJsonFile(sessionPath(artifactsDir)));
|
|
31
|
+
assertSubmissionRunId(record.run_id);
|
|
32
|
+
return record.run_id;
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
if (isFileMissingError(error))
|
|
36
|
+
return undefined;
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** The next-step fold already holds the artifact-tree lock. Reuse this run
|
|
41
|
+
* across plan revisions; ordinary finished-run rollover removes the pointer. */
|
|
42
|
+
export async function ensureQuestionReviewRunIdUnlocked(artifactsDir) {
|
|
43
|
+
const existing = await readQuestionReviewRunId(artifactsDir);
|
|
44
|
+
if (existing)
|
|
45
|
+
return existing;
|
|
46
|
+
const run_id = `question-review-${randomUUID()}`;
|
|
47
|
+
await writeJsonFile(sessionPath(artifactsDir), { schema_version: schemaVersion, run_id });
|
|
48
|
+
return run_id;
|
|
49
|
+
}
|
|
50
|
+
/** A reopen changes report currency in the same atomic write as the event.
|
|
51
|
+
* A still-present working JSON or its Markdown mirror must not feed remediation. */
|
|
52
|
+
export async function hasStaleReopenedWorkingReport(artifactsDir) {
|
|
53
|
+
const runId = await readQuestionReviewRunId(artifactsDir);
|
|
54
|
+
if (!runId)
|
|
55
|
+
return false;
|
|
56
|
+
const reopens = await readReviewReopens(artifactsDir, runId);
|
|
57
|
+
if (reopens.length === 0)
|
|
58
|
+
return false;
|
|
59
|
+
const report = QuestionAuditFindingsReportSchema.safeParse(await readOptionalJsonFile(auditFindingsPath(artifactsDir)));
|
|
60
|
+
return !report.success || stableStringify(report.data.question_review.reopens ?? []) !== stableStringify(reopens);
|
|
61
|
+
}
|
|
62
|
+
async function readReviewReopens(artifactsDir, runId) {
|
|
63
|
+
const raw = await readOptionalJsonFile(join(artifactsDir, "runs", runId, "host-accepted-results-ledger.json"));
|
|
64
|
+
return z.array(ReviewReopenEventSchema).parse(raw?.reopens ?? []);
|
|
65
|
+
}
|
|
66
|
+
/** These are the accepted inputs to an already planned review. Report and
|
|
67
|
+
* answer state can still advance; frozen source, scope and evidence cannot. */
|
|
68
|
+
const protectedReviewInputs = [
|
|
69
|
+
"run-snapshot.json", "run-consent.json", "scope.json", "intent_checkpoint.json",
|
|
70
|
+
"repo_manifest.json", "file_disposition.json", "external_analyzer_acquisition.json",
|
|
71
|
+
"external_analyzer_results.json", "analyzer_capability.json", "syntax_resolution_status.json", "review_plan.json",
|
|
72
|
+
];
|
|
73
|
+
export async function qualifyQuestionReviewTooling(params) {
|
|
74
|
+
const { artifactsDir, snapshotId, prior, current, requested, recordedToolingHash } = params;
|
|
75
|
+
const run_id = await readQuestionReviewRunId(artifactsDir);
|
|
76
|
+
if (!run_id) {
|
|
77
|
+
if (requested)
|
|
78
|
+
throw new Error("Tooling qualification requires an active question review.");
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
const events = await readReviewReopens(artifactsDir, run_id);
|
|
82
|
+
const saved = [...events].reverse().find(event => event.tooling_qualification)?.tooling_qualification;
|
|
83
|
+
if (!requested && !saved)
|
|
84
|
+
return undefined;
|
|
85
|
+
if (!params.allowQualifiedReview) {
|
|
86
|
+
throw new Error("Qualified question review supports only review submission and next-step, not standalone analysis.");
|
|
87
|
+
}
|
|
88
|
+
const toolingHash = (manifest) => hashArtifactValue("tooling_manifest.json", manifest);
|
|
89
|
+
if (!snapshotId || !prior || toolingHash(prior) !== recordedToolingHash ||
|
|
90
|
+
prior.implementation_hash === current.implementation_hash ||
|
|
91
|
+
(requested && (requested.prior_implementation_hash !== prior.implementation_hash ||
|
|
92
|
+
requested.current_implementation_hash !== current.implementation_hash))) {
|
|
93
|
+
throw new Error("Tooling qualification must name the exact historical and current implementation of an active review.");
|
|
94
|
+
}
|
|
95
|
+
if (saved && (saved.run_id !== run_id || saved.snapshot_id !== snapshotId ||
|
|
96
|
+
toolingHash(saved.prior) !== toolingHash(prior) || toolingHash(saved.current) !== toolingHash(current))) {
|
|
97
|
+
throw new Error("Qualified review tooling no longer matches its run, snapshot or implementation.");
|
|
98
|
+
}
|
|
99
|
+
const input_hashes = Object.fromEntries(await Promise.all(protectedReviewInputs.map(async (name) => {
|
|
100
|
+
const input = await readOptionalJsonFile(join(artifactsDir, name));
|
|
101
|
+
return [name, input === undefined ? null : contentSha256(input)];
|
|
102
|
+
})));
|
|
103
|
+
const guidance = await readOptionalTextFile(join(artifactsDir, "intake", "conversation-start.md"));
|
|
104
|
+
input_hashes["intake/conversation-start.md"] = guidance === undefined ? null : contentSha256(guidance);
|
|
105
|
+
if (!input_hashes["run-snapshot.json"] || !input_hashes["repo_manifest.json"] || !input_hashes["review_plan.json"] ||
|
|
106
|
+
(saved && stableStringify(saved.input_hashes) !== stableStringify(input_hashes))) {
|
|
107
|
+
throw new Error("The qualified review tooling inputs changed or are missing.");
|
|
108
|
+
}
|
|
109
|
+
return saved ?? { policy: "source-stable-question-review/v1", run_id, snapshot_id: snapshotId, prior, current, input_hashes };
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=questionReviewSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionReviewSession.js","sourceRoot":"","sources":["../../../src/audit/cli/questionReviewSession.ts"],"names":[],"mappings":"AAAA,gJAAgJ;AAChJ,mGAAmG;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxL,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAiE,MAAM,sCAAsC,CAAC;AAC9I,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAE/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGtE,MAAM,aAAa,GAAG,wCAAwC,CAAC;AAC/D,MAAM,OAAO,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAClD,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,CA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-0,0 +1,7 @@
|
|
|
1
|
+
import type { ArtifactBundle } from "../io/artifacts.js";
|
|
2
|
+
import { type ReviewEvidence, type ReviewReopenEvent } from "../../shared/types/reviewQuestion.js";
|
|
3
|
+
import type { AuditQuestionBinding } from "./dispatch/questionReviewAcceptance.js";
|
|
4
|
+
/** Use one manifest-backed authority for binding and the planner; suggestions
|
|
5
|
+
* only guide attention. Freeze the allowed index, not the file packet. */
|
|
6
|
+
export declare function questionWorkloadBindings(bundle: ArtifactBundle, sourceRoot: string, evidence: readonly ReviewEvidence[], verifiedSourceFiles?: AuditQuestionBinding["sourceFiles"], reopens?: readonly ReviewReopenEvent[]): Promise<AuditQuestionBinding[]>;
|
|
7
|
+
//# sourceMappingURL=questionWorkloadBindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionWorkloadBindings.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/questionWorkloadBindings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAA2D,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAoD,MAAM,sCAAsC,CAAC;AAC9M,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGnF;0EAC0E;AAC1E,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,mBAAmB,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,EACzD,OAAO,GAAE,SAAS,iBAAiB,EAAO,GACzC,OAAO,CAAC,oBAAoB,EAAE,CAAC,CA0DjC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// sites-pinned: tests/audit/next-step-question-workload.test.ts, tests/audit/result-submit.test.ts
|
|
2
|
+
import { compareCodeUnits, hashContent, stableStringify, toPosixPath } from "audit-tools/shared";
|
|
3
|
+
import { reviewSourceScope } from "../orchestrator/questionPlanning.js";
|
|
4
|
+
import { REVIEW_QUESTION_CONTRACT_VERSION, questionReopenDependencies } from "../../shared/types/reviewQuestion.js";
|
|
5
|
+
import { buildLineIndexForPaths } from "./lineIndex.js";
|
|
6
|
+
/** Use one manifest-backed authority for binding and the planner; suggestions
|
|
7
|
+
* only guide attention. Freeze the allowed index, not the file packet. */
|
|
8
|
+
export async function questionWorkloadBindings(bundle, sourceRoot, evidence, verifiedSourceFiles, reopens = []) {
|
|
9
|
+
const plan = bundle.review_plan;
|
|
10
|
+
if (!plan)
|
|
11
|
+
throw new Error("Plan review questions before publishing an assignment");
|
|
12
|
+
const scope = reviewSourceScope(bundle, bundle.scope);
|
|
13
|
+
const allowed = [...new Set([...scope.allowedSourcePaths, ...scope.allowedContractPaths])].sort(compareCodeUnits);
|
|
14
|
+
// Only direct submission supplies this index, after checking that its entire
|
|
15
|
+
// footprint still hashes to the same frozen bytes. The stored line counts
|
|
16
|
+
// then remain authoritative; don't repeat the file read just to count them.
|
|
17
|
+
const verifiedByPath = verifiedSourceFiles && new Map(verifiedSourceFiles.map(file => [file.path, file]));
|
|
18
|
+
if (verifiedByPath && (verifiedByPath.size !== verifiedSourceFiles.length || allowed.length !== verifiedByPath.size ||
|
|
19
|
+
allowed.some(path => verifiedByPath.get(path)?.fingerprint !== scope.files.get(path)?.hash))) {
|
|
20
|
+
throw new Error("The issued source index is no longer current; run next-step before submitting.");
|
|
21
|
+
}
|
|
22
|
+
const lineIndex = verifiedByPath
|
|
23
|
+
? Object.fromEntries([...verifiedByPath].map(([path, file]) => [path, file.line_count]))
|
|
24
|
+
: await buildLineIndexForPaths(sourceRoot, allowed);
|
|
25
|
+
const sourceFiles = allowed.flatMap(path => {
|
|
26
|
+
const fingerprint = scope.files.get(path)?.hash;
|
|
27
|
+
const line_count = lineIndex[path];
|
|
28
|
+
return fingerprint && Number.isInteger(line_count) && line_count >= 0
|
|
29
|
+
? [{ path, line_count: line_count, fingerprint }] : [];
|
|
30
|
+
});
|
|
31
|
+
const measured = new Set(sourceFiles.map(({ path }) => path));
|
|
32
|
+
const includes = [...new Set(sourceFiles.map(({ path }) => path.split("/")[0]))].sort(compareCodeUnits);
|
|
33
|
+
const byInventory = new Map(plan.inventory.map(item => [item.inventory_item_id, item]));
|
|
34
|
+
const sourcesFor = (inventory) => {
|
|
35
|
+
const refs = inventory.flatMap(id => {
|
|
36
|
+
const item = byInventory.get(id);
|
|
37
|
+
return item ? [...item.source_refs, ...item.contract_refs] : [];
|
|
38
|
+
}).filter(ref => measured.has(ref.path) && (ref.end_line ?? ref.start_line ?? 0) <= (lineIndex[ref.path] ?? 0));
|
|
39
|
+
return [...new Map(refs.map(ref => [stableStringify(ref), ref])).values()];
|
|
40
|
+
};
|
|
41
|
+
const authorized_scope = { include: includes, exclude: [] };
|
|
42
|
+
const epochs = questionReopenDependencies(reopens);
|
|
43
|
+
// The publisher freezes this entire shared source binding, not just the
|
|
44
|
+
// files named by one question. Hash it once rather than once per assignment.
|
|
45
|
+
const sourceBinding = hashContent(stableStringify({ sourceRoot: toPosixPath(sourceRoot), sourceFiles }));
|
|
46
|
+
return plan.questions.filter(q => q.plan_status === "pending" || q.plan_status === "active").map(question => {
|
|
47
|
+
const suggested_sources = sourcesFor(question.inventory_item_ids);
|
|
48
|
+
const scopedEvidence = evidence.filter(record => record.snapshot_id === plan.snapshot_id &&
|
|
49
|
+
record.source_refs.every(ref => measured.has(ref.path)) &&
|
|
50
|
+
(record.source_refs.some(ref => suggested_sources.some(suggestion => ref.path === suggestion.path)) ||
|
|
51
|
+
question.evidence_dependencies.some(dep => record.dependencies.some(bound => stableStringify(dep) === stableStringify(bound)))))
|
|
52
|
+
.sort((a, b) => compareCodeUnits(a.evidence_id, b.evidence_id));
|
|
53
|
+
const epoch = epochs.get(question.question_id);
|
|
54
|
+
const dependencies = [...question.source_dependencies, ...question.evidence_dependencies, ...(epoch ? [epoch] : [])];
|
|
55
|
+
const issued = {
|
|
56
|
+
schema_version: REVIEW_QUESTION_CONTRACT_VERSION,
|
|
57
|
+
question_id: question.question_id, revision_id: question.revision_id, snapshot_id: question.snapshot_id,
|
|
58
|
+
authorized_scope, suggested_sources, available_evidence_ids: scopedEvidence.map(record => record.evidence_id),
|
|
59
|
+
};
|
|
60
|
+
// Question revision controls accepted-answer reuse. The assignment additionally
|
|
61
|
+
// binds what the reviewer was actually offered, including optional leads.
|
|
62
|
+
const assignment_id = `review-${hashContent(stableStringify({
|
|
63
|
+
sourceBinding, question, issued, dependencies, evidence: scopedEvidence,
|
|
64
|
+
}))}`;
|
|
65
|
+
return { question, sourceFiles, evidence: scopedEvidence, dependencies, assignment: { ...issued, assignment_id } };
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=questionWorkloadBindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionWorkloadBindings.js","sourceRoot":"","sources":["../../../src/audit/cli/questionWorkloadBindings.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,gCAAgC,EAA4F,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAE9M,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD;0EAC0E;AAC1E,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,MAAsB,EACtB,UAAkB,EAClB,QAAmC,EACnC,mBAAyD,EACzD,UAAwC,EAAE;IAE1C,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC;IAChC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IACpF,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAA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QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,GAAG,MAAM,EAAE,aAAa,EAAE,EAAE,CAAC;IACrH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resynthesizeCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/resynthesizeCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resynthesizeCommand.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/resynthesizeCommand.ts"],"names":[],"mappings":"AAeA,mGAAmG;AACnG,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA+CnE"}
|