audit-tools 0.56.1 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/README.md +8 -22
  2. package/dist/audit/cli/args.d.ts +0 -1
  3. package/dist/audit/cli/args.d.ts.map +1 -1
  4. package/dist/audit/cli/args.js +0 -14
  5. package/dist/audit/cli/args.js.map +1 -1
  6. package/dist/audit/cli/auditStep.d.ts +0 -59
  7. package/dist/audit/cli/auditStep.d.ts.map +1 -1
  8. package/dist/audit/cli/auditStep.js +2 -136
  9. package/dist/audit/cli/auditStep.js.map +1 -1
  10. package/dist/audit/cli/cleanup.d.ts.map +1 -1
  11. package/dist/audit/cli/cleanup.js +4 -1
  12. package/dist/audit/cli/cleanup.js.map +1 -1
  13. package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
  14. package/dist/audit/cli/confirmIntentStep.js +16 -31
  15. package/dist/audit/cli/confirmIntentStep.js.map +1 -1
  16. package/dist/audit/cli/dispatch/hostHandoff.d.ts +414 -1
  17. package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
  18. package/dist/audit/cli/dispatch/hostHandoff.js +223 -1
  19. package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
  20. package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts +254 -0
  21. package/dist/audit/cli/dispatch/questionReviewAcceptance.d.ts.map +1 -0
  22. package/dist/audit/cli/dispatch/questionReviewAcceptance.js +181 -0
  23. package/dist/audit/cli/dispatch/questionReviewAcceptance.js.map +1 -0
  24. package/dist/audit/cli/functionalPreflight.d.ts +4 -4
  25. package/dist/audit/cli/laneSubmissions.d.ts +4 -4
  26. package/dist/audit/cli/nextStepCommand.d.ts +3 -20
  27. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
  28. package/dist/audit/cli/nextStepCommand.js +39 -133
  29. package/dist/audit/cli/nextStepCommand.js.map +1 -1
  30. package/dist/audit/cli/nextStepHelpers.d.ts +10 -72
  31. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
  32. package/dist/audit/cli/nextStepHelpers.js +95 -363
  33. package/dist/audit/cli/nextStepHelpers.js.map +1 -1
  34. package/dist/audit/cli/prompts.d.ts +0 -2
  35. package/dist/audit/cli/prompts.d.ts.map +1 -1
  36. package/dist/audit/cli/prompts.js +3 -14
  37. package/dist/audit/cli/prompts.js.map +1 -1
  38. package/dist/audit/cli/questionReviewCycle.d.ts +239 -0
  39. package/dist/audit/cli/questionReviewCycle.d.ts.map +1 -0
  40. package/dist/audit/cli/questionReviewCycle.js +55 -0
  41. package/dist/audit/cli/questionReviewCycle.js.map +1 -0
  42. package/dist/audit/cli/questionReviewSession.d.ts +7 -0
  43. package/dist/audit/cli/questionReviewSession.d.ts.map +1 -0
  44. package/dist/audit/cli/questionReviewSession.js +46 -0
  45. package/dist/audit/cli/questionReviewSession.js.map +1 -0
  46. package/dist/audit/cli/questionWorkloadBindings.d.ts +7 -0
  47. package/dist/audit/cli/questionWorkloadBindings.d.ts.map +1 -0
  48. package/dist/audit/cli/questionWorkloadBindings.js +66 -0
  49. package/dist/audit/cli/questionWorkloadBindings.js.map +1 -0
  50. package/dist/audit/cli/resynthesizeCommand.d.ts +1 -0
  51. package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -1
  52. package/dist/audit/cli/resynthesizeCommand.js +52 -51
  53. package/dist/audit/cli/resynthesizeCommand.js.map +1 -1
  54. package/dist/audit/cli/sampleRunCommand.d.ts +565 -160
  55. package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -1
  56. package/dist/audit/cli/sampleRunCommand.js +66 -152
  57. package/dist/audit/cli/sampleRunCommand.js.map +1 -1
  58. package/dist/audit/cli/statusCommand.d.ts.map +1 -1
  59. package/dist/audit/cli/statusCommand.js +20 -14
  60. package/dist/audit/cli/statusCommand.js.map +1 -1
  61. package/dist/audit/cli/steps.d.ts +10 -10
  62. package/dist/audit/cli/submitCommand.d.ts +11 -6
  63. package/dist/audit/cli/submitCommand.d.ts.map +1 -1
  64. package/dist/audit/cli/submitCommand.js +91 -24
  65. package/dist/audit/cli/submitCommand.js.map +1 -1
  66. package/dist/audit/cli.d.ts.map +1 -1
  67. package/dist/audit/cli.js +6 -17
  68. package/dist/audit/cli.js.map +1 -1
  69. package/dist/audit/contracts/findingContractPrompt.d.ts +4 -4
  70. package/dist/audit/contracts/workerSchemas.d.ts +69 -68
  71. package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
  72. package/dist/audit/contracts/workerSchemas.js +8 -1
  73. package/dist/audit/contracts/workerSchemas.js.map +1 -1
  74. package/dist/audit/contracts/wrapperResponse.d.ts +13 -13
  75. package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
  76. package/dist/audit/contracts/wrapperResponse.js +0 -1
  77. package/dist/audit/contracts/wrapperResponse.js.map +1 -1
  78. package/dist/audit/extractors/designAssessment.js +2 -2
  79. package/dist/audit/extractors/designAssessment.js.map +1 -1
  80. package/dist/audit/io/artifacts.d.ts +31 -9
  81. package/dist/audit/io/artifacts.d.ts.map +1 -1
  82. package/dist/audit/io/artifacts.js +197 -31
  83. package/dist/audit/io/artifacts.js.map +1 -1
  84. package/dist/audit/io/rollover.d.ts.map +1 -1
  85. package/dist/audit/io/rollover.js +7 -16
  86. package/dist/audit/io/rollover.js.map +1 -1
  87. package/dist/audit/io/runSnapshot.d.ts +1 -1
  88. package/dist/audit/io/runSnapshot.js +1 -1
  89. package/dist/audit/orchestrator/architectureDiscovery.d.ts +9 -10
  90. package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -1
  91. package/dist/audit/orchestrator/architectureDiscovery.js +95 -13
  92. package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -1
  93. package/dist/audit/orchestrator/charterPacketArchive.d.ts +3 -0
  94. package/dist/audit/orchestrator/charterPacketArchive.d.ts.map +1 -1
  95. package/dist/audit/orchestrator/charterPacketArchive.js +31 -2
  96. package/dist/audit/orchestrator/charterPacketArchive.js.map +1 -1
  97. package/dist/audit/orchestrator/dependencyMap.d.ts +2 -8
  98. package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
  99. package/dist/audit/orchestrator/dependencyMap.js +10 -105
  100. package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
  101. package/dist/audit/orchestrator/dependencySlices.d.ts +2 -3
  102. package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
  103. package/dist/audit/orchestrator/dependencySlices.js +2 -35
  104. package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
  105. package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
  106. package/dist/audit/orchestrator/designReviewPrompt.js +24 -14
  107. package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
  108. package/dist/audit/orchestrator/executorRunners.d.ts +1 -1
  109. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
  110. package/dist/audit/orchestrator/executorRunners.js +14 -21
  111. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  112. package/dist/audit/orchestrator/executors.d.ts.map +1 -1
  113. package/dist/audit/orchestrator/executors.js +1 -131
  114. package/dist/audit/orchestrator/executors.js.map +1 -1
  115. package/dist/audit/orchestrator/flowPlanning.d.ts +1 -1
  116. package/dist/audit/orchestrator/flowPlanning.js +1 -1
  117. package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
  118. package/dist/audit/orchestrator/ingestionExecutors.js +19 -12
  119. package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
  120. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +2 -2
  121. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
  122. package/dist/audit/orchestrator/intentCheckpointExecutor.js +37 -36
  123. package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
  124. package/dist/audit/orchestrator/lensSelection.d.ts +6 -37
  125. package/dist/audit/orchestrator/lensSelection.d.ts.map +1 -1
  126. package/dist/audit/orchestrator/lensSelection.js +42 -68
  127. package/dist/audit/orchestrator/lensSelection.js.map +1 -1
  128. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
  129. package/dist/audit/orchestrator/nextStep.js +1 -4
  130. package/dist/audit/orchestrator/nextStep.js.map +1 -1
  131. package/dist/audit/orchestrator/questionEvidence.d.ts +67 -0
  132. package/dist/audit/orchestrator/questionEvidence.d.ts.map +1 -0
  133. package/dist/audit/orchestrator/questionEvidence.js +177 -0
  134. package/dist/audit/orchestrator/questionEvidence.js.map +1 -0
  135. package/dist/audit/orchestrator/questionPlanExecutor.d.ts +10 -0
  136. package/dist/audit/orchestrator/questionPlanExecutor.d.ts.map +1 -0
  137. package/dist/audit/orchestrator/questionPlanExecutor.js +23 -0
  138. package/dist/audit/orchestrator/questionPlanExecutor.js.map +1 -0
  139. package/dist/audit/orchestrator/questionPlanning.d.ts +48 -0
  140. package/dist/audit/orchestrator/questionPlanning.d.ts.map +1 -0
  141. package/dist/audit/orchestrator/questionPlanning.js +326 -0
  142. package/dist/audit/orchestrator/questionPlanning.js.map +1 -0
  143. package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts +11 -0
  144. package/dist/audit/orchestrator/reviewLensPlaybooks.d.ts.map +1 -0
  145. package/dist/audit/orchestrator/reviewLensPlaybooks.js +11 -0
  146. package/dist/audit/orchestrator/reviewLensPlaybooks.js.map +1 -0
  147. package/dist/audit/orchestrator/runtimeValidation.d.ts.map +1 -1
  148. package/dist/audit/orchestrator/runtimeValidation.js +14 -0
  149. package/dist/audit/orchestrator/runtimeValidation.js.map +1 -1
  150. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts +1 -1
  151. package/dist/audit/orchestrator/runtimeValidationUpdate.d.ts.map +1 -1
  152. package/dist/audit/orchestrator/runtimeValidationUpdate.js +13 -4
  153. package/dist/audit/orchestrator/runtimeValidationUpdate.js.map +1 -1
  154. package/dist/audit/orchestrator/selectiveDeepening/conflict.js +1 -1
  155. package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -1
  156. package/dist/audit/orchestrator/selectiveDeepening/index.js +1 -1
  157. package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -1
  158. package/dist/audit/orchestrator/state.d.ts.map +1 -1
  159. package/dist/audit/orchestrator/state.js +8 -60
  160. package/dist/audit/orchestrator/state.js.map +1 -1
  161. package/dist/audit/orchestrator/synthesisExecutors.d.ts +15 -1
  162. package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
  163. package/dist/audit/orchestrator/synthesisExecutors.js +76 -25
  164. package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
  165. package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts.map +1 -1
  166. package/dist/audit/orchestrator/systemicChallengeExecutor.js +11 -6
  167. package/dist/audit/orchestrator/systemicChallengeExecutor.js.map +1 -1
  168. package/dist/audit/orchestrator/taskAffinityGraph.d.ts +4 -4
  169. package/dist/audit/reporting/questionReport.d.ts +27 -0
  170. package/dist/audit/reporting/questionReport.d.ts.map +1 -0
  171. package/dist/audit/reporting/questionReport.js +183 -0
  172. package/dist/audit/reporting/questionReport.js.map +1 -0
  173. package/dist/audit/reporting/synthesis.d.ts +10 -1
  174. package/dist/audit/reporting/synthesis.d.ts.map +1 -1
  175. package/dist/audit/reporting/synthesis.js +161 -24
  176. package/dist/audit/reporting/synthesis.js.map +1 -1
  177. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts +4 -1
  178. package/dist/audit/reporting/synthesisNarrativePrompt.d.ts.map +1 -1
  179. package/dist/audit/reporting/synthesisNarrativePrompt.js +5 -1
  180. package/dist/audit/reporting/synthesisNarrativePrompt.js.map +1 -1
  181. package/dist/audit/supervisor/operatorHandoff.d.ts +2 -3
  182. package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
  183. package/dist/audit/supervisor/operatorHandoff.js +3 -18
  184. package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
  185. package/dist/audit/systemic/aggregateMetricsDigest.d.ts.map +1 -1
  186. package/dist/audit/systemic/aggregateMetricsDigest.js +0 -2
  187. package/dist/audit/systemic/aggregateMetricsDigest.js.map +1 -1
  188. package/dist/audit/types/artifactMetadata.d.ts +1 -2
  189. package/dist/audit/types/artifactMetadata.d.ts.map +1 -1
  190. package/dist/audit/types/auditState.d.ts +6 -6
  191. package/dist/audit/types/conceptualAdjudication.d.ts +708 -50
  192. package/dist/audit/types/conceptualAdjudication.d.ts.map +1 -1
  193. package/dist/audit/types/conceptualAdjudication.js +2 -0
  194. package/dist/audit/types/conceptualAdjudication.js.map +1 -1
  195. package/dist/audit/types/runtimeValidation.d.ts +58 -6
  196. package/dist/audit/types/runtimeValidation.d.ts.map +1 -1
  197. package/dist/audit/types/runtimeValidation.js +8 -0
  198. package/dist/audit/types/runtimeValidation.js.map +1 -1
  199. package/dist/audit/types.d.ts +539 -22
  200. package/dist/audit/types.d.ts.map +1 -1
  201. package/dist/audit/validation/auditResults.d.ts +1 -1
  202. package/dist/audit/validation/auditResults.js +1 -1
  203. package/dist/audit/validation/ingestIssueCodes.d.ts.map +1 -1
  204. package/dist/audit/validation/ingestIssueCodes.js +0 -1
  205. package/dist/audit/validation/ingestIssueCodes.js.map +1 -1
  206. package/dist/remediate/contractPipeline/executionPlan.d.ts +679 -52
  207. package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -1
  208. package/dist/remediate/contractPipeline/executionPlan.js +23 -0
  209. package/dist/remediate/contractPipeline/executionPlan.js.map +1 -1
  210. package/dist/remediate/findingFilter.d.ts.map +1 -1
  211. package/dist/remediate/findingFilter.js +6 -2
  212. package/dist/remediate/findingFilter.js.map +1 -1
  213. package/dist/remediate/intake.d.ts +4 -4
  214. package/dist/remediate/phases/close.d.ts.map +1 -1
  215. package/dist/remediate/phases/close.js +15 -5
  216. package/dist/remediate/phases/close.js.map +1 -1
  217. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts +5 -0
  218. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
  219. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +37 -8
  220. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
  221. package/dist/remediate/state/types.d.ts +619 -26
  222. package/dist/remediate/state/types.d.ts.map +1 -1
  223. package/dist/remediate/state/types.js +2 -1
  224. package/dist/remediate/state/types.js.map +1 -1
  225. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
  226. package/dist/remediate/steps/contractPipeline.js +2 -0
  227. package/dist/remediate/steps/contractPipeline.js.map +1 -1
  228. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
  229. package/dist/remediate/steps/contractPipelinePrompts.js +2 -0
  230. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
  231. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +3 -3
  232. package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
  233. package/dist/remediate/steps/intakeResolver.js +31 -6
  234. package/dist/remediate/steps/intakeResolver.js.map +1 -1
  235. package/dist/remediate/steps/nextStep.d.ts.map +1 -1
  236. package/dist/remediate/steps/nextStep.js +31 -40
  237. package/dist/remediate/steps/nextStep.js.map +1 -1
  238. package/dist/remediate/steps/prompts.d.ts.map +1 -1
  239. package/dist/remediate/steps/prompts.js +3 -0
  240. package/dist/remediate/steps/prompts.js.map +1 -1
  241. package/dist/shared/analyzers/types.d.ts +18 -18
  242. package/dist/shared/contentKey.d.ts +1 -1
  243. package/dist/shared/contentKey.js +1 -1
  244. package/dist/shared/decompose/charterClarification.d.ts +4 -4
  245. package/dist/shared/decompose/charterExtraction.d.ts +30 -30
  246. package/dist/shared/decompose/contentCoherence.d.ts +1 -1
  247. package/dist/shared/decompose/contentCoherence.js +1 -1
  248. package/dist/shared/decompose/systemicChallenge.d.ts +629 -18
  249. package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
  250. package/dist/shared/engine/obligationEngine.d.ts +2 -2
  251. package/dist/shared/index.d.ts +2 -0
  252. package/dist/shared/index.d.ts.map +1 -1
  253. package/dist/shared/index.js +2 -0
  254. package/dist/shared/index.js.map +1 -1
  255. package/dist/shared/io/stepContractWriter.js +1 -1
  256. package/dist/shared/io/stepContractWriter.js.map +1 -1
  257. package/dist/shared/loopCorePaths.d.ts.map +1 -1
  258. package/dist/shared/loopCorePaths.js +5 -2
  259. package/dist/shared/loopCorePaths.js.map +1 -1
  260. package/dist/shared/mcp/submitServer.d.ts +1 -0
  261. package/dist/shared/mcp/submitServer.d.ts.map +1 -1
  262. package/dist/shared/mcp/submitServer.js +1 -1
  263. package/dist/shared/mcp/submitServer.js.map +1 -1
  264. package/dist/shared/submission/hostResultOutcomes.js +1 -1
  265. package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
  266. package/dist/shared/tooling/exec.js +1 -1
  267. package/dist/shared/tooling/exec.js.map +1 -1
  268. package/dist/shared/types/charter.d.ts +38 -38
  269. package/dist/shared/types/contractPropertyShapes.d.ts.map +1 -1
  270. package/dist/shared/types/contractPropertyShapes.js +7 -0
  271. package/dist/shared/types/contractPropertyShapes.js.map +1 -1
  272. package/dist/shared/types/executionPlan.d.ts +88 -12
  273. package/dist/shared/types/executionPlan.d.ts.map +1 -1
  274. package/dist/shared/types/executionPlan.js +1 -0
  275. package/dist/shared/types/executionPlan.js.map +1 -1
  276. package/dist/shared/types/finding.d.ts +1721 -56
  277. package/dist/shared/types/finding.d.ts.map +1 -1
  278. package/dist/shared/types/finding.js +7 -10
  279. package/dist/shared/types/finding.js.map +1 -1
  280. package/dist/shared/types/findingVocabulary.d.ts +8 -0
  281. package/dist/shared/types/findingVocabulary.d.ts.map +1 -0
  282. package/dist/shared/types/findingVocabulary.js +13 -0
  283. package/dist/shared/types/findingVocabulary.js.map +1 -0
  284. package/dist/shared/types/intentCheckpoint.d.ts +8 -3
  285. package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
  286. package/dist/shared/types/intentCheckpoint.js +4 -3
  287. package/dist/shared/types/intentCheckpoint.js.map +1 -1
  288. package/dist/shared/types/questionReviewReport.d.ts +9912 -0
  289. package/dist/shared/types/questionReviewReport.d.ts.map +1 -0
  290. package/dist/shared/types/questionReviewReport.js +185 -0
  291. package/dist/shared/types/questionReviewReport.js.map +1 -0
  292. package/dist/shared/types/remediationOutcome.d.ts +1379 -148
  293. package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
  294. package/dist/shared/types/remediationOutcome.js +5 -0
  295. package/dist/shared/types/remediationOutcome.js.map +1 -1
  296. package/dist/shared/types/reviewIndependence.d.ts +24 -24
  297. package/dist/shared/types/reviewQuestion.d.ts +4359 -0
  298. package/dist/shared/types/reviewQuestion.d.ts.map +1 -0
  299. package/dist/shared/types/reviewQuestion.js +182 -0
  300. package/dist/shared/types/reviewQuestion.js.map +1 -0
  301. package/dist/shared/types/stepContract.js +1 -1
  302. package/dist/shared/types/stepContract.js.map +1 -1
  303. package/dist/shared/validation/designFindingGrounding.js +1 -1
  304. package/dist/shared/validation/designFindingGrounding.js.map +1 -1
  305. package/dist/shared/validation/findingsReport.d.ts.map +1 -1
  306. package/dist/shared/validation/findingsReport.js +19 -4
  307. package/dist/shared/validation/findingsReport.js.map +1 -1
  308. package/docs/audit-pkg/contracts.md +27 -56
  309. package/docs/audit-pkg/operator-guide.md +31 -17
  310. package/docs/audit-pkg/product.md +17 -23
  311. package/package.json +1 -1
  312. package/schemas/audit-code-v1alpha1.schema.json +0 -1
  313. package/schemas/review_submission.schema.json +514 -0
  314. package/scripts/postinstall.mjs +16 -9
  315. package/skills/audit-code/audit-code.prompt.md +7 -5
  316. package/wrapper/audit-code-wrapper-lib.mjs +1 -5
  317. package/wrapper/installer-verb-help.mjs +1 -1
  318. package/dist/audit/cli/explainTaskCommand.d.ts +0 -4
  319. package/dist/audit/cli/explainTaskCommand.d.ts.map +0 -1
  320. package/dist/audit/cli/explainTaskCommand.js +0 -45
  321. package/dist/audit/cli/explainTaskCommand.js.map +0 -1
  322. package/dist/audit/cli/ingestResultsCommand.d.ts +0 -2
  323. package/dist/audit/cli/ingestResultsCommand.d.ts.map +0 -1
  324. package/dist/audit/cli/ingestResultsCommand.js +0 -42
  325. package/dist/audit/cli/ingestResultsCommand.js.map +0 -1
  326. package/dist/audit/cli/requeueCommand.d.ts +0 -2
  327. package/dist/audit/cli/requeueCommand.d.ts.map +0 -1
  328. package/dist/audit/cli/requeueCommand.js +0 -12
  329. package/dist/audit/cli/requeueCommand.js.map +0 -1
  330. package/dist/audit/cli/semanticReviewStep.d.ts +0 -41
  331. package/dist/audit/cli/semanticReviewStep.d.ts.map +0 -1
  332. package/dist/audit/cli/semanticReviewStep.js +0 -185
  333. package/dist/audit/cli/semanticReviewStep.js.map +0 -1
  334. package/dist/audit/cli/unacceptResultsCommand.d.ts +0 -19
  335. package/dist/audit/cli/unacceptResultsCommand.d.ts.map +0 -1
  336. package/dist/audit/cli/unacceptResultsCommand.js +0 -52
  337. package/dist/audit/cli/unacceptResultsCommand.js.map +0 -1
  338. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts +0 -2
  339. package/dist/audit/cli/updateRuntimeValidationCommand.d.ts.map +0 -1
  340. package/dist/audit/cli/updateRuntimeValidationCommand.js +0 -18
  341. package/dist/audit/cli/updateRuntimeValidationCommand.js.map +0 -1
  342. package/dist/audit/cli/validateResultsCommand.d.ts +0 -13
  343. package/dist/audit/cli/validateResultsCommand.d.ts.map +0 -1
  344. package/dist/audit/cli/validateResultsCommand.js +0 -87
  345. package/dist/audit/cli/validateResultsCommand.js.map +0 -1
  346. package/dist/audit/cli/workerResult.d.ts +0 -2
  347. package/dist/audit/cli/workerResult.d.ts.map +0 -1
  348. package/dist/audit/cli/workerResult.js +0 -6
  349. package/dist/audit/cli/workerResult.js.map +0 -1
  350. package/dist/audit/orchestrator/coverageElementBaseline.d.ts +0 -54
  351. package/dist/audit/orchestrator/coverageElementBaseline.d.ts.map +0 -1
  352. package/dist/audit/orchestrator/coverageElementBaseline.js +0 -136
  353. package/dist/audit/orchestrator/coverageElementBaseline.js.map +0 -1
  354. package/dist/audit/orchestrator/planning.d.ts +0 -5
  355. package/dist/audit/orchestrator/planning.d.ts.map +0 -1
  356. package/dist/audit/orchestrator/planning.js +0 -79
  357. package/dist/audit/orchestrator/planning.js.map +0 -1
  358. package/dist/audit/orchestrator/planningExecutors.d.ts +0 -21
  359. package/dist/audit/orchestrator/planningExecutors.d.ts.map +0 -1
  360. package/dist/audit/orchestrator/planningExecutors.js +0 -273
  361. package/dist/audit/orchestrator/planningExecutors.js.map +0 -1
  362. package/dist/audit/orchestrator/taskBuilder.d.ts +0 -62
  363. package/dist/audit/orchestrator/taskBuilder.d.ts.map +0 -1
  364. package/dist/audit/orchestrator/taskBuilder.js +0 -412
  365. package/dist/audit/orchestrator/taskBuilder.js.map +0 -1
  366. package/dist/audit/orchestrator/trivialAudit.d.ts +0 -21
  367. package/dist/audit/orchestrator/trivialAudit.d.ts.map +0 -1
  368. package/dist/audit/orchestrator/trivialAudit.js +0 -80
  369. package/dist/audit/orchestrator/trivialAudit.js.map +0 -1
