audit-tools 0.56.2 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/README.md +8 -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 +2 -136
  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 +414 -1
  17. package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
  18. package/dist/audit/cli/dispatch/hostHandoff.js +223 -1
  19. package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
  20. package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts +254 -0
  21. package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts.map +1 -0
  22. package/dist/audit/cli/dispatch/questionReviewAcceptance.js +181 -0
  23. package/dist/audit/cli/dispatch/questionReviewAcceptance.js.map +1 -0
  24. package/dist/audit/cli/functionalPreflight.d.ts +4 -4
  25. package/dist/audit/cli/laneSubmissions.d.ts +4 -4
  26. package/dist/audit/cli/nextStepCommand.d.ts +3 -20
  27. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
  28. package/dist/audit/cli/nextStepCommand.js +39 -133
  29. package/dist/audit/cli/nextStepCommand.js.map +1 -1
  30. package/dist/audit/cli/nextStepHelpers.d.ts +10 -72
  31. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
  32. package/dist/audit/cli/nextStepHelpers.js +95 -363
  33. package/dist/audit/cli/nextStepHelpers.js.map +1 -1
  34. package/dist/audit/cli/prompts.d.ts +0 -2
  35. package/dist/audit/cli/prompts.d.ts.map +1 -1
  36. package/dist/audit/cli/prompts.js +3 -14
  37. package/dist/audit/cli/prompts.js.map +1 -1
  38. package/dist/audit/cli/questionReviewCycle.d.ts +239 -0
  39. package/dist/audit/cli/questionReviewCycle.d.ts.map +1 -0
  40. package/dist/audit/cli/questionReviewCycle.js +55 -0
  41. package/dist/audit/cli/questionReviewCycle.js.map +1 -0
  42. package/dist/audit/cli/questionReviewSession.d.ts +7 -0
  43. package/dist/audit/cli/questionReviewSession.d.ts.map +1 -0
  44. package/dist/audit/cli/questionReviewSession.js +46 -0
  45. package/dist/audit/cli/questionReviewSession.js.map +1 -0
  46. package/dist/audit/cli/questionWorkloadBindings.d.ts +7 -0
  47. package/dist/audit/cli/questionWorkloadBindings.d.ts.map +1 -0
  48. package/dist/audit/cli/questionWorkloadBindings.js +66 -0
  49. package/dist/audit/cli/questionWorkloadBindings.js.map +1 -0
  50. package/dist/audit/cli/resynthesizeCommand.d.ts +1 -0
  51. package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -1
  52. package/dist/audit/cli/resynthesizeCommand.js +52 -51
  53. package/dist/audit/cli/resynthesizeCommand.js.map +1 -1
  54. package/dist/audit/cli/sampleRunCommand.d.ts +565 -160
  55. package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -1
  56. package/dist/audit/cli/sampleRunCommand.js +66 -152
  57. package/dist/audit/cli/sampleRunCommand.js.map +1 -1
  58. package/dist/audit/cli/statusCommand.d.ts.map +1 -1
  59. package/dist/audit/cli/statusCommand.js +20 -14
  60. package/dist/audit/cli/statusCommand.js.map +1 -1
  61. package/dist/audit/cli/steps.d.ts +10 -10
  62. package/dist/audit/cli/submitCommand.d.ts +11 -6
  63. package/dist/audit/cli/submitCommand.d.ts.map +1 -1
  64. package/dist/audit/cli/submitCommand.js +91 -24
  65. package/dist/audit/cli/submitCommand.js.map +1 -1
  66. package/dist/audit/cli.d.ts.map +1 -1
  67. package/dist/audit/cli.js +6 -17
  68. package/dist/audit/cli.js.map +1 -1
  69. package/dist/audit/contracts/findingContractPrompt.d.ts +4 -4
  70. package/dist/audit/contracts/workerSchemas.d.ts +69 -68
  71. package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
  72. package/dist/audit/contracts/workerSchemas.js +8 -1
  73. package/dist/audit/contracts/workerSchemas.js.map +1 -1
  74. package/dist/audit/contracts/wrapperResponse.d.ts +13 -13
  75. package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
  76. package/dist/audit/contracts/wrapperResponse.js +0 -1
  77. package/dist/audit/contracts/wrapperResponse.js.map +1 -1
  78. package/dist/audit/extractors/designAssessment.js +2 -2
  79. package/dist/audit/extractors/designAssessment.js.map +1 -1
  80. package/dist/audit/io/artifacts.d.ts +31 -9
  81. package/dist/audit/io/artifacts.d.ts.map +1 -1
  82. package/dist/audit/io/artifacts.js +197 -31
  83. package/dist/audit/io/artifacts.js.map +1 -1
  84. package/dist/audit/io/rollover.d.ts.map +1 -1
  85. package/dist/audit/io/rollover.js +7 -16
  86. package/dist/audit/io/rollover.js.map +1 -1
  87. package/dist/audit/io/runSnapshot.d.ts +1 -1
  88. package/dist/audit/io/runSnapshot.js +1 -1
  89. package/dist/audit/orchestrator/architectureDiscovery.d.ts +9 -10
  90. package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -1
  91. package/dist/audit/orchestrator/architectureDiscovery.js +95 -13
  92. package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -1
  93. package/dist/audit/orchestrator/charterPacketArchive.d.ts +3 -0
  94. package/dist/audit/orchestrator/charterPacketArchive.d.ts.map +1 -1
  95. package/dist/audit/orchestrator/charterPacketArchive.js +31 -2
  96. package/dist/audit/orchestrator/charterPacketArchive.js.map +1 -1
  97. package/dist/audit/orchestrator/dependencyMap.d.ts +2 -8
  98. package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
  99. package/dist/audit/orchestrator/dependencyMap.js +10 -105
  100. package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
  101. package/dist/audit/orchestrator/dependencySlices.d.ts +2 -3
  102. package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
  103. package/dist/audit/orchestrator/dependencySlices.js +2 -35
  104. package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
  105. package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
  106. package/dist/audit/orchestrator/designReviewPrompt.js +24 -14
  107. package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
  108. package/dist/audit/orchestrator/executorRunners.d.ts +1 -1
  109. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
  110. package/dist/audit/orchestrator/executorRunners.js +14 -21
  111. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  112. package/dist/audit/orchestrator/executors.d.ts.map +1 -1
  113. package/dist/audit/orchestrator/executors.js +1 -131
  114. package/dist/audit/orchestrator/executors.js.map +1 -1
  115. package/dist/audit/orchestrator/flowPlanning.d.ts +1 -1
  116. package/dist/audit/orchestrator/flowPlanning.js +1 -1
  117. package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
  118. package/dist/audit/orchestrator/ingestionExecutors.js +19 -12
  119. package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
  120. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +2 -2
  121. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
  122. package/dist/audit/orchestrator/intentCheckpointExecutor.js +37 -36
  123. package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
  124. package/dist/audit/orchestrator/lensSelection.d.ts +6 -37
  125. package/dist/audit/orchestrator/lensSelection.d.ts.map +1 -1
  126. package/dist/audit/orchestrator/lensSelection.js +42 -68
  127. package/dist/audit/orchestrator/lensSelection.js.map +1 -1
  128. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
  129. package/dist/audit/orchestrator/nextStep.js +1 -4
  130. package/dist/audit/orchestrator/nextStep.js.map +1 -1
  131. package/dist/audit/orchestrator/questionEvidence.d.ts +67 -0
  132. package/dist/audit/orchestrator/questionEvidence.d.ts.map +1 -0
  133. package/dist/audit/orchestrator/questionEvidence.js +177 -0
  134. package/dist/audit/orchestrator/questionEvidence.js.map +1 -0
  135. package/dist/audit/orchestrator/questionPlanExecutor.d.ts +10 -0
  136. package/dist/audit/orchestrator/questionPlanExecutor.d.ts.map +1 -0
  137. package/dist/audit/orchestrator/questionPlanExecutor.js +23 -0
  138. package/dist/audit/orchestrator/questionPlanExecutor.js.map +1 -0
  139. package/dist/audit/orchestrator/questionPlanning.d.ts +48 -0
  140. package/dist/audit/orchestrator/questionPlanning.d.ts.map +1 -0
  141. package/dist/audit/orchestrator/questionPlanning.js +326 -0
  142. package/dist/audit/orchestrator/questionPlanning.js.map +1 -0
  143. package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts +11 -0
  144. package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts.map +1 -0
  145. package/dist/audit/orchestrator/reviewLensPlaybooks.js +11 -0
  146. package/dist/audit/orchestrator/reviewLensPlaybooks.js.map +1 -0
  147. package/dist/audit/orchestrator/runtimeValidation.d.ts.map +1 -1
  148. package/dist/audit/orchestrator/runtimeValidation.js +14 -0
  149. package/dist/audit/orchestrator/runtimeValidation.js.map +1 -1
  150. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts +1 -1
  151. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts.map +1 -1
  152. package/dist/audit/orchestrator/runtimeValidationUpdate.js +13 -4
  153. package/dist/audit/orchestrator/runtimeValidationUpdate.js.map +1 -1
  154. package/dist/audit/orchestrator/selectiveDeepening/conflict.js +1 -1
  155. package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -1
  156. package/dist/audit/orchestrator/selectiveDeepening/index.js +1 -1
  157. package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -1
  158. package/dist/audit/orchestrator/state.d.ts.map +1 -1
  159. package/dist/audit/orchestrator/state.js +8 -60
  160. package/dist/audit/orchestrator/state.js.map +1 -1
  161. package/dist/audit/orchestrator/synthesisExecutors.d.ts +15 -1
  162. package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
  163. package/dist/audit/orchestrator/synthesisExecutors.js +76 -25
  164. package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
  165. package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts.map +1 -1
  166. package/dist/audit/orchestrator/systemicChallengeExecutor.js +11 -6
  167. package/dist/audit/orchestrator/systemicChallengeExecutor.js.map +1 -1
  168. package/dist/audit/orchestrator/taskAffinityGraph.d.ts +4 -4
  169. package/dist/audit/reporting/questionReport.d.ts +27 -0
  170. package/dist/audit/reporting/questionReport.d.ts.map +1 -0
  171. package/dist/audit/reporting/questionReport.js +183 -0
  172. package/dist/audit/reporting/questionReport.js.map +1 -0
  173. package/dist/audit/reporting/synthesis.d.ts +10 -1
  174. package/dist/audit/reporting/synthesis.d.ts.map +1 -1
  175. package/dist/audit/reporting/synthesis.js +161 -24
  176. package/dist/audit/reporting/synthesis.js.map +1 -1
  177. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts +4 -1
  178. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts.map +1 -1
  179. package/dist/audit/reporting/synthesisNarrativePrompt.js +5 -1
  180. package/dist/audit/reporting/synthesisNarrativePrompt.js.map +1 -1
  181. package/dist/audit/supervisor/operatorHandoff.d.ts +2 -3
  182. package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
  183. package/dist/audit/supervisor/operatorHandoff.js +3 -18
  184. package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
  185. package/dist/audit/systemic/aggregateMetricsDigest.d.ts.map +1 -1
  186. package/dist/audit/systemic/aggregateMetricsDigest.js +0 -2
  187. package/dist/audit/systemic/aggregateMetricsDigest.js.map +1 -1
  188. package/dist/audit/types/artifactMetadata.d.ts +1 -2
  189. package/dist/audit/types/artifactMetadata.d.ts.map +1 -1
  190. package/dist/audit/types/auditState.d.ts +6 -6
  191. package/dist/audit/types/conceptualAdjudication.d.ts +708 -50
  192. package/dist/audit/types/conceptualAdjudication.d.ts.map +1 -1
  193. package/dist/audit/types/conceptualAdjudication.js +2 -0
  194. package/dist/audit/types/conceptualAdjudication.js.map +1 -1
  195. package/dist/audit/types/runtimeValidation.d.ts +58 -6
  196. package/dist/audit/types/runtimeValidation.d.ts.map +1 -1
  197. package/dist/audit/types/runtimeValidation.js +8 -0
  198. package/dist/audit/types/runtimeValidation.js.map +1 -1
  199. package/dist/audit/types.d.ts +539 -22
  200. package/dist/audit/types.d.ts.map +1 -1
  201. package/dist/audit/validation/auditResults.d.ts +1 -1
  202. package/dist/audit/validation/auditResults.js +1 -1
  203. package/dist/audit/validation/ingestIssueCodes.d.ts.map +1 -1
  204. package/dist/audit/validation/ingestIssueCodes.js +0 -1
  205. package/dist/audit/validation/ingestIssueCodes.js.map +1 -1
  206. package/dist/remediate/contractPipeline/executionPlan.d.ts +679 -52
  207. package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -1
  208. package/dist/remediate/contractPipeline/executionPlan.js +23 -0
  209. package/dist/remediate/contractPipeline/executionPlan.js.map +1 -1
  210. package/dist/remediate/findingFilter.d.ts.map +1 -1
  211. package/dist/remediate/findingFilter.js +6 -2
  212. package/dist/remediate/findingFilter.js.map +1 -1
  213. package/dist/remediate/intake.d.ts +4 -4
  214. package/dist/remediate/phases/close.d.ts.map +1 -1
  215. package/dist/remediate/phases/close.js +15 -5
  216. package/dist/remediate/phases/close.js.map +1 -1
  217. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts +5 -0
  218. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
  219. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +37 -8
  220. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
  221. package/dist/remediate/state/types.d.ts +619 -26
  222. package/dist/remediate/state/types.d.ts.map +1 -1
  223. package/dist/remediate/state/types.js +2 -1
  224. package/dist/remediate/state/types.js.map +1 -1
  225. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
  226. package/dist/remediate/steps/contractPipeline.js +2 -0
  227. package/dist/remediate/steps/contractPipeline.js.map +1 -1
  228. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
  229. package/dist/remediate/steps/contractPipelinePrompts.js +2 -0
  230. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
  231. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +3 -3
  232. package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
  233. package/dist/remediate/steps/intakeResolver.js +31 -6
  234. package/dist/remediate/steps/intakeResolver.js.map +1 -1
  235. package/dist/remediate/steps/nextStep.d.ts.map +1 -1
  236. package/dist/remediate/steps/nextStep.js +31 -40
  237. package/dist/remediate/steps/nextStep.js.map +1 -1
  238. package/dist/remediate/steps/prompts.d.ts.map +1 -1
  239. package/dist/remediate/steps/prompts.js +3 -0
  240. package/dist/remediate/steps/prompts.js.map +1 -1
  241. package/dist/shared/analyzers/types.d.ts +18 -18
  242. package/dist/shared/contentKey.d.ts +1 -1
  243. package/dist/shared/contentKey.js +1 -1
  244. package/dist/shared/decompose/charterClarification.d.ts +4 -4
  245. package/dist/shared/decompose/charterExtraction.d.ts +30 -30
  246. package/dist/shared/decompose/contentCoherence.d.ts +1 -1
  247. package/dist/shared/decompose/contentCoherence.js +1 -1
  248. package/dist/shared/decompose/systemicChallenge.d.ts +629 -18
  249. package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
  250. package/dist/shared/engine/obligationEngine.d.ts +2 -2
  251. package/dist/shared/index.d.ts +2 -0
  252. package/dist/shared/index.d.ts.map +1 -1
  253. package/dist/shared/index.js +2 -0
  254. package/dist/shared/index.js.map +1 -1
  255. package/dist/shared/io/stepContractWriter.js +1 -1
  256. package/dist/shared/io/stepContractWriter.js.map +1 -1
  257. package/dist/shared/loopCorePaths.d.ts.map +1 -1
  258. package/dist/shared/loopCorePaths.js +5 -2
  259. package/dist/shared/loopCorePaths.js.map +1 -1
  260. package/dist/shared/mcp/submitServer.d.ts +1 -0
  261. package/dist/shared/mcp/submitServer.d.ts.map +1 -1
  262. package/dist/shared/mcp/submitServer.js +1 -1
  263. package/dist/shared/mcp/submitServer.js.map +1 -1
  264. package/dist/shared/submission/hostResultOutcomes.js +1 -1
  265. package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
  266. package/dist/shared/tooling/exec.js +1 -1
  267. package/dist/shared/tooling/exec.js.map +1 -1
  268. package/dist/shared/types/charter.d.ts +38 -38
  269. package/dist/shared/types/contractPropertyShapes.d.ts.map +1 -1
  270. package/dist/shared/types/contractPropertyShapes.js +7 -0
  271. package/dist/shared/types/contractPropertyShapes.js.map +1 -1
  272. package/dist/shared/types/executionPlan.d.ts +88 -12
  273. package/dist/shared/types/executionPlan.d.ts.map +1 -1
  274. package/dist/shared/types/executionPlan.js +1 -0
  275. package/dist/shared/types/executionPlan.js.map +1 -1
  276. package/dist/shared/types/finding.d.ts +1721 -56
  277. package/dist/shared/types/finding.d.ts.map +1 -1
  278. package/dist/shared/types/finding.js +7 -10
  279. package/dist/shared/types/finding.js.map +1 -1
  280. package/dist/shared/types/findingVocabulary.d.ts +8 -0
  281. package/dist/shared/types/findingVocabulary.d.ts.map +1 -0
  282. package/dist/shared/types/findingVocabulary.js +13 -0
  283. package/dist/shared/types/findingVocabulary.js.map +1 -0
  284. package/dist/shared/types/intentCheckpoint.d.ts +8 -3
  285. package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
  286. package/dist/shared/types/intentCheckpoint.js +4 -3
  287. package/dist/shared/types/intentCheckpoint.js.map +1 -1
  288. package/dist/shared/types/questionReviewReport.d.ts +9912 -0
  289. package/dist/shared/types/questionReviewReport.d.ts.map +1 -0
  290. package/dist/shared/types/questionReviewReport.js +185 -0
  291. package/dist/shared/types/questionReviewReport.js.map +1 -0
  292. package/dist/shared/types/remediationOutcome.d.ts +1379 -148
  293. package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
  294. package/dist/shared/types/remediationOutcome.js +5 -0
  295. package/dist/shared/types/remediationOutcome.js.map +1 -1
  296. package/dist/shared/types/reviewIndependence.d.ts +24 -24
  297. package/dist/shared/types/reviewQuestion.d.ts +4359 -0
  298. package/dist/shared/types/reviewQuestion.d.ts.map +1 -0
  299. package/dist/shared/types/reviewQuestion.js +182 -0
  300. package/dist/shared/types/reviewQuestion.js.map +1 -0
  301. package/dist/shared/types/stepContract.js +1 -1
  302. package/dist/shared/types/stepContract.js.map +1 -1
  303. package/dist/shared/validation/designFindingGrounding.js +1 -1
  304. package/dist/shared/validation/designFindingGrounding.js.map +1 -1
  305. package/dist/shared/validation/findingsReport.d.ts.map +1 -1
  306. package/dist/shared/validation/findingsReport.js +19 -4
  307. package/dist/shared/validation/findingsReport.js.map +1 -1
  308. package/docs/audit-pkg/contracts.md +27 -56
  309. package/docs/audit-pkg/operator-guide.md +31 -17
  310. package/docs/audit-pkg/product.md +17 -23
  311. package/package.json +1 -1
  312. package/schemas/audit-code-v1alpha1.schema.json +0 -1
  313. package/schemas/review_submission.schema.json +514 -0
  314. package/skills/audit-code/audit-code.prompt.md +7 -5
  315. package/wrapper/audit-code-wrapper-lib.mjs +1 -5
  316. package/wrapper/installer-verb-help.mjs +1 -1
  317. package/dist/audit/cli/explainTaskCommand.d.ts +0 -4
  318. package/dist/audit/cli/explainTaskCommand.d.ts.map +0 -1
  319. package/dist/audit/cli/explainTaskCommand.js +0 -45
  320. package/dist/audit/cli/explainTaskCommand.js.map +0 -1
  321. package/dist/audit/cli/ingestResultsCommand.d.ts +0 -2
  322. package/dist/audit/cli/ingestResultsCommand.d.ts.map +0 -1
  323. package/dist/audit/cli/ingestResultsCommand.js +0 -42
  324. package/dist/audit/cli/ingestResultsCommand.js.map +0 -1
  325. package/dist/audit/cli/requeueCommand.d.ts +0 -2
  326. package/dist/audit/cli/requeueCommand.d.ts.map +0 -1
  327. package/dist/audit/cli/requeueCommand.js +0 -12
  328. package/dist/audit/cli/requeueCommand.js.map +0 -1
  329. package/dist/audit/cli/semanticReviewStep.d.ts +0 -41
  330. package/dist/audit/cli/semanticReviewStep.d.ts.map +0 -1
  331. package/dist/audit/cli/semanticReviewStep.js +0 -185
  332. package/dist/audit/cli/semanticReviewStep.js.map +0 -1
  333. package/dist/audit/cli/unacceptResultsCommand.d.ts +0 -19
  334. package/dist/audit/cli/unacceptResultsCommand.d.ts.map +0 -1
  335. package/dist/audit/cli/unacceptResultsCommand.js +0 -52
  336. package/dist/audit/cli/unacceptResultsCommand.js.map +0 -1
  337. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts +0 -2
  338. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts.map +0 -1
  339. package/dist/audit/cli/updateRuntimeValidationCommand.js +0 -18
  340. package/dist/audit/cli/updateRuntimeValidationCommand.js.map +0 -1
  341. package/dist/audit/cli/validateResultsCommand.d.ts +0 -13
  342. package/dist/audit/cli/validateResultsCommand.d.ts.map +0 -1
  343. package/dist/audit/cli/validateResultsCommand.js +0 -87
  344. package/dist/audit/cli/validateResultsCommand.js.map +0 -1
  345. package/dist/audit/cli/workerResult.d.ts +0 -2
  346. package/dist/audit/cli/workerResult.d.ts.map +0 -1
  347. package/dist/audit/cli/workerResult.js +0 -6
  348. package/dist/audit/cli/workerResult.js.map +0 -1
  349. package/dist/audit/orchestrator/coverageElementBaseline.d.ts +0 -54
  350. package/dist/audit/orchestrator/coverageElementBaseline.d.ts.map +0 -1
  351. package/dist/audit/orchestrator/coverageElementBaseline.js +0 -136
  352. package/dist/audit/orchestrator/coverageElementBaseline.js.map +0 -1
  353. package/dist/audit/orchestrator/planning.d.ts +0 -5
  354. package/dist/audit/orchestrator/planning.d.ts.map +0 -1
  355. package/dist/audit/orchestrator/planning.js +0 -79
  356. package/dist/audit/orchestrator/planning.js.map +0 -1
  357. package/dist/audit/orchestrator/planningExecutors.d.ts +0 -21
  358. package/dist/audit/orchestrator/planningExecutors.d.ts.map +0 -1
  359. package/dist/audit/orchestrator/planningExecutors.js +0 -273
  360. package/dist/audit/orchestrator/planningExecutors.js.map +0 -1
  361. package/dist/audit/orchestrator/taskBuilder.d.ts +0 -62
  362. package/dist/audit/orchestrator/taskBuilder.d.ts.map +0 -1
  363. package/dist/audit/orchestrator/taskBuilder.js +0 -412
  364. package/dist/audit/orchestrator/taskBuilder.js.map +0 -1
  365. package/dist/audit/orchestrator/trivialAudit.d.ts +0 -21
  366. package/dist/audit/orchestrator/trivialAudit.d.ts.map +0 -1
  367. package/dist/audit/orchestrator/trivialAudit.js +0 -80
  368. package/dist/audit/orchestrator/trivialAudit.js.map +0 -1
