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,10 +1,7 @@
1
1
  import { z } from "zod";
2
- /** Canonical finding severity vocabulary (most-severe-first). */
3
- export declare const FindingSeveritySchema: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
4
- export type FindingSeverity = z.infer<typeof FindingSeveritySchema>;
5
- /** Canonical finding confidence vocabulary (most-confident-first). */
6
- export declare const FindingConfidenceSchema: z.ZodEnum<["high", "medium", "low"]>;
7
- export type FindingConfidence = z.infer<typeof FindingConfidenceSchema>;
2
+ import { type FindingSeverity } from "./findingVocabulary.js";
3
+ export { FindingConfidenceSchema, FindingSeveritySchema } from "./findingVocabulary.js";
4
+ export type { FindingConfidence, FindingSeverity } from "./findingVocabulary.js";
8
5
  /**
9
6
  * Which producer CONTRACT a finding came from, named by the one difference that
10
7
  * matters downstream: whether that contract carries an `evidence` array.
@@ -633,6 +630,336 @@ export declare const FindingSchema: z.ZodObject<{
633
630
  verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
634
631
  /** Commands recommended by the implementation DAG for focused verification. */
635
632
  targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
633
+ /** Accepted source claims retained by canonical question-review reports and approved plans. */
634
+ question_review_sources: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
635
+ question_id: z.ZodEffects<z.ZodString, string, string>;
636
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
637
+ finding_id: z.ZodEffects<z.ZodString, string, string>;
638
+ kind: z.ZodEnum<["confirmed_defect", "design_opportunity", "lead"]>;
639
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
640
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
641
+ claim: z.ZodString;
642
+ consequence: z.ZodString;
643
+ next_step: z.ZodString;
644
+ evidence_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
645
+ observation_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
646
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
647
+ path: z.ZodEffects<z.ZodString, string, string>;
648
+ symbol: z.ZodOptional<z.ZodString>;
649
+ start_line: z.ZodOptional<z.ZodNumber>;
650
+ end_line: z.ZodOptional<z.ZodNumber>;
651
+ }, "strict", z.ZodTypeAny, {
652
+ path: string;
653
+ symbol?: string | undefined;
654
+ start_line?: number | undefined;
655
+ end_line?: number | undefined;
656
+ }, {
657
+ path: string;
658
+ symbol?: string | undefined;
659
+ start_line?: number | undefined;
660
+ end_line?: number | undefined;
661
+ }>, {
662
+ path: string;
663
+ symbol?: string | undefined;
664
+ start_line?: number | undefined;
665
+ end_line?: number | undefined;
666
+ }, {
667
+ path: string;
668
+ symbol?: string | undefined;
669
+ start_line?: number | undefined;
670
+ end_line?: number | undefined;
671
+ }>, "many">;
672
+ verification: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
673
+ kind: z.ZodLiteral<"analyzer">;
674
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
675
+ provenance: z.ZodObject<{
676
+ analyzer_id: z.ZodString;
677
+ rule: z.ZodOptional<z.ZodString>;
678
+ path: z.ZodString;
679
+ snippet_hash: z.ZodString;
680
+ }, "strict", z.ZodTypeAny, {
681
+ path: string;
682
+ analyzer_id: string;
683
+ snippet_hash: string;
684
+ rule?: string | undefined;
685
+ }, {
686
+ path: string;
687
+ analyzer_id: string;
688
+ snippet_hash: string;
689
+ rule?: string | undefined;
690
+ }>;
691
+ }, "strict", z.ZodTypeAny, {
692
+ kind: "analyzer";
693
+ obligation_id: string;
694
+ provenance: {
695
+ path: string;
696
+ analyzer_id: string;
697
+ snippet_hash: string;
698
+ rule?: string | undefined;
699
+ };
700
+ }, {
701
+ kind: "analyzer";
702
+ obligation_id: string;
703
+ provenance: {
704
+ path: string;
705
+ analyzer_id: string;
706
+ snippet_hash: string;
707
+ rule?: string | undefined;
708
+ };
709
+ }>, z.ZodObject<{
710
+ kind: z.ZodLiteral<"assertion">;
711
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
712
+ expected: z.ZodString;
713
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
714
+ path: z.ZodEffects<z.ZodString, string, string>;
715
+ symbol: z.ZodOptional<z.ZodString>;
716
+ start_line: z.ZodOptional<z.ZodNumber>;
717
+ end_line: z.ZodOptional<z.ZodNumber>;
718
+ }, "strict", z.ZodTypeAny, {
719
+ path: string;
720
+ symbol?: string | undefined;
721
+ start_line?: number | undefined;
722
+ end_line?: number | undefined;
723
+ }, {
724
+ path: string;
725
+ symbol?: string | undefined;
726
+ start_line?: number | undefined;
727
+ end_line?: number | undefined;
728
+ }>, {
729
+ path: string;
730
+ symbol?: string | undefined;
731
+ start_line?: number | undefined;
732
+ end_line?: number | undefined;
733
+ }, {
734
+ path: string;
735
+ symbol?: string | undefined;
736
+ start_line?: number | undefined;
737
+ end_line?: number | undefined;
738
+ }>, "many">;
739
+ }, "strict", z.ZodTypeAny, {
740
+ expected: string;
741
+ kind: "assertion";
742
+ source_refs: {
743
+ path: string;
744
+ symbol?: string | undefined;
745
+ start_line?: number | undefined;
746
+ end_line?: number | undefined;
747
+ }[];
748
+ obligation_id: string;
749
+ }, {
750
+ expected: string;
751
+ kind: "assertion";
752
+ source_refs: {
753
+ path: string;
754
+ symbol?: string | undefined;
755
+ start_line?: number | undefined;
756
+ end_line?: number | undefined;
757
+ }[];
758
+ obligation_id: string;
759
+ }>, z.ZodObject<{
760
+ kind: z.ZodLiteral<"disposition">;
761
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
762
+ disposition: z.ZodEnum<["implemented", "deferred", "rejected", "already_fixed", "out_of_scope"]>;
763
+ reason: z.ZodString;
764
+ }, "strict", z.ZodTypeAny, {
765
+ reason: string;
766
+ kind: "disposition";
767
+ obligation_id: string;
768
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
769
+ }, {
770
+ reason: string;
771
+ kind: "disposition";
772
+ obligation_id: string;
773
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
774
+ }>]>, "many">;
775
+ purpose: z.ZodOptional<z.ZodString>;
776
+ divergence: z.ZodOptional<z.ZodString>;
777
+ schema_version: z.ZodLiteral<"audit-tools/question-review/v1">;
778
+ }, "strict", z.ZodTypeAny, {
779
+ confidence: "high" | "low" | "medium";
780
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
781
+ source_refs: {
782
+ path: string;
783
+ symbol?: string | undefined;
784
+ start_line?: number | undefined;
785
+ end_line?: number | undefined;
786
+ }[];
787
+ question_id: string;
788
+ revision_id: string;
789
+ schema_version: "audit-tools/question-review/v1";
790
+ finding_id: string;
791
+ severity: "info" | "high" | "low" | "critical" | "medium";
792
+ claim: string;
793
+ consequence: string;
794
+ next_step: string;
795
+ evidence_ids: string[];
796
+ verification: ({
797
+ kind: "analyzer";
798
+ obligation_id: string;
799
+ provenance: {
800
+ path: string;
801
+ analyzer_id: string;
802
+ snippet_hash: string;
803
+ rule?: string | undefined;
804
+ };
805
+ } | {
806
+ expected: string;
807
+ kind: "assertion";
808
+ source_refs: {
809
+ path: string;
810
+ symbol?: string | undefined;
811
+ start_line?: number | undefined;
812
+ end_line?: number | undefined;
813
+ }[];
814
+ obligation_id: string;
815
+ } | {
816
+ reason: string;
817
+ kind: "disposition";
818
+ obligation_id: string;
819
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
820
+ })[];
821
+ observation_ids?: string[] | undefined;
822
+ purpose?: string | undefined;
823
+ divergence?: string | undefined;
824
+ }, {
825
+ confidence: "high" | "low" | "medium";
826
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
827
+ source_refs: {
828
+ path: string;
829
+ symbol?: string | undefined;
830
+ start_line?: number | undefined;
831
+ end_line?: number | undefined;
832
+ }[];
833
+ question_id: string;
834
+ revision_id: string;
835
+ schema_version: "audit-tools/question-review/v1";
836
+ finding_id: string;
837
+ severity: "info" | "high" | "low" | "critical" | "medium";
838
+ claim: string;
839
+ consequence: string;
840
+ next_step: string;
841
+ evidence_ids: string[];
842
+ verification: ({
843
+ kind: "analyzer";
844
+ obligation_id: string;
845
+ provenance: {
846
+ path: string;
847
+ analyzer_id: string;
848
+ snippet_hash: string;
849
+ rule?: string | undefined;
850
+ };
851
+ } | {
852
+ expected: string;
853
+ kind: "assertion";
854
+ source_refs: {
855
+ path: string;
856
+ symbol?: string | undefined;
857
+ start_line?: number | undefined;
858
+ end_line?: number | undefined;
859
+ }[];
860
+ obligation_id: string;
861
+ } | {
862
+ reason: string;
863
+ kind: "disposition";
864
+ obligation_id: string;
865
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
866
+ })[];
867
+ observation_ids?: string[] | undefined;
868
+ purpose?: string | undefined;
869
+ divergence?: string | undefined;
870
+ }>, {
871
+ confidence: "high" | "low" | "medium";
872
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
873
+ source_refs: {
874
+ path: string;
875
+ symbol?: string | undefined;
876
+ start_line?: number | undefined;
877
+ end_line?: number | undefined;
878
+ }[];
879
+ question_id: string;
880
+ revision_id: string;
881
+ schema_version: "audit-tools/question-review/v1";
882
+ finding_id: string;
883
+ severity: "info" | "high" | "low" | "critical" | "medium";
884
+ claim: string;
885
+ consequence: string;
886
+ next_step: string;
887
+ evidence_ids: string[];
888
+ verification: ({
889
+ kind: "analyzer";
890
+ obligation_id: string;
891
+ provenance: {
892
+ path: string;
893
+ analyzer_id: string;
894
+ snippet_hash: string;
895
+ rule?: string | undefined;
896
+ };
897
+ } | {
898
+ expected: string;
899
+ kind: "assertion";
900
+ source_refs: {
901
+ path: string;
902
+ symbol?: string | undefined;
903
+ start_line?: number | undefined;
904
+ end_line?: number | undefined;
905
+ }[];
906
+ obligation_id: string;
907
+ } | {
908
+ reason: string;
909
+ kind: "disposition";
910
+ obligation_id: string;
911
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
912
+ })[];
913
+ observation_ids?: string[] | undefined;
914
+ purpose?: string | undefined;
915
+ divergence?: string | undefined;
916
+ }, {
917
+ confidence: "high" | "low" | "medium";
918
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
919
+ source_refs: {
920
+ path: string;
921
+ symbol?: string | undefined;
922
+ start_line?: number | undefined;
923
+ end_line?: number | undefined;
924
+ }[];
925
+ question_id: string;
926
+ revision_id: string;
927
+ schema_version: "audit-tools/question-review/v1";
928
+ finding_id: string;
929
+ severity: "info" | "high" | "low" | "critical" | "medium";
930
+ claim: string;
931
+ consequence: string;
932
+ next_step: string;
933
+ evidence_ids: string[];
934
+ verification: ({
935
+ kind: "analyzer";
936
+ obligation_id: string;
937
+ provenance: {
938
+ path: string;
939
+ analyzer_id: string;
940
+ snippet_hash: string;
941
+ rule?: string | undefined;
942
+ };
943
+ } | {
944
+ expected: string;
945
+ kind: "assertion";
946
+ source_refs: {
947
+ path: string;
948
+ symbol?: string | undefined;
949
+ start_line?: number | undefined;
950
+ end_line?: number | undefined;
951
+ }[];
952
+ obligation_id: string;
953
+ } | {
954
+ reason: string;
955
+ kind: "disposition";
956
+ obligation_id: string;
957
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
958
+ })[];
959
+ observation_ids?: string[] | undefined;
960
+ purpose?: string | undefined;
961
+ divergence?: string | undefined;
962
+ }>, "many">>;
636
963
  /**
637
964
  * Content-anchored identity of the analyzer lead this finding was born from
638
965
  * (item C). Copied verbatim from the injected lead by the auditing worker;
@@ -700,9 +1027,9 @@ export declare const FindingSchema: z.ZodObject<{
700
1027
  id: string;
701
1028
  confidence: "high" | "low" | "medium";
702
1029
  title: string;
703
- category: string;
704
- severity: "info" | "high" | "low" | "critical" | "medium";
705
1030
  lens: string;
1031
+ severity: "info" | "high" | "low" | "critical" | "medium";
1032
+ category: string;
706
1033
  summary: string;
707
1034
  affected_files: {
708
1035
  path: string;
@@ -713,10 +1040,10 @@ export declare const FindingSchema: z.ZodObject<{
713
1040
  no_quotable_span?: string | undefined;
714
1041
  hash_at_plan_time?: string | undefined;
715
1042
  }[];
1043
+ evidence?: string[] | undefined;
716
1044
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
717
1045
  impact?: string | undefined;
718
1046
  likelihood?: string | undefined;
719
- evidence?: string[] | undefined;
720
1047
  reproduction?: string[] | undefined;
721
1048
  systemic?: boolean | undefined;
722
1049
  related_findings?: string[] | undefined;
@@ -748,6 +1075,53 @@ export declare const FindingSchema: z.ZodObject<{
748
1075
  contract_obligation_ids?: string[] | undefined;
749
1076
  verification_obligation_ids?: string[] | undefined;
750
1077
  targeted_commands?: string[] | undefined;
1078
+ question_review_sources?: {
1079
+ confidence: "high" | "low" | "medium";
1080
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
1081
+ source_refs: {
1082
+ path: string;
1083
+ symbol?: string | undefined;
1084
+ start_line?: number | undefined;
1085
+ end_line?: number | undefined;
1086
+ }[];
1087
+ question_id: string;
1088
+ revision_id: string;
1089
+ schema_version: "audit-tools/question-review/v1";
1090
+ finding_id: string;
1091
+ severity: "info" | "high" | "low" | "critical" | "medium";
1092
+ claim: string;
1093
+ consequence: string;
1094
+ next_step: string;
1095
+ evidence_ids: string[];
1096
+ verification: ({
1097
+ kind: "analyzer";
1098
+ obligation_id: string;
1099
+ provenance: {
1100
+ path: string;
1101
+ analyzer_id: string;
1102
+ snippet_hash: string;
1103
+ rule?: string | undefined;
1104
+ };
1105
+ } | {
1106
+ expected: string;
1107
+ kind: "assertion";
1108
+ source_refs: {
1109
+ path: string;
1110
+ symbol?: string | undefined;
1111
+ start_line?: number | undefined;
1112
+ end_line?: number | undefined;
1113
+ }[];
1114
+ obligation_id: string;
1115
+ } | {
1116
+ reason: string;
1117
+ kind: "disposition";
1118
+ obligation_id: string;
1119
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
1120
+ })[];
1121
+ observation_ids?: string[] | undefined;
1122
+ purpose?: string | undefined;
1123
+ divergence?: string | undefined;
1124
+ }[] | undefined;
751
1125
  analyzer_provenance?: {
752
1126
  path: string;
753
1127
  analyzer_id: string;
@@ -763,9 +1137,9 @@ export declare const FindingSchema: z.ZodObject<{
763
1137
  id: string;
764
1138
  confidence: "high" | "low" | "medium";
765
1139
  title: string;
766
- category: string;
767
- severity: "info" | "high" | "low" | "critical" | "medium";
768
1140
  lens: string;
1141
+ severity: "info" | "high" | "low" | "critical" | "medium";
1142
+ category: string;
769
1143
  summary: string;
770
1144
  affected_files: {
771
1145
  path: string;
@@ -776,10 +1150,10 @@ export declare const FindingSchema: z.ZodObject<{
776
1150
  no_quotable_span?: string | undefined;
777
1151
  hash_at_plan_time?: string | undefined;
778
1152
  }[];
1153
+ evidence?: string[] | undefined;
779
1154
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
780
1155
  impact?: string | undefined;
781
1156
  likelihood?: string | undefined;
782
- evidence?: string[] | undefined;
783
1157
  reproduction?: string[] | undefined;
784
1158
  systemic?: boolean | undefined;
785
1159
  related_findings?: string[] | undefined;
@@ -811,6 +1185,53 @@ export declare const FindingSchema: z.ZodObject<{
811
1185
  contract_obligation_ids?: string[] | undefined;
812
1186
  verification_obligation_ids?: string[] | undefined;
813
1187
  targeted_commands?: string[] | undefined;
1188
+ question_review_sources?: {
1189
+ confidence: "high" | "low" | "medium";
1190
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
1191
+ source_refs: {
1192
+ path: string;
1193
+ symbol?: string | undefined;
1194
+ start_line?: number | undefined;
1195
+ end_line?: number | undefined;
1196
+ }[];
1197
+ question_id: string;
1198
+ revision_id: string;
1199
+ schema_version: "audit-tools/question-review/v1";
1200
+ finding_id: string;
1201
+ severity: "info" | "high" | "low" | "critical" | "medium";
1202
+ claim: string;
1203
+ consequence: string;
1204
+ next_step: string;
1205
+ evidence_ids: string[];
1206
+ verification: ({
1207
+ kind: "analyzer";
1208
+ obligation_id: string;
1209
+ provenance: {
1210
+ path: string;
1211
+ analyzer_id: string;
1212
+ snippet_hash: string;
1213
+ rule?: string | undefined;
1214
+ };
1215
+ } | {
1216
+ expected: string;
1217
+ kind: "assertion";
1218
+ source_refs: {
1219
+ path: string;
1220
+ symbol?: string | undefined;
1221
+ start_line?: number | undefined;
1222
+ end_line?: number | undefined;
1223
+ }[];
1224
+ obligation_id: string;
1225
+ } | {
1226
+ reason: string;
1227
+ kind: "disposition";
1228
+ obligation_id: string;
1229
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
1230
+ })[];
1231
+ observation_ids?: string[] | undefined;
1232
+ purpose?: string | undefined;
1233
+ divergence?: string | undefined;
1234
+ }[] | undefined;
814
1235
  analyzer_provenance?: {
815
1236
  path: string;
816
1237
  analyzer_id: string;
@@ -840,21 +1261,21 @@ export declare const WorkBlockSchema: z.ZodObject<{
840
1261
  }, "strip", z.ZodTypeAny, {
841
1262
  id: string;
842
1263
  unit_ids: string[];
1264
+ rationale: string;
843
1265
  finding_ids: string[];
844
1266
  owned_files: string[];
845
1267
  role: "implementation" | "coordination";
846
1268
  max_severity: "info" | "high" | "low" | "critical" | "medium";
847
- rationale: string;
848
1269
  depends_on: string[];
849
1270
  token_estimate?: number | undefined;
850
1271
  }, {
851
1272
  id: string;
852
1273
  unit_ids: string[];
1274
+ rationale: string;
853
1275
  finding_ids: string[];
854
1276
  owned_files: string[];
855
1277
  role: "implementation" | "coordination";
856
1278
  max_severity: "info" | "high" | "low" | "critical" | "medium";
857
- rationale: string;
858
1279
  depends_on: string[];
859
1280
  token_estimate?: number | undefined;
860
1281
  }>;
@@ -1038,16 +1459,20 @@ export declare const LensCoverageEntrySchema: z.ZodObject<{
1038
1459
  selected: z.ZodBoolean;
1039
1460
  findings_count: z.ZodNumber;
1040
1461
  outcome: z.ZodEnum<["clean", "findings", "degraded", "not_run", "not_applicable"]>;
1462
+ /** Evidence state of the explicitly requested bounded source sample, not a whole-repository result. */
1463
+ source_sample: z.ZodOptional<z.ZodEnum<["not_planned", "planned_not_run", "reviewed_no_findings", "reviewed_with_findings"]>>;
1041
1464
  }, "strict", z.ZodTypeAny, {
1042
1465
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1043
1466
  lens: string;
1044
1467
  selected: boolean;
1045
1468
  findings_count: number;
1469
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1046
1470
  }, {
1047
1471
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1048
1472
  lens: string;
1049
1473
  selected: boolean;
1050
1474
  findings_count: number;
1475
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1051
1476
  }>;