@@ -99,14 +99,14 @@ export declare const FinalGateReportSchema: z.ZodObject<{
99
99
  reason: z.ZodOptional<z.ZodString>;
100
100
  recorded_at: z.ZodOptional<z.ZodString>;
101
101
  }, "strict", z.ZodTypeAny, {
102
- outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
102
+ outcome: "executed" | "absent" | "scoped_out" | "disabled" | "history";
103
103
  passed: boolean | null;
104
104
  commands_run: number;
105
105
  scope?: string | undefined;
106
106
  reason?: string | undefined;
107
107
  recorded_at?: string | undefined;
108
108
  }, {
109
- outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
109
+ outcome: "executed" | "absent" | "scoped_out" | "disabled" | "history";
110
110
  passed: boolean | null;
111
111
  commands_run: number;
112
112
  scope?: string | undefined;
@@ -138,15 +138,15 @@ export declare const RecoveryMarkSchema: z.ZodObject<{
138
138
  recorded_at: z.ZodString;
139
139
  }, "strict", z.ZodTypeAny, {
140
140
  kind: "recovered_by_hand" | "accepted_via_recovery";
141
+ submission_id: string;
141
142
  lane: string;
142
143
  recorded_at: string;
143
- submission_id: string;
144
144
  issue_code?: string | undefined;
145
145
  }, {
146
146
  kind: "recovered_by_hand" | "accepted_via_recovery";
147
+ submission_id: string;
147
148
  lane: string;
148
149
  recorded_at: string;
149
- submission_id: string;
150
150
  issue_code?: string | undefined;
151
151
  }>;
152
152
  export type RecoveryMark = z.infer<typeof RecoveryMarkSchema>;
@@ -176,15 +176,15 @@ export declare const RunRecoverySchema: z.ZodObject<{
176
176
  recorded_at: z.ZodString;
177
177
  }, "strict", z.ZodTypeAny, {
178
178
  kind: "recovered_by_hand" | "accepted_via_recovery";
179
+ submission_id: string;
179
180
  lane: string;
180
181
  recorded_at: string;
181
- submission_id: string;
182
182
  issue_code?: string | undefined;
183
183
  }, {
184
184
  kind: "recovered_by_hand" | "accepted_via_recovery";
185
+ submission_id: string;
185
186
  lane: string;
186
187
  recorded_at: string;
187
- submission_id: string;
188
188
  issue_code?: string | undefined;
189
189
  }>, "many">;
190
190
  accepted_via_recovery: z.ZodArray<z.ZodObject<{
@@ -195,15 +195,15 @@ export declare const RunRecoverySchema: z.ZodObject<{
195
195
  recorded_at: z.ZodString;
196
196
  }, "strict", z.ZodTypeAny, {
197
197
  kind: "recovered_by_hand" | "accepted_via_recovery";
198
+ submission_id: string;
198
199
  lane: string;
199
200
  recorded_at: string;
200
- submission_id: string;
201
201
  issue_code?: string | undefined;
202
202
  }, {
203
203
  kind: "recovered_by_hand" | "accepted_via_recovery";
204
+ submission_id: string;
204
205
  lane: string;
205
206
  recorded_at: string;
206
- submission_id: string;
207
207
  issue_code?: string | undefined;
208
208
  }>, "many">;
209
209
  /** Ledger lines the close-phase read could not parse. See the writer. */
@@ -213,16 +213,16 @@ export declare const RunRecoverySchema: z.ZodObject<{
213
213
  }, "strict", z.ZodTypeAny, {
214
214
  recovered_by_hand: {
215
215
  kind: "recovered_by_hand" | "accepted_via_recovery";
216
+ submission_id: string;
216
217
  lane: string;
217
218
  recorded_at: string;
218
- submission_id: string;
219
219
  issue_code?: string | undefined;
220
220
  }[];
221
221
  accepted_via_recovery: {
222
222
  kind: "recovered_by_hand" | "accepted_via_recovery";
223
+ submission_id: string;
223
224
  lane: string;
224
225
  recorded_at: string;
225
- submission_id: string;
226
226
  issue_code?: string | undefined;
227
227
  }[];
228
228
  dropped_lines: number;
@@ -230,16 +230,16 @@ export declare const RunRecoverySchema: z.ZodObject<{
230
230
  }, {
231
231
  recovered_by_hand: {
232
232
  kind: "recovered_by_hand" | "accepted_via_recovery";
233
+ submission_id: string;
233
234
  lane: string;
234
235
  recorded_at: string;
235
- submission_id: string;
236
236
  issue_code?: string | undefined;
237
237
  }[];
238
238
  accepted_via_recovery: {
239
239
  kind: "recovered_by_hand" | "accepted_via_recovery";
240
+ submission_id: string;
240
241
  lane: string;
241
242
  recorded_at: string;
242
- submission_id: string;
243
243
  issue_code?: string | undefined;
244
244
  }[];
245
245
  dropped_lines: number;
@@ -276,6 +276,27 @@ export declare const MechanicalVerificationSchema: z.ZodObject<{
276
276
  reason?: string | undefined;
277
277
  }>;
278
278
  export type MechanicalVerification = z.infer<typeof MechanicalVerificationSchema>;
279
+ export declare const MechanicalObligationVerificationSchema: z.ZodObject<{
280
+ status: z.ZodEnum<["verified_mechanically", "lead_persists", "skipped"]>;
281
+ analyzer_id: z.ZodString;
282
+ reason: z.ZodOptional<z.ZodString>;
283
+ } & {
284
+ source_finding_id: z.ZodString;
285
+ obligation_id: z.ZodString;
286
+ }, "strict", z.ZodTypeAny, {
287
+ status: "verified_mechanically" | "lead_persists" | "skipped";
288
+ analyzer_id: string;
289
+ obligation_id: string;
290
+ source_finding_id: string;
291
+ reason?: string | undefined;
292
+ }, {
293
+ status: "verified_mechanically" | "lead_persists" | "skipped";
294
+ analyzer_id: string;
295
+ obligation_id: string;
296
+ source_finding_id: string;
297
+ reason?: string | undefined;
298
+ }>;
299
+ export type MechanicalObligationVerification = z.infer<typeof MechanicalObligationVerificationSchema>;
279
300
  export declare const RemediationOutcomeSchema: z.ZodObject<{
280
301
  finding_id: z.ZodString;
281
302
  finding: z.ZodOptional<z.ZodObject<{
@@ -416,6 +437,335 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
416
437
  contract_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
417
438
  verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
439
  targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
440
+ question_review_sources: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
441
+ question_id: z.ZodEffects<z.ZodString, string, string>;
442
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
443
+ finding_id: z.ZodEffects<z.ZodString, string, string>;
444
+ kind: z.ZodEnum<["confirmed_defect", "design_opportunity", "lead"]>;
445
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
446
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
447
+ claim: z.ZodString;
448
+ consequence: z.ZodString;
449
+ next_step: z.ZodString;
450
+ evidence_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
451
+ observation_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
452
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
453
+ path: z.ZodEffects<z.ZodString, string, string>;
454
+ symbol: z.ZodOptional<z.ZodString>;
455
+ start_line: z.ZodOptional<z.ZodNumber>;
456
+ end_line: z.ZodOptional<z.ZodNumber>;
457
+ }, "strict", z.ZodTypeAny, {
458
+ path: string;
459
+ symbol?: string | undefined;
460
+ start_line?: number | undefined;
461
+ end_line?: number | undefined;
462
+ }, {
463
+ path: string;
464
+ symbol?: string | undefined;
465
+ start_line?: number | undefined;
466
+ end_line?: number | undefined;
467
+ }>, {
468
+ path: string;
469
+ symbol?: string | undefined;
470
+ start_line?: number | undefined;
471
+ end_line?: number | undefined;
472
+ }, {
473
+ path: string;
474
+ symbol?: string | undefined;
475
+ start_line?: number | undefined;
476
+ end_line?: number | undefined;
477
+ }>, "many">;
478
+ verification: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
479
+ kind: z.ZodLiteral<"analyzer">;
480
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
481
+ provenance: z.ZodObject<{
482
+ analyzer_id: z.ZodString;
483
+ rule: z.ZodOptional<z.ZodString>;
484
+ path: z.ZodString;
485
+ snippet_hash: z.ZodString;
486
+ }, "strict", z.ZodTypeAny, {
487
+ path: string;
488
+ analyzer_id: string;
489
+ snippet_hash: string;
490
+ rule?: string | undefined;
491
+ }, {
492
+ path: string;
493
+ analyzer_id: string;
494
+ snippet_hash: string;
495
+ rule?: string | undefined;
496
+ }>;
497
+ }, "strict", z.ZodTypeAny, {
498
+ kind: "analyzer";
499
+ obligation_id: string;
500
+ provenance: {
501
+ path: string;
502
+ analyzer_id: string;
503
+ snippet_hash: string;
504
+ rule?: string | undefined;
505
+ };
506
+ }, {
507
+ kind: "analyzer";
508
+ obligation_id: string;
509
+ provenance: {
510
+ path: string;
511
+ analyzer_id: string;
512
+ snippet_hash: string;
513
+ rule?: string | undefined;
514
+ };
515
+ }>, z.ZodObject<{
516
+ kind: z.ZodLiteral<"assertion">;
517
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
518
+ expected: z.ZodString;
519
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
520
+ path: z.ZodEffects<z.ZodString, string, string>;
521
+ symbol: z.ZodOptional<z.ZodString>;
522
+ start_line: z.ZodOptional<z.ZodNumber>;
523
+ end_line: z.ZodOptional<z.ZodNumber>;
524
+ }, "strict", z.ZodTypeAny, {
525
+ path: string;
526
+ symbol?: string | undefined;
527
+ start_line?: number | undefined;
528
+ end_line?: number | undefined;
529
+ }, {
530
+ path: string;
531
+ symbol?: string | undefined;
532
+ start_line?: number | undefined;
533
+ end_line?: number | undefined;
534
+ }>, {
535
+ path: string;
536
+ symbol?: string | undefined;
537
+ start_line?: number | undefined;
538
+ end_line?: number | undefined;
539
+ }, {
540
+ path: string;
541
+ symbol?: string | undefined;
542
+ start_line?: number | undefined;
543
+ end_line?: number | undefined;
544
+ }>, "many">;
545
+ }, "strict", z.ZodTypeAny, {
546
+ expected: string;
547
+ kind: "assertion";
548
+ source_refs: {
549
+ path: string;
550
+ symbol?: string | undefined;
551
+ start_line?: number | undefined;
552
+ end_line?: number | undefined;
553
+ }[];
554
+ obligation_id: string;
555
+ }, {
556
+ expected: string;
557
+ kind: "assertion";
558
+ source_refs: {
559
+ path: string;
560
+ symbol?: string | undefined;
561
+ start_line?: number | undefined;
562
+ end_line?: number | undefined;
563
+ }[];
564
+ obligation_id: string;
565
+ }>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"disposition">;
567
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
568
+ disposition: z.ZodEnum<["implemented", "deferred", "rejected", "already_fixed", "out_of_scope"]>;
569
+ reason: z.ZodString;
570
+ }, "strict", z.ZodTypeAny, {
571
+ reason: string;
572
+ kind: "disposition";
573
+ obligation_id: string;
574
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
575
+ }, {
576
+ reason: string;
577
+ kind: "disposition";
578
+ obligation_id: string;
579
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
580
+ }>]>, "many">;
581
+ purpose: z.ZodOptional<z.ZodString>;
582
+ divergence: z.ZodOptional<z.ZodString>;
583
+ schema_version: z.ZodLiteral<"audit-tools/question-review/v1">;
584
+ }, "strict", z.ZodTypeAny, {
585
+ confidence: "high" | "low" | "medium";
586
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
587
+ source_refs: {
588
+ path: string;
589
+ symbol?: string | undefined;
590
+ start_line?: number | undefined;
591
+ end_line?: number | undefined;
592
+ }[];
593
+ question_id: string;
594
+ revision_id: string;
595
+ schema_version: "audit-tools/question-review/v1";
596
+ finding_id: string;
597
+ severity: "info" | "high" | "low" | "critical" | "medium";
598
+ claim: string;
599
+ consequence: string;
600
+ next_step: string;
601
+ evidence_ids: string[];
602
+ verification: ({
603
+ kind: "analyzer";
604
+ obligation_id: string;
605
+ provenance: {
606
+ path: string;
607
+ analyzer_id: string;
608
+ snippet_hash: string;
609
+ rule?: string | undefined;
610
+ };
611
+ } | {
612
+ expected: string;
613
+ kind: "assertion";
614
+ source_refs: {
615
+ path: string;
616
+ symbol?: string | undefined;
617
+ start_line?: number | undefined;
618
+ end_line?: number | undefined;
619
+ }[];
620
+ obligation_id: string;
621
+ } | {
622
+ reason: string;
623
+ kind: "disposition";
624
+ obligation_id: string;
625
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
626
+ })[];
627
+ observation_ids?: string[] | undefined;
628
+ purpose?: string | undefined;
629
+ divergence?: string | undefined;
630
+ }, {
631
+ confidence: "high" | "low" | "medium";
632
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
633
+ source_refs: {
634
+ path: string;
635
+ symbol?: string | undefined;
636
+ start_line?: number | undefined;
637
+ end_line?: number | undefined;
638
+ }[];
639
+ question_id: string;
640
+ revision_id: string;
641
+ schema_version: "audit-tools/question-review/v1";
642
+ finding_id: string;
643
+ severity: "info" | "high" | "low" | "critical" | "medium";
644
+ claim: string;
645
+ consequence: string;
646
+ next_step: string;
647
+ evidence_ids: string[];
648
+ verification: ({
649
+ kind: "analyzer";
650
+ obligation_id: string;
651
+ provenance: {
652
+ path: string;
653
+ analyzer_id: string;
654
+ snippet_hash: string;
655
+ rule?: string | undefined;
656
+ };
657
+ } | {
658
+ expected: string;
659
+ kind: "assertion";
660
+ source_refs: {
661
+ path: string;
662
+ symbol?: string | undefined;
663
+ start_line?: number | undefined;
664
+ end_line?: number | undefined;
665
+ }[];
666
+ obligation_id: string;
667
+ } | {
668
+ reason: string;
669
+ kind: "disposition";
670
+ obligation_id: string;
671
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
672
+ })[];
673
+ observation_ids?: string[] | undefined;
674
+ purpose?: string | undefined;
675
+ divergence?: string | undefined;
676
+ }>, {
677
+ confidence: "high" | "low" | "medium";
678
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
679
+ source_refs: {
680
+ path: string;
681
+ symbol?: string | undefined;
682
+ start_line?: number | undefined;
683
+ end_line?: number | undefined;
684
+ }[];
685
+ question_id: string;
686
+ revision_id: string;
687
+ schema_version: "audit-tools/question-review/v1";
688
+ finding_id: string;
689
+ severity: "info" | "high" | "low" | "critical" | "medium";
690
+ claim: string;
691
+ consequence: string;
692
+ next_step: string;
693
+ evidence_ids: string[];
694
+ verification: ({
695
+ kind: "analyzer";
696
+ obligation_id: string;
697
+ provenance: {
698
+ path: string;
699
+ analyzer_id: string;
700
+ snippet_hash: string;
701
+ rule?: string | undefined;
702
+ };
703
+ } | {
704
+ expected: string;
705
+ kind: "assertion";
706
+ source_refs: {
707
+ path: string;
708
+ symbol?: string | undefined;
709
+ start_line?: number | undefined;
710
+ end_line?: number | undefined;
711
+ }[];
712
+ obligation_id: string;
713
+ } | {
714
+ reason: string;
715
+ kind: "disposition";
716
+ obligation_id: string;
717
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
718
+ })[];
719
+ observation_ids?: string[] | undefined;
720
+ purpose?: string | undefined;
721
+ divergence?: string | undefined;
722
+ }, {
723
+ confidence: "high" | "low" | "medium";
724
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
725
+ source_refs: {
726
+ path: string;
727
+ symbol?: string | undefined;
728
+ start_line?: number | undefined;
729
+ end_line?: number | undefined;
730
+ }[];
731
+ question_id: string;
732
+ revision_id: string;
733
+ schema_version: "audit-tools/question-review/v1";
734
+ finding_id: string;
735
+ severity: "info" | "high" | "low" | "critical" | "medium";
736
+ claim: string;
737
+ consequence: string;
738
+ next_step: string;
739
+ evidence_ids: string[];
740
+ verification: ({
741
+ kind: "analyzer";
742
+ obligation_id: string;
743
+ provenance: {
744
+ path: string;
745
+ analyzer_id: string;
746
+ snippet_hash: string;
747
+ rule?: string | undefined;
748
+ };
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
+ } | {
760
+ reason: string;
761
+ kind: "disposition";
762
+ obligation_id: string;
763
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
764
+ })[];
765
+ observation_ids?: string[] | undefined;
766
+ purpose?: string | undefined;
767
+ divergence?: string | undefined;
768
+ }>, "many">>;
419
769
  analyzer_provenance: z.ZodOptional<z.ZodObject<{
420
770
  analyzer_id: z.ZodString;
421
771
  rule: z.ZodOptional<z.ZodString>;
@@ -449,9 +799,9 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
449
799
  id: string;
450
800
  confidence: "high" | "low" | "medium";
451
801
  title: string;
452
- category: string;
453
- severity: "info" | "high" | "low" | "critical" | "medium";
454
802
  lens: string;
803
+ severity: "info" | "high" | "low" | "critical" | "medium";
804
+ category: string;
455
805
  summary: string;
456
806
  affected_files: {
457
807
  path: string;
@@ -462,10 +812,10 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
462
812
  no_quotable_span?: string | undefined;
463
813
  hash_at_plan_time?: string | undefined;
464
814
  }[];
815
+ evidence?: string[] | undefined;
465
816
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
466
817
  impact?: string | undefined;
467
818
  likelihood?: string | undefined;
468
- evidence?: string[] | undefined;
469
819
  reproduction?: string[] | undefined;
470
820
  systemic?: boolean | undefined;
471
821
  related_findings?: string[] | undefined;
@@ -497,6 +847,53 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
497
847
  contract_obligation_ids?: string[] | undefined;
498
848
  verification_obligation_ids?: string[] | undefined;
499
849
  targeted_commands?: string[] | undefined;
850
+ question_review_sources?: {
851
+ confidence: "high" | "low" | "medium";
852
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
853
+ source_refs: {
854
+ path: string;
855
+ symbol?: string | undefined;
856
+ start_line?: number | undefined;
857
+ end_line?: number | undefined;
858
+ }[];
859
+ question_id: string;
860
+ revision_id: string;
861
+ schema_version: "audit-tools/question-review/v1";
862
+ finding_id: string;
863
+ severity: "info" | "high" | "low" | "critical" | "medium";
864
+ claim: string;
865
+ consequence: string;
866
+ next_step: string;
867
+ evidence_ids: string[];
868
+ verification: ({
869
+ kind: "analyzer";
870
+ obligation_id: string;
871
+ provenance: {
872
+ path: string;
873
+ analyzer_id: string;
874
+ snippet_hash: string;
875
+ rule?: string | undefined;
876
+ };
877
+ } | {
878
+ expected: string;
879
+ kind: "assertion";
880
+ source_refs: {
881
+ path: string;
882
+ symbol?: string | undefined;
883
+ start_line?: number | undefined;
884
+ end_line?: number | undefined;
885
+ }[];
886
+ obligation_id: string;
887
+ } | {
888
+ reason: string;
889
+ kind: "disposition";
890
+ obligation_id: string;
891
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
892
+ })[];
893
+ observation_ids?: string[] | undefined;
894
+ purpose?: string | undefined;
895
+ divergence?: string | undefined;
896
+ }[] | undefined;
500
897
  analyzer_provenance?: {
501
898
  path: string;
502
899
  analyzer_id: string;
@@ -512,9 +909,9 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
512
909
  id: string;
513
910
  confidence: "high" | "low" | "medium";
514
911
  title: string;
515
- category: string;
516
- severity: "info" | "high" | "low" | "critical" | "medium";
517
912
  lens: string;
913
+ severity: "info" | "high" | "low" | "critical" | "medium";
914
+ category: string;
518
915
  summary: string;
519
916
  affected_files: {
520
917
  path: string;
@@ -525,10 +922,10 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
525
922
  no_quotable_span?: string | undefined;
526
923
  hash_at_plan_time?: string | undefined;
527
924
  }[];
925
+ evidence?: string[] | undefined;
528
926
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
529
927
  impact?: string | undefined;
530
928
  likelihood?: string | undefined;
531
- evidence?: string[] | undefined;
532
929
  reproduction?: string[] | undefined;
533
930
  systemic?: boolean | undefined;
534
931
  related_findings?: string[] | undefined;
@@ -560,6 +957,53 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
560
957
  contract_obligation_ids?: string[] | undefined;
561
958
  verification_obligation_ids?: string[] | undefined;
562
959
  targeted_commands?: string[] | undefined;
960
+ question_review_sources?: {
961
+ confidence: "high" | "low" | "medium";
962
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
963
+ source_refs: {
964
+ path: string;
965
+ symbol?: string | undefined;
966
+ start_line?: number | undefined;
967
+ end_line?: number | undefined;
968
+ }[];
969
+ question_id: string;
970
+ revision_id: string;
971
+ schema_version: "audit-tools/question-review/v1";
972
+ finding_id: string;
973
+ severity: "info" | "high" | "low" | "critical" | "medium";
974
+ claim: string;
975
+ consequence: string;
976
+ next_step: string;
977
+ evidence_ids: string[];
978
+ verification: ({
979
+ kind: "analyzer";
980
+ obligation_id: string;
981
+ provenance: {
982
+ path: string;
983
+ analyzer_id: string;
984
+ snippet_hash: string;
985
+ rule?: string | undefined;
986
+ };
987
+ } | {
988
+ expected: string;
989
+ kind: "assertion";
990
+ source_refs: {
991
+ path: string;
992
+ symbol?: string | undefined;
993
+ start_line?: number | undefined;
994
+ end_line?: number | undefined;
995
+ }[];
996
+ obligation_id: string;
997
+ } | {
998
+ reason: string;
999
+ kind: "disposition";
1000
+ obligation_id: string;
1001
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
1002
+ })[];
1003
+ observation_ids?: string[] | undefined;
1004
+ purpose?: string | undefined;
1005
+ divergence?: string | undefined;
1006
+ }[] | undefined;
563
1007
  analyzer_provenance?: {
564
1008
  path: string;
565
1009
  analyzer_id: string;
@@ -585,17 +1029,17 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
585
1029
  reason: z.ZodString;
586
1030
  }, "strict", z.ZodTypeAny, {
587
1031
  reason: string;
588
- mode: "degraded" | "independent" | "unavailable";
1032
+ mode: "degraded" | "unavailable" | "independent";
589
1033
  }, {
590
1034
  reason: string;
591
- mode: "degraded" | "independent" | "unavailable";
1035
+ mode: "degraded" | "unavailable" | "independent";
592
1036
  }>;
593
1037
  summary: z.ZodString;
594
1038
  }, "strict", z.ZodTypeAny, {
595
1039
  summary: string;
596
1040
  review: {
597
1041
  reason: string;
598
- mode: "degraded" | "independent" | "unavailable";
1042
+ mode: "degraded" | "unavailable" | "independent";
599
1043
  };
600
1044
  requirement: "independent";
601
1045
  binding: string;
@@ -603,7 +1047,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
603
1047
  summary: string;
604
1048
  review: {
605
1049
  reason: string;
606
- mode: "degraded" | "independent" | "unavailable";
1050
+ mode: "degraded" | "unavailable" | "independent";
607
1051
  };
608
1052
  requirement: "independent";
609
1053
  binding: string;
@@ -611,7 +1055,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
611
1055
  summary: string;
612
1056
  review: {
613
1057
  reason: string;
614
- mode: "degraded" | "independent" | "unavailable";
1058
+ mode: "degraded" | "unavailable" | "independent";
615
1059
  };
616
1060
  requirement: "independent";
617
1061
  binding: string;
@@ -619,7 +1063,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
619
1063
  summary: string;
620
1064
  review: {
621
1065
  reason: string;
622
- mode: "degraded" | "independent" | "unavailable";
1066
+ mode: "degraded" | "unavailable" | "independent";
623
1067
  };
624
1068
  requirement: "independent";
625
1069
  binding: string;
@@ -661,6 +1105,26 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
661
1105
  analyzer_id: string;
662
1106
  reason?: string | undefined;
663
1107
  }>>;
1108
+ mechanical_obligation_verifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
1109
+ status: z.ZodEnum<["verified_mechanically", "lead_persists", "skipped"]>;
1110
+ analyzer_id: z.ZodString;
1111
+ reason: z.ZodOptional<z.ZodString>;
1112
+ } & {
1113
+ source_finding_id: z.ZodString;
1114
+ obligation_id: z.ZodString;
1115
+ }, "strict", z.ZodTypeAny, {
1116
+ status: "verified_mechanically" | "lead_persists" | "skipped";
1117
+ analyzer_id: string;
1118
+ obligation_id: string;
1119
+ source_finding_id: string;
1120
+ reason?: string | undefined;
1121
+ }, {
1122
+ status: "verified_mechanically" | "lead_persists" | "skipped";
1123
+ analyzer_id: string;
1124
+ obligation_id: string;
1125
+ source_finding_id: string;
1126
+ reason?: string | undefined;
1127
+ }>, "many">>;
664
1128
  /**
665
1129
  * The per-finding verification-evidence triple (INV-ISC-EVIDENCE-EMITTED).
666
1130
  * Optional at the schema level — a non-terminal (force-closed/blocked)
@@ -694,7 +1158,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
694
1158
  */