@@ -1,120 +1,251 @@
1
- import type { Finding } from "../../shared/types/finding.js";
2
- /**
3
- * Fabricated fixture finding for the README sample-report block. It cites the
4
- * fabricated sample repo above, never this repository. Typed here so tsc
5
- * checks the fixture against the real contract; the README generator
6
- * (scripts/check-readme-sample-report.mjs) renders it through the real
7
- * renderer and excerpts the output.
8
- */
9
- export declare const SAMPLE_REPORT_FINDING: Finding;
10
- /**
11
- * Build the fabricated sample bundle. Pure — nothing is written. `sample-run`
12
- * persists it with no findings; the README sample-report generator threads
13
- * SAMPLE_REPORT_FINDING through it so the rendered report exercises the
14
- * per-finding template.
15
- */
16
- export declare function buildSampleAuditBundle(findings?: Finding[]): Promise<{
17
- repoManifest: {
18
- files: {
19
- path: string;
20
- language: string;
21
- size_bytes: number;
22
- excluded?: boolean | undefined;
23
- hash?: string | undefined;
24
- exclusion_reason?: string | undefined;
1
+ import { type ReviewFindingClaim } from "../../shared/types/reviewQuestion.js";
2
+ /** Benign fabricated finding for the README generator, not a finding in any real repository. */
3
+ export declare const SAMPLE_REPORT_FINDING: ReviewFindingClaim;
4
+ /** Fabricate only inputs to the production v2 report projection; never a live ledger or planner. */
5
+ export declare function buildSampleAuditBundle(findings?: ReviewFindingClaim[]): {
6
+ plan: {
7
+ snapshot_id: string;
8
+ schema_version: "audit-tools/question-review/v1";
9
+ inventory: {
10
+ scope: "excluded" | "not_applicable" | "in_scope" | "deferred";
11
+ kind: "operation" | "invariant" | "trust_boundary" | "workload" | "operator_transition" | "release_transition";
12
+ inventory_item_id: string;
13
+ title: string;
14
+ contract_refs: {
15
+ path: string;
16
+ symbol?: string | undefined;
17
+ start_line?: number | undefined;
18
+ end_line?: number | undefined;
19
+ }[];
20
+ source_refs: {
21
+ path: string;
22
+ symbol?: string | undefined;
23
+ start_line?: number | undefined;
24
+ end_line?: number | undefined;
25
+ }[];
26
+ scope_reason?: string | undefined;
25
27
  }[];
26
- generated_at: string;
27
- repository: {
28
- name: string;
29
- root?: string | undefined;
30
- default_branch?: string | undefined;
31
- };
32
- scope_index_key?: string | undefined;
33
- };
34
- disposition: import("../extractors/disposition.js").FileDispositionWithScopeRules;
35
- unitManifest: {
36
- units: {
37
- files: string[];
38
- unit_id: string;
39
- name: string;
40
- required_lenses: string[];
41
- risk_score?: number | undefined;
42
- kind?: string | undefined;
43
- critical_flows?: string[] | undefined;
28
+ questions: {
29
+ lens: "behavior" | "security" | "architecture" | "performance" | "operability" | "config_deployment" | "tests" | `custom:${string}`;
30
+ inventory_item_ids: string[];
31
+ expected_outcome: string;
32
+ requested_parts: {
33
+ part_id: string;
34
+ expectation: string;
35
+ }[];
36
+ source_dependencies: {
37
+ kind: "source" | "evidence" | "membership";
38
+ key: string;
39
+ fingerprint: string;
40
+ }[];
41
+ evidence_dependencies: {
42
+ kind: "source" | "evidence" | "membership";
43
+ key: string;
44
+ fingerprint: string;
45
+ }[];
46
+ plan_status: "deferred" | "unassigned" | "pending" | "active" | "blocked";
47
+ question_id: string;
48
+ revision_id: string;
49
+ snapshot_id: string;
50
+ schema_version: "audit-tools/question-review/v1";
51
+ plan_reason?: string | undefined;
44
52
  }[];
45
- };
46
- surfaceManifest: {
47
- surfaces: {
48
- id: string;
49
- kind: "interface" | "background";
50
- entrypoint: string;
51
- notes?: string[] | undefined;
52
- exposure?: "network" | "local" | undefined;
53
- methods?: string[] | undefined;
53
+ omissions: {
54
+ reason: string;
55
+ source_refs: {
56
+ path: string;
57
+ symbol?: string | undefined;
58
+ start_line?: number | undefined;
59
+ end_line?: number | undefined;
60
+ }[];
61
+ surface_id: string;
62
+ }[];
63
+ lens_decisions: {
64
+ reason: string;
65
+ lens: "behavior" | "security" | "architecture" | "performance" | "operability" | "config_deployment" | "tests" | `custom:${string}`;
66
+ decision: "excluded" | "not_applicable" | "selected";
54
67
  }[];
55
68
  };
56
- criticalFlows: {
57
- flows: {
69
+ auditFindings: {
70
+ findings: {
58
71
  id: string;
59
- name: string;
60
- entrypoints: string[];
61
- paths: string[];
62
- concerns: string[];
63
- notes?: string[] | undefined;
64
- confidence?: "high" | "low" | undefined;
72
+ confidence: "high" | "low" | "medium";
73
+ title: string;
74
+ lens: string;
75
+ severity: "info" | "high" | "low" | "critical" | "medium";
76
+ category: string;
77
+ summary: string;
78
+ affected_files: {
79
+ path: string;
80
+ symbol?: string | undefined;
81
+ line_start?: number | undefined;
82
+ line_end?: number | undefined;
83
+ quoted_text?: string | undefined;
84
+ no_quotable_span?: string | undefined;
85
+ hash_at_plan_time?: string | undefined;
86
+ }[];
87
+ evidence?: string[] | undefined;
88
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
89
+ impact?: string | undefined;
90
+ likelihood?: string | undefined;
91
+ reproduction?: string[] | undefined;
92
+ systemic?: boolean | undefined;
93
+ related_findings?: string[] | undefined;
94
+ theme_id?: string | undefined;
95
+ blast_radius?: number | undefined;
96
+ evidence_grounded?: boolean | undefined;
97
+ grounding?: {
98
+ status: "grounded" | "ungrounded" | "refuted";
99
+ reason?: string | undefined;
100
+ } | undefined;
101
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
102
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
103
+ executable_anchor?: {
104
+ command: string[];
105
+ confirm_if: {
106
+ kind: "exit_zero";
107
+ } | {
108
+ kind: "exit_nonzero";
109
+ } | {
110
+ kind: "output_includes";
111
+ text: string;
112
+ } | {
113
+ kind: "output_excludes";
114
+ text: string;
115
+ };
116
+ claim?: string | undefined;
117
+ } | undefined;
118
+ contract_goal_id?: string | undefined;
119
+ contract_obligation_ids?: string[] | undefined;
120
+ verification_obligation_ids?: string[] | undefined;
121
+ targeted_commands?: string[] | undefined;
122
+ question_review_sources?: {
123
+ confidence: "high" | "low" | "medium";
124
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
125
+ source_refs: {
126
+ path: string;
127
+ symbol?: string | undefined;
128
+ start_line?: number | undefined;
129
+ end_line?: number | undefined;
130
+ }[];
131
+ question_id: string;
132
+ revision_id: string;
133
+ schema_version: "audit-tools/question-review/v1";
134
+ finding_id: string;
135
+ severity: "info" | "high" | "low" | "critical" | "medium";
136
+ claim: string;
137
+ consequence: string;
138
+ next_step: string;
139
+ evidence_ids: string[];
140
+ verification: ({
141
+ kind: "analyzer";
142
+ obligation_id: string;
143
+ provenance: {
144
+ path: string;
145
+ analyzer_id: string;
146
+ snippet_hash: string;
147
+ rule?: string | undefined;
148
+ };
149
+ } | {
150
+ expected: string;
151
+ kind: "assertion";
152
+ source_refs: {
153
+ path: string;
154
+ symbol?: string | undefined;
155
+ start_line?: number | undefined;
156
+ end_line?: number | undefined;
157
+ }[];
158
+ obligation_id: string;
159
+ } | {
160
+ reason: string;
161
+ kind: "disposition";
162
+ obligation_id: string;
163
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
164
+ })[];
165
+ observation_ids?: string[] | undefined;
166
+ purpose?: string | undefined;
167
+ divergence?: string | undefined;
168
+ }[] | undefined;
169
+ analyzer_provenance?: {
170
+ path: string;
171
+ analyzer_id: string;
172
+ snippet_hash: string;
173
+ rule?: string | undefined;
174
+ } | undefined;
175
+ lead_lineage?: {
176
+ producer: string;
177
+ source_hash: string;
178
+ confirmation: "lead";
179
+ } | undefined;
65
180
  }[];
66
- fallback_required?: boolean | undefined;
67
- };
68
- coverage: {
69
- files: {
70
- path: string;
181
+ summary: {
182
+ finding_count: number;
183
+ work_block_count: number;
184
+ severity_breakdown: Record<string, number>;
185
+ audited_file_count: number;
186
+ excluded_file_count: number;
187
+ runtime_validation_status_breakdown: Record<string, number>;
188
+ lens_breakdown?: Record<string, number> | undefined;
189
+ grounding_status_breakdown?: Record<string, number> | undefined;
190
+ verification_status_breakdown?: Record<string, number> | undefined;
191
+ lens_coverage?: {
192
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
193
+ lens: string;
194
+ selected: boolean;
195
+ findings_count: number;
196
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
197
+ }[] | undefined;
198
+ };
199
+ contract_version: string;
200
+ audit_read: {
201
+ commit: string;
202
+ dirty_paths: string[];
203
+ } | null;
204
+ coherence_trace: {
205
+ normalized_items: {
206
+ id: string;
207
+ file_paths: string[];
208
+ unit_ids: string[];
209
+ tags: string[];
210
+ critical_flow_ids?: string[] | undefined;
211
+ }[];
212
+ components: string[][];
213
+ };
214
+ work_blocks: {
215
+ id: string;
71
216
  unit_ids: string[];
72
- required_lenses: string[];
73
- classification_status: "binary" | "excluded" | "generated" | "vendor" | "doc_only" | "unclassified" | "classified" | "out_of_scope_delta" | "excluded_trivial" | "out_of_scope_intent";
74
- audit_status: string;
75
- completed_lenses: string[];
217
+ rationale: string;
218
+ finding_ids: string[];
219
+ owned_files: string[];
220
+ role: "implementation" | "coordination";
221
+ max_severity: "info" | "high" | "low" | "critical" | "medium";
222
+ depends_on: string[];
223
+ token_estimate?: number | undefined;
76
224
  }[];
77
- };
78
- flowCoverage: {
79
- flows: {
80
- status: "partial" | "pending" | "complete";
81
- paths: string[];
82
- required_lenses: string[];
83
- completed_lenses: string[];
84
- flow_id: string;
85
- notes?: string[] | undefined;
86
- }[];
87
- };
88
- runtimeValidationTasks: {
89
- tasks: {
90
- reason: string;
225
+ work_block_seams: {
91
226
  id: string;
92
- kind: "unit-risk-check" | "critical-flow-check";
93
- priority: "high" | "low" | "medium";
94
- target_paths: string[];
95
- command?: string[] | undefined;
96
- suggested_checks?: string[] | undefined;
97
- source_artifacts?: string[] | undefined;
98
- }[];
99
- };
100
- runtimeValidationReport: {
101
- results: {
102
- task_id: string;
103
- status: "confirmed";
104
- summary: string;
105
- evidence: never[];
106
- notes: never[];
227
+ kind: "predicted_write_conflict" | "systemic_coordination";
228
+ rationale: string;
229
+ file: string;
230
+ block_ids: string[];
231
+ requires_preparation: true;
107
232
  }[];
108
- };
109
- sampleResults: {
110
- unit_id: string;
111
- findings: {
233
+ themes?: {
234
+ title: string;
235
+ theme_id: string;
236
+ finding_ids: string[];
237
+ root_cause: string;
238
+ suggested_fix_pattern: string;
239
+ }[] | undefined;
240
+ executive_summary?: string | undefined;
241
+ top_risks?: string[] | undefined;
242
+ quarantined_findings?: {
112
243
  id: string;
113
244
  confidence: "high" | "low" | "medium";
114
245
  title: string;
115
- category: string;
116
- severity: "info" | "high" | "low" | "critical" | "medium";
117
246
  lens: string;
247
+ severity: "info" | "high" | "low" | "critical" | "medium";
248
+ category: string;
118
249
  summary: string;
119
250
  affected_files: {
120
251
  path: string;
@@ -125,10 +256,10 @@ export declare function buildSampleAuditBundle(findings?: Finding[]): Promise<{
125
256
  no_quotable_span?: string | undefined;
126
257
  hash_at_plan_time?: string | undefined;
127
258
  }[];
259
+ evidence?: string[] | undefined;
128
260
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
129
261
  impact?: string | undefined;
130
262
  likelihood?: string | undefined;
131
- evidence?: string[] | undefined;
132
263
  reproduction?: string[] | undefined;
133
264
  systemic?: boolean | undefined;
134
265
  related_findings?: string[] | undefined;
@@ -160,6 +291,53 @@ export declare function buildSampleAuditBundle(findings?: Finding[]): Promise<{
160
291
  contract_obligation_ids?: string[] | undefined;
161
292
  verification_obligation_ids?: string[] | undefined;
162
293
  targeted_commands?: string[] | undefined;
294
+ question_review_sources?: {
295
+ confidence: "high" | "low" | "medium";
296
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
297
+ source_refs: {
298
+ path: string;
299
+ symbol?: string | undefined;
300
+ start_line?: number | undefined;
301
+ end_line?: number | undefined;
302
+ }[];
303
+ question_id: string;
304
+ revision_id: string;
305
+ schema_version: "audit-tools/question-review/v1";
306
+ finding_id: string;
307
+ severity: "info" | "high" | "low" | "critical" | "medium";
308
+ claim: string;
309
+ consequence: string;
310
+ next_step: string;
311
+ evidence_ids: string[];
312
+ verification: ({
313
+ kind: "analyzer";
314
+ obligation_id: string;
315
+ provenance: {
316
+ path: string;
317
+ analyzer_id: string;
318
+ snippet_hash: string;
319
+ rule?: string | undefined;
320
+ };
321
+ } | {
322
+ expected: string;
323
+ kind: "assertion";
324
+ source_refs: {
325
+ path: string;
326
+ symbol?: string | undefined;
327
+ start_line?: number | undefined;
328
+ end_line?: number | undefined;
329
+ }[];
330
+ obligation_id: string;
331
+ } | {
332
+ reason: string;
333
+ kind: "disposition";
334
+ obligation_id: string;
335
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
336
+ })[];
337
+ observation_ids?: string[] | undefined;
338
+ purpose?: string | undefined;
339
+ divergence?: string | undefined;
340
+ }[] | undefined;
163
341
  analyzer_provenance?: {
164
342
  path: string;
165
343
  analyzer_id: string;
@@ -171,66 +349,293 @@ export declare function buildSampleAuditBundle(findings?: Finding[]): Promise<{
171
349
  source_hash: string;
172
350
  confirmation: "lead";
173
351
  } | undefined;
174
- }[];
175
- lens: string;
176
- task_id: string;
177
- file_coverage: {
352
+ }[] | undefined;
353
+ excluded_scope?: {
178
354
  path: string;
179
- total_lines: number;
180
- }[];
181
- pass_id: string;
182
- notes?: string[] | undefined;
183
- run_id?: string | undefined;
184
- attempt?: number | undefined;
185
- followup_tasks?: string[] | undefined;
186
- agent_role?: string | undefined;
187
- reviewed_clean?: boolean | undefined;
188
- requires_followup?: boolean | undefined;
189
- verification?: {
190
- verified: boolean;
191
- needs_followup: boolean;
192
- concerns?: string[] | undefined;
193
- coverage_concerns?: string[] | undefined;
194
- confidence_concerns?: string[] | undefined;
195
- followup_tasks?: {
196
- unit_id: string;
197
- file_paths: string[];
198
- lens: string;
199
- rationale: string;
200
- task_id: string;
201
- pass_id: string;
202
- status?: "pending" | "complete" | undefined;
203
- tags?: string[] | undefined;
204
- token_estimate?: number | undefined;
205
- priority?: "high" | "low" | "medium" | undefined;
206
- inputs?: Record<string, string> | undefined;
207
- completed_at?: string | undefined;
208
- file_line_counts?: Record<string, number> | undefined;
209
- line_ranges?: {
355
+ reason: string;
356
+ }[] | undefined;
357
+ } & {
358
+ contract_version: "audit-tools/audit-findings/v2";
359
+ question_review: {
360
+ findings: {
361
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
362
+ sources: {
363
+ confidence: "high" | "low" | "medium";
364
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
365
+ source_refs: {
366
+ path: string;
367
+ symbol?: string | undefined;
368
+ start_line?: number | undefined;
369
+ end_line?: number | undefined;
370
+ }[];
371
+ question_id: string;
372
+ revision_id: string;
373
+ schema_version: "audit-tools/question-review/v1";
374
+ finding_id: string;
375
+ severity: "info" | "high" | "low" | "critical" | "medium";
376
+ claim: string;
377
+ consequence: string;
378
+ next_step: string;
379
+ evidence_ids: string[];
380
+ verification: ({
381
+ kind: "analyzer";
382
+ obligation_id: string;
383
+ provenance: {
384
+ path: string;
385
+ analyzer_id: string;
386
+ snippet_hash: string;
387
+ rule?: string | undefined;
388
+ };
389
+ } | {
390
+ expected: string;
391
+ kind: "assertion";
392
+ source_refs: {
393
+ path: string;
394
+ symbol?: string | undefined;
395
+ start_line?: number | undefined;
396
+ end_line?: number | undefined;
397
+ }[];
398
+ obligation_id: string;
399
+ } | {
400
+ reason: string;
401
+ kind: "disposition";
402
+ obligation_id: string;
403
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
404
+ })[];
405
+ observation_ids?: string[] | undefined;
406
+ purpose?: string | undefined;
407
+ divergence?: string | undefined;
408
+ }[];
409
+ canonical_finding_id: string;
410
+ question_ids: string[];
411
+ actionable: boolean;
412
+ }[];
413
+ evidence: {
414
+ status: "not_run" | "observed" | "unavailable";
415
+ kind: "source" | "command" | "measurement" | "fixture";
416
+ source_refs: {
210
417
  path: string;
211
- end: number;
212
- start: number;
418
+ symbol?: string | undefined;
419
+ start_line?: number | undefined;
420
+ end_line?: number | undefined;
421
+ }[];
422
+ snapshot_id: string;
423
+ schema_version: "audit-tools/question-review/v1";
424
+ evidence_id: string;
425
+ dependencies: {
426
+ kind: "source" | "evidence" | "membership";
427
+ key: string;
428
+ fingerprint: string;
429
+ }[];
430
+ description: string;
431
+ observations?: {
432
+ observation_id: string;
433
+ statement: string;
434
+ source_refs?: {
435
+ path: string;
436
+ symbol?: string | undefined;
437
+ start_line?: number | undefined;
438
+ end_line?: number | undefined;
439
+ }[] | undefined;
213
440
  }[] | undefined;
214
- coverage_policy?: "complete" | "selective" | undefined;
215
- file_metrics?: {
441
+ execution?: {
442
+ tool: string;
443
+ tool_version: string;
444
+ config_fingerprint: string;
445
+ input_fingerprint: string;
446
+ environment_fingerprint: string;
447
+ exclusions: string[];
448
+ executed: boolean;
449
+ elapsed_ms?: number | undefined;
450
+ usage?: Record<string, number> | undefined;
451
+ } | undefined;
452
+ }[];
453
+ snapshot_id: string;
454
+ schema_version: "audit-tools/question-review/v1";
455
+ inventory: {
456
+ scope: "excluded" | "not_applicable" | "in_scope" | "deferred";
457
+ kind: "operation" | "invariant" | "trust_boundary" | "workload" | "operator_transition" | "release_transition";
458
+ inventory_item_id: string;
459
+ title: string;
460
+ contract_refs: {
216
461
  path: string;
217
- signals: string[];
218
- total_lines: number;
219
- score: number;
220
- prior_findings: Record<string, number>;
221
- }[] | undefined;
222
- risk_estimate?: number | undefined;
223
- completion_reason?: string | undefined;
224
- }[] | undefined;
225
- selection_rationale?: string | undefined;
226
- } | undefined;
227
- submitted_at?: string | undefined;
228
- instance_id?: string | undefined;
229
- identity_key?: string | undefined;
230
- idempotency_key?: string | undefined;
231
- emit_source?: "base" | "deepening" | "steward" | "redispatch" | undefined;
232
- }[];
462
+ symbol?: string | undefined;
463
+ start_line?: number | undefined;
464
+ end_line?: number | undefined;
465
+ }[];
466
+ source_refs: {
467
+ path: string;
468
+ symbol?: string | undefined;
469
+ start_line?: number | undefined;
470
+ end_line?: number | undefined;
471
+ }[];
472
+ scope_reason?: string | undefined;
473
+ }[];
474
+ questions: {
475
+ state: "clean" | "findings" | "deferred" | "blocked" | "inconclusive" | "unreviewed" | "stale" | "conflicted";
476
+ lens: "behavior" | "security" | "architecture" | "performance" | "operability" | "config_deployment" | "tests" | `custom:${string}`;
477
+ inventory_item_ids: string[];
478
+ expected_outcome: string;
479
+ plan_status: "deferred" | "unassigned" | "pending" | "active" | "blocked";
480
+ question_id: string;
481
+ revision_id: string;
482
+ parts: {
483
+ state: "clean" | "findings" | "inconclusive" | "unreviewed" | "stale" | "conflicted";
484
+ part_id: string;
485
+ expectation: string;
486
+ observation_ids: string[];
487
+ accepted_answer_ids: string[];
488
+ reasons: string[];
489
+ }[];
490
+ finding_ids: string[];
491
+ accepted_answer_ids: string[];
492
+ conflicts: {
493
+ part_id: string;
494
+ answer_ids: string[];
495
+ }[];
496
+ plan_reason?: string | undefined;
497
+ }[];
498
+ omissions: {
499
+ reason: string;
500
+ source_refs: {
501
+ path: string;
502
+ symbol?: string | undefined;
503
+ start_line?: number | undefined;
504
+ end_line?: number | undefined;
505
+ }[];
506
+ surface_id: string;
507
+ }[];
508
+ lens_decisions: {
509
+ reason: string;
510
+ lens: "behavior" | "security" | "architecture" | "performance" | "operability" | "config_deployment" | "tests" | `custom:${string}`;
511
+ decision: "excluded" | "not_applicable" | "selected";
512
+ }[];
513
+ completion: "complete" | "incomplete";
514
+ consolidations: {
515
+ reason: string;
516
+ decided_by: string;
517
+ decision_id: string;
518
+ sources: {
519
+ finding_id: string;
520
+ answer_id: string;
521
+ }[];
522
+ }[];
523
+ accepted: {
524
+ schema_version: "audit-tools/question-review/v1";
525
+ accepted_at: string;
526
+ submission: {
527
+ question_id: string;
528
+ revision_id: string;
529
+ snapshot_id: string;
530
+ schema_version: "audit-tools/question-review/v1";
531
+ assignment_id: string;
532
+ evidence_ids: string[];
533
+ submission_id: string;
534
+ inspected_sources: {
535
+ path: string;
536
+ symbol?: string | undefined;
537
+ start_line?: number | undefined;
538
+ end_line?: number | undefined;
539
+ }[];
540
+ limitations: string[];
541
+ answer: {
542
+ outcome: "clean" | "findings" | "inconclusive";
543
+ findings: {
544
+ confidence: "high" | "low" | "medium";
545
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
546
+ source_refs: {
547
+ path: string;
548
+ symbol?: string | undefined;
549
+ start_line?: number | undefined;
550
+ end_line?: number | undefined;
551
+ }[];
552
+ question_id: string;
553
+ revision_id: string;
554
+ schema_version: "audit-tools/question-review/v1";
555
+ finding_id: string;
556
+ severity: "info" | "high" | "low" | "critical" | "medium";
557
+ claim: string;
558
+ consequence: string;
559
+ next_step: string;
560
+ evidence_ids: string[];
561
+ verification: ({
562
+ kind: "analyzer";
563
+ obligation_id: string;
564
+ provenance: {
565
+ path: string;
566
+ analyzer_id: string;
567
+ snippet_hash: string;
568
+ rule?: string | undefined;
569
+ };
570
+ } | {
571
+ expected: string;
572
+ kind: "assertion";
573
+ source_refs: {
574
+ path: string;
575
+ symbol?: string | undefined;
576
+ start_line?: number | undefined;
577
+ end_line?: number | undefined;
578
+ }[];
579
+ obligation_id: string;
580
+ } | {
581
+ reason: string;
582
+ kind: "disposition";
583
+ obligation_id: string;
584
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
585
+ })[];
586
+ observation_ids?: string[] | undefined;
587
+ purpose?: string | undefined;
588
+ divergence?: string | undefined;
589
+ }[];
590
+ observations: {
591
+ kind: "source_confirmed" | "runtime_observed" | "unverified";
592
+ source_refs: {
593
+ path: string;
594
+ symbol?: string | undefined;
595
+ start_line?: number | undefined;
596
+ end_line?: number | undefined;
597
+ }[];
598
+ part_id: string;
599
+ question_id: string;
600
+ revision_id: string;
601
+ snapshot_id: string;
602
+ schema_version: "audit-tools/question-review/v1";
603
+ observation_id: string;
604
+ statement: string;
605
+ evidence_refs: {
606
+ evidence_id: string;
607
+ observation_id?: string | undefined;
608
+ }[];
609
+ }[];
610
+ parts: {
611
+ outcome: "clean" | "findings" | "inconclusive";
612
+ part_id: string;
613
+ observation_ids: string[];
614
+ reason?: string | undefined;
615
+ }[];
616
+ };
617
+ };
618
+ dependency_bindings: {
619
+ kind: "source" | "evidence" | "membership";
620
+ key: string;
621
+ fingerprint: string;
622
+ }[];
623
+ }[];
624
+ adjudications: {
625
+ question_id: string;
626
+ revision_id: string;
627
+ snapshot_id: string;
628
+ schema_version: "audit-tools/question-review/v1";
629
+ decision: "agree" | "disputed" | "resolved";
630
+ adjudication_id: string;
631
+ submission_ids: string[];
632
+ reviewer: string;
633
+ rationale: string;
634
+ selected_submission_ids: string[];
635
+ }[];
636
+ };
637
+ };
233
638
  auditReport: string;
234
- }>;
639
+ };
235
640
  export declare function runSample(argv?: string[]): Promise<void>;
236
641
  //# sourceMappingURL=sampleRunCommand.d.ts.map