audit-tools 0.56.2 → 0.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/README.md +24 -22
  2. package/dist/audit/cli/args.d.ts +0 -1
  3. package/dist/audit/cli/args.d.ts.map +1 -1
  4. package/dist/audit/cli/args.js +0 -14
  5. package/dist/audit/cli/args.js.map +1 -1
  6. package/dist/audit/cli/auditStep.d.ts +0 -59
  7. package/dist/audit/cli/auditStep.d.ts.map +1 -1
  8. package/dist/audit/cli/auditStep.js +7 -139
  9. package/dist/audit/cli/auditStep.js.map +1 -1
  10. package/dist/audit/cli/cleanup.d.ts.map +1 -1
  11. package/dist/audit/cli/cleanup.js +4 -1
  12. package/dist/audit/cli/cleanup.js.map +1 -1
  13. package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
  14. package/dist/audit/cli/confirmIntentStep.js +16 -31
  15. package/dist/audit/cli/confirmIntentStep.js.map +1 -1
  16. package/dist/audit/cli/dispatch/hostHandoff.d.ts +459 -1
  17. package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
  18. package/dist/audit/cli/dispatch/hostHandoff.js +312 -1
  19. package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
  20. package/dist/audit/cli/dispatch/packetFilter.d.ts +1 -1
  21. package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts +254 -0
  22. package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts.map +1 -0
  23. package/dist/audit/cli/dispatch/questionReviewAcceptance.js +183 -0
  24. package/dist/audit/cli/dispatch/questionReviewAcceptance.js.map +1 -0
  25. package/dist/audit/cli/foldTransaction.d.ts +1 -1
  26. package/dist/audit/cli/foldTransaction.d.ts.map +1 -1
  27. package/dist/audit/cli/foldTransaction.js +3 -2
  28. package/dist/audit/cli/foldTransaction.js.map +1 -1
  29. package/dist/audit/cli/functionalPreflight.d.ts +4 -4
  30. package/dist/audit/cli/laneSubmissions.d.ts +4 -4
  31. package/dist/audit/cli/nextStepCommand.d.ts +3 -20
  32. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
  33. package/dist/audit/cli/nextStepCommand.js +64 -141
  34. package/dist/audit/cli/nextStepCommand.js.map +1 -1
  35. package/dist/audit/cli/nextStepHelpers.d.ts +10 -72
  36. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
  37. package/dist/audit/cli/nextStepHelpers.js +115 -375
  38. package/dist/audit/cli/nextStepHelpers.js.map +1 -1
  39. package/dist/audit/cli/prompts.d.ts +0 -2
  40. package/dist/audit/cli/prompts.d.ts.map +1 -1
  41. package/dist/audit/cli/prompts.js +3 -14
  42. package/dist/audit/cli/prompts.js.map +1 -1
  43. package/dist/audit/cli/questionReviewCycle.d.ts +281 -0
  44. package/dist/audit/cli/questionReviewCycle.d.ts.map +1 -0
  45. package/dist/audit/cli/questionReviewCycle.js +87 -0
  46. package/dist/audit/cli/questionReviewCycle.js.map +1 -0
  47. package/dist/audit/cli/questionReviewSession.d.ts +21 -0
  48. package/dist/audit/cli/questionReviewSession.d.ts.map +1 -0
  49. package/dist/audit/cli/questionReviewSession.js +111 -0
  50. package/dist/audit/cli/questionReviewSession.js.map +1 -0
  51. package/dist/audit/cli/questionWorkloadBindings.d.ts +7 -0
  52. package/dist/audit/cli/questionWorkloadBindings.d.ts.map +1 -0
  53. package/dist/audit/cli/questionWorkloadBindings.js +68 -0
  54. package/dist/audit/cli/questionWorkloadBindings.js.map +1 -0
  55. package/dist/audit/cli/resynthesizeCommand.d.ts +1 -0
  56. package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -1
  57. package/dist/audit/cli/resynthesizeCommand.js +52 -51
  58. package/dist/audit/cli/resynthesizeCommand.js.map +1 -1
  59. package/dist/audit/cli/sampleRunCommand.d.ts +600 -159
  60. package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -1
  61. package/dist/audit/cli/sampleRunCommand.js +66 -152
  62. package/dist/audit/cli/sampleRunCommand.js.map +1 -1
  63. package/dist/audit/cli/statusCommand.d.ts.map +1 -1
  64. package/dist/audit/cli/statusCommand.js +20 -14
  65. package/dist/audit/cli/statusCommand.js.map +1 -1
  66. package/dist/audit/cli/steps.d.ts +10 -10
  67. package/dist/audit/cli/submitCommand.d.ts +13 -6
  68. package/dist/audit/cli/submitCommand.d.ts.map +1 -1
  69. package/dist/audit/cli/submitCommand.js +121 -24
  70. package/dist/audit/cli/submitCommand.js.map +1 -1
  71. package/dist/audit/cli.d.ts.map +1 -1
  72. package/dist/audit/cli.js +7 -17
  73. package/dist/audit/cli.js.map +1 -1
  74. package/dist/audit/contracts/findingContractPrompt.d.ts +4 -4
  75. package/dist/audit/contracts/workerSchemas.d.ts +83 -82
  76. package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
  77. package/dist/audit/contracts/workerSchemas.js +8 -1
  78. package/dist/audit/contracts/workerSchemas.js.map +1 -1
  79. package/dist/audit/contracts/wrapperResponse.d.ts +13 -13
  80. package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
  81. package/dist/audit/contracts/wrapperResponse.js +0 -1
  82. package/dist/audit/contracts/wrapperResponse.js.map +1 -1
  83. package/dist/audit/extractors/designAssessment.js +2 -2
  84. package/dist/audit/extractors/designAssessment.js.map +1 -1
  85. package/dist/audit/io/artifacts.d.ts +37 -10
  86. package/dist/audit/io/artifacts.d.ts.map +1 -1
  87. package/dist/audit/io/artifacts.js +217 -33
  88. package/dist/audit/io/artifacts.js.map +1 -1
  89. package/dist/audit/io/rollover.d.ts.map +1 -1
  90. package/dist/audit/io/rollover.js +7 -16
  91. package/dist/audit/io/rollover.js.map +1 -1
  92. package/dist/audit/io/runSnapshot.d.ts +1 -1
  93. package/dist/audit/io/runSnapshot.js +1 -1
  94. package/dist/audit/orchestrator/architectureDiscovery.d.ts +9 -10
  95. package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -1
  96. package/dist/audit/orchestrator/architectureDiscovery.js +95 -13
  97. package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -1
  98. package/dist/audit/orchestrator/charterPacketArchive.d.ts +3 -0
  99. package/dist/audit/orchestrator/charterPacketArchive.d.ts.map +1 -1
  100. package/dist/audit/orchestrator/charterPacketArchive.js +31 -2
  101. package/dist/audit/orchestrator/charterPacketArchive.js.map +1 -1
  102. package/dist/audit/orchestrator/dependencyMap.d.ts +2 -8
  103. package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
  104. package/dist/audit/orchestrator/dependencyMap.js +10 -105
  105. package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
  106. package/dist/audit/orchestrator/dependencySlices.d.ts +2 -3
  107. package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
  108. package/dist/audit/orchestrator/dependencySlices.js +2 -35
  109. package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
  110. package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
  111. package/dist/audit/orchestrator/designReviewPrompt.js +24 -14
  112. package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
  113. package/dist/audit/orchestrator/executorRunners.d.ts +1 -1
  114. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
  115. package/dist/audit/orchestrator/executorRunners.js +14 -21
  116. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  117. package/dist/audit/orchestrator/executors.d.ts.map +1 -1
  118. package/dist/audit/orchestrator/executors.js +1 -131
  119. package/dist/audit/orchestrator/executors.js.map +1 -1
  120. package/dist/audit/orchestrator/flowPlanning.d.ts +1 -1
  121. package/dist/audit/orchestrator/flowPlanning.js +1 -1
  122. package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
  123. package/dist/audit/orchestrator/ingestionExecutors.js +19 -12
  124. package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
  125. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +2 -2
  126. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
  127. package/dist/audit/orchestrator/intentCheckpointExecutor.js +37 -36
  128. package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
  129. package/dist/audit/orchestrator/lensSelection.d.ts +6 -37
  130. package/dist/audit/orchestrator/lensSelection.d.ts.map +1 -1
  131. package/dist/audit/orchestrator/lensSelection.js +42 -68
  132. package/dist/audit/orchestrator/lensSelection.js.map +1 -1
  133. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
  134. package/dist/audit/orchestrator/nextStep.js +1 -4
  135. package/dist/audit/orchestrator/nextStep.js.map +1 -1
  136. package/dist/audit/orchestrator/questionEvidence.d.ts +67 -0
  137. package/dist/audit/orchestrator/questionEvidence.d.ts.map +1 -0
  138. package/dist/audit/orchestrator/questionEvidence.js +177 -0
  139. package/dist/audit/orchestrator/questionEvidence.js.map +1 -0
  140. package/dist/audit/orchestrator/questionPlanExecutor.d.ts +10 -0
  141. package/dist/audit/orchestrator/questionPlanExecutor.d.ts.map +1 -0
  142. package/dist/audit/orchestrator/questionPlanExecutor.js +23 -0
  143. package/dist/audit/orchestrator/questionPlanExecutor.js.map +1 -0
  144. package/dist/audit/orchestrator/questionPlanning.d.ts +48 -0
  145. package/dist/audit/orchestrator/questionPlanning.d.ts.map +1 -0
  146. package/dist/audit/orchestrator/questionPlanning.js +326 -0
  147. package/dist/audit/orchestrator/questionPlanning.js.map +1 -0
  148. package/dist/audit/orchestrator/requeueCommand.d.ts +1 -1
  149. package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts +11 -0
  150. package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts.map +1 -0
  151. package/dist/audit/orchestrator/reviewLensPlaybooks.js +11 -0
  152. package/dist/audit/orchestrator/reviewLensPlaybooks.js.map +1 -0
  153. package/dist/audit/orchestrator/runtimeValidation.d.ts.map +1 -1
  154. package/dist/audit/orchestrator/runtimeValidation.js +14 -0
  155. package/dist/audit/orchestrator/runtimeValidation.js.map +1 -1
  156. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts +1 -1
  157. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts.map +1 -1
  158. package/dist/audit/orchestrator/runtimeValidationUpdate.js +13 -4
  159. package/dist/audit/orchestrator/runtimeValidationUpdate.js.map +1 -1
  160. package/dist/audit/orchestrator/selectiveDeepening/conflict.js +1 -1
  161. package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -1
  162. package/dist/audit/orchestrator/selectiveDeepening/index.js +1 -1
  163. package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -1
  164. package/dist/audit/orchestrator/state.d.ts.map +1 -1
  165. package/dist/audit/orchestrator/state.js +8 -60
  166. package/dist/audit/orchestrator/state.js.map +1 -1
  167. package/dist/audit/orchestrator/synthesisExecutors.d.ts +15 -1
  168. package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
  169. package/dist/audit/orchestrator/synthesisExecutors.js +76 -25
  170. package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
  171. package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts.map +1 -1
  172. package/dist/audit/orchestrator/systemicChallengeExecutor.js +11 -6
  173. package/dist/audit/orchestrator/systemicChallengeExecutor.js.map +1 -1
  174. package/dist/audit/orchestrator/taskAffinityGraph.d.ts +4 -4
  175. package/dist/audit/reporting/questionReport.d.ts +28 -0
  176. package/dist/audit/reporting/questionReport.d.ts.map +1 -0
  177. package/dist/audit/reporting/questionReport.js +186 -0
  178. package/dist/audit/reporting/questionReport.js.map +1 -0
  179. package/dist/audit/reporting/synthesis.d.ts +10 -1
  180. package/dist/audit/reporting/synthesis.d.ts.map +1 -1
  181. package/dist/audit/reporting/synthesis.js +161 -24
  182. package/dist/audit/reporting/synthesis.js.map +1 -1
  183. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts +4 -1
  184. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts.map +1 -1
  185. package/dist/audit/reporting/synthesisNarrativePrompt.js +5 -1
  186. package/dist/audit/reporting/synthesisNarrativePrompt.js.map +1 -1
  187. package/dist/audit/supervisor/operatorHandoff.d.ts +2 -3
  188. package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
  189. package/dist/audit/supervisor/operatorHandoff.js +3 -18
  190. package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
  191. package/dist/audit/systemic/aggregateMetricsDigest.d.ts.map +1 -1
  192. package/dist/audit/systemic/aggregateMetricsDigest.js +0 -2
  193. package/dist/audit/systemic/aggregateMetricsDigest.js.map +1 -1
  194. package/dist/audit/types/artifactMetadata.d.ts +1 -2
  195. package/dist/audit/types/artifactMetadata.d.ts.map +1 -1
  196. package/dist/audit/types/auditState.d.ts +6 -6
  197. package/dist/audit/types/conceptualAdjudication.d.ts +708 -50
  198. package/dist/audit/types/conceptualAdjudication.d.ts.map +1 -1
  199. package/dist/audit/types/conceptualAdjudication.js +2 -0
  200. package/dist/audit/types/conceptualAdjudication.js.map +1 -1
  201. package/dist/audit/types/runtimeValidation.d.ts +58 -6
  202. package/dist/audit/types/runtimeValidation.d.ts.map +1 -1
  203. package/dist/audit/types/runtimeValidation.js +8 -0
  204. package/dist/audit/types/runtimeValidation.js.map +1 -1
  205. package/dist/audit/types.d.ts +551 -34
  206. package/dist/audit/types.d.ts.map +1 -1
  207. package/dist/audit/validation/auditResults.d.ts +1 -1
  208. package/dist/audit/validation/auditResults.js +1 -1
  209. package/dist/audit/validation/ingestIssueCodes.d.ts.map +1 -1
  210. package/dist/audit/validation/ingestIssueCodes.js +0 -1
  211. package/dist/audit/validation/ingestIssueCodes.js.map +1 -1
  212. package/dist/remediate/contractPipeline/executionPlan.d.ts +679 -52
  213. package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -1
  214. package/dist/remediate/contractPipeline/executionPlan.js +23 -0
  215. package/dist/remediate/contractPipeline/executionPlan.js.map +1 -1
  216. package/dist/remediate/findingFilter.d.ts.map +1 -1
  217. package/dist/remediate/findingFilter.js +6 -2
  218. package/dist/remediate/findingFilter.js.map +1 -1
  219. package/dist/remediate/intake.d.ts +4 -4
  220. package/dist/remediate/phases/close.d.ts.map +1 -1
  221. package/dist/remediate/phases/close.js +15 -5
  222. package/dist/remediate/phases/close.js.map +1 -1
  223. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts +5 -0
  224. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
  225. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +37 -8
  226. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
  227. package/dist/remediate/state/types.d.ts +619 -26
  228. package/dist/remediate/state/types.d.ts.map +1 -1
  229. package/dist/remediate/state/types.js +2 -1
  230. package/dist/remediate/state/types.js.map +1 -1
  231. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
  232. package/dist/remediate/steps/contractPipeline.js +2 -0
  233. package/dist/remediate/steps/contractPipeline.js.map +1 -1
  234. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
  235. package/dist/remediate/steps/contractPipelinePrompts.js +2 -0
  236. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
  237. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +3 -3
  238. package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
  239. package/dist/remediate/steps/intakeResolver.js +31 -6
  240. package/dist/remediate/steps/intakeResolver.js.map +1 -1
  241. package/dist/remediate/steps/nextStep.d.ts.map +1 -1
  242. package/dist/remediate/steps/nextStep.js +47 -44
  243. package/dist/remediate/steps/nextStep.js.map +1 -1
  244. package/dist/remediate/steps/prompts.d.ts.map +1 -1
  245. package/dist/remediate/steps/prompts.js +3 -0
  246. package/dist/remediate/steps/prompts.js.map +1 -1
  247. package/dist/shared/analyzers/types.d.ts +18 -18
  248. package/dist/shared/contentKey.d.ts +1 -1
  249. package/dist/shared/contentKey.js +1 -1
  250. package/dist/shared/decompose/charterClarification.d.ts +4 -4
  251. package/dist/shared/decompose/charterExtraction.d.ts +31 -31
  252. package/dist/shared/decompose/contentCoherence.d.ts +1 -1
  253. package/dist/shared/decompose/contentCoherence.js +1 -1
  254. package/dist/shared/decompose/systemicChallenge.d.ts +629 -18
  255. package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
  256. package/dist/shared/engine/obligationEngine.d.ts +2 -2
  257. package/dist/shared/index.d.ts +2 -0
  258. package/dist/shared/index.d.ts.map +1 -1
  259. package/dist/shared/index.js +2 -0
  260. package/dist/shared/index.js.map +1 -1
  261. package/dist/shared/io/stepContractWriter.js +1 -1
  262. package/dist/shared/io/stepContractWriter.js.map +1 -1
  263. package/dist/shared/loopCorePaths.d.ts.map +1 -1
  264. package/dist/shared/loopCorePaths.js +5 -2
  265. package/dist/shared/loopCorePaths.js.map +1 -1
  266. package/dist/shared/mcp/submitServer.d.ts +1 -0
  267. package/dist/shared/mcp/submitServer.d.ts.map +1 -1
  268. package/dist/shared/mcp/submitServer.js +1 -1
  269. package/dist/shared/mcp/submitServer.js.map +1 -1
  270. package/dist/shared/submission/hostResultOutcomes.js +1 -1
  271. package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
  272. package/dist/shared/tooling/exec.js +1 -1
  273. package/dist/shared/tooling/exec.js.map +1 -1
  274. package/dist/shared/types/charter.d.ts +38 -38
  275. package/dist/shared/types/contractPropertyShapes.d.ts.map +1 -1
  276. package/dist/shared/types/contractPropertyShapes.js +7 -0
  277. package/dist/shared/types/contractPropertyShapes.js.map +1 -1
  278. package/dist/shared/types/executionPlan.d.ts +88 -12
  279. package/dist/shared/types/executionPlan.d.ts.map +1 -1
  280. package/dist/shared/types/executionPlan.js +1 -0
  281. package/dist/shared/types/executionPlan.js.map +1 -1
  282. package/dist/shared/types/finding.d.ts +1721 -56
  283. package/dist/shared/types/finding.d.ts.map +1 -1
  284. package/dist/shared/types/finding.js +7 -10
  285. package/dist/shared/types/finding.js.map +1 -1
  286. package/dist/shared/types/findingVocabulary.d.ts +8 -0
  287. package/dist/shared/types/findingVocabulary.d.ts.map +1 -0
  288. package/dist/shared/types/findingVocabulary.js +13 -0
  289. package/dist/shared/types/findingVocabulary.js.map +1 -0
  290. package/dist/shared/types/intentCheckpoint.d.ts +8 -3
  291. package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
  292. package/dist/shared/types/intentCheckpoint.js +4 -3
  293. package/dist/shared/types/intentCheckpoint.js.map +1 -1
  294. package/dist/shared/types/questionReviewReport.d.ts +10574 -0
  295. package/dist/shared/types/questionReviewReport.d.ts.map +1 -0
  296. package/dist/shared/types/questionReviewReport.js +186 -0
  297. package/dist/shared/types/questionReviewReport.js.map +1 -0
  298. package/dist/shared/types/remediationOutcome.d.ts +1379 -148
  299. package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
  300. package/dist/shared/types/remediationOutcome.js +5 -0
  301. package/dist/shared/types/remediationOutcome.js.map +1 -1
  302. package/dist/shared/types/reviewIndependence.d.ts +24 -24
  303. package/dist/shared/types/reviewQuestion.d.ts +4710 -0
  304. package/dist/shared/types/reviewQuestion.d.ts.map +1 -0
  305. package/dist/shared/types/reviewQuestion.js +216 -0
  306. package/dist/shared/types/reviewQuestion.js.map +1 -0
  307. package/dist/shared/types/stepContract.js +1 -1
  308. package/dist/shared/types/stepContract.js.map +1 -1
  309. package/dist/shared/validation/designFindingGrounding.js +1 -1
  310. package/dist/shared/validation/designFindingGrounding.js.map +1 -1
  311. package/dist/shared/validation/findingsReport.d.ts.map +1 -1
  312. package/dist/shared/validation/findingsReport.js +19 -4
  313. package/dist/shared/validation/findingsReport.js.map +1 -1
  314. package/docs/audit-pkg/contracts.md +27 -56
  315. package/docs/audit-pkg/operator-guide.md +31 -17
  316. package/docs/audit-pkg/product.md +17 -23
  317. package/package.json +1 -1
  318. package/schemas/audit-code-v1alpha1.schema.json +0 -1
  319. package/schemas/review_submission.schema.json +514 -0
  320. package/skills/audit-code/audit-code.prompt.md +7 -5
  321. package/wrapper/audit-code-wrapper-lib.mjs +1 -5
  322. package/wrapper/installer-verb-help.mjs +1 -1
  323. package/dist/audit/cli/explainTaskCommand.d.ts +0 -4
  324. package/dist/audit/cli/explainTaskCommand.d.ts.map +0 -1
  325. package/dist/audit/cli/explainTaskCommand.js +0 -45
  326. package/dist/audit/cli/explainTaskCommand.js.map +0 -1
  327. package/dist/audit/cli/ingestResultsCommand.d.ts +0 -2
  328. package/dist/audit/cli/ingestResultsCommand.d.ts.map +0 -1
  329. package/dist/audit/cli/ingestResultsCommand.js +0 -42
  330. package/dist/audit/cli/ingestResultsCommand.js.map +0 -1
  331. package/dist/audit/cli/requeueCommand.d.ts +0 -2
  332. package/dist/audit/cli/requeueCommand.d.ts.map +0 -1
  333. package/dist/audit/cli/requeueCommand.js +0 -12
  334. package/dist/audit/cli/requeueCommand.js.map +0 -1
  335. package/dist/audit/cli/semanticReviewStep.d.ts +0 -41
  336. package/dist/audit/cli/semanticReviewStep.d.ts.map +0 -1
  337. package/dist/audit/cli/semanticReviewStep.js +0 -185
  338. package/dist/audit/cli/semanticReviewStep.js.map +0 -1
  339. package/dist/audit/cli/unacceptResultsCommand.d.ts +0 -19
  340. package/dist/audit/cli/unacceptResultsCommand.d.ts.map +0 -1
  341. package/dist/audit/cli/unacceptResultsCommand.js +0 -52
  342. package/dist/audit/cli/unacceptResultsCommand.js.map +0 -1
  343. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts +0 -2
  344. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts.map +0 -1
  345. package/dist/audit/cli/updateRuntimeValidationCommand.js +0 -18
  346. package/dist/audit/cli/updateRuntimeValidationCommand.js.map +0 -1
  347. package/dist/audit/cli/validateResultsCommand.d.ts +0 -13
  348. package/dist/audit/cli/validateResultsCommand.d.ts.map +0 -1
  349. package/dist/audit/cli/validateResultsCommand.js +0 -87
  350. package/dist/audit/cli/validateResultsCommand.js.map +0 -1
  351. package/dist/audit/cli/workerResult.d.ts +0 -2
  352. package/dist/audit/cli/workerResult.d.ts.map +0 -1
  353. package/dist/audit/cli/workerResult.js +0 -6
  354. package/dist/audit/cli/workerResult.js.map +0 -1
  355. package/dist/audit/orchestrator/coverageElementBaseline.d.ts +0 -54
  356. package/dist/audit/orchestrator/coverageElementBaseline.d.ts.map +0 -1
  357. package/dist/audit/orchestrator/coverageElementBaseline.js +0 -136
  358. package/dist/audit/orchestrator/coverageElementBaseline.js.map +0 -1
  359. package/dist/audit/orchestrator/planning.d.ts +0 -5
  360. package/dist/audit/orchestrator/planning.d.ts.map +0 -1
  361. package/dist/audit/orchestrator/planning.js +0 -79
  362. package/dist/audit/orchestrator/planning.js.map +0 -1
  363. package/dist/audit/orchestrator/planningExecutors.d.ts +0 -21
  364. package/dist/audit/orchestrator/planningExecutors.d.ts.map +0 -1
  365. package/dist/audit/orchestrator/planningExecutors.js +0 -273
  366. package/dist/audit/orchestrator/planningExecutors.js.map +0 -1
  367. package/dist/audit/orchestrator/taskBuilder.d.ts +0 -62
  368. package/dist/audit/orchestrator/taskBuilder.d.ts.map +0 -1
  369. package/dist/audit/orchestrator/taskBuilder.js +0 -412
  370. package/dist/audit/orchestrator/taskBuilder.js.map +0 -1
  371. package/dist/audit/orchestrator/trivialAudit.d.ts +0 -21
  372. package/dist/audit/orchestrator/trivialAudit.d.ts.map +0 -1
  373. package/dist/audit/orchestrator/trivialAudit.js +0 -80
  374. package/dist/audit/orchestrator/trivialAudit.js.map +0 -1