695
1159
  recorded_by_module: z.ZodOptional<z.ZodString>;
696
1160
  }, "strict", z.ZodTypeAny, {
697
- outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
1161
+ outcome: "deferred" | "pending" | "blocked" | "resolved" | "refuted" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
698
1162
  lens: string;
699
1163
  finding_id: string;
700
1164
  file_exts: string[];
@@ -712,7 +1176,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
712
1176
  summary: string;
713
1177
  review: {
714
1178
  reason: string;
715
- mode: "degraded" | "independent" | "unavailable";
1179
+ mode: "degraded" | "unavailable" | "independent";
716
1180
  };
717
1181
  requirement: "independent";
718
1182
  binding: string;
@@ -722,9 +1186,9 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
722
1186
  id: string;
723
1187
  confidence: "high" | "low" | "medium";
724
1188
  title: string;
725
- category: string;
726
- severity: "info" | "high" | "low" | "critical" | "medium";
727
1189
  lens: string;
1190
+ severity: "info" | "high" | "low" | "critical" | "medium";
1191
+ category: string;
728
1192
  summary: string;
729
1193
  affected_files: {
730
1194
  path: string;
@@ -735,10 +1199,10 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
735
1199
  no_quotable_span?: string | undefined;
736
1200
  hash_at_plan_time?: string | undefined;
737
1201
  }[];
1202
+ evidence?: string[] | undefined;
738
1203
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
739
1204
  impact?: string | undefined;
740
1205
  likelihood?: string | undefined;
741
- evidence?: string[] | undefined;
742
1206
  reproduction?: string[] | undefined;
743
1207
  systemic?: boolean | undefined;
744
1208
  related_findings?: string[] | undefined;
@@ -770,6 +1234,53 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
770
1234
  contract_obligation_ids?: string[] | undefined;
771
1235
  verification_obligation_ids?: string[] | undefined;
772
1236
  targeted_commands?: string[] | undefined;
1237
+ question_review_sources?: {
1238
+ confidence: "high" | "low" | "medium";
1239
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
1240
+ source_refs: {
1241
+ path: string;
1242
+ symbol?: string | undefined;
1243
+ start_line?: number | undefined;
1244
+ end_line?: number | undefined;
1245
+ }[];
1246
+ question_id: string;
1247
+ revision_id: string;
1248
+ schema_version: "audit-tools/question-review/v1";
1249
+ finding_id: string;
1250
+ severity: "info" | "high" | "low" | "critical" | "medium";
1251
+ claim: string;
1252
+ consequence: string;
1253
+ next_step: string;
1254
+ evidence_ids: string[];
1255
+ verification: ({
1256
+ kind: "analyzer";
1257
+ obligation_id: string;
1258
+ provenance: {
1259
+ path: string;
1260
+ analyzer_id: string;
1261
+ snippet_hash: string;
1262
+ rule?: string | undefined;
1263
+ };
1264
+ } | {
1265
+ expected: string;
1266
+ kind: "assertion";
1267
+ source_refs: {
1268
+ path: string;
1269
+ symbol?: string | undefined;
1270
+ start_line?: number | undefined;
1271
+ end_line?: number | undefined;
1272
+ }[];
1273
+ obligation_id: string;
1274
+ } | {
1275
+ reason: string;
1276
+ kind: "disposition";
1277
+ obligation_id: string;
1278
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
1279
+ })[];
1280
+ observation_ids?: string[] | undefined;
1281
+ purpose?: string | undefined;
1282
+ divergence?: string | undefined;
1283
+ }[] | undefined;
773
1284
  analyzer_provenance?: {
774
1285
  path: string;
775
1286
  analyzer_id: string;
@@ -784,7 +1295,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
784
1295
  } | undefined;
785
1296
  unit_dependencies?: string[] | undefined;
786
1297
  unit_statuses?: Record<string, string> | undefined;
787
- final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
1298
+ final_status?: "fixed" | "deferred" | "pending" | "ignored" | "skipped" | "failed" | undefined;
788
1299
  original_state?: string | undefined;
789
1300
  closing_status_reason?: string | undefined;
790
1301
  started_at?: string | undefined;
@@ -794,9 +1305,16 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
794
1305
  analyzer_id: string;
795
1306
  reason?: string | undefined;
796
1307
  } | undefined;