1052
1477
  export type LensCoverageEntry = z.infer<typeof LensCoverageEntrySchema>;
1053
1478
  export declare const AuditFindingsSummarySchema: z.ZodObject<{
@@ -1095,16 +1520,20 @@ export declare const AuditFindingsSummarySchema: z.ZodObject<{
1095
1520
  selected: z.ZodBoolean;
1096
1521
  findings_count: z.ZodNumber;
1097
1522
  outcome: z.ZodEnum<["clean", "findings", "degraded", "not_run", "not_applicable"]>;
1523
+ /** Evidence state of the explicitly requested bounded source sample, not a whole-repository result. */
1524
+ source_sample: z.ZodOptional<z.ZodEnum<["not_planned", "planned_not_run", "reviewed_no_findings", "reviewed_with_findings"]>>;
1098
1525
  }, "strict", z.ZodTypeAny, {
1099
1526
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1100
1527
  lens: string;
1101
1528
  selected: boolean;
1102
1529
  findings_count: number;
1530
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1103
1531
  }, {
1104
1532
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1105
1533
  lens: string;
1106
1534
  selected: boolean;
1107
1535
  findings_count: number;
1536
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1108
1537
  }>, "many">>;
1109
1538
  }, "strip", z.ZodTypeAny, {
1110
1539
  finding_count: number;
@@ -1121,6 +1550,7 @@ export declare const AuditFindingsSummarySchema: z.ZodObject<{
1121
1550
  lens: string;
1122
1551
  selected: boolean;
1123
1552
  findings_count: number;
1553
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1124
1554
  }[] | undefined;
1125
1555
  }, {
1126
1556
  finding_count: number;
@@ -1137,6 +1567,7 @@ export declare const AuditFindingsSummarySchema: z.ZodObject<{
1137
1567
  lens: string;
1138
1568
  selected: boolean;
1139
1569
  findings_count: number;
1570
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1140
1571
  }[] | undefined;
1141
1572
  }>;