@@ -1,273 +0,0 @@
1
- // sites-pinned: tests/audit/audit-frontier.test.ts, tests/audit/runtime-validation-source.test.ts
2
- import { DEEPENING_TAG } from "./selectiveDeepening/shared.js";
3
- import { architectureDiscoveryTasks, isArchitectureDiscoveryTask } from "./architectureDiscovery.js";
4
- import { initializeCoverageFromPlan } from "./planning.js";
5
- import { applyIntentExclusionsToCoverage, applyScopeToCoverage, fullAuditScope, } from "./scope.js";
6
- import { buildFlowCoverage } from "./flowCoverage.js";
7
- import { buildRequeuePayload } from "./requeueCommand.js";
8
- import { buildRuntimeValidationTasks, discoverRuntimeValidationCommand, mergeCurrentRuntimeValidationReport, } from "./runtimeValidation.js";
9
- import { buildChunkedAuditTasks, fileAssignmentKey, taskLeadsAreCurrent, } from "./taskBuilder.js";
10
- import { getExternalSignalPaths } from "./requeueUtils.js";
11
- import { buildAuditPlanMetrics, sizeIndexFromManifest, } from "./reviewPackets.js";
12
- import { taskContentTokens } from "./reviewPacketSizing.js";
13
- import { computeRiskEstimate } from "./auditTaskUtils.js";
14
- import { buildTaskAffinityGraph } from "./taskAffinityGraph.js";
15
- import { resolveIntentLensSelection } from "./lensSelection.js";
16
- import { foldPendingRequeueTasks } from "./requeueFold.js";
17
- import { autoCompleteTrivialCoverage } from "./trivialAudit.js";
18
- import { applyContentAddressedPreservation, coverageContentSignature, readCoverageElementBaselines, recordCoverageElementBaselines, withCoverageElementBaselines, deriveCoverageElementKey, } from "./coverageElementBaseline.js";
19
- import { interpretFreeFormIntentForAudit } from "./intentInterpreter.js";
20
- import { canonicalizeAuditTasks } from "../../shared/affinityArtifacts.js";
21
- import { isSha256, pathMatchesPrefix } from "audit-tools/shared";
22
- import { derivePendingTaskPartition } from "./pendingTasks.js";
23
- // ---------------------------------------------------------------------------
24
- // Free-form intent interpreter (keyword → lens boost, deterministic, no LLM)
25
- // ---------------------------------------------------------------------------
26
- /**
27
- * Interpret a free-form intent string into lenses to priority-boost.
28
- *
29
- * Single authority: this delegates to the shared clause-aware interpreter via
30
- * `interpretFreeFormIntentForAudit` (→ `audit-tools/shared` `interpretIntent`).
31
- * There is exactly one keyword/lens map in the codebase — the shared
32
- * `LENS_KEYWORD_MAP`. Lens boosts are derived from the `lens_weight` encoded
33
- * clauses; unencodable clauses are NOT silently dropped here — they are gated
34
- * upstream as blocking checkpoint questions (see `state.ts`
35
- * `intent_checkpoint_current` and `confirmIntentStep.ts`).
36
- *
37
- * Deterministic — no LLM call.
38
- * INV-S04: the verbatim intent string never appears in output fields.
39
- */
40
- export function interpretFreeFormIntent(text) {
41
- if (!text || text.trim().length === 0)
42
- return [];
43
- const interpretation = interpretFreeFormIntentForAudit(text);
44
- const boosts = new Set();
45
- for (const clause of interpretation.encoded_clauses) {
46
- if (clause.kind === "lens_weight" && clause.lens) {
47
- boosts.add(clause.lens);
48
- }
49
- }
50
- return [...boosts];
51
- }
52
- export async function runPlanningExecutor(bundle, root, lineIndex = {}, sizeIndex, scope, publishedTaskIds = new Set()) {
53
- if (!bundle.repo_manifest) {
54
- throw new Error("Cannot run planning executor without repo_manifest");
55
- }
56
- const resolvedSizeIndex = sizeIndex ?? sizeIndexFromManifest(bundle.repo_manifest);
57
- if (!bundle.file_disposition ||
58
- !bundle.unit_manifest ||
59
- !bundle.surface_manifest ||
60
- !bundle.critical_flows ||
61
- !bundle.risk_register) {
62
- throw new Error("Cannot run planning executor without current structure artifacts");
63
- }
64
- const resolvedScope = scope ?? fullAuditScope();
65
- const externalAnalyzerResults = bundle.external_analyzer_results;
66
- // Apply disposition_overrides before coverage initialization so overridden
67
- // files never enter coverage at all (not just filtered after).
68
- // Use the shared normalized exact-or-directory-prefix matcher.
69
- const dispositionOverrides = bundle.intent_checkpoint?.disposition_overrides;
70
- let effectiveFileDisposition = bundle.file_disposition;
71
- if (dispositionOverrides && dispositionOverrides.length > 0) {
72
- effectiveFileDisposition = {
73
- ...bundle.file_disposition,
74
- files: bundle.file_disposition.files.map((f) => {
75
- for (const override of dispositionOverrides) {
76
- if (pathMatchesPrefix(f.path, override.path)) {
77
- return { ...f, status: override.status, reason: override.reason };
78
- }
79
- }
80
- return f;
81
- }),
82
- };
83
- }
84
- // Resolve effective lenses from lens_selection (mandatory lenses always
85
- // included; resolveIntentLensSelection enforces this invariant and is the same
86
- // resolution the ingestion draw's requeue fold reads).
87
- const effectiveLenses = resolveIntentLensSelection(bundle.intent_checkpoint?.lens_selection);
88
- const coverage = initializeCoverageFromPlan(bundle.repo_manifest, bundle.unit_manifest, effectiveFileDisposition, externalAnalyzerResults);
89
- const skippedTrivialPaths = autoCompleteTrivialCoverage(coverage, lineIndex, externalAnalyzerResults);
90
- // Delta scope: only seed + expanded files stay pending; the rest inherit prior
91
- // completion or are excluded from this run. Full scope is a no-op.
92
- applyScopeToCoverage(coverage, resolvedScope, bundle.coverage_matrix);
93
- // Layer the host-confirmed intent exclusions on top of disposition + scope so
94
- // user-pruned scope pollution never becomes an audit task.
95
- const intentExcludedPaths = applyIntentExclusionsToCoverage(coverage, bundle.intent_checkpoint?.excluded_scope);
96
- // T5 #12 content-addressed GRANULAR staleness: preserve prior completion for
97
- // files whose audit inputs (content signal + required lenses + unit membership)
98
- // are unchanged from the recorded baseline, so a re-plan triggered by an
99
- // unrelated upstream change doesn't re-audit files that didn't move. First plan
100
- // (no baseline) preserves nothing → identical to prior behavior. Then re-record
101
- // the per-element baselines for THIS coverage so the next re-plan can compare.
102
- const coverageContentSig = coverageContentSignature(bundle.repo_manifest);
103
- const preservedCount = applyContentAddressedPreservation(coverage, bundle.coverage_matrix, readCoverageElementBaselines(bundle.artifact_metadata), coverageContentSig);
104
- const refreshedCoverageBaselines = recordCoverageElementBaselines(coverage, coverageContentSig);
105
- const flowCoverage = buildFlowCoverage(bundle.critical_flows, coverage);
106
- const runtimeCommand = await discoverRuntimeValidationCommand(root);
107
- const runtimeValidationTasks = buildRuntimeValidationTasks({
108
- unitManifest: bundle.unit_manifest,
109
- criticalFlows: bundle.critical_flows,
110
- flowCoverage,
111
- command: runtimeCommand,
112
- });
113
- const runtimeValidationReport = runtimeValidationTasks.tasks.length > 0
114
- ? mergeCurrentRuntimeValidationReport(runtimeValidationTasks, bundle)
115
- : undefined;
116
- // Interpret free_form_intent into lens priority boosts via the single shared
117
- // clause-aware authority (deterministic, no LLM). Unencodable clauses are NOT
118
- // dropped here — they are gated upstream as a blocking checkpoint question
119
- // (state.ts intent_checkpoint_current), so by the time planning runs every
120
- // clause is either an encoded signal or an explicitly host-answered constraint.
121
- const freeFormIntent = bundle.intent_checkpoint?.free_form_intent ?? "";
122
- const intentBoostLenses = interpretFreeFormIntent(freeFormIntent);
123
- if (freeFormIntent.trim().length > 0) {
124
- const interpretation = interpretFreeFormIntentForAudit(freeFormIntent);
125
- // INV-S04: derived signal only — never the verbatim free_form_intent. Each
126
- // encoded clause's `detail` is a generated description, not the raw input.
127
- const encodedSignals = interpretation.encoded_clauses.map((c) => `${c.kind}${c.lens ? `:${c.lens}` : ""}`);
128
- process.stderr.write(JSON.stringify({
129
- kind: "intent_keyword_interpretation",
130
- boosted_lenses: intentBoostLenses,
131
- encoded_signals: encodedSignals,
132
- ts: new Date().toISOString(),
133
- }) + "\n");
134
- }
135
- const taskBuildOptions = {
136
- external_analyzer_results: externalAnalyzerResults,
137
- critical_flows: bundle.critical_flows,
138
- ...(effectiveLenses !== undefined ? { limit_lenses: effectiveLenses } : {}),
139
- ...(intentBoostLenses.length > 0 ? { intent_priority_boost: intentBoostLenses } : {}),
140
- };
141
- // Ask the existing flow-first builder who owns every current review subject,
142
- // including paths another result already covered, before reserving old work.
143
- // Ownership is compared per file (`fileAssignmentKey`): the chunks of this
144
- // all-pending build differ from the published ones, so a chunk-level fact
145
- // (priority, signal, split) would reject an unchanged published task.
146
- // `publishedTaskIds` is the one input of this plan that the dependency map does
147
- // not declare: it chooses which pending tasks keep their ids, never which
148
- // lens:path pairs are planned, so it adds no staleness edge.
149
- const assignmentTasks = buildChunkedAuditTasks({ ...coverage, files: coverage.files.map(file => file.audit_status === "excluded" ? file :
150
- { ...file, audit_status: "pending", completed_lenses: [] }) }, lineIndex, taskBuildOptions);
151
- const liveAssignments = new Map(assignmentTasks.flatMap(task => task.file_paths.map(path => [`${task.lens}:${path}`, fileAssignmentKey(task)])));
152
- const externalPaths = getExternalSignalPaths(externalAnalyzerResults);
153
- const liveCoverage = new Map(coverage.files.map(file => [file.path, file]));
154
- const oldBaselines = readCoverageElementBaselines(bundle.artifact_metadata);
155
- const partition = derivePendingTaskPartition(bundle);
156
- const preservedReviewTasks = partition.pendingTasks.filter(task => publishedTaskIds.has(task.task_id) &&
157
- !partition.staleResultTaskIds.has(task.task_id) && !task.tags?.includes(DEEPENING_TAG) && !isArchitectureDiscoveryTask(task) &&
158
- taskLeadsAreCurrent(task, externalPaths, intentBoostLenses) &&
159
- task.file_paths.every(path => {
160
- const file = liveCoverage.get(path);
161
- const source = coverageContentSig[path];
162
- return file && file.audit_status !== "excluded" && file.required_lenses.includes(task.lens) &&
163
- isSha256(source) && task.inputs?.[`source:${path}`] === source &&
164
- oldBaselines?.[path] === deriveCoverageElementKey(file, source) && liveAssignments.get(`${task.lens}:${path}`) === fileAssignmentKey(task);
165
- }));
166
- const reserved = new Set(preservedReviewTasks.flatMap(task => task.file_paths.map(path => `${task.lens}:${path}`)));
167
- const remainingCoverage = { ...coverage, files: coverage.files.map(file => ({ ...file,
168
- completed_lenses: [...new Set([...file.completed_lenses, ...file.required_lenses.filter(lens => reserved.has(`${lens}:${file.path}`))])] })) };
169
- const auditTasks = buildChunkedAuditTasks(remainingCoverage, lineIndex, taskBuildOptions);
170
- const taggedAuditTasks = auditTasks.map((task) => ({
171
- ...task,
172
- status: task.status ?? "pending",
173
- }));
174
- const requeuePayload = buildRequeuePayload(coverage, bundle.critical_flows, flowCoverage, externalAnalyzerResults);
175
- // Fold pending requeue tasks into the review set so mandatory coverage gaps
176
- // produce host work items — through the SHARED fold (`foldPendingRequeueTasks`),
177
- // whose dedupe is COVERAGE-based: a requeue task whose (path × lens) an
178
- // existing audit task already covers is a duplicate of planned work (the fresh
179
- // -plan requeue payload mirrors the whole pending set under different ids), so
180
- // only genuinely-uncovered gaps survive — and those ARE persisted below
181
- // (INV-PLAN-PERSIST-COMPLETE).
182
- const pendingRequeueTasks = foldPendingRequeueTasks({
183
- requeueTasks: requeuePayload.tasks,
184
- auditTasks: [...preservedReviewTasks, ...taggedAuditTasks],
185
- lineIndex,
186
- effectiveLenses,
187
- });
188
- // Freeze local estimates on every review task: a byte-based token estimate and
189
- // a deterministic risk seed. These persist as descriptive host-workload
190
- // metadata; the estimate-review step may later refine them.
191
- const sourceHashes = new Map(bundle.repo_manifest.files.map((file) => [file.path, file.hash ?? "unversioned"]));
192
- const freezeEstimates = (task) => ({
193
- ...task,
194
- inputs: { ...task.inputs, ...Object.fromEntries(task.file_paths.map((path) => [`source:${path}`, sourceHashes.get(path) ?? "unversioned"])) },
195
- token_estimate: task.token_estimate ??
196
- taskContentTokens(task, resolvedSizeIndex, lineIndex),
197
- risk_estimate: task.risk_estimate ?? computeRiskEstimate(task),
198
- });
199
- const enrichedAuditTasks = taggedAuditTasks.map(freezeEstimates);
200
- const allReviewTasks = canonicalizeAuditTasks([
201
- // Keep the original frozen subject, including its source snapshots and prompt rationale.
202
- ...preservedReviewTasks,
203
- ...enrichedAuditTasks,
204
- ...pendingRequeueTasks.map(freezeEstimates),
205
- // Reconciliation must not drop unrelated in-flight verification work.
206
- ...(bundle.audit_tasks ?? []).filter((task) => task.tags?.includes(DEEPENING_TAG) &&
207
- !isArchitectureDiscoveryTask(task) && task.file_paths.every((path) => {
208
- const file = liveCoverage.get(path);
209
- return file !== undefined && file.audit_status !== "excluded";
210
- })).map(freezeEstimates),
211
- ...architectureDiscoveryTasks({ ...bundle, coverage_matrix: coverage }, lineIndex).map(freezeEstimates),
212
- ]);
213
- // Persist frozen task nodes and their soft affinity edges; the host workload
214
- // later projects canonical coherence groups from this graph.
215
- const taskAffinityGraph = buildTaskAffinityGraph(allReviewTasks, {
216
- graphBundle: bundle.graph_bundle,
217
- });
218
- const auditPlanMetrics = buildAuditPlanMetrics(allReviewTasks, {
219
- affinityGraph: taskAffinityGraph,
220
- graphBundle: bundle.graph_bundle,
221
- lineIndex,
222
- sizeIndex: resolvedSizeIndex,
223
- });
224
- const scopeSummary = resolvedScope.mode === "delta"
225
- ? ` Delta scope since ${resolvedScope.since}: ${resolvedScope.seed_files.length} changed file(s) + ${resolvedScope.expanded_files.length} graph neighbour(s) queued; a full audit is advised before release.`
226
- : "";
227
- return {
228
- updated: {
229
- ...bundle,
230
- scope: resolvedScope,
231
- coverage_matrix: coverage,
232
- flow_coverage: flowCoverage,
233
- runtime_validation_tasks: runtimeValidationTasks,
234
- runtime_validation_report: runtimeValidationReport,
235
- // INV-PLAN-PERSIST-COMPLETE: the persisted review set is the whole merged
236
- // list. An omitted task would be a phantom described by the affinity graph
237
- // and metrics but absent from the emitted workload. Estimates on every
238
- // entry are frozen (INV-PLAN-FROZEN-ESTIMATES).
239
- audit_tasks: allReviewTasks,
240
- audit_plan_metrics: auditPlanMetrics,
241
- task_affinity_graph: taskAffinityGraph,
242
- requeue_tasks: requeuePayload.tasks,
243
- audit_report: undefined,
244
- artifact_metadata: withCoverageElementBaselines(bundle.artifact_metadata, refreshedCoverageBaselines),
245
- },
246
- artifacts_written: [
247
- "scope.json",
248
- "coverage_matrix.json",
249
- "flow_coverage.json",
250
- "runtime_validation_tasks.json",
251
- ...(runtimeValidationReport ? ["runtime_validation_report.json"] : []),
252
- "audit_tasks.json",
253
- "audit_plan_metrics.json",
254
- "task_affinity_graph.json",
255
- "requeue_tasks.json",
256
- ],
257
- progress_summary: `Built planning artifacts; generated ${taggedAuditTasks.length} review tasks and ${requeuePayload.task_count} requeue tasks.` +
258
- scopeSummary +
259
- (skippedTrivialPaths.length > 0
260
- ? ` Skipped ${skippedTrivialPaths.length} trivial path${skippedTrivialPaths.length === 1 ? "" : "s"} from semantic review.`
261
- : "") +
262
- (preservedCount > 0
263
- ? ` Preserved prior completion for ${preservedCount} unchanged file${preservedCount === 1 ? "" : "s"} (content-addressed staleness).`
264
- : "") +
265
- (intentExcludedPaths.length > 0
266
- ? ` Excluded ${intentExcludedPaths.length} path${intentExcludedPaths.length === 1 ? "" : "s"} per the intent checkpoint.`
267
- : "") +
268
- (runtimeCommand
269
- ? ` Runtime validation will use: ${runtimeCommand.join(" ")}.`
270
- : " No deterministic runtime validation command was discovered."),
271
- };
272
- }
273
- //# sourceMappingURL=planningExecutors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planningExecutors.js","sourceRoot":"","sources":["../../../src/audit/orchestrator/planningExecutors.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EAAE,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mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,wBAAwB;gBAC3H,CAAC,CAAC,EAAE,CAAC;YACP,CAAC,cAAc,GAAG,CAAC;gBACjB,CAAC,CAAC,mCAAmC,cAAc,kBAAkB,cAAc,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,iCAAiC;gBACrI,CAAC,CAAC,EAAE,CAAC;YACP,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC;gBAC7B,CAAC,CAAC,aAAa,mBAAmB,CAAC,MAAM,QAAQ,mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,6BAA6B;gBACzH,CAAC,CAAC,EAAE,CAAC;YACP,CAAC,cAAc;gBACb,CAAC,CAAC,iCAAiC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;gBAC9D,CAAC,CAAC,8DAA8D,CAAC;KACtE,CAAC;AACJ,CAAC"}
@@ -1,62 +0,0 @@
1
- import type { ExternalAnalyzerResults } from "audit-tools/shared";
2
- import type { AuditTask, CoverageMatrix } from "../types.js";
3
- import type { CriticalFlowManifest } from "audit-tools/shared";
4
- export interface UnitLineIndex {
5
- [path: string]: number;
6
- }
7
- export interface BuildChunkedTaskOptions {
8
- /**
9
- * Line count above which a single file gets its own task rather than being
10
- * grouped with the rest of its unit. Default: `DEFAULT_FILE_SPLIT_THRESHOLD`
11
- * (5000). Set to 0 to disable splitting entirely.
12
- */
13
- file_split_threshold?: number;
14
- /**
15
- * Approximate total line budget for a review task. Multi-file blocks above
16
- * this budget are split into multiple bounded review tasks. Default: 1500.
17
- * Set to 0 to disable aggregate line-budget splitting.
18
- */
19
- max_task_lines?: number;
20
- /**
21
- * Maximum number of files in one review task. Default: 0 (disabled).
22
- * Token budget (max_task_lines) is the real constraint; file-count splitting
23
- * is off by default. Set to a positive integer to re-enable.
24
- */
25
- max_task_files?: number;
26
- /**
27
- * Test files at or below this size can be batched across unit boundaries.
28
- * Default: 250. Set to 0 to disable tiny-test batching.
29
- */
30
- tiny_test_file_lines?: number;
31
- limit_lenses?: string[];
32
- /**
33
- * Lenses whose tasks should have their priority elevated by one tier
34
- * (low→medium, medium→high). Derived from free_form_intent at planning time;
35
- * never promoted above 'high'.
36
- */
37
- intent_priority_boost?: string[];
38
- external_analyzer_results?: ExternalAnalyzerResults[];
39
- critical_flows?: CriticalFlowManifest;
40
- }
41
- /**
42
- * Who owns one lens:path in a plan, from the facts this builder decides per file:
43
- * the unit, the pass, and the per-file tags (flow membership, `large_file`).
44
- * Flow membership is per file because the flow claim runs over the eligible
45
- * set. Priority and the group-derived tags follow the chunk, so they are left
46
- * out; {@link taskLeadsAreCurrent} checks them against the task's own files.
47
- */
48
- export declare function fileAssignmentKey(task: AuditTask): string;
49
- /**
50
- * True when a published task's chunk-level facts still hold under the current
51
- * plan inputs:
52
- * - it carries the external analyzer signal when one of its own files earns it;
53
- * - its priority is the one this builder gives its tags under the current intent
54
- * boost (priority gates selective deepening, so a stale one is wrong work).
55
- * A signal that a sibling chunk of its block earned may stay on the task: a
56
- * published task cannot tell a sibling's signal from a signal that is gone.
57
- * The unmeasured lead needs no check: a task with an unmeasured file is never
58
- * counted as published (`readPublishedAuditTaskIds` needs a measured count).
59
- */
60
- export declare function taskLeadsAreCurrent(task: AuditTask, externalPaths: ReadonlySet<string>, intentPriorityBoost: readonly string[] | undefined): boolean;
61
- export declare function buildChunkedAuditTasks(coverageMatrix: CoverageMatrix, unitLineIndex: UnitLineIndex, options?: BuildChunkedTaskOptions): AuditTask[];
62
- //# sourceMappingURL=taskBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taskBuilder.d.ts","sourceRoot":"","sources":["../../../src/audit/orchestrator/taskBuilder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EAEf,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAY/D,MAAM,WAAW,aAAa;IAC5B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,yBAAyB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACtD,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAgND;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAMzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,EACf,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,EAClC,mBAAmB,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACjD,OAAO,CAMT;AAwID,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,OAAO,GAAE,uBAA4B,GACpC,SAAS,EAAE,CAuIb"}