1308
+ mechanical_obligation_verifications?: {
1309
+ status: "verified_mechanically" | "lead_persists" | "skipped";
1310
+ analyzer_id: string;
1311
+ obligation_id: string;
1312
+ source_finding_id: string;
1313
+ reason?: string | undefined;
1314
+ }[] | undefined;
797
1315
  recorded_by_module?: string | undefined;
798
1316
  }, {
799
- outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
1317
+ outcome: "deferred" | "pending" | "blocked" | "resolved" | "refuted" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
800
1318
  lens: string;
801
1319
  finding_id: string;
802
1320
  file_exts: string[];
@@ -814,7 +1332,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
814
1332
  summary: string;
815
1333
  review: {
816
1334
  reason: string;
817
- mode: "degraded" | "independent" | "unavailable";
1335
+ mode: "degraded" | "unavailable" | "independent";
818
1336
  };
819
1337
  requirement: "independent";
820
1338
  binding: string;
@@ -824,9 +1342,9 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
824
1342
  id: string;
825
1343
  confidence: "high" | "low" | "medium";
826
1344
  title: string;
827
- category: string;
828
- severity: "info" | "high" | "low" | "critical" | "medium";
829
1345
  lens: string;
1346
+ severity: "info" | "high" | "low" | "critical" | "medium";
1347
+ category: string;
830
1348
  summary: string;
831
1349
  affected_files: {
832
1350
  path: string;
@@ -837,10 +1355,10 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
837
1355
  no_quotable_span?: string | undefined;
838
1356
  hash_at_plan_time?: string | undefined;
839
1357
  }[];
1358
+ evidence?: string[] | undefined;
840
1359
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
841
1360
  impact?: string | undefined;
842
1361
  likelihood?: string | undefined;
843
- evidence?: string[] | undefined;
844
1362
  reproduction?: string[] | undefined;
845
1363
  systemic?: boolean | undefined;
846
1364
  related_findings?: string[] | undefined;
@@ -872,6 +1390,53 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
872
1390
  contract_obligation_ids?: string[] | undefined;
873
1391
  verification_obligation_ids?: string[] | undefined;
874
1392
  targeted_commands?: string[] | undefined;
1393
+ question_review_sources?: {
1394
+ confidence: "high" | "low" | "medium";
1395
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
1396
+ source_refs: {
1397
+ path: string;
1398
+ symbol?: string | undefined;
1399
+ start_line?: number | undefined;
1400
+ end_line?: number | undefined;
1401
+ }[];
1402
+ question_id: string;
1403
+ revision_id: string;
1404
+ schema_version: "audit-tools/question-review/v1";
1405
+ finding_id: string;
1406
+ severity: "info" | "high" | "low" | "critical" | "medium";
1407
+ claim: string;
1408
+ consequence: string;
1409
+ next_step: string;
1410
+ evidence_ids: string[];
1411
+ verification: ({
1412
+ kind: "analyzer";
1413
+ obligation_id: string;
1414
+ provenance: {
1415
+ path: string;
1416
+ analyzer_id: string;
1417
+ snippet_hash: string;
1418
+ rule?: string | undefined;
1419
+ };
1420
+ } | {
1421
+ expected: string;
1422
+ kind: "assertion";
1423
+ source_refs: {
1424
+ path: string;
1425
+ symbol?: string | undefined;
1426
+ start_line?: number | undefined;
1427
+ end_line?: number | undefined;
1428
+ }[];
1429
+ obligation_id: string;
1430
+ } | {
1431
+ reason: string;
1432
+ kind: "disposition";
1433
+ obligation_id: string;
1434
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
1435
+ })[];
1436
+ observation_ids?: string[] | undefined;
1437
+ purpose?: string | undefined;
1438
+ divergence?: string | undefined;
1439
+ }[] | undefined;
875
1440
  analyzer_provenance?: {
876
1441
  path: string;
877
1442
  analyzer_id: string;
@@ -886,7 +1451,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
886
1451
  } | undefined;
887
1452
  unit_dependencies?: string[] | undefined;
888
1453
  unit_statuses?: Record<string, string> | undefined;
889
- final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
1454
+ final_status?: "fixed" | "deferred" | "pending" | "ignored" | "skipped" | "failed" | undefined;
890
1455
  original_state?: string | undefined;
891
1456
  closing_status_reason?: string | undefined;
892
1457
  started_at?: string | undefined;
@@ -896,6 +1461,13 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
896
1461
  analyzer_id: string;
897
1462
  reason?: string | undefined;
898
1463
  } | undefined;
1464
+ mechanical_obligation_verifications?: {
1465
+ status: "verified_mechanically" | "lead_persists" | "skipped";
1466
+ analyzer_id: string;
1467
+ obligation_id: string;
1468
+ source_finding_id: string;
1469
+ reason?: string | undefined;
1470
+ }[] | undefined;
899
1471
  recorded_by_module?: string | undefined;
900
1472
  }>;
901
1473
  export type RemediationOutcome = z.infer<typeof RemediationOutcomeSchema>;
@@ -920,17 +1492,17 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
920
1492
  reason: z.ZodString;
921
1493
  }, "strict", z.ZodTypeAny, {
922
1494
  reason: string;
923
- mode: "degraded" | "independent" | "unavailable";
1495
+ mode: "degraded" | "unavailable" | "independent";
924
1496
  }, {
925
1497
  reason: string;
926
- mode: "degraded" | "independent" | "unavailable";
1498
+ mode: "degraded" | "unavailable" | "independent";
927
1499
  }>;
928
1500
  summary: z.ZodString;