1142
1573
  export type AuditFindingsSummary = z.infer<typeof AuditFindingsSummarySchema>;
@@ -1232,16 +1663,20 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1232
1663
  selected: z.ZodBoolean;
1233
1664
  findings_count: z.ZodNumber;
1234
1665
  outcome: z.ZodEnum<["clean", "findings", "degraded", "not_run", "not_applicable"]>;
1666
+ /** Evidence state of the explicitly requested bounded source sample, not a whole-repository result. */
1667
+ source_sample: z.ZodOptional<z.ZodEnum<["not_planned", "planned_not_run", "reviewed_no_findings", "reviewed_with_findings"]>>;
1235
1668
  }, "strict", z.ZodTypeAny, {
1236
1669
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1237
1670
  lens: string;
1238
1671
  selected: boolean;
1239
1672
  findings_count: number;
1673
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1240
1674
  }, {
1241
1675
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1242
1676
  lens: string;
1243
1677
  selected: boolean;
1244
1678
  findings_count: number;
1679
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1245
1680
  }>, "many">>;
1246
1681
  }, "strip", z.ZodTypeAny, {
1247
1682
  finding_count: number;
@@ -1258,6 +1693,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1258
1693
  lens: string;
1259
1694
  selected: boolean;
1260
1695
  findings_count: number;
1696
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1261
1697
  }[] | undefined;
1262
1698
  }, {
1263
1699
  finding_count: number;
@@ -1274,6 +1710,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1274
1710
  lens: string;
1275
1711
  selected: boolean;
1276
1712
  findings_count: number;
1713
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
1277
1714
  }[] | undefined;
1278
1715
  }>;
