audit-tools 0.28.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.audit.md +223 -0
- package/README.md +42 -0
- package/README.remediate.md +113 -0
- package/audit-code-wrapper-build.mjs +185 -0
- package/audit-code-wrapper-install-hosts.mjs +1079 -0
- package/audit-code-wrapper-install-renderers.mjs +58 -0
- package/audit-code-wrapper-io.mjs +155 -0
- package/audit-code-wrapper-legacy.mjs +125 -0
- package/audit-code-wrapper-lib.mjs +314 -0
- package/audit-code-wrapper-opencode.mjs +241 -0
- package/audit-code.mjs +12 -0
- package/dispatch/lens-definitions.json +46 -0
- package/dispatch/merge-results.mjs +110 -0
- package/dispatch/validate-result.mjs +59 -0
- package/dispatch/validate.mjs +16 -0
- package/dist/audit/adapters/coverageSummary.d.ts +9 -0
- package/dist/audit/adapters/coverageSummary.d.ts.map +1 -0
- package/dist/audit/adapters/coverageSummary.js +18 -0
- package/dist/audit/adapters/coverageSummary.js.map +1 -0
- package/dist/audit/adapters/eslint.d.ts +14 -0
- package/dist/audit/adapters/eslint.d.ts.map +1 -0
- package/dist/audit/adapters/eslint.js +28 -0
- package/dist/audit/adapters/eslint.js.map +1 -0
- package/dist/audit/adapters/normalizeExternal.d.ts +13 -0
- package/dist/audit/adapters/normalizeExternal.d.ts.map +1 -0
- package/dist/audit/adapters/normalizeExternal.js +44 -0
- package/dist/audit/adapters/normalizeExternal.js.map +1 -0
- package/dist/audit/adapters/npmAudit.d.ts +16 -0
- package/dist/audit/adapters/npmAudit.d.ts.map +1 -0
- package/dist/audit/adapters/npmAudit.js +24 -0
- package/dist/audit/adapters/npmAudit.js.map +1 -0
- package/dist/audit/adapters/semgrep.d.ts +23 -0
- package/dist/audit/adapters/semgrep.d.ts.map +1 -0
- package/dist/audit/adapters/semgrep.js +40 -0
- package/dist/audit/adapters/semgrep.js.map +1 -0
- package/dist/audit/cli/advanceAuditCommand.d.ts +2 -0
- package/dist/audit/cli/advanceAuditCommand.d.ts.map +1 -0
- package/dist/audit/cli/advanceAuditCommand.js +95 -0
- package/dist/audit/cli/advanceAuditCommand.js.map +1 -0
- package/dist/audit/cli/args.d.ts +95 -0
- package/dist/audit/cli/args.d.ts.map +1 -0
- package/dist/audit/cli/args.js +274 -0
- package/dist/audit/cli/args.js.map +1 -0
- package/dist/audit/cli/auditStep.d.ts +34 -0
- package/dist/audit/cli/auditStep.d.ts.map +1 -0
- package/dist/audit/cli/auditStep.js +162 -0
- package/dist/audit/cli/auditStep.js.map +1 -0
- package/dist/audit/cli/cleanup.d.ts +12 -0
- package/dist/audit/cli/cleanup.d.ts.map +1 -0
- package/dist/audit/cli/cleanup.js +44 -0
- package/dist/audit/cli/cleanup.js.map +1 -0
- package/dist/audit/cli/cleanupCommand.d.ts +2 -0
- package/dist/audit/cli/cleanupCommand.d.ts.map +1 -0
- package/dist/audit/cli/cleanupCommand.js +25 -0
- package/dist/audit/cli/cleanupCommand.js.map +1 -0
- package/dist/audit/cli/conceptualDispatch.d.ts +74 -0
- package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -0
- package/dist/audit/cli/conceptualDispatch.js +118 -0
- package/dist/audit/cli/conceptualDispatch.js.map +1 -0
- package/dist/audit/cli/confirmIntentStep.d.ts +25 -0
- package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -0
- package/dist/audit/cli/confirmIntentStep.js +210 -0
- package/dist/audit/cli/confirmIntentStep.js.map +1 -0
- package/dist/audit/cli/dispatch/packetFilter.d.ts +102 -0
- package/dist/audit/cli/dispatch/packetFilter.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/packetFilter.js +148 -0
- package/dist/audit/cli/dispatch/packetFilter.js.map +1 -0
- package/dist/audit/cli/dispatch/packetPrompt.d.ts +48 -0
- package/dist/audit/cli/dispatch/packetPrompt.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/packetPrompt.js +258 -0
- package/dist/audit/cli/dispatch/packetPrompt.js.map +1 -0
- package/dist/audit/cli/dispatch/paths.d.ts +7 -0
- package/dist/audit/cli/dispatch/paths.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/paths.js +38 -0
- package/dist/audit/cli/dispatch/paths.js.map +1 -0
- package/dist/audit/cli/dispatch/quotaPool.d.ts +75 -0
- package/dist/audit/cli/dispatch/quotaPool.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/quotaPool.js +163 -0
- package/dist/audit/cli/dispatch/quotaPool.js.map +1 -0
- package/dist/audit/cli/dispatch/tierRouting.d.ts +36 -0
- package/dist/audit/cli/dispatch/tierRouting.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/tierRouting.js +121 -0
- package/dist/audit/cli/dispatch/tierRouting.js.map +1 -0
- package/dist/audit/cli/dispatch/types.d.ts +90 -0
- package/dist/audit/cli/dispatch/types.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/types.js +15 -0
- package/dist/audit/cli/dispatch/types.js.map +1 -0
- package/dist/audit/cli/dispatch.d.ts +29 -0
- package/dist/audit/cli/dispatch.d.ts.map +1 -0
- package/dist/audit/cli/dispatch.js +303 -0
- package/dist/audit/cli/dispatch.js.map +1 -0
- package/dist/audit/cli/dispatchStatusCommand.d.ts +2 -0
- package/dist/audit/cli/dispatchStatusCommand.d.ts.map +1 -0
- package/dist/audit/cli/dispatchStatusCommand.js +81 -0
- package/dist/audit/cli/dispatchStatusCommand.js.map +1 -0
- package/dist/audit/cli/envelope.d.ts +50 -0
- package/dist/audit/cli/envelope.d.ts.map +1 -0
- package/dist/audit/cli/envelope.js +69 -0
- package/dist/audit/cli/envelope.js.map +1 -0
- package/dist/audit/cli/explainTaskCommand.d.ts +2 -0
- package/dist/audit/cli/explainTaskCommand.d.ts.map +1 -0
- package/dist/audit/cli/explainTaskCommand.js +34 -0
- package/dist/audit/cli/explainTaskCommand.js.map +1 -0
- package/dist/audit/cli/importExternalAnalyzerCommand.d.ts +2 -0
- package/dist/audit/cli/importExternalAnalyzerCommand.d.ts.map +1 -0
- package/dist/audit/cli/importExternalAnalyzerCommand.js +25 -0
- package/dist/audit/cli/importExternalAnalyzerCommand.js.map +1 -0
- package/dist/audit/cli/ingestResultsCommand.d.ts +2 -0
- package/dist/audit/cli/ingestResultsCommand.d.ts.map +1 -0
- package/dist/audit/cli/ingestResultsCommand.js +42 -0
- package/dist/audit/cli/ingestResultsCommand.js.map +1 -0
- package/dist/audit/cli/intakeCommand.d.ts +2 -0
- package/dist/audit/cli/intakeCommand.d.ts.map +1 -0
- package/dist/audit/cli/intakeCommand.js +18 -0
- package/dist/audit/cli/intakeCommand.js.map +1 -0
- package/dist/audit/cli/lineIndex.d.ts +5 -0
- package/dist/audit/cli/lineIndex.d.ts.map +1 -0
- package/dist/audit/cli/lineIndex.js +70 -0
- package/dist/audit/cli/lineIndex.js.map +1 -0
- package/dist/audit/cli/mergeAndIngestCommand.d.ts +46 -0
- package/dist/audit/cli/mergeAndIngestCommand.d.ts.map +1 -0
- package/dist/audit/cli/mergeAndIngestCommand.js +541 -0
- package/dist/audit/cli/mergeAndIngestCommand.js.map +1 -0
- package/dist/audit/cli/nextStepCommand.d.ts +22 -0
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -0
- package/dist/audit/cli/nextStepCommand.js +531 -0
- package/dist/audit/cli/nextStepCommand.js.map +1 -0
- package/dist/audit/cli/nextStepHelpers.d.ts +303 -0
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -0
- package/dist/audit/cli/nextStepHelpers.js +861 -0
- package/dist/audit/cli/nextStepHelpers.js.map +1 -0
- package/dist/audit/cli/paths.d.ts +2 -0
- package/dist/audit/cli/paths.d.ts.map +1 -0
- package/dist/audit/cli/paths.js +10 -0
- package/dist/audit/cli/paths.js.map +1 -0
- package/dist/audit/cli/planCommand.d.ts +2 -0
- package/dist/audit/cli/planCommand.d.ts.map +1 -0
- package/dist/audit/cli/planCommand.js +17 -0
- package/dist/audit/cli/planCommand.js.map +1 -0
- package/dist/audit/cli/prepareDispatchCommand.d.ts +2 -0
- package/dist/audit/cli/prepareDispatchCommand.d.ts.map +1 -0
- package/dist/audit/cli/prepareDispatchCommand.js +37 -0
- package/dist/audit/cli/prepareDispatchCommand.js.map +1 -0
- package/dist/audit/cli/prompts.d.ts +54 -0
- package/dist/audit/cli/prompts.d.ts.map +1 -0
- package/dist/audit/cli/prompts.js +324 -0
- package/dist/audit/cli/prompts.js.map +1 -0
- package/dist/audit/cli/quotaCommand.d.ts +2 -0
- package/dist/audit/cli/quotaCommand.d.ts.map +1 -0
- package/dist/audit/cli/quotaCommand.js +64 -0
- package/dist/audit/cli/quotaCommand.js.map +1 -0
- package/dist/audit/cli/requeueCommand.d.ts +2 -0
- package/dist/audit/cli/requeueCommand.d.ts.map +1 -0
- package/dist/audit/cli/requeueCommand.js +11 -0
- package/dist/audit/cli/requeueCommand.js.map +1 -0
- package/dist/audit/cli/resynthesizeCommand.d.ts +2 -0
- package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -0
- package/dist/audit/cli/resynthesizeCommand.js +57 -0
- package/dist/audit/cli/resynthesizeCommand.js.map +1 -0
- package/dist/audit/cli/reviewRun.d.ts +57 -0
- package/dist/audit/cli/reviewRun.d.ts.map +1 -0
- package/dist/audit/cli/reviewRun.js +180 -0
- package/dist/audit/cli/reviewRun.js.map +1 -0
- package/dist/audit/cli/rollingAuditDispatch.d.ts +119 -0
- package/dist/audit/cli/rollingAuditDispatch.d.ts.map +1 -0
- package/dist/audit/cli/rollingAuditDispatch.js +264 -0
- package/dist/audit/cli/rollingAuditDispatch.js.map +1 -0
- package/dist/audit/cli/sampleRunCommand.d.ts +2 -0
- package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -0
- package/dist/audit/cli/sampleRunCommand.js +106 -0
- package/dist/audit/cli/sampleRunCommand.js.map +1 -0
- package/dist/audit/cli/semanticReviewStep.d.ts +23 -0
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -0
- package/dist/audit/cli/semanticReviewStep.js +123 -0
- package/dist/audit/cli/semanticReviewStep.js.map +1 -0
- package/dist/audit/cli/statusCommand.d.ts +2 -0
- package/dist/audit/cli/statusCommand.d.ts.map +1 -0
- package/dist/audit/cli/statusCommand.js +133 -0
- package/dist/audit/cli/statusCommand.js.map +1 -0
- package/dist/audit/cli/steps.d.ts +204 -0
- package/dist/audit/cli/steps.d.ts.map +1 -0
- package/dist/audit/cli/steps.js +105 -0
- package/dist/audit/cli/steps.js.map +1 -0
- package/dist/audit/cli/submitPacketCommand.d.ts +2 -0
- package/dist/audit/cli/submitPacketCommand.d.ts.map +1 -0
- package/dist/audit/cli/submitPacketCommand.js +126 -0
- package/dist/audit/cli/submitPacketCommand.js.map +1 -0
- package/dist/audit/cli/synthesizeCommand.d.ts +2 -0
- package/dist/audit/cli/synthesizeCommand.d.ts.map +1 -0
- package/dist/audit/cli/synthesizeCommand.js +16 -0
- package/dist/audit/cli/synthesizeCommand.js.map +1 -0
- package/dist/audit/cli/updateRuntimeValidationCommand.d.ts +2 -0
- package/dist/audit/cli/updateRuntimeValidationCommand.d.ts.map +1 -0
- package/dist/audit/cli/updateRuntimeValidationCommand.js +17 -0
- package/dist/audit/cli/updateRuntimeValidationCommand.js.map +1 -0
- package/dist/audit/cli/validateCommand.d.ts +2 -0
- package/dist/audit/cli/validateCommand.d.ts.map +1 -0
- package/dist/audit/cli/validateCommand.js +42 -0
- package/dist/audit/cli/validateCommand.js.map +1 -0
- package/dist/audit/cli/validateResultCommand.d.ts +2 -0
- package/dist/audit/cli/validateResultCommand.d.ts.map +1 -0
- package/dist/audit/cli/validateResultCommand.js +92 -0
- package/dist/audit/cli/validateResultCommand.js.map +1 -0
- package/dist/audit/cli/validateResultsCommand.d.ts +2 -0
- package/dist/audit/cli/validateResultsCommand.d.ts.map +1 -0
- package/dist/audit/cli/validateResultsCommand.js +32 -0
- package/dist/audit/cli/validateResultsCommand.js.map +1 -0
- package/dist/audit/cli/waveManifest.d.ts +41 -0
- package/dist/audit/cli/waveManifest.d.ts.map +1 -0
- package/dist/audit/cli/waveManifest.js +42 -0
- package/dist/audit/cli/waveManifest.js.map +1 -0
- package/dist/audit/cli/workerResult.d.ts +19 -0
- package/dist/audit/cli/workerResult.d.ts.map +1 -0
- package/dist/audit/cli/workerResult.js +43 -0
- package/dist/audit/cli/workerResult.js.map +1 -0
- package/dist/audit/cli/workerRunCommand.d.ts +16 -0
- package/dist/audit/cli/workerRunCommand.d.ts.map +1 -0
- package/dist/audit/cli/workerRunCommand.js +132 -0
- package/dist/audit/cli/workerRunCommand.js.map +1 -0
- package/dist/audit/cli.d.ts +21 -0
- package/dist/audit/cli.d.ts.map +1 -0
- package/dist/audit/cli.js +137 -0
- package/dist/audit/cli.js.map +1 -0
- package/dist/audit/contracts/workerSchemas.d.ts +1448 -0
- package/dist/audit/contracts/workerSchemas.d.ts.map +1 -0
- package/dist/audit/contracts/workerSchemas.js +117 -0
- package/dist/audit/contracts/workerSchemas.js.map +1 -0
- package/dist/audit/contracts/wrapperResponse.d.ts +316 -0
- package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -0
- package/dist/audit/contracts/wrapperResponse.js +96 -0
- package/dist/audit/contracts/wrapperResponse.js.map +1 -0
- package/dist/audit/coverage.d.ts +11 -0
- package/dist/audit/coverage.d.ts.map +1 -0
- package/dist/audit/coverage.js +78 -0
- package/dist/audit/coverage.js.map +1 -0
- package/dist/audit/extractors/analyzers/css.d.ts +3 -0
- package/dist/audit/extractors/analyzers/css.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/css.js +102 -0
- package/dist/audit/extractors/analyzers/css.js.map +1 -0
- package/dist/audit/extractors/analyzers/html.d.ts +3 -0
- package/dist/audit/extractors/analyzers/html.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/html.js +93 -0
- package/dist/audit/extractors/analyzers/html.js.map +1 -0
- package/dist/audit/extractors/analyzers/merge.d.ts +15 -0
- package/dist/audit/extractors/analyzers/merge.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/merge.js +86 -0
- package/dist/audit/extractors/analyzers/merge.js.map +1 -0
- package/dist/audit/extractors/analyzers/python.d.ts +3 -0
- package/dist/audit/extractors/analyzers/python.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/python.js +105 -0
- package/dist/audit/extractors/analyzers/python.js.map +1 -0
- package/dist/audit/extractors/analyzers/registry.d.ts +34 -0
- package/dist/audit/extractors/analyzers/registry.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/registry.js +82 -0
- package/dist/audit/extractors/analyzers/registry.js.map +1 -0
- package/dist/audit/extractors/analyzers/resourceUrl.d.ts +8 -0
- package/dist/audit/extractors/analyzers/resourceUrl.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/resourceUrl.js +26 -0
- package/dist/audit/extractors/analyzers/resourceUrl.js.map +1 -0
- package/dist/audit/extractors/analyzers/sql.d.ts +3 -0
- package/dist/audit/extractors/analyzers/sql.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/sql.js +23 -0
- package/dist/audit/extractors/analyzers/sql.js.map +1 -0
- package/dist/audit/extractors/analyzers/treeSitter.d.ts +44 -0
- package/dist/audit/extractors/analyzers/treeSitter.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/treeSitter.js +148 -0
- package/dist/audit/extractors/analyzers/treeSitter.js.map +1 -0
- package/dist/audit/extractors/analyzers/types.d.ts +54 -0
- package/dist/audit/extractors/analyzers/types.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/types.js +2 -0
- package/dist/audit/extractors/analyzers/types.js.map +1 -0
- package/dist/audit/extractors/analyzers/typescript.d.ts +3 -0
- package/dist/audit/extractors/analyzers/typescript.d.ts.map +1 -0
- package/dist/audit/extractors/analyzers/typescript.js +279 -0
- package/dist/audit/extractors/analyzers/typescript.js.map +1 -0
- package/dist/audit/extractors/browserExtension.d.ts +12 -0
- package/dist/audit/extractors/browserExtension.d.ts.map +1 -0
- package/dist/audit/extractors/browserExtension.js +388 -0
- package/dist/audit/extractors/browserExtension.js.map +1 -0
- package/dist/audit/extractors/bucketing.d.ts +12 -0
- package/dist/audit/extractors/bucketing.d.ts.map +1 -0
- package/dist/audit/extractors/bucketing.js +56 -0
- package/dist/audit/extractors/bucketing.js.map +1 -0
- package/dist/audit/extractors/designAssessment.d.ts +10 -0
- package/dist/audit/extractors/designAssessment.d.ts.map +1 -0
- package/dist/audit/extractors/designAssessment.js +280 -0
- package/dist/audit/extractors/designAssessment.js.map +1 -0
- package/dist/audit/extractors/disposition.d.ts +76 -0
- package/dist/audit/extractors/disposition.d.ts.map +1 -0
- package/dist/audit/extractors/disposition.js +265 -0
- package/dist/audit/extractors/disposition.js.map +1 -0
- package/dist/audit/extractors/fileInventory.d.ts +8 -0
- package/dist/audit/extractors/fileInventory.d.ts.map +1 -0
- package/dist/audit/extractors/fileInventory.js +36 -0
- package/dist/audit/extractors/fileInventory.js.map +1 -0
- package/dist/audit/extractors/flows.d.ts +9 -0
- package/dist/audit/extractors/flows.d.ts.map +1 -0
- package/dist/audit/extractors/flows.js +111 -0
- package/dist/audit/extractors/flows.js.map +1 -0
- package/dist/audit/extractors/fsIntake.d.ts +9 -0
- package/dist/audit/extractors/fsIntake.d.ts.map +1 -0
- package/dist/audit/extractors/fsIntake.js +95 -0
- package/dist/audit/extractors/fsIntake.js.map +1 -0
- package/dist/audit/extractors/graph.d.ts +11 -0
- package/dist/audit/extractors/graph.d.ts.map +1 -0
- package/dist/audit/extractors/graph.js +472 -0
- package/dist/audit/extractors/graph.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/cargo.d.ts +15 -0
- package/dist/audit/extractors/graphManifestEdges/cargo.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/cargo.js +74 -0
- package/dist/audit/extractors/graphManifestEdges/cargo.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/go.d.ts +6 -0
- package/dist/audit/extractors/graphManifestEdges/go.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/go.js +152 -0
- package/dist/audit/extractors/graphManifestEdges/go.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/index.d.ts +9 -0
- package/dist/audit/extractors/graphManifestEdges/index.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/index.js +12 -0
- package/dist/audit/extractors/graphManifestEdges/index.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/jsonc.d.ts +4 -0
- package/dist/audit/extractors/graphManifestEdges/jsonc.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/jsonc.js +98 -0
- package/dist/audit/extractors/graphManifestEdges/jsonc.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/maven.d.ts +4 -0
- package/dist/audit/extractors/graphManifestEdges/maven.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/maven.js +74 -0
- package/dist/audit/extractors/graphManifestEdges/maven.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/packageJson.d.ts +20 -0
- package/dist/audit/extractors/graphManifestEdges/packageJson.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/packageJson.js +205 -0
- package/dist/audit/extractors/graphManifestEdges/packageJson.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/pnpm.d.ts +10 -0
- package/dist/audit/extractors/graphManifestEdges/pnpm.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/pnpm.js +18 -0
- package/dist/audit/extractors/graphManifestEdges/pnpm.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/pyproject.d.ts +4 -0
- package/dist/audit/extractors/graphManifestEdges/pyproject.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/pyproject.js +45 -0
- package/dist/audit/extractors/graphManifestEdges/pyproject.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/toml.d.ts +25 -0
- package/dist/audit/extractors/graphManifestEdges/toml.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/toml.js +49 -0
- package/dist/audit/extractors/graphManifestEdges/toml.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/typescript.d.ts +4 -0
- package/dist/audit/extractors/graphManifestEdges/typescript.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/typescript.js +57 -0
- package/dist/audit/extractors/graphManifestEdges/typescript.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/workspace.d.ts +11 -0
- package/dist/audit/extractors/graphManifestEdges/workspace.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/workspace.js +73 -0
- package/dist/audit/extractors/graphManifestEdges/workspace.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/yaml.d.ts +24 -0
- package/dist/audit/extractors/graphManifestEdges/yaml.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/yaml.js +57 -0
- package/dist/audit/extractors/graphManifestEdges/yaml.js.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/yamlPaths.d.ts +5 -0
- package/dist/audit/extractors/graphManifestEdges/yamlPaths.d.ts.map +1 -0
- package/dist/audit/extractors/graphManifestEdges/yamlPaths.js +75 -0
- package/dist/audit/extractors/graphManifestEdges/yamlPaths.js.map +1 -0
- package/dist/audit/extractors/graphPathUtils.d.ts +34 -0
- package/dist/audit/extractors/graphPathUtils.d.ts.map +1 -0
- package/dist/audit/extractors/graphPathUtils.js +174 -0
- package/dist/audit/extractors/graphPathUtils.js.map +1 -0
- package/dist/audit/extractors/graphPythonImports.d.ts +19 -0
- package/dist/audit/extractors/graphPythonImports.d.ts.map +1 -0
- package/dist/audit/extractors/graphPythonImports.js +318 -0
- package/dist/audit/extractors/graphPythonImports.js.map +1 -0
- package/dist/audit/extractors/graphRoutes.d.ts +13 -0
- package/dist/audit/extractors/graphRoutes.d.ts.map +1 -0
- package/dist/audit/extractors/graphRoutes.js +447 -0
- package/dist/audit/extractors/graphRoutes.js.map +1 -0
- package/dist/audit/extractors/graphSuites.d.ts +5 -0
- package/dist/audit/extractors/graphSuites.d.ts.map +1 -0
- package/dist/audit/extractors/graphSuites.js +248 -0
- package/dist/audit/extractors/graphSuites.js.map +1 -0
- package/dist/audit/extractors/graphTestSources.d.ts +3 -0
- package/dist/audit/extractors/graphTestSources.d.ts.map +1 -0
- package/dist/audit/extractors/graphTestSources.js +103 -0
- package/dist/audit/extractors/graphTestSources.js.map +1 -0
- package/dist/audit/extractors/ignore.d.ts +2 -0
- package/dist/audit/extractors/ignore.d.ts.map +1 -0
- package/dist/audit/extractors/ignore.js +18 -0
- package/dist/audit/extractors/ignore.js.map +1 -0
- package/dist/audit/extractors/languageMap.generated.d.ts +2 -0
- package/dist/audit/extractors/languageMap.generated.d.ts.map +1 -0
- package/dist/audit/extractors/languageMap.generated.js +1456 -0
- package/dist/audit/extractors/languageMap.generated.js.map +1 -0
- package/dist/audit/extractors/pathPatterns.d.ts +55 -0
- package/dist/audit/extractors/pathPatterns.d.ts.map +1 -0
- package/dist/audit/extractors/pathPatterns.js +303 -0
- package/dist/audit/extractors/pathPatterns.js.map +1 -0
- package/dist/audit/extractors/risk.d.ts +5 -0
- package/dist/audit/extractors/risk.d.ts.map +1 -0
- package/dist/audit/extractors/risk.js +54 -0
- package/dist/audit/extractors/risk.js.map +1 -0
- package/dist/audit/extractors/surfaces.d.ts +10 -0
- package/dist/audit/extractors/surfaces.d.ts.map +1 -0
- package/dist/audit/extractors/surfaces.js +49 -0
- package/dist/audit/extractors/surfaces.js.map +1 -0
- package/dist/audit/index.d.ts +2 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +3 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/io/artifacts.d.ts +152 -0
- package/dist/audit/io/artifacts.d.ts.map +1 -0
- package/dist/audit/io/artifacts.js +239 -0
- package/dist/audit/io/artifacts.js.map +1 -0
- package/dist/audit/io/runArtifactTypes.d.ts +19 -0
- package/dist/audit/io/runArtifactTypes.d.ts.map +1 -0
- package/dist/audit/io/runArtifactTypes.js +2 -0
- package/dist/audit/io/runArtifactTypes.js.map +1 -0
- package/dist/audit/io/runArtifacts.d.ts +33 -0
- package/dist/audit/io/runArtifacts.d.ts.map +1 -0
- package/dist/audit/io/runArtifacts.js +254 -0
- package/dist/audit/io/runArtifacts.js.map +1 -0
- package/dist/audit/io/toolingManifest.d.ts +4 -0
- package/dist/audit/io/toolingManifest.d.ts.map +1 -0
- package/dist/audit/io/toolingManifest.js +79 -0
- package/dist/audit/io/toolingManifest.js.map +1 -0
- package/dist/audit/orchestrator/advance.d.ts +5 -0
- package/dist/audit/orchestrator/advance.d.ts.map +1 -0
- package/dist/audit/orchestrator/advance.js +172 -0
- package/dist/audit/orchestrator/advance.js.map +1 -0
- package/dist/audit/orchestrator/advanceTypes.d.ts +50 -0
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -0
- package/dist/audit/orchestrator/advanceTypes.js +2 -0
- package/dist/audit/orchestrator/advanceTypes.js.map +1 -0
- package/dist/audit/orchestrator/artifactFreshness.d.ts +4 -0
- package/dist/audit/orchestrator/artifactFreshness.d.ts.map +1 -0
- package/dist/audit/orchestrator/artifactFreshness.js +99 -0
- package/dist/audit/orchestrator/artifactFreshness.js.map +1 -0
- package/dist/audit/orchestrator/artifactMetadata.d.ts +6 -0
- package/dist/audit/orchestrator/artifactMetadata.d.ts.map +1 -0
- package/dist/audit/orchestrator/artifactMetadata.js +98 -0
- package/dist/audit/orchestrator/artifactMetadata.js.map +1 -0
- package/dist/audit/orchestrator/auditTaskUtils.d.ts +10 -0
- package/dist/audit/orchestrator/auditTaskUtils.d.ts.map +1 -0
- package/dist/audit/orchestrator/auditTaskUtils.js +53 -0
- package/dist/audit/orchestrator/auditTaskUtils.js.map +1 -0
- package/dist/audit/orchestrator/autoFixExecutor.d.ts +4 -0
- package/dist/audit/orchestrator/autoFixExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/autoFixExecutor.js +152 -0
- package/dist/audit/orchestrator/autoFixExecutor.js.map +1 -0
- package/dist/audit/orchestrator/chunking.d.ts +6 -0
- package/dist/audit/orchestrator/chunking.d.ts.map +1 -0
- package/dist/audit/orchestrator/chunking.js +14 -0
- package/dist/audit/orchestrator/chunking.js.map +1 -0
- package/dist/audit/orchestrator/dependencyMap.d.ts +74 -0
- package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -0
- package/dist/audit/orchestrator/dependencyMap.js +193 -0
- package/dist/audit/orchestrator/dependencyMap.js.map +1 -0
- package/dist/audit/orchestrator/designReviewProjection.d.ts +66 -0
- package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -0
- package/dist/audit/orchestrator/designReviewProjection.js +215 -0
- package/dist/audit/orchestrator/designReviewProjection.js.map +1 -0
- package/dist/audit/orchestrator/designReviewPrompt.d.ts +82 -0
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -0
- package/dist/audit/orchestrator/designReviewPrompt.js +474 -0
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -0
- package/dist/audit/orchestrator/designReviewSnapshot.d.ts +69 -0
- package/dist/audit/orchestrator/designReviewSnapshot.d.ts.map +1 -0
- package/dist/audit/orchestrator/designReviewSnapshot.js +135 -0
- package/dist/audit/orchestrator/designReviewSnapshot.js.map +1 -0
- package/dist/audit/orchestrator/edgeReasoning.d.ts +40 -0
- package/dist/audit/orchestrator/edgeReasoning.d.ts.map +1 -0
- package/dist/audit/orchestrator/edgeReasoning.js +126 -0
- package/dist/audit/orchestrator/edgeReasoning.js.map +1 -0
- package/dist/audit/orchestrator/executorResult.d.ts +71 -0
- package/dist/audit/orchestrator/executorResult.d.ts.map +1 -0
- package/dist/audit/orchestrator/executorResult.js +2 -0
- package/dist/audit/orchestrator/executorResult.js.map +1 -0
- package/dist/audit/orchestrator/executorRunners.d.ts +34 -0
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -0
- package/dist/audit/orchestrator/executorRunners.js +85 -0
- package/dist/audit/orchestrator/executorRunners.js.map +1 -0
- package/dist/audit/orchestrator/executors.d.ts +13 -0
- package/dist/audit/orchestrator/executors.d.ts.map +1 -0
- package/dist/audit/orchestrator/executors.js +114 -0
- package/dist/audit/orchestrator/executors.js.map +1 -0
- package/dist/audit/orchestrator/fileAnchors.d.ts +33 -0
- package/dist/audit/orchestrator/fileAnchors.d.ts.map +1 -0
- package/dist/audit/orchestrator/fileAnchors.js +242 -0
- package/dist/audit/orchestrator/fileAnchors.js.map +1 -0
- package/dist/audit/orchestrator/fileIntegrity.d.ts +9 -0
- package/dist/audit/orchestrator/fileIntegrity.d.ts.map +1 -0
- package/dist/audit/orchestrator/fileIntegrity.js +58 -0
- package/dist/audit/orchestrator/fileIntegrity.js.map +1 -0
- package/dist/audit/orchestrator/flowCoverage.d.ts +5 -0
- package/dist/audit/orchestrator/flowCoverage.d.ts.map +1 -0
- package/dist/audit/orchestrator/flowCoverage.js +46 -0
- package/dist/audit/orchestrator/flowCoverage.js.map +1 -0
- package/dist/audit/orchestrator/flowPlanning.d.ts +8 -0
- package/dist/audit/orchestrator/flowPlanning.d.ts.map +1 -0
- package/dist/audit/orchestrator/flowPlanning.js +65 -0
- package/dist/audit/orchestrator/flowPlanning.js.map +1 -0
- package/dist/audit/orchestrator/flowRequeue.d.ts +6 -0
- package/dist/audit/orchestrator/flowRequeue.d.ts.map +1 -0
- package/dist/audit/orchestrator/flowRequeue.js +73 -0
- package/dist/audit/orchestrator/flowRequeue.js.map +1 -0
- package/dist/audit/orchestrator/graphEnrichmentExecutor.d.ts +30 -0
- package/dist/audit/orchestrator/graphEnrichmentExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/graphEnrichmentExecutor.js +227 -0
- package/dist/audit/orchestrator/graphEnrichmentExecutor.js.map +1 -0
- package/dist/audit/orchestrator/ingestionExecutors.d.ts +10 -0
- package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -0
- package/dist/audit/orchestrator/ingestionExecutors.js +262 -0
- package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -0
- package/dist/audit/orchestrator/intakeExecutors.d.ts +26 -0
- package/dist/audit/orchestrator/intakeExecutors.d.ts.map +1 -0
- package/dist/audit/orchestrator/intakeExecutors.js +138 -0
- package/dist/audit/orchestrator/intakeExecutors.js.map +1 -0
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +89 -0
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +264 -0
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -0
- package/dist/audit/orchestrator/intentInterpreter.d.ts +49 -0
- package/dist/audit/orchestrator/intentInterpreter.d.ts.map +1 -0
- package/dist/audit/orchestrator/intentInterpreter.js +110 -0
- package/dist/audit/orchestrator/intentInterpreter.js.map +1 -0
- package/dist/audit/orchestrator/lensSelection.d.ts +35 -0
- package/dist/audit/orchestrator/lensSelection.d.ts.map +1 -0
- package/dist/audit/orchestrator/lensSelection.js +81 -0
- package/dist/audit/orchestrator/lensSelection.js.map +1 -0
- package/dist/audit/orchestrator/localCommands.d.ts +16 -0
- package/dist/audit/orchestrator/localCommands.d.ts.map +1 -0
- package/dist/audit/orchestrator/localCommands.js +113 -0
- package/dist/audit/orchestrator/localCommands.js.map +1 -0
- package/dist/audit/orchestrator/nextStep.d.ts +12 -0
- package/dist/audit/orchestrator/nextStep.d.ts.map +1 -0
- package/dist/audit/orchestrator/nextStep.js +63 -0
- package/dist/audit/orchestrator/nextStep.js.map +1 -0
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts +32 -0
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts.map +1 -0
- package/dist/audit/orchestrator/partitionTaskGraph.js +98 -0
- package/dist/audit/orchestrator/partitionTaskGraph.js.map +1 -0
- package/dist/audit/orchestrator/planning.d.ts +5 -0
- package/dist/audit/orchestrator/planning.d.ts.map +1 -0
- package/dist/audit/orchestrator/planning.js +81 -0
- package/dist/audit/orchestrator/planning.js.map +1 -0
- package/dist/audit/orchestrator/planningExecutors.d.ts +21 -0
- package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -0
- package/dist/audit/orchestrator/planningExecutors.js +228 -0
- package/dist/audit/orchestrator/planningExecutors.js.map +1 -0
- package/dist/audit/orchestrator/providerConfirmation.d.ts +21 -0
- package/dist/audit/orchestrator/providerConfirmation.d.ts.map +1 -0
- package/dist/audit/orchestrator/providerConfirmation.js +54 -0
- package/dist/audit/orchestrator/providerConfirmation.js.map +1 -0
- package/dist/audit/orchestrator/requeue.d.ts +4 -0
- package/dist/audit/orchestrator/requeue.d.ts.map +1 -0
- package/dist/audit/orchestrator/requeue.js +33 -0
- package/dist/audit/orchestrator/requeue.js.map +1 -0
- package/dist/audit/orchestrator/requeueCommand.d.ts +32 -0
- package/dist/audit/orchestrator/requeueCommand.d.ts.map +1 -0
- package/dist/audit/orchestrator/requeueCommand.js +45 -0
- package/dist/audit/orchestrator/requeueCommand.js.map +1 -0
- package/dist/audit/orchestrator/requeueUtils.d.ts +14 -0
- package/dist/audit/orchestrator/requeueUtils.d.ts.map +1 -0
- package/dist/audit/orchestrator/requeueUtils.js +22 -0
- package/dist/audit/orchestrator/requeueUtils.js.map +1 -0
- package/dist/audit/orchestrator/resultIngestion.d.ts +18 -0
- package/dist/audit/orchestrator/resultIngestion.d.ts.map +1 -0
- package/dist/audit/orchestrator/resultIngestion.js +63 -0
- package/dist/audit/orchestrator/resultIngestion.js.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts +5 -0
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraph.js +11 -0
- package/dist/audit/orchestrator/reviewPacketGraph.js.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts +4 -0
- package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraphClustering.js +481 -0
- package/dist/audit/orchestrator/reviewPacketGraphClustering.js.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraphContext.d.ts +10 -0
- package/dist/audit/orchestrator/reviewPacketGraphContext.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraphContext.js +95 -0
- package/dist/audit/orchestrator/reviewPacketGraphContext.js.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts +23 -0
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js +169 -0
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js.map +1 -0
- package/dist/audit/orchestrator/reviewPacketMetrics.d.ts +17 -0
- package/dist/audit/orchestrator/reviewPacketMetrics.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPacketMetrics.js +322 -0
- package/dist/audit/orchestrator/reviewPacketMetrics.js.map +1 -0
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts +27 -0
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPacketSizing.js +64 -0
- package/dist/audit/orchestrator/reviewPacketSizing.js.map +1 -0
- package/dist/audit/orchestrator/reviewPackets.d.ts +54 -0
- package/dist/audit/orchestrator/reviewPackets.d.ts.map +1 -0
- package/dist/audit/orchestrator/reviewPackets.js +318 -0
- package/dist/audit/orchestrator/reviewPackets.js.map +1 -0
- package/dist/audit/orchestrator/rollingDispatch.d.ts +45 -0
- package/dist/audit/orchestrator/rollingDispatch.d.ts.map +1 -0
- package/dist/audit/orchestrator/rollingDispatch.js +103 -0
- package/dist/audit/orchestrator/rollingDispatch.js.map +1 -0
- package/dist/audit/orchestrator/runtimeCommand.d.ts +10 -0
- package/dist/audit/orchestrator/runtimeCommand.d.ts.map +1 -0
- package/dist/audit/orchestrator/runtimeCommand.js +129 -0
- package/dist/audit/orchestrator/runtimeCommand.js.map +1 -0
- package/dist/audit/orchestrator/runtimeValidation.d.ts +13 -0
- package/dist/audit/orchestrator/runtimeValidation.d.ts.map +1 -0
- package/dist/audit/orchestrator/runtimeValidation.js +94 -0
- package/dist/audit/orchestrator/runtimeValidation.js.map +1 -0
- package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts +3 -0
- package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts.map +1 -0
- package/dist/audit/orchestrator/runtimeValidationUpdate.js +57 -0
- package/dist/audit/orchestrator/runtimeValidationUpdate.js.map +1 -0
- package/dist/audit/orchestrator/scope.d.ts +75 -0
- package/dist/audit/orchestrator/scope.d.ts.map +1 -0
- package/dist/audit/orchestrator/scope.js +268 -0
- package/dist/audit/orchestrator/scope.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/conflict.d.ts +9 -0
- package/dist/audit/orchestrator/selectiveDeepening/conflict.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js +72 -0
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts +11 -0
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js +53 -0
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.d.ts +8 -0
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js +46 -0
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/index.d.ts +25 -0
- package/dist/audit/orchestrator/selectiveDeepening/index.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/index.js +157 -0
- package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.d.ts +13 -0
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js +269 -0
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts +14 -0
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js +58 -0
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts +42 -0
- package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/shared.js +121 -0
- package/dist/audit/orchestrator/selectiveDeepening/shared.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.d.ts +7 -0
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js +73 -0
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening.d.ts +3 -0
- package/dist/audit/orchestrator/selectiveDeepening.d.ts.map +1 -0
- package/dist/audit/orchestrator/selectiveDeepening.js +7 -0
- package/dist/audit/orchestrator/selectiveDeepening.js.map +1 -0
- package/dist/audit/orchestrator/staleness.d.ts +3 -0
- package/dist/audit/orchestrator/staleness.d.ts.map +1 -0
- package/dist/audit/orchestrator/staleness.js +102 -0
- package/dist/audit/orchestrator/staleness.js.map +1 -0
- package/dist/audit/orchestrator/state.d.ts +4 -0
- package/dist/audit/orchestrator/state.d.ts.map +1 -0
- package/dist/audit/orchestrator/state.js +158 -0
- package/dist/audit/orchestrator/state.js.map +1 -0
- package/dist/audit/orchestrator/structureExecutors.d.ts +6 -0
- package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -0
- package/dist/audit/orchestrator/structureExecutors.js +116 -0
- package/dist/audit/orchestrator/structureExecutors.js.map +1 -0
- package/dist/audit/orchestrator/syntaxResolutionExecutor.d.ts +4 -0
- package/dist/audit/orchestrator/syntaxResolutionExecutor.d.ts.map +1 -0
- package/dist/audit/orchestrator/syntaxResolutionExecutor.js +260 -0
- package/dist/audit/orchestrator/syntaxResolutionExecutor.js.map +1 -0
- package/dist/audit/orchestrator/synthesisExecutors.d.ts +13 -0
- package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -0
- package/dist/audit/orchestrator/synthesisExecutors.js +107 -0
- package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -0
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts +154 -0
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts.map +1 -0
- package/dist/audit/orchestrator/taskAffinityGraph.js +216 -0
- package/dist/audit/orchestrator/taskAffinityGraph.js.map +1 -0
- package/dist/audit/orchestrator/taskBuilder.d.ts +43 -0
- package/dist/audit/orchestrator/taskBuilder.d.ts.map +1 -0
- package/dist/audit/orchestrator/taskBuilder.js +355 -0
- package/dist/audit/orchestrator/taskBuilder.js.map +1 -0
- package/dist/audit/orchestrator/trivialAudit.d.ts +5 -0
- package/dist/audit/orchestrator/trivialAudit.d.ts.map +1 -0
- package/dist/audit/orchestrator/trivialAudit.js +50 -0
- package/dist/audit/orchestrator/trivialAudit.js.map +1 -0
- package/dist/audit/orchestrator/unionFind.d.ts +8 -0
- package/dist/audit/orchestrator/unionFind.d.ts.map +1 -0
- package/dist/audit/orchestrator/unionFind.js +43 -0
- package/dist/audit/orchestrator/unionFind.js.map +1 -0
- package/dist/audit/orchestrator/unitBuilder.d.ts +8 -0
- package/dist/audit/orchestrator/unitBuilder.d.ts.map +1 -0
- package/dist/audit/orchestrator/unitBuilder.js +171 -0
- package/dist/audit/orchestrator/unitBuilder.js.map +1 -0
- package/dist/audit/orchestrator.d.ts +7 -0
- package/dist/audit/orchestrator.d.ts.map +1 -0
- package/dist/audit/orchestrator.js +68 -0
- package/dist/audit/orchestrator.js.map +1 -0
- package/dist/audit/prompts/renderWorkerPrompt.d.ts +3 -0
- package/dist/audit/prompts/renderWorkerPrompt.d.ts.map +1 -0
- package/dist/audit/prompts/renderWorkerPrompt.js +87 -0
- package/dist/audit/prompts/renderWorkerPrompt.js.map +1 -0
- package/dist/audit/providers/claudeCodeProvider.d.ts +11 -0
- package/dist/audit/providers/claudeCodeProvider.d.ts.map +1 -0
- package/dist/audit/providers/claudeCodeProvider.js +23 -0
- package/dist/audit/providers/claudeCodeProvider.js.map +1 -0
- package/dist/audit/providers/constants.d.ts +2 -0
- package/dist/audit/providers/constants.d.ts.map +1 -0
- package/dist/audit/providers/constants.js +2 -0
- package/dist/audit/providers/constants.js.map +1 -0
- package/dist/audit/providers/index.d.ts +14 -0
- package/dist/audit/providers/index.d.ts.map +1 -0
- package/dist/audit/providers/index.js +21 -0
- package/dist/audit/providers/index.js.map +1 -0
- package/dist/audit/providers/opencodeProvider.d.ts +5 -0
- package/dist/audit/providers/opencodeProvider.d.ts.map +1 -0
- package/dist/audit/providers/opencodeProvider.js +10 -0
- package/dist/audit/providers/opencodeProvider.js.map +1 -0
- package/dist/audit/quota/discoveredLimits.d.ts +27 -0
- package/dist/audit/quota/discoveredLimits.d.ts.map +1 -0
- package/dist/audit/quota/discoveredLimits.js +91 -0
- package/dist/audit/quota/discoveredLimits.js.map +1 -0
- package/dist/audit/quota/headerExtraction.d.ts +9 -0
- package/dist/audit/quota/headerExtraction.d.ts.map +1 -0
- package/dist/audit/quota/headerExtraction.js +148 -0
- package/dist/audit/quota/headerExtraction.js.map +1 -0
- package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.d.ts +7 -0
- package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.d.ts.map +1 -0
- package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.js +27 -0
- package/dist/audit/quota/headerExtractors/claudeCodeHeaderExtractor.js.map +1 -0
- package/dist/audit/quota/headerExtractors/genericHeaderExtractor.d.ts +10 -0
- package/dist/audit/quota/headerExtractors/genericHeaderExtractor.d.ts.map +1 -0
- package/dist/audit/quota/headerExtractors/genericHeaderExtractor.js +8 -0
- package/dist/audit/quota/headerExtractors/genericHeaderExtractor.js.map +1 -0
- package/dist/audit/quota/headerExtractors/index.d.ts +6 -0
- package/dist/audit/quota/headerExtractors/index.d.ts.map +1 -0
- package/dist/audit/quota/headerExtractors/index.js +11 -0
- package/dist/audit/quota/headerExtractors/index.js.map +1 -0
- package/dist/audit/quota/hostLimits.d.ts +8 -0
- package/dist/audit/quota/hostLimits.d.ts.map +1 -0
- package/dist/audit/quota/hostLimits.js +9 -0
- package/dist/audit/quota/hostLimits.js.map +1 -0
- package/dist/audit/quota/index.d.ts +383 -0
- package/dist/audit/quota/index.d.ts.map +1 -0
- package/dist/audit/quota/index.js +45 -0
- package/dist/audit/quota/index.js.map +1 -0
- package/dist/audit/reporting/findingIdentity.d.ts +34 -0
- package/dist/audit/reporting/findingIdentity.d.ts.map +1 -0
- package/dist/audit/reporting/findingIdentity.js +64 -0
- package/dist/audit/reporting/findingIdentity.js.map +1 -0
- package/dist/audit/reporting/findingRanks.d.ts +2 -0
- package/dist/audit/reporting/findingRanks.d.ts.map +1 -0
- package/dist/audit/reporting/findingRanks.js +7 -0
- package/dist/audit/reporting/findingRanks.js.map +1 -0
- package/dist/audit/reporting/mergeFindings.d.ts +6 -0
- package/dist/audit/reporting/mergeFindings.d.ts.map +1 -0
- package/dist/audit/reporting/mergeFindings.js +326 -0
- package/dist/audit/reporting/mergeFindings.js.map +1 -0
- package/dist/audit/reporting/synthesis.d.ts +124 -0
- package/dist/audit/reporting/synthesis.d.ts.map +1 -0
- package/dist/audit/reporting/synthesis.js +369 -0
- package/dist/audit/reporting/synthesis.js.map +1 -0
- package/dist/audit/reporting/synthesisNarrativePrompt.d.ts +8 -0
- package/dist/audit/reporting/synthesisNarrativePrompt.d.ts.map +1 -0
- package/dist/audit/reporting/synthesisNarrativePrompt.js +66 -0
- package/dist/audit/reporting/synthesisNarrativePrompt.js.map +1 -0
- package/dist/audit/reporting/workBlocks.d.ts +10 -0
- package/dist/audit/reporting/workBlocks.d.ts.map +1 -0
- package/dist/audit/reporting/workBlocks.js +154 -0
- package/dist/audit/reporting/workBlocks.js.map +1 -0
- package/dist/audit/supervisor/operatorHandoff.d.ts +65 -0
- package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -0
- package/dist/audit/supervisor/operatorHandoff.js +277 -0
- package/dist/audit/supervisor/operatorHandoff.js.map +1 -0
- package/dist/audit/supervisor/runLedger.d.ts +4 -0
- package/dist/audit/supervisor/runLedger.d.ts.map +1 -0
- package/dist/audit/supervisor/runLedger.js +118 -0
- package/dist/audit/supervisor/runLedger.js.map +1 -0
- package/dist/audit/supervisor/sessionConfig.d.ts +12 -0
- package/dist/audit/supervisor/sessionConfig.d.ts.map +1 -0
- package/dist/audit/supervisor/sessionConfig.js +49 -0
- package/dist/audit/supervisor/sessionConfig.js.map +1 -0
- package/dist/audit/types/activeDispatch.d.ts +36 -0
- package/dist/audit/types/activeDispatch.d.ts.map +1 -0
- package/dist/audit/types/activeDispatch.js +3 -0
- package/dist/audit/types/activeDispatch.js.map +1 -0
- package/dist/audit/types/analyzerCapability.d.ts +17 -0
- package/dist/audit/types/analyzerCapability.d.ts.map +1 -0
- package/dist/audit/types/analyzerCapability.js +2 -0
- package/dist/audit/types/analyzerCapability.js.map +1 -0
- package/dist/audit/types/artifactMetadata.d.ts +9 -0
- package/dist/audit/types/artifactMetadata.d.ts.map +1 -0
- package/dist/audit/types/artifactMetadata.js +2 -0
- package/dist/audit/types/artifactMetadata.js.map +1 -0
- package/dist/audit/types/auditScope.d.ts +58 -0
- package/dist/audit/types/auditScope.d.ts.map +1 -0
- package/dist/audit/types/auditScope.js +15 -0
- package/dist/audit/types/auditScope.js.map +1 -0
- package/dist/audit/types/auditState.d.ts +18 -0
- package/dist/audit/types/auditState.d.ts.map +1 -0
- package/dist/audit/types/auditState.js +2 -0
- package/dist/audit/types/auditState.js.map +1 -0
- package/dist/audit/types/designAssessment.d.ts +22 -0
- package/dist/audit/types/designAssessment.d.ts.map +1 -0
- package/dist/audit/types/designAssessment.js +8 -0
- package/dist/audit/types/designAssessment.js.map +1 -0
- package/dist/audit/types/externalAnalyzer.d.ts +225 -0
- package/dist/audit/types/externalAnalyzer.d.ts.map +1 -0
- package/dist/audit/types/externalAnalyzer.js +56 -0
- package/dist/audit/types/externalAnalyzer.js.map +1 -0
- package/dist/audit/types/flowCoverage.d.ts +16 -0
- package/dist/audit/types/flowCoverage.d.ts.map +1 -0
- package/dist/audit/types/flowCoverage.js +6 -0
- package/dist/audit/types/flowCoverage.js.map +1 -0
- package/dist/audit/types/reviewPlanning.d.ts +513 -0
- package/dist/audit/types/reviewPlanning.d.ts.map +1 -0
- package/dist/audit/types/reviewPlanning.js +109 -0
- package/dist/audit/types/reviewPlanning.js.map +1 -0
- package/dist/audit/types/runtimeValidation.d.ts +155 -0
- package/dist/audit/types/runtimeValidation.d.ts.map +1 -0
- package/dist/audit/types/runtimeValidation.js +52 -0
- package/dist/audit/types/runtimeValidation.js.map +1 -0
- package/dist/audit/types/synthesisNarrative.d.ts +8 -0
- package/dist/audit/types/synthesisNarrative.d.ts.map +1 -0
- package/dist/audit/types/synthesisNarrative.js +6 -0
- package/dist/audit/types/synthesisNarrative.js.map +1 -0
- package/dist/audit/types/toolingManifest.d.ts +8 -0
- package/dist/audit/types/toolingManifest.d.ts.map +1 -0
- package/dist/audit/types/toolingManifest.js +2 -0
- package/dist/audit/types/toolingManifest.js.map +1 -0
- package/dist/audit/types/workerResult.d.ts +14 -0
- package/dist/audit/types/workerResult.d.ts.map +1 -0
- package/dist/audit/types/workerResult.js +2 -0
- package/dist/audit/types/workerResult.js.map +1 -0
- package/dist/audit/types/workerSession.d.ts +28 -0
- package/dist/audit/types/workerSession.d.ts.map +1 -0
- package/dist/audit/types/workerSession.js +5 -0
- package/dist/audit/types/workerSession.js.map +1 -0
- package/dist/audit/types.d.ts +1077 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +160 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/audit/validation/anchorGrounding.d.ts +49 -0
- package/dist/audit/validation/anchorGrounding.d.ts.map +1 -0
- package/dist/audit/validation/anchorGrounding.js +183 -0
- package/dist/audit/validation/anchorGrounding.js.map +1 -0
- package/dist/audit/validation/artifacts.d.ts +4 -0
- package/dist/audit/validation/artifacts.d.ts.map +1 -0
- package/dist/audit/validation/artifacts.js +313 -0
- package/dist/audit/validation/artifacts.js.map +1 -0
- package/dist/audit/validation/auditResults.d.ts +16 -0
- package/dist/audit/validation/auditResults.d.ts.map +1 -0
- package/dist/audit/validation/auditResults.js +619 -0
- package/dist/audit/validation/auditResults.js.map +1 -0
- package/dist/audit/validation/designFindingGrounding.d.ts +33 -0
- package/dist/audit/validation/designFindingGrounding.d.ts.map +1 -0
- package/dist/audit/validation/designFindingGrounding.js +43 -0
- package/dist/audit/validation/designFindingGrounding.js.map +1 -0
- package/dist/audit/validation/quoteGrounding.d.ts +18 -0
- package/dist/audit/validation/quoteGrounding.d.ts.map +1 -0
- package/dist/audit/validation/quoteGrounding.js +18 -0
- package/dist/audit/validation/quoteGrounding.js.map +1 -0
- package/dist/audit/validation/sessionConfig.d.ts +8 -0
- package/dist/audit/validation/sessionConfig.d.ts.map +1 -0
- package/dist/audit/validation/sessionConfig.js +334 -0
- package/dist/audit/validation/sessionConfig.js.map +1 -0
- package/dist/remediate/contractPipeline/artifactStore.d.ts +58 -0
- package/dist/remediate/contractPipeline/artifactStore.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/artifactStore.js +201 -0
- package/dist/remediate/contractPipeline/artifactStore.js.map +1 -0
- package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts +68 -0
- package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/cyclicSeamResolution.js +151 -0
- package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +1 -0
- package/dist/remediate/contractPipeline/derive.d.ts +88 -0
- package/dist/remediate/contractPipeline/derive.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/derive.js +216 -0
- package/dist/remediate/contractPipeline/derive.js.map +1 -0
- package/dist/remediate/contractPipeline/idRegistry.d.ts +49 -0
- package/dist/remediate/contractPipeline/idRegistry.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/idRegistry.js +57 -0
- package/dist/remediate/contractPipeline/idRegistry.js.map +1 -0
- package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +52 -0
- package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/reviewSnapshot.js +116 -0
- package/dist/remediate/contractPipeline/reviewSnapshot.js.map +1 -0
- package/dist/remediate/contractPipeline/semanticProjection.d.ts +46 -0
- package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +1 -0
- package/dist/remediate/contractPipeline/semanticProjection.js +102 -0
- package/dist/remediate/contractPipeline/semanticProjection.js.map +1 -0
- package/dist/remediate/coverage/findingLedger.d.ts +99 -0
- package/dist/remediate/coverage/findingLedger.d.ts.map +1 -0
- package/dist/remediate/coverage/findingLedger.js +110 -0
- package/dist/remediate/coverage/findingLedger.js.map +1 -0
- package/dist/remediate/dedup/crossLensDedup.d.ts +9 -0
- package/dist/remediate/dedup/crossLensDedup.d.ts.map +1 -0
- package/dist/remediate/dedup/crossLensDedup.js +191 -0
- package/dist/remediate/dedup/crossLensDedup.js.map +1 -0
- package/dist/remediate/dispatch/amendmentClaim.d.ts +41 -0
- package/dist/remediate/dispatch/amendmentClaim.d.ts.map +1 -0
- package/dist/remediate/dispatch/amendmentClaim.js +60 -0
- package/dist/remediate/dispatch/amendmentClaim.js.map +1 -0
- package/dist/remediate/dispatch/ownershipRegistry.d.ts +97 -0
- package/dist/remediate/dispatch/ownershipRegistry.d.ts.map +1 -0
- package/dist/remediate/dispatch/ownershipRegistry.js +217 -0
- package/dist/remediate/dispatch/ownershipRegistry.js.map +1 -0
- package/dist/remediate/findingFilter.d.ts +42 -0
- package/dist/remediate/findingFilter.d.ts.map +1 -0
- package/dist/remediate/findingFilter.js +62 -0
- package/dist/remediate/findingFilter.js.map +1 -0
- package/dist/remediate/index.d.ts +45 -0
- package/dist/remediate/index.d.ts.map +1 -0
- package/dist/remediate/index.js +434 -0
- package/dist/remediate/index.js.map +1 -0
- package/dist/remediate/intake.d.ts +168 -0
- package/dist/remediate/intake.d.ts.map +1 -0
- package/dist/remediate/intake.js +340 -0
- package/dist/remediate/intake.js.map +1 -0
- package/dist/remediate/intent/checkpointFilter.d.ts +14 -0
- package/dist/remediate/intent/checkpointFilter.d.ts.map +1 -0
- package/dist/remediate/intent/checkpointFilter.js +111 -0
- package/dist/remediate/intent/checkpointFilter.js.map +1 -0
- package/dist/remediate/phases/close.d.ts +32 -0
- package/dist/remediate/phases/close.d.ts.map +1 -0
- package/dist/remediate/phases/close.js +992 -0
- package/dist/remediate/phases/close.js.map +1 -0
- package/dist/remediate/phases/constants.d.ts +3 -0
- package/dist/remediate/phases/constants.d.ts.map +1 -0
- package/dist/remediate/phases/constants.js +3 -0
- package/dist/remediate/phases/constants.js.map +1 -0
- package/dist/remediate/phases/grounding.d.ts +77 -0
- package/dist/remediate/phases/grounding.d.ts.map +1 -0
- package/dist/remediate/phases/grounding.js +153 -0
- package/dist/remediate/phases/grounding.js.map +1 -0
- package/dist/remediate/phases/plan.d.ts +113 -0
- package/dist/remediate/phases/plan.d.ts.map +1 -0
- package/dist/remediate/phases/plan.js +988 -0
- package/dist/remediate/phases/plan.js.map +1 -0
- package/dist/remediate/phases/triage.d.ts +4 -0
- package/dist/remediate/phases/triage.d.ts.map +1 -0
- package/dist/remediate/phases/triage.js +175 -0
- package/dist/remediate/phases/triage.js.map +1 -0
- package/dist/remediate/phases/workerTasks.d.ts +21 -0
- package/dist/remediate/phases/workerTasks.d.ts.map +1 -0
- package/dist/remediate/phases/workerTasks.js +31 -0
- package/dist/remediate/phases/workerTasks.js.map +1 -0
- package/dist/remediate/providers/claudeCodeProvider.d.ts +12 -0
- package/dist/remediate/providers/claudeCodeProvider.d.ts.map +1 -0
- package/dist/remediate/providers/claudeCodeProvider.js +24 -0
- package/dist/remediate/providers/claudeCodeProvider.js.map +1 -0
- package/dist/remediate/providers/constants.d.ts +2 -0
- package/dist/remediate/providers/constants.d.ts.map +1 -0
- package/dist/remediate/providers/constants.js +2 -0
- package/dist/remediate/providers/constants.js.map +1 -0
- package/dist/remediate/providers/index.d.ts +15 -0
- package/dist/remediate/providers/index.d.ts.map +1 -0
- package/dist/remediate/providers/index.js +22 -0
- package/dist/remediate/providers/index.js.map +1 -0
- package/dist/remediate/providers/opencodeProvider.d.ts +5 -0
- package/dist/remediate/providers/opencodeProvider.d.ts.map +1 -0
- package/dist/remediate/providers/opencodeProvider.js +10 -0
- package/dist/remediate/providers/opencodeProvider.js.map +1 -0
- package/dist/remediate/quota/hostLimits.d.ts +8 -0
- package/dist/remediate/quota/hostLimits.d.ts.map +1 -0
- package/dist/remediate/quota/hostLimits.js +9 -0
- package/dist/remediate/quota/hostLimits.js.map +1 -0
- package/dist/remediate/quota/index.d.ts +8 -0
- package/dist/remediate/quota/index.d.ts.map +1 -0
- package/dist/remediate/quota/index.js +12 -0
- package/dist/remediate/quota/index.js.map +1 -0
- package/dist/remediate/review/reviewGate.d.ts +72 -0
- package/dist/remediate/review/reviewGate.d.ts.map +1 -0
- package/dist/remediate/review/reviewGate.js +112 -0
- package/dist/remediate/review/reviewGate.js.map +1 -0
- package/dist/remediate/review/reviewNecessity.d.ts +53 -0
- package/dist/remediate/review/reviewNecessity.d.ts.map +1 -0
- package/dist/remediate/review/reviewNecessity.js +129 -0
- package/dist/remediate/review/reviewNecessity.js.map +1 -0
- package/dist/remediate/state/closingActions.d.ts +3 -0
- package/dist/remediate/state/closingActions.d.ts.map +1 -0
- package/dist/remediate/state/closingActions.js +10 -0
- package/dist/remediate/state/closingActions.js.map +1 -0
- package/dist/remediate/state/itemStatus.d.ts +40 -0
- package/dist/remediate/state/itemStatus.d.ts.map +1 -0
- package/dist/remediate/state/itemStatus.js +138 -0
- package/dist/remediate/state/itemStatus.js.map +1 -0
- package/dist/remediate/state/store.d.ts +65 -0
- package/dist/remediate/state/store.d.ts.map +1 -0
- package/dist/remediate/state/store.js +141 -0
- package/dist/remediate/state/store.js.map +1 -0
- package/dist/remediate/state/types.d.ts +766 -0
- package/dist/remediate/state/types.d.ts.map +1 -0
- package/dist/remediate/state/types.js +122 -0
- package/dist/remediate/state/types.js.map +1 -0
- package/dist/remediate/steps/contractPipeline.d.ts +173 -0
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -0
- package/dist/remediate/steps/contractPipeline.js +1229 -0
- package/dist/remediate/steps/contractPipeline.js.map +1 -0
- package/dist/remediate/steps/contractPipelinePrompts.d.ts +72 -0
- package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -0
- package/dist/remediate/steps/contractPipelinePrompts.js +438 -0
- package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -0
- package/dist/remediate/steps/dispatch.d.ts +434 -0
- package/dist/remediate/steps/dispatch.d.ts.map +1 -0
- package/dist/remediate/steps/dispatch.js +2180 -0
- package/dist/remediate/steps/dispatch.js.map +1 -0
- package/dist/remediate/steps/intakeResolver.d.ts +32 -0
- package/dist/remediate/steps/intakeResolver.d.ts.map +1 -0
- package/dist/remediate/steps/intakeResolver.js +310 -0
- package/dist/remediate/steps/intakeResolver.js.map +1 -0
- package/dist/remediate/steps/leanFastPath.d.ts +49 -0
- package/dist/remediate/steps/leanFastPath.d.ts.map +1 -0
- package/dist/remediate/steps/leanFastPath.js +151 -0
- package/dist/remediate/steps/leanFastPath.js.map +1 -0
- package/dist/remediate/steps/nextStep.d.ts +323 -0
- package/dist/remediate/steps/nextStep.d.ts.map +1 -0
- package/dist/remediate/steps/nextStep.js +2721 -0
- package/dist/remediate/steps/nextStep.js.map +1 -0
- package/dist/remediate/steps/prompts.d.ts +26 -0
- package/dist/remediate/steps/prompts.d.ts.map +1 -0
- package/dist/remediate/steps/prompts.js +370 -0
- package/dist/remediate/steps/prompts.js.map +1 -0
- package/dist/remediate/steps/providerNodeDispatch.d.ts +42 -0
- package/dist/remediate/steps/providerNodeDispatch.d.ts.map +1 -0
- package/dist/remediate/steps/providerNodeDispatch.js +100 -0
- package/dist/remediate/steps/providerNodeDispatch.js.map +1 -0
- package/dist/remediate/steps/rollingSession.d.ts +84 -0
- package/dist/remediate/steps/rollingSession.d.ts.map +1 -0
- package/dist/remediate/steps/rollingSession.js +147 -0
- package/dist/remediate/steps/rollingSession.js.map +1 -0
- package/dist/remediate/steps/stepUtils.d.ts +63 -0
- package/dist/remediate/steps/stepUtils.d.ts.map +1 -0
- package/dist/remediate/steps/stepUtils.js +117 -0
- package/dist/remediate/steps/stepUtils.js.map +1 -0
- package/dist/remediate/steps/stepWriter.d.ts +27 -0
- package/dist/remediate/steps/stepWriter.d.ts.map +1 -0
- package/dist/remediate/steps/stepWriter.js +37 -0
- package/dist/remediate/steps/stepWriter.js.map +1 -0
- package/dist/remediate/steps/types.d.ts +83 -0
- package/dist/remediate/steps/types.d.ts.map +1 -0
- package/dist/remediate/steps/types.js +6 -0
- package/dist/remediate/steps/types.js.map +1 -0
- package/dist/remediate/types/options.d.ts +6 -0
- package/dist/remediate/types/options.d.ts.map +1 -0
- package/dist/remediate/types/options.js +2 -0
- package/dist/remediate/types/options.js.map +1 -0
- package/dist/remediate/types/workerSession.d.ts +36 -0
- package/dist/remediate/types/workerSession.d.ts.map +1 -0
- package/dist/remediate/types/workerSession.js +13 -0
- package/dist/remediate/types/workerSession.js.map +1 -0
- package/dist/remediate/utils/commands.d.ts +17 -0
- package/dist/remediate/utils/commands.d.ts.map +1 -0
- package/dist/remediate/utils/commands.js +26 -0
- package/dist/remediate/utils/commands.js.map +1 -0
- package/dist/remediate/utils/fileIntegrity.d.ts +27 -0
- package/dist/remediate/utils/fileIntegrity.d.ts.map +1 -0
- package/dist/remediate/utils/fileIntegrity.js +201 -0
- package/dist/remediate/utils/fileIntegrity.js.map +1 -0
- package/dist/remediate/utils/hostAssets.d.ts +18 -0
- package/dist/remediate/utils/hostAssets.d.ts.map +1 -0
- package/dist/remediate/utils/hostAssets.js +31 -0
- package/dist/remediate/utils/hostAssets.js.map +1 -0
- package/dist/remediate/validation/artifacts.d.ts +9 -0
- package/dist/remediate/validation/artifacts.d.ts.map +1 -0
- package/dist/remediate/validation/artifacts.js +316 -0
- package/dist/remediate/validation/artifacts.js.map +1 -0
- package/dist/remediate/validation/contractPipeline.d.ts +36 -0
- package/dist/remediate/validation/contractPipeline.d.ts.map +1 -0
- package/dist/remediate/validation/contractPipeline.js +569 -0
- package/dist/remediate/validation/contractPipeline.js.map +1 -0
- package/dist/remediate/validation/contractPipelineGates.d.ts +161 -0
- package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -0
- package/dist/remediate/validation/contractPipelineGates.js +739 -0
- package/dist/remediate/validation/contractPipelineGates.js.map +1 -0
- package/dist/remediate/validation/remediationState.d.ts +8 -0
- package/dist/remediate/validation/remediationState.d.ts.map +1 -0
- package/dist/remediate/validation/remediationState.js +187 -0
- package/dist/remediate/validation/remediationState.js.map +1 -0
- package/dist/shared/agentReflections.d.ts +61 -0
- package/dist/shared/agentReflections.d.ts.map +1 -0
- package/dist/shared/agentReflections.js +180 -0
- package/dist/shared/agentReflections.js.map +1 -0
- package/dist/shared/concurrency.d.ts +16 -0
- package/dist/shared/concurrency.d.ts.map +1 -0
- package/dist/shared/concurrency.js +34 -0
- package/dist/shared/concurrency.js.map +1 -0
- package/dist/shared/contracts.d.ts +2 -0
- package/dist/shared/contracts.d.ts.map +1 -0
- package/dist/shared/contracts.js +2 -0
- package/dist/shared/contracts.js.map +1 -0
- package/dist/shared/dispatch/rollingDispatch.d.ts +192 -0
- package/dist/shared/dispatch/rollingDispatch.d.ts.map +1 -0
- package/dist/shared/dispatch/rollingDispatch.js +389 -0
- package/dist/shared/dispatch/rollingDispatch.js.map +1 -0
- package/dist/shared/dispatch/tierRank.d.ts +53 -0
- package/dist/shared/dispatch/tierRank.d.ts.map +1 -0
- package/dist/shared/dispatch/tierRank.js +69 -0
- package/dist/shared/dispatch/tierRank.js.map +1 -0
- package/dist/shared/engine/obligationEngine.d.ts +159 -0
- package/dist/shared/engine/obligationEngine.d.ts.map +1 -0
- package/dist/shared/engine/obligationEngine.js +124 -0
- package/dist/shared/engine/obligationEngine.js.map +1 -0
- package/dist/shared/findingIdentitySignature.d.ts +82 -0
- package/dist/shared/findingIdentitySignature.d.ts.map +1 -0
- package/dist/shared/findingIdentitySignature.js +114 -0
- package/dist/shared/findingIdentitySignature.js.map +1 -0
- package/dist/shared/git.d.ts +18 -0
- package/dist/shared/git.d.ts.map +1 -0
- package/dist/shared/git.js +63 -0
- package/dist/shared/git.js.map +1 -0
- package/dist/shared/hash.d.ts +16 -0
- package/dist/shared/hash.d.ts.map +1 -0
- package/dist/shared/hash.js +36 -0
- package/dist/shared/hash.js.map +1 -0
- package/dist/shared/hostAssets.d.ts +40 -0
- package/dist/shared/hostAssets.d.ts.map +1 -0
- package/dist/shared/hostAssets.js +110 -0
- package/dist/shared/hostAssets.js.map +1 -0
- package/dist/shared/ids.d.ts +18 -0
- package/dist/shared/ids.d.ts.map +1 -0
- package/dist/shared/ids.js +27 -0
- package/dist/shared/ids.js.map +1 -0
- package/dist/shared/index.d.ts +150 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +112 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/intent/clauseInterpreter.d.ts +84 -0
- package/dist/shared/intent/clauseInterpreter.d.ts.map +1 -0
- package/dist/shared/intent/clauseInterpreter.js +183 -0
- package/dist/shared/intent/clauseInterpreter.js.map +1 -0
- package/dist/shared/intent/freeFormIntentInterpreter.d.ts +46 -0
- package/dist/shared/intent/freeFormIntentInterpreter.d.ts.map +1 -0
- package/dist/shared/intent/freeFormIntentInterpreter.js +126 -0
- package/dist/shared/intent/freeFormIntentInterpreter.js.map +1 -0
- package/dist/shared/intent/sharedIntentData.d.ts +16 -0
- package/dist/shared/intent/sharedIntentData.d.ts.map +1 -0
- package/dist/shared/intent/sharedIntentData.js +38 -0
- package/dist/shared/intent/sharedIntentData.js.map +1 -0
- package/dist/shared/io/auditToolsPaths.d.ts +36 -0
- package/dist/shared/io/auditToolsPaths.d.ts.map +1 -0
- package/dist/shared/io/auditToolsPaths.js +47 -0
- package/dist/shared/io/auditToolsPaths.js.map +1 -0
- package/dist/shared/io/json.d.ts +30 -0
- package/dist/shared/io/json.d.ts.map +1 -0
- package/dist/shared/io/json.js +183 -0
- package/dist/shared/io/json.js.map +1 -0
- package/dist/shared/io/stepContractWriter.d.ts +103 -0
- package/dist/shared/io/stepContractWriter.d.ts.map +1 -0
- package/dist/shared/io/stepContractWriter.js +85 -0
- package/dist/shared/io/stepContractWriter.js.map +1 -0
- package/dist/shared/observability/runLog.d.ts +37 -0
- package/dist/shared/observability/runLog.d.ts.map +1 -0
- package/dist/shared/observability/runLog.js +40 -0
- package/dist/shared/observability/runLog.js.map +1 -0
- package/dist/shared/opencodePermissions.d.ts +49 -0
- package/dist/shared/opencodePermissions.d.ts.map +1 -0
- package/dist/shared/opencodePermissions.js +118 -0
- package/dist/shared/opencodePermissions.js.map +1 -0
- package/dist/shared/parsing/stringAwareScanner.d.ts +32 -0
- package/dist/shared/parsing/stringAwareScanner.d.ts.map +1 -0
- package/dist/shared/parsing/stringAwareScanner.js +51 -0
- package/dist/shared/parsing/stringAwareScanner.js.map +1 -0
- package/dist/shared/prompts.d.ts +47 -0
- package/dist/shared/prompts.d.ts.map +1 -0
- package/dist/shared/prompts.js +41 -0
- package/dist/shared/prompts.js.map +1 -0
- package/dist/shared/providers/claudeCodeProvider.d.ts +56 -0
- package/dist/shared/providers/claudeCodeProvider.d.ts.map +1 -0
- package/dist/shared/providers/claudeCodeProvider.js +67 -0
- package/dist/shared/providers/claudeCodeProvider.js.map +1 -0
- package/dist/shared/providers/codexProvider.d.ts +37 -0
- package/dist/shared/providers/codexProvider.d.ts.map +1 -0
- package/dist/shared/providers/codexProvider.js +79 -0
- package/dist/shared/providers/codexProvider.js.map +1 -0
- package/dist/shared/providers/constants.d.ts +4 -0
- package/dist/shared/providers/constants.d.ts.map +1 -0
- package/dist/shared/providers/constants.js +4 -0
- package/dist/shared/providers/constants.js.map +1 -0
- package/dist/shared/providers/localSubprocessProvider.d.ts +10 -0
- package/dist/shared/providers/localSubprocessProvider.d.ts.map +1 -0
- package/dist/shared/providers/localSubprocessProvider.js +20 -0
- package/dist/shared/providers/localSubprocessProvider.js.map +1 -0
- package/dist/shared/providers/openAiCompatibleProvider.d.ts +62 -0
- package/dist/shared/providers/openAiCompatibleProvider.d.ts.map +1 -0
- package/dist/shared/providers/openAiCompatibleProvider.js +333 -0
- package/dist/shared/providers/openAiCompatibleProvider.js.map +1 -0
- package/dist/shared/providers/opencodeLaunch.d.ts +28 -0
- package/dist/shared/providers/opencodeLaunch.d.ts.map +1 -0
- package/dist/shared/providers/opencodeLaunch.js +39 -0
- package/dist/shared/providers/opencodeLaunch.js.map +1 -0
- package/dist/shared/providers/opencodeProvider.d.ts +19 -0
- package/dist/shared/providers/opencodeProvider.d.ts.map +1 -0
- package/dist/shared/providers/opencodeProvider.js +41 -0
- package/dist/shared/providers/opencodeProvider.js.map +1 -0
- package/dist/shared/providers/providerConfirmation.d.ts +56 -0
- package/dist/shared/providers/providerConfirmation.d.ts.map +1 -0
- package/dist/shared/providers/providerConfirmation.js +195 -0
- package/dist/shared/providers/providerConfirmation.js.map +1 -0
- package/dist/shared/providers/providerDiagnostics.d.ts +11 -0
- package/dist/shared/providers/providerDiagnostics.d.ts.map +1 -0
- package/dist/shared/providers/providerDiagnostics.js +28 -0
- package/dist/shared/providers/providerDiagnostics.js.map +1 -0
- package/dist/shared/providers/providerFactory.d.ts +72 -0
- package/dist/shared/providers/providerFactory.d.ts.map +1 -0
- package/dist/shared/providers/providerFactory.js +246 -0
- package/dist/shared/providers/providerFactory.js.map +1 -0
- package/dist/shared/providers/providerKeyedFactory.d.ts +14 -0
- package/dist/shared/providers/providerKeyedFactory.d.ts.map +1 -0
- package/dist/shared/providers/providerKeyedFactory.js +16 -0
- package/dist/shared/providers/providerKeyedFactory.js.map +1 -0
- package/dist/shared/providers/spawnLoggedCommand.d.ts +10 -0
- package/dist/shared/providers/spawnLoggedCommand.d.ts.map +1 -0
- package/dist/shared/providers/spawnLoggedCommand.js +304 -0
- package/dist/shared/providers/spawnLoggedCommand.js.map +1 -0
- package/dist/shared/providers/subprocessTemplateProvider.d.ts +19 -0
- package/dist/shared/providers/subprocessTemplateProvider.d.ts.map +1 -0
- package/dist/shared/providers/subprocessTemplateProvider.js +91 -0
- package/dist/shared/providers/subprocessTemplateProvider.js.map +1 -0
- package/dist/shared/providers/types.d.ts +43 -0
- package/dist/shared/providers/types.d.ts.map +1 -0
- package/dist/shared/providers/types.js +2 -0
- package/dist/shared/providers/types.js.map +1 -0
- package/dist/shared/providers/workerTaskLaunch.d.ts +32 -0
- package/dist/shared/providers/workerTaskLaunch.d.ts.map +1 -0
- package/dist/shared/providers/workerTaskLaunch.js +27 -0
- package/dist/shared/providers/workerTaskLaunch.js.map +1 -0
- package/dist/shared/quota/antigravityQuotaSource.d.ts +44 -0
- package/dist/shared/quota/antigravityQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/antigravityQuotaSource.js +101 -0
- package/dist/shared/quota/antigravityQuotaSource.js.map +1 -0
- package/dist/shared/quota/capacity.d.ts +283 -0
- package/dist/shared/quota/capacity.d.ts.map +1 -0
- package/dist/shared/quota/capacity.js +290 -0
- package/dist/shared/quota/capacity.js.map +1 -0
- package/dist/shared/quota/claudeCodeJsonLines.d.ts +15 -0
- package/dist/shared/quota/claudeCodeJsonLines.d.ts.map +1 -0
- package/dist/shared/quota/claudeCodeJsonLines.js +34 -0
- package/dist/shared/quota/claudeCodeJsonLines.js.map +1 -0
- package/dist/shared/quota/claudeOAuthQuotaSource.d.ts +56 -0
- package/dist/shared/quota/claudeOAuthQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/claudeOAuthQuotaSource.js +136 -0
- package/dist/shared/quota/claudeOAuthQuotaSource.js.map +1 -0
- package/dist/shared/quota/codexQuotaSource.d.ts +49 -0
- package/dist/shared/quota/codexQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/codexQuotaSource.js +96 -0
- package/dist/shared/quota/codexQuotaSource.js.map +1 -0
- package/dist/shared/quota/compositeQuotaSource.d.ts +29 -0
- package/dist/shared/quota/compositeQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/compositeQuotaSource.js +58 -0
- package/dist/shared/quota/compositeQuotaSource.js.map +1 -0
- package/dist/shared/quota/copilotQuotaSource.d.ts +57 -0
- package/dist/shared/quota/copilotQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/copilotQuotaSource.js +141 -0
- package/dist/shared/quota/copilotQuotaSource.js.map +1 -0
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts +7 -0
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts.map +1 -0
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js +33 -0
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js.map +1 -0
- package/dist/shared/quota/errorParsers/genericErrorParser.d.ts +10 -0
- package/dist/shared/quota/errorParsers/genericErrorParser.d.ts.map +1 -0
- package/dist/shared/quota/errorParsers/genericErrorParser.js +8 -0
- package/dist/shared/quota/errorParsers/genericErrorParser.js.map +1 -0
- package/dist/shared/quota/errorParsers/index.d.ts +6 -0
- package/dist/shared/quota/errorParsers/index.d.ts.map +1 -0
- package/dist/shared/quota/errorParsers/index.js +16 -0
- package/dist/shared/quota/errorParsers/index.js.map +1 -0
- package/dist/shared/quota/errorParsing.d.ts +8 -0
- package/dist/shared/quota/errorParsing.d.ts.map +1 -0
- package/dist/shared/quota/errorParsing.js +129 -0
- package/dist/shared/quota/errorParsing.js.map +1 -0
- package/dist/shared/quota/fileLock.d.ts +9 -0
- package/dist/shared/quota/fileLock.d.ts.map +1 -0
- package/dist/shared/quota/fileLock.js +202 -0
- package/dist/shared/quota/fileLock.js.map +1 -0
- package/dist/shared/quota/hostLimits.d.ts +16 -0
- package/dist/shared/quota/hostLimits.d.ts.map +1 -0
- package/dist/shared/quota/hostLimits.js +57 -0
- package/dist/shared/quota/hostLimits.js.map +1 -0
- package/dist/shared/quota/httpQuotaSource.d.ts +87 -0
- package/dist/shared/quota/httpQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/httpQuotaSource.js +90 -0
- package/dist/shared/quota/httpQuotaSource.js.map +1 -0
- package/dist/shared/quota/learnedQuotaSource.d.ts +8 -0
- package/dist/shared/quota/learnedQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/learnedQuotaSource.js +26 -0
- package/dist/shared/quota/learnedQuotaSource.js.map +1 -0
- package/dist/shared/quota/limits.d.ts +35 -0
- package/dist/shared/quota/limits.d.ts.map +1 -0
- package/dist/shared/quota/limits.js +110 -0
- package/dist/shared/quota/limits.js.map +1 -0
- package/dist/shared/quota/openCodeQuotaSource.d.ts +18 -0
- package/dist/shared/quota/openCodeQuotaSource.d.ts.map +1 -0
- package/dist/shared/quota/openCodeQuotaSource.js +84 -0
- package/dist/shared/quota/openCodeQuotaSource.js.map +1 -0
- package/dist/shared/quota/quotaSource.d.ts +29 -0
- package/dist/shared/quota/quotaSource.d.ts.map +1 -0
- package/dist/shared/quota/quotaSource.js +12 -0
- package/dist/shared/quota/quotaSource.js.map +1 -0
- package/dist/shared/quota/rollingEngine.d.ts +130 -0
- package/dist/shared/quota/rollingEngine.d.ts.map +1 -0
- package/dist/shared/quota/rollingEngine.js +153 -0
- package/dist/shared/quota/rollingEngine.js.map +1 -0
- package/dist/shared/quota/scheduler.d.ts +94 -0
- package/dist/shared/quota/scheduler.d.ts.map +1 -0
- package/dist/shared/quota/scheduler.js +313 -0
- package/dist/shared/quota/scheduler.js.map +1 -0
- package/dist/shared/quota/slidingWindow.d.ts +5 -0
- package/dist/shared/quota/slidingWindow.d.ts.map +1 -0
- package/dist/shared/quota/slidingWindow.js +29 -0
- package/dist/shared/quota/slidingWindow.js.map +1 -0
- package/dist/shared/quota/state.d.ts +27 -0
- package/dist/shared/quota/state.d.ts.map +1 -0
- package/dist/shared/quota/state.js +204 -0
- package/dist/shared/quota/state.js.map +1 -0
- package/dist/shared/quota/types.d.ts +109 -0
- package/dist/shared/quota/types.d.ts.map +1 -0
- package/dist/shared/quota/types.js +56 -0
- package/dist/shared/quota/types.js.map +1 -0
- package/dist/shared/reReview/projectionDiff.d.ts +65 -0
- package/dist/shared/reReview/projectionDiff.d.ts.map +1 -0
- package/dist/shared/reReview/projectionDiff.js +144 -0
- package/dist/shared/reReview/projectionDiff.js.map +1 -0
- package/dist/shared/rolling/pausedState.d.ts +109 -0
- package/dist/shared/rolling/pausedState.d.ts.map +1 -0
- package/dist/shared/rolling/pausedState.js +100 -0
- package/dist/shared/rolling/pausedState.js.map +1 -0
- package/dist/shared/tokens.d.ts +24 -0
- package/dist/shared/tokens.d.ts.map +1 -0
- package/dist/shared/tokens.js +54 -0
- package/dist/shared/tokens.js.map +1 -0
- package/dist/shared/tooling/allowlistedExec.d.ts +45 -0
- package/dist/shared/tooling/allowlistedExec.d.ts.map +1 -0
- package/dist/shared/tooling/allowlistedExec.js +340 -0
- package/dist/shared/tooling/allowlistedExec.js.map +1 -0
- package/dist/shared/tooling/analyzerDeps.d.ts +65 -0
- package/dist/shared/tooling/analyzerDeps.d.ts.map +1 -0
- package/dist/shared/tooling/analyzerDeps.js +130 -0
- package/dist/shared/tooling/analyzerDeps.js.map +1 -0
- package/dist/shared/tooling/exec.d.ts +99 -0
- package/dist/shared/tooling/exec.d.ts.map +1 -0
- package/dist/shared/tooling/exec.js +217 -0
- package/dist/shared/tooling/exec.js.map +1 -0
- package/dist/shared/tooling/repoConventions.d.ts +23 -0
- package/dist/shared/tooling/repoConventions.d.ts.map +1 -0
- package/dist/shared/tooling/repoConventions.js +177 -0
- package/dist/shared/tooling/repoConventions.js.map +1 -0
- package/dist/shared/tooling/testCommand.d.ts +17 -0
- package/dist/shared/tooling/testCommand.d.ts.map +1 -0
- package/dist/shared/tooling/testCommand.js +106 -0
- package/dist/shared/tooling/testCommand.js.map +1 -0
- package/dist/shared/types/accessDeclaration.d.ts +16 -0
- package/dist/shared/types/accessDeclaration.d.ts.map +1 -0
- package/dist/shared/types/accessDeclaration.js +9 -0
- package/dist/shared/types/accessDeclaration.js.map +1 -0
- package/dist/shared/types/contractPipeline/design.d.ts +74 -0
- package/dist/shared/types/contractPipeline/design.d.ts.map +1 -0
- package/dist/shared/types/contractPipeline/design.js +10 -0
- package/dist/shared/types/contractPipeline/design.js.map +1 -0
- package/dist/shared/types/contractPipeline/goal.d.ts +41 -0
- package/dist/shared/types/contractPipeline/goal.d.ts.map +1 -0
- package/dist/shared/types/contractPipeline/goal.js +10 -0
- package/dist/shared/types/contractPipeline/goal.js.map +1 -0
- package/dist/shared/types/contractPipeline/implementation.d.ts +64 -0
- package/dist/shared/types/contractPipeline/implementation.d.ts.map +1 -0
- package/dist/shared/types/contractPipeline/implementation.js +8 -0
- package/dist/shared/types/contractPipeline/implementation.js.map +1 -0
- package/dist/shared/types/contractPipeline/obligations.d.ts +141 -0
- package/dist/shared/types/contractPipeline/obligations.d.ts.map +1 -0
- package/dist/shared/types/contractPipeline/obligations.js +16 -0
- package/dist/shared/types/contractPipeline/obligations.js.map +1 -0
- package/dist/shared/types/contractPipeline/verification.d.ts +64 -0
- package/dist/shared/types/contractPipeline/verification.d.ts.map +1 -0
- package/dist/shared/types/contractPipeline/verification.js +10 -0
- package/dist/shared/types/contractPipeline/verification.js.map +1 -0
- package/dist/shared/types/contractPipeline.d.ts +36 -0
- package/dist/shared/types/contractPipeline.d.ts.map +1 -0
- package/dist/shared/types/contractPipeline.js +31 -0
- package/dist/shared/types/contractPipeline.js.map +1 -0
- package/dist/shared/types/disposition.d.ts +46 -0
- package/dist/shared/types/disposition.d.ts.map +1 -0
- package/dist/shared/types/disposition.js +22 -0
- package/dist/shared/types/disposition.js.map +1 -0
- package/dist/shared/types/finding.d.ts +1463 -0
- package/dist/shared/types/finding.d.ts.map +1 -0
- package/dist/shared/types/finding.js +234 -0
- package/dist/shared/types/finding.js.map +1 -0
- package/dist/shared/types/flows.d.ts +84 -0
- package/dist/shared/types/flows.d.ts.map +1 -0
- package/dist/shared/types/flows.js +23 -0
- package/dist/shared/types/flows.js.map +1 -0
- package/dist/shared/types/graph.d.ts +359 -0
- package/dist/shared/types/graph.d.ts.map +1 -0
- package/dist/shared/types/graph.js +38 -0
- package/dist/shared/types/graph.js.map +1 -0
- package/dist/shared/types/intentCheckpoint.d.ts +95 -0
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -0
- package/dist/shared/types/intentCheckpoint.js +2 -0
- package/dist/shared/types/intentCheckpoint.js.map +1 -0
- package/dist/shared/types/intentInterpretation.d.ts +57 -0
- package/dist/shared/types/intentInterpretation.d.ts.map +1 -0
- package/dist/shared/types/intentInterpretation.js +20 -0
- package/dist/shared/types/intentInterpretation.js.map +1 -0
- package/dist/shared/types/lens.d.ts +38 -0
- package/dist/shared/types/lens.d.ts.map +1 -0
- package/dist/shared/types/lens.js +80 -0
- package/dist/shared/types/lens.js.map +1 -0
- package/dist/shared/types/obligationLedger.d.ts +35 -0
- package/dist/shared/types/obligationLedger.d.ts.map +1 -0
- package/dist/shared/types/obligationLedger.js +77 -0
- package/dist/shared/types/obligationLedger.js.map +1 -0
- package/dist/shared/types/providerConfirmation.d.ts +51 -0
- package/dist/shared/types/providerConfirmation.d.ts.map +1 -0
- package/dist/shared/types/providerConfirmation.js +19 -0
- package/dist/shared/types/providerConfirmation.js.map +1 -0
- package/dist/shared/types/remediationOutcome.d.ts +41 -0
- package/dist/shared/types/remediationOutcome.d.ts.map +1 -0
- package/dist/shared/types/remediationOutcome.js +7 -0
- package/dist/shared/types/remediationOutcome.js.map +1 -0
- package/dist/shared/types/risk.d.ts +52 -0
- package/dist/shared/types/risk.d.ts.map +1 -0
- package/dist/shared/types/risk.js +17 -0
- package/dist/shared/types/risk.js.map +1 -0
- package/dist/shared/types/rollingDispatch.d.ts +61 -0
- package/dist/shared/types/rollingDispatch.d.ts.map +1 -0
- package/dist/shared/types/rollingDispatch.js +19 -0
- package/dist/shared/types/rollingDispatch.js.map +1 -0
- package/dist/shared/types/runLedger.d.ts +18 -0
- package/dist/shared/types/runLedger.d.ts.map +1 -0
- package/dist/shared/types/runLedger.js +7 -0
- package/dist/shared/types/runLedger.js.map +1 -0
- package/dist/shared/types/sessionConfig.d.ts +294 -0
- package/dist/shared/types/sessionConfig.d.ts.map +1 -0
- package/dist/shared/types/sessionConfig.js +44 -0
- package/dist/shared/types/sessionConfig.js.map +1 -0
- package/dist/shared/types/stepContract.d.ts +10 -0
- package/dist/shared/types/stepContract.d.ts.map +1 -0
- package/dist/shared/types/stepContract.js +4 -0
- package/dist/shared/types/stepContract.js.map +1 -0
- package/dist/shared/types/surfaces.d.ts +73 -0
- package/dist/shared/types/surfaces.d.ts.map +1 -0
- package/dist/shared/types/surfaces.js +21 -0
- package/dist/shared/types/surfaces.js.map +1 -0
- package/dist/shared/validation/basic.d.ts +24 -0
- package/dist/shared/validation/basic.d.ts.map +1 -0
- package/dist/shared/validation/basic.js +57 -0
- package/dist/shared/validation/basic.js.map +1 -0
- package/dist/shared/validation/findingGrounding.d.ts +45 -0
- package/dist/shared/validation/findingGrounding.d.ts.map +1 -0
- package/dist/shared/validation/findingGrounding.js +103 -0
- package/dist/shared/validation/findingGrounding.js.map +1 -0
- package/dist/shared/validation/findingsReport.d.ts +42 -0
- package/dist/shared/validation/findingsReport.d.ts.map +1 -0
- package/dist/shared/validation/findingsReport.js +76 -0
- package/dist/shared/validation/findingsReport.js.map +1 -0
- package/dist/shared/validation/sessionConfig.d.ts +22 -0
- package/dist/shared/validation/sessionConfig.d.ts.map +1 -0
- package/dist/shared/validation/sessionConfig.js +38 -0
- package/dist/shared/validation/sessionConfig.js.map +1 -0
- package/docs/audit-pkg/contracts.md +227 -0
- package/docs/audit-pkg/development.md +112 -0
- package/docs/audit-pkg/history.md +66 -0
- package/docs/audit-pkg/operator-guide.md +204 -0
- package/docs/audit-pkg/product.md +119 -0
- package/docs/audit-pkg/release.md +131 -0
- package/opencode.json +159 -0
- package/package.json +104 -0
- package/remediate-code.mjs +116 -0
- package/schemas/audit_result.schema.json +510 -0
- package/schemas/audit_results.schema.json +514 -0
- package/schemas/audit_task.schema.json +127 -0
- package/schemas/finding.schema.json +261 -0
- package/schemas/lens.schema.json +19 -0
- package/scripts/audit/postinstall.mjs +385 -0
- package/scripts/postinstall.mjs +24 -0
- package/scripts/remediate/postinstall.mjs +387 -0
- package/skills/audit-code/SKILL.md +166 -0
- package/skills/audit-code/agents/openai.yaml +4 -0
- package/skills/audit-code/audit-code.prompt.md +112 -0
- package/skills/audit-code/opencode-command-template.txt +13 -0
- package/skills/remediate-code/SKILL.md +90 -0
- package/skills/remediate-code/agents/openai.yaml +4 -0
- package/skills/remediate-code/remediate-code.prompt.md +94 -0
- package/templates/AGENTS.remediate-code.md +6 -0
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracted helpers for the next-step command.
|
|
3
|
+
*
|
|
4
|
+
* Splitting these out of nextStepCommand.ts reduces that file to just the
|
|
5
|
+
* top-level cmdNextStep dispatcher, keeping each module focused on a single
|
|
6
|
+
* concern.
|
|
7
|
+
*/
|
|
8
|
+
import { unlink } from "node:fs/promises";
|
|
9
|
+
import { dirname, join } from "node:path";
|
|
10
|
+
import { advance, isFileMissingError, readJsonFile, writeJsonFile, } from "audit-tools/shared";
|
|
11
|
+
import { loadArtifactBundle, promoteFinalAuditReport, writeCoreArtifacts, AUDIT_REPORT_FILENAME, } from "../io/artifacts.js";
|
|
12
|
+
import { advanceAudit } from "../orchestrator/advance.js";
|
|
13
|
+
import { groundDesignFindings } from "../validation/designFindingGrounding.js";
|
|
14
|
+
import { captureDesignReviewSnapshot, isDesignReviewStale, } from "../orchestrator/designReviewSnapshot.js";
|
|
15
|
+
import { computeArtifactStateSignature } from "../orchestrator/artifactMetadata.js";
|
|
16
|
+
import { decideNextStep, PRIORITY } from "../orchestrator/nextStep.js";
|
|
17
|
+
import { isHostDelegationExecutor } from "../orchestrator/executors.js";
|
|
18
|
+
import { deriveAuditState } from "../orchestrator/state.js";
|
|
19
|
+
import { checkFileIntegrity } from "../orchestrator/fileIntegrity.js";
|
|
20
|
+
import { collectLowConfidenceEdges, } from "../orchestrator/edgeReasoning.js";
|
|
21
|
+
import { buildPathLookup } from "../extractors/graph.js";
|
|
22
|
+
import { buildDispositionMap } from "../extractors/disposition.js";
|
|
23
|
+
import { resolveAnalyzerPlan, needsInstallDecision, } from "../extractors/analyzers/registry.js";
|
|
24
|
+
import { persistAnalyzerSettings, } from "../supervisor/sessionConfig.js";
|
|
25
|
+
import { LOCAL_SUBPROCESS_PROVIDER_NAME } from "../providers/constants.js";
|
|
26
|
+
import { clearDispatchFiles } from "../io/runArtifacts.js";
|
|
27
|
+
import { runAuditStep } from "./auditStep.js";
|
|
28
|
+
import { writeHandoffOnly, ensureSemanticReviewRun, materializeReviewRun, } from "./reviewRun.js";
|
|
29
|
+
import { buildPendingAuditTasks } from "./dispatch.js";
|
|
30
|
+
import { driveRollingAuditDispatch, resolveAuditRollingEngineEnabled, resolvesToInProcessDispatchProvider, } from "./rollingAuditDispatch.js";
|
|
31
|
+
// ── Incoming-artifact helper ──────────────────────────────────────────────────
|
|
32
|
+
/**
|
|
33
|
+
* Read a JSON file from the `incoming/` subdirectory of `artifactsDir`.
|
|
34
|
+
* Returns `{ value, path }` when the file exists and parses successfully.
|
|
35
|
+
* Returns `undefined` when the file is absent (ENOENT-family errors).
|
|
36
|
+
* Re-throws all other IO errors unchanged.
|
|
37
|
+
*/
|
|
38
|
+
export async function tryConsumeIncoming(artifactsDir, filename) {
|
|
39
|
+
const filePath = join(artifactsDir, "incoming", filename);
|
|
40
|
+
try {
|
|
41
|
+
const value = await readJsonFile(filePath);
|
|
42
|
+
return { value, path: filePath };
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
if (isFileMissingError(error))
|
|
46
|
+
return undefined;
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Finalization thrashing tolerance (ARC-b8fed771 / the finalization-cycle guard).
|
|
52
|
+
* The deterministic fold may legitimately revisit a prior artifact state a bounded
|
|
53
|
+
* number of times (e.g. a runtime_validation <-> synthesis ping-pong, or
|
|
54
|
+
* filesystem-retry revision churn) before the canonical report is rendered; only
|
|
55
|
+
* outrunning distinct states by THIS many revisits is a non-converging cycle. Kept
|
|
56
|
+
* a single named constant — never inline the literal (HANDOFF approach-B mandate:
|
|
57
|
+
* no magic numbers).
|
|
58
|
+
*/
|
|
59
|
+
export const FINALIZATION_CYCLE_TOLERANCE = 16;
|
|
60
|
+
// ── Extracted helpers ─────────────────────────────────────────────────────────
|
|
61
|
+
/**
|
|
62
|
+
* Build the terminal step for a deterministic fold that has stopped advancing
|
|
63
|
+
* (no actionable obligation, or a cycle guard fired). A rendered report is the
|
|
64
|
+
* deliverable: if synthesis already produced one — or the state is formally
|
|
65
|
+
* complete — present it instead of reporting the stopped fold as a bare
|
|
66
|
+
* "blocked" failure. A completed audit must never surface as blocked just
|
|
67
|
+
* because finalization kept churning (e.g. a runtime_validation <-> synthesis
|
|
68
|
+
* ping-pong, or revision churn from filesystem retries) after the report was
|
|
69
|
+
* written. With no report yet, the stop is a genuine block.
|
|
70
|
+
*/
|
|
71
|
+
export async function buildTerminalStep(params, bundle, state, blockedReason) {
|
|
72
|
+
const reportRendered = state.status === "complete" || Boolean(bundle.audit_report);
|
|
73
|
+
await writeHandoffOnly({
|
|
74
|
+
root: params.root,
|
|
75
|
+
artifactsDir: params.artifactsDir,
|
|
76
|
+
bundle,
|
|
77
|
+
audit_state: state,
|
|
78
|
+
progress_summary: reportRendered && state.status !== "complete"
|
|
79
|
+
? `Audit report already rendered; ending run. ${blockedReason}`
|
|
80
|
+
: blockedReason,
|
|
81
|
+
providerName: LOCAL_SUBPROCESS_PROVIDER_NAME,
|
|
82
|
+
});
|
|
83
|
+
if (!reportRendered) {
|
|
84
|
+
return { kind: "blocked", state, bundle, reason: blockedReason };
|
|
85
|
+
}
|
|
86
|
+
const promoted = await promoteFinalAuditReport({
|
|
87
|
+
artifactsDir: params.artifactsDir,
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
kind: "complete",
|
|
91
|
+
state,
|
|
92
|
+
bundle,
|
|
93
|
+
finalReportPath: promoted.promoted
|
|
94
|
+
? join(dirname(params.artifactsDir), AUDIT_REPORT_FILENAME)
|
|
95
|
+
: join(params.artifactsDir, AUDIT_REPORT_FILENAME),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Handle the `graph_enrichment_executor` incoming-artifact polling block.
|
|
100
|
+
* Checks for pending analyzer install decisions and edge-reasoning results.
|
|
101
|
+
* Returns an action object:
|
|
102
|
+
* - `continue` → caller should keep folding (already consumed an artifact).
|
|
103
|
+
* - `return` → caller should emit the embedded result to cmdNextStep.
|
|
104
|
+
* - `fallthrough` → no incoming artifacts; run the deterministic executor.
|
|
105
|
+
*/
|
|
106
|
+
export async function handleGraphEnrichmentBranch(params, bundle, state, analyzersRef) {
|
|
107
|
+
const includedFiles = bundle.repo_manifest
|
|
108
|
+
? [
|
|
109
|
+
...new Set(buildPathLookup(bundle.repo_manifest, buildDispositionMap(bundle.file_disposition)).values()),
|
|
110
|
+
]
|
|
111
|
+
: [];
|
|
112
|
+
const plan = resolveAnalyzerPlan(params.root, analyzersRef.value, includedFiles);
|
|
113
|
+
const unresolved = plan.filter(needsInstallDecision);
|
|
114
|
+
if (unresolved.length > 0) {
|
|
115
|
+
const incoming = await tryConsumeIncoming(params.artifactsDir, "analyzer-decisions.json");
|
|
116
|
+
if (incoming && incoming.value !== null && typeof incoming.value === "object") {
|
|
117
|
+
const settings = {};
|
|
118
|
+
for (const [id, value] of Object.entries(incoming.value)) {
|
|
119
|
+
if (value === "ephemeral" ||
|
|
120
|
+
value === "permanent" ||
|
|
121
|
+
value === "skip" ||
|
|
122
|
+
value === "repo" ||
|
|
123
|
+
value === "auto") {
|
|
124
|
+
settings[id] = value;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (Object.keys(settings).length > 0) {
|
|
128
|
+
const merged = await persistAnalyzerSettings(params.artifactsDir, settings);
|
|
129
|
+
analyzersRef.value = merged.analyzers;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
// All entries in analyzer-decisions.json failed the recognized-value
|
|
133
|
+
// check (ephemeral|permanent|skip|repo|auto). Emit a diagnostic so the
|
|
134
|
+
// operator knows why no settings were applied (COR-03418a9f fix).
|
|
135
|
+
const invalidEntries = Object.keys(incoming.value).join(", ") || "(none)";
|
|
136
|
+
process.stderr.write(`[audit-code] analyzer-decisions.json ignored: no recognized values (got: ${invalidEntries}). ` +
|
|
137
|
+
`Valid values are: ephemeral, permanent, skip, repo, auto.\n`);
|
|
138
|
+
}
|
|
139
|
+
await unlink(incoming.path).catch(() => { });
|
|
140
|
+
return { action: "continue" };
|
|
141
|
+
}
|
|
142
|
+
return { action: "return", result: { kind: "analyzer_install", state, bundle, unresolved } };
|
|
143
|
+
}
|
|
144
|
+
// Phase 4B — optional edge-reasoning producing turn. Once analyzer installs
|
|
145
|
+
// are resolved, if the flag is on and the floor carries low-confidence
|
|
146
|
+
// (< 0.65) edges, emit one bounded host turn (subagent dispatch or a single
|
|
147
|
+
// host step) to produce reason rewrites, then re-run. The enrichment
|
|
148
|
+
// executor applies the host-supplied rewrites in the SAME advanceAudit call
|
|
149
|
+
// that merges analyzer edges and writes analyzer_capability, so graph_bundle
|
|
150
|
+
// and its marker stay revision-consistent (no staleness loop). Flag off or
|
|
151
|
+
// no candidates → fall through and run the executor with no rewrites.
|
|
152
|
+
if (params.graphLlmEdgeReasoning === true && bundle.graph_bundle) {
|
|
153
|
+
const candidates = collectLowConfidenceEdges(bundle.graph_bundle);
|
|
154
|
+
if (candidates.length > 0) {
|
|
155
|
+
const edgeReasoningIncoming = await tryConsumeIncoming(params.artifactsDir, "edge-reasoning.json");
|
|
156
|
+
if (edgeReasoningIncoming) {
|
|
157
|
+
await runAuditStep({
|
|
158
|
+
root: params.root,
|
|
159
|
+
artifactsDir: params.artifactsDir,
|
|
160
|
+
analyzers: analyzersRef.value,
|
|
161
|
+
graphLlmEdgeReasoning: true,
|
|
162
|
+
edgeReasoningResultsPath: edgeReasoningIncoming.path,
|
|
163
|
+
since: params.since,
|
|
164
|
+
});
|
|
165
|
+
await unlink(edgeReasoningIncoming.path).catch(() => { });
|
|
166
|
+
return { action: "continue" };
|
|
167
|
+
}
|
|
168
|
+
return { action: "return", result: { kind: "edge_reasoning", state, bundle, candidates } };
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
// No undecided installs (and no pending edge reasoning): fall through to run
|
|
172
|
+
// the executor below (it installs for ephemeral/permanent, uses repo/cache,
|
|
173
|
+
// skips the rest).
|
|
174
|
+
return { action: "fallthrough" };
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Handle the `design_review_contract` or `design_review_conceptual` incoming-artifact
|
|
178
|
+
* polling blocks. Checks for contract and/or conceptual findings files independently.
|
|
179
|
+
*
|
|
180
|
+
* Returns:
|
|
181
|
+
* - `continue` → one or both incoming files were consumed; keep folding.
|
|
182
|
+
* - `design_review_parallel` → both passes still needed; dispatch two subagents.
|
|
183
|
+
* - `design_review_contract` → only contract pass still needed.
|
|
184
|
+
* - `design_review_conceptual` → only conceptual pass still needed.
|
|
185
|
+
*
|
|
186
|
+
* Also handles legacy `design-review-findings.json` for backward compatibility.
|
|
187
|
+
*/
|
|
188
|
+
/** Whether a completed design-review pass has gone stale vs. its snapshot. */
|
|
189
|
+
function passIsStale(bundle, pass) {
|
|
190
|
+
const snapshot = bundle.design_review_snapshots?.[pass];
|
|
191
|
+
return snapshot ? isDesignReviewStale(snapshot, bundle) : false;
|
|
192
|
+
}
|
|
193
|
+
export async function handleDesignReviewBranch(params, bundle, state) {
|
|
194
|
+
const existing = bundle.design_assessment;
|
|
195
|
+
// Legacy: consume old combined findings file. Always unlink when present to
|
|
196
|
+
// prevent accumulation, even when design_assessment is absent (COR-68f07c3e).
|
|
197
|
+
const legacyIncoming = await tryConsumeIncoming(params.artifactsDir, "design-review-findings.json");
|
|
198
|
+
if (legacyIncoming) {
|
|
199
|
+
await unlink(legacyIncoming.path).catch(() => { });
|
|
200
|
+
if (Array.isArray(legacyIncoming.value) && existing) {
|
|
201
|
+
existing.review_findings = groundDesignFindings(legacyIncoming.value, bundle.repo_manifest);
|
|
202
|
+
existing.reviewed = true;
|
|
203
|
+
await writeJsonFile(join(params.artifactsDir, "design_assessment.json"), existing);
|
|
204
|
+
return { action: "continue" };
|
|
205
|
+
}
|
|
206
|
+
// File consumed (deleted) but no target to merge into — keep folding.
|
|
207
|
+
return { action: "continue" };
|
|
208
|
+
}
|
|
209
|
+
// New: consume contract-findings and/or conceptual-findings independently.
|
|
210
|
+
const contractIncoming = await tryConsumeIncoming(params.artifactsDir, "design-review-contract-findings.json");
|
|
211
|
+
const conceptualIncoming = await tryConsumeIncoming(params.artifactsDir, "design-review-conceptual-findings.json");
|
|
212
|
+
let consumed = false;
|
|
213
|
+
// Always delete incoming files when present; only merge data when existing
|
|
214
|
+
// design_assessment is present (COR-68f07c3e).
|
|
215
|
+
if (contractIncoming) {
|
|
216
|
+
await unlink(contractIncoming.path).catch(() => { });
|
|
217
|
+
if (Array.isArray(contractIncoming.value) && existing) {
|
|
218
|
+
existing.contract_findings = groundDesignFindings(contractIncoming.value, bundle.repo_manifest);
|
|
219
|
+
existing.contract_reviewed = true;
|
|
220
|
+
consumed = true;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (conceptualIncoming) {
|
|
224
|
+
await unlink(conceptualIncoming.path).catch(() => { });
|
|
225
|
+
if (Array.isArray(conceptualIncoming.value) && existing) {
|
|
226
|
+
existing.conceptual_findings = groundDesignFindings(conceptualIncoming.value, bundle.repo_manifest);
|
|
227
|
+
existing.conceptual_reviewed = true;
|
|
228
|
+
consumed = true;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (consumed && existing) {
|
|
232
|
+
await writeJsonFile(join(params.artifactsDir, "design_assessment.json"), existing);
|
|
233
|
+
// Snapshot each just-completed pass (B2 parity port): record the verdict +
|
|
234
|
+
// the semantic projection of the structural inputs it reviewed, so a later
|
|
235
|
+
// upstream change re-stales the pass and the re-emit can be diff-scoped
|
|
236
|
+
// rather than a blind full re-run. Capture after the design_assessment write
|
|
237
|
+
// so the projection reflects the persisted findings.
|
|
238
|
+
const reviewedAt = new Date().toISOString();
|
|
239
|
+
if (contractIncoming) {
|
|
240
|
+
await captureDesignReviewSnapshot(params.artifactsDir, "contract", existing.contract_findings ?? [], bundle, reviewedAt);
|
|
241
|
+
}
|
|
242
|
+
if (conceptualIncoming) {
|
|
243
|
+
await captureDesignReviewSnapshot(params.artifactsDir, "conceptual", existing.conceptual_findings ?? [], bundle, reviewedAt);
|
|
244
|
+
}
|
|
245
|
+
return { action: "continue" };
|
|
246
|
+
}
|
|
247
|
+
// Determine which passes still need to run. A completed pass whose snapshot has
|
|
248
|
+
// gone stale (a structural input changed in projection) is NOT done — it must
|
|
249
|
+
// re-run as a diff-based re-review. This mirrors the obligation staleness in
|
|
250
|
+
// `designReviewPassState`.
|
|
251
|
+
const contractDone = existing?.contract_reviewed === true && !passIsStale(bundle, "contract");
|
|
252
|
+
const conceptualDone = existing?.conceptual_reviewed === true && !passIsStale(bundle, "conceptual");
|
|
253
|
+
if (!contractDone && !conceptualDone) {
|
|
254
|
+
return { action: "return", result: { kind: "design_review_parallel", state, bundle } };
|
|
255
|
+
}
|
|
256
|
+
if (!contractDone) {
|
|
257
|
+
return { action: "return", result: { kind: "design_review_contract", state, bundle } };
|
|
258
|
+
}
|
|
259
|
+
if (!conceptualDone) {
|
|
260
|
+
return { action: "return", result: { kind: "design_review_conceptual", state, bundle } };
|
|
261
|
+
}
|
|
262
|
+
// Both done — should not normally reach here (obligations would be satisfied).
|
|
263
|
+
return { action: "continue" };
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Handle the `synthesis_narrative_executor` incoming-artifact polling block.
|
|
267
|
+
* Returns:
|
|
268
|
+
* - `continue` → an incoming narrative file was consumed + applied (progress
|
|
269
|
+
* made); re-scan on the reloaded bundle.
|
|
270
|
+
* - `return` → a host turn is still needed (narrative enabled, none supplied
|
|
271
|
+
* yet); emit the synthesis_narrative step.
|
|
272
|
+
* - `run_omit` → narrative disabled; run the deterministic omit executor (it
|
|
273
|
+
* writes the `status:omitted` marker, satisfying synthesis_narrative_current).
|
|
274
|
+
* This MUST make progress, never a no-op reload — otherwise the obligation
|
|
275
|
+
* stays actionable and the fold spins (the guards do not cover this branch).
|
|
276
|
+
*/
|
|
277
|
+
export async function handleSynthesisNarrativeBranch(params, bundle, state) {
|
|
278
|
+
const narrativeIncoming = await tryConsumeIncoming(params.artifactsDir, "synthesis-narrative.json");
|
|
279
|
+
if (narrativeIncoming) {
|
|
280
|
+
await runAuditStep({
|
|
281
|
+
root: params.root,
|
|
282
|
+
artifactsDir: params.artifactsDir,
|
|
283
|
+
preferredExecutor: "synthesis_narrative_executor",
|
|
284
|
+
narrativeResultsPath: narrativeIncoming.path,
|
|
285
|
+
});
|
|
286
|
+
await unlink(narrativeIncoming.path).catch(() => { });
|
|
287
|
+
return { action: "continue" };
|
|
288
|
+
}
|
|
289
|
+
if (params.narrativeEnabled) {
|
|
290
|
+
return { action: "return", result: { kind: "synthesis_narrative", state, bundle } };
|
|
291
|
+
}
|
|
292
|
+
// Narrative disabled: run the deterministic omit executor below.
|
|
293
|
+
return { action: "run_omit" };
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Execute one deterministic audit step and record its progress. Throws (with
|
|
297
|
+
* cause) if the executor fails, preserving the existing throw-with-cause pattern.
|
|
298
|
+
* `index` is the 0-based fold position (the transition counter), surfaced as the
|
|
299
|
+
* 1-based `iteration` in the `deterministic-progress.json` marker a
|
|
300
|
+
* filesystem-watching host reads.
|
|
301
|
+
*/
|
|
302
|
+
export async function executeAndRecord(params, analyzers, decision, index, lastSummary) {
|
|
303
|
+
try {
|
|
304
|
+
// Write a "started" marker before execution so a host watching the filesystem
|
|
305
|
+
// can tell which executor is active during a long-running step (OBS-0d4c2311).
|
|
306
|
+
const startedAt = new Date().toISOString();
|
|
307
|
+
await writeJsonFile(join(params.artifactsDir, "steps", "deterministic-progress.json"), {
|
|
308
|
+
iteration: index + 1,
|
|
309
|
+
executor: decision.selected_executor,
|
|
310
|
+
obligation: decision.selected_obligation,
|
|
311
|
+
status: "running",
|
|
312
|
+
started_at: startedAt,
|
|
313
|
+
});
|
|
314
|
+
const result = await runAuditStep({
|
|
315
|
+
root: params.root,
|
|
316
|
+
artifactsDir: params.artifactsDir,
|
|
317
|
+
analyzers,
|
|
318
|
+
graphLlmEdgeReasoning: params.graphLlmEdgeReasoning,
|
|
319
|
+
since: params.since,
|
|
320
|
+
});
|
|
321
|
+
await writeJsonFile(join(params.artifactsDir, "steps", "deterministic-progress.json"), {
|
|
322
|
+
iteration: index + 1,
|
|
323
|
+
last_executor: result.selected_executor,
|
|
324
|
+
last_obligation: decision.selected_obligation,
|
|
325
|
+
progress_made: result.progress_made,
|
|
326
|
+
summary: result.progress_summary,
|
|
327
|
+
status: "complete",
|
|
328
|
+
started_at: startedAt,
|
|
329
|
+
timestamp: new Date().toISOString(),
|
|
330
|
+
});
|
|
331
|
+
return result;
|
|
332
|
+
}
|
|
333
|
+
catch (error) {
|
|
334
|
+
const current = await loadArtifactBundle(params.artifactsDir);
|
|
335
|
+
const currentState = deriveAuditState(current);
|
|
336
|
+
currentState.last_executor = decision.selected_executor ?? undefined;
|
|
337
|
+
currentState.last_obligation = decision.selected_obligation ?? undefined;
|
|
338
|
+
await writeCoreArtifacts(params.artifactsDir, { ...current, audit_state: currentState });
|
|
339
|
+
await writeJsonFile(join(params.artifactsDir, "steps", "deterministic-progress.json"), {
|
|
340
|
+
iteration: index + 1,
|
|
341
|
+
last_executor: decision.selected_executor,
|
|
342
|
+
last_obligation: decision.selected_obligation,
|
|
343
|
+
prior_summary: lastSummary || null,
|
|
344
|
+
error: error instanceof Error ? error.message : String(error),
|
|
345
|
+
timestamp: new Date().toISOString(),
|
|
346
|
+
});
|
|
347
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
348
|
+
throw new Error(`Deterministic executor ${decision.selected_executor} failed on obligation ${decision.selected_obligation} (iteration ${index + 1}, prior progress: ${lastSummary || "none"}): ${detail}`, { cause: error instanceof Error ? error : undefined });
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// ── Cycle guards (kept in audit's Ctx; NOT routed through advance) ─────────────
|
|
352
|
+
//
|
|
353
|
+
// HANDOFF approach-B: the shared `advance` engine is inherently 0-tolerance (it
|
|
354
|
+
// signs `current` at the top of every loop and stops on the FIRST revisit), so it
|
|
355
|
+
// cannot express the finalization-cycle tolerance window or the no-metadata-skip
|
|
356
|
+
// the hand loop relied on. Approach A collapsed both guards into advance's
|
|
357
|
+
// `stateSignature` and false-tripped on a fresh-Linux floor-only chain. So the two
|
|
358
|
+
// guards stay HERE, invoked from inside the deterministic-executor obligation, and
|
|
359
|
+
// `advance` runs with no `stateSignature` (its `maxTransitions` is the pure
|
|
360
|
+
// runaway backstop only).
|
|
361
|
+
/**
|
|
362
|
+
* Pre-dispatch no-progress guard (ARC-b8fed771).
|
|
363
|
+
*
|
|
364
|
+
* Runs BEFORE a deterministic executor is dispatched. If the fold is about to
|
|
365
|
+
* re-dispatch the SAME executor for the SAME obligation from an artifact-state
|
|
366
|
+
* signature it has ALREADY dispatched that exact (executor, obligation) pair
|
|
367
|
+
* from this run, the prior dispatch left the content-state unchanged (same
|
|
368
|
+
* signature) — so dispatching it again cannot make progress and would spin.
|
|
369
|
+
* Stop the fold with a terminal step instead of re-dispatching.
|
|
370
|
+
*
|
|
371
|
+
* The dispatch IDENTITY (signature + executor + obligation), not the signature
|
|
372
|
+
* alone, is the recurrence key. A recurring signature across DIFFERENT executors
|
|
373
|
+
* is legitimate: no-op-but-satisfying steps (auto-fix with nothing to fix,
|
|
374
|
+
* syntax-resolution with no errors) leave the artifact content unchanged while
|
|
375
|
+
* still advancing the obligation chain — those must NOT trip the guard. Only a
|
|
376
|
+
* literal re-entry of the same executor on the same unchanged state is the
|
|
377
|
+
* infinite loop this catches.
|
|
378
|
+
*
|
|
379
|
+
* This is the immediate-recurrence complement to `checkFinalizationCycle` (the
|
|
380
|
+
* post-dispatch tolerance-based thrash detector across many executors): this
|
|
381
|
+
* guard refuses to re-enter the SAME executor on a state it already failed to
|
|
382
|
+
* advance, rather than waiting for the tolerance window to fill. Returns a
|
|
383
|
+
* terminal-step result when the guard fires, or undefined to proceed.
|
|
384
|
+
*
|
|
385
|
+
* `dispatchedSignatures` is mutated: the current dispatch identity is recorded
|
|
386
|
+
* so a later iteration that returns to this exact (state, executor, obligation)
|
|
387
|
+
* trips the guard.
|
|
388
|
+
*/
|
|
389
|
+
export async function checkNoProgressBeforeDispatch(ctx) {
|
|
390
|
+
const signature = computeArtifactStateSignature(ctx.bundle);
|
|
391
|
+
const dispatchKey = `${signature}|${ctx.selectedExecutor ?? ""}|${ctx.selectedObligation ?? ""}`;
|
|
392
|
+
// "no-metadata" is the pre-artifact bootstrap state (no artifact_metadata yet
|
|
393
|
+
// — e.g. before the first executor stamps any metadata). Many early
|
|
394
|
+
// deterministic steps legitimately dispatch from it before metadata exists, so
|
|
395
|
+
// it is not a no-progress signal; only a real, metadata-bearing signature
|
|
396
|
+
// recurring for the SAME executor means an executor already ran here without
|
|
397
|
+
// changing content.
|
|
398
|
+
if (signature !== "no-metadata" && ctx.dispatchedSignatures.has(dispatchKey)) {
|
|
399
|
+
await writeJsonFile(join(ctx.params.artifactsDir, "steps", "deterministic-progress.json"), {
|
|
400
|
+
iteration: ctx.index + 1,
|
|
401
|
+
no_progress_detected: true,
|
|
402
|
+
repeated_obligation: ctx.selectedObligation ?? "unknown",
|
|
403
|
+
repeated_executor: ctx.selectedExecutor ?? "unknown",
|
|
404
|
+
summary: "Pre-dispatch no-progress guard: about to re-dispatch " +
|
|
405
|
+
`${ctx.selectedExecutor ?? "an executor"} for obligation ` +
|
|
406
|
+
`${ctx.selectedObligation ?? "unknown"} from an artifact state already ` +
|
|
407
|
+
"dispatched this run without net progress; stopping instead of looping.",
|
|
408
|
+
timestamp: new Date().toISOString(),
|
|
409
|
+
});
|
|
410
|
+
return buildTerminalStep(ctx.params, ctx.bundle, ctx.state, "No-progress guard: a deterministic executor was about to re-run on an " +
|
|
411
|
+
"artifact state it already processed this run without changing it " +
|
|
412
|
+
`(obligation ${ctx.selectedObligation ?? "unknown"}, executor ` +
|
|
413
|
+
`${ctx.selectedExecutor ?? "unknown"}). Stopping to avoid an infinite ` +
|
|
414
|
+
"no-progress loop.");
|
|
415
|
+
}
|
|
416
|
+
ctx.dispatchedSignatures.add(dispatchKey);
|
|
417
|
+
return undefined;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Check for a finalization cycle: when fold transitions outrun distinct artifact
|
|
421
|
+
* states by FINALIZATION_CYCLE_TOLERANCE, the deterministic executors are
|
|
422
|
+
* revisiting states rather than progressing. Returns a terminal-step result
|
|
423
|
+
* when a cycle is detected, or undefined when the run is still progressing.
|
|
424
|
+
*/
|
|
425
|
+
export async function checkFinalizationCycle(ctx) {
|
|
426
|
+
ctx.obligationTrail.push(ctx.selectedObligation ?? "unknown");
|
|
427
|
+
ctx.seenStateSignatures.add(computeArtifactStateSignature(ctx.result.updated_bundle));
|
|
428
|
+
if (ctx.index + 1 - ctx.seenStateSignatures.size < ctx.tolerance) {
|
|
429
|
+
return undefined;
|
|
430
|
+
}
|
|
431
|
+
const cycle = Array.from(new Set(ctx.obligationTrail.slice(-ctx.tolerance)));
|
|
432
|
+
await writeJsonFile(join(ctx.params.artifactsDir, "steps", "deterministic-progress.json"), {
|
|
433
|
+
iteration: ctx.index + 1,
|
|
434
|
+
cycle_detected: true,
|
|
435
|
+
cycling_obligations: cycle,
|
|
436
|
+
summary: "Finalization kept revisiting prior artifact states without net " +
|
|
437
|
+
`progress; stopping. Cycling obligations: ${cycle.join(" -> ")}.`,
|
|
438
|
+
timestamp: new Date().toISOString(),
|
|
439
|
+
});
|
|
440
|
+
return buildTerminalStep(ctx.params, ctx.result.updated_bundle, ctx.result.audit_state, "Finalization is not converging: deterministic executors kept revisiting " +
|
|
441
|
+
`prior artifact states (${cycle.join(" -> ")}). Review whether these ` +
|
|
442
|
+
"obligations are erroneously invalidating each other.");
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* A deterministic-executor `emit` of a blocked step — the `!progress_made`
|
|
446
|
+
* dead-end the hand loop returned directly from `executeAndRecord`.
|
|
447
|
+
*/
|
|
448
|
+
function blockedFromResult(result) {
|
|
449
|
+
return {
|
|
450
|
+
kind: "emit",
|
|
451
|
+
step: {
|
|
452
|
+
kind: "blocked",
|
|
453
|
+
state: result.audit_state,
|
|
454
|
+
bundle: result.updated_bundle,
|
|
455
|
+
reason: result.progress_summary,
|
|
456
|
+
},
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Run one deterministic executor for the selected obligation, reproducing the
|
|
461
|
+
* hand loop's normal-path arm: the pre-dispatch no-progress guard, then
|
|
462
|
+
* record + dispatch, then the post-dispatch finalization-cycle guard. A guard
|
|
463
|
+
* that fires `emit`s its terminal step (so `advance` returns it); a
|
|
464
|
+
* `!progress_made` dead-end emits a blocked step; otherwise clear dispatch
|
|
465
|
+
* staging and `transition` on the reloaded bundle so the fold continues.
|
|
466
|
+
*
|
|
467
|
+
* The two guards stay HERE (not in `advance.opts.stateSignature`) so the
|
|
468
|
+
* no-metadata-skip and the FINALIZATION_CYCLE_TOLERANCE window are preserved —
|
|
469
|
+
* see the cycle-guard section comment.
|
|
470
|
+
*/
|
|
471
|
+
async function runDeterministicExecutor(bundle, ctx) {
|
|
472
|
+
const decision = decideNextStep(bundle);
|
|
473
|
+
const noProgress = await checkNoProgressBeforeDispatch({
|
|
474
|
+
index: ctx.iterationRef.value,
|
|
475
|
+
dispatchedSignatures: ctx.dispatchedSignatures,
|
|
476
|
+
params: ctx.params,
|
|
477
|
+
bundle,
|
|
478
|
+
state: decision.state,
|
|
479
|
+
selectedObligation: decision.selected_obligation,
|
|
480
|
+
selectedExecutor: decision.selected_executor,
|
|
481
|
+
});
|
|
482
|
+
if (noProgress !== undefined)
|
|
483
|
+
return { kind: "emit", step: noProgress };
|
|
484
|
+
const result = await executeAndRecord(ctx.params, ctx.analyzersRef.value, decision, ctx.iterationRef.value, ctx.lastSummaryRef.value);
|
|
485
|
+
ctx.lastSummaryRef.value = result.progress_summary;
|
|
486
|
+
if (!isHostDelegationExecutor(result.selected_executor ?? "")) {
|
|
487
|
+
await clearDispatchFiles(ctx.params.artifactsDir);
|
|
488
|
+
}
|
|
489
|
+
if (!result.progress_made) {
|
|
490
|
+
return blockedFromResult(result);
|
|
491
|
+
}
|
|
492
|
+
const cycle = await checkFinalizationCycle({
|
|
493
|
+
index: ctx.iterationRef.value,
|
|
494
|
+
obligationTrail: ctx.obligationTrail,
|
|
495
|
+
seenStateSignatures: ctx.seenStateSignatures,
|
|
496
|
+
tolerance: FINALIZATION_CYCLE_TOLERANCE,
|
|
497
|
+
params: ctx.params,
|
|
498
|
+
bundle,
|
|
499
|
+
state: decision.state,
|
|
500
|
+
result,
|
|
501
|
+
selectedObligation: decision.selected_obligation,
|
|
502
|
+
});
|
|
503
|
+
if (cycle !== undefined)
|
|
504
|
+
return { kind: "emit", step: cycle };
|
|
505
|
+
return { kind: "transition", state: await loadArtifactBundle(ctx.params.artifactsDir) };
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* `derive` for an audit obligation: look up its precomputed satisfaction state
|
|
509
|
+
* from `deriveAuditState` — the holistic content-hash staleness pass that
|
|
510
|
+
* computes EVERY obligation's state in one scan (`state.ts`). A pruned/absent
|
|
511
|
+
* obligation is satisfied. `decideNextStep`'s persisted-`complete` short-circuit
|
|
512
|
+
* yields an all-satisfied scan (no actionable obligation), which `advance`
|
|
513
|
+
* surfaces as `step === null` → the post-fold terminal.
|
|
514
|
+
*/
|
|
515
|
+
function deriveObligationState(id) {
|
|
516
|
+
return (bundle) => {
|
|
517
|
+
if (bundle.audit_state?.status === "complete")
|
|
518
|
+
return "satisfied";
|
|
519
|
+
const state = deriveAuditState(bundle);
|
|
520
|
+
const found = state.obligations.find((o) => o.id === id);
|
|
521
|
+
if (!found)
|
|
522
|
+
return "satisfied";
|
|
523
|
+
return found.state === "missing" || found.state === "stale"
|
|
524
|
+
? found.state
|
|
525
|
+
: "satisfied";
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Build the audit obligation definitions in `PRIORITY` order. Each `execute`
|
|
530
|
+
* relocates the corresponding arm of the hand-rolled `for` loop:
|
|
531
|
+
* deterministic executors `transition` (fold), host-delegation / dispatch /
|
|
532
|
+
* terminal points `emit` the host-actionable step. Selection stays single-sourced
|
|
533
|
+
* (`deriveObligationState` reads `deriveAuditState`, and `decideNextStep` resolves
|
|
534
|
+
* the executor for the selected id), so the obligation list cannot drift from the
|
|
535
|
+
* priority scan it mirrors.
|
|
536
|
+
*/
|
|
537
|
+
function buildAuditObligations() {
|
|
538
|
+
const deterministic = (id) => ({
|
|
539
|
+
id,
|
|
540
|
+
derive: deriveObligationState(id),
|
|
541
|
+
execute: (bundle, ctx) => runDeterministicExecutor(bundle, ctx),
|
|
542
|
+
});
|
|
543
|
+
return [
|
|
544
|
+
// Provider confirmation gate: a session-level deterministic auto-complete
|
|
545
|
+
// (writes a default provider_confirmation.json) — folds on like any other
|
|
546
|
+
// deterministic executor.
|
|
547
|
+
deterministic("provider_confirmation"),
|
|
548
|
+
deterministic("repo_manifest"),
|
|
549
|
+
deterministic("file_disposition"),
|
|
550
|
+
deterministic("auto_fixes_applied"),
|
|
551
|
+
deterministic("syntax_resolved"),
|
|
552
|
+
deterministic("structure_artifacts"),
|
|
553
|
+
{
|
|
554
|
+
// Graph enrichment: poll the analyzer-decision / edge-reasoning incoming
|
|
555
|
+
// artifacts first (emit a host step when one is needed), otherwise run the
|
|
556
|
+
// deterministic enrichment executor.
|
|
557
|
+
id: "graph_enrichment_current",
|
|
558
|
+
derive: deriveObligationState("graph_enrichment_current"),
|
|
559
|
+
execute: async (bundle, ctx) => {
|
|
560
|
+
const state = deriveAuditState(bundle);
|
|
561
|
+
const branch = await handleGraphEnrichmentBranch(ctx.params, bundle, state, ctx.analyzersRef);
|
|
562
|
+
if (branch.action === "return") {
|
|
563
|
+
return { kind: "emit", step: branch.result };
|
|
564
|
+
}
|
|
565
|
+
if (branch.action === "continue") {
|
|
566
|
+
// A decisions/edge file was consumed (and possibly applied): re-scan on
|
|
567
|
+
// the reloaded bundle without running the executor this turn.
|
|
568
|
+
return { kind: "transition", state: await loadArtifactBundle(ctx.params.artifactsDir) };
|
|
569
|
+
}
|
|
570
|
+
// fallthrough: run the deterministic enrichment executor.
|
|
571
|
+
return runDeterministicExecutor(bundle, ctx);
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
deterministic("design_assessment_current"),
|
|
575
|
+
{
|
|
576
|
+
// Confirm-intent host step: the host writes intent_checkpoint.json (read by
|
|
577
|
+
// deriveAuditState on re-invocation), so there is no incoming artifact to
|
|
578
|
+
// consume — emit the step directly.
|
|
579
|
+
id: "intent_checkpoint_current",
|
|
580
|
+
derive: deriveObligationState("intent_checkpoint_current"),
|
|
581
|
+
execute: async (bundle) => ({
|
|
582
|
+
kind: "emit",
|
|
583
|
+
step: { kind: "confirm_intent", state: deriveAuditState(bundle), bundle },
|
|
584
|
+
}),
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
// Contract design-review pass: poll incoming contract/conceptual findings;
|
|
588
|
+
// emit the dispatch step when a pass still needs to run.
|
|
589
|
+
id: "design_review_contract_completed",
|
|
590
|
+
derive: deriveObligationState("design_review_contract_completed"),
|
|
591
|
+
execute: (bundle, ctx) => runDesignReviewObligation(bundle, ctx),
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
// Conceptual design-review pass: same incoming-poll handler (it resolves
|
|
595
|
+
// which pass remains).
|
|
596
|
+
id: "design_review_conceptual_completed",
|
|
597
|
+
derive: deriveObligationState("design_review_conceptual_completed"),
|
|
598
|
+
execute: (bundle, ctx) => runDesignReviewObligation(bundle, ctx),
|
|
599
|
+
},
|
|
600
|
+
deterministic("planning_artifacts"),
|
|
601
|
+
{
|
|
602
|
+
// The audit-task dispatch obligation maps to the host-delegation
|
|
603
|
+
// rolling_dispatch_executor (no deterministic runner) → semantic review.
|
|
604
|
+
id: "audit_tasks_completed",
|
|
605
|
+
derive: deriveObligationState("audit_tasks_completed"),
|
|
606
|
+
execute: (bundle, ctx) => runHostDelegationObligation(bundle, ctx),
|
|
607
|
+
},
|
|
608
|
+
deterministic("audit_results_ingested"),
|
|
609
|
+
deterministic("runtime_validation_current"),
|
|
610
|
+
deterministic("synthesis_current"),
|
|
611
|
+
{
|
|
612
|
+
// Synthesis narrative: poll the incoming narrative; emit the host step when
|
|
613
|
+
// narrative is enabled and not yet supplied, otherwise the deterministic
|
|
614
|
+
// omit runs (fold on).
|
|
615
|
+
id: "synthesis_narrative_current",
|
|
616
|
+
derive: deriveObligationState("synthesis_narrative_current"),
|
|
617
|
+
execute: async (bundle, ctx) => {
|
|
618
|
+
const state = deriveAuditState(bundle);
|
|
619
|
+
const branch = await handleSynthesisNarrativeBranch(ctx.params, bundle, state);
|
|
620
|
+
if (branch.action === "return") {
|
|
621
|
+
return { kind: "emit", step: branch.result };
|
|
622
|
+
}
|
|
623
|
+
if (branch.action === "run_omit") {
|
|
624
|
+
// Narrative disabled: run the deterministic omit executor so the
|
|
625
|
+
// status:omitted marker is written and the obligation is satisfied.
|
|
626
|
+
// (A bare reload here would leave it actionable and spin the fold.)
|
|
627
|
+
return runDeterministicExecutor(bundle, ctx);
|
|
628
|
+
}
|
|
629
|
+
// continue: an incoming narrative was consumed + applied — re-scan.
|
|
630
|
+
return { kind: "transition", state: await loadArtifactBundle(ctx.params.artifactsDir) };
|
|
631
|
+
},
|
|
632
|
+
},
|
|
633
|
+
];
|
|
634
|
+
}
|
|
635
|
+
/** Shared design-review-pass executor (both pass obligations route here). */
|
|
636
|
+
async function runDesignReviewObligation(bundle, ctx) {
|
|
637
|
+
const state = deriveAuditState(bundle);
|
|
638
|
+
const branch = await handleDesignReviewBranch(ctx.params, bundle, state);
|
|
639
|
+
if (branch.action === "return") {
|
|
640
|
+
return { kind: "emit", step: branch.result };
|
|
641
|
+
}
|
|
642
|
+
return { kind: "transition", state: await loadArtifactBundle(ctx.params.artifactsDir) };
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Host-delegation dispatch obligation (`audit_tasks_completed` →
|
|
646
|
+
* rolling_dispatch_executor, no deterministic runner): materialize the semantic
|
|
647
|
+
* review run and emit it. Guards on the executor actually being host-delegation,
|
|
648
|
+
* mirroring the hand loop's `isHostDelegationExecutor` branch; a missing/non-
|
|
649
|
+
* delegation executor emits the same blocked step the no-executor branch did.
|
|
650
|
+
*/
|
|
651
|
+
async function runHostDelegationObligation(bundle, ctx) {
|
|
652
|
+
const decision = decideNextStep(bundle);
|
|
653
|
+
const state = decision.state;
|
|
654
|
+
if (!decision.selected_executor) {
|
|
655
|
+
return emitNoExecutorBlocked(bundle, ctx, decision);
|
|
656
|
+
}
|
|
657
|
+
if (!isHostDelegationExecutor(decision.selected_executor)) {
|
|
658
|
+
// Not host-delegation and no deterministic graph_enrichment/design-review
|
|
659
|
+
// handler claimed it: fall back to the deterministic executor path (which
|
|
660
|
+
// emits blocked when the runner is absent / makes no progress).
|
|
661
|
+
return runDeterministicExecutor(bundle, ctx);
|
|
662
|
+
}
|
|
663
|
+
// A8(a) in-process provider driver: when the rolling engine is enabled AND the
|
|
664
|
+
// operator EXPLICITLY configured a programmatic backend provider
|
|
665
|
+
// (openai-compatible / codex / opencode), the orchestrator drives the WHOLE
|
|
666
|
+
// semantic-review dispatch ITSELF — the provider is the per-packet worker —
|
|
667
|
+
// instead of emitting a host-subagent dispatch step. It `transition`s once the
|
|
668
|
+
// results are ingested so the fold re-derives state (the obligation-engine analog
|
|
669
|
+
// of the hand loop's `continue`), mirroring remediate's decideNextStep transition
|
|
670
|
+
// after driveRollingImplementDispatch.
|
|
671
|
+
const sessionConfig = ctx.params.sessionConfig;
|
|
672
|
+
if (resolveAuditRollingEngineEnabled({ sessionConfig }) &&
|
|
673
|
+
resolvesToInProcessDispatchProvider(sessionConfig)) {
|
|
674
|
+
const { activeReviewRun } = await materializeReviewRun({
|
|
675
|
+
root: ctx.params.root,
|
|
676
|
+
artifactsDir: ctx.params.artifactsDir,
|
|
677
|
+
bundle,
|
|
678
|
+
obligationId: decision.selected_obligation,
|
|
679
|
+
selfCliPath: ctx.params.selfCliPath,
|
|
680
|
+
timeoutMs: ctx.params.timeoutMs,
|
|
681
|
+
});
|
|
682
|
+
const driven = await driveRollingAuditDispatch({
|
|
683
|
+
root: ctx.params.root,
|
|
684
|
+
artifactsDir: ctx.params.artifactsDir,
|
|
685
|
+
activeReviewRun,
|
|
686
|
+
sessionConfig: sessionConfig,
|
|
687
|
+
timeoutMs: ctx.params.timeoutMs,
|
|
688
|
+
});
|
|
689
|
+
await clearDispatchFiles(ctx.params.artifactsDir);
|
|
690
|
+
// Convergence guard: a pass that ingested NO new results and stranded nothing
|
|
691
|
+
// (every packet errored at the provider) made no net progress, and
|
|
692
|
+
// re-dispatching the same unchanged state would loop to the maxTransitions
|
|
693
|
+
// backstop. Emit the block rather than spin. Progress (ingest ran, or a strand
|
|
694
|
+
// terminal was recorded) `transition`s so the fold re-derives normally.
|
|
695
|
+
if (!driven.ingest && driven.stranded_ids.length === 0) {
|
|
696
|
+
return {
|
|
697
|
+
kind: "emit",
|
|
698
|
+
step: {
|
|
699
|
+
kind: "blocked",
|
|
700
|
+
state,
|
|
701
|
+
bundle,
|
|
702
|
+
reason: `In-process rolling dispatch produced no results for ${driven.packet_count} ` +
|
|
703
|
+
`review packet(s) (provider '${sessionConfig?.provider}' errored on every packet); ` +
|
|
704
|
+
"stopping to avoid a no-progress loop.",
|
|
705
|
+
},
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
return {
|
|
709
|
+
kind: "transition",
|
|
710
|
+
state: await loadArtifactBundle(ctx.params.artifactsDir),
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
const review = await ensureSemanticReviewRun({
|
|
714
|
+
root: ctx.params.root,
|
|
715
|
+
artifactsDir: ctx.params.artifactsDir,
|
|
716
|
+
bundle,
|
|
717
|
+
state,
|
|
718
|
+
obligationId: decision.selected_obligation,
|
|
719
|
+
selfCliPath: ctx.params.selfCliPath,
|
|
720
|
+
timeoutMs: ctx.params.timeoutMs,
|
|
721
|
+
});
|
|
722
|
+
return {
|
|
723
|
+
kind: "emit",
|
|
724
|
+
step: {
|
|
725
|
+
kind: "semantic_review",
|
|
726
|
+
selectedExecutor: decision.selected_executor,
|
|
727
|
+
...review,
|
|
728
|
+
},
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
/** Emit the no-executor blocked step (the hand loop's `!selected_executor` arm). */
|
|
732
|
+
async function emitNoExecutorBlocked(bundle, ctx, decision) {
|
|
733
|
+
const state = decision.state;
|
|
734
|
+
const reason = ctx.lastSummaryRef.value || decision.reason;
|
|
735
|
+
await writeHandoffOnly({
|
|
736
|
+
root: ctx.params.root,
|
|
737
|
+
artifactsDir: ctx.params.artifactsDir,
|
|
738
|
+
bundle,
|
|
739
|
+
audit_state: state,
|
|
740
|
+
progress_summary: reason,
|
|
741
|
+
providerName: LOCAL_SUBPROCESS_PROVIDER_NAME,
|
|
742
|
+
});
|
|
743
|
+
return { kind: "emit", step: { kind: "blocked", state, bundle, reason } };
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Wrap each obligation so the transition counter advances exactly once per fold
|
|
747
|
+
* iteration — the analog of the hand loop's `index++`. Incrementing AFTER a
|
|
748
|
+
* `transition` (and never on an `emit`, which exits the fold) means during any
|
|
749
|
+
* `execute` the counter holds the current iteration's 0-based index, which the
|
|
750
|
+
* two cycle guards read as `index`. Single point of truth so a new obligation
|
|
751
|
+
* cannot forget to count.
|
|
752
|
+
*/
|
|
753
|
+
function countTransitions(obligations) {
|
|
754
|
+
return obligations.map((obligation) => ({
|
|
755
|
+
...obligation,
|
|
756
|
+
execute: async (bundle, ctx) => {
|
|
757
|
+
const outcome = await obligation.execute(bundle, ctx);
|
|
758
|
+
if (outcome.kind === "transition")
|
|
759
|
+
ctx.iterationRef.value += 1;
|
|
760
|
+
return outcome;
|
|
761
|
+
},
|
|
762
|
+
}));
|
|
763
|
+
}
|
|
764
|
+
// ── Coordinator ───────────────────────────────────────────────────────────────
|
|
765
|
+
/**
|
|
766
|
+
* Drive the deterministic fold for one `next-step` call.
|
|
767
|
+
*
|
|
768
|
+
* Structure mirrors remediate-code's `decideNextStepLoop` (the proven engine
|
|
769
|
+
* consumer): a PREAMBLE (the `index===0` file-integrity re-intake, the analog of
|
|
770
|
+
* remediate's `forceReplan`) then the shared `advance` running audit's `PRIORITY`
|
|
771
|
+
* obligations. Each deterministic executor `transition`s (folding the whole chain
|
|
772
|
+
* into one host round-trip); host-delegation / dispatch / terminal obligations
|
|
773
|
+
* `emit` the host-actionable step.
|
|
774
|
+
*
|
|
775
|
+
* Cycle detection stays in audit's `Ctx` (the pre-dispatch no-progress guard +
|
|
776
|
+
* the FINALIZATION_CYCLE_TOLERANCE finalization-cycle guard, both invoked from
|
|
777
|
+
* inside `runDeterministicExecutor`), NOT in `advance.opts.stateSignature` — the
|
|
778
|
+
* shared engine is inherently 0-tolerance and cannot express the tolerance window
|
|
779
|
+
* or the no-metadata-skip (HANDOFF approach B). `advance`'s `maxTransitions` is
|
|
780
|
+
* left as its pure runaway backstop. A `step === null` result (no actionable
|
|
781
|
+
* obligation, e.g. synthesis flipped the state to complete) resolves to the
|
|
782
|
+
* terminal step (present_report when a report is rendered, else blocked).
|
|
783
|
+
*/
|
|
784
|
+
export async function runDeterministicForNextStep(params) {
|
|
785
|
+
const analyzersRef = {
|
|
786
|
+
value: params.analyzers,
|
|
787
|
+
};
|
|
788
|
+
// PREAMBLE — file-integrity re-intake (runs once, like remediate's
|
|
789
|
+
// forceReplan). When pending audit-task files have changed/vanished since the
|
|
790
|
+
// manifest was built, re-run intake so planning re-grounds. advanceAudit does
|
|
791
|
+
// not persist (only runAuditStep does), so this is the same diagnostic-then-
|
|
792
|
+
// reload the hand loop performed on its first iteration: the warning fires and
|
|
793
|
+
// the fold below starts from the freshly-loaded disk bundle.
|
|
794
|
+
{
|
|
795
|
+
const bundle = await loadArtifactBundle(params.artifactsDir);
|
|
796
|
+
if (bundle.audit_state?.status !== "complete" && bundle.repo_manifest) {
|
|
797
|
+
const pendingTasks = buildPendingAuditTasks(bundle);
|
|
798
|
+
const taskFiles = new Set();
|
|
799
|
+
for (const task of pendingTasks) {
|
|
800
|
+
for (const fp of Object.keys(task.file_line_counts ?? {}))
|
|
801
|
+
taskFiles.add(fp);
|
|
802
|
+
}
|
|
803
|
+
if (taskFiles.size > 0) {
|
|
804
|
+
const integrity = await checkFileIntegrity(params.root, bundle.repo_manifest, [...taskFiles]);
|
|
805
|
+
if (!integrity.is_clean) {
|
|
806
|
+
// Route this diagnostic OFF stdout: cmdNextStep emits the step
|
|
807
|
+
// contract as the sole stdout payload via console.log(JSON.stringify),
|
|
808
|
+
// so a console.log here would corrupt the JSON-on-stdout contract.
|
|
809
|
+
process.stderr.write(`[audit-code] nextStep: integrity check — ${integrity.changed_files.length} changed, ` +
|
|
810
|
+
`${integrity.missing_files.length} missing, ${integrity.io_errors.length} io-error(s); re-running intake.\n`);
|
|
811
|
+
await advanceAudit(bundle, { root: params.root, preferredExecutor: "intake_executor" });
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
const ctx = {
|
|
817
|
+
params,
|
|
818
|
+
analyzersRef,
|
|
819
|
+
lastSummaryRef: { value: "" },
|
|
820
|
+
iterationRef: { value: 0 },
|
|
821
|
+
dispatchedSignatures: new Set(),
|
|
822
|
+
seenStateSignatures: new Set(),
|
|
823
|
+
obligationTrail: [],
|
|
824
|
+
};
|
|
825
|
+
const startBundle = await loadArtifactBundle(params.artifactsDir);
|
|
826
|
+
const outcome = await advance({ priority: PRIORITY, obligations: countTransitions(buildAuditObligations()) }, startBundle, ctx);
|
|
827
|
+
if (outcome.step)
|
|
828
|
+
return outcome.step;
|
|
829
|
+
// No actionable obligation: the fold reached completion (e.g. synthesis flipped
|
|
830
|
+
// the state to complete and every obligation is now satisfied). Build the
|
|
831
|
+
// terminal: present_report when the state is complete / a report is rendered,
|
|
832
|
+
// else blocked.
|
|
833
|
+
const bundle = await loadArtifactBundle(params.artifactsDir);
|
|
834
|
+
const decision = decideNextStep(bundle);
|
|
835
|
+
const state = decision.state;
|
|
836
|
+
if (state.status === "complete") {
|
|
837
|
+
await writeHandoffOnly({
|
|
838
|
+
root: params.root,
|
|
839
|
+
artifactsDir: params.artifactsDir,
|
|
840
|
+
bundle,
|
|
841
|
+
audit_state: state,
|
|
842
|
+
progress_summary: decision.reason,
|
|
843
|
+
providerName: LOCAL_SUBPROCESS_PROVIDER_NAME,
|
|
844
|
+
});
|
|
845
|
+
const promoted = await promoteFinalAuditReport({
|
|
846
|
+
artifactsDir: params.artifactsDir,
|
|
847
|
+
});
|
|
848
|
+
return {
|
|
849
|
+
kind: "complete",
|
|
850
|
+
state,
|
|
851
|
+
bundle,
|
|
852
|
+
// Promotion copies the report to the artifacts dir's PARENT
|
|
853
|
+
// (.audit-tools/audit-report.md), not the repo root.
|
|
854
|
+
finalReportPath: promoted.promoted
|
|
855
|
+
? join(dirname(params.artifactsDir), AUDIT_REPORT_FILENAME)
|
|
856
|
+
: join(params.artifactsDir, AUDIT_REPORT_FILENAME),
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
return buildTerminalStep(params, bundle, state, ctx.lastSummaryRef.value || decision.reason);
|
|
860
|
+
}
|
|
861
|
+
//# sourceMappingURL=nextStepHelpers.js.map
|