929
1501
  }, "strict", z.ZodTypeAny, {
930
1502
  summary: string;
931
1503
  review: {
932
1504
  reason: string;
933
- mode: "degraded" | "independent" | "unavailable";
1505
+ mode: "degraded" | "unavailable" | "independent";
934
1506
  };
935
1507
  requirement: "independent";
936
1508
  binding: string;
@@ -938,7 +1510,7 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
938
1510
  summary: string;
939
1511
  review: {
940
1512
  reason: string;
941
- mode: "degraded" | "independent" | "unavailable";
1513
+ mode: "degraded" | "unavailable" | "independent";
942
1514
  };
943
1515
  requirement: "independent";
944
1516
  binding: string;
@@ -946,7 +1518,7 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
946
1518
  summary: string;
947
1519
  review: {
948
1520
  reason: string;
949
- mode: "degraded" | "independent" | "unavailable";
1521
+ mode: "degraded" | "unavailable" | "independent";
950
1522
  };
951
1523
  requirement: "independent";
952
1524
  binding: string;
@@ -954,7 +1526,7 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
954
1526
  summary: string;
955
1527
  review: {
956
1528
  reason: string;
957
- mode: "degraded" | "independent" | "unavailable";
1529
+ mode: "degraded" | "unavailable" | "independent";
958
1530
  };
959
1531
  requirement: "independent";
960
1532
  binding: string;
@@ -962,8 +1534,8 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
962
1534
  }, "strict", z.ZodTypeAny, {
963
1535
  status: string;
964
1536
  unit_id: string;
965
- title: string;
966
1537
  evidence: string[];
1538
+ title: string;
967
1539
  source_finding_ids: string[];
968
1540
  required_tests: string[];
969
1541
  rework_count: number;
@@ -972,7 +1544,7 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
972
1544
  summary: string;
973
1545
  review: {
974
1546
  reason: string;
975
- mode: "degraded" | "independent" | "unavailable";
1547
+ mode: "degraded" | "unavailable" | "independent";
976
1548
  };
977
1549
  requirement: "independent";
978
1550
  binding: string;
@@ -984,8 +1556,8 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
984
1556
  }, {
985
1557
  status: string;
986
1558
  unit_id: string;
987
- title: string;
988
1559
  evidence: string[];
1560
+ title: string;
989
1561
  source_finding_ids: string[];
990
1562
  required_tests: string[];
991
1563
  rework_count: number;
@@ -994,7 +1566,7 @@ export declare const ExecutionOutcomeSchema: z.ZodObject<{
994
1566
  summary: string;
995
1567
  review: {
996
1568
  reason: string;
997
- mode: "degraded" | "independent" | "unavailable";
1569
+ mode: "degraded" | "unavailable" | "independent";
998
1570
  };
999
1571
  requirement: "independent";
1000
1572
  binding: string;
@@ -1019,24 +1591,24 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1019
1591
  verified_already_fixed: z.ZodNumber;
1020
1592
  refuted: z.ZodNumber;
1021
1593
  }, "strict", z.ZodTypeAny, {
1022
- refuted: number;
1023
1594
  deferred: number;
1595
+ pending: number;
1596
+ blocked: number;
1024
1597
  resolved: number;
1598
+ refuted: number;
1025
1599
  verified_no_change: number;
1026
1600
  inappropriate: number;
1027
1601
  ignored: number;
1028
- blocked: number;
1029
- pending: number;
1030
1602
  verified_already_fixed: number;
1031
1603
  }, {
1032
- refuted: number;
1033
1604
  deferred: number;
1605
+ pending: number;
1606
+ blocked: number;
1034
1607
  resolved: number;
1608
+ refuted: number;
1035
1609
  verified_no_change: number;
1036
1610
  inappropriate: number;
1037
1611
  ignored: number;
1038
- blocked: number;
1039
- pending: number;
1040
1612
  verified_already_fixed: number;
1041
1613
  }>;
1042
1614
  by_lens: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1050,24 +1622,24 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1050
1622
  verified_already_fixed: z.ZodOptional<z.ZodNumber>;
1051
1623
  refuted: z.ZodOptional<z.ZodNumber>;
1052
1624
  }, "strict", z.ZodTypeAny, {
1053
- refuted?: number | undefined;
1054
1625
  deferred?: number | undefined;
1626
+ pending?: number | undefined;
1627
+ blocked?: number | undefined;
1055
1628
  resolved?: number | undefined;
1629
+ refuted?: number | undefined;
1056
1630
  verified_no_change?: number | undefined;
1057
1631
  inappropriate?: number | undefined;
1058
1632
  ignored?: number | undefined;
1059
- blocked?: number | undefined;
1060
- pending?: number | undefined;
1061
1633
  verified_already_fixed?: number | undefined;
1062
1634
  }, {
1063
- refuted?: number | undefined;
1064
1635
  deferred?: number | undefined;
1636
+ pending?: number | undefined;
1637
+ blocked?: number | undefined;
1065
1638
  resolved?: number | undefined;
1639
+ refuted?: number | undefined;
1066
1640
  verified_no_change?: number | undefined;
1067
1641
  inappropriate?: number | undefined;
1068
1642
  ignored?: number | undefined;
1069
- blocked?: number | undefined;
1070
- pending?: number | undefined;
1071
1643
  verified_already_fixed?: number | undefined;
1072
1644
  }>>;
1073
1645
  /** Earliest item started_at across all outcomes. */
@@ -1094,14 +1666,14 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1094
1666
  reason: z.ZodOptional<z.ZodString>;
1095
1667
  recorded_at: z.ZodOptional<z.ZodString>;
1096
1668
  }, "strict", z.ZodTypeAny, {
1097
- outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
1669
+ outcome: "executed" | "absent" | "scoped_out" | "disabled" | "history";
1098
1670
  passed: boolean | null;
1099
1671
  commands_run: number;
1100
1672
  scope?: string | undefined;
1101
1673
  reason?: string | undefined;
1102
1674
  recorded_at?: string | undefined;
1103
1675
  }, {
1104
- outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
1676
+ outcome: "executed" | "absent" | "scoped_out" | "disabled" | "history";
1105
1677
  passed: boolean | null;
1106
1678
  commands_run: number;
1107
1679
  scope?: string | undefined;
@@ -1123,15 +1695,15 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1123
1695
  recorded_at: z.ZodString;
1124
1696
  }, "strict", z.ZodTypeAny, {
1125
1697
  kind: "recovered_by_hand" | "accepted_via_recovery";
1698
+ submission_id: string;
1126
1699
  lane: string;
1127
1700
  recorded_at: string;
1128
- submission_id: string;
1129
1701
  issue_code?: string | undefined;
1130
1702
  }, {
1131
1703
  kind: "recovered_by_hand" | "accepted_via_recovery";
1704
+ submission_id: string;
1132
1705
  lane: string;
1133
1706
  recorded_at: string;
1134
- submission_id: string;
1135
1707
  issue_code?: string | undefined;
1136
1708
  }>, "many">;
1137
1709
  accepted_via_recovery: z.ZodArray<z.ZodObject<{
@@ -1142,15 +1714,15 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1142
1714
  recorded_at: z.ZodString;
1143
1715
  }, "strict", z.ZodTypeAny, {
1144
1716
  kind: "recovered_by_hand" | "accepted_via_recovery";
1717
+ submission_id: string;
1145
1718
  lane: string;
1146
1719
  recorded_at: string;
1147
- submission_id: string;
1148
1720
  issue_code?: string | undefined;
1149
1721
  }, {
1150
1722
  kind: "recovered_by_hand" | "accepted_via_recovery";
1723
+ submission_id: string;
1151
1724
  lane: string;
1152
1725
  recorded_at: string;
1153
- submission_id: string;
1154
1726
  issue_code?: string | undefined;
1155
1727
  }>, "many">;
1156
1728
  /** Ledger lines the close-phase read could not parse. See the writer. */
@@ -1160,16 +1732,16 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1160
1732
  }, "strict", z.ZodTypeAny, {
1161
1733
  recovered_by_hand: {
1162
1734
  kind: "recovered_by_hand" | "accepted_via_recovery";
1735
+ submission_id: string;
1163
1736
  lane: string;
1164
1737
  recorded_at: string;
1165
- submission_id: string;
1166
1738
  issue_code?: string | undefined;
1167
1739
  }[];
1168
1740
  accepted_via_recovery: {
1169
1741
  kind: "recovered_by_hand" | "accepted_via_recovery";
1742
+ submission_id: string;
1170
1743
  lane: string;
1171
1744
  recorded_at: string;
1172
- submission_id: string;
1173
1745
  issue_code?: string | undefined;
1174
1746
  }[];
1175
1747
  dropped_lines: number;
@@ -1177,16 +1749,16 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1177
1749
  }, {
1178
1750
  recovered_by_hand: {
1179
1751
  kind: "recovered_by_hand" | "accepted_via_recovery";
1752
+ submission_id: string;
1180
1753
  lane: string;
1181
1754
  recorded_at: string;
1182
- submission_id: string;
1183
1755
  issue_code?: string | undefined;
1184
1756
  }[];
1185
1757
  accepted_via_recovery: {
1186
1758
  kind: "recovered_by_hand" | "accepted_via_recovery";
1759
+ submission_id: string;
1187
1760
  lane: string;
1188
1761
  recorded_at: string;
1189
- submission_id: string;
1190
1762
  issue_code?: string | undefined;
1191
1763
  }[];
1192
1764
  dropped_lines: number;
@@ -1200,10 +1772,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1200
1772
  reason: z.ZodString;
1201
1773
  }, "strict", z.ZodTypeAny, {
1202
1774
  reason: string;
1203
- mode: "degraded" | "independent" | "unavailable";
1775
+ mode: "degraded" | "unavailable" | "independent";
1204
1776
  }, {
1205
1777
  reason: string;
1206
- mode: "degraded" | "independent" | "unavailable";
1778
+ mode: "degraded" | "unavailable" | "independent";
1207
1779
  }>;
1208
1780
  reviewed_content_hash: z.ZodString;