1279
1716
  findings: z.ZodArray<z.ZodObject<{
@@ -1503,6 +1940,336 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1503
1940
  verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1504
1941
  /** Commands recommended by the implementation DAG for focused verification. */
1505
1942
  targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1943
+ /** Accepted source claims retained by canonical question-review reports and approved plans. */
1944
+ question_review_sources: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1945
+ question_id: z.ZodEffects<z.ZodString, string, string>;
1946
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
1947
+ finding_id: z.ZodEffects<z.ZodString, string, string>;
1948
+ kind: z.ZodEnum<["confirmed_defect", "design_opportunity", "lead"]>;
1949
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
1950
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
1951
+ claim: z.ZodString;
1952
+ consequence: z.ZodString;
1953
+ next_step: z.ZodString;
1954
+ evidence_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1955
+ observation_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1956
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
1957
+ path: z.ZodEffects<z.ZodString, string, string>;
1958
+ symbol: z.ZodOptional<z.ZodString>;
1959
+ start_line: z.ZodOptional<z.ZodNumber>;
1960
+ end_line: z.ZodOptional<z.ZodNumber>;
1961
+ }, "strict", z.ZodTypeAny, {
1962
+ path: string;
1963
+ symbol?: string | undefined;
1964
+ start_line?: number | undefined;
1965
+ end_line?: number | undefined;
1966
+ }, {
1967
+ path: string;
1968
+ symbol?: string | undefined;
1969
+ start_line?: number | undefined;
1970
+ end_line?: number | undefined;
1971
+ }>, {
1972
+ path: string;
1973
+ symbol?: string | undefined;
1974
+ start_line?: number | undefined;
1975
+ end_line?: number | undefined;
1976
+ }, {
1977
+ path: string;
1978
+ symbol?: string | undefined;
1979
+ start_line?: number | undefined;
1980
+ end_line?: number | undefined;
1981
+ }>, "many">;
1982
+ verification: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1983
+ kind: z.ZodLiteral<"analyzer">;
1984
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
1985
+ provenance: z.ZodObject<{
1986
+ analyzer_id: z.ZodString;
1987
+ rule: z.ZodOptional<z.ZodString>;
1988
+ path: z.ZodString;
1989
+ snippet_hash: z.ZodString;
1990
+ }, "strict", z.ZodTypeAny, {
1991
+ path: string;
1992
+ analyzer_id: string;
1993
+ snippet_hash: string;
1994
+ rule?: string | undefined;
1995
+ }, {
1996
+ path: string;
1997
+ analyzer_id: string;
1998
+ snippet_hash: string;
1999
+ rule?: string | undefined;
2000
+ }>;
2001
+ }, "strict", z.ZodTypeAny, {
2002
+ kind: "analyzer";
2003
+ obligation_id: string;
2004
+ provenance: {
2005
+ path: string;
2006
+ analyzer_id: string;
2007
+ snippet_hash: string;
2008
+ rule?: string | undefined;
2009
+ };
2010
+ }, {
2011
+ kind: "analyzer";
2012
+ obligation_id: string;
2013
+ provenance: {
2014
+ path: string;
2015
+ analyzer_id: string;
2016
+ snippet_hash: string;
2017
+ rule?: string | undefined;
2018
+ };
2019
+ }>, z.ZodObject<{
2020
+ kind: z.ZodLiteral<"assertion">;
2021
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2022
+ expected: z.ZodString;
2023
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2024
+ path: z.ZodEffects<z.ZodString, string, string>;
2025
+ symbol: z.ZodOptional<z.ZodString>;
2026
+ start_line: z.ZodOptional<z.ZodNumber>;
2027
+ end_line: z.ZodOptional<z.ZodNumber>;
2028
+ }, "strict", z.ZodTypeAny, {
2029
+ path: string;
2030
+ symbol?: string | undefined;
2031
+ start_line?: number | undefined;
2032
+ end_line?: number | undefined;
2033
+ }, {
2034
+ path: string;
2035
+ symbol?: string | undefined;
2036
+ start_line?: number | undefined;
2037
+ end_line?: number | undefined;
2038
+ }>, {
2039
+ path: string;
2040
+ symbol?: string | undefined;
2041
+ start_line?: number | undefined;
2042
+ end_line?: number | undefined;
2043
+ }, {
2044
+ path: string;
2045
+ symbol?: string | undefined;
2046
+ start_line?: number | undefined;
2047
+ end_line?: number | undefined;
2048
+ }>, "many">;
2049
+ }, "strict", z.ZodTypeAny, {
2050
+ expected: string;
2051
+ kind: "assertion";
2052
+ source_refs: {
2053
+ path: string;
2054
+ symbol?: string | undefined;
2055
+ start_line?: number | undefined;
2056
+ end_line?: number | undefined;
2057
+ }[];
2058
+ obligation_id: string;
2059
+ }, {
2060
+ expected: string;
2061
+ kind: "assertion";
2062
+ source_refs: {
2063
+ path: string;
2064
+ symbol?: string | undefined;
2065
+ start_line?: number | undefined;
2066
+ end_line?: number | undefined;
2067
+ }[];
2068
+ obligation_id: string;
2069
+ }>, z.ZodObject<{
2070
+ kind: z.ZodLiteral<"disposition">;
2071
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2072
+ disposition: z.ZodEnum<["implemented", "deferred", "rejected", "already_fixed", "out_of_scope"]>;
2073
+ reason: z.ZodString;
2074
+ }, "strict", z.ZodTypeAny, {
2075
+ reason: string;
2076
+ kind: "disposition";
2077
+ obligation_id: string;
2078
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2079
+ }, {
2080
+ reason: string;
2081
+ kind: "disposition";
2082
+ obligation_id: string;
2083
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2084
+ }>]>, "many">;
2085
+ purpose: z.ZodOptional<z.ZodString>;
2086
+ divergence: z.ZodOptional<z.ZodString>;
2087
+ schema_version: z.ZodLiteral<"audit-tools/question-review/v1">;
2088
+ }, "strict", z.ZodTypeAny, {
2089
+ confidence: "high" | "low" | "medium";
2090
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2091
+ source_refs: {
2092
+ path: string;
2093
+ symbol?: string | undefined;
2094
+ start_line?: number | undefined;
2095
+ end_line?: number | undefined;
2096
+ }[];
2097
+ question_id: string;
2098
+ revision_id: string;
2099
+ schema_version: "audit-tools/question-review/v1";
2100
+ finding_id: string;
2101
+ severity: "info" | "high" | "low" | "critical" | "medium";
2102
+ claim: string;
2103
+ consequence: string;
2104
+ next_step: string;
2105
+ evidence_ids: string[];
2106
+ verification: ({
2107
+ kind: "analyzer";
2108
+ obligation_id: string;
2109
+ provenance: {
2110
+ path: string;
2111
+ analyzer_id: string;
2112
+ snippet_hash: string;
2113
+ rule?: string | undefined;
2114
+ };
2115
+ } | {
2116
+ expected: string;
2117
+ kind: "assertion";
2118
+ source_refs: {
2119
+ path: string;
2120
+ symbol?: string | undefined;
2121
+ start_line?: number | undefined;
2122
+ end_line?: number | undefined;
2123
+ }[];
2124
+ obligation_id: string;
2125
+ } | {
2126
+ reason: string;
2127
+ kind: "disposition";
2128
+ obligation_id: string;
2129
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2130
+ })[];
2131
+ observation_ids?: string[] | undefined;
2132
+ purpose?: string | undefined;
2133
+ divergence?: string | undefined;
2134
+ }, {
2135
+ confidence: "high" | "low" | "medium";
2136
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2137
+ source_refs: {
2138
+ path: string;
2139
+ symbol?: string | undefined;
2140
+ start_line?: number | undefined;
2141
+ end_line?: number | undefined;
2142
+ }[];
2143
+ question_id: string;
2144
+ revision_id: string;
2145
+ schema_version: "audit-tools/question-review/v1";
2146
+ finding_id: string;
2147
+ severity: "info" | "high" | "low" | "critical" | "medium";
2148
+ claim: string;
2149
+ consequence: string;
2150
+ next_step: string;
2151
+ evidence_ids: string[];
2152
+ verification: ({
2153
+ kind: "analyzer";
2154
+ obligation_id: string;
2155
+ provenance: {
2156
+ path: string;
2157
+ analyzer_id: string;
2158
+ snippet_hash: string;
2159
+ rule?: string | undefined;
2160
+ };
2161
+ } | {
2162
+ expected: string;
2163
+ kind: "assertion";
2164
+ source_refs: {
2165
+ path: string;
2166
+ symbol?: string | undefined;
2167
+ start_line?: number | undefined;
2168
+ end_line?: number | undefined;
2169
+ }[];
2170
+ obligation_id: string;
2171
+ } | {
2172
+ reason: string;
2173
+ kind: "disposition";
2174
+ obligation_id: string;
2175
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2176
+ })[];
2177
+ observation_ids?: string[] | undefined;
2178
+ purpose?: string | undefined;
2179
+ divergence?: string | undefined;
2180
+ }>, {
2181
+ confidence: "high" | "low" | "medium";
2182
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2183
+ source_refs: {
2184
+ path: string;
2185
+ symbol?: string | undefined;
2186
+ start_line?: number | undefined;
2187
+ end_line?: number | undefined;
2188
+ }[];
2189
+ question_id: string;
2190
+ revision_id: string;
2191
+ schema_version: "audit-tools/question-review/v1";
2192
+ finding_id: string;
2193
+ severity: "info" | "high" | "low" | "critical" | "medium";
2194
+ claim: string;
2195
+ consequence: string;
2196
+ next_step: string;
2197
+ evidence_ids: string[];
2198
+ verification: ({
2199
+ kind: "analyzer";
2200
+ obligation_id: string;
2201
+ provenance: {
2202
+ path: string;
2203
+ analyzer_id: string;
2204
+ snippet_hash: string;
2205
+ rule?: string | undefined;
2206
+ };
2207
+ } | {
2208
+ expected: string;
2209
+ kind: "assertion";
2210
+ source_refs: {
2211
+ path: string;
2212
+ symbol?: string | undefined;
2213
+ start_line?: number | undefined;
2214
+ end_line?: number | undefined;
2215
+ }[];
2216
+ obligation_id: string;
2217
+ } | {
2218
+ reason: string;
2219
+ kind: "disposition";
2220
+ obligation_id: string;
2221
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2222
+ })[];
2223
+ observation_ids?: string[] | undefined;
2224
+ purpose?: string | undefined;
2225
+ divergence?: string | undefined;
2226
+ }, {
2227
+ confidence: "high" | "low" | "medium";
2228
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2229
+ source_refs: {
2230
+ path: string;
2231
+ symbol?: string | undefined;
2232
+ start_line?: number | undefined;
2233
+ end_line?: number | undefined;
2234
+ }[];
2235
+ question_id: string;
2236
+ revision_id: string;
2237
+ schema_version: "audit-tools/question-review/v1";
2238
+ finding_id: string;
2239
+ severity: "info" | "high" | "low" | "critical" | "medium";
2240
+ claim: string;
2241
+ consequence: string;
2242
+ next_step: string;
2243
+ evidence_ids: string[];
2244
+ verification: ({
2245
+ kind: "analyzer";
2246
+ obligation_id: string;
2247
+ provenance: {
2248
+ path: string;
2249
+ analyzer_id: string;
2250
+ snippet_hash: string;
2251
+ rule?: string | undefined;
2252
+ };
2253
+ } | {
2254
+ expected: string;
2255
+ kind: "assertion";
2256
+ source_refs: {
2257
+ path: string;
2258
+ symbol?: string | undefined;
2259
+ start_line?: number | undefined;
2260
+ end_line?: number | undefined;
2261
+ }[];
2262
+ obligation_id: string;
2263
+ } | {
2264
+ reason: string;
2265
+ kind: "disposition";
2266
+ obligation_id: string;
2267
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2268
+ })[];
2269
+ observation_ids?: string[] | undefined;
2270
+ purpose?: string | undefined;
2271
+ divergence?: string | undefined;
2272
+ }>, "many">>;
1506
2273
  /**
1507
2274
  * Content-anchored identity of the analyzer lead this finding was born from
1508
2275
  * (item C). Copied verbatim from the injected lead by the auditing worker;
@@ -1570,9 +2337,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1570
2337
  id: string;
1571
2338
  confidence: "high" | "low" | "medium";
1572
2339
  title: string;
1573
- category: string;
1574
- severity: "info" | "high" | "low" | "critical" | "medium";
1575
2340
  lens: string;
2341
+ severity: "info" | "high" | "low" | "critical" | "medium";
2342
+ category: string;
1576
2343
  summary: string;
1577
2344
  affected_files: {
1578
2345
  path: string;
@@ -1583,10 +2350,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1583
2350
  no_quotable_span?: string | undefined;
1584
2351
  hash_at_plan_time?: string | undefined;
1585
2352
  }[];
2353
+ evidence?: string[] | undefined;
1586
2354
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1587
2355
  impact?: string | undefined;
1588
2356
  likelihood?: string | undefined;
1589
- evidence?: string[] | undefined;
1590
2357
  reproduction?: string[] | undefined;
1591
2358
  systemic?: boolean | undefined;
1592
2359
  related_findings?: string[] | undefined;
@@ -1618,6 +2385,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1618
2385
  contract_obligation_ids?: string[] | undefined;
1619
2386
  verification_obligation_ids?: string[] | undefined;
1620
2387
  targeted_commands?: string[] | undefined;
2388
+ question_review_sources?: {
2389
+ confidence: "high" | "low" | "medium";
2390
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2391
+ source_refs: {
2392
+ path: string;
2393
+ symbol?: string | undefined;
2394
+ start_line?: number | undefined;
2395
+ end_line?: number | undefined;
2396
+ }[];
2397
+ question_id: string;
2398
+ revision_id: string;
2399
+ schema_version: "audit-tools/question-review/v1";
2400
+ finding_id: string;
2401
+ severity: "info" | "high" | "low" | "critical" | "medium";
2402
+ claim: string;
2403
+ consequence: string;
2404
+ next_step: string;
2405
+ evidence_ids: string[];
2406
+ verification: ({
2407
+ kind: "analyzer";
2408
+ obligation_id: string;
2409
+ provenance: {
2410
+ path: string;
2411
+ analyzer_id: string;
2412
+ snippet_hash: string;
2413
+ rule?: string | undefined;
2414
+ };
2415
+ } | {
2416
+ expected: string;
2417
+ kind: "assertion";
2418
+ source_refs: {
2419
+ path: string;
2420
+ symbol?: string | undefined;
2421
+ start_line?: number | undefined;
2422
+ end_line?: number | undefined;
2423
+ }[];
2424
+ obligation_id: string;
2425
+ } | {
2426
+ reason: string;
2427
+ kind: "disposition";
2428
+ obligation_id: string;
2429
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2430
+ })[];
2431
+ observation_ids?: string[] | undefined;
2432
+ purpose?: string | undefined;
2433
+ divergence?: string | undefined;
2434
+ }[] | undefined;
1621
2435
  analyzer_provenance?: {
1622
2436
  path: string;
1623
2437
  analyzer_id: string;
@@ -1633,9 +2447,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1633
2447
  id: string;
1634
2448
  confidence: "high" | "low" | "medium";
1635
2449
  title: string;
1636
- category: string;
1637
- severity: "info" | "high" | "low" | "critical" | "medium";
1638
2450
  lens: string;
2451
+ severity: "info" | "high" | "low" | "critical" | "medium";
2452
+ category: string;
1639
2453
  summary: string;
1640
2454
  affected_files: {
1641
2455
  path: string;
@@ -1646,10 +2460,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1646
2460
  no_quotable_span?: string | undefined;
1647
2461
  hash_at_plan_time?: string | undefined;
1648
2462
  }[];
2463
+ evidence?: string[] | undefined;
1649
2464
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1650
2465
  impact?: string | undefined;
1651
2466
  likelihood?: string | undefined;
1652
- evidence?: string[] | undefined;
1653
2467
  reproduction?: string[] | undefined;
1654
2468
  systemic?: boolean | undefined;
1655
2469
  related_findings?: string[] | undefined;
@@ -1681,6 +2495,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1681
2495
  contract_obligation_ids?: string[] | undefined;
1682
2496
  verification_obligation_ids?: string[] | undefined;
1683
2497
  targeted_commands?: string[] | undefined;
2498
+ question_review_sources?: {
2499
+ confidence: "high" | "low" | "medium";
2500
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2501
+ source_refs: {
2502
+ path: string;
2503
+ symbol?: string | undefined;
2504
+ start_line?: number | undefined;
2505
+ end_line?: number | undefined;
2506
+ }[];
2507
+ question_id: string;
2508
+ revision_id: string;
2509
+ schema_version: "audit-tools/question-review/v1";
2510
+ finding_id: string;
2511
+ severity: "info" | "high" | "low" | "critical" | "medium";
2512
+ claim: string;
2513
+ consequence: string;
2514
+ next_step: string;
2515
+ evidence_ids: string[];
2516
+ verification: ({
2517
+ kind: "analyzer";
2518
+ obligation_id: string;
2519
+ provenance: {
2520
+ path: string;
2521
+ analyzer_id: string;
2522
+ snippet_hash: string;
2523
+ rule?: string | undefined;
2524
+ };
2525
+ } | {
2526
+ expected: string;
2527
+ kind: "assertion";
2528
+ source_refs: {
2529
+ path: string;
2530
+ symbol?: string | undefined;
2531
+ start_line?: number | undefined;
2532
+ end_line?: number | undefined;
2533
+ }[];
2534
+ obligation_id: string;
2535
+ } | {
2536
+ reason: string;
2537
+ kind: "disposition";
2538
+ obligation_id: string;
2539
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2540
+ })[];
2541
+ observation_ids?: string[] | undefined;
2542
+ purpose?: string | undefined;
2543
+ divergence?: string | undefined;
2544
+ }[] | undefined;
1684
2545
  analyzer_provenance?: {
1685
2546
  path: string;
1686
2547
  analyzer_id: string;
@@ -1748,21 +2609,21 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1748
2609
  }, "strip", z.ZodTypeAny, {
1749
2610
  id: string;
1750
2611
  unit_ids: string[];
2612
+ rationale: string;
1751
2613
  finding_ids: string[];
1752
2614
  owned_files: string[];
1753
2615
  role: "implementation" | "coordination";
1754
2616
  max_severity: "info" | "high" | "low" | "critical" | "medium";
1755
- rationale: string;
1756
2617
  depends_on: string[];
1757
2618
  token_estimate?: number | undefined;
1758
2619
  }, {
1759
2620
  id: string;
1760
2621
  unit_ids: string[];
2622
+ rationale: string;
1761
2623
  finding_ids: string[];
1762
2624
  owned_files: string[];
1763
2625
  role: "implementation" | "coordination";
1764
2626
  max_severity: "info" | "high" | "low" | "critical" | "medium";
1765
- rationale: string;
1766
2627
  depends_on: string[];
1767
2628
  token_estimate?: number | undefined;
1768
2629
  }>, "many">;
@@ -2046,6 +2907,336 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2046
2907
  verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2047
2908
  /** Commands recommended by the implementation DAG for focused verification. */
2048
2909
  targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2910
