audit-tools 0.39.15 → 0.41.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 +28 -29
- package/dist/audit/cli/args.d.ts +2 -57
- package/dist/audit/cli/args.d.ts.map +1 -1
- package/dist/audit/cli/args.js +16 -250
- package/dist/audit/cli/args.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +9 -6
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +32 -144
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/cleanup.js +4 -4
- package/dist/audit/cli/cleanup.js.map +1 -1
- package/dist/audit/cli/cliHelpers.d.ts +1 -10
- package/dist/audit/cli/cliHelpers.d.ts.map +1 -1
- package/dist/audit/cli/cliHelpers.js +1 -10
- package/dist/audit/cli/cliHelpers.js.map +1 -1
- package/dist/audit/cli/conceptualDispatch.d.ts +11 -32
- package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
- package/dist/audit/cli/conceptualDispatch.js +91 -72
- package/dist/audit/cli/conceptualDispatch.js.map +1 -1
- package/dist/audit/cli/confirmIntentStep.js +3 -3
- package/dist/audit/cli/confirmIntentStep.js.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts +86 -0
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/hostHandoff.js +616 -0
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -0
- package/dist/audit/cli/dispatch/packetFilter.d.ts +12 -86
- package/dist/audit/cli/dispatch/packetFilter.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/packetFilter.js +6 -161
- package/dist/audit/cli/dispatch/packetFilter.js.map +1 -1
- package/dist/audit/cli/dispatch.d.ts +7 -115
- package/dist/audit/cli/dispatch.d.ts.map +1 -1
- package/dist/audit/cli/dispatch.js +7 -711
- package/dist/audit/cli/dispatch.js.map +1 -1
- package/dist/audit/cli/envelope.d.ts +4 -20
- package/dist/audit/cli/envelope.d.ts.map +1 -1
- package/dist/audit/cli/envelope.js +5 -33
- package/dist/audit/cli/envelope.js.map +1 -1
- package/dist/audit/cli/fanoutLanes.d.ts +47 -11
- package/dist/audit/cli/fanoutLanes.d.ts.map +1 -1
- package/dist/audit/cli/fanoutLanes.js +15 -7
- package/dist/audit/cli/fanoutLanes.js.map +1 -1
- package/dist/audit/cli/forceSynthesisCommand.d.ts +3 -16
- package/dist/audit/cli/forceSynthesisCommand.d.ts.map +1 -1
- package/dist/audit/cli/forceSynthesisCommand.js +3 -74
- package/dist/audit/cli/forceSynthesisCommand.js.map +1 -1
- package/dist/audit/cli/laneSubmissions.d.ts +241 -0
- package/dist/audit/cli/laneSubmissions.d.ts.map +1 -0
- package/dist/audit/cli/laneSubmissions.js +438 -0
- package/dist/audit/cli/laneSubmissions.js.map +1 -0
- package/dist/audit/cli/laneValidators.d.ts +65 -0
- package/dist/audit/cli/laneValidators.d.ts.map +1 -0
- package/dist/audit/cli/laneValidators.js +145 -0
- package/dist/audit/cli/laneValidators.js.map +1 -0
- package/dist/audit/cli/lineIndex.d.ts.map +1 -1
- package/dist/audit/cli/lineIndex.js +4 -3
- package/dist/audit/cli/lineIndex.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +153 -382
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +74 -116
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +421 -667
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +2 -67
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +33 -304
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/recoverSubmissionCommand.d.ts +16 -0
- package/dist/audit/cli/recoverSubmissionCommand.d.ts.map +1 -0
- package/dist/audit/cli/recoverSubmissionCommand.js +73 -0
- package/dist/audit/cli/recoverSubmissionCommand.js.map +1 -0
- package/dist/audit/cli/reviewRun.d.ts +6 -35
- package/dist/audit/cli/reviewRun.d.ts.map +1 -1
- package/dist/audit/cli/reviewRun.js +78 -172
- package/dist/audit/cli/reviewRun.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +8 -26
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +95 -171
- package/dist/audit/cli/semanticReviewStep.js.map +1 -1
- package/dist/audit/cli/statusCommand.d.ts.map +1 -1
- package/dist/audit/cli/statusCommand.js +0 -16
- package/dist/audit/cli/statusCommand.js.map +1 -1
- package/dist/audit/cli/steps.d.ts +112 -40
- package/dist/audit/cli/steps.d.ts.map +1 -1
- package/dist/audit/cli/steps.js +14 -0
- package/dist/audit/cli/steps.js.map +1 -1
- package/dist/audit/cli/validateCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateCommand.js +12 -37
- package/dist/audit/cli/validateCommand.js.map +1 -1
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +6 -46
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/contracts/workerSchemas.d.ts +138 -195
- package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
- package/dist/audit/contracts/workerSchemas.js +2 -41
- package/dist/audit/contracts/workerSchemas.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +61 -71
- package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
- package/dist/audit/contracts/wrapperResponse.js +7 -9
- package/dist/audit/contracts/wrapperResponse.js.map +1 -1
- package/dist/audit/io/artifacts.d.ts +14 -10
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +34 -12
- package/dist/audit/io/artifacts.js.map +1 -1
- package/dist/audit/io/runArtifactTypes.d.ts +4 -6
- package/dist/audit/io/runArtifactTypes.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.d.ts +3 -23
- package/dist/audit/io/runArtifacts.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.js +18 -170
- package/dist/audit/io/runArtifacts.js.map +1 -1
- package/dist/audit/orchestrator/advance.js +4 -4
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts +2 -6
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.d.ts +0 -14
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.js +1 -59
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts +2 -2
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +5 -15
- 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 -9
- package/dist/audit/orchestrator/executors.js.map +1 -1
- package/dist/audit/orchestrator/fileAnchors.js +1 -1
- package/dist/audit/orchestrator/fileAnchors.js.map +1 -1
- package/dist/audit/orchestrator/graphEdgeCache.js +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.js +37 -8
- package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +2 -19
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +0 -64
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts +3 -6
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js +4 -7
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentInterpreter.d.ts +1 -1
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts +11 -43
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/partitionTaskGraph.js +48 -101
- package/dist/audit/orchestrator/partitionTaskGraph.js.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.d.ts +5 -7
- package/dist/audit/orchestrator/pendingTasks.d.ts.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.js +4 -2
- package/dist/audit/orchestrator/pendingTasks.js.map +1 -1
- package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/planningExecutors.js +18 -21
- package/dist/audit/orchestrator/planningExecutors.js.map +1 -1
- package/dist/audit/orchestrator/requeueCommand.d.ts +6 -6
- package/dist/audit/orchestrator/resultBaseline.d.ts +4 -3
- package/dist/audit/orchestrator/resultBaseline.d.ts.map +1 -1
- package/dist/audit/orchestrator/resultBaseline.js +4 -3
- package/dist/audit/orchestrator/resultBaseline.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts +1 -2
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraph.js +2 -6
- package/dist/audit/orchestrator/reviewPacketGraph.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts +0 -2
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js +2 -65
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts +0 -1
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.js +0 -1
- package/dist/audit/orchestrator/reviewPacketSizing.js.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.d.ts +5 -68
- package/dist/audit/orchestrator/reviewPackets.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.js +55 -278
- package/dist/audit/orchestrator/reviewPackets.js.map +1 -1
- package/dist/audit/orchestrator/runtimeCommand.d.ts.map +1 -1
- package/dist/audit/orchestrator/runtimeCommand.js +4 -4
- package/dist/audit/orchestrator/runtimeCommand.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +1 -35
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.d.ts +0 -1
- package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.js +0 -45
- package/dist/audit/orchestrator/structureExecutors.js.map +1 -1
- package/dist/audit/orchestrator/synthesisExecutors.d.ts +4 -6
- package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/synthesisExecutors.js +3 -3
- package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts +55 -21
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.js +67 -29
- package/dist/audit/orchestrator/taskAffinityGraph.js.map +1 -1
- package/dist/audit/reporting/scoreShared.js +1 -1
- package/dist/audit/reporting/scoreShared.js.map +1 -1
- package/dist/audit/reporting/synthesis.d.ts +11 -21
- package/dist/audit/reporting/synthesis.d.ts.map +1 -1
- package/dist/audit/reporting/synthesis.js +76 -29
- package/dist/audit/reporting/synthesis.js.map +1 -1
- package/dist/audit/reporting/workBlocks.d.ts +12 -12
- package/dist/audit/reporting/workBlocks.d.ts.map +1 -1
- package/dist/audit/reporting/workBlocks.js +195 -180
- package/dist/audit/reporting/workBlocks.js.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.d.ts +17 -24
- package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.js +60 -125
- package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
- package/dist/audit/supervisor/runLedger.d.ts.map +1 -1
- package/dist/audit/supervisor/runLedger.js +0 -1
- package/dist/audit/supervisor/runLedger.js.map +1 -1
- package/dist/audit/types/analyzerCapability.d.ts +12 -12
- package/dist/audit/types/auditScope.d.ts +4 -19
- package/dist/audit/types/auditScope.d.ts.map +1 -1
- package/dist/audit/types/auditScope.js +2 -13
- package/dist/audit/types/auditScope.js.map +1 -1
- package/dist/audit/types/designAssessment.d.ts +9 -13
- package/dist/audit/types/designAssessment.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.d.ts +24 -29
- package/dist/audit/types/reviewPlanning.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.js +2 -7
- package/dist/audit/types/reviewPlanning.js.map +1 -1
- package/dist/audit/types.d.ts +90 -120
- package/dist/audit/types.d.ts.map +1 -1
- package/dist/audit/types.js +2 -21
- package/dist/audit/types.js.map +1 -1
- package/dist/audit/validation/anchorGrounding.d.ts +22 -10
- package/dist/audit/validation/anchorGrounding.d.ts.map +1 -1
- package/dist/audit/validation/anchorGrounding.js +0 -13
- package/dist/audit/validation/anchorGrounding.js.map +1 -1
- package/dist/audit/validation/auditResults.d.ts +0 -33
- package/dist/audit/validation/auditResults.d.ts.map +1 -1
- package/dist/audit/validation/auditResults.js +1 -114
- package/dist/audit/validation/auditResults.js.map +1 -1
- package/dist/remediate/index.d.ts +0 -8
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +49 -127
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/intake.d.ts +6 -6
- package/dist/remediate/phases/close.d.ts +5 -17
- package/dist/remediate/phases/close.d.ts.map +1 -1
- package/dist/remediate/phases/close.js +30 -258
- package/dist/remediate/phases/close.js.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts +4 -4
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +14 -11
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
- package/dist/remediate/phases/constants.d.ts +0 -1
- package/dist/remediate/phases/constants.d.ts.map +1 -1
- package/dist/remediate/phases/constants.js +0 -1
- package/dist/remediate/phases/constants.js.map +1 -1
- package/dist/remediate/phases/plan.d.ts +5 -30
- package/dist/remediate/phases/plan.d.ts.map +1 -1
- package/dist/remediate/phases/plan.js +34 -191
- package/dist/remediate/phases/plan.js.map +1 -1
- package/dist/remediate/phases/triage.d.ts.map +1 -1
- package/dist/remediate/phases/triage.js +33 -57
- package/dist/remediate/phases/triage.js.map +1 -1
- package/dist/remediate/review/autonomousGate.js +1 -1
- package/dist/remediate/review/autonomousGate.js.map +1 -1
- package/dist/remediate/state/closingActions.d.ts +1 -1
- package/dist/remediate/state/closingActions.d.ts.map +1 -1
- package/dist/remediate/state/closingActions.js +0 -1
- package/dist/remediate/state/closingActions.js.map +1 -1
- package/dist/remediate/state/store.d.ts +16 -45
- package/dist/remediate/state/store.d.ts.map +1 -1
- package/dist/remediate/state/store.js +12 -0
- package/dist/remediate/state/store.js.map +1 -1
- package/dist/remediate/state/types.d.ts +58 -30
- package/dist/remediate/state/types.d.ts.map +1 -1
- package/dist/remediate/state/types.js +22 -2
- package/dist/remediate/state/types.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts +1 -8
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +122 -144
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/dispatch/common.d.ts +0 -42
- package/dist/remediate/steps/dispatch/common.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/common.js +1 -96
- package/dist/remediate/steps/dispatch/common.js.map +1 -1
- package/dist/remediate/steps/dispatch/dagNodeFields.d.ts +0 -12
- package/dist/remediate/steps/dispatch/dagNodeFields.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/dagNodeFields.js +4 -18
- package/dist/remediate/steps/dispatch/dagNodeFields.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts +110 -0
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -0
- package/dist/remediate/steps/dispatch/hostHandoff.js +921 -0
- package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -0
- package/dist/remediate/steps/dispatch/implementPrompt.d.ts +0 -38
- package/dist/remediate/steps/dispatch/implementPrompt.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/implementPrompt.js +3 -479
- package/dist/remediate/steps/dispatch/implementPrompt.js.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.d.ts +5 -38
- package/dist/remediate/steps/dispatch/marshal.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.js +4 -1332
- package/dist/remediate/steps/dispatch/marshal.js.map +1 -1
- package/dist/remediate/steps/dispatch/verifyCommands.d.ts +1 -13
- package/dist/remediate/steps/dispatch/verifyCommands.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/verifyCommands.js +1 -21
- package/dist/remediate/steps/dispatch/verifyCommands.js.map +1 -1
- package/dist/remediate/steps/dispatch/writeScope.d.ts +6 -107
- package/dist/remediate/steps/dispatch/writeScope.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/writeScope.js +32 -286
- package/dist/remediate/steps/dispatch/writeScope.js.map +1 -1
- package/dist/remediate/steps/dispatch.d.ts +7 -12
- package/dist/remediate/steps/dispatch.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch.js +6 -8
- package/dist/remediate/steps/dispatch.js.map +1 -1
- package/dist/remediate/steps/gateCommands.d.ts +0 -29
- package/dist/remediate/steps/gateCommands.d.ts.map +1 -1
- package/dist/remediate/steps/gateCommands.js +0 -35
- package/dist/remediate/steps/gateCommands.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +9 -408
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +147 -1618
- 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 +1 -2
- package/dist/remediate/steps/prompts.js.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.d.ts +3 -42
- package/dist/remediate/steps/sessionConfigLoad.d.ts.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.js +3 -37
- package/dist/remediate/steps/sessionConfigLoad.js.map +1 -1
- package/dist/remediate/steps/stepUtils.d.ts +10 -47
- package/dist/remediate/steps/stepUtils.d.ts.map +1 -1
- package/dist/remediate/steps/stepUtils.js +11 -67
- package/dist/remediate/steps/stepUtils.js.map +1 -1
- package/dist/remediate/steps/types.d.ts +2 -81
- package/dist/remediate/steps/types.d.ts.map +1 -1
- package/dist/remediate/steps/types.js.map +1 -1
- package/dist/remediate/utils/fileIntegrity.d.ts.map +1 -1
- package/dist/remediate/utils/fileIntegrity.js +57 -5
- package/dist/remediate/utils/fileIntegrity.js.map +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipeline.js +1 -1
- package/dist/remediate/validation/contractPipeline.js.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.d.ts +1 -39
- package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.js +1 -67
- package/dist/remediate/validation/contractPipelineGates.js.map +1 -1
- package/dist/shared/affinityArtifacts.d.ts +42 -0
- package/dist/shared/affinityArtifacts.d.ts.map +1 -0
- package/dist/shared/affinityArtifacts.js +142 -0
- package/dist/shared/affinityArtifacts.js.map +1 -0
- package/dist/shared/analyzerPolicy.d.ts +40 -0
- package/dist/shared/analyzerPolicy.d.ts.map +1 -0
- package/dist/shared/analyzerPolicy.js +102 -0
- package/dist/shared/analyzerPolicy.js.map +1 -0
- package/dist/shared/analyzers/acquisitionEngine.d.ts +1 -1
- package/dist/shared/analyzers/acquisitionEngine.d.ts.map +1 -1
- package/dist/shared/analyzers/types.d.ts +20 -20
- package/dist/shared/artifactFreshness.d.ts.map +1 -1
- package/dist/shared/artifactFreshness.js +5 -4
- package/dist/shared/artifactFreshness.js.map +1 -1
- package/dist/shared/constitutionalDocPaths.d.ts.map +1 -1
- package/dist/shared/constitutionalDocPaths.js +0 -1
- package/dist/shared/constitutionalDocPaths.js.map +1 -1
- package/dist/shared/contentKey.d.ts +1 -42
- package/dist/shared/contentKey.d.ts.map +1 -1
- package/dist/shared/contentKey.js +1 -45
- package/dist/shared/contentKey.js.map +1 -1
- package/dist/shared/decompose/charterClarification.d.ts +1 -1
- package/dist/shared/decompose/charterClarification.js +1 -1
- package/dist/shared/decompose/charterExtraction.d.ts +20 -20
- package/dist/shared/decompose/charterExtraction.js +1 -1
- package/dist/shared/decompose/charterExtraction.js.map +1 -1
- package/dist/shared/decompose/contentCoherence.d.ts +382 -0
- package/dist/shared/decompose/contentCoherence.d.ts.map +1 -0
- package/dist/shared/decompose/contentCoherence.js +290 -0
- package/dist/shared/decompose/contentCoherence.js.map +1 -0
- package/dist/shared/decompose/systemicChallenge.d.ts +4 -4
- package/dist/shared/decompose/systemicChallenge.js +1 -1
- package/dist/shared/decompose/systemicChallenge.js.map +1 -1
- package/dist/shared/friction/frictionRecord.js +1 -1
- package/dist/shared/friction/frictionRecord.js.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts +13 -175
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js +6 -232
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/friction/triage.d.ts +3 -3
- package/dist/shared/friction/triage.d.ts.map +1 -1
- package/dist/shared/friction/triage.js +3 -20
- package/dist/shared/friction/triage.js.map +1 -1
- package/dist/shared/hostAssets.d.ts +3 -5
- package/dist/shared/hostAssets.d.ts.map +1 -1
- package/dist/shared/hostAssets.js +6 -7
- package/dist/shared/hostAssets.js.map +1 -1
- package/dist/shared/index.d.ts +32 -155
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +19 -133
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/io/artifactName.js +2 -2
- package/dist/shared/io/artifactName.js.map +1 -1
- package/dist/shared/io/auditToolsPaths.d.ts +26 -6
- package/dist/shared/io/auditToolsPaths.d.ts.map +1 -1
- package/dist/shared/io/auditToolsPaths.js +31 -7
- package/dist/shared/io/auditToolsPaths.js.map +1 -1
- package/dist/shared/io/fileLock.d.ts.map +1 -0
- package/dist/shared/io/fileLock.js.map +1 -0
- package/dist/shared/io/json.d.ts +1 -1
- package/dist/shared/io/json.js +1 -1
- package/dist/shared/io/lockedJsonStore.d.ts +1 -1
- package/dist/shared/io/lockedJsonStore.js +4 -4
- package/dist/shared/io/lockedJsonStore.js.map +1 -1
- package/dist/shared/io/nodeWorktreeGuard.d.ts +14 -15
- package/dist/shared/io/nodeWorktreeGuard.d.ts.map +1 -1
- package/dist/shared/io/nodeWorktreeGuard.js +14 -15
- package/dist/shared/io/nodeWorktreeGuard.js.map +1 -1
- package/dist/shared/io/pathContainment.d.ts +3 -5
- package/dist/shared/io/pathContainment.d.ts.map +1 -1
- package/dist/shared/io/pathContainment.js.map +1 -1
- package/dist/shared/io/pathIdentity.d.ts.map +1 -0
- package/dist/shared/io/pathIdentity.js.map +1 -0
- package/dist/shared/io/schemaVersion.d.ts +5 -4
- package/dist/shared/io/schemaVersion.d.ts.map +1 -1
- package/dist/shared/io/schemaVersion.js +17 -5
- package/dist/shared/io/schemaVersion.js.map +1 -1
- package/dist/shared/io/stateDir.d.ts +3 -6
- package/dist/shared/io/stateDir.d.ts.map +1 -1
- package/dist/shared/io/stateDir.js +3 -6
- package/dist/shared/io/stateDir.js.map +1 -1
- package/dist/shared/io/stepContractWriter.d.ts +3 -3
- package/dist/shared/io/stepContractWriter.js +3 -3
- package/dist/shared/loopCorePaths.d.ts.map +1 -1
- package/dist/shared/loopCorePaths.js +12 -14
- package/dist/shared/loopCorePaths.js.map +1 -1
- package/dist/shared/observability/runLog.d.ts +1 -2
- package/dist/shared/observability/runLog.d.ts.map +1 -1
- package/dist/shared/observability/runLog.js.map +1 -1
- package/dist/shared/prompts.d.ts +5 -7
- package/dist/shared/prompts.d.ts.map +1 -1
- package/dist/shared/prompts.js +2 -3
- package/dist/shared/prompts.js.map +1 -1
- package/dist/shared/reporting/auditDeliverable.d.ts.map +1 -1
- package/dist/shared/reporting/auditDeliverable.js +37 -2
- package/dist/shared/reporting/auditDeliverable.js.map +1 -1
- package/dist/shared/sessionConfig.d.ts +30 -0
- package/dist/shared/sessionConfig.d.ts.map +1 -0
- package/dist/shared/sessionConfig.js +78 -0
- package/dist/shared/sessionConfig.js.map +1 -0
- package/dist/shared/stableStringify.d.ts +0 -12
- package/dist/shared/stableStringify.d.ts.map +1 -1
- package/dist/shared/stableStringify.js +4 -1
- package/dist/shared/stableStringify.js.map +1 -1
- package/dist/shared/submission/expectedSubmissions.d.ts +88 -0
- package/dist/shared/submission/expectedSubmissions.d.ts.map +1 -0
- package/dist/shared/submission/expectedSubmissions.js +84 -0
- package/dist/shared/submission/expectedSubmissions.js.map +1 -0
- package/dist/shared/submission/handRecovery.d.ts +37 -0
- package/dist/shared/submission/handRecovery.d.ts.map +1 -0
- package/dist/shared/submission/handRecovery.js +123 -0
- package/dist/shared/submission/handRecovery.js.map +1 -0
- package/dist/shared/submission/submissionClassifier.d.ts +48 -0
- package/dist/shared/submission/submissionClassifier.d.ts.map +1 -0
- package/dist/shared/submission/submissionClassifier.js +83 -0
- package/dist/shared/submission/submissionClassifier.js.map +1 -0
- package/dist/shared/submission/submissionIdentity.d.ts +49 -0
- package/dist/shared/submission/submissionIdentity.d.ts.map +1 -0
- package/dist/shared/submission/submissionIdentity.js +90 -0
- package/dist/shared/submission/submissionIdentity.js.map +1 -0
- package/dist/shared/submission/submissionLedger.d.ts +37 -0
- package/dist/shared/submission/submissionLedger.d.ts.map +1 -0
- package/dist/shared/submission/submissionLedger.js +81 -0
- package/dist/shared/submission/submissionLedger.js.map +1 -0
- package/dist/shared/tokens.d.ts +0 -11
- package/dist/shared/tokens.d.ts.map +1 -1
- package/dist/shared/tokens.js +2 -32
- package/dist/shared/tokens.js.map +1 -1
- package/dist/shared/tooling/allowlistedExec.d.ts +1 -1
- package/dist/shared/tooling/allowlistedExec.js +4 -4
- package/dist/shared/tooling/allowlistedExec.js.map +1 -1
- package/dist/shared/tooling/exec.d.ts +6 -6
- package/dist/shared/tooling/exec.d.ts.map +1 -1
- package/dist/shared/tooling/exec.js +9 -11
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/tooling/projectTestAdmission.d.ts +1 -1
- package/dist/shared/tooling/projectTestAdmission.js +3 -3
- package/dist/shared/tooling/projectTestAdmission.js.map +1 -1
- package/dist/shared/types/accessMemory.d.ts +6 -6
- package/dist/shared/types/charter.d.ts +19 -19
- package/dist/shared/types/charter.js +3 -3
- package/dist/shared/types/contractPipeline/verification.d.ts +0 -2
- package/dist/shared/types/contractPipeline/verification.d.ts.map +1 -1
- package/dist/shared/types/contractPipeline.d.ts +12 -1
- package/dist/shared/types/contractPipeline.d.ts.map +1 -1
- package/dist/shared/types/contractPipeline.js.map +1 -1
- package/dist/shared/types/executionRecord.d.ts +58 -0
- package/dist/shared/types/executionRecord.d.ts.map +1 -0
- package/dist/shared/types/executionRecord.js +26 -0
- package/dist/shared/types/executionRecord.js.map +1 -0
- package/dist/shared/types/finding.d.ts +671 -43
- package/dist/shared/types/finding.d.ts.map +1 -1
- package/dist/shared/types/finding.js +47 -13
- package/dist/shared/types/finding.js.map +1 -1
- package/dist/shared/types/intentCheckpoint.d.ts +30 -31
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
- package/dist/shared/types/intentCheckpoint.js +2 -3
- package/dist/shared/types/intentCheckpoint.js.map +1 -1
- package/dist/shared/types/remediationOutcome.d.ts +6 -6
- package/dist/shared/types/runLedger.d.ts +0 -1
- package/dist/shared/types/runLedger.d.ts.map +1 -1
- package/dist/shared/types/stepContract.d.ts +0 -6
- package/dist/shared/types/stepContract.d.ts.map +1 -1
- package/dist/shared/types/stepContract.js +0 -1
- package/dist/shared/types/stepContract.js.map +1 -1
- package/dist/shared/validation/findingsReport.d.ts +17 -1
- package/dist/shared/validation/findingsReport.d.ts.map +1 -1
- package/dist/shared/validation/findingsReport.js +137 -1
- package/dist/shared/validation/findingsReport.js.map +1 -1
- package/docs/audit-pkg/contracts.md +75 -201
- package/docs/audit-pkg/development.md +8 -7
- package/docs/audit-pkg/operator-guide.md +72 -174
- package/docs/audit-pkg/product.md +8 -15
- package/docs/audit-pkg/release.md +10 -21
- package/opencode.json +0 -34
- package/package.json +3 -5
- package/schemas/audit_result.schema.json +1 -17
- package/schemas/audit_results.schema.json +1 -17
- package/schemas/finding.schema.json +1 -1
- package/scripts/audit/postinstall.mjs +0 -8
- package/scripts/remediate/postinstall.mjs +27 -12
- package/skills/audit-code/SKILL.md +32 -150
- package/skills/audit-code/audit-code.prompt.md +24 -86
- package/skills/remediate-code/SKILL.md +27 -64
- package/skills/remediate-code/remediate-code.prompt.md +22 -79
- package/wrapper/audit-code-wrapper-install-hosts.mjs +3 -5
- package/wrapper/audit-code-wrapper-install-renderers.mjs +2 -2
- package/wrapper/audit-code-wrapper-lib.mjs +3 -23
- package/wrapper/audit-code-wrapper-opencode.mjs +21 -16
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +5 -6
- package/wrapper/remediate-code-wrapper-install-renderers.mjs +1 -2
- package/wrapper/remediate-code-wrapper-opencode.mjs +31 -10
- package/dist/audit/cli/advanceAuditCommand.d.ts +0 -2
- package/dist/audit/cli/advanceAuditCommand.d.ts.map +0 -1
- package/dist/audit/cli/advanceAuditCommand.js +0 -104
- package/dist/audit/cli/advanceAuditCommand.js.map +0 -1
- package/dist/audit/cli/dispatch/hostFanoutGate.d.ts +0 -36
- package/dist/audit/cli/dispatch/hostFanoutGate.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/hostFanoutGate.js +0 -28
- package/dist/audit/cli/dispatch/hostFanoutGate.js.map +0 -1
- package/dist/audit/cli/dispatch/packetPrompt.d.ts +0 -49
- package/dist/audit/cli/dispatch/packetPrompt.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/packetPrompt.js +0 -355
- package/dist/audit/cli/dispatch/packetPrompt.js.map +0 -1
- package/dist/audit/cli/dispatch/paths.d.ts +0 -7
- package/dist/audit/cli/dispatch/paths.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/paths.js +0 -32
- package/dist/audit/cli/dispatch/paths.js.map +0 -1
- package/dist/audit/cli/dispatch/pausePersist.d.ts +0 -111
- package/dist/audit/cli/dispatch/pausePersist.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/pausePersist.js +0 -252
- package/dist/audit/cli/dispatch/pausePersist.js.map +0 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts +0 -142
- package/dist/audit/cli/dispatch/quotaPool.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/quotaPool.js +0 -232
- package/dist/audit/cli/dispatch/quotaPool.js.map +0 -1
- package/dist/audit/cli/dispatch/sizingWindow.d.ts +0 -46
- package/dist/audit/cli/dispatch/sizingWindow.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/sizingWindow.js +0 -34
- package/dist/audit/cli/dispatch/sizingWindow.js.map +0 -1
- package/dist/audit/cli/dispatch/tierRouting.d.ts +0 -64
- package/dist/audit/cli/dispatch/tierRouting.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/tierRouting.js +0 -172
- package/dist/audit/cli/dispatch/tierRouting.js.map +0 -1
- package/dist/audit/cli/dispatch/tokenUsageObservation.d.ts +0 -91
- package/dist/audit/cli/dispatch/tokenUsageObservation.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/tokenUsageObservation.js +0 -218
- package/dist/audit/cli/dispatch/tokenUsageObservation.js.map +0 -1
- package/dist/audit/cli/dispatch/types.d.ts +0 -144
- package/dist/audit/cli/dispatch/types.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/types.js +0 -15
- package/dist/audit/cli/dispatch/types.js.map +0 -1
- package/dist/audit/cli/dispatchAttempted.d.ts +0 -26
- package/dist/audit/cli/dispatchAttempted.d.ts.map +0 -1
- package/dist/audit/cli/dispatchAttempted.js +0 -71
- package/dist/audit/cli/dispatchAttempted.js.map +0 -1
- package/dist/audit/cli/dispatchStatusCommand.d.ts +0 -2
- package/dist/audit/cli/dispatchStatusCommand.d.ts.map +0 -1
- package/dist/audit/cli/dispatchStatusCommand.js +0 -81
- package/dist/audit/cli/dispatchStatusCommand.js.map +0 -1
- package/dist/audit/cli/hybridDispatch.d.ts +0 -68
- package/dist/audit/cli/hybridDispatch.d.ts.map +0 -1
- package/dist/audit/cli/hybridDispatch.js +0 -85
- package/dist/audit/cli/hybridDispatch.js.map +0 -1
- package/dist/audit/cli/mergeAndIngestCommand.d.ts +0 -165
- package/dist/audit/cli/mergeAndIngestCommand.d.ts.map +0 -1
- package/dist/audit/cli/mergeAndIngestCommand.js +0 -945
- package/dist/audit/cli/mergeAndIngestCommand.js.map +0 -1
- package/dist/audit/cli/ownerTokens.d.ts +0 -21
- package/dist/audit/cli/ownerTokens.d.ts.map +0 -1
- package/dist/audit/cli/ownerTokens.js +0 -86
- package/dist/audit/cli/ownerTokens.js.map +0 -1
- package/dist/audit/cli/prepareDispatchCommand.d.ts +0 -34
- package/dist/audit/cli/prepareDispatchCommand.d.ts.map +0 -1
- package/dist/audit/cli/prepareDispatchCommand.js +0 -69
- package/dist/audit/cli/prepareDispatchCommand.js.map +0 -1
- package/dist/audit/cli/quotaCommand.d.ts +0 -2
- package/dist/audit/cli/quotaCommand.d.ts.map +0 -1
- package/dist/audit/cli/quotaCommand.js +0 -68
- package/dist/audit/cli/quotaCommand.js.map +0 -1
- package/dist/audit/cli/rollingAuditDispatch.d.ts +0 -206
- package/dist/audit/cli/rollingAuditDispatch.d.ts.map +0 -1
- package/dist/audit/cli/rollingAuditDispatch.js +0 -633
- package/dist/audit/cli/rollingAuditDispatch.js.map +0 -1
- package/dist/audit/cli/scoreTokensCommand.d.ts +0 -18
- package/dist/audit/cli/scoreTokensCommand.d.ts.map +0 -1
- package/dist/audit/cli/scoreTokensCommand.js +0 -129
- package/dist/audit/cli/scoreTokensCommand.js.map +0 -1
- package/dist/audit/cli/submitPacketCommand.d.ts +0 -2
- package/dist/audit/cli/submitPacketCommand.d.ts.map +0 -1
- package/dist/audit/cli/submitPacketCommand.js +0 -139
- package/dist/audit/cli/submitPacketCommand.js.map +0 -1
- package/dist/audit/cli/validateResultCommand.d.ts +0 -2
- package/dist/audit/cli/validateResultCommand.d.ts.map +0 -1
- package/dist/audit/cli/validateResultCommand.js +0 -105
- package/dist/audit/cli/validateResultCommand.js.map +0 -1
- package/dist/audit/cli/waveManifest.d.ts +0 -41
- package/dist/audit/cli/waveManifest.d.ts.map +0 -1
- package/dist/audit/cli/waveManifest.js +0 -42
- package/dist/audit/cli/waveManifest.js.map +0 -1
- package/dist/audit/cli/workPartitionRuntime.d.ts +0 -11
- package/dist/audit/cli/workPartitionRuntime.d.ts.map +0 -1
- package/dist/audit/cli/workPartitionRuntime.js +0 -42
- package/dist/audit/cli/workPartitionRuntime.js.map +0 -1
- package/dist/audit/cli/workerRunCommand.d.ts +0 -16
- package/dist/audit/cli/workerRunCommand.d.ts.map +0 -1
- package/dist/audit/cli/workerRunCommand.js +0 -153
- package/dist/audit/cli/workerRunCommand.js.map +0 -1
- package/dist/audit/contracts/schemaEnforcedEmit.d.ts +0 -75
- package/dist/audit/contracts/schemaEnforcedEmit.d.ts.map +0 -1
- package/dist/audit/contracts/schemaEnforcedEmit.js +0 -131
- package/dist/audit/contracts/schemaEnforcedEmit.js.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts +0 -4
- package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraphClustering.js +0 -473
- package/dist/audit/orchestrator/reviewPacketGraphClustering.js.map +0 -1
- package/dist/audit/orchestrator/rollingDispatch.d.ts +0 -64
- package/dist/audit/orchestrator/rollingDispatch.d.ts.map +0 -1
- package/dist/audit/orchestrator/rollingDispatch.js +0 -147
- package/dist/audit/orchestrator/rollingDispatch.js.map +0 -1
- package/dist/audit/orchestrator/unionFind.d.ts +0 -8
- package/dist/audit/orchestrator/unionFind.d.ts.map +0 -1
- package/dist/audit/orchestrator/unionFind.js +0 -43
- package/dist/audit/orchestrator/unionFind.js.map +0 -1
- package/dist/audit/prompts/renderWorkerPrompt.d.ts +0 -3
- package/dist/audit/prompts/renderWorkerPrompt.d.ts.map +0 -1
- package/dist/audit/prompts/renderWorkerPrompt.js +0 -87
- package/dist/audit/prompts/renderWorkerPrompt.js.map +0 -1
- package/dist/audit/providers/constants.d.ts +0 -2
- package/dist/audit/providers/constants.d.ts.map +0 -1
- package/dist/audit/providers/constants.js +0 -2
- package/dist/audit/providers/constants.js.map +0 -1
- package/dist/audit/providers/index.d.ts +0 -19
- package/dist/audit/providers/index.d.ts.map +0 -1
- package/dist/audit/providers/index.js +0 -23
- package/dist/audit/providers/index.js.map +0 -1
- package/dist/audit/quota/discoveredLimits.d.ts +0 -39
- package/dist/audit/quota/discoveredLimits.d.ts.map +0 -1
- package/dist/audit/quota/discoveredLimits.js +0 -96
- package/dist/audit/quota/discoveredLimits.js.map +0 -1
- package/dist/audit/quota/hostLimits.d.ts +0 -7
- package/dist/audit/quota/hostLimits.d.ts.map +0 -1
- package/dist/audit/quota/hostLimits.js +0 -6
- package/dist/audit/quota/hostLimits.js.map +0 -1
- package/dist/audit/quota/index.d.ts +0 -12
- package/dist/audit/quota/index.d.ts.map +0 -1
- package/dist/audit/quota/index.js +0 -19
- package/dist/audit/quota/index.js.map +0 -1
- package/dist/audit/reporting/scoreTokens.d.ts +0 -112
- package/dist/audit/reporting/scoreTokens.d.ts.map +0 -1
- package/dist/audit/reporting/scoreTokens.js +0 -188
- package/dist/audit/reporting/scoreTokens.js.map +0 -1
- package/dist/audit/supervisor/sessionConfig.d.ts +0 -19
- package/dist/audit/supervisor/sessionConfig.d.ts.map +0 -1
- package/dist/audit/supervisor/sessionConfig.js +0 -98
- package/dist/audit/supervisor/sessionConfig.js.map +0 -1
- package/dist/audit/types/activeDispatch.d.ts +0 -83
- package/dist/audit/types/activeDispatch.d.ts.map +0 -1
- package/dist/audit/types/activeDispatch.js +0 -3
- package/dist/audit/types/activeDispatch.js.map +0 -1
- package/dist/audit/types/workerSession.d.ts +0 -28
- package/dist/audit/types/workerSession.d.ts.map +0 -1
- package/dist/audit/types/workerSession.js +0 -5
- package/dist/audit/types/workerSession.js.map +0 -1
- package/dist/audit/validation/sessionConfig.d.ts +0 -7
- package/dist/audit/validation/sessionConfig.d.ts.map +0 -1
- package/dist/audit/validation/sessionConfig.js +0 -84
- package/dist/audit/validation/sessionConfig.js.map +0 -1
- package/dist/remediate/dispatch/amendmentClaim.d.ts +0 -48
- package/dist/remediate/dispatch/amendmentClaim.d.ts.map +0 -1
- package/dist/remediate/dispatch/amendmentClaim.js +0 -67
- package/dist/remediate/dispatch/amendmentClaim.js.map +0 -1
- package/dist/remediate/dispatch/ownershipRegistry.d.ts +0 -266
- package/dist/remediate/dispatch/ownershipRegistry.d.ts.map +0 -1
- package/dist/remediate/dispatch/ownershipRegistry.js +0 -515
- package/dist/remediate/dispatch/ownershipRegistry.js.map +0 -1
- package/dist/remediate/phases/workerTasks.d.ts +0 -21
- package/dist/remediate/phases/workerTasks.d.ts.map +0 -1
- package/dist/remediate/phases/workerTasks.js +0 -31
- package/dist/remediate/phases/workerTasks.js.map +0 -1
- package/dist/remediate/providers/constants.d.ts +0 -2
- package/dist/remediate/providers/constants.d.ts.map +0 -1
- package/dist/remediate/providers/constants.js +0 -2
- package/dist/remediate/providers/constants.js.map +0 -1
- package/dist/remediate/providers/index.d.ts +0 -19
- package/dist/remediate/providers/index.d.ts.map +0 -1
- package/dist/remediate/providers/index.js +0 -23
- package/dist/remediate/providers/index.js.map +0 -1
- package/dist/remediate/quota/hostLimits.d.ts +0 -7
- package/dist/remediate/quota/hostLimits.d.ts.map +0 -1
- package/dist/remediate/quota/hostLimits.js +0 -6
- package/dist/remediate/quota/hostLimits.js.map +0 -1
- package/dist/remediate/quota/index.d.ts +0 -8
- package/dist/remediate/quota/index.d.ts.map +0 -1
- package/dist/remediate/quota/index.js +0 -12
- package/dist/remediate/quota/index.js.map +0 -1
- package/dist/remediate/steps/dispatch/acceptNode.d.ts +0 -328
- package/dist/remediate/steps/dispatch/acceptNode.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/acceptNode.js +0 -722
- package/dist/remediate/steps/dispatch/acceptNode.js.map +0 -1
- package/dist/remediate/steps/dispatch/acceptReconcile.d.ts +0 -66
- package/dist/remediate/steps/dispatch/acceptReconcile.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/acceptReconcile.js +0 -154
- package/dist/remediate/steps/dispatch/acceptReconcile.js.map +0 -1
- package/dist/remediate/steps/dispatch/nodeArtifacts.d.ts +0 -41
- package/dist/remediate/steps/dispatch/nodeArtifacts.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/nodeArtifacts.js +0 -81
- package/dist/remediate/steps/dispatch/nodeArtifacts.js.map +0 -1
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts +0 -123
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/waveScheduling.js +0 -213
- package/dist/remediate/steps/dispatch/waveScheduling.js.map +0 -1
- package/dist/remediate/steps/dispatch/worktreeLifecycle.d.ts +0 -239
- package/dist/remediate/steps/dispatch/worktreeLifecycle.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/worktreeLifecycle.js +0 -875
- package/dist/remediate/steps/dispatch/worktreeLifecycle.js.map +0 -1
- package/dist/remediate/steps/providerNodeDispatch.d.ts +0 -57
- package/dist/remediate/steps/providerNodeDispatch.d.ts.map +0 -1
- package/dist/remediate/steps/providerNodeDispatch.js +0 -97
- package/dist/remediate/steps/providerNodeDispatch.js.map +0 -1
- package/dist/remediate/steps/rollingSession.d.ts +0 -283
- package/dist/remediate/steps/rollingSession.d.ts.map +0 -1
- package/dist/remediate/steps/rollingSession.js +0 -718
- package/dist/remediate/steps/rollingSession.js.map +0 -1
- package/dist/remediate/types/workerSession.d.ts +0 -35
- package/dist/remediate/types/workerSession.d.ts.map +0 -1
- package/dist/remediate/types/workerSession.js +0 -5
- package/dist/remediate/types/workerSession.js.map +0 -1
- package/dist/shared/config/resolveSessionConfig.d.ts +0 -75
- package/dist/shared/config/resolveSessionConfig.d.ts.map +0 -1
- package/dist/shared/config/resolveSessionConfig.js +0 -126
- package/dist/shared/config/resolveSessionConfig.js.map +0 -1
- package/dist/shared/data/model-statics.generated.json +0 -18939
- package/dist/shared/decompose/workPartition.d.ts +0 -66
- package/dist/shared/decompose/workPartition.d.ts.map +0 -1
- package/dist/shared/decompose/workPartition.js +0 -523
- package/dist/shared/decompose/workPartition.js.map +0 -1
- package/dist/shared/dispatch/admissionLeaseReconcile.d.ts +0 -20
- package/dist/shared/dispatch/admissionLeaseReconcile.d.ts.map +0 -1
- package/dist/shared/dispatch/admissionLeaseReconcile.js +0 -36
- package/dist/shared/dispatch/admissionLeaseReconcile.js.map +0 -1
- package/dist/shared/dispatch/admissionLoop.d.ts +0 -875
- package/dist/shared/dispatch/admissionLoop.d.ts.map +0 -1
- package/dist/shared/dispatch/admissionLoop.js +0 -692
- package/dist/shared/dispatch/admissionLoop.js.map +0 -1
- package/dist/shared/dispatch/coordinator.d.ts +0 -189
- package/dist/shared/dispatch/coordinator.d.ts.map +0 -1
- package/dist/shared/dispatch/coordinator.js +0 -258
- package/dist/shared/dispatch/coordinator.js.map +0 -1
- package/dist/shared/dispatch/costRank.d.ts +0 -25
- package/dist/shared/dispatch/costRank.d.ts.map +0 -1
- package/dist/shared/dispatch/costRank.js +0 -34
- package/dist/shared/dispatch/costRank.js.map +0 -1
- package/dist/shared/dispatch/dispatchDecisionLog.d.ts +0 -142
- package/dist/shared/dispatch/dispatchDecisionLog.d.ts.map +0 -1
- package/dist/shared/dispatch/dispatchDecisionLog.js +0 -65
- package/dist/shared/dispatch/dispatchDecisionLog.js.map +0 -1
- package/dist/shared/dispatch/dispatchQuotaContract.d.ts +0 -1052
- package/dist/shared/dispatch/dispatchQuotaContract.d.ts.map +0 -1
- package/dist/shared/dispatch/dispatchQuotaContract.js +0 -75
- package/dist/shared/dispatch/dispatchQuotaContract.js.map +0 -1
- package/dist/shared/dispatch/hostDispatchWall.d.ts +0 -107
- package/dist/shared/dispatch/hostDispatchWall.d.ts.map +0 -1
- package/dist/shared/dispatch/hostDispatchWall.js +0 -90
- package/dist/shared/dispatch/hostDispatchWall.js.map +0 -1
- package/dist/shared/dispatch/hybridDispatch.d.ts +0 -94
- package/dist/shared/dispatch/hybridDispatch.d.ts.map +0 -1
- package/dist/shared/dispatch/hybridDispatch.js +0 -60
- package/dist/shared/dispatch/hybridDispatch.js.map +0 -1
- package/dist/shared/dispatch/ownershipScheduler.d.ts +0 -101
- package/dist/shared/dispatch/ownershipScheduler.d.ts.map +0 -1
- package/dist/shared/dispatch/ownershipScheduler.js +0 -151
- package/dist/shared/dispatch/ownershipScheduler.js.map +0 -1
- package/dist/shared/dispatch/pathIdentity.d.ts.map +0 -1
- package/dist/shared/dispatch/pathIdentity.js.map +0 -1
- package/dist/shared/dispatch/providerDispatchPrep.d.ts +0 -65
- package/dist/shared/dispatch/providerDispatchPrep.d.ts.map +0 -1
- package/dist/shared/dispatch/providerDispatchPrep.js +0 -66
- package/dist/shared/dispatch/providerDispatchPrep.js.map +0 -1
- package/dist/shared/dispatch/providerLaunchFinalize.d.ts +0 -54
- package/dist/shared/dispatch/providerLaunchFinalize.d.ts.map +0 -1
- package/dist/shared/dispatch/providerLaunchFinalize.js +0 -275
- package/dist/shared/dispatch/providerLaunchFinalize.js.map +0 -1
- package/dist/shared/dispatch/rollingDispatch.d.ts +0 -598
- package/dist/shared/dispatch/rollingDispatch.d.ts.map +0 -1
- package/dist/shared/dispatch/rollingDispatch.js +0 -1488
- package/dist/shared/dispatch/rollingDispatch.js.map +0 -1
- package/dist/shared/dispatch/settledPools.d.ts +0 -55
- package/dist/shared/dispatch/settledPools.d.ts.map +0 -1
- package/dist/shared/dispatch/settledPools.js +0 -74
- package/dist/shared/dispatch/settledPools.js.map +0 -1
- package/dist/shared/dispatch/tierRank.d.ts +0 -53
- package/dist/shared/dispatch/tierRank.d.ts.map +0 -1
- package/dist/shared/dispatch/tierRank.js +0 -69
- package/dist/shared/dispatch/tierRank.js.map +0 -1
- package/dist/shared/dispatch/unifiedRolling.d.ts +0 -219
- package/dist/shared/dispatch/unifiedRolling.d.ts.map +0 -1
- package/dist/shared/dispatch/unifiedRolling.js +0 -214
- package/dist/shared/dispatch/unifiedRolling.js.map +0 -1
- package/dist/shared/friction/blindDispatchFriction.d.ts +0 -26
- package/dist/shared/friction/blindDispatchFriction.d.ts.map +0 -1
- package/dist/shared/friction/blindDispatchFriction.js +0 -41
- package/dist/shared/friction/blindDispatchFriction.js.map +0 -1
- package/dist/shared/io/tokenUsageLedger.d.ts +0 -58
- package/dist/shared/io/tokenUsageLedger.d.ts.map +0 -1
- package/dist/shared/io/tokenUsageLedger.js +0 -53
- package/dist/shared/io/tokenUsageLedger.js.map +0 -1
- package/dist/shared/providers/agyProvider.d.ts +0 -23
- package/dist/shared/providers/agyProvider.d.ts.map +0 -1
- package/dist/shared/providers/agyProvider.js +0 -63
- package/dist/shared/providers/agyProvider.js.map +0 -1
- package/dist/shared/providers/auditorSources.d.ts +0 -152
- package/dist/shared/providers/auditorSources.d.ts.map +0 -1
- package/dist/shared/providers/auditorSources.js +0 -391
- package/dist/shared/providers/auditorSources.js.map +0 -1
- package/dist/shared/providers/claudeCodeProvider.d.ts +0 -56
- package/dist/shared/providers/claudeCodeProvider.d.ts.map +0 -1
- package/dist/shared/providers/claudeCodeProvider.js +0 -67
- package/dist/shared/providers/claudeCodeProvider.js.map +0 -1
- package/dist/shared/providers/claudeWorkerProvider.d.ts +0 -71
- package/dist/shared/providers/claudeWorkerProvider.d.ts.map +0 -1
- package/dist/shared/providers/claudeWorkerProvider.js +0 -142
- package/dist/shared/providers/claudeWorkerProvider.js.map +0 -1
- package/dist/shared/providers/codexProvider.d.ts +0 -37
- package/dist/shared/providers/codexProvider.d.ts.map +0 -1
- package/dist/shared/providers/codexProvider.js +0 -85
- package/dist/shared/providers/codexProvider.js.map +0 -1
- package/dist/shared/providers/constants.d.ts +0 -4
- package/dist/shared/providers/constants.d.ts.map +0 -1
- package/dist/shared/providers/constants.js +0 -5
- package/dist/shared/providers/constants.js.map +0 -1
- package/dist/shared/providers/dispatchExclusion.d.ts +0 -44
- package/dist/shared/providers/dispatchExclusion.d.ts.map +0 -1
- package/dist/shared/providers/dispatchExclusion.js +0 -63
- package/dist/shared/providers/dispatchExclusion.js.map +0 -1
- package/dist/shared/providers/identity.d.ts +0 -48
- package/dist/shared/providers/identity.d.ts.map +0 -1
- package/dist/shared/providers/identity.js +0 -51
- package/dist/shared/providers/identity.js.map +0 -1
- package/dist/shared/providers/inProcessWorkers.d.ts +0 -42
- package/dist/shared/providers/inProcessWorkers.d.ts.map +0 -1
- package/dist/shared/providers/inProcessWorkers.js +0 -64
- package/dist/shared/providers/inProcessWorkers.js.map +0 -1
- package/dist/shared/providers/openAiCompatibleProvider.d.ts +0 -132
- package/dist/shared/providers/openAiCompatibleProvider.d.ts.map +0 -1
- package/dist/shared/providers/openAiCompatibleProvider.js +0 -875
- package/dist/shared/providers/openAiCompatibleProvider.js.map +0 -1
- package/dist/shared/providers/opencodeLaunch.d.ts +0 -30
- package/dist/shared/providers/opencodeLaunch.d.ts.map +0 -1
- package/dist/shared/providers/opencodeLaunch.js +0 -72
- package/dist/shared/providers/opencodeLaunch.js.map +0 -1
- package/dist/shared/providers/opencodeProvider.d.ts +0 -27
- package/dist/shared/providers/opencodeProvider.d.ts.map +0 -1
- package/dist/shared/providers/opencodeProvider.js +0 -63
- package/dist/shared/providers/opencodeProvider.js.map +0 -1
- package/dist/shared/providers/orchestratorBindings.d.ts +0 -75
- package/dist/shared/providers/orchestratorBindings.d.ts.map +0 -1
- package/dist/shared/providers/orchestratorBindings.js +0 -66
- package/dist/shared/providers/orchestratorBindings.js.map +0 -1
- package/dist/shared/providers/providerDiagnostics.d.ts +0 -11
- package/dist/shared/providers/providerDiagnostics.d.ts.map +0 -1
- package/dist/shared/providers/providerDiagnostics.js +0 -28
- package/dist/shared/providers/providerDiagnostics.js.map +0 -1
- package/dist/shared/providers/providerFactory.d.ts +0 -173
- package/dist/shared/providers/providerFactory.d.ts.map +0 -1
- package/dist/shared/providers/providerFactory.js +0 -374
- package/dist/shared/providers/providerFactory.js.map +0 -1
- package/dist/shared/providers/providerKeyedFactory.d.ts +0 -14
- package/dist/shared/providers/providerKeyedFactory.d.ts.map +0 -1
- package/dist/shared/providers/providerKeyedFactory.js +0 -16
- package/dist/shared/providers/providerKeyedFactory.js.map +0 -1
- package/dist/shared/providers/providerPathGuard.d.ts +0 -101
- package/dist/shared/providers/providerPathGuard.d.ts.map +0 -1
- package/dist/shared/providers/providerPathGuard.js +0 -177
- package/dist/shared/providers/providerPathGuard.js.map +0 -1
- package/dist/shared/providers/reviewSnapshot.d.ts +0 -55
- package/dist/shared/providers/reviewSnapshot.d.ts.map +0 -1
- package/dist/shared/providers/reviewSnapshot.js +0 -112
- package/dist/shared/providers/reviewSnapshot.js.map +0 -1
- package/dist/shared/providers/spawnLoggedCommand.d.ts +0 -10
- package/dist/shared/providers/spawnLoggedCommand.d.ts.map +0 -1
- package/dist/shared/providers/spawnLoggedCommand.js +0 -345
- package/dist/shared/providers/spawnLoggedCommand.js.map +0 -1
- package/dist/shared/providers/subprocessTemplateProvider.d.ts +0 -19
- package/dist/shared/providers/subprocessTemplateProvider.d.ts.map +0 -1
- package/dist/shared/providers/subprocessTemplateProvider.js +0 -91
- package/dist/shared/providers/subprocessTemplateProvider.js.map +0 -1
- package/dist/shared/providers/types.d.ts +0 -144
- package/dist/shared/providers/types.d.ts.map +0 -1
- package/dist/shared/providers/types.js +0 -2
- package/dist/shared/providers/types.js.map +0 -1
- package/dist/shared/providers/workerCommandProvider.d.ts +0 -10
- package/dist/shared/providers/workerCommandProvider.d.ts.map +0 -1
- package/dist/shared/providers/workerCommandProvider.js +0 -20
- package/dist/shared/providers/workerCommandProvider.js.map +0 -1
- package/dist/shared/providers/workerTaskLaunch.d.ts +0 -32
- package/dist/shared/providers/workerTaskLaunch.d.ts.map +0 -1
- package/dist/shared/providers/workerTaskLaunch.js +0 -27
- package/dist/shared/providers/workerTaskLaunch.js.map +0 -1
- package/dist/shared/quota/accountId.d.ts +0 -107
- package/dist/shared/quota/accountId.d.ts.map +0 -1
- package/dist/shared/quota/accountId.js +0 -151
- package/dist/shared/quota/accountId.js.map +0 -1
- package/dist/shared/quota/antigravityQuotaSource.d.ts +0 -44
- package/dist/shared/quota/antigravityQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/antigravityQuotaSource.js +0 -103
- package/dist/shared/quota/antigravityQuotaSource.js.map +0 -1
- package/dist/shared/quota/apiPool.d.ts +0 -322
- package/dist/shared/quota/apiPool.d.ts.map +0 -1
- package/dist/shared/quota/apiPool.js +0 -751
- package/dist/shared/quota/apiPool.js.map +0 -1
- package/dist/shared/quota/capacity.d.ts +0 -667
- package/dist/shared/quota/capacity.d.ts.map +0 -1
- package/dist/shared/quota/capacity.js +0 -507
- package/dist/shared/quota/capacity.js.map +0 -1
- package/dist/shared/quota/claimLease.d.ts +0 -32
- package/dist/shared/quota/claimLease.d.ts.map +0 -1
- package/dist/shared/quota/claimLease.js +0 -73
- package/dist/shared/quota/claimLease.js.map +0 -1
- package/dist/shared/quota/claimRegistry.d.ts +0 -118
- package/dist/shared/quota/claimRegistry.d.ts.map +0 -1
- package/dist/shared/quota/claimRegistry.js +0 -246
- package/dist/shared/quota/claimRegistry.js.map +0 -1
- package/dist/shared/quota/claudeCodeJsonLines.d.ts +0 -15
- package/dist/shared/quota/claudeCodeJsonLines.d.ts.map +0 -1
- package/dist/shared/quota/claudeCodeJsonLines.js +0 -34
- package/dist/shared/quota/claudeCodeJsonLines.js.map +0 -1
- package/dist/shared/quota/claudeOAuthQuotaSource.d.ts +0 -97
- package/dist/shared/quota/claudeOAuthQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/claudeOAuthQuotaSource.js +0 -385
- package/dist/shared/quota/claudeOAuthQuotaSource.js.map +0 -1
- package/dist/shared/quota/codexHostConfig.d.ts +0 -17
- package/dist/shared/quota/codexHostConfig.d.ts.map +0 -1
- package/dist/shared/quota/codexHostConfig.js +0 -43
- package/dist/shared/quota/codexHostConfig.js.map +0 -1
- package/dist/shared/quota/codexQuotaSource.d.ts +0 -52
- package/dist/shared/quota/codexQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/codexQuotaSource.js +0 -106
- package/dist/shared/quota/codexQuotaSource.js.map +0 -1
- package/dist/shared/quota/compositeQuotaSource.d.ts +0 -83
- package/dist/shared/quota/compositeQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/compositeQuotaSource.js +0 -152
- package/dist/shared/quota/compositeQuotaSource.js.map +0 -1
- package/dist/shared/quota/copilotQuotaSource.d.ts +0 -57
- package/dist/shared/quota/copilotQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/copilotQuotaSource.js +0 -143
- package/dist/shared/quota/copilotQuotaSource.js.map +0 -1
- package/dist/shared/quota/coverage.d.ts +0 -45
- package/dist/shared/quota/coverage.d.ts.map +0 -1
- package/dist/shared/quota/coverage.js +0 -77
- package/dist/shared/quota/coverage.js.map +0 -1
- package/dist/shared/quota/dispatchDriverPrompt.d.ts +0 -15
- package/dist/shared/quota/dispatchDriverPrompt.d.ts.map +0 -1
- package/dist/shared/quota/dispatchDriverPrompt.js +0 -40
- package/dist/shared/quota/dispatchDriverPrompt.js.map +0 -1
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts +0 -7
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts.map +0 -1
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js +0 -33
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js.map +0 -1
- package/dist/shared/quota/errorParsers/genericErrorParser.d.ts +0 -10
- package/dist/shared/quota/errorParsers/genericErrorParser.d.ts.map +0 -1
- package/dist/shared/quota/errorParsers/genericErrorParser.js +0 -8
- package/dist/shared/quota/errorParsers/genericErrorParser.js.map +0 -1
- package/dist/shared/quota/errorParsers/index.d.ts +0 -6
- package/dist/shared/quota/errorParsers/index.d.ts.map +0 -1
- package/dist/shared/quota/errorParsers/index.js +0 -16
- package/dist/shared/quota/errorParsers/index.js.map +0 -1
- package/dist/shared/quota/errorParsing.d.ts +0 -97
- package/dist/shared/quota/errorParsing.d.ts.map +0 -1
- package/dist/shared/quota/errorParsing.js +0 -333
- package/dist/shared/quota/errorParsing.js.map +0 -1
- package/dist/shared/quota/fileLock.d.ts.map +0 -1
- package/dist/shared/quota/fileLock.js.map +0 -1
- package/dist/shared/quota/hostLimits.d.ts +0 -31
- package/dist/shared/quota/hostLimits.d.ts.map +0 -1
- package/dist/shared/quota/hostLimits.js +0 -74
- package/dist/shared/quota/hostLimits.js.map +0 -1
- package/dist/shared/quota/hostPool.d.ts +0 -115
- package/dist/shared/quota/hostPool.d.ts.map +0 -1
- package/dist/shared/quota/hostPool.js +0 -104
- package/dist/shared/quota/hostPool.js.map +0 -1
- package/dist/shared/quota/hostSessionQuotaSource.d.ts +0 -150
- package/dist/shared/quota/hostSessionQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/hostSessionQuotaSource.js +0 -250
- package/dist/shared/quota/hostSessionQuotaSource.js.map +0 -1
- package/dist/shared/quota/httpQuotaSource.d.ts +0 -122
- package/dist/shared/quota/httpQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/httpQuotaSource.js +0 -155
- package/dist/shared/quota/httpQuotaSource.js.map +0 -1
- package/dist/shared/quota/learnedQuotaSource.d.ts +0 -20
- package/dist/shared/quota/learnedQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/learnedQuotaSource.js +0 -46
- package/dist/shared/quota/learnedQuotaSource.js.map +0 -1
- package/dist/shared/quota/limits.d.ts +0 -55
- package/dist/shared/quota/limits.d.ts.map +0 -1
- package/dist/shared/quota/limits.js +0 -164
- package/dist/shared/quota/limits.js.map +0 -1
- package/dist/shared/quota/modelStatics.d.ts +0 -32
- package/dist/shared/quota/modelStatics.d.ts.map +0 -1
- package/dist/shared/quota/modelStatics.js +0 -117
- package/dist/shared/quota/modelStatics.js.map +0 -1
- package/dist/shared/quota/openCodeQuotaSource.d.ts +0 -18
- package/dist/shared/quota/openCodeQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/openCodeQuotaSource.js +0 -84
- package/dist/shared/quota/openCodeQuotaSource.js.map +0 -1
- package/dist/shared/quota/packetCost.d.ts +0 -27
- package/dist/shared/quota/packetCost.d.ts.map +0 -1
- package/dist/shared/quota/packetCost.js +0 -45
- package/dist/shared/quota/packetCost.js.map +0 -1
- package/dist/shared/quota/quotaCoverageNudge.d.ts +0 -26
- package/dist/shared/quota/quotaCoverageNudge.d.ts.map +0 -1
- package/dist/shared/quota/quotaCoverageNudge.js +0 -82
- package/dist/shared/quota/quotaCoverageNudge.js.map +0 -1
- package/dist/shared/quota/quotaSource.d.ts +0 -224
- package/dist/shared/quota/quotaSource.d.ts.map +0 -1
- package/dist/shared/quota/quotaSource.js +0 -125
- package/dist/shared/quota/quotaSource.js.map +0 -1
- package/dist/shared/quota/recordStore.d.ts +0 -25
- package/dist/shared/quota/recordStore.d.ts.map +0 -1
- package/dist/shared/quota/recordStore.js +0 -65
- package/dist/shared/quota/recordStore.js.map +0 -1
- package/dist/shared/quota/reservationLedger.d.ts +0 -183
- package/dist/shared/quota/reservationLedger.d.ts.map +0 -1
- package/dist/shared/quota/reservationLedger.js +0 -319
- package/dist/shared/quota/reservationLedger.js.map +0 -1
- package/dist/shared/quota/scheduler.d.ts +0 -262
- package/dist/shared/quota/scheduler.d.ts.map +0 -1
- package/dist/shared/quota/scheduler.js +0 -628
- package/dist/shared/quota/scheduler.js.map +0 -1
- package/dist/shared/quota/slidingWindow.d.ts +0 -5
- package/dist/shared/quota/slidingWindow.d.ts.map +0 -1
- package/dist/shared/quota/slidingWindow.js +0 -29
- package/dist/shared/quota/slidingWindow.js.map +0 -1
- package/dist/shared/quota/state.d.ts +0 -204
- package/dist/shared/quota/state.d.ts.map +0 -1
- package/dist/shared/quota/state.js +0 -480
- package/dist/shared/quota/state.js.map +0 -1
- package/dist/shared/quota/tokenBudgetView.d.ts +0 -17
- package/dist/shared/quota/tokenBudgetView.d.ts.map +0 -1
- package/dist/shared/quota/tokenBudgetView.js +0 -77
- package/dist/shared/quota/tokenBudgetView.js.map +0 -1
- package/dist/shared/quota/types.d.ts +0 -235
- package/dist/shared/quota/types.d.ts.map +0 -1
- package/dist/shared/quota/types.js +0 -58
- package/dist/shared/quota/types.js.map +0 -1
- package/dist/shared/quota/windowConstraints.d.ts +0 -56
- package/dist/shared/quota/windowConstraints.d.ts.map +0 -1
- package/dist/shared/quota/windowConstraints.js +0 -71
- package/dist/shared/quota/windowConstraints.js.map +0 -1
- package/dist/shared/repair/brokeredDispatch.d.ts +0 -151
- package/dist/shared/repair/brokeredDispatch.d.ts.map +0 -1
- package/dist/shared/repair/brokeredDispatch.js +0 -182
- package/dist/shared/repair/brokeredDispatch.js.map +0 -1
- package/dist/shared/repair/emitValidateRepair.d.ts +0 -124
- package/dist/shared/repair/emitValidateRepair.d.ts.map +0 -1
- package/dist/shared/repair/emitValidateRepair.js +0 -180
- package/dist/shared/repair/emitValidateRepair.js.map +0 -1
- package/dist/shared/repair/index.d.ts +0 -10
- package/dist/shared/repair/index.d.ts.map +0 -1
- package/dist/shared/repair/index.js +0 -3
- package/dist/shared/repair/index.js.map +0 -1
- package/dist/shared/rolling/pausedState.d.ts +0 -201
- package/dist/shared/rolling/pausedState.d.ts.map +0 -1
- package/dist/shared/rolling/pausedState.js +0 -197
- package/dist/shared/rolling/pausedState.js.map +0 -1
- package/dist/shared/types/attributionContract.d.ts +0 -198
- package/dist/shared/types/attributionContract.d.ts.map +0 -1
- package/dist/shared/types/attributionContract.js +0 -332
- package/dist/shared/types/attributionContract.js.map +0 -1
- package/dist/shared/types/auditorDescriptor.d.ts +0 -119
- package/dist/shared/types/auditorDescriptor.d.ts.map +0 -1
- package/dist/shared/types/auditorDescriptor.js +0 -29
- package/dist/shared/types/auditorDescriptor.js.map +0 -1
- package/dist/shared/types/rollingDispatch.d.ts +0 -222
- package/dist/shared/types/rollingDispatch.d.ts.map +0 -1
- package/dist/shared/types/rollingDispatch.js +0 -19
- package/dist/shared/types/rollingDispatch.js.map +0 -1
- package/dist/shared/types/sessionConfig.d.ts +0 -778
- package/dist/shared/types/sessionConfig.d.ts.map +0 -1
- package/dist/shared/types/sessionConfig.js +0 -393
- package/dist/shared/types/sessionConfig.js.map +0 -1
- package/dist/shared/validation/sessionConfig.d.ts +0 -59
- package/dist/shared/validation/sessionConfig.d.ts.map +0 -1
- package/dist/shared/validation/sessionConfig.js +0 -631
- package/dist/shared/validation/sessionConfig.js.map +0 -1
- /package/dist/shared/{quota → io}/fileLock.d.ts +0 -0
- /package/dist/shared/{quota → io}/fileLock.js +0 -0
- /package/dist/shared/{dispatch → io}/pathIdentity.d.ts +0 -0
- /package/dist/shared/{dispatch → io}/pathIdentity.js +0 -0
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rolling engine paused-state management (N-S09).
|
|
3
|
-
*
|
|
4
|
-
* Owns the `waiting_for_provider` resumable paused state that the rolling
|
|
5
|
-
* engine enters when every eligible dispatch pool empties mid-run.
|
|
6
|
-
*
|
|
7
|
-
* Invariants enforced here:
|
|
8
|
-
* INV-S03 — settled dispatch-pool exclusions are never re-offered on
|
|
9
|
-
* re-discovery. `filterNewProviders` strips them from every
|
|
10
|
-
* re-discovery pass; `SettledExclusionSet` is never mutated.
|
|
11
|
-
* CE-003/CE-205 — no indefinite stall. After `LIVELOCK_PAUSE_LIMIT`
|
|
12
|
-
* consecutive pauses with zero net new capacity the engine
|
|
13
|
-
* transitions to `terminal/livelock` and yields the stranded
|
|
14
|
-
* subtree to the consumer-provided terminal handler (N-CE301).
|
|
15
|
-
* CP-NODE-3(a) — every transition OUT of `waiting_for_provider` (resume to
|
|
16
|
-
* `running`, or promotion to `terminal`) carries an EXPLICIT
|
|
17
|
-
* `clear_persisted_state: true` directive, rather than leaving
|
|
18
|
-
* the caller to infer "must clear" from `kind` alone. The
|
|
19
|
-
* consumer that derives `dispatch_capacity` from the mere
|
|
20
|
-
* PRESENCE of a persisted paused_state
|
|
21
|
-
* (audit-orchestrator-core, `src/audit/orchestrator/state.ts`)
|
|
22
|
-
* has no actionable obligation to clear it on its own, so an
|
|
23
|
-
* un-cleared paused_state would report top-level status
|
|
24
|
-
* "blocked" forever once capacity actually returns. This
|
|
25
|
-
* module PRODUCES the directive only, as a returned value —
|
|
26
|
-
* never as a filesystem write; the consumer (CP-NODE-6, the
|
|
27
|
-
* active-dispatch-state writer) owns applying it.
|
|
28
|
-
* CP-NODE-3(b) — `classifyProviderConstructionAttempt` classifies a
|
|
29
|
-
* SYNCHRONOUS provider-construction throw (a permanently
|
|
30
|
-
* misconfigured provider — missing required config, unknown
|
|
31
|
-
* provider name) as a TERMINAL configuration failure, never a
|
|
32
|
-
* retryable pause: incrementing `pause_count` or re-entering
|
|
33
|
-
* re-discovery on a construction failure would only busy-loop
|
|
34
|
-
* the same broken config. It classifies via the structured,
|
|
35
|
-
* non-retryable `ProviderLaunchOutcomeEnvelope`
|
|
36
|
-
* (`outcome: "construction_failed"`) that provider construction
|
|
37
|
-
* now throws — see `../providers/providerFactory.js`.
|
|
38
|
-
*
|
|
39
|
-
* This module is purely logic — zero runtime dependencies beyond Node
|
|
40
|
-
* built-ins (the `ProviderLaunchOutcomeEnvelope` reference below is a
|
|
41
|
-
* type-only import, erased at compile time — it adds no runtime dependency
|
|
42
|
-
* on the providers layer). The consumer wires the terminal action after
|
|
43
|
-
* receiving `{ kind: 'terminal', reason: 'livelock' | 'configuration', ... }`.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* Top-level lifecycle state of the rolling dispatch engine.
|
|
47
|
-
*
|
|
48
|
-
* - `running` — an eligible pool has capacity; dispatch proceeding.
|
|
49
|
-
* - `waiting_for_provider` — all eligible pools emptied mid-run; engine is
|
|
50
|
-
* explicitly paused and resumable.
|
|
51
|
-
* - `terminal` — engine is done (complete, livelock, or handed
|
|
52
|
-
* off to the consumer terminal handler).
|
|
53
|
-
*/
|
|
54
|
-
export type RollingEngineLifecycleState = {
|
|
55
|
-
kind: "running";
|
|
56
|
-
/**
|
|
57
|
-
* CP-NODE-3(a): explicit directive — a persisted paused_state record
|
|
58
|
-
* (if any) MUST be cleared. Always `true` on this variant; see the
|
|
59
|
-
* module doc comment for why this must be explicit rather than
|
|
60
|
-
* inferred from `kind`.
|
|
61
|
-
*/
|
|
62
|
-
clear_persisted_state: true;
|
|
63
|
-
} | {
|
|
64
|
-
kind: "waiting_for_provider";
|
|
65
|
-
/** ISO timestamp when the engine entered the paused state. */
|
|
66
|
-
paused_at: string;
|
|
67
|
-
/** Number of consecutive pauses with no net new provider capacity. */
|
|
68
|
-
pause_count: number;
|
|
69
|
-
/** Node IDs that are stranded waiting for a provider. */
|
|
70
|
-
stranded_node_ids: string[];
|
|
71
|
-
/**
|
|
72
|
-
* CP-NODE-3(a): explicit directive companion. Never `true` on this
|
|
73
|
-
* variant — the engine is still paused, so any persisted paused_state
|
|
74
|
-
* record must be KEPT (updated with the new lifecycle), not cleared.
|
|
75
|
-
* Optional (rather than required) so external constructors of this
|
|
76
|
-
* persisted shape (the active-dispatch-state writer) that predate the
|
|
77
|
-
* directive keep typechecking unchanged; this module always sets it
|
|
78
|
-
* explicitly to `false` on every value it produces.
|
|
79
|
-
*/
|
|
80
|
-
clear_persisted_state?: false;
|
|
81
|
-
} | {
|
|
82
|
-
kind: "terminal";
|
|
83
|
-
reason: "livelock" | "consumer_terminal" | "complete" | "configuration";
|
|
84
|
-
stranded_node_ids: string[];
|
|
85
|
-
/**
|
|
86
|
-
* CP-NODE-3(a): explicit directive — a persisted paused_state record
|
|
87
|
-
* (if any) MUST be cleared; the run has left the resumable-pause cycle
|
|
88
|
-
* entirely (livelock, consumer terminal, completion, or a
|
|
89
|
-
* non-retryable configuration failure). Always `true` on this variant.
|
|
90
|
-
*/
|
|
91
|
-
clear_persisted_state: true;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Opaque set of provider identifiers already settled by dispatch. Carried across
|
|
95
|
-
* re-discovery rounds; never cleared.
|
|
96
|
-
*
|
|
97
|
-
* Use a `ReadonlySet<string>` so callers cannot accidentally mutate it.
|
|
98
|
-
*/
|
|
99
|
-
export type SettledExclusionSet = ReadonlySet<string>;
|
|
100
|
-
/**
|
|
101
|
-
* Default number of consecutive `waiting_for_provider` pauses (with zero net
|
|
102
|
-
* new capacity) after which the engine transitions to `terminal/livelock`.
|
|
103
|
-
*/
|
|
104
|
-
export declare const LIVELOCK_PAUSE_LIMIT = 3;
|
|
105
|
-
/**
|
|
106
|
-
* Pure function: return only providers not present in `settled`.
|
|
107
|
-
*
|
|
108
|
-
* Guarantees that re-discovery never re-offers a settled
|
|
109
|
-
* exclusion (INV-S03). The `settled` set is never mutated.
|
|
110
|
-
*
|
|
111
|
-
* @param discovered Provider identifiers returned by the latest re-discovery pass.
|
|
112
|
-
* @param settled The accumulated exclusion set; immutable.
|
|
113
|
-
* @returns Only those identifiers not already in `settled`.
|
|
114
|
-
*/
|
|
115
|
-
export declare function filterNewProviders(discovered: string[], settled: SettledExclusionSet): string[];
|
|
116
|
-
/**
|
|
117
|
-
* Pure predicate: returns `true` when the no-progress livelock condition is met.
|
|
118
|
-
*
|
|
119
|
-
* Livelock is triggered when:
|
|
120
|
-
* - `pauseCount >= limit` (at or beyond the configured threshold), AND
|
|
121
|
-
* - `netNewCapacity === 0` (no genuinely-new providers arrived this round).
|
|
122
|
-
*
|
|
123
|
-
* @param pauseCount Number of consecutive pauses recorded so far (inclusive of the current one).
|
|
124
|
-
* @param netNewCapacity Count of genuinely-new providers surfaced this round.
|
|
125
|
-
* @param limit Pause threshold; defaults to `LIVELOCK_PAUSE_LIMIT`.
|
|
126
|
-
*/
|
|
127
|
-
export declare function checkLivelockGuard(pauseCount: number, netNewCapacity: number, limit?: number): boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Options for `advancePausedState`.
|
|
130
|
-
*/
|
|
131
|
-
export interface AdvancePausedStateOptions {
|
|
132
|
-
/** The current `waiting_for_provider` state. */
|
|
133
|
-
current: Extract<RollingEngineLifecycleState, {
|
|
134
|
-
kind: "waiting_for_provider";
|
|
135
|
-
}>;
|
|
136
|
-
/** Provider identifiers returned by the latest re-discovery probe. */
|
|
137
|
-
rediscoveredProviders: string[];
|
|
138
|
-
/** The accumulated settled-exclusion set (not mutated). */
|
|
139
|
-
settledExclusions: SettledExclusionSet;
|
|
140
|
-
/** Override for the livelock limit; defaults to `LIVELOCK_PAUSE_LIMIT`. */
|
|
141
|
-
livelockLimit?: number;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Single transition function for the `waiting_for_provider` paused state.
|
|
145
|
-
*
|
|
146
|
-
* Decision tree:
|
|
147
|
-
* 1. Call `filterNewProviders` to surface only genuinely-new providers
|
|
148
|
-
* (strips settled exclusions — INV-S03).
|
|
149
|
-
* 2. If `genuinelyNew.length > 0` → return `{ kind: 'running',
|
|
150
|
-
* clear_persisted_state: true }` (CP-NODE-3(a): resume always carries
|
|
151
|
-
* the explicit clear directive).
|
|
152
|
-
* 3. Else increment `pause_count` and call `checkLivelockGuard`.
|
|
153
|
-
* a. Livelock triggered → return `{ kind: 'terminal', reason:
|
|
154
|
-
* 'livelock', clear_persisted_state: true, ... }` (terminal
|
|
155
|
-
* promotion always carries the explicit clear directive).
|
|
156
|
-
* b. Below limit → return updated `waiting_for_provider` with bumped
|
|
157
|
-
* `pause_count` and `clear_persisted_state: false`; `paused_at` and
|
|
158
|
-
* `stranded_node_ids` are preserved.
|
|
159
|
-
*
|
|
160
|
-
* This function never mutates its inputs.
|
|
161
|
-
*/
|
|
162
|
-
export declare function advancePausedState(opts: AdvancePausedStateOptions): RollingEngineLifecycleState;
|
|
163
|
-
/**
|
|
164
|
-
* Classify a SYNCHRONOUS provider-construction attempt (CP-NODE-3(b)).
|
|
165
|
-
*
|
|
166
|
-
* Invokes `attemptConstruction` exactly once. A clean return means
|
|
167
|
-
* construction succeeded — returns `null`, and the caller proceeds with the
|
|
168
|
-
* ordinary `advancePausedState` pause/resume decision unchanged.
|
|
169
|
-
*
|
|
170
|
-
* A throw carrying CP-NODE-4's structured `ProviderLaunchOutcomeEnvelope`
|
|
171
|
-
* (`.launchOutcome.outcome === "construction_failed"`, e.g. from
|
|
172
|
-
* `ProviderConstructionError` — see `../providers/providerFactory.js`) is
|
|
173
|
-
* classified here as a TERMINAL configuration failure and returned directly,
|
|
174
|
-
* WITHOUT touching `pause_count` or re-discovery: this function takes no
|
|
175
|
-
* `current` paused state and never calls `filterNewProviders` /
|
|
176
|
-
* `checkLivelockGuard`, so a construction failure can never increment a
|
|
177
|
-
* pause count or re-enter re-discovery, whether or not a pause was already
|
|
178
|
-
* in progress. A permanently misconfigured provider (missing required
|
|
179
|
-
* config, unrecognized provider name) cannot be fixed by waiting or
|
|
180
|
-
* re-discovering — routing it through the ordinary retryable pause path
|
|
181
|
-
* would only busy-loop the same broken config forever.
|
|
182
|
-
*
|
|
183
|
-
* A throw that does NOT carry a construction-failure envelope (an
|
|
184
|
-
* unclassifiable error, or no `.launchOutcome` at all) propagates UNCHANGED
|
|
185
|
-
* — this function only special-cases a positively-identified construction
|
|
186
|
-
* failure; it never swallows an error it cannot classify.
|
|
187
|
-
*
|
|
188
|
-
* Still I/O-free: `attemptConstruction` is caller-injected (the actual
|
|
189
|
-
* provider-construction call lives in the providers layer), so this module
|
|
190
|
-
* gains no new runtime dependency — it only inspects the SHAPE of what
|
|
191
|
-
* `attemptConstruction` throws.
|
|
192
|
-
*
|
|
193
|
-
* @param attemptConstruction Zero-arg callback that performs (or simulates,
|
|
194
|
-
* in tests) a synchronous provider-construction attempt.
|
|
195
|
-
* @param strandedNodeIds Node IDs to carry onto the terminal state when
|
|
196
|
-
* classified as a construction failure.
|
|
197
|
-
* @returns The terminal configuration-failure state, or `null` when
|
|
198
|
-
* construction succeeded (not a construction failure).
|
|
199
|
-
*/
|
|
200
|
-
export declare function classifyProviderConstructionAttempt(attemptConstruction: () => void, strandedNodeIds: string[]): RollingEngineLifecycleState | null;
|
|
201
|
-
//# sourceMappingURL=pausedState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pausedState.d.ts","sourceRoot":"","sources":["../../../src/shared/rolling/pausedState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAQH;;;;;;;;GAQG;AACH,MAAM,MAAM,2BAA2B,GACnC;IACE,IAAI,EAAE,SAAS,CAAC;IAChB;;;;;OAKG;IACH,qBAAqB,EAAE,IAAI,CAAC;CAC7B,GACD;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;;;;;OAQG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC;CAC/B,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,UAAU,GAAG,mBAAmB,GAAG,UAAU,GAAG,eAAe,CAAC;IACxE,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,qBAAqB,EAAE,IAAI,CAAC;CAC7B,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAMtD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAMtC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,EAAE,mBAAmB,GAC3B,MAAM,EAAE,CAEV;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,MAA6B,GACnC,OAAO,CAET;AAMD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,gDAAgD;IAChD,OAAO,EAAE,OAAO,CAAC,2BAA2B,EAAE;QAAE,IAAI,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;IAChF,sEAAsE;IACtE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,2DAA2D;IAC3D,iBAAiB,EAAE,mBAAmB,CAAC;IACvC,2EAA2E;IAC3E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,yBAAyB,GAC9B,2BAA2B,CAoC7B;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,mCAAmC,CACjD,mBAAmB,EAAE,MAAM,IAAI,EAC/B,eAAe,EAAE,MAAM,EAAE,GACxB,2BAA2B,GAAG,IAAI,CAkBpC"}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rolling engine paused-state management (N-S09).
|
|
3
|
-
*
|
|
4
|
-
* Owns the `waiting_for_provider` resumable paused state that the rolling
|
|
5
|
-
* engine enters when every eligible dispatch pool empties mid-run.
|
|
6
|
-
*
|
|
7
|
-
* Invariants enforced here:
|
|
8
|
-
* INV-S03 — settled dispatch-pool exclusions are never re-offered on
|
|
9
|
-
* re-discovery. `filterNewProviders` strips them from every
|
|
10
|
-
* re-discovery pass; `SettledExclusionSet` is never mutated.
|
|
11
|
-
* CE-003/CE-205 — no indefinite stall. After `LIVELOCK_PAUSE_LIMIT`
|
|
12
|
-
* consecutive pauses with zero net new capacity the engine
|
|
13
|
-
* transitions to `terminal/livelock` and yields the stranded
|
|
14
|
-
* subtree to the consumer-provided terminal handler (N-CE301).
|
|
15
|
-
* CP-NODE-3(a) — every transition OUT of `waiting_for_provider` (resume to
|
|
16
|
-
* `running`, or promotion to `terminal`) carries an EXPLICIT
|
|
17
|
-
* `clear_persisted_state: true` directive, rather than leaving
|
|
18
|
-
* the caller to infer "must clear" from `kind` alone. The
|
|
19
|
-
* consumer that derives `dispatch_capacity` from the mere
|
|
20
|
-
* PRESENCE of a persisted paused_state
|
|
21
|
-
* (audit-orchestrator-core, `src/audit/orchestrator/state.ts`)
|
|
22
|
-
* has no actionable obligation to clear it on its own, so an
|
|
23
|
-
* un-cleared paused_state would report top-level status
|
|
24
|
-
* "blocked" forever once capacity actually returns. This
|
|
25
|
-
* module PRODUCES the directive only, as a returned value —
|
|
26
|
-
* never as a filesystem write; the consumer (CP-NODE-6, the
|
|
27
|
-
* active-dispatch-state writer) owns applying it.
|
|
28
|
-
* CP-NODE-3(b) — `classifyProviderConstructionAttempt` classifies a
|
|
29
|
-
* SYNCHRONOUS provider-construction throw (a permanently
|
|
30
|
-
* misconfigured provider — missing required config, unknown
|
|
31
|
-
* provider name) as a TERMINAL configuration failure, never a
|
|
32
|
-
* retryable pause: incrementing `pause_count` or re-entering
|
|
33
|
-
* re-discovery on a construction failure would only busy-loop
|
|
34
|
-
* the same broken config. It classifies via the structured,
|
|
35
|
-
* non-retryable `ProviderLaunchOutcomeEnvelope`
|
|
36
|
-
* (`outcome: "construction_failed"`) that provider construction
|
|
37
|
-
* now throws — see `../providers/providerFactory.js`.
|
|
38
|
-
*
|
|
39
|
-
* This module is purely logic — zero runtime dependencies beyond Node
|
|
40
|
-
* built-ins (the `ProviderLaunchOutcomeEnvelope` reference below is a
|
|
41
|
-
* type-only import, erased at compile time — it adds no runtime dependency
|
|
42
|
-
* on the providers layer). The consumer wires the terminal action after
|
|
43
|
-
* receiving `{ kind: 'terminal', reason: 'livelock' | 'configuration', ... }`.
|
|
44
|
-
*/
|
|
45
|
-
// ---------------------------------------------------------------------------
|
|
46
|
-
// Constants
|
|
47
|
-
// ---------------------------------------------------------------------------
|
|
48
|
-
/**
|
|
49
|
-
* Default number of consecutive `waiting_for_provider` pauses (with zero net
|
|
50
|
-
* new capacity) after which the engine transitions to `terminal/livelock`.
|
|
51
|
-
*/
|
|
52
|
-
export const LIVELOCK_PAUSE_LIMIT = 3;
|
|
53
|
-
// ---------------------------------------------------------------------------
|
|
54
|
-
// filterNewProviders
|
|
55
|
-
// ---------------------------------------------------------------------------
|
|
56
|
-
/**
|
|
57
|
-
* Pure function: return only providers not present in `settled`.
|
|
58
|
-
*
|
|
59
|
-
* Guarantees that re-discovery never re-offers a settled
|
|
60
|
-
* exclusion (INV-S03). The `settled` set is never mutated.
|
|
61
|
-
*
|
|
62
|
-
* @param discovered Provider identifiers returned by the latest re-discovery pass.
|
|
63
|
-
* @param settled The accumulated exclusion set; immutable.
|
|
64
|
-
* @returns Only those identifiers not already in `settled`.
|
|
65
|
-
*/
|
|
66
|
-
export function filterNewProviders(discovered, settled) {
|
|
67
|
-
return discovered.filter((id) => !settled.has(id));
|
|
68
|
-
}
|
|
69
|
-
// ---------------------------------------------------------------------------
|
|
70
|
-
// checkLivelockGuard
|
|
71
|
-
// ---------------------------------------------------------------------------
|
|
72
|
-
/**
|
|
73
|
-
* Pure predicate: returns `true` when the no-progress livelock condition is met.
|
|
74
|
-
*
|
|
75
|
-
* Livelock is triggered when:
|
|
76
|
-
* - `pauseCount >= limit` (at or beyond the configured threshold), AND
|
|
77
|
-
* - `netNewCapacity === 0` (no genuinely-new providers arrived this round).
|
|
78
|
-
*
|
|
79
|
-
* @param pauseCount Number of consecutive pauses recorded so far (inclusive of the current one).
|
|
80
|
-
* @param netNewCapacity Count of genuinely-new providers surfaced this round.
|
|
81
|
-
* @param limit Pause threshold; defaults to `LIVELOCK_PAUSE_LIMIT`.
|
|
82
|
-
*/
|
|
83
|
-
export function checkLivelockGuard(pauseCount, netNewCapacity, limit = LIVELOCK_PAUSE_LIMIT) {
|
|
84
|
-
return pauseCount >= limit && netNewCapacity === 0;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Single transition function for the `waiting_for_provider` paused state.
|
|
88
|
-
*
|
|
89
|
-
* Decision tree:
|
|
90
|
-
* 1. Call `filterNewProviders` to surface only genuinely-new providers
|
|
91
|
-
* (strips settled exclusions — INV-S03).
|
|
92
|
-
* 2. If `genuinelyNew.length > 0` → return `{ kind: 'running',
|
|
93
|
-
* clear_persisted_state: true }` (CP-NODE-3(a): resume always carries
|
|
94
|
-
* the explicit clear directive).
|
|
95
|
-
* 3. Else increment `pause_count` and call `checkLivelockGuard`.
|
|
96
|
-
* a. Livelock triggered → return `{ kind: 'terminal', reason:
|
|
97
|
-
* 'livelock', clear_persisted_state: true, ... }` (terminal
|
|
98
|
-
* promotion always carries the explicit clear directive).
|
|
99
|
-
* b. Below limit → return updated `waiting_for_provider` with bumped
|
|
100
|
-
* `pause_count` and `clear_persisted_state: false`; `paused_at` and
|
|
101
|
-
* `stranded_node_ids` are preserved.
|
|
102
|
-
*
|
|
103
|
-
* This function never mutates its inputs.
|
|
104
|
-
*/
|
|
105
|
-
export function advancePausedState(opts) {
|
|
106
|
-
const { current, rediscoveredProviders, settledExclusions, livelockLimit } = opts;
|
|
107
|
-
const genuinelyNew = filterNewProviders(rediscoveredProviders, settledExclusions);
|
|
108
|
-
// New capacity arrived — transition back to running. Resume always carries
|
|
109
|
-
// the explicit clear-persisted-state directive (CP-NODE-3(a)).
|
|
110
|
-
if (genuinelyNew.length > 0) {
|
|
111
|
-
return { kind: "running", clear_persisted_state: true };
|
|
112
|
-
}
|
|
113
|
-
// No new capacity — increment pause count and check for livelock.
|
|
114
|
-
const nextPauseCount = current.pause_count + 1;
|
|
115
|
-
const livelock = checkLivelockGuard(nextPauseCount, 0, livelockLimit);
|
|
116
|
-
if (livelock) {
|
|
117
|
-
// Terminal promotion always carries the explicit clear directive
|
|
118
|
-
// (CP-NODE-3(a)) — the run has left the resumable-pause cycle.
|
|
119
|
-
return {
|
|
120
|
-
kind: "terminal",
|
|
121
|
-
reason: "livelock",
|
|
122
|
-
stranded_node_ids: current.stranded_node_ids,
|
|
123
|
-
clear_persisted_state: true,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
// Still waiting — bump pause count, preserve everything else. A
|
|
127
|
-
// continued-pause transition never carries the clear directive
|
|
128
|
-
// (CP-NODE-3(a)): the persisted record must be KEPT, not cleared.
|
|
129
|
-
return {
|
|
130
|
-
kind: "waiting_for_provider",
|
|
131
|
-
paused_at: current.paused_at,
|
|
132
|
-
pause_count: nextPauseCount,
|
|
133
|
-
stranded_node_ids: current.stranded_node_ids,
|
|
134
|
-
clear_persisted_state: false,
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
// ---------------------------------------------------------------------------
|
|
138
|
-
// classifyProviderConstructionAttempt
|
|
139
|
-
// ---------------------------------------------------------------------------
|
|
140
|
-
/**
|
|
141
|
-
* Classify a SYNCHRONOUS provider-construction attempt (CP-NODE-3(b)).
|
|
142
|
-
*
|
|
143
|
-
* Invokes `attemptConstruction` exactly once. A clean return means
|
|
144
|
-
* construction succeeded — returns `null`, and the caller proceeds with the
|
|
145
|
-
* ordinary `advancePausedState` pause/resume decision unchanged.
|
|
146
|
-
*
|
|
147
|
-
* A throw carrying CP-NODE-4's structured `ProviderLaunchOutcomeEnvelope`
|
|
148
|
-
* (`.launchOutcome.outcome === "construction_failed"`, e.g. from
|
|
149
|
-
* `ProviderConstructionError` — see `../providers/providerFactory.js`) is
|
|
150
|
-
* classified here as a TERMINAL configuration failure and returned directly,
|
|
151
|
-
* WITHOUT touching `pause_count` or re-discovery: this function takes no
|
|
152
|
-
* `current` paused state and never calls `filterNewProviders` /
|
|
153
|
-
* `checkLivelockGuard`, so a construction failure can never increment a
|
|
154
|
-
* pause count or re-enter re-discovery, whether or not a pause was already
|
|
155
|
-
* in progress. A permanently misconfigured provider (missing required
|
|
156
|
-
* config, unrecognized provider name) cannot be fixed by waiting or
|
|
157
|
-
* re-discovering — routing it through the ordinary retryable pause path
|
|
158
|
-
* would only busy-loop the same broken config forever.
|
|
159
|
-
*
|
|
160
|
-
* A throw that does NOT carry a construction-failure envelope (an
|
|
161
|
-
* unclassifiable error, or no `.launchOutcome` at all) propagates UNCHANGED
|
|
162
|
-
* — this function only special-cases a positively-identified construction
|
|
163
|
-
* failure; it never swallows an error it cannot classify.
|
|
164
|
-
*
|
|
165
|
-
* Still I/O-free: `attemptConstruction` is caller-injected (the actual
|
|
166
|
-
* provider-construction call lives in the providers layer), so this module
|
|
167
|
-
* gains no new runtime dependency — it only inspects the SHAPE of what
|
|
168
|
-
* `attemptConstruction` throws.
|
|
169
|
-
*
|
|
170
|
-
* @param attemptConstruction Zero-arg callback that performs (or simulates,
|
|
171
|
-
* in tests) a synchronous provider-construction attempt.
|
|
172
|
-
* @param strandedNodeIds Node IDs to carry onto the terminal state when
|
|
173
|
-
* classified as a construction failure.
|
|
174
|
-
* @returns The terminal configuration-failure state, or `null` when
|
|
175
|
-
* construction succeeded (not a construction failure).
|
|
176
|
-
*/
|
|
177
|
-
export function classifyProviderConstructionAttempt(attemptConstruction, strandedNodeIds) {
|
|
178
|
-
try {
|
|
179
|
-
attemptConstruction();
|
|
180
|
-
return null;
|
|
181
|
-
}
|
|
182
|
-
catch (err) {
|
|
183
|
-
const envelope = err
|
|
184
|
-
?.launchOutcome;
|
|
185
|
-
if (envelope?.outcome !== "construction_failed") {
|
|
186
|
-
// Not a classifiable construction failure — do not swallow it.
|
|
187
|
-
throw err;
|
|
188
|
-
}
|
|
189
|
-
return {
|
|
190
|
-
kind: "terminal",
|
|
191
|
-
reason: "configuration",
|
|
192
|
-
stranded_node_ids: [...strandedNodeIds],
|
|
193
|
-
clear_persisted_state: true,
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
//# sourceMappingURL=pausedState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pausedState.js","sourceRoot":"","sources":["../../../src/shared/rolling/pausedState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAoEH,8EAA8E;AAC9E,YAAY;AACZ,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAEtC,8EAA8E;AAC9E,qBAAqB;AACrB,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAChC,UAAoB,EACpB,OAA4B;IAE5B,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,8EAA8E;AAC9E,qBAAqB;AACrB,8EAA8E;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,UAAU,kBAAkB,CAChC,UAAkB,EAClB,cAAsB,EACtB,QAAgB,oBAAoB;IAEpC,OAAO,UAAU,IAAI,KAAK,IAAI,cAAc,KAAK,CAAC,CAAC;AACrD,CAAC;AAoBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,kBAAkB,CAChC,IAA+B;IAE/B,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAElF,MAAM,YAAY,GAAG,kBAAkB,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;IAElF,2EAA2E;IAC3E,+DAA+D;IAC/D,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IAED,kEAAkE;IAClE,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,GAAG,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC;IAEtE,IAAI,QAAQ,EAAE,CAAC;QACb,iEAAiE;QACjE,+DAA+D;QAC/D,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,UAAU;YAClB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,qBAAqB,EAAE,IAAI;SAC5B,CAAC;IACJ,CAAC;IAED,gEAAgE;IAChE,+DAA+D;IAC/D,kEAAkE;IAClE,OAAO;QACL,IAAI,EAAE,sBAAsB;QAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,WAAW,EAAE,cAAc;QAC3B,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;QAC5C,qBAAqB,EAAE,KAAK;KAC7B,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,sCAAsC;AACtC,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,UAAU,mCAAmC,CACjD,mBAA+B,EAC/B,eAAyB;IAEzB,IAAI,CAAC;QACH,mBAAmB,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,QAAQ,GAAI,GAA4E;YAC5F,EAAE,aAAa,CAAC;QAClB,IAAI,QAAQ,EAAE,OAAO,KAAK,qBAAqB,EAAE,CAAC;YAChD,+DAA+D;YAC/D,MAAM,GAAG,CAAC;QACZ,CAAC;QACD,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,eAAe;YACvB,iBAAiB,EAAE,CAAC,GAAG,eAAe,CAAC;YACvC,qBAAqB,EAAE,IAAI;SAC5B,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type Lens } from "./lens.js";
|
|
3
|
-
import { type ResolvedProviderName } from "./sessionConfig.js";
|
|
4
|
-
export type OpaqueModelId = string & {
|
|
5
|
-
readonly __opaqueModelId: unique symbol;
|
|
6
|
-
};
|
|
7
|
-
/** Brand a provider-owned model id without interpreting its contents. */
|
|
8
|
-
export declare function asOpaqueModelId(value: string): OpaqueModelId;
|
|
9
|
-
export declare const AttributionTripleSchema: z.ZodObject<{
|
|
10
|
-
provider: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodType<ResolvedProviderName, z.ZodTypeDef, ResolvedProviderName>]>>, "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy", "unknown" | ResolvedProviderName | undefined>;
|
|
11
|
-
model: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEffects<z.ZodString, OpaqueModelId, string>]>>, "unknown" | OpaqueModelId, string | undefined>;
|
|
12
|
-
rank: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEnum<["small", "standard", "deep"]>]>>, "unknown" | "small" | "standard" | "deep", "unknown" | "small" | "standard" | "deep" | undefined>;
|
|
13
|
-
}, "strict", z.ZodTypeAny, {
|
|
14
|
-
model: "unknown" | OpaqueModelId;
|
|
15
|
-
provider: "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy";
|
|
16
|
-
rank: "unknown" | "small" | "standard" | "deep";
|
|
17
|
-
}, {
|
|
18
|
-
model?: string | undefined;
|
|
19
|
-
provider?: "unknown" | ResolvedProviderName | undefined;
|
|
20
|
-
rank?: "unknown" | "small" | "standard" | "deep" | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
export type AttributionTriple = z.infer<typeof AttributionTripleSchema>;
|
|
23
|
-
type AttributionProvider = AttributionTriple["provider"];
|
|
24
|
-
type AttributionModel = AttributionTriple["model"];
|
|
25
|
-
type AttributionLens = Lens | "unknown";
|
|
26
|
-
export declare const DRAWS: readonly ["audit", "remediate"];
|
|
27
|
-
export type Draw = (typeof DRAWS)[number];
|
|
28
|
-
export declare const VERDICT_STAGES: readonly ["dedup_or_review", "plan_review_gate", "terminal_outcome", "ingest_refused"];
|
|
29
|
-
export type VerdictStage = (typeof VERDICT_STAGES)[number];
|
|
30
|
-
export declare const VERDICT_DETAILS: {
|
|
31
|
-
readonly dedup_or_review: readonly ["dedup_survived", "dedup_absorbed", "review_confirmed", "review_refuted"];
|
|
32
|
-
readonly plan_review_gate: readonly ["approved", "declined"];
|
|
33
|
-
readonly terminal_outcome: ["resolved", "verified_no_change", "inappropriate", "ignored", "blocked"];
|
|
34
|
-
readonly ingest_refused: readonly ["schema_invalid", "coverage_mismatch", "affirmation_missing"];
|
|
35
|
-
};
|
|
36
|
-
type VerdictDetailByStage = {
|
|
37
|
-
[Stage in VerdictStage]: (typeof VERDICT_DETAILS)[Stage][number];
|
|
38
|
-
};
|
|
39
|
-
export type VerdictDetail = VerdictDetailByStage[VerdictStage];
|
|
40
|
-
export declare const STAGE_OWNERSHIP: {
|
|
41
|
-
readonly dedup_or_review: ReadonlySet<"audit" | "remediate">;
|
|
42
|
-
readonly plan_review_gate: ReadonlySet<"audit" | "remediate">;
|
|
43
|
-
readonly terminal_outcome: ReadonlySet<"audit" | "remediate">;
|
|
44
|
-
readonly ingest_refused: ReadonlySet<"audit" | "remediate">;
|
|
45
|
-
};
|
|
46
|
-
export declare const AttributionProvenanceSchema: z.ZodEnum<["stamped", "legacy_unstamped"]>;
|
|
47
|
-
export type AttributionProvenance = z.infer<typeof AttributionProvenanceSchema>;
|
|
48
|
-
export type RowKind = "attempt" | "verdict";
|
|
49
|
-
declare const DispatchAttemptOutcomeSchema: z.ZodEnum<["completed", "ingest_refused", "stranded", "provider_unavailable"]>;
|
|
50
|
-
export type DispatchAttemptOutcome = z.infer<typeof DispatchAttemptOutcomeSchema>;
|
|
51
|
-
export declare const DispatchAttemptRowSchema: z.ZodObject<{
|
|
52
|
-
lens: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEnum<["correctness", "architecture", "maintainability", "security", "reliability", "performance", "data_integrity", "tests", "operability", "config_deployment", "observability"]>]>>, "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability", "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability" | undefined>;
|
|
53
|
-
draw: z.ZodEnum<["audit", "remediate"]>;
|
|
54
|
-
outcome: z.ZodEnum<["completed", "ingest_refused", "stranded", "provider_unavailable"]>;
|
|
55
|
-
findings_produced: z.ZodNumber;
|
|
56
|
-
provider: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodType<ResolvedProviderName, z.ZodTypeDef, ResolvedProviderName>]>>, "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy", "unknown" | ResolvedProviderName | undefined>;
|
|
57
|
-
model: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEffects<z.ZodString, OpaqueModelId, string>]>>, "unknown" | OpaqueModelId, string | undefined>;
|
|
58
|
-
rank: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEnum<["small", "standard", "deep"]>]>>, "unknown" | "small" | "standard" | "deep", "unknown" | "small" | "standard" | "deep" | undefined>;
|
|
59
|
-
row_kind: z.ZodLiteral<"attempt">;
|
|
60
|
-
/**
|
|
61
|
-
* Produced by `buildAttemptKey` (`audit-tools/shared`, single-sourced beside the
|
|
62
|
-
* other key derivations) over {packet task ids, bound pool id, emit-source
|
|
63
|
-
* discriminator}. Deterministic and replay-stable: nothing minted, nothing
|
|
64
|
-
* positional.
|
|
65
|
-
*
|
|
66
|
-
* ⚠ The originating contract specified this as hashing "the admission identity
|
|
67
|
-
* the admission-control seam already mints". No such identity exists — verified
|
|
68
|
-
* against source 2026-08-09 — and the nearest candidates all fail: `lease_id` is
|
|
69
|
-
* null on the unmetered default lane, `packet_id` is a position ordinal that
|
|
70
|
-
* renumbers on re-partition, and `newInstanceId` is random. `buildAttemptKey`'s
|
|
71
|
-
* docblock carries the full reasoning.
|
|
72
|
-
*
|
|
73
|
-
* ROW-SET INVARIANT: rows are expected to be UNIQUE per attempt_key. Two
|
|
74
|
-
* concurrent admissions of one packet to one pool under one emit-source are one
|
|
75
|
-
* logical attempt by design, so the producer dedupes on write rather than every
|
|
76
|
-
* consumer deduping on read — `deriveAggregates` is a pure fold and counts rows.
|
|
77
|
-
* No producer exists yet; whatever emits these rows must honour this.
|
|
78
|
-
*/
|
|
79
|
-
attempt_key: z.ZodString;
|
|
80
|
-
}, "strict", z.ZodTypeAny, {
|
|
81
|
-
lens: "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability";
|
|
82
|
-
outcome: "completed" | "ingest_refused" | "stranded" | "provider_unavailable";
|
|
83
|
-
model: "unknown" | OpaqueModelId;
|
|
84
|
-
provider: "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy";
|
|
85
|
-
rank: "unknown" | "small" | "standard" | "deep";
|
|
86
|
-
row_kind: "attempt";
|
|
87
|
-
attempt_key: string;
|
|
88
|
-
draw: "audit" | "remediate";
|
|
89
|
-
findings_produced: number;
|
|
90
|
-
}, {
|
|
91
|
-
outcome: "completed" | "ingest_refused" | "stranded" | "provider_unavailable";
|
|
92
|
-
row_kind: "attempt";
|
|
93
|
-
attempt_key: string;
|
|
94
|
-
draw: "audit" | "remediate";
|
|
95
|
-
findings_produced: number;
|
|
96
|
-
lens?: "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability" | undefined;
|
|
97
|
-
model?: string | undefined;
|
|
98
|
-
provider?: "unknown" | ResolvedProviderName | undefined;
|
|
99
|
-
rank?: "unknown" | "small" | "standard" | "deep" | undefined;
|
|
100
|
-
}>;
|
|
101
|
-
export type DispatchAttemptRow = z.infer<typeof DispatchAttemptRowSchema>;
|
|
102
|
-
export declare const FindingVerdictRowSchema: z.ZodEffects<z.ZodObject<{
|
|
103
|
-
attribution_provenance: z.ZodEnum<["stamped", "legacy_unstamped"]>;
|
|
104
|
-
provider: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodType<ResolvedProviderName, z.ZodTypeDef, ResolvedProviderName>]>>, "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy", "unknown" | ResolvedProviderName | undefined>;
|
|
105
|
-
model: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEffects<z.ZodString, OpaqueModelId, string>]>>, "unknown" | OpaqueModelId, string | undefined>;
|
|
106
|
-
rank: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEnum<["small", "standard", "deep"]>]>>, "unknown" | "small" | "standard" | "deep", "unknown" | "small" | "standard" | "deep" | undefined>;
|
|
107
|
-
row_kind: z.ZodLiteral<"verdict">;
|
|
108
|
-
item_id: z.ZodString;
|
|
109
|
-
stage: z.ZodEnum<["dedup_or_review", "plan_review_gate", "terminal_outcome", "ingest_refused"]>;
|
|
110
|
-
detail: z.ZodUnion<[z.ZodEnum<["dedup_survived", "dedup_absorbed", "review_confirmed", "review_refuted"]>, z.ZodEnum<["approved", "declined"]>, z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked"]>, z.ZodEnum<["schema_invalid", "coverage_mismatch", "affirmation_missing"]>]>;
|
|
111
|
-
draw: z.ZodEnum<["audit", "remediate"]>;
|
|
112
|
-
lens: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"unknown">, z.ZodEnum<["correctness", "architecture", "maintainability", "security", "reliability", "performance", "data_integrity", "tests", "operability", "config_deployment", "observability"]>]>>, "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability", "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability" | undefined>;
|
|
113
|
-
attempt_ref: z.ZodString;
|
|
114
|
-
}, "strict", z.ZodTypeAny, {
|
|
115
|
-
lens: "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability";
|
|
116
|
-
model: "unknown" | OpaqueModelId;
|
|
117
|
-
provider: "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy";
|
|
118
|
-
rank: "unknown" | "small" | "standard" | "deep";
|
|
119
|
-
row_kind: "verdict";
|
|
120
|
-
draw: "audit" | "remediate";
|
|
121
|
-
item_id: string;
|
|
122
|
-
stage: "dedup_or_review" | "plan_review_gate" | "terminal_outcome" | "ingest_refused";
|
|
123
|
-
detail: "blocked" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "declined" | "dedup_survived" | "dedup_absorbed" | "review_confirmed" | "review_refuted" | "approved" | "schema_invalid" | "coverage_mismatch" | "affirmation_missing";
|
|
124
|
-
attempt_ref: string;
|
|
125
|
-
attribution_provenance: "stamped" | "legacy_unstamped";
|
|
126
|
-
}, {
|
|
127
|
-
row_kind: "verdict";
|
|
128
|
-
draw: "audit" | "remediate";
|
|
129
|
-
item_id: string;
|
|
130
|
-
stage: "dedup_or_review" | "plan_review_gate" | "terminal_outcome" | "ingest_refused";
|
|
131
|
-
detail: "blocked" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "declined" | "dedup_survived" | "dedup_absorbed" | "review_confirmed" | "review_refuted" | "approved" | "schema_invalid" | "coverage_mismatch" | "affirmation_missing";
|
|
132
|
-
attempt_ref: string;
|
|
133
|
-
attribution_provenance: "stamped" | "legacy_unstamped";
|
|
134
|
-
lens?: "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability" | undefined;
|
|
135
|
-
model?: string | undefined;
|
|
136
|
-
provider?: "unknown" | ResolvedProviderName | undefined;
|
|
137
|
-
rank?: "unknown" | "small" | "standard" | "deep" | undefined;
|
|
138
|
-
}>, {
|
|
139
|
-
lens: "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability";
|
|
140
|
-
model: "unknown" | OpaqueModelId;
|
|
141
|
-
provider: "unknown" | "worker-command" | "subprocess-template" | "claude-code" | "claude-worker" | "codex" | "opencode" | "openai-compatible" | "vscode-task" | "antigravity" | "agy";
|
|
142
|
-
rank: "unknown" | "small" | "standard" | "deep";
|
|
143
|
-
row_kind: "verdict";
|
|
144
|
-
draw: "audit" | "remediate";
|
|
145
|
-
item_id: string;
|
|
146
|
-
stage: "dedup_or_review" | "plan_review_gate" | "terminal_outcome" | "ingest_refused";
|
|
147
|
-
detail: "blocked" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "declined" | "dedup_survived" | "dedup_absorbed" | "review_confirmed" | "review_refuted" | "approved" | "schema_invalid" | "coverage_mismatch" | "affirmation_missing";
|
|
148
|
-
attempt_ref: string;
|
|
149
|
-
attribution_provenance: "stamped" | "legacy_unstamped";
|
|
150
|
-
}, {
|
|
151
|
-
row_kind: "verdict";
|
|
152
|
-
draw: "audit" | "remediate";
|
|
153
|
-
item_id: string;
|
|
154
|
-
stage: "dedup_or_review" | "plan_review_gate" | "terminal_outcome" | "ingest_refused";
|
|
155
|
-
detail: "blocked" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "declined" | "dedup_survived" | "dedup_absorbed" | "review_confirmed" | "review_refuted" | "approved" | "schema_invalid" | "coverage_mismatch" | "affirmation_missing";
|
|
156
|
-
attempt_ref: string;
|
|
157
|
-
attribution_provenance: "stamped" | "legacy_unstamped";
|
|
158
|
-
lens?: "unknown" | "correctness" | "architecture" | "maintainability" | "security" | "reliability" | "performance" | "data_integrity" | "tests" | "operability" | "config_deployment" | "observability" | undefined;
|
|
159
|
-
model?: string | undefined;
|
|
160
|
-
provider?: "unknown" | ResolvedProviderName | undefined;
|
|
161
|
-
rank?: "unknown" | "small" | "standard" | "deep" | undefined;
|
|
162
|
-
}>;
|
|
163
|
-
export type FindingVerdictRow = z.infer<typeof FindingVerdictRowSchema>;
|
|
164
|
-
export declare function isLegalDetail(stage: string, draw: string, detail: string): detail is VerdictDetail;
|
|
165
|
-
export type DetailClassification = "accepted" | "rejected" | "excluded";
|
|
166
|
-
/** Classify a legal stage/detail pair for its within-stage acceptance rate. */
|
|
167
|
-
export declare function classifyDetail(stage: VerdictStage, detail: VerdictDetail): DetailClassification;
|
|
168
|
-
/** Attempt-level reach population. */
|
|
169
|
-
export interface ReachPopulation {
|
|
170
|
-
readonly population: "attempt";
|
|
171
|
-
readonly attempts_admitted: number;
|
|
172
|
-
readonly attempts_by_outcome: Readonly<Partial<Record<DispatchAttemptOutcome, number>>>;
|
|
173
|
-
readonly findings_produced: number;
|
|
174
|
-
}
|
|
175
|
-
/** One stage's verdict population and acceptance partition. */
|
|
176
|
-
export interface VerdictStagePopulation {
|
|
177
|
-
readonly details: Readonly<Partial<Record<VerdictDetail, number>>>;
|
|
178
|
-
readonly accepted: number;
|
|
179
|
-
readonly rejected: number;
|
|
180
|
-
readonly excluded: number;
|
|
181
|
-
readonly acceptance_rate: number | null;
|
|
182
|
-
}
|
|
183
|
-
/** Verdict-level population, deliberately distinct from ReachPopulation. */
|
|
184
|
-
export interface VerdictPopulation {
|
|
185
|
-
readonly population: "verdict";
|
|
186
|
-
readonly stages: Readonly<Partial<Record<VerdictStage, VerdictStagePopulation>>>;
|
|
187
|
-
}
|
|
188
|
-
type ProviderModelLensIndex<Population> = Partial<Record<AttributionProvider, Partial<Record<AttributionModel, Partial<Record<AttributionLens, Population>>>>>>;
|
|
189
|
-
export type ReachAggregate = ProviderModelLensIndex<ReachPopulation>;
|
|
190
|
-
export type VerdictAggregate = ProviderModelLensIndex<VerdictPopulation>;
|
|
191
|
-
export interface DispatchEffectivenessAggregates {
|
|
192
|
-
readonly reach: ReachAggregate;
|
|
193
|
-
readonly verdicts: VerdictAggregate;
|
|
194
|
-
}
|
|
195
|
-
/** Derive provider/model/lens reach and verdict populations from stable rows. */
|
|
196
|
-
export declare function deriveAggregates(rows: readonly (DispatchAttemptRow | FindingVerdictRow)[]): DispatchEffectivenessAggregates;
|
|
197
|
-
export {};
|
|
198
|
-
//# sourceMappingURL=attributionContract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attributionContract.d.ts","sourceRoot":"","sources":["../../../src/shared/types/attributionContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAKlD,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAM5B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG;IACnC,QAAQ,CAAC,eAAe,EAAE,OAAO,MAAM,CAAC;CACzC,CAAC;AAEF,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAE5D;AAkCD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAMzB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,KAAK,mBAAmB,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;AACzD,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACnD,KAAK,eAAe,GAAG,IAAI,GAAG,SAAS,CAAC;AAExC,eAAO,MAAM,KAAK,iCAAkC,CAAC;AACrD,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C,eAAO,MAAM,cAAc,wFAKjB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,eAAO,MAAM,eAAe;;;;;CAclB,CAAC;AAEX,KAAK,oBAAoB,GAAG;KACzB,KAAK,IAAI,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC;CACjE,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAM/D,eAAO,MAAM,eAAe;;;;;CAKgC,CAAC;AAE7D,eAAO,MAAM,2BAA2B,4CAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAe5C,QAAA,MAAM,4BAA4B,gFAKhC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;IAGjC;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;EAQI,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBhC,CAAC;AACL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AASxE,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,MAAM,IAAI,aAAa,CAQzB;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AA6DxE,+EAA+E;AAC/E,wBAAgB,cAAc,CAC5B,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,aAAa,GACpB,oBAAoB,CAsBtB;AAED,sCAAsC;AACtC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,mBAAmB,EAAE,QAAQ,CACpC,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAChD,CAAC;IACF,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAED,+DAA+D;AAC/D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAED,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CACvB,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,sBAAsB,CAAC,CAAC,CACtD,CAAC;CACH;AAED,KAAK,sBAAsB,CAAC,UAAU,IAAI,OAAO,CAC/C,MAAM,CACJ,mBAAmB,EACnB,OAAO,CACL,MAAM,CACJ,gBAAgB,EAChB,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAC7C,CACF,CACF,CACF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAC,eAAe,CAAC,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;AAEzE,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;CACrC;AAuLD,iFAAiF;AACjF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,kBAAkB,GAAG,iBAAiB,CAAC,EAAE,GACxD,+BAA+B,CAqBjC"}
|