1209
1781
  } & {
@@ -1214,7 +1786,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1214
1786
  prompt_sha256: string;
1215
1787
  review: {
1216
1788
  reason: string;
1217
- mode: "degraded" | "independent" | "unavailable";
1789
+ mode: "degraded" | "unavailable" | "independent";
1218
1790
  };
1219
1791
  requirement: "ordinary" | "independent" | "degraded_allowed";
1220
1792
  reviewed_content_hash: string;
@@ -1224,7 +1796,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1224
1796
  prompt_sha256: string;
1225
1797
  review: {
1226
1798
  reason: string;
1227
- mode: "degraded" | "independent" | "unavailable";
1799
+ mode: "degraded" | "unavailable" | "independent";
1228
1800
  };
1229
1801
  requirement: "ordinary" | "independent" | "degraded_allowed";
1230
1802
  reviewed_content_hash: string;
@@ -1234,7 +1806,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1234
1806
  prompt_sha256: string;
1235
1807
  review: {
1236
1808
  reason: string;
1237
- mode: "degraded" | "independent" | "unavailable";
1809
+ mode: "degraded" | "unavailable" | "independent";
1238
1810
  };
1239
1811
  requirement: "ordinary" | "independent" | "degraded_allowed";
1240
1812
  reviewed_content_hash: string;
@@ -1244,7 +1816,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1244
1816
  prompt_sha256: string;
1245
1817
  review: {
1246
1818
  reason: string;
1247
- mode: "degraded" | "independent" | "unavailable";
1819
+ mode: "degraded" | "unavailable" | "independent";
1248
1820
  };
1249
1821
  requirement: "ordinary" | "independent" | "degraded_allowed";
1250
1822
  reviewed_content_hash: string;
@@ -1390,6 +1962,335 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1390
1962
  contract_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1391
1963
  verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1392
1964
  targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1965
+ question_review_sources: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1966
+ question_id: z.ZodEffects<z.ZodString, string, string>;
1967
+ revision_id: z.ZodEffects<z.ZodString, string, string>;
1968
+ finding_id: z.ZodEffects<z.ZodString, string, string>;
1969
+ kind: z.ZodEnum<["confirmed_defect", "design_opportunity", "lead"]>;
1970
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
1971
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
1972
+ claim: z.ZodString;
1973
+ consequence: z.ZodString;
1974
+ next_step: z.ZodString;
1975
+ evidence_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1976
+ observation_ids: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1977
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
1978
+ path: z.ZodEffects<z.ZodString, string, string>;
1979
+ symbol: z.ZodOptional<z.ZodString>;
1980
+ start_line: z.ZodOptional<z.ZodNumber>;
1981
+ end_line: z.ZodOptional<z.ZodNumber>;
1982
+ }, "strict", z.ZodTypeAny, {
1983
+ path: string;
1984
+ symbol?: string | undefined;
1985
+ start_line?: number | undefined;
1986
+ end_line?: number | undefined;
1987
+ }, {
1988
+ path: string;
1989
+ symbol?: string | undefined;
1990
+ start_line?: number | undefined;
1991
+ end_line?: number | undefined;
1992
+ }>, {
1993
+ path: string;
1994
+ symbol?: string | undefined;
1995
+ start_line?: number | undefined;
1996
+ end_line?: number | undefined;
1997
+ }, {
1998
+ path: string;
1999
+ symbol?: string | undefined;
2000
+ start_line?: number | undefined;
2001
+ end_line?: number | undefined;
2002
+ }>, "many">;
2003
+ verification: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2004
+ kind: z.ZodLiteral<"analyzer">;
2005
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2006
+ provenance: z.ZodObject<{
2007
+ analyzer_id: z.ZodString;
2008
+ rule: z.ZodOptional<z.ZodString>;
2009
+ path: z.ZodString;
2010
+ snippet_hash: z.ZodString;
2011
+ }, "strict", z.ZodTypeAny, {
2012
+ path: string;
2013
+ analyzer_id: string;
2014
+ snippet_hash: string;
2015
+ rule?: string | undefined;
2016
+ }, {
2017
+ path: string;
2018
+ analyzer_id: string;
2019
+ snippet_hash: string;
2020
+ rule?: string | undefined;
2021
+ }>;
2022
+ }, "strict", z.ZodTypeAny, {
2023
+ kind: "analyzer";
2024
+ obligation_id: string;
2025
+ provenance: {
2026
+ path: string;
2027
+ analyzer_id: string;
2028
+ snippet_hash: string;
2029
+ rule?: string | undefined;
2030
+ };
2031
+ }, {
2032
+ kind: "analyzer";
2033
+ obligation_id: string;
2034
+ provenance: {
2035
+ path: string;
2036
+ analyzer_id: string;
2037
+ snippet_hash: string;
2038
+ rule?: string | undefined;
2039
+ };
2040
+ }>, z.ZodObject<{
2041
+ kind: z.ZodLiteral<"assertion">;
2042
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2043
+ expected: z.ZodString;
2044
+ source_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
2045
+ path: z.ZodEffects<z.ZodString, string, string>;
2046
+ symbol: z.ZodOptional<z.ZodString>;
2047
+ start_line: z.ZodOptional<z.ZodNumber>;
2048
+ end_line: z.ZodOptional<z.ZodNumber>;
2049
+ }, "strict", z.ZodTypeAny, {
2050
+ path: string;
2051
+ symbol?: string | undefined;
2052
+ start_line?: number | undefined;
2053
+ end_line?: number | undefined;
2054
+ }, {
2055
+ path: string;
2056
+ symbol?: string | undefined;
2057
+ start_line?: number | undefined;
2058
+ end_line?: number | undefined;
2059
+ }>, {
2060
+ path: string;
2061
+ symbol?: string | undefined;
2062
+ start_line?: number | undefined;
2063
+ end_line?: number | undefined;
2064
+ }, {
2065
+ path: string;
2066
+ symbol?: string | undefined;
2067
+ start_line?: number | undefined;
2068
+ end_line?: number | undefined;
2069
+ }>, "many">;
2070
+ }, "strict", z.ZodTypeAny, {
2071
+ expected: string;
2072
+ kind: "assertion";
2073
+ source_refs: {
2074
+ path: string;
2075
+ symbol?: string | undefined;
2076
+ start_line?: number | undefined;
2077
+ end_line?: number | undefined;
2078
+ }[];
2079
+ obligation_id: string;
2080
+ }, {
2081
+ expected: string;
2082
+ kind: "assertion";
2083
+ source_refs: {
2084
+ path: string;
2085
+ symbol?: string | undefined;
2086
+ start_line?: number | undefined;
2087
+ end_line?: number | undefined;
2088
+ }[];
2089
+ obligation_id: string;
2090
+ }>, z.ZodObject<{
2091
+ kind: z.ZodLiteral<"disposition">;
2092
+ obligation_id: z.ZodEffects<z.ZodString, string, string>;
2093
+ disposition: z.ZodEnum<["implemented", "deferred", "rejected", "already_fixed", "out_of_scope"]>;
2094
+ reason: z.ZodString;
2095
+ }, "strict", z.ZodTypeAny, {
2096
+ reason: string;
2097
+ kind: "disposition";
2098
+ obligation_id: string;
2099
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2100
+ }, {
2101
+ reason: string;
2102
+ kind: "disposition";
2103
+ obligation_id: string;
2104
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2105
+ }>]>, "many">;
2106
+ purpose: z.ZodOptional<z.ZodString>;
2107
+ divergence: z.ZodOptional<z.ZodString>;
2108
+ schema_version: z.ZodLiteral<"audit-tools/question-review/v1">;
2109
+ }, "strict", z.ZodTypeAny, {
2110
+ confidence: "high" | "low" | "medium";
2111
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2112
+ source_refs: {
2113
+ path: string;
2114
+ symbol?: string | undefined;
2115
+ start_line?: number | undefined;
2116
+ end_line?: number | undefined;
2117
+ }[];
2118
+ question_id: string;
2119
+ revision_id: string;
2120
+ schema_version: "audit-tools/question-review/v1";
2121
+ finding_id: string;
2122
+ severity: "info" | "high" | "low" | "critical" | "medium";
2123
+ claim: string;
2124
+ consequence: string;
2125
+ next_step: string;
2126
+ evidence_ids: string[];
2127
+ verification: ({
2128
+ kind: "analyzer";
2129
+ obligation_id: string;
2130
+ provenance: {
2131
+ path: string;
2132
+ analyzer_id: string;
2133
+ snippet_hash: string;
2134
+ rule?: string | undefined;
2135
+ };
2136
+ } | {
2137
+ expected: string;
2138
+ kind: "assertion";
2139
+ source_refs: {
2140
+ path: string;
2141
+ symbol?: string | undefined;
2142
+ start_line?: number | undefined;
2143
+ end_line?: number | undefined;
2144
+ }[];
2145
+ obligation_id: string;
2146
+ } | {
2147
+ reason: string;
2148
+ kind: "disposition";
2149
+ obligation_id: string;
2150
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2151
+ })[];
2152
+ observation_ids?: string[] | undefined;
2153
+ purpose?: string | undefined;
2154
+ divergence?: string | undefined;
2155
+ }, {
2156
+ confidence: "high" | "low" | "medium";
2157
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2158
+ source_refs: {
2159
+ path: string;
2160
+ symbol?: string | undefined;
2161
+ start_line?: number | undefined;
2162
+ end_line?: number | undefined;
2163
+ }[];
2164
+ question_id: string;
2165
+ revision_id: string;
2166
+ schema_version: "audit-tools/question-review/v1";
2167
+ finding_id: string;
2168
+ severity: "info" | "high" | "low" | "critical" | "medium";
2169
+ claim: string;
2170
+ consequence: string;
2171
+ next_step: string;
2172
+ evidence_ids: string[];
2173
+ verification: ({
2174
+ kind: "analyzer";
2175
+ obligation_id: string;
2176
+ provenance: {
2177
+ path: string;
2178
+ analyzer_id: string;
2179
+ snippet_hash: string;
2180
+ rule?: string | undefined;
2181
+ };
2182
+ } | {
2183
+ expected: string;
2184
+ kind: "assertion";
2185
+ source_refs: {
2186
+ path: string;
2187
+ symbol?: string | undefined;
2188
+ start_line?: number | undefined;
2189
+ end_line?: number | undefined;
2190
+ }[];
2191
+ obligation_id: string;
2192
+ } | {
2193
+ reason: string;
2194
+ kind: "disposition";
2195
+ obligation_id: string;
2196
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2197
+ })[];
2198
+ observation_ids?: string[] | undefined;
2199
+ purpose?: string | undefined;
2200
+ divergence?: string | undefined;
2201
+ }>, {
2202
+ confidence: "high" | "low" | "medium";
2203
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2204
+ source_refs: {
2205
+ path: string;
2206
+ symbol?: string | undefined;
2207
+ start_line?: number | undefined;
2208
+ end_line?: number | undefined;
2209
+ }[];
2210
+ question_id: string;
2211
+ revision_id: string;
2212
+ schema_version: "audit-tools/question-review/v1";
2213
+ finding_id: string;
2214
+ severity: "info" | "high" | "low" | "critical" | "medium";
2215
+ claim: string;
2216
+ consequence: string;
2217
+ next_step: string;
2218
+ evidence_ids: string[];
2219
+ verification: ({
2220
+ kind: "analyzer";
2221
+ obligation_id: string;
2222
+ provenance: {
2223
+ path: string;
2224
+ analyzer_id: string;
2225
+ snippet_hash: string;
2226
+ rule?: string | undefined;
2227
+ };
2228
+ } | {
2229
+ expected: string;
2230
+ kind: "assertion";
2231
+ source_refs: {
2232
+ path: string;
2233
+ symbol?: string | undefined;
2234
+ start_line?: number | undefined;
2235
+ end_line?: number | undefined;
2236
+ }[];
2237
+ obligation_id: string;
2238
+ } | {
2239
+ reason: string;
2240
+ kind: "disposition";
2241
+ obligation_id: string;
2242
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2243
+ })[];
2244
+ observation_ids?: string[] | undefined;
2245
+ purpose?: string | undefined;
2246
+ divergence?: string | undefined;
2247
+ }, {
2248
+ confidence: "high" | "low" | "medium";
2249
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2250
+ source_refs: {
2251
+ path: string;
2252
+ symbol?: string | undefined;
2253
+ start_line?: number | undefined;
2254
+ end_line?: number | undefined;
2255
+ }[];
2256
+ question_id: string;
2257
+ revision_id: string;
2258
+ schema_version: "audit-tools/question-review/v1";
2259
+ finding_id: string;
2260
+ severity: "info" | "high" | "low" | "critical" | "medium";
2261
+ claim: string;
2262
+ consequence: string;
2263
+ next_step: string;
2264
+ evidence_ids: string[];
2265
+ verification: ({
2266
+ kind: "analyzer";
2267
+ obligation_id: string;
2268
+ provenance: {
2269
+ path: string;
2270
+ analyzer_id: string;
2271
+ snippet_hash: string;
2272
+ rule?: string | undefined;
2273
+ };
2274
+ } | {
2275
+ expected: string;
2276
+ kind: "assertion";
2277
+ source_refs: {
2278
+ path: string;
2279
+ symbol?: string | undefined;
2280
+ start_line?: number | undefined;
2281
+ end_line?: number | undefined;
2282
+ }[];
2283
+ obligation_id: string;
2284
+ } | {
2285
+ reason: string;
2286
+ kind: "disposition";
2287
+ obligation_id: string;
2288
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2289
+ })[];
2290
+ observation_ids?: string[] | undefined;
2291
+ purpose?: string | undefined;
2292
+ divergence?: string | undefined;
2293
+ }>, "many">>;
1393
2294
  analyzer_provenance: z.ZodOptional<z.ZodObject<{
1394
2295
  analyzer_id: z.ZodString;
1395
2296
  rule: z.ZodOptional<z.ZodString>;
@@ -1423,9 +2324,9 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1423
2324
  id: string;
1424
2325
  confidence: "high" | "low" | "medium";
1425
2326
  title: string;
1426
- category: string;
1427
- severity: "info" | "high" | "low" | "critical" | "medium";
1428
2327
  lens: string;
2328
+ severity: "info" | "high" | "low" | "critical" | "medium";
2329
+ category: string;
1429
2330
  summary: string;
1430
2331
  affected_files: {
1431
2332
  path: string;
@@ -1436,10 +2337,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1436
2337
  no_quotable_span?: string | undefined;
1437
2338
  hash_at_plan_time?: string | undefined;
1438
2339
  }[];
2340
+ evidence?: string[] | undefined;
1439
2341
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1440
2342
  impact?: string | undefined;
1441
2343
  likelihood?: string | undefined;
1442
- evidence?: string[] | undefined;
1443
2344
  reproduction?: string[] | undefined;
1444
2345
  systemic?: boolean | undefined;
1445
2346
  related_findings?: string[] | undefined;
@@ -1471,6 +2372,53 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1471
2372
  contract_obligation_ids?: string[] | undefined;
1472
2373
  verification_obligation_ids?: string[] | undefined;
1473
2374
  targeted_commands?: string[] | undefined;
2375
+ question_review_sources?: {
2376
+ confidence: "high" | "low" | "medium";
2377
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2378
+ source_refs: {
2379
+ path: string;
2380
+ symbol?: string | undefined;
2381
+ start_line?: number | undefined;
2382
+ end_line?: number | undefined;
2383
+ }[];
2384
+ question_id: string;
2385
+ revision_id: string;
2386
+ schema_version: "audit-tools/question-review/v1";
2387
+ finding_id: string;
2388
+ severity: "info" | "high" | "low" | "critical" | "medium";
2389
+ claim: string;
2390
+ consequence: string;
2391
+ next_step: string;
2392
+ evidence_ids: string[];
2393
+ verification: ({
2394
+ kind: "analyzer";
2395
+ obligation_id: string;
2396
+ provenance: {
2397
+ path: string;
2398
+ analyzer_id: string;
2399
+ snippet_hash: string;
2400
+ rule?: string | undefined;
2401
+ };
2402
+ } | {
2403
+ expected: string;
2404
+ kind: "assertion";
2405
+ source_refs: {
2406
+ path: string;
2407
+ symbol?: string | undefined;
2408
+ start_line?: number | undefined;
2409
+ end_line?: number | undefined;
2410
+ }[];
2411
+ obligation_id: string;
2412
+ } | {
2413
+ reason: string;
2414
+ kind: "disposition";
2415
+ obligation_id: string;
2416
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2417
+ })[];
2418
+ observation_ids?: string[] | undefined;
2419
+ purpose?: string | undefined;
2420
+ divergence?: string | undefined;
2421
+ }[] | undefined;
1474
2422
  analyzer_provenance?: {
1475
2423
  path: string;
1476
2424
  analyzer_id: string;
@@ -1486,9 +2434,9 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1486
2434
  id: string;
1487
2435
  confidence: "high" | "low" | "medium";
1488
2436
  title: string;
1489
- category: string;
1490
- severity: "info" | "high" | "low" | "critical" | "medium";
1491
2437
  lens: string;
2438
+ severity: "info" | "high" | "low" | "critical" | "medium";
2439
+ category: string;
1492
2440
  summary: string;
1493
2441
  affected_files: {
1494
2442
  path: string;
@@ -1499,10 +2447,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1499
2447
  no_quotable_span?: string | undefined;
1500
2448
  hash_at_plan_time?: string | undefined;
1501
2449
  }[];
2450
+ evidence?: string[] | undefined;
1502
2451
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1503
2452
  impact?: string | undefined;
1504
2453
  likelihood?: string | undefined;
1505
- evidence?: string[] | undefined;
1506
2454
  reproduction?: string[] | undefined;
1507
2455
  systemic?: boolean | undefined;
1508
2456
  related_findings?: string[] | undefined;
@@ -1534,6 +2482,53 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1534
2482
  contract_obligation_ids?: string[] | undefined;
1535
2483
  verification_obligation_ids?: string[] | undefined;
1536
2484
  targeted_commands?: string[] | undefined;
2485
+ question_review_sources?: {
2486
+ confidence: "high" | "low" | "medium";
2487
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2488
+ source_refs: {
2489
+ path: string;
2490
+ symbol?: string | undefined;
2491
+ start_line?: number | undefined;
2492
+ end_line?: number | undefined;
2493
+ }[];
2494
+ question_id: string;
2495
+ revision_id: string;
2496
+ schema_version: "audit-tools/question-review/v1";
2497
+ finding_id: string;
2498
+ severity: "info" | "high" | "low" | "critical" | "medium";
2499
+ claim: string;
2500
+ consequence: string;
2501
+ next_step: string;
2502
+ evidence_ids: string[];
2503
+ verification: ({
2504
+ kind: "analyzer";
2505
+ obligation_id: string;
2506
+ provenance: {
2507
+ path: string;
2508
+ analyzer_id: string;
2509
+ snippet_hash: string;
2510
+ rule?: string | undefined;
2511
+ };
2512
+ } | {
2513
+ expected: string;
2514
+ kind: "assertion";
2515
+ source_refs: {
2516
+ path: string;
2517
+ symbol?: string | undefined;
2518
+ start_line?: number | undefined;
2519
+ end_line?: number | undefined;
2520
+ }[];
2521
+ obligation_id: string;
2522
+ } | {
2523
+ reason: string;
2524
+ kind: "disposition";
2525
+ obligation_id: string;
2526
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2527
+ })[];
2528
+ observation_ids?: string[] | undefined;
2529
+ purpose?: string | undefined;
2530
+ divergence?: string | undefined;
2531
+ }[] | undefined;
1537
2532
  analyzer_provenance?: {
1538
2533
  path: string;
1539
2534
  analyzer_id: string;
@@ -1559,17 +2554,17 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1559
2554
  reason: z.ZodString;
1560
2555
  }, "strict", z.ZodTypeAny, {
1561
2556
  reason: string;
1562
- mode: "degraded" | "independent" | "unavailable";
2557
+ mode: "degraded" | "unavailable" | "independent";
1563
2558
  }, {
1564
2559
  reason: string;
1565
- mode: "degraded" | "independent" | "unavailable";
2560
+ mode: "degraded" | "unavailable" | "independent";
1566
2561
  }>;
1567
2562
  summary: z.ZodString;
1568
2563
  }, "strict", z.ZodTypeAny, {
1569
2564
  summary: string;
1570
2565
  review: {
1571
2566
  reason: string;
1572
- mode: "degraded" | "independent" | "unavailable";
2567
+ mode: "degraded" | "unavailable" | "independent";
1573
2568
  };
1574
2569
  requirement: "independent";
1575
2570
  binding: string;
@@ -1577,7 +2572,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1577
2572
  summary: string;
1578
2573
  review: {
1579
2574
  reason: string;
1580
- mode: "degraded" | "independent" | "unavailable";
2575
+ mode: "degraded" | "unavailable" | "independent";
1581
2576
  };
1582
2577
  requirement: "independent";
1583
2578
  binding: string;
@@ -1585,7 +2580,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1585
2580
  summary: string;
1586
2581
  review: {
1587
2582
  reason: string;
1588
- mode: "degraded" | "independent" | "unavailable";
2583
+ mode: "degraded" | "unavailable" | "independent";
1589
2584
  };
1590
2585
  requirement: "independent";
1591
2586
  binding: string;
@@ -1593,7 +2588,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1593
2588
  summary: string;
1594
2589
  review: {
1595
2590
  reason: string;
1596
- mode: "degraded" | "independent" | "unavailable";
2591
+ mode: "degraded" | "unavailable" | "independent";
1597
2592
  };
1598
2593
  requirement: "independent";
1599
2594
  binding: string;
@@ -1635,6 +2630,26 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1635
2630
  analyzer_id: string;
1636
2631
  reason?: string | undefined;
1637
2632
  }>>;
2633
+ mechanical_obligation_verifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
2634
+ status: z.ZodEnum<["verified_mechanically", "lead_persists", "skipped"]>;
2635
+ analyzer_id: z.ZodString;
2636
+ reason: z.ZodOptional<z.ZodString>;
2637
+ } & {
2638
+ source_finding_id: z.ZodString;
2639
+ obligation_id: z.ZodString;
2640
+ }, "strict", z.ZodTypeAny, {
2641
+ status: "verified_mechanically" | "lead_persists" | "skipped";
2642
+ analyzer_id: string;
2643
+ obligation_id: string;
2644
+ source_finding_id: string;
2645
+ reason?: string | undefined;
2646
+ }, {
2647
+ status: "verified_mechanically" | "lead_persists" | "skipped";
2648
+ analyzer_id: string;
2649
+ obligation_id: string;
2650
+ source_finding_id: string;
2651
+ reason?: string | undefined;
2652
+ }>, "many">>;
1638
2653
  /**
1639
2654
  * The per-finding verification-evidence triple (INV-ISC-EVIDENCE-EMITTED).
1640
2655
  * Optional at the schema level — a non-terminal (force-closed/blocked)
@@ -1668,7 +2683,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1668
2683
  */