+ /** Accepted source claims retained by canonical question-review reports and approved plans. */
2911
+ question_review_sources: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2912
+ question_id: z.ZodEffects<z.ZodString, string, string>;
2913
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
2914
+ finding_id: z.ZodEffects<z.ZodString, string, string>;
2915
+ kind: z.ZodEnum<["confirmed_defect", "design_opportunity", "lead"]>;
2916
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
2917
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
2918
+ claim: z.ZodString;
2919
+ consequence: z.ZodString;
2920
+ next_step: z.ZodString;
2921
+ evidence_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2922
+ observation_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2923
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2924
+ path: z.ZodEffects<z.ZodString, string, string>;
2925
+ symbol: z.ZodOptional<z.ZodString>;
2926
+ start_line: z.ZodOptional<z.ZodNumber>;
2927
+ end_line: z.ZodOptional<z.ZodNumber>;
2928
+ }, "strict", z.ZodTypeAny, {
2929
+ path: string;
2930
+ symbol?: string | undefined;
2931
+ start_line?: number | undefined;
2932
+ end_line?: number | undefined;
2933
+ }, {
2934
+ path: string;
2935
+ symbol?: string | undefined;
2936
+ start_line?: number | undefined;
2937
+ end_line?: number | undefined;
2938
+ }>, {
2939
+ path: string;
2940
+ symbol?: string | undefined;
2941
+ start_line?: number | undefined;
2942
+ end_line?: number | undefined;
2943
+ }, {
2944
+ path: string;
2945
+ symbol?: string | undefined;
2946
+ start_line?: number | undefined;
2947
+ end_line?: number | undefined;
2948
+ }>, "many">;
2949
+ verification: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2950
+ kind: z.ZodLiteral<"analyzer">;
2951
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2952
+ provenance: z.ZodObject<{
2953
+ analyzer_id: z.ZodString;
2954
+ rule: z.ZodOptional<z.ZodString>;
2955
+ path: z.ZodString;
2956
+ snippet_hash: z.ZodString;
2957
+ }, "strict", z.ZodTypeAny, {
2958
+ path: string;
2959
+ analyzer_id: string;
2960
+ snippet_hash: string;
2961
+ rule?: string | undefined;
2962
+ }, {
2963
+ path: string;
2964
+ analyzer_id: string;
2965
+ snippet_hash: string;
2966
+ rule?: string | undefined;
2967
+ }>;
2968
+ }, "strict", z.ZodTypeAny, {
2969
+ kind: "analyzer";
2970
+ obligation_id: string;
2971
+ provenance: {
2972
+ path: string;
2973
+ analyzer_id: string;
2974
+ snippet_hash: string;
2975
+ rule?: string | undefined;
2976
+ };
2977
+ }, {
2978
+ kind: "analyzer";
2979
+ obligation_id: string;
2980
+ provenance: {
2981
+ path: string;
2982
+ analyzer_id: string;
2983
+ snippet_hash: string;
2984
+ rule?: string | undefined;
2985
+ };
2986
+ }>, z.ZodObject<{
2987
+ kind: z.ZodLiteral<"assertion">;
2988
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2989
+ expected: z.ZodString;
2990
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2991
+ path: z.ZodEffects<z.ZodString, string, string>;
2992
+ symbol: z.ZodOptional<z.ZodString>;
2993
+ start_line: z.ZodOptional<z.ZodNumber>;
2994
+ end_line: z.ZodOptional<z.ZodNumber>;
2995
+ }, "strict", z.ZodTypeAny, {
2996
+ path: string;
2997
+ symbol?: string | undefined;
2998
+ start_line?: number | undefined;
2999
+ end_line?: number | undefined;
3000
+ }, {
3001
+ path: string;
3002
+ symbol?: string | undefined;
3003
+ start_line?: number | undefined;
3004
+ end_line?: number | undefined;
3005
+ }>, {
3006
+ path: string;
3007
+ symbol?: string | undefined;
3008
+ start_line?: number | undefined;
3009
+ end_line?: number | undefined;
3010
+ }, {
3011
+ path: string;
3012
+ symbol?: string | undefined;
3013
+ start_line?: number | undefined;
3014
+ end_line?: number | undefined;
3015
+ }>, "many">;
3016
+ }, "strict", z.ZodTypeAny, {
3017
+ expected: string;
3018
+ kind: "assertion";
3019
+ source_refs: {
3020
+ path: string;
3021
+ symbol?: string | undefined;
3022
+ start_line?: number | undefined;
3023
+ end_line?: number | undefined;
3024
+ }[];
3025
+ obligation_id: string;
3026
+ }, {
3027
+ expected: string;
3028
+ kind: "assertion";
3029
+ source_refs: {
3030
+ path: string;
3031
+ symbol?: string | undefined;
3032
+ start_line?: number | undefined;
3033
+ end_line?: number | undefined;
3034
+ }[];
3035
+ obligation_id: string;
3036
+ }>, z.ZodObject<{
3037
+ kind: z.ZodLiteral<"disposition">;
3038
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
3039
+ disposition: z.ZodEnum<["implemented", "deferred", "rejected", "already_fixed", "out_of_scope"]>;
3040
+ reason: z.ZodString;
3041
+ }, "strict", z.ZodTypeAny, {
3042
+ reason: string;
3043
+ kind: "disposition";
3044
+ obligation_id: string;
3045
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3046
+ }, {
3047
+ reason: string;
3048
+ kind: "disposition";
3049
+ obligation_id: string;
3050
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3051
+ }>]>, "many">;
3052
+ purpose: z.ZodOptional<z.ZodString>;
3053
+ divergence: z.ZodOptional<z.ZodString>;
3054
+ schema_version: z.ZodLiteral<"audit-tools/question-review/v1">;
3055
+ }, "strict", z.ZodTypeAny, {
3056
+ confidence: "high" | "low" | "medium";
3057
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3058
+ source_refs: {
3059
+ path: string;
3060
+ symbol?: string | undefined;
3061
+ start_line?: number | undefined;
3062
+ end_line?: number | undefined;
3063
+ }[];
3064
+ question_id: string;
3065
+ revision_id: string;
3066
+ schema_version: "audit-tools/question-review/v1";
3067
+ finding_id: string;
3068
+ severity: "info" | "high" | "low" | "critical" | "medium";
3069
+ claim: string;
3070
+ consequence: string;
3071
+ next_step: string;
3072
+ evidence_ids: string[];
3073
+ verification: ({
3074
+ kind: "analyzer";
3075
+ obligation_id: string;
3076
+ provenance: {
3077
+ path: string;
3078
+ analyzer_id: string;
3079
+ snippet_hash: string;
3080
+ rule?: string | undefined;
3081
+ };
3082
+ } | {
3083
+ expected: string;
3084
+ kind: "assertion";
3085
+ source_refs: {
3086
+ path: string;
3087
+ symbol?: string | undefined;
3088
+ start_line?: number | undefined;
3089
+ end_line?: number | undefined;
3090
+ }[];
3091
+ obligation_id: string;
3092
+ } | {
3093
+ reason: string;
3094
+ kind: "disposition";
3095
+ obligation_id: string;
3096
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3097
+ })[];
3098
+ observation_ids?: string[] | undefined;
3099
+ purpose?: string | undefined;
3100
+ divergence?: string | undefined;
3101
+ }, {
3102
+ confidence: "high" | "low" | "medium";
3103
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3104
+ source_refs: {
3105
+ path: string;
3106
+ symbol?: string | undefined;
3107
+ start_line?: number | undefined;
3108
+ end_line?: number | undefined;
3109
+ }[];
3110
+ question_id: string;
3111
+ revision_id: string;
3112
+ schema_version: "audit-tools/question-review/v1";
3113
+ finding_id: string;
3114
+ severity: "info" | "high" | "low" | "critical" | "medium";
3115
+ claim: string;
3116
+ consequence: string;
3117
+ next_step: string;
3118
+ evidence_ids: string[];
3119
+ verification: ({
3120
+ kind: "analyzer";
3121
+ obligation_id: string;
3122
+ provenance: {
3123
+ path: string;
3124
+ analyzer_id: string;
3125
+ snippet_hash: string;
3126
+ rule?: string | undefined;
3127
+ };
3128
+ } | {
3129
+ expected: string;
3130
+ kind: "assertion";
3131
+ source_refs: {
3132
+ path: string;
3133
+ symbol?: string | undefined;
3134
+ start_line?: number | undefined;
3135
+ end_line?: number | undefined;
3136
+ }[];
3137
+ obligation_id: string;
3138
+ } | {
3139
+ reason: string;
3140
+ kind: "disposition";
3141
+ obligation_id: string;
3142
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3143
+ })[];
3144
+ observation_ids?: string[] | undefined;
3145
+ purpose?: string | undefined;
3146
+ divergence?: string | undefined;
3147
+ }>, {
3148
+ confidence: "high" | "low" | "medium";
3149
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3150
+ source_refs: {
3151
+ path: string;
3152
+ symbol?: string | undefined;
3153
+ start_line?: number | undefined;
3154
+ end_line?: number | undefined;
3155
+ }[];
3156
+ question_id: string;
3157
+ revision_id: string;
3158
+ schema_version: "audit-tools/question-review/v1";
3159
+ finding_id: string;
3160
+ severity: "info" | "high" | "low" | "critical" | "medium";
3161
+ claim: string;
3162
+ consequence: string;
3163
+ next_step: string;
3164
+ evidence_ids: string[];
3165
+ verification: ({
3166
+ kind: "analyzer";
3167
+ obligation_id: string;
3168
+ provenance: {
3169
+ path: string;
3170
+ analyzer_id: string;
3171
+ snippet_hash: string;
3172
+ rule?: string | undefined;
3173
+ };
3174
+ } | {
3175
+ expected: string;
3176
+ kind: "assertion";
3177
+ source_refs: {
3178
+ path: string;
3179
+ symbol?: string | undefined;
3180
+ start_line?: number | undefined;
3181
+ end_line?: number | undefined;
3182
+ }[];
3183
+ obligation_id: string;
3184
+ } | {
3185
+ reason: string;
3186
+ kind: "disposition";
3187
+ obligation_id: string;
3188
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3189
+ })[];
3190
+ observation_ids?: string[] | undefined;
3191
+ purpose?: string | undefined;
3192
+ divergence?: string | undefined;
3193
+ }, {
3194
+ confidence: "high" | "low" | "medium";
3195
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3196
+ source_refs: {
3197
+ path: string;
3198
+ symbol?: string | undefined;
3199
+ start_line?: number | undefined;
3200
+ end_line?: number | undefined;
3201
+ }[];
3202
+ question_id: string;
3203
+ revision_id: string;
3204
+ schema_version: "audit-tools/question-review/v1";
3205
+ finding_id: string;
3206
+ severity: "info" | "high" | "low" | "critical" | "medium";
3207
+ claim: string;
3208
+ consequence: string;
3209
+ next_step: string;
3210
+ evidence_ids: string[];
3211
+ verification: ({
3212
+ kind: "analyzer";
3213
+ obligation_id: string;
3214
+ provenance: {
3215
+ path: string;
3216
+ analyzer_id: string;
3217
+ snippet_hash: string;
3218
+ rule?: string | undefined;
3219
+ };
3220
+ } | {
3221
+ expected: string;
3222
+ kind: "assertion";
3223
+ source_refs: {
3224
+ path: string;
3225
+ symbol?: string | undefined;
3226
+ start_line?: number | undefined;
3227
+ end_line?: number | undefined;
3228
+ }[];
3229
+ obligation_id: string;
3230
+ } | {
3231
+ reason: string;
3232
+ kind: "disposition";
3233
+ obligation_id: string;
3234
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3235
+ })[];
3236
+ observation_ids?: string[] | undefined;
3237
+ purpose?: string | undefined;
3238
+ divergence?: string | undefined;
3239
+ }>, "many">>;
2049
3240
  /**
2050
3241
  * Content-anchored identity of the analyzer lead this finding was born from
2051
3242
  * (item C). Copied verbatim from the injected lead by the auditing worker;
@@ -2113,9 +3304,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2113
3304
  id: string;
2114
3305
  confidence: "high" | "low" | "medium";
2115
3306
  title: string;
2116
- category: string;
2117
- severity: "info" | "high" | "low" | "critical" | "medium";
2118
3307
  lens: string;
3308
+ severity: "info" | "high" | "low" | "critical" | "medium";
3309
+ category: string;
2119
3310
  summary: string;
2120
3311
  affected_files: {
2121
3312
  path: string;
@@ -2126,10 +3317,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2126
3317
  no_quotable_span?: string | undefined;
2127
3318
  hash_at_plan_time?: string | undefined;
2128
3319
  }[];
3320
+ evidence?: string[] | undefined;
2129
3321
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2130
3322
  impact?: string | undefined;
2131
3323
  likelihood?: string | undefined;
2132
- evidence?: string[] | undefined;
2133
3324
  reproduction?: string[] | undefined;
2134
3325
  systemic?: boolean | undefined;
2135
3326
  related_findings?: string[] | undefined;
@@ -2161,6 +3352,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2161
3352
  contract_obligation_ids?: string[] | undefined;
2162
3353
  verification_obligation_ids?: string[] | undefined;
2163
3354
  targeted_commands?: string[] | undefined;
3355
+ question_review_sources?: {
3356
+ confidence: "high" | "low" | "medium";
3357
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3358
+ source_refs: {
3359
+ path: string;
3360
+ symbol?: string | undefined;
3361
+ start_line?: number | undefined;
3362
+ end_line?: number | undefined;
3363
+ }[];
3364
+ question_id: string;
3365
+ revision_id: string;
3366
+ schema_version: "audit-tools/question-review/v1";
3367
+ finding_id: string;
3368
+ severity: "info" | "high" | "low" | "critical" | "medium";
3369
+ claim: string;
3370
+ consequence: string;
3371
+ next_step: string;
3372
+ evidence_ids: string[];
3373
+ verification: ({
3374
+ kind: "analyzer";
3375
+ obligation_id: string;
3376
+ provenance: {
3377
+ path: string;
3378
+ analyzer_id: string;
3379
+ snippet_hash: string;
3380
+ rule?: string | undefined;
3381
+ };
3382
+ } | {
3383
+ expected: string;
3384
+ kind: "assertion";
3385
+ source_refs: {
3386
+ path: string;
3387
+ symbol?: string | undefined;
3388
+ start_line?: number | undefined;
3389
+ end_line?: number | undefined;
3390
+ }[];
3391
+ obligation_id: string;
3392
+ } | {
3393
+ reason: string;
3394
+ kind: "disposition";
3395
+ obligation_id: string;
3396
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3397
+ })[];
3398
+ observation_ids?: string[] | undefined;
3399
+ purpose?: string | undefined;
3400
+ divergence?: string | undefined;
3401
+ }[] | undefined;
2164
3402
  analyzer_provenance?: {
2165
3403
  path: string;
2166
3404
  analyzer_id: string;
@@ -2176,9 +3414,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2176
3414
  id: string;
2177
3415
  confidence: "high" | "low" | "medium";
2178
3416
  title: string;
2179
- category: string;
2180
- severity: "info" | "high" | "low" | "critical" | "medium";
2181
3417
  lens: string;
3418
+ severity: "info" | "high" | "low" | "critical" | "medium";
3419
+ category: string;
2182
3420
  summary: string;
2183
3421
  affected_files: {
2184
3422
  path: string;
@@ -2189,10 +3427,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2189
3427
  no_quotable_span?: string | undefined;
2190
3428
  hash_at_plan_time?: string | undefined;
2191
3429
  }[];
3430
+ evidence?: string[] | undefined;
2192
3431
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2193
3432
  impact?: string | undefined;
2194
3433
  likelihood?: string | undefined;
2195
- evidence?: string[] | undefined;
2196
3434
  reproduction?: string[] | undefined;
2197
3435
  systemic?: boolean | undefined;
2198
3436
  related_findings?: string[] | undefined;
@@ -2224,6 +3462,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2224
3462
  contract_obligation_ids?: string[] | undefined;
2225
3463
  verification_obligation_ids?: string[] | undefined;
2226
3464
  targeted_commands?: string[] | undefined;
3465
+ question_review_sources?: {
3466
+ confidence: "high" | "low" | "medium";
3467
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3468
+ source_refs: {
3469
+ path: string;
3470
+ symbol?: string | undefined;
3471
+ start_line?: number | undefined;
3472
+ end_line?: number | undefined;
3473
+ }[];
3474
+ question_id: string;
3475
+ revision_id: string;
3476
+ schema_version: "audit-tools/question-review/v1";
3477
+ finding_id: string;
3478
+ severity: "info" | "high" | "low" | "critical" | "medium";
3479
+ claim: string;
3480
+ consequence: string;
3481
+ next_step: string;
3482
+ evidence_ids: string[];
3483
+ verification: ({
3484
+ kind: "analyzer";
3485
+ obligation_id: string;
3486
+ provenance: {
3487
+ path: string;
3488
+ analyzer_id: string;
3489
+ snippet_hash: string;
3490
+ rule?: string | undefined;
3491
+ };
3492
+ } | {
3493
+ expected: string;
3494
+ kind: "assertion";
3495
+ source_refs: {
3496
+ path: string;
3497
+ symbol?: string | undefined;
3498
+ start_line?: number | undefined;
3499
+ end_line?: number | undefined;
3500
+ }[];
3501
+ obligation_id: string;
3502
+ } | {
3503
+ reason: string;
3504
+ kind: "disposition";
3505
+ obligation_id: string;
3506
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3507
+ })[];
3508
+ observation_ids?: string[] | undefined;
3509
+ purpose?: string | undefined;
3510
+ divergence?: string | undefined;
3511
+ }[] | undefined;
2227
3512
  analyzer_provenance?: {
2228
3513
  path: string;
2229
3514
  analyzer_id: string;
@@ -2273,9 +3558,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2273
3558
  id: string;
2274
3559
  confidence: "high" | "low" | "medium";
2275
3560
  title: string;
2276
- category: string;
2277
- severity: "info" | "high" | "low" | "critical" | "medium";
2278
3561
  lens: string;
3562
+ severity: "info" | "high" | "low" | "critical" | "medium";
3563
+ category: string;
2279
3564
  summary: string;
2280
3565
  affected_files: {
2281
3566
  path: string;
@@ -2286,10 +3571,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2286
3571
  no_quotable_span?: string | undefined;
2287
3572
  hash_at_plan_time?: string | undefined;
2288
3573
  }[];
3574
+ evidence?: string[] | undefined;
2289
3575
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2290
3576
  impact?: string | undefined;
2291
3577
  likelihood?: string | undefined;
2292
- evidence?: string[] | undefined;
2293
3578
  reproduction?: string[] | undefined;
2294
3579
  systemic?: boolean | undefined;
2295
3580
  related_findings?: string[] | undefined;
@@ -2321,6 +3606,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2321
3606
  contract_obligation_ids?: string[] | undefined;
2322
3607
  verification_obligation_ids?: string[] | undefined;
2323
3608
  targeted_commands?: string[] | undefined;
3609
+ question_review_sources?: {
3610
+ confidence: "high" | "low" | "medium";
3611
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3612
+ source_refs: {
3613
+ path: string;
3614
+ symbol?: string | undefined;
3615
+ start_line?: number | undefined;
3616
+ end_line?: number | undefined;
3617
+ }[];
3618
+ question_id: string;
3619
+ revision_id: string;
3620
+ schema_version: "audit-tools/question-review/v1";
3621
+ finding_id: string;
3622
+ severity: "info" | "high" | "low" | "critical" | "medium";
3623
+ claim: string;
3624
+ consequence: string;
3625
+ next_step: string;
3626
+ evidence_ids: string[];
3627
+ verification: ({
3628
+ kind: "analyzer";
3629
+ obligation_id: string;
3630
+ provenance: {
3631
+ path: string;
3632
+ analyzer_id: string;
3633
+ snippet_hash: string;
3634
+ rule?: string | undefined;
3635
+ };
3636
+ } | {
3637
+ expected: string;
3638
+ kind: "assertion";
3639
+ source_refs: {
3640
+ path: string;
3641
+ symbol?: string | undefined;
3642
+ start_line?: number | undefined;
3643
+ end_line?: number | undefined;
3644
+ }[];
3645
+ obligation_id: string;
3646
+ } | {
3647
+ reason: string;
3648
+ kind: "disposition";
3649
+ obligation_id: string;
3650
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3651
+ })[];
3652
+ observation_ids?: string[] | undefined;
3653
+ purpose?: string | undefined;
3654
+ divergence?: string | undefined;
3655
+ }[] | undefined;
2324
3656
  analyzer_provenance?: {
2325
3657
  path: string;
2326
3658
  analyzer_id: string;
@@ -2348,6 +3680,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2348
3680
  lens: string;
2349
3681
  selected: boolean;
2350
3682
  findings_count: number;
3683
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
2351
3684
  }[] | undefined;
2352
3685
  };
2353
3686
  contract_version: string;
@@ -2368,11 +3701,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2368
3701
  work_blocks: {
2369
3702
  id: string;
2370
3703
  unit_ids: string[];
3704
+ rationale: string;
2371
3705
  finding_ids: string[];
2372
3706
  owned_files: string[];
2373
3707
  role: "implementation" | "coordination";
2374
3708
  max_severity: "info" | "high" | "low" | "critical" | "medium";
2375
- rationale: string;
2376
3709
  depends_on: string[];
2377
3710
  token_estimate?: number | undefined;
2378
3711
  }[];
@@ -2397,9 +3730,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2397
3730
  id: string;
2398
3731
  confidence: "high" | "low" | "medium";
2399
3732
  title: string;
2400
- category: string;
2401
- severity: "info" | "high" | "low" | "critical" | "medium";
2402
3733
  lens: string;
3734
+ severity: "info" | "high" | "low" | "critical" | "medium";
3735
+ category: string;
2403
3736
  summary: string;
2404
3737
  affected_files: {
2405
3738
  path: string;
@@ -2410,10 +3743,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2410
3743
  no_quotable_span?: string | undefined;
2411
3744
  hash_at_plan_time?: string | undefined;
2412
3745
  }[];
3746
+ evidence?: string[] | undefined;
2413
3747
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2414
3748
  impact?: string | undefined;
2415
3749
  likelihood?: string | undefined;
2416
- evidence?: string[] | undefined;
2417
3750
  reproduction?: string[] | undefined;
2418
3751
  systemic?: boolean | undefined;
2419
3752
  related_findings?: string[] | undefined;
@@ -2445,6 +3778,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2445
3778
  contract_obligation_ids?: string[] | undefined;
2446
3779
  verification_obligation_ids?: string[] | undefined;
2447
3780
  targeted_commands?: string[] | undefined;
3781
+ question_review_sources?: {
3782
+ confidence: "high" | "low" | "medium";
3783
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3784
+ source_refs: {
3785
+ path: string;
3786
+ symbol?: string | undefined;
3787
+ start_line?: number | undefined;
3788
+ end_line?: number | undefined;
3789
+ }[];
3790
+ question_id: string;
3791
+ revision_id: string;
3792
+ schema_version: "audit-tools/question-review/v1";
3793
+ finding_id: string;
3794
+ severity: "info" | "high" | "low" | "critical" | "medium";
3795
+ claim: string;
3796
+ consequence: string;
3797
+ next_step: string;
3798
+ evidence_ids: string[];
3799
+ verification: ({
3800
+ kind: "analyzer";
3801
+ obligation_id: string;
3802
+ provenance: {
3803
+ path: string;
3804
+ analyzer_id: string;
3805
+ snippet_hash: string;
3806
+ rule?: string | undefined;
3807
+ };
3808
+ } | {
3809
+ expected: string;
3810
+ kind: "assertion";
3811
+ source_refs: {
3812
+ path: string;
3813
+ symbol?: string | undefined;
3814
+ start_line?: number | undefined;
3815
+ end_line?: number | undefined;
3816
+ }[];
3817
+ obligation_id: string;
3818
+ } | {
3819
+ reason: string;
3820
+ kind: "disposition";
3821
+ obligation_id: string;
3822
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3823
+ })[];
3824
+ observation_ids?: string[] | undefined;
3825
+ purpose?: string | undefined;
3826
+ divergence?: string | undefined;
3827
+ }[] | undefined;
2448
3828
  analyzer_provenance?: {
2449
3829
  path: string;
2450
3830
  analyzer_id: string;
@@ -2466,9 +3846,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2466
3846
  id: string;
2467
3847
  confidence: "high" | "low" | "medium";
2468
3848
  title: string;
2469
- category: string;
2470
- severity: "info" | "high" | "low" | "critical" | "medium";
2471
3849
  lens: string;
3850
+ severity: "info" | "high" | "low" | "critical" | "medium";
3851
+ category: string;
2472
3852
  summary: string;
2473
3853
  affected_files: {
2474
3854
  path: string;
@@ -2479,10 +3859,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2479
3859
  no_quotable_span?: string | undefined;
2480
3860
  hash_at_plan_time?: string | undefined;
2481
3861
  }[];
3862
+ evidence?: string[] | undefined;
2482
3863
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2483
3864
  impact?: string | undefined;
2484
3865
  likelihood?: string | undefined;
2485
- evidence?: string[] | undefined;
2486
3866
  reproduction?: string[] | undefined;
2487
3867
  systemic?: boolean | undefined;
2488
3868
  related_findings?: string[] | undefined;
@@ -2514,6 +3894,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2514
3894
  contract_obligation_ids?: string[] | undefined;
2515
3895
  verification_obligation_ids?: string[] | undefined;
2516
3896
  targeted_commands?: string[] | undefined;
3897
+ question_review_sources?: {
3898
+ confidence: "high" | "low" | "medium";
3899
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3900
+ source_refs: {
3901
+ path: string;
3902
+ symbol?: string | undefined;
3903
+ start_line?: number | undefined;
3904
+ end_line?: number | undefined;
3905
+ }[];
3906
+ question_id: string;
3907
+ revision_id: string;
3908
+ schema_version: "audit-tools/question-review/v1";
3909
+ finding_id: string;
3910
+ severity: "info" | "high" | "low" | "critical" | "medium";
3911
+ claim: string;
3912
+ consequence: string;
3913
+ next_step: string;
3914
+ evidence_ids: string[];
3915
+ verification: ({
3916
+ kind: "analyzer";
3917
+ obligation_id: string;
3918
+ provenance: {
3919
+ path: string;
3920
+ analyzer_id: string;
3921
+ snippet_hash: string;
3922
+ rule?: string | undefined;
3923
+ };
3924
+ } | {
3925
+ expected: string;
3926
+ kind: "assertion";
3927
+ source_refs: {
3928
+ path: string;
3929
+ symbol?: string | undefined;
3930
+ start_line?: number | undefined;
3931
+ end_line?: number | undefined;
3932
+ }[];
3933
+ obligation_id: string;
3934
+ } | {
3935
+ reason: string;
3936
+ kind: "disposition";
3937
+ obligation_id: string;
3938
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3939
+ })[];
3940
+ observation_ids?: string[] | undefined;
3941
+ purpose?: string | undefined;
3942
+ divergence?: string | undefined;
3943
+ }[] | undefined;
2517
3944
  analyzer_provenance?: {
2518
3945
  path: string;
2519
3946
  analyzer_id: string;
@@ -2541,6 +3968,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2541
3968
  lens: string;
2542
3969
  selected: boolean;
2543
3970
  findings_count: number;
3971
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
2544
3972
  }[] | undefined;
2545
3973
  };
2546
3974
  contract_version: string;
@@ -2561,11 +3989,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2561
3989
  work_blocks: {
2562
3990
  id: string;
2563
3991
  unit_ids: string[];
3992
+ rationale: string;
2564
3993
  finding_ids: string[];
2565
3994
  owned_files: string[];
2566
3995
  role: "implementation" | "coordination";
2567
3996
  max_severity: "info" | "high" | "low" | "critical" | "medium";
2568
- rationale: string;
2569
3997
  depends_on: string[];
2570
3998
  token_estimate?: number | undefined;
2571
3999
  }[];
@@ -2590,9 +4018,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2590
4018
  id: string;
2591
4019
  confidence: "high" | "low" | "medium";
2592
4020
  title: string;
2593
- category: string;
2594
- severity: "info" | "high" | "low" | "critical" | "medium";
2595
4021
  lens: string;
4022
+ severity: "info" | "high" | "low" | "critical" | "medium";
4023
+ category: string;
2596
4024
  summary: string;
2597
4025
  affected_files: {
2598
4026
  path: string;
@@ -2603,10 +4031,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2603
4031
  no_quotable_span?: string | undefined;
2604
4032
  hash_at_plan_time?: string | undefined;
2605
4033
  }[];
4034
+ evidence?: string[] | undefined;
2606
4035
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2607
4036
  impact?: string | undefined;
2608
4037
  likelihood?: string | undefined;
2609
- evidence?: string[] | undefined;
2610
4038
  reproduction?: string[] | undefined;
2611
4039
  systemic?: boolean | undefined;
2612
4040
  related_findings?: string[] | undefined;
@@ -2638,6 +4066,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2638
4066
  contract_obligation_ids?: string[] | undefined;
2639
4067
  verification_obligation_ids?: string[] | undefined;
2640
4068
  targeted_commands?: string[] | undefined;
4069
+ question_review_sources?: {
4070
+ confidence: "high" | "low" | "medium";
4071
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
4072
+ source_refs: {
4073
+ path: string;
4074
+ symbol?: string | undefined;
4075
+ start_line?: number | undefined;
4076
+ end_line?: number | undefined;
4077
+ }[];
4078
+ question_id: string;
4079
+ revision_id: string;
4080
+ schema_version: "audit-tools/question-review/v1";
4081
+ finding_id: string;
4082
+ severity: "info" | "high" | "low" | "critical" | "medium";
4083
+ claim: string;
4084
+ consequence: string;
4085
+ next_step: string;
4086
+ evidence_ids: string[];
4087
+ verification: ({
4088
+ kind: "analyzer";
4089
+ obligation_id: string;
4090
+ provenance: {
4091
+ path: string;
4092
+ analyzer_id: string;
4093
+ snippet_hash: string;
4094
+ rule?: string | undefined;
4095
+ };
4096
+ } | {
4097
+ expected: string;
4098
+ kind: "assertion";
4099
+ source_refs: {
4100
+ path: string;
4101
+ symbol?: string | undefined;
4102
+ start_line?: number | undefined;
4103
+ end_line?: number | undefined;
4104
+ }[];
4105
+ obligation_id: string;
4106
+ } | {
4107
+ reason: string;
4108
+ kind: "disposition";
4109
+ obligation_id: string;
4110
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
4111
+ })[];
4112
+ observation_ids?: string[] | undefined;
4113
+ purpose?: string | undefined;
4114
+ divergence?: string | undefined;
4115
+ }[] | undefined;
2641
4116
  analyzer_provenance?: {
2642
4117
  path: string;
2643
4118
  analyzer_id: string;
@@ -2659,9 +4134,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2659
4134
  id: string;
2660
4135
  confidence: "high" | "low" | "medium";
2661
4136
  title: string;
2662
- category: string;
2663
- severity: "info" | "high" | "low" | "critical" | "medium";
2664
4137
  lens: string;
4138
+ severity: "info" | "high" | "low" | "critical" | "medium";
4139
+ category: string;
2665
4140
  summary: string;
2666
4141
  affected_files: {
2667
4142
  path: string;
@@ -2672,10 +4147,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2672
4147
  no_quotable_span?: string | undefined;
2673
4148
  hash_at_plan_time?: string | undefined;
2674
4149
  }[];
4150
+ evidence?: string[] | undefined;
2675
4151
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2676
4152
  impact?: string | undefined;
2677
4153
  likelihood?: string | undefined;
2678
- evidence?: string[] | undefined;
2679
4154
  reproduction?: string[] | undefined;
2680
4155
  systemic?: boolean | undefined;
2681
4156
  related_findings?: string[] | undefined;
@@ -2707,6 +4182,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2707
4182
  contract_obligation_ids?: string[] | undefined;
2708
4183
  verification_obligation_ids?: string[] | undefined;
2709
4184
  targeted_commands?: string[] | undefined;
4185
+ question_review_sources?: {
4186
+ confidence: "high" | "low" | "medium";
4187
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
4188
+ source_refs: {
4189
+ path: string;
4190
+ symbol?: string | undefined;
4191
+ start_line?: number | undefined;
4192
+ end_line?: number | undefined;
4193
+ }[];
4194
+ question_id: string;
4195
+ revision_id: string;
4196
+ schema_version: "audit-tools/question-review/v1";
4197
+ finding_id: string;
4198
+ severity: "info" | "high" | "low" | "critical" | "medium";
4199
+ claim: string;
4200
+ consequence: string;
4201
+ next_step: string;
4202
+ evidence_ids: string[];
4203
+ verification: ({
4204
+ kind: "analyzer";
4205
+ obligation_id: string;
4206
+ provenance: {
4207
+ path: string;
4208
+ analyzer_id: string;
4209
+ snippet_hash: string;
4210
+ rule?: string | undefined;
4211
+ };
4212
+ } | {
4213
+ expected: string;
4214
+ kind: "assertion";
4215
+ source_refs: {
4216
+ path: string;
4217
+ symbol?: string | undefined;
4218
+ start_line?: number | undefined;
4219
+ end_line?: number | undefined;
4220
+ }[];
4221
+ obligation_id: string;
4222
+ } | {
4223
+ reason: string;
4224
+ kind: "disposition";
4225
+ obligation_id: string;
4226
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
4227
+ })[];
4228
+ observation_ids?: string[] | undefined;
4229
+ purpose?: string | undefined;
4230
+ divergence?: string | undefined;
4231
+ }[] | undefined;
2710
4232
  analyzer_provenance?: {
2711
4233
  path: string;
2712
4234
  analyzer_id: string;
@@ -2734,6 +4256,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2734
4256
  lens: string;
2735
4257
  selected: boolean;
2736
4258
  findings_count: number;
4259
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
2737
4260
  }[] | undefined;
2738
4261
  };
2739
4262
  contract_version: string;
@@ -2754,11 +4277,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2754
4277
  work_blocks: {
2755
4278
  id: string;
2756
4279
  unit_ids: string[];
4280
+ rationale: string;
2757
4281
  finding_ids: string[];
2758
4282
  owned_files: string[];
2759
4283
  role: "implementation" | "coordination";
2760
4284
  max_severity: "info" | "high" | "low" | "critical" | "medium";
2761
- rationale: string;
2762
4285
  depends_on: string[];
2763
4286
  token_estimate?: number | undefined;
2764
4287
  }[];
@@ -2783,9 +4306,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2783
4306
  id: string;
2784
4307
  confidence: "high" | "low" | "medium";
2785
4308
  title: string;
2786
- category: string;
2787
- severity: "info" | "high" | "low" | "critical" | "medium";
2788
4309
  lens: string;
4310
+ severity: "info" | "high" | "low" | "critical" | "medium";
4311
+ category: string;
2789
4312
  summary: string;
2790
4313
  affected_files: {
2791
4314
  path: string;
@@ -2796,10 +4319,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2796
4319
  no_quotable_span?: string | undefined;
2797
4320
  hash_at_plan_time?: string | undefined;
2798
4321
  }[];
4322
+ evidence?: string[] | undefined;
2799
4323
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2800
4324
  impact?: string | undefined;
2801
4325
  likelihood?: string | undefined;
2802
- evidence?: string[] | undefined;
2803
4326
  reproduction?: string[] | undefined;
2804
4327
  systemic?: boolean | undefined;
2805
4328
  related_findings?: string[] | undefined;
@@ -2831,6 +4354,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2831
4354
  contract_obligation_ids?: string[] | undefined;
2832
4355
  verification_obligation_ids?: string[] | undefined;
2833
4356
  targeted_commands?: string[] | undefined;
4357
+ question_review_sources?: {
4358
+ confidence: "high" | "low" | "medium";
4359
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
4360
+ source_refs: {
4361
+ path: string;
4362
+ symbol?: string | undefined;
4363
+ start_line?: number | undefined;
4364
+ end_line?: number | undefined;
4365
+ }[];
4366
+ question_id: string;
4367
+ revision_id: string;
4368
+ schema_version: "audit-tools/question-review/v1";
4369
+ finding_id: string;
4370
+ severity: "info" | "high" | "low" | "critical" | "medium";
4371
+ claim: string;
4372
+ consequence: string;
4373
+ next_step: string;
4374
+ evidence_ids: string[];
4375
+ verification: ({
4376
+ kind: "analyzer";
4377
+ obligation_id: string;
4378
+ provenance: {
4379
+ path: string;
4380
+ analyzer_id: string;
4381
+ snippet_hash: string;
4382
+ rule?: string | undefined;
4383
+ };
4384
+ } | {
4385
+ expected: string;
4386
+ kind: "assertion";
4387
+ source_refs: {
4388
+ path: string;
4389
+ symbol?: string | undefined;
4390
+ start_line?: number | undefined;
4391
+ end_line?: number | undefined;
4392
+ }[];
4393
+ obligation_id: string;
4394
+ } | {
4395
+ reason: string;
4396
+ kind: "disposition";
4397
+ obligation_id: string;
4398
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
4399
+ })[];
4400
+ observation_ids?: string[] | undefined;
4401
+ purpose?: string | undefined;
4402
+ divergence?: string | undefined;
4403
+ }[] | undefined;
2834
4404
  analyzer_provenance?: {
2835
4405
  path: string;
2836
4406
  analyzer_id: string;
@@ -2852,9 +4422,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2852
4422
  id: string;
2853
4423
  confidence: "high" | "low" | "medium";
2854
4424
  title: string;
2855
- category: string;
2856
- severity: "info" | "high" | "low" | "critical" | "medium";
2857
4425
  lens: string;
4426
+ severity: "info" | "high" | "low" | "critical" | "medium";
4427
+ category: string;
2858
4428
  summary: string;
2859
4429
  affected_files: {
2860
4430
  path: string;
@@ -2865,10 +4435,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2865
4435
  no_quotable_span?: string | undefined;
2866
4436
  hash_at_plan_time?: string | undefined;
2867
4437
  }[];
4438
+ evidence?: string[] | undefined;
2868
4439
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2869
4440
  impact?: string | undefined;
2870
4441
  likelihood?: string | undefined;
2871
- evidence?: string[] | undefined;
2872
4442
  reproduction?: string[] | undefined;
2873
4443
  systemic?: boolean | undefined;
2874
4444
  related_findings?: string[] | undefined;
@@ -2900,6 +4470,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2900
4470
  contract_obligation_ids?: string[] | undefined;
2901
4471
  verification_obligation_ids?: string[] | undefined;
2902
4472
  targeted_commands?: string[] | undefined;
4473
+ question_review_sources?: {
4474
+ confidence: "high" | "low" | "medium";
4475
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
4476
+ source_refs: {
4477
+ path: string;
4478
+ symbol?: string | undefined;
4479
+ start_line?: number | undefined;
4480
+ end_line?: number | undefined;
4481
+ }[];
4482
+ question_id: string;
4483
+ revision_id: string;
4484
+ schema_version: "audit-tools/question-review/v1";
4485
+ finding_id: string;
4486
+ severity: "info" | "high" | "low" | "critical" | "medium";
4487
+ claim: string;
4488
+ consequence: string;
4489
+ next_step: string;
4490
+ evidence_ids: string[];
4491
+ verification: ({
4492
+ kind: "analyzer";
4493
+ obligation_id: string;
4494
+ provenance: {
4495
+ path: string;
4496
+ analyzer_id: string;
4497
+ snippet_hash: string;
4498
+ rule?: string | undefined;
4499
+ };
4500
+ } | {
4501
+ expected: string;
4502
+ kind: "assertion";
4503
+ source_refs: {
4504
+ path: string;
4505
+ symbol?: string | undefined;
4506
+ start_line?: number | undefined;
4507
+ end_line?: number | undefined;
4508
+ }[];
4509
+ obligation_id: string;
4510
+ } | {
4511
+ reason: string;
4512
+ kind: "disposition";
4513
+ obligation_id: string;
4514
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
4515
+ })[];
4516
+ observation_ids?: string[] | undefined;
4517
+ purpose?: string | undefined;
4518
+ divergence?: string | undefined;
4519
+ }[] | undefined;
2903
4520
  analyzer_provenance?: {
2904
4521
  path: string;
2905
4522
  analyzer_id: string;
@@ -2927,6 +4544,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2927
4544
  lens: string;
2928
4545
  selected: boolean;
2929
4546
  findings_count: number;
4547
+ source_sample?: "not_planned" | "planned_not_run" | "reviewed_no_findings" | "reviewed_with_findings" | undefined;
2930
4548
  }[] | undefined;
2931
4549
  };
2932
4550
  contract_version: string;
@@ -2947,11 +4565,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2947
4565
  work_blocks: {
2948
4566
  id: string;
2949
4567
  unit_ids: string[];
4568
+ rationale: string;
2950
4569
  finding_ids: string[];
2951
4570
  owned_files: string[];
2952
4571
  role: "implementation" | "coordination";
2953
4572
  max_severity: "info" | "high" | "low" | "critical" | "medium";
2954
- rationale: string;
2955
4573
  depends_on: string[];
2956
4574
  token_estimate?: number | undefined;
2957
4575
  }[];
@@ -2976,9 +4594,9 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2976
4594
  id: string;
2977
4595
  confidence: "high" | "low" | "medium";
2978
4596
  title: string;
2979
- category: string;
2980
- severity: "info" | "high" | "low" | "critical" | "medium";
2981
4597
  lens: string;
4598
+ severity: "info" | "high" | "low" | "critical" | "medium";
4599
+ category: string;
2982
4600
  summary: string;
2983
4601
  affected_files: {
2984
4602
  path: string;
@@ -2989,10 +4607,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2989
4607
  no_quotable_span?: string | undefined;
2990
4608
  hash_at_plan_time?: string | undefined;
2991
4609
  }[];
4610
+ evidence?: string[] | undefined;
2992
4611
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2993
4612
  impact?: string | undefined;
2994
4613
  likelihood?: string | undefined;
2995
- evidence?: string[] | undefined;
2996
4614
  reproduction?: string[] | undefined;
2997
4615
  systemic?: boolean | undefined;
2998
4616
  related_findings?: string[] | undefined;
@@ -3024,6 +4642,53 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
3024
4642
  contract_obligation_ids?: string[] | undefined;
3025
4643
  verification_obligation_ids?: string[] | undefined;
3026
4644
  targeted_commands?: string[] | undefined;
4645
+ question_review_sources?: {
4646
+ confidence: "high" | "low" | "medium";
4647
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
4648
+ source_refs: {
4649
+ path: string;
4650
+ symbol?: string | undefined;
4651
+ start_line?: number | undefined;
4652
+ end_line?: number | undefined;
4653
+ }[];
4654
+ question_id: string;
4655
+ revision_id: string;
4656
+ schema_version: "audit-tools/question-review/v1";
4657
+ finding_id: string;
4658
+ severity: "info" | "high" | "low" | "critical" | "medium";
4659
+ claim: string;
4660
+ consequence: string;
4661
+ next_step: string;
4662
+ evidence_ids: string[];
4663
+ verification: ({
4664
+ kind: "analyzer";
4665
+ obligation_id: string;
4666
+ provenance: {
4667
+ path: string;
4668
+ analyzer_id: string;
4669
+ snippet_hash: string;
4670
+ rule?: string | undefined;
4671
+ };
4672
+ } | {
4673
+ expected: string;
4674
+ kind: "assertion";
4675
+ source_refs: {
4676
+ path: string;
4677
+ symbol?: string | undefined;
4678
+ start_line?: number | undefined;
4679
+ end_line?: number | undefined;
4680
+ }[];
4681
+ obligation_id: string;
4682
+ } | {
4683
+ reason: string;
4684
+ kind: "disposition";
4685
+ obligation_id: string;
4686
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
4687
+ })[];
4688
+ observation_ids?: string[] | undefined;
4689
+ purpose?: string | undefined;
4690
+ divergence?: string | undefined;
4691
+ }[] | undefined;
3027
4692
  analyzer_provenance?: {
3028
4693
  path: string;
3029
4694
  analyzer_id: string;