1669
2684
  recorded_by_module: z.ZodOptional<z.ZodString>;
1670
2685
  }, "strict", z.ZodTypeAny, {
1671
- outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
2686
+ outcome: "deferred" | "pending" | "blocked" | "resolved" | "refuted" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
1672
2687
  lens: string;
1673
2688
  finding_id: string;
1674
2689
  file_exts: string[];
@@ -1686,7 +2701,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1686
2701
  summary: string;
1687
2702
  review: {
1688
2703
  reason: string;
1689
- mode: "degraded" | "independent" | "unavailable";
2704
+ mode: "degraded" | "unavailable" | "independent";
1690
2705
  };
1691
2706
  requirement: "independent";
1692
2707
  binding: string;
@@ -1696,9 +2711,9 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1696
2711
  id: string;
1697
2712
  confidence: "high" | "low" | "medium";
1698
2713
  title: string;
1699
- category: string;
1700
- severity: "info" | "high" | "low" | "critical" | "medium";
1701
2714
  lens: string;
2715
+ severity: "info" | "high" | "low" | "critical" | "medium";
2716
+ category: string;
1702
2717
  summary: string;
1703
2718
  affected_files: {
1704
2719
  path: string;
@@ -1709,10 +2724,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1709
2724
  no_quotable_span?: string | undefined;
1710
2725
  hash_at_plan_time?: string | undefined;
1711
2726
  }[];
2727
+ evidence?: string[] | undefined;
1712
2728
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1713
2729
  impact?: string | undefined;
1714
2730
  likelihood?: string | undefined;
1715
- evidence?: string[] | undefined;
1716
2731
  reproduction?: string[] | undefined;
1717
2732
  systemic?: boolean | undefined;
1718
2733
  related_findings?: string[] | undefined;
@@ -1744,6 +2759,53 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1744
2759
  contract_obligation_ids?: string[] | undefined;
1745
2760
  verification_obligation_ids?: string[] | undefined;
1746
2761
  targeted_commands?: string[] | undefined;
2762
+ question_review_sources?: {
2763
+ confidence: "high" | "low" | "medium";
2764
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2765
+ source_refs: {
2766
+ path: string;
2767
+ symbol?: string | undefined;
2768
+ start_line?: number | undefined;
2769
+ end_line?: number | undefined;
2770
+ }[];
2771
+ question_id: string;
2772
+ revision_id: string;
2773
+ schema_version: "audit-tools/question-review/v1";
2774
+ finding_id: string;
2775
+ severity: "info" | "high" | "low" | "critical" | "medium";
2776
+ claim: string;
2777
+ consequence: string;
2778
+ next_step: string;
2779
+ evidence_ids: string[];
2780
+ verification: ({
2781
+ kind: "analyzer";
2782
+ obligation_id: string;
2783
+ provenance: {
2784
+ path: string;
2785
+ analyzer_id: string;
2786
+ snippet_hash: string;
2787
+ rule?: string | undefined;
2788
+ };
2789
+ } | {
2790
+ expected: string;
2791
+ kind: "assertion";
2792
+ source_refs: {
2793
+ path: string;
2794
+ symbol?: string | undefined;
2795
+ start_line?: number | undefined;
2796
+ end_line?: number | undefined;
2797
+ }[];
2798
+ obligation_id: string;
2799
+ } | {
2800
+ reason: string;
2801
+ kind: "disposition";
2802
+ obligation_id: string;
2803
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2804
+ })[];
2805
+ observation_ids?: string[] | undefined;
2806
+ purpose?: string | undefined;
2807
+ divergence?: string | undefined;
2808
+ }[] | undefined;
1747
2809
  analyzer_provenance?: {
1748
2810
  path: string;
1749
2811
  analyzer_id: string;
@@ -1758,7 +2820,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1758
2820
  } | undefined;
1759
2821
  unit_dependencies?: string[] | undefined;
1760
2822
  unit_statuses?: Record<string, string> | undefined;
1761
- final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
2823
+ final_status?: "fixed" | "deferred" | "pending" | "ignored" | "skipped" | "failed" | undefined;
1762
2824
  original_state?: string | undefined;
1763
2825
  closing_status_reason?: string | undefined;
1764
2826
  started_at?: string | undefined;
@@ -1768,9 +2830,16 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1768
2830
  analyzer_id: string;
1769
2831
  reason?: string | undefined;
1770
2832
  } | undefined;
2833
+ mechanical_obligation_verifications?: {
2834
+ status: "verified_mechanically" | "lead_persists" | "skipped";
2835
+ analyzer_id: string;
2836
+ obligation_id: string;
2837
+ source_finding_id: string;
2838
+ reason?: string | undefined;
2839
+ }[] | undefined;
1771
2840
  recorded_by_module?: string | undefined;
1772
2841
  }, {
1773
- outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
2842
+ outcome: "deferred" | "pending" | "blocked" | "resolved" | "refuted" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
1774
2843
  lens: string;
1775
2844
  finding_id: string;
1776
2845
  file_exts: string[];
@@ -1788,7 +2857,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1788
2857
  summary: string;
1789
2858
  review: {
1790
2859
  reason: string;
1791
- mode: "degraded" | "independent" | "unavailable";
2860
+ mode: "degraded" | "unavailable" | "independent";
1792
2861
  };
1793
2862
  requirement: "independent";
1794
2863
  binding: string;
@@ -1798,9 +2867,9 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1798
2867
  id: string;
1799
2868
  confidence: "high" | "low" | "medium";
1800
2869
  title: string;
1801
- category: string;
1802
- severity: "info" | "high" | "low" | "critical" | "medium";
1803
2870
  lens: string;
2871
+ severity: "info" | "high" | "low" | "critical" | "medium";
2872
+ category: string;
1804
2873
  summary: string;
1805
2874
  affected_files: {
1806
2875
  path: string;
@@ -1811,10 +2880,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1811
2880
  no_quotable_span?: string | undefined;
1812
2881
  hash_at_plan_time?: string | undefined;
1813
2882
  }[];
2883
+ evidence?: string[] | undefined;
1814
2884
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1815
2885
  impact?: string | undefined;
1816
2886
  likelihood?: string | undefined;
1817
- evidence?: string[] | undefined;
1818
2887
  reproduction?: string[] | undefined;
1819
2888
  systemic?: boolean | undefined;
1820
2889
  related_findings?: string[] | undefined;
@@ -1846,6 +2915,53 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1846
2915
  contract_obligation_ids?: string[] | undefined;
1847
2916
  verification_obligation_ids?: string[] | undefined;
1848
2917
  targeted_commands?: string[] | undefined;
2918
+ question_review_sources?: {
2919
+ confidence: "high" | "low" | "medium";
2920
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
2921
+ source_refs: {
2922
+ path: string;
2923
+ symbol?: string | undefined;
2924
+ start_line?: number | undefined;
2925
+ end_line?: number | undefined;
2926
+ }[];
2927
+ question_id: string;
2928
+ revision_id: string;
2929
+ schema_version: "audit-tools/question-review/v1";
2930
+ finding_id: string;
2931
+ severity: "info" | "high" | "low" | "critical" | "medium";
2932
+ claim: string;
2933
+ consequence: string;
2934
+ next_step: string;
2935
+ evidence_ids: string[];
2936
+ verification: ({
2937
+ kind: "analyzer";
2938
+ obligation_id: string;
2939
+ provenance: {
2940
+ path: string;
2941
+ analyzer_id: string;
2942
+ snippet_hash: string;
2943
+ rule?: string | undefined;
2944
+ };
2945
+ } | {
2946
+ expected: string;
2947
+ kind: "assertion";
2948
+ source_refs: {
2949
+ path: string;
2950
+ symbol?: string | undefined;
2951
+ start_line?: number | undefined;
2952
+ end_line?: number | undefined;
2953
+ }[];
2954
+ obligation_id: string;
2955
+ } | {
2956
+ reason: string;
2957
+ kind: "disposition";
2958
+ obligation_id: string;
2959
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
2960
+ })[];
2961
+ observation_ids?: string[] | undefined;
2962
+ purpose?: string | undefined;
2963
+ divergence?: string | undefined;
2964
+ }[] | undefined;
1849
2965
  analyzer_provenance?: {
1850
2966
  path: string;
1851
2967
  analyzer_id: string;
@@ -1860,7 +2976,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1860
2976
  } | undefined;
1861
2977
  unit_dependencies?: string[] | undefined;
1862
2978
  unit_statuses?: Record<string, string> | undefined;
1863
- final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
2979
+ final_status?: "fixed" | "deferred" | "pending" | "ignored" | "skipped" | "failed" | undefined;
1864
2980
  original_state?: string | undefined;
1865
2981
  closing_status_reason?: string | undefined;
1866
2982
  started_at?: string | undefined;
@@ -1870,6 +2986,13 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1870
2986
  analyzer_id: string;
1871
2987
  reason?: string | undefined;
1872
2988
  } | undefined;
2989
+ mechanical_obligation_verifications?: {
2990
+ status: "verified_mechanically" | "lead_persists" | "skipped";
2991
+ analyzer_id: string;
2992
+ obligation_id: string;
2993
+ source_finding_id: string;
2994
+ reason?: string | undefined;
2995
+ }[] | undefined;
1873
2996
  recorded_by_module?: string | undefined;
1874
2997
  }>, "many">;
1875
2998
  execution_outcomes: z.ZodArray<z.ZodObject<{
@@ -1893,17 +3016,17 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1893
3016
  reason: z.ZodString;
1894
3017
  }, "strict", z.ZodTypeAny, {
1895
3018
  reason: string;
1896
- mode: "degraded" | "independent" | "unavailable";
3019
+ mode: "degraded" | "unavailable" | "independent";
1897
3020
  }, {
1898
3021
  reason: string;
1899
- mode: "degraded" | "independent" | "unavailable";
3022
+ mode: "degraded" | "unavailable" | "independent";
1900
3023
  }>;
1901
3024
  summary: z.ZodString;
1902
3025
  }, "strict", z.ZodTypeAny, {
1903
3026
  summary: string;
1904
3027
  review: {
1905
3028
  reason: string;
1906
- mode: "degraded" | "independent" | "unavailable";
3029
+ mode: "degraded" | "unavailable" | "independent";
1907
3030
  };
1908
3031
  requirement: "independent";
1909
3032
  binding: string;
@@ -1911,7 +3034,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1911
3034
  summary: string;
1912
3035
  review: {
1913
3036
  reason: string;
1914
- mode: "degraded" | "independent" | "unavailable";
3037
+ mode: "degraded" | "unavailable" | "independent";
1915
3038
  };
1916
3039
  requirement: "independent";
1917
3040
  binding: string;
@@ -1919,7 +3042,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1919
3042
  summary: string;
1920
3043
  review: {
1921
3044
  reason: string;
1922
- mode: "degraded" | "independent" | "unavailable";
3045
+ mode: "degraded" | "unavailable" | "independent";
1923
3046
  };
1924
3047
  requirement: "independent";
1925
3048
  binding: string;
@@ -1927,7 +3050,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1927
3050
  summary: string;
1928
3051
  review: {
1929
3052
  reason: string;
1930
- mode: "degraded" | "independent" | "unavailable";
3053
+ mode: "degraded" | "unavailable" | "independent";
1931
3054
  };
1932
3055
  requirement: "independent";
1933
3056
  binding: string;
@@ -1935,8 +3058,8 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1935
3058
  }, "strict", z.ZodTypeAny, {
1936
3059
  status: string;
1937
3060
  unit_id: string;
1938
- title: string;
1939
3061
  evidence: string[];
3062
+ title: string;
1940
3063
  source_finding_ids: string[];
1941
3064
  required_tests: string[];
1942
3065
  rework_count: number;
@@ -1945,7 +3068,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1945
3068
  summary: string;
1946
3069
  review: {
1947
3070
  reason: string;
1948
- mode: "degraded" | "independent" | "unavailable";
3071
+ mode: "degraded" | "unavailable" | "independent";
1949
3072
  };
1950
3073
  requirement: "independent";
1951
3074
  binding: string;
@@ -1957,8 +3080,8 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1957
3080
  }, {
1958
3081
  status: string;
1959
3082
  unit_id: string;
1960
- title: string;
1961
3083
  evidence: string[];
3084
+ title: string;
1962
3085
  source_finding_ids: string[];
1963
3086
  required_tests: string[];
1964
3087
  rework_count: number;
@@ -1967,7 +3090,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1967
3090
  summary: string;
1968
3091
  review: {
1969
3092
  reason: string;
1970
- mode: "degraded" | "independent" | "unavailable";
3093
+ mode: "degraded" | "unavailable" | "independent";
1971
3094
  };
1972
3095
  requirement: "independent";
1973
3096
  binding: string;
@@ -2010,12 +3133,12 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2010
3133
  evidence: z.ZodArray<z.ZodString, "many">;
2011
3134
  unit_ids: z.ZodArray<z.ZodString, "many">;
2012
3135
  }, "strict", z.ZodTypeAny, {
2013
- status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
3136
+ status: "deferred" | "pending" | "blocked" | "resolved" | "already_satisfied" | "ignored";
2014
3137
  reason: string;
2015
3138
  unit_ids: string[];
2016
3139
  evidence: string[];
2017
3140
  }, {
2018
- status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
3141
+ status: "deferred" | "pending" | "blocked" | "resolved" | "already_satisfied" | "ignored";
2019
3142
  reason: string;
2020
3143
  unit_ids: string[];
2021
3144
  evidence: string[];
@@ -2024,29 +3147,29 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2024
3147
  contract_version: "remediate-code-outcomes/v2";
2025
3148
  total: number;
2026
3149
  by_outcome: {
2027
- refuted: number;
2028
3150
  deferred: number;
3151
+ pending: number;
3152
+ blocked: number;
2029
3153
  resolved: number;
3154
+ refuted: number;
2030
3155
  verified_no_change: number;
2031
3156
  inappropriate: number;
2032
3157
  ignored: number;
2033
- blocked: number;
2034
- pending: number;
2035
3158
  verified_already_fixed: number;
2036
3159
  };
2037
3160
  by_lens: Record<string, {
2038
- refuted?: number | undefined;
2039
3161
  deferred?: number | undefined;
3162
+ pending?: number | undefined;
3163
+ blocked?: number | undefined;
2040
3164
  resolved?: number | undefined;
3165
+ refuted?: number | undefined;
2041
3166
  verified_no_change?: number | undefined;
2042
3167
  inappropriate?: number | undefined;
2043
3168
  ignored?: number | undefined;
2044
- blocked?: number | undefined;
2045
- pending?: number | undefined;
2046
3169
  verified_already_fixed?: number | undefined;
2047
3170
  }>;
2048
3171
  final_gate: {
2049
- outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
3172
+ outcome: "executed" | "absent" | "scoped_out" | "disabled" | "history";
2050
3173
  passed: boolean | null;
2051
3174
  commands_run: number;
2052
3175
  scope?: string | undefined;
@@ -2056,23 +3179,23 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2056
3179
  recovery: {
2057
3180
  recovered_by_hand: {
2058
3181
  kind: "recovered_by_hand" | "accepted_via_recovery";
3182
+ submission_id: string;
2059
3183
  lane: string;
2060
3184
  recorded_at: string;
2061
- submission_id: string;
2062
3185
  issue_code?: string | undefined;
2063
3186
  }[];
2064
3187
  accepted_via_recovery: {
2065
3188
  kind: "recovered_by_hand" | "accepted_via_recovery";
3189
+ submission_id: string;
2066
3190
  lane: string;
2067
3191
  recorded_at: string;
2068
- submission_id: string;
2069
3192
  issue_code?: string | undefined;
2070
3193
  }[];
2071
3194
  dropped_lines: number;
2072
3195
  read_error?: string | undefined;
2073
3196
  };
2074
3197
  outcomes: {
2075
- outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
3198
+ outcome: "deferred" | "pending" | "blocked" | "resolved" | "refuted" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
2076
3199
  lens: string;
2077
3200
  finding_id: string;
2078
3201
  file_exts: string[];
@@ -2090,7 +3213,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2090
3213
  summary: string;
2091
3214
  review: {
2092
3215
  reason: string;
2093
- mode: "degraded" | "independent" | "unavailable";
3216
+ mode: "degraded" | "unavailable" | "independent";
2094
3217
  };
2095
3218
  requirement: "independent";
2096
3219
  binding: string;
@@ -2100,9 +3223,9 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2100
3223
  id: string;
2101
3224
  confidence: "high" | "low" | "medium";
2102
3225
  title: string;
2103
- category: string;
2104
- severity: "info" | "high" | "low" | "critical" | "medium";
2105
3226
  lens: string;
3227
+ severity: "info" | "high" | "low" | "critical" | "medium";
3228
+ category: string;
2106
3229
  summary: string;
2107
3230
  affected_files: {
2108
3231
  path: string;
@@ -2113,10 +3236,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2113
3236
  no_quotable_span?: string | undefined;
2114
3237
  hash_at_plan_time?: string | undefined;
2115
3238
  }[];
3239
+ evidence?: string[] | undefined;
2116
3240
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2117
3241
  impact?: string | undefined;
2118
3242
  likelihood?: string | undefined;
2119
- evidence?: string[] | undefined;
2120
3243
  reproduction?: string[] | undefined;
2121
3244
  systemic?: boolean | undefined;
2122
3245
  related_findings?: string[] | undefined;
@@ -2148,6 +3271,53 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2148
3271
  contract_obligation_ids?: string[] | undefined;
2149
3272
  verification_obligation_ids?: string[] | undefined;
2150
3273
  targeted_commands?: string[] | undefined;
3274
+ question_review_sources?: {
3275
+ confidence: "high" | "low" | "medium";
3276
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3277
+ source_refs: {
3278
+ path: string;
3279
+ symbol?: string | undefined;
3280
+ start_line?: number | undefined;
3281
+ end_line?: number | undefined;
3282
+ }[];
3283
+ question_id: string;
3284
+ revision_id: string;
3285
+ schema_version: "audit-tools/question-review/v1";
3286
+ finding_id: string;
3287
+ severity: "info" | "high" | "low" | "critical" | "medium";
3288
+ claim: string;
3289
+ consequence: string;
3290
+ next_step: string;
3291
+ evidence_ids: string[];
3292
+ verification: ({
3293
+ kind: "analyzer";
3294
+ obligation_id: string;
3295
+ provenance: {
3296
+ path: string;
3297
+ analyzer_id: string;
3298
+ snippet_hash: string;
3299
+ rule?: string | undefined;
3300
+ };
3301
+ } | {
3302
+ expected: string;
3303
+ kind: "assertion";
3304
+ source_refs: {
3305
+ path: string;
3306
+ symbol?: string | undefined;
3307
+ start_line?: number | undefined;
3308
+ end_line?: number | undefined;
3309
+ }[];
3310
+ obligation_id: string;
3311
+ } | {
3312
+ reason: string;
3313
+ kind: "disposition";
3314
+ obligation_id: string;
3315
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3316
+ })[];
3317
+ observation_ids?: string[] | undefined;
3318
+ purpose?: string | undefined;
3319
+ divergence?: string | undefined;
3320
+ }[] | undefined;
2151
3321
  analyzer_provenance?: {
2152
3322
  path: string;
2153
3323
  analyzer_id: string;
@@ -2162,7 +3332,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2162
3332
  } | undefined;
2163
3333
  unit_dependencies?: string[] | undefined;
2164
3334
  unit_statuses?: Record<string, string> | undefined;
2165
- final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
3335
+ final_status?: "fixed" | "deferred" | "pending" | "ignored" | "skipped" | "failed" | undefined;
2166
3336
  original_state?: string | undefined;
2167
3337
  closing_status_reason?: string | undefined;
2168
3338
  started_at?: string | undefined;
@@ -2172,13 +3342,20 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2172
3342
  analyzer_id: string;
2173
3343
  reason?: string | undefined;
2174
3344
  } | undefined;
3345
+ mechanical_obligation_verifications?: {
3346
+ status: "verified_mechanically" | "lead_persists" | "skipped";
3347
+ analyzer_id: string;
3348
+ obligation_id: string;
3349
+ source_finding_id: string;
3350
+ reason?: string | undefined;
3351
+ }[] | undefined;
2175
3352
  recorded_by_module?: string | undefined;
2176
3353
  }[];
2177
3354
  execution_outcomes: {
2178
3355
  status: string;
2179
3356
  unit_id: string;
2180
- title: string;
2181
3357
  evidence: string[];
3358
+ title: string;
2182
3359
  source_finding_ids: string[];
2183
3360
  required_tests: string[];
2184
3361
  rework_count: number;
@@ -2187,7 +3364,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2187
3364
  summary: string;
2188
3365
  review: {
2189
3366
  reason: string;
2190
- mode: "degraded" | "independent" | "unavailable";
3367
+ mode: "degraded" | "unavailable" | "independent";
2191
3368
  };
2192
3369
  requirement: "independent";
2193
3370
  binding: string;
@@ -2211,7 +3388,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2211
3388
  prompt_sha256: string;
2212
3389
  review: {
2213
3390
  reason: string;
2214
- mode: "degraded" | "independent" | "unavailable";
3391
+ mode: "degraded" | "unavailable" | "independent";
2215
3392
  };
2216
3393
  requirement: "ordinary" | "independent" | "degraded_allowed";
2217
3394
  reviewed_content_hash: string;
@@ -2223,7 +3400,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2223
3400
  source_paths: string[];
2224
3401
  } | undefined;
2225
3402
  request_outcome?: {
2226
- status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
3403
+ status: "deferred" | "pending" | "blocked" | "resolved" | "already_satisfied" | "ignored";
2227
3404
  reason: string;
2228
3405
  unit_ids: string[];
2229
3406
  evidence: string[];
@@ -2232,29 +3409,29 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2232
3409
  contract_version: "remediate-code-outcomes/v2";
2233
3410
  total: number;
2234
3411
  by_outcome: {
2235
- refuted: number;
2236
3412
  deferred: number;
3413
+ pending: number;
3414
+ blocked: number;
2237
3415
  resolved: number;
3416
+ refuted: number;
2238
3417
  verified_no_change: number;
2239
3418
  inappropriate: number;
2240
3419
  ignored: number;
2241
- blocked: number;
2242
- pending: number;
2243
3420
  verified_already_fixed: number;
2244
3421
  };
2245
3422
  by_lens: Record<string, {
2246
- refuted?: number | undefined;
2247
3423
  deferred?: number | undefined;
3424
+ pending?: number | undefined;
3425
+ blocked?: number | undefined;
2248
3426
  resolved?: number | undefined;
3427
+ refuted?: number | undefined;
2249
3428
  verified_no_change?: number | undefined;
2250
3429
  inappropriate?: number | undefined;
2251
3430
  ignored?: number | undefined;
2252
- blocked?: number | undefined;
2253
- pending?: number | undefined;
2254
3431
  verified_already_fixed?: number | undefined;
2255
3432
  }>;
2256
3433
  final_gate: {
2257
- outcome: "absent" | "executed" | "scoped_out" | "disabled" | "history";
3434
+ outcome: "executed" | "absent" | "scoped_out" | "disabled" | "history";
2258
3435
  passed: boolean | null;
2259
3436
  commands_run: number;
2260
3437
  scope?: string | undefined;
@@ -2264,23 +3441,23 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2264
3441
  recovery: {
2265
3442
  recovered_by_hand: {
2266
3443
  kind: "recovered_by_hand" | "accepted_via_recovery";
3444
+ submission_id: string;
2267
3445
  lane: string;
2268
3446
  recorded_at: string;
2269
- submission_id: string;
2270
3447
  issue_code?: string | undefined;
2271
3448
  }[];
2272
3449
  accepted_via_recovery: {
2273
3450
  kind: "recovered_by_hand" | "accepted_via_recovery";
3451
+ submission_id: string;
2274
3452
  lane: string;
2275
3453
  recorded_at: string;
2276
- submission_id: string;
2277
3454
  issue_code?: string | undefined;
2278
3455
  }[];
2279
3456
  dropped_lines: number;
2280
3457
  read_error?: string | undefined;
2281
3458
  };
2282
3459
  outcomes: {
2283
- outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
3460
+ outcome: "deferred" | "pending" | "blocked" | "resolved" | "refuted" | "verified_no_change" | "inappropriate" | "ignored" | "verified_already_fixed";
2284
3461
  lens: string;
2285
3462
  finding_id: string;
2286
3463
  file_exts: string[];
@@ -2298,7 +3475,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2298
3475
  summary: string;
2299
3476
  review: {
2300
3477
  reason: string;
2301
- mode: "degraded" | "independent" | "unavailable";
3478
+ mode: "degraded" | "unavailable" | "independent";
2302
3479
  };
2303
3480
  requirement: "independent";
2304
3481
  binding: string;
@@ -2308,9 +3485,9 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2308
3485
  id: string;
2309
3486
  confidence: "high" | "low" | "medium";
2310
3487
  title: string;
2311
- category: string;
2312
- severity: "info" | "high" | "low" | "critical" | "medium";
2313
3488
  lens: string;
3489
+ severity: "info" | "high" | "low" | "critical" | "medium";
3490
+ category: string;
2314
3491
  summary: string;
2315
3492
  affected_files: {
2316
3493
  path: string;
@@ -2321,10 +3498,10 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2321
3498
  no_quotable_span?: string | undefined;
2322
3499
  hash_at_plan_time?: string | undefined;
2323
3500
  }[];
3501
+ evidence?: string[] | undefined;
2324
3502
  severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2325
3503
  impact?: string | undefined;
2326
3504
  likelihood?: string | undefined;
2327
- evidence?: string[] | undefined;
2328
3505
  reproduction?: string[] | undefined;
2329
3506
  systemic?: boolean | undefined;
2330
3507
  related_findings?: string[] | undefined;
@@ -2356,6 +3533,53 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2356
3533
  contract_obligation_ids?: string[] | undefined;
2357
3534
  verification_obligation_ids?: string[] | undefined;
2358
3535
  targeted_commands?: string[] | undefined;
3536
+ question_review_sources?: {
3537
+ confidence: "high" | "low" | "medium";
3538
+ kind: "confirmed_defect" | "design_opportunity" | "lead";
3539
+ source_refs: {
3540
+ path: string;
3541
+ symbol?: string | undefined;
3542
+ start_line?: number | undefined;
3543
+ end_line?: number | undefined;
3544
+ }[];
3545
+ question_id: string;
3546
+ revision_id: string;
3547
+ schema_version: "audit-tools/question-review/v1";
3548
+ finding_id: string;
3549
+ severity: "info" | "high" | "low" | "critical" | "medium";
3550
+ claim: string;
3551
+ consequence: string;
3552
+ next_step: string;
3553
+ evidence_ids: string[];
3554
+ verification: ({
3555
+ kind: "analyzer";
3556
+ obligation_id: string;
3557
+ provenance: {
3558
+ path: string;
3559
+ analyzer_id: string;
3560
+ snippet_hash: string;
3561
+ rule?: string | undefined;
3562
+ };
3563
+ } | {
3564
+ expected: string;
3565
+ kind: "assertion";
3566
+ source_refs: {
3567
+ path: string;
3568
+ symbol?: string | undefined;
3569
+ start_line?: number | undefined;
3570
+ end_line?: number | undefined;
3571
+ }[];
3572
+ obligation_id: string;
3573
+ } | {
3574
+ reason: string;
3575
+ kind: "disposition";
3576
+ obligation_id: string;
3577
+ disposition: "deferred" | "implemented" | "rejected" | "already_fixed" | "out_of_scope";
3578
+ })[];
3579
+ observation_ids?: string[] | undefined;
3580
+ purpose?: string | undefined;
3581
+ divergence?: string | undefined;
3582
+ }[] | undefined;
2359
3583
  analyzer_provenance?: {
2360
3584
  path: string;
2361
3585
  analyzer_id: string;
@@ -2370,7 +3594,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2370
3594
  } | undefined;
2371
3595
  unit_dependencies?: string[] | undefined;
2372
3596
  unit_statuses?: Record<string, string> | undefined;
2373
- final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
3597
+ final_status?: "fixed" | "deferred" | "pending" | "ignored" | "skipped" | "failed" | undefined;
2374
3598
  original_state?: string | undefined;
2375
3599
  closing_status_reason?: string | undefined;
2376
3600
  started_at?: string | undefined;
@@ -2380,13 +3604,20 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2380
3604
  analyzer_id: string;
2381
3605
  reason?: string | undefined;
2382
3606
  } | undefined;
3607
+ mechanical_obligation_verifications?: {
3608
+ status: "verified_mechanically" | "lead_persists" | "skipped";
3609
+ analyzer_id: string;
3610
+ obligation_id: string;
3611
+ source_finding_id: string;
3612
+ reason?: string | undefined;
3613
+ }[] | undefined;
2383
3614
  recorded_by_module?: string | undefined;
2384
3615
  }[];
2385
3616
  execution_outcomes: {
2386
3617
  status: string;
2387
3618
  unit_id: string;
2388
- title: string;
2389
3619
  evidence: string[];
3620
+ title: string;
2390
3621
  source_finding_ids: string[];
2391
3622
  required_tests: string[];
2392
3623
  rework_count: number;
@@ -2395,7 +3626,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2395
3626
  summary: string;
2396
3627
  review: {
2397
3628
  reason: string;
2398
- mode: "degraded" | "independent" | "unavailable";
3629
+ mode: "degraded" | "unavailable" | "independent";
2399
3630
  };
2400
3631
  requirement: "independent";
2401
3632
  binding: string;
@@ -2419,7 +3650,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2419
3650
  prompt_sha256: string;
2420
3651
  review: {
2421
3652
  reason: string;
2422
- mode: "degraded" | "independent" | "unavailable";
3653
+ mode: "degraded" | "unavailable" | "independent";
2423
3654
  };
2424
3655
  requirement: "ordinary" | "independent" | "degraded_allowed";
2425
3656
  reviewed_content_hash: string;
@@ -2431,7 +3662,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
2431
3662
  source_paths: string[];
2432
3663
  } | undefined;
2433
3664
  request_outcome?: {
2434
- status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
3665
+ status: "deferred" | "pending" | "blocked" | "resolved" | "already_satisfied" | "ignored";
2435
3666
  reason: string;
2436
3667
  unit_ids: string[];
2437
3668
  evidence: string[];