audit-tools 0.52.4 → 0.53.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 (348) hide show
  1. package/dist/audit/cli/auditStep.d.ts +1 -1
  2. package/dist/audit/cli/dispatch/hostHandoff.d.ts +2 -0
  3. package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
  4. package/dist/audit/cli/dispatch/hostHandoff.js +1 -1
  5. package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
  6. package/dist/audit/cli/dispatch/packetFilter.d.ts +1 -1
  7. package/dist/audit/cli/dispatch/packetFilter.d.ts.map +1 -1
  8. package/dist/audit/cli/dispatch/packetFilter.js +1 -1
  9. package/dist/audit/cli/dispatch/packetFilter.js.map +1 -1
  10. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
  11. package/dist/audit/cli/nextStepCommand.js +42 -20
  12. package/dist/audit/cli/nextStepCommand.js.map +1 -1
  13. package/dist/audit/cli/nextStepHelpers.d.ts +3 -3
  14. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
  15. package/dist/audit/cli/nextStepHelpers.js +50 -75
  16. package/dist/audit/cli/nextStepHelpers.js.map +1 -1
  17. package/dist/audit/cli/prompts.d.ts +1 -2
  18. package/dist/audit/cli/prompts.d.ts.map +1 -1
  19. package/dist/audit/cli/prompts.js +2 -12
  20. package/dist/audit/cli/prompts.js.map +1 -1
  21. package/dist/audit/cli/sampleRunCommand.d.ts +2 -2
  22. package/dist/audit/cli/semanticReviewStep.d.ts +11 -2
  23. package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
  24. package/dist/audit/cli/semanticReviewStep.js +14 -10
  25. package/dist/audit/cli/semanticReviewStep.js.map +1 -1
  26. package/dist/audit/contracts/workerSchemas.d.ts +14 -14
  27. package/dist/audit/contracts/wrapperResponse.d.ts +6 -6
  28. package/dist/audit/extractors/graphRoutes.d.ts.map +1 -1
  29. package/dist/audit/extractors/graphRoutes.js +1 -3
  30. package/dist/audit/extractors/graphRoutes.js.map +1 -1
  31. package/dist/audit/io/artifacts.d.ts.map +1 -1
  32. package/dist/audit/io/artifacts.js +2 -3
  33. package/dist/audit/io/artifacts.js.map +1 -1
  34. package/dist/audit/orchestrator/architectureDiscovery.d.ts +11 -0
  35. package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -0
  36. package/dist/audit/orchestrator/architectureDiscovery.js +174 -0
  37. package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -0
  38. package/dist/audit/orchestrator/designReviewProjection.d.ts +2 -6
  39. package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -1
  40. package/dist/audit/orchestrator/designReviewProjection.js +2 -6
  41. package/dist/audit/orchestrator/designReviewProjection.js.map +1 -1
  42. package/dist/audit/orchestrator/designReviewSnapshot.d.ts +2 -3
  43. package/dist/audit/orchestrator/designReviewSnapshot.d.ts.map +1 -1
  44. package/dist/audit/orchestrator/designReviewSnapshot.js +2 -3
  45. package/dist/audit/orchestrator/designReviewSnapshot.js.map +1 -1
  46. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
  47. package/dist/audit/orchestrator/executorRunners.js +1 -22
  48. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  49. package/dist/audit/orchestrator/executors.d.ts.map +1 -1
  50. package/dist/audit/orchestrator/executors.js +1 -13
  51. package/dist/audit/orchestrator/executors.js.map +1 -1
  52. package/dist/audit/orchestrator/nextStep.d.ts +2 -28
  53. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
  54. package/dist/audit/orchestrator/nextStep.js +5 -37
  55. package/dist/audit/orchestrator/nextStep.js.map +1 -1
  56. package/dist/audit/orchestrator/obligationDerive.d.ts +2 -3
  57. package/dist/audit/orchestrator/obligationDerive.d.ts.map +1 -1
  58. package/dist/audit/orchestrator/obligationDerive.js +2 -3
  59. package/dist/audit/orchestrator/obligationDerive.js.map +1 -1
  60. package/dist/audit/orchestrator/pendingTasks.d.ts +2 -0
  61. package/dist/audit/orchestrator/pendingTasks.d.ts.map +1 -1
  62. package/dist/audit/orchestrator/pendingTasks.js +5 -1
  63. package/dist/audit/orchestrator/pendingTasks.js.map +1 -1
  64. package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -1
  65. package/dist/audit/orchestrator/planningExecutors.js +9 -0
  66. package/dist/audit/orchestrator/planningExecutors.js.map +1 -1
  67. package/dist/audit/orchestrator/requeueCommand.d.ts +1 -1
  68. package/dist/audit/orchestrator/resultBaseline.d.ts +5 -5
  69. package/dist/audit/orchestrator/resultBaseline.d.ts.map +1 -1
  70. package/dist/audit/orchestrator/resultBaseline.js +24 -47
  71. package/dist/audit/orchestrator/resultBaseline.js.map +1 -1
  72. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts.map +1 -1
  73. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js +2 -0
  74. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js.map +1 -1
  75. package/dist/audit/orchestrator/state.d.ts.map +1 -1
  76. package/dist/audit/orchestrator/state.js +2 -0
  77. package/dist/audit/orchestrator/state.js.map +1 -1
  78. package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
  79. package/dist/audit/orchestrator/synthesisExecutors.js +3 -0
  80. package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
  81. package/dist/audit/types/auditState.d.ts +6 -6
  82. package/dist/audit/types/flowCoverage.d.ts +6 -6
  83. package/dist/audit/types.d.ts +12 -12
  84. package/dist/remediate/contractPipeline/executionPlan.d.ts +1908 -0
  85. package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -0
  86. package/dist/remediate/contractPipeline/executionPlan.js +467 -0
  87. package/dist/remediate/contractPipeline/executionPlan.js.map +1 -0
  88. package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts +12 -0
  89. package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts.map +1 -0
  90. package/dist/remediate/contractPipeline/runtimePlanAuthority.js +41 -0
  91. package/dist/remediate/contractPipeline/runtimePlanAuthority.js.map +1 -0
  92. package/dist/remediate/dedup/crossLensDedup.d.ts +3 -16
  93. package/dist/remediate/dedup/crossLensDedup.d.ts.map +1 -1
  94. package/dist/remediate/dedup/crossLensDedup.js +2 -32
  95. package/dist/remediate/dedup/crossLensDedup.js.map +1 -1
  96. package/dist/remediate/index.d.ts +2 -19
  97. package/dist/remediate/index.d.ts.map +1 -1
  98. package/dist/remediate/index.js +22 -138
  99. package/dist/remediate/index.js.map +1 -1
  100. package/dist/remediate/intake.d.ts +10 -10
  101. package/dist/remediate/intent/intentOrdering.d.ts +6 -8
  102. package/dist/remediate/intent/intentOrdering.d.ts.map +1 -1
  103. package/dist/remediate/intent/intentOrdering.js +24 -47
  104. package/dist/remediate/intent/intentOrdering.js.map +1 -1
  105. package/dist/remediate/phases/close.d.ts +25 -17
  106. package/dist/remediate/phases/close.d.ts.map +1 -1
  107. package/dist/remediate/phases/close.js +278 -218
  108. package/dist/remediate/phases/close.js.map +1 -1
  109. package/dist/remediate/phases/closeAcceptance.d.ts +42 -0
  110. package/dist/remediate/phases/closeAcceptance.d.ts.map +1 -0
  111. package/dist/remediate/phases/closeAcceptance.js +66 -0
  112. package/dist/remediate/phases/closeAcceptance.js.map +1 -0
  113. package/dist/remediate/phases/closeReviewProvenance.d.ts +1 -1
  114. package/dist/remediate/phases/closeReviewProvenance.d.ts.map +1 -1
  115. package/dist/remediate/phases/closeReviewProvenance.js +9 -8
  116. package/dist/remediate/phases/closeReviewProvenance.js.map +1 -1
  117. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
  118. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +11 -9
  119. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
  120. package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts +21 -86
  121. package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts.map +1 -1
  122. package/dist/remediate/phases/closeVerifyHeadEvidence.js +30 -19
  123. package/dist/remediate/phases/closeVerifyHeadEvidence.js.map +1 -1
  124. package/dist/remediate/phases/plan.d.ts +3 -60
  125. package/dist/remediate/phases/plan.d.ts.map +1 -1
  126. package/dist/remediate/phases/plan.js +3 -227
  127. package/dist/remediate/phases/plan.js.map +1 -1
  128. package/dist/remediate/phases/triage.d.ts.map +1 -1
  129. package/dist/remediate/phases/triage.js +19 -30
  130. package/dist/remediate/phases/triage.js.map +1 -1
  131. package/dist/remediate/riskSignal.d.ts +9 -43
  132. package/dist/remediate/riskSignal.d.ts.map +1 -1
  133. package/dist/remediate/riskSignal.js +7 -28
  134. package/dist/remediate/riskSignal.js.map +1 -1
  135. package/dist/remediate/state/disposition.d.ts +2 -1
  136. package/dist/remediate/state/disposition.d.ts.map +1 -1
  137. package/dist/remediate/state/disposition.js +37 -1
  138. package/dist/remediate/state/disposition.js.map +1 -1
  139. package/dist/remediate/state/runIdentity.d.ts +2 -13
  140. package/dist/remediate/state/runIdentity.d.ts.map +1 -1
  141. package/dist/remediate/state/runIdentity.js +3 -13
  142. package/dist/remediate/state/runIdentity.js.map +1 -1
  143. package/dist/remediate/state/store.d.ts +12 -36
  144. package/dist/remediate/state/store.d.ts.map +1 -1
  145. package/dist/remediate/state/store.js +58 -150
  146. package/dist/remediate/state/store.js.map +1 -1
  147. package/dist/remediate/state/types.d.ts +406 -504
  148. package/dist/remediate/state/types.d.ts.map +1 -1
  149. package/dist/remediate/state/types.js +24 -104
  150. package/dist/remediate/state/types.js.map +1 -1
  151. package/dist/remediate/steps/contractPipeline.d.ts +7 -661
  152. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
  153. package/dist/remediate/steps/contractPipeline.js +259 -3854
  154. package/dist/remediate/steps/contractPipeline.js.map +1 -1
  155. package/dist/remediate/steps/contractPipelinePrompts.d.ts +20 -142
  156. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
  157. package/dist/remediate/steps/contractPipelinePrompts.js +48 -581
  158. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
  159. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +4 -1
  160. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts.map +1 -1
  161. package/dist/remediate/steps/dispatch/contractConformanceReview.js +6 -3
  162. package/dist/remediate/steps/dispatch/contractConformanceReview.js.map +1 -1
  163. package/dist/remediate/steps/dispatch/hostContracts.d.ts +1 -1
  164. package/dist/remediate/steps/dispatch/hostContracts.d.ts.map +1 -1
  165. package/dist/remediate/steps/dispatch/hostHandoff.d.ts +4 -21
  166. package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -1
  167. package/dist/remediate/steps/dispatch/hostHandoff.js +161 -383
  168. package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -1
  169. package/dist/remediate/steps/finalGate.d.ts +34 -0
  170. package/dist/remediate/steps/finalGate.d.ts.map +1 -1
  171. package/dist/remediate/steps/finalGate.js +44 -4
  172. package/dist/remediate/steps/finalGate.js.map +1 -1
  173. package/dist/remediate/steps/frictionCloseout.d.ts +1 -30
  174. package/dist/remediate/steps/frictionCloseout.d.ts.map +1 -1
  175. package/dist/remediate/steps/frictionCloseout.js +6 -99
  176. package/dist/remediate/steps/frictionCloseout.js.map +1 -1
  177. package/dist/remediate/steps/nextStep.d.ts +2 -15
  178. package/dist/remediate/steps/nextStep.d.ts.map +1 -1
  179. package/dist/remediate/steps/nextStep.js +255 -1028
  180. package/dist/remediate/steps/nextStep.js.map +1 -1
  181. package/dist/remediate/steps/prompts.js +12 -12
  182. package/dist/remediate/steps/prompts.js.map +1 -1
  183. package/dist/remediate/steps/stepUtils.d.ts +1 -1
  184. package/dist/remediate/steps/stepUtils.d.ts.map +1 -1
  185. package/dist/remediate/steps/types.d.ts +1 -1
  186. package/dist/remediate/steps/types.d.ts.map +1 -1
  187. package/dist/remediate/steps/types.js +1 -1
  188. package/dist/remediate/steps/types.js.map +1 -1
  189. package/dist/remediate/types/options.d.ts +9 -0
  190. package/dist/remediate/types/options.d.ts.map +1 -1
  191. package/dist/remediate/validation/artifacts.d.ts.map +1 -1
  192. package/dist/remediate/validation/artifacts.js +10 -56
  193. package/dist/remediate/validation/artifacts.js.map +1 -1
  194. package/dist/remediate/validation/remediationState.d.ts +2 -2
  195. package/dist/remediate/validation/remediationState.d.ts.map +1 -1
  196. package/dist/remediate/validation/remediationState.js +17 -77
  197. package/dist/remediate/validation/remediationState.js.map +1 -1
  198. package/dist/remediate/validation/verificationReport.d.ts +3 -0
  199. package/dist/remediate/validation/verificationReport.d.ts.map +1 -0
  200. package/dist/remediate/validation/verificationReport.js +28 -0
  201. package/dist/remediate/validation/verificationReport.js.map +1 -0
  202. package/dist/shared/analyzers/types.d.ts +10 -10
  203. package/dist/shared/engine/obligationEngine.d.ts +2 -2
  204. package/dist/shared/friction/triage.d.ts +7 -28
  205. package/dist/shared/friction/triage.d.ts.map +1 -1
  206. package/dist/shared/friction/triage.js +7 -28
  207. package/dist/shared/friction/triage.js.map +1 -1
  208. package/dist/shared/graph/orderedReachability.js +1 -1
  209. package/dist/shared/graph/orderedReachability.js.map +1 -1
  210. package/dist/shared/index.d.ts +5 -6
  211. package/dist/shared/index.d.ts.map +1 -1
  212. package/dist/shared/index.js +3 -4
  213. package/dist/shared/index.js.map +1 -1
  214. package/dist/shared/loopCorePaths.d.ts.map +1 -1
  215. package/dist/shared/loopCorePaths.js +6 -0
  216. package/dist/shared/loopCorePaths.js.map +1 -1
  217. package/dist/shared/prompts.d.ts +1 -2
  218. package/dist/shared/prompts.d.ts.map +1 -1
  219. package/dist/shared/prompts.js +1 -2
  220. package/dist/shared/prompts.js.map +1 -1
  221. package/dist/shared/reReview/projectionDiff.d.ts.map +1 -1
  222. package/dist/shared/reReview/projectionDiff.js +6 -14
  223. package/dist/shared/reReview/projectionDiff.js.map +1 -1
  224. package/dist/shared/types/executionPlan.d.ts +416 -0
  225. package/dist/shared/types/executionPlan.d.ts.map +1 -0
  226. package/dist/shared/types/executionPlan.js +132 -0
  227. package/dist/shared/types/executionPlan.js.map +1 -0
  228. package/dist/shared/types/remediationOutcome.d.ts +1378 -12
  229. package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
  230. package/dist/shared/types/remediationOutcome.js +29 -1
  231. package/dist/shared/types/remediationOutcome.js.map +1 -1
  232. package/dist/shared/types/{contractPipeline/verification.d.ts → verificationReport.d.ts} +9 -37
  233. package/dist/shared/types/verificationReport.d.ts.map +1 -0
  234. package/dist/shared/types/verificationReport.js +4 -0
  235. package/dist/shared/types/verificationReport.js.map +1 -0
  236. package/dist/shared/validation/findingGrounding.d.ts +3 -5
  237. package/dist/shared/validation/findingGrounding.d.ts.map +1 -1
  238. package/dist/shared/validation/findingGrounding.js +4 -7
  239. package/dist/shared/validation/findingGrounding.js.map +1 -1
  240. package/package.json +1 -1
  241. package/remediate-code.mjs +16 -3
  242. package/dist/remediate/contractPipeline/artifactNames.d.ts +0 -8
  243. package/dist/remediate/contractPipeline/artifactNames.d.ts.map +0 -1
  244. package/dist/remediate/contractPipeline/artifactNames.js +0 -28
  245. package/dist/remediate/contractPipeline/artifactNames.js.map +0 -1
  246. package/dist/remediate/contractPipeline/artifactStore.d.ts +0 -219
  247. package/dist/remediate/contractPipeline/artifactStore.d.ts.map +0 -1
  248. package/dist/remediate/contractPipeline/artifactStore.js +0 -436
  249. package/dist/remediate/contractPipeline/artifactStore.js.map +0 -1
  250. package/dist/remediate/contractPipeline/changeClassification.d.ts +0 -130
  251. package/dist/remediate/contractPipeline/changeClassification.d.ts.map +0 -1
  252. package/dist/remediate/contractPipeline/changeClassification.js +0 -446
  253. package/dist/remediate/contractPipeline/changeClassification.js.map +0 -1
  254. package/dist/remediate/contractPipeline/contractReviewBinding.d.ts +0 -28
  255. package/dist/remediate/contractPipeline/contractReviewBinding.d.ts.map +0 -1
  256. package/dist/remediate/contractPipeline/contractReviewBinding.js +0 -75
  257. package/dist/remediate/contractPipeline/contractReviewBinding.js.map +0 -1
  258. package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts +0 -27
  259. package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts.map +0 -1
  260. package/dist/remediate/contractPipeline/counterexampleFingerprint.js +0 -37
  261. package/dist/remediate/contractPipeline/counterexampleFingerprint.js.map +0 -1
  262. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts +0 -131
  263. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +0 -1
  264. package/dist/remediate/contractPipeline/cyclicSeamResolution.js +0 -257
  265. package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +0 -1
  266. package/dist/remediate/contractPipeline/derive.d.ts +0 -173
  267. package/dist/remediate/contractPipeline/derive.d.ts.map +0 -1
  268. package/dist/remediate/contractPipeline/derive.js +0 -477
  269. package/dist/remediate/contractPipeline/derive.js.map +0 -1
  270. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts +0 -50
  271. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts.map +0 -1
  272. package/dist/remediate/contractPipeline/finalizedContractFields.js +0 -77
  273. package/dist/remediate/contractPipeline/finalizedContractFields.js.map +0 -1
  274. package/dist/remediate/contractPipeline/idRegistry.d.ts +0 -144
  275. package/dist/remediate/contractPipeline/idRegistry.d.ts.map +0 -1
  276. package/dist/remediate/contractPipeline/idRegistry.js +0 -214
  277. package/dist/remediate/contractPipeline/idRegistry.js.map +0 -1
  278. package/dist/remediate/contractPipeline/obligationKinds.d.ts +0 -27
  279. package/dist/remediate/contractPipeline/obligationKinds.d.ts.map +0 -1
  280. package/dist/remediate/contractPipeline/obligationKinds.js +0 -18
  281. package/dist/remediate/contractPipeline/obligationKinds.js.map +0 -1
  282. package/dist/remediate/contractPipeline/phaseCut.d.ts +0 -125
  283. package/dist/remediate/contractPipeline/phaseCut.d.ts.map +0 -1
  284. package/dist/remediate/contractPipeline/phaseCut.js +0 -339
  285. package/dist/remediate/contractPipeline/phaseCut.js.map +0 -1
  286. package/dist/remediate/contractPipeline/phaseCutArtifact.d.ts +0 -31
  287. package/dist/remediate/contractPipeline/phaseCutArtifact.d.ts.map +0 -1
  288. package/dist/remediate/contractPipeline/phaseCutArtifact.js +0 -48
  289. package/dist/remediate/contractPipeline/phaseCutArtifact.js.map +0 -1
  290. package/dist/remediate/contractPipeline/repairState.d.ts +0 -110
  291. package/dist/remediate/contractPipeline/repairState.d.ts.map +0 -1
  292. package/dist/remediate/contractPipeline/repairState.js +0 -185
  293. package/dist/remediate/contractPipeline/repairState.js.map +0 -1
  294. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +0 -79
  295. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +0 -1
  296. package/dist/remediate/contractPipeline/reviewSnapshot.js +0 -140
  297. package/dist/remediate/contractPipeline/reviewSnapshot.js.map +0 -1
  298. package/dist/remediate/contractPipeline/semanticProjection.d.ts +0 -64
  299. package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +0 -1
  300. package/dist/remediate/contractPipeline/semanticProjection.js +0 -136
  301. package/dist/remediate/contractPipeline/semanticProjection.js.map +0 -1
  302. package/dist/remediate/contractPipeline/sketchSource.d.ts +0 -194
  303. package/dist/remediate/contractPipeline/sketchSource.d.ts.map +0 -1
  304. package/dist/remediate/contractPipeline/sketchSource.js +0 -262
  305. package/dist/remediate/contractPipeline/sketchSource.js.map +0 -1
  306. package/dist/remediate/contractPipeline/testPlanCarry.d.ts +0 -17
  307. package/dist/remediate/contractPipeline/testPlanCarry.d.ts.map +0 -1
  308. package/dist/remediate/contractPipeline/testPlanCarry.js +0 -72
  309. package/dist/remediate/contractPipeline/testPlanCarry.js.map +0 -1
  310. package/dist/remediate/steps/dispatch/marshal.d.ts +0 -7
  311. package/dist/remediate/steps/dispatch/marshal.d.ts.map +0 -1
  312. package/dist/remediate/steps/dispatch/marshal.js +0 -11
  313. package/dist/remediate/steps/dispatch/marshal.js.map +0 -1
  314. package/dist/remediate/validation/contractPipeline.d.ts +0 -35
  315. package/dist/remediate/validation/contractPipeline.d.ts.map +0 -1
  316. package/dist/remediate/validation/contractPipeline.js +0 -613
  317. package/dist/remediate/validation/contractPipeline.js.map +0 -1
  318. package/dist/remediate/validation/contractPipelineGates.d.ts +0 -272
  319. package/dist/remediate/validation/contractPipelineGates.d.ts.map +0 -1
  320. package/dist/remediate/validation/contractPipelineGates.js +0 -1397
  321. package/dist/remediate/validation/contractPipelineGates.js.map +0 -1
  322. package/dist/shared/types/contractPipeline/design.d.ts +0 -79
  323. package/dist/shared/types/contractPipeline/design.d.ts.map +0 -1
  324. package/dist/shared/types/contractPipeline/design.js +0 -16
  325. package/dist/shared/types/contractPipeline/design.js.map +0 -1
  326. package/dist/shared/types/contractPipeline/goal.d.ts +0 -41
  327. package/dist/shared/types/contractPipeline/goal.d.ts.map +0 -1
  328. package/dist/shared/types/contractPipeline/goal.js +0 -10
  329. package/dist/shared/types/contractPipeline/goal.js.map +0 -1
  330. package/dist/shared/types/contractPipeline/implementation.d.ts +0 -118
  331. package/dist/shared/types/contractPipeline/implementation.d.ts.map +0 -1
  332. package/dist/shared/types/contractPipeline/implementation.js +0 -13
  333. package/dist/shared/types/contractPipeline/implementation.js.map +0 -1
  334. package/dist/shared/types/contractPipeline/obligations.d.ts +0 -283
  335. package/dist/shared/types/contractPipeline/obligations.d.ts.map +0 -1
  336. package/dist/shared/types/contractPipeline/obligations.js +0 -84
  337. package/dist/shared/types/contractPipeline/obligations.js.map +0 -1
  338. package/dist/shared/types/contractPipeline/verification.d.ts.map +0 -1
  339. package/dist/shared/types/contractPipeline/verification.js +0 -10
  340. package/dist/shared/types/contractPipeline/verification.js.map +0 -1
  341. package/dist/shared/types/contractPipeline.d.ts +0 -48
  342. package/dist/shared/types/contractPipeline.d.ts.map +0 -1
  343. package/dist/shared/types/contractPipeline.js +0 -32
  344. package/dist/shared/types/contractPipeline.js.map +0 -1
  345. package/dist/shared/types/obligationLedger.d.ts +0 -39
  346. package/dist/shared/types/obligationLedger.d.ts.map +0 -1
  347. package/dist/shared/types/obligationLedger.js +0 -49
  348. package/dist/shared/types/obligationLedger.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const RemediationOutcomeStatusSchema: z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked", "verified_already_fixed", "refuted"]>;
2
+ export declare const RemediationOutcomeStatusSchema: z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked", "pending", "deferred", "verified_already_fixed", "refuted"]>;
3
3
  export type RemediationOutcomeStatus = z.infer<typeof RemediationOutcomeStatusSchema>;
4
4
  export declare const EVIDENCE_MECHANISM_KINDS: readonly ["red_green_test", "build_lint_gate", "read_at_head_verification", "read_at_head_refutation"];
5
5
  export declare const EvidenceMechanismKindSchema: z.ZodEnum<["red_green_test", "build_lint_gate", "read_at_head_verification", "read_at_head_refutation"]>;
@@ -274,6 +274,305 @@ export declare const MechanicalVerificationSchema: z.ZodObject<{
274
274
  export type MechanicalVerification = z.infer<typeof MechanicalVerificationSchema>;
275
275
  export declare const RemediationOutcomeSchema: z.ZodObject<{
276
276
  finding_id: z.ZodString;
277
+ finding: z.ZodOptional<z.ZodObject<{
278
+ id: z.ZodString;
279
+ title: z.ZodString;
280
+ category: z.ZodString;
281
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
282
+ severity_downgraded_from: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low", "info"]>>;
283
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
284
+ lens: z.ZodString;
285
+ summary: z.ZodString;
286
+ affected_files: z.ZodArray<z.ZodEffects<z.ZodObject<{
287
+ path: z.ZodString;
288
+ line_start: z.ZodOptional<z.ZodNumber>;
289
+ line_end: z.ZodOptional<z.ZodNumber>;
290
+ symbol: z.ZodOptional<z.ZodString>;
291
+ quoted_text: z.ZodOptional<z.ZodString>;
292
+ no_quotable_span: z.ZodOptional<z.ZodString>;
293
+ hash_at_plan_time: z.ZodOptional<z.ZodString>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ path: string;
296
+ symbol?: string | undefined;
297
+ line_start?: number | undefined;
298
+ line_end?: number | undefined;
299
+ quoted_text?: string | undefined;
300
+ no_quotable_span?: string | undefined;
301
+ hash_at_plan_time?: string | undefined;
302
+ }, {
303
+ path: string;
304
+ symbol?: string | undefined;
305
+ line_start?: number | undefined;
306
+ line_end?: number | undefined;
307
+ quoted_text?: string | undefined;
308
+ no_quotable_span?: string | undefined;
309
+ hash_at_plan_time?: string | undefined;
310
+ }>, {
311
+ path: string;
312
+ symbol?: string | undefined;
313
+ line_start?: number | undefined;
314
+ line_end?: number | undefined;
315
+ quoted_text?: string | undefined;
316
+ no_quotable_span?: string | undefined;
317
+ hash_at_plan_time?: string | undefined;
318
+ }, {
319
+ path: string;
320
+ symbol?: string | undefined;
321
+ line_start?: number | undefined;
322
+ line_end?: number | undefined;
323
+ quoted_text?: string | undefined;
324
+ no_quotable_span?: string | undefined;
325
+ hash_at_plan_time?: string | undefined;
326
+ }>, "many">;
327
+ impact: z.ZodOptional<z.ZodString>;
328
+ likelihood: z.ZodOptional<z.ZodString>;
329
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
330
+ reproduction: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
331
+ systemic: z.ZodOptional<z.ZodBoolean>;
332
+ related_findings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
333
+ theme_id: z.ZodOptional<z.ZodString>;
334
+ blast_radius: z.ZodOptional<z.ZodNumber>;
335
+ evidence_grounded: z.ZodOptional<z.ZodBoolean>;
336
+ grounding: z.ZodOptional<z.ZodObject<{
337
+ status: z.ZodEnum<["grounded", "ungrounded", "refuted"]>;
338
+ reason: z.ZodOptional<z.ZodString>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ status: "grounded" | "ungrounded" | "refuted";
341
+ reason?: string | undefined;
342
+ }, {
343
+ status: "grounded" | "ungrounded" | "refuted";
344
+ reason?: string | undefined;
345
+ }>>;
346
+ evidence_lane: z.ZodOptional<z.ZodEnum<["per-file-lane", "design-review-lane"]>>;
347
+ verification_status: z.ZodOptional<z.ZodEnum<["judge_confirmed", "asserted", "refuted_at_head"]>>;
348
+ executable_anchor: z.ZodOptional<z.ZodObject<{
349
+ command: z.ZodArray<z.ZodString, "many">;
350
+ confirm_if: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
351
+ kind: z.ZodLiteral<"exit_zero">;
352
+ }, "strip", z.ZodTypeAny, {
353
+ kind: "exit_zero";
354
+ }, {
355
+ kind: "exit_zero";
356
+ }>, z.ZodObject<{
357
+ kind: z.ZodLiteral<"exit_nonzero">;
358
+ }, "strip", z.ZodTypeAny, {
359
+ kind: "exit_nonzero";
360
+ }, {
361
+ kind: "exit_nonzero";
362
+ }>, z.ZodObject<{
363
+ kind: z.ZodLiteral<"output_includes">;
364
+ text: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ kind: "output_includes";
367
+ text: string;
368
+ }, {
369
+ kind: "output_includes";
370
+ text: string;
371
+ }>, z.ZodObject<{
372
+ kind: z.ZodLiteral<"output_excludes">;
373
+ text: z.ZodString;
374
+ }, "strip", z.ZodTypeAny, {
375
+ kind: "output_excludes";
376
+ text: string;
377
+ }, {
378
+ kind: "output_excludes";
379
+ text: string;
380
+ }>]>;
381
+ claim: z.ZodOptional<z.ZodString>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ command: string[];
384
+ confirm_if: {
385
+ kind: "exit_zero";
386
+ } | {
387
+ kind: "exit_nonzero";
388
+ } | {
389
+ kind: "output_includes";
390
+ text: string;
391
+ } | {
392
+ kind: "output_excludes";
393
+ text: string;
394
+ };
395
+ claim?: string | undefined;
396
+ }, {
397
+ command: string[];
398
+ confirm_if: {
399
+ kind: "exit_zero";
400
+ } | {
401
+ kind: "exit_nonzero";
402
+ } | {
403
+ kind: "output_includes";
404
+ text: string;
405
+ } | {
406
+ kind: "output_excludes";
407
+ text: string;
408
+ };
409
+ claim?: string | undefined;
410
+ }>>;
411
+ contract_goal_id: z.ZodOptional<z.ZodString>;
412
+ contract_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
413
+ verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
+ targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
+ analyzer_provenance: z.ZodOptional<z.ZodObject<{
416
+ analyzer_id: z.ZodString;
417
+ rule: z.ZodOptional<z.ZodString>;
418
+ path: z.ZodString;
419
+ snippet_hash: z.ZodString;
420
+ }, "strict", z.ZodTypeAny, {
421
+ path: string;
422
+ analyzer_id: string;
423
+ snippet_hash: string;
424
+ rule?: string | undefined;
425
+ }, {
426
+ path: string;
427
+ analyzer_id: string;
428
+ snippet_hash: string;
429
+ rule?: string | undefined;
430
+ }>>;
431
+ lead_lineage: z.ZodOptional<z.ZodObject<{
432
+ producer: z.ZodString;
433
+ source_hash: z.ZodString;
434
+ confirmation: z.ZodLiteral<"lead">;
435
+ }, "strict", z.ZodTypeAny, {
436
+ producer: string;
437
+ source_hash: string;
438
+ confirmation: "lead";
439
+ }, {
440
+ producer: string;
441
+ source_hash: string;
442
+ confirmation: "lead";
443
+ }>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ id: string;
446
+ confidence: "high" | "low" | "medium";
447
+ title: string;
448
+ category: string;
449
+ severity: "info" | "high" | "low" | "critical" | "medium";
450
+ lens: string;
451
+ summary: string;
452
+ affected_files: {
453
+ path: string;
454
+ symbol?: string | undefined;
455
+ line_start?: number | undefined;
456
+ line_end?: number | undefined;
457
+ quoted_text?: string | undefined;
458
+ no_quotable_span?: string | undefined;
459
+ hash_at_plan_time?: string | undefined;
460
+ }[];
461
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
462
+ impact?: string | undefined;
463
+ likelihood?: string | undefined;
464
+ evidence?: string[] | undefined;
465
+ reproduction?: string[] | undefined;
466
+ systemic?: boolean | undefined;
467
+ related_findings?: string[] | undefined;
468
+ theme_id?: string | undefined;
469
+ blast_radius?: number | undefined;
470
+ evidence_grounded?: boolean | undefined;
471
+ grounding?: {
472
+ status: "grounded" | "ungrounded" | "refuted";
473
+ reason?: string | undefined;
474
+ } | undefined;
475
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
476
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
477
+ executable_anchor?: {
478
+ command: string[];
479
+ confirm_if: {
480
+ kind: "exit_zero";
481
+ } | {
482
+ kind: "exit_nonzero";
483
+ } | {
484
+ kind: "output_includes";
485
+ text: string;
486
+ } | {
487
+ kind: "output_excludes";
488
+ text: string;
489
+ };
490
+ claim?: string | undefined;
491
+ } | undefined;
492
+ contract_goal_id?: string | undefined;
493
+ contract_obligation_ids?: string[] | undefined;
494
+ verification_obligation_ids?: string[] | undefined;
495
+ targeted_commands?: string[] | undefined;
496
+ analyzer_provenance?: {
497
+ path: string;
498
+ analyzer_id: string;
499
+ snippet_hash: string;
500
+ rule?: string | undefined;
501
+ } | undefined;
502
+ lead_lineage?: {
503
+ producer: string;
504
+ source_hash: string;
505
+ confirmation: "lead";
506
+ } | undefined;
507
+ }, {
508
+ id: string;
509
+ confidence: "high" | "low" | "medium";
510
+ title: string;
511
+ category: string;
512
+ severity: "info" | "high" | "low" | "critical" | "medium";
513
+ lens: string;
514
+ summary: string;
515
+ affected_files: {
516
+ path: string;
517
+ symbol?: string | undefined;
518
+ line_start?: number | undefined;
519
+ line_end?: number | undefined;
520
+ quoted_text?: string | undefined;
521
+ no_quotable_span?: string | undefined;
522
+ hash_at_plan_time?: string | undefined;
523
+ }[];
524
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
525
+ impact?: string | undefined;
526
+ likelihood?: string | undefined;
527
+ evidence?: string[] | undefined;
528
+ reproduction?: string[] | undefined;
529
+ systemic?: boolean | undefined;
530
+ related_findings?: string[] | undefined;
531
+ theme_id?: string | undefined;
532
+ blast_radius?: number | undefined;
533
+ evidence_grounded?: boolean | undefined;
534
+ grounding?: {
535
+ status: "grounded" | "ungrounded" | "refuted";
536
+ reason?: string | undefined;
537
+ } | undefined;
538
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
539
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
540
+ executable_anchor?: {
541
+ command: string[];
542
+ confirm_if: {
543
+ kind: "exit_zero";
544
+ } | {
545
+ kind: "exit_nonzero";
546
+ } | {
547
+ kind: "output_includes";
548
+ text: string;
549
+ } | {
550
+ kind: "output_excludes";
551
+ text: string;
552
+ };
553
+ claim?: string | undefined;
554
+ } | undefined;
555
+ contract_goal_id?: string | undefined;
556
+ contract_obligation_ids?: string[] | undefined;
557
+ verification_obligation_ids?: string[] | undefined;
558
+ targeted_commands?: string[] | undefined;
559
+ analyzer_provenance?: {
560
+ path: string;
561
+ analyzer_id: string;
562
+ snippet_hash: string;
563
+ rule?: string | undefined;
564
+ } | undefined;
565
+ lead_lineage?: {
566
+ producer: string;
567
+ source_hash: string;
568
+ confirmation: "lead";
569
+ } | undefined;
570
+ }>>;
571
+ unit_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
572
+ unit_dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
573
+ unit_statuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
574
+ final_status: z.ZodOptional<z.ZodEnum<["fixed", "failed", "skipped", "ignored", "pending", "deferred"]>>;
575
+ original_state: z.ZodOptional<z.ZodString>;
277
576
  conformance_review: z.ZodOptional<z.ZodEffects<z.ZodObject<{
278
577
  requirement: z.ZodLiteral<"independent">;
279
578
  binding: z.ZodString;
@@ -325,7 +624,7 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
325
624
  lens: z.ZodString;
326
625
  /** Distinct file extensions of the finding's affected files (e.g. [".ts"]). */
327
626
  file_exts: z.ZodArray<z.ZodString, "many">;
328
- outcome: z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked", "verified_already_fixed", "refuted"]>;
627
+ outcome: z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked", "pending", "deferred", "verified_already_fixed", "refuted"]>;
329
628
  /** How many times the item was sent back for rework before this outcome. */
330
629
  rework_count: z.ZodNumber;
331
630
  /** The run's closing-action status (e.g. "success", "failed"). */
@@ -391,13 +690,14 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
391
690
  */
392
691
  recorded_by_module: z.ZodOptional<z.ZodString>;
393
692
  }, "strict", z.ZodTypeAny, {
394
- outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
693
+ outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
395
694
  lens: string;
396
695
  finding_id: string;
397
696
  file_exts: string[];
398
697
  rework_count: number;
399
698
  closing_status: string;
400
699
  reason?: string | undefined;
700
+ unit_ids?: string[] | undefined;
401
701
  evidence?: {
402
702
  line: string;
403
703
  file: string;
@@ -414,6 +714,74 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
414
714
  binding: string;
415
715
  } | undefined;
416
716
  duration_ms?: number | undefined;
717
+ finding?: {
718
+ id: string;
719
+ confidence: "high" | "low" | "medium";
720
+ title: string;
721
+ category: string;
722
+ severity: "info" | "high" | "low" | "critical" | "medium";
723
+ lens: string;
724
+ summary: string;
725
+ affected_files: {
726
+ path: string;
727
+ symbol?: string | undefined;
728
+ line_start?: number | undefined;
729
+ line_end?: number | undefined;
730
+ quoted_text?: string | undefined;
731
+ no_quotable_span?: string | undefined;
732
+ hash_at_plan_time?: string | undefined;
733
+ }[];
734
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
735
+ impact?: string | undefined;
736
+ likelihood?: string | undefined;
737
+ evidence?: string[] | undefined;
738
+ reproduction?: string[] | undefined;
739
+ systemic?: boolean | undefined;
740
+ related_findings?: string[] | undefined;
741
+ theme_id?: string | undefined;
742
+ blast_radius?: number | undefined;
743
+ evidence_grounded?: boolean | undefined;
744
+ grounding?: {
745
+ status: "grounded" | "ungrounded" | "refuted";
746
+ reason?: string | undefined;
747
+ } | undefined;
748
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
749
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
750
+ executable_anchor?: {
751
+ command: string[];
752
+ confirm_if: {
753
+ kind: "exit_zero";
754
+ } | {
755
+ kind: "exit_nonzero";
756
+ } | {
757
+ kind: "output_includes";
758
+ text: string;
759
+ } | {
760
+ kind: "output_excludes";
761
+ text: string;
762
+ };
763
+ claim?: string | undefined;
764
+ } | undefined;
765
+ contract_goal_id?: string | undefined;
766
+ contract_obligation_ids?: string[] | undefined;
767
+ verification_obligation_ids?: string[] | undefined;
768
+ targeted_commands?: string[] | undefined;
769
+ analyzer_provenance?: {
770
+ path: string;
771
+ analyzer_id: string;
772
+ snippet_hash: string;
773
+ rule?: string | undefined;
774
+ } | undefined;
775
+ lead_lineage?: {
776
+ producer: string;
777
+ source_hash: string;
778
+ confirmation: "lead";
779
+ } | undefined;
780
+ } | undefined;
781
+ unit_dependencies?: string[] | undefined;
782
+ unit_statuses?: Record<string, string> | undefined;
783
+ final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
784
+ original_state?: string | undefined;
417
785
  closing_status_reason?: string | undefined;
418
786
  started_at?: string | undefined;
419
787
  completed_at?: string | undefined;
@@ -424,13 +792,14 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
424
792
  } | undefined;
425
793
  recorded_by_module?: string | undefined;
426
794
  }, {
427
- outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
795
+ outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
428
796
  lens: string;
429
797
  finding_id: string;
430
798
  file_exts: string[];
431
799
  rework_count: number;
432
800
  closing_status: string;
433
801
  reason?: string | undefined;
802
+ unit_ids?: string[] | undefined;
434
803
  evidence?: {
435
804
  line: string;
436
805
  file: string;
@@ -447,6 +816,74 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
447
816
  binding: string;
448
817
  } | undefined;
449
818
  duration_ms?: number | undefined;
819
+ finding?: {
820
+ id: string;
821
+ confidence: "high" | "low" | "medium";
822
+ title: string;
823
+ category: string;
824
+ severity: "info" | "high" | "low" | "critical" | "medium";
825
+ lens: string;
826
+ summary: string;
827
+ affected_files: {
828
+ path: string;
829
+ symbol?: string | undefined;
830
+ line_start?: number | undefined;
831
+ line_end?: number | undefined;
832
+ quoted_text?: string | undefined;
833
+ no_quotable_span?: string | undefined;
834
+ hash_at_plan_time?: string | undefined;
835
+ }[];
836
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
837
+ impact?: string | undefined;
838
+ likelihood?: string | undefined;
839
+ evidence?: string[] | undefined;
840
+ reproduction?: string[] | undefined;
841
+ systemic?: boolean | undefined;
842
+ related_findings?: string[] | undefined;
843
+ theme_id?: string | undefined;
844
+ blast_radius?: number | undefined;
845
+ evidence_grounded?: boolean | undefined;
846
+ grounding?: {
847
+ status: "grounded" | "ungrounded" | "refuted";
848
+ reason?: string | undefined;
849
+ } | undefined;
850
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
851
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
852
+ executable_anchor?: {
853
+ command: string[];
854
+ confirm_if: {
855
+ kind: "exit_zero";
856
+ } | {
857
+ kind: "exit_nonzero";
858
+ } | {
859
+ kind: "output_includes";
860
+ text: string;
861
+ } | {
862
+ kind: "output_excludes";
863
+ text: string;
864
+ };
865
+ claim?: string | undefined;
866
+ } | undefined;
867
+ contract_goal_id?: string | undefined;
868
+ contract_obligation_ids?: string[] | undefined;
869
+ verification_obligation_ids?: string[] | undefined;
870
+ targeted_commands?: string[] | undefined;
871
+ analyzer_provenance?: {
872
+ path: string;
873
+ analyzer_id: string;
874
+ snippet_hash: string;
875
+ rule?: string | undefined;
876
+ } | undefined;
877
+ lead_lineage?: {
878
+ producer: string;
879
+ source_hash: string;
880
+ confirmation: "lead";
881
+ } | undefined;
882
+ } | undefined;
883
+ unit_dependencies?: string[] | undefined;
884
+ unit_statuses?: Record<string, string> | undefined;
885
+ final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
886
+ original_state?: string | undefined;
450
887
  closing_status_reason?: string | undefined;
451
888
  started_at?: string | undefined;
452
889
  completed_at?: string | undefined;
@@ -458,8 +895,114 @@ export declare const RemediationOutcomeSchema: z.ZodObject<{
458
895
  recorded_by_module?: string | undefined;
459
896
  }>;
460
897
  export type RemediationOutcome = z.infer<typeof RemediationOutcomeSchema>;
898
+ export declare const ExecutionOutcomeSchema: z.ZodObject<{
899
+ unit_id: z.ZodString;
900
+ title: z.ZodString;
901
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
902
+ status: z.ZodString;
903
+ required_tests: z.ZodArray<z.ZodString, "many">;
904
+ evidence: z.ZodArray<z.ZodString, "many">;
905
+ rework_count: z.ZodNumber;
906
+ landed_commit: z.ZodOptional<z.ZodString>;
907
+ landed_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
908
+ reason: z.ZodOptional<z.ZodString>;
909
+ started_at: z.ZodOptional<z.ZodString>;
910
+ completed_at: z.ZodOptional<z.ZodString>;
911
+ conformance_review: z.ZodOptional<z.ZodEffects<z.ZodObject<{
912
+ requirement: z.ZodLiteral<"independent">;
913
+ binding: z.ZodString;
914
+ review: z.ZodObject<{
915
+ mode: z.ZodEnum<["independent", "degraded", "unavailable"]>;
916
+ reason: z.ZodString;
917
+ }, "strict", z.ZodTypeAny, {
918
+ reason: string;
919
+ mode: "degraded" | "independent" | "unavailable";
920
+ }, {
921
+ reason: string;
922
+ mode: "degraded" | "independent" | "unavailable";
923
+ }>;
924
+ summary: z.ZodString;
925
+ }, "strict", z.ZodTypeAny, {
926
+ summary: string;
927
+ review: {
928
+ reason: string;
929
+ mode: "degraded" | "independent" | "unavailable";
930
+ };
931
+ requirement: "independent";
932
+ binding: string;
933
+ }, {
934
+ summary: string;
935
+ review: {
936
+ reason: string;
937
+ mode: "degraded" | "independent" | "unavailable";
938
+ };
939
+ requirement: "independent";
940
+ binding: string;
941
+ }>, {
942
+ summary: string;
943
+ review: {
944
+ reason: string;
945
+ mode: "degraded" | "independent" | "unavailable";
946
+ };
947
+ requirement: "independent";
948
+ binding: string;
949
+ }, {
950
+ summary: string;
951
+ review: {
952
+ reason: string;
953
+ mode: "degraded" | "independent" | "unavailable";
954
+ };
955
+ requirement: "independent";
956
+ binding: string;
957
+ }>>;
958
+ }, "strict", z.ZodTypeAny, {
959
+ status: string;
960
+ unit_id: string;
961
+ title: string;
962
+ evidence: string[];
963
+ source_finding_ids: string[];
964
+ required_tests: string[];
965
+ rework_count: number;
966
+ reason?: string | undefined;
967
+ conformance_review?: {
968
+ summary: string;
969
+ review: {
970
+ reason: string;
971
+ mode: "degraded" | "independent" | "unavailable";
972
+ };
973
+ requirement: "independent";
974
+ binding: string;
975
+ } | undefined;
976
+ started_at?: string | undefined;
977
+ completed_at?: string | undefined;
978
+ landed_commit?: string | undefined;
979
+ landed_files?: string[] | undefined;
980
+ }, {
981
+ status: string;
982
+ unit_id: string;
983
+ title: string;
984
+ evidence: string[];
985
+ source_finding_ids: string[];
986
+ required_tests: string[];
987
+ rework_count: number;
988
+ reason?: string | undefined;
989
+ conformance_review?: {
990
+ summary: string;
991
+ review: {
992
+ reason: string;
993
+ mode: "degraded" | "independent" | "unavailable";
994
+ };
995
+ requirement: "independent";
996
+ binding: string;
997
+ } | undefined;
998
+ started_at?: string | undefined;
999
+ completed_at?: string | undefined;
1000
+ landed_commit?: string | undefined;
1001
+ landed_files?: string[] | undefined;
1002
+ }>;
1003
+ export declare const REMEDIATION_OUTCOMES_CONTRACT_VERSION: "remediate-code-outcomes/v2";
461
1004
  export declare const RemediationOutcomesReportSchema: z.ZodObject<{
462
- contract_version: z.ZodString;
1005
+ contract_version: z.ZodLiteral<"remediate-code-outcomes/v2">;
463
1006
  total: z.ZodNumber;
464
1007
  by_outcome: z.ZodObject<{
465
1008
  resolved: z.ZodNumber;
@@ -467,23 +1010,29 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
467
1010
  inappropriate: z.ZodNumber;
468
1011
  ignored: z.ZodNumber;
469
1012
  blocked: z.ZodNumber;
1013
+ pending: z.ZodNumber;
1014
+ deferred: z.ZodNumber;
470
1015
  verified_already_fixed: z.ZodNumber;
471
1016
  refuted: z.ZodNumber;
472
1017
  }, "strict", z.ZodTypeAny, {
473
1018
  refuted: number;
1019
+ deferred: number;
474
1020
  resolved: number;
475
1021
  verified_no_change: number;
476
1022
  inappropriate: number;
477
1023
  ignored: number;
478
1024
  blocked: number;
1025
+ pending: number;
479
1026
  verified_already_fixed: number;
480
1027
  }, {
481
1028
  refuted: number;
1029
+ deferred: number;
482
1030
  resolved: number;
483
1031
  verified_no_change: number;
484
1032
  inappropriate: number;
485
1033
  ignored: number;
486
1034
  blocked: number;
1035
+ pending: number;
487
1036
  verified_already_fixed: number;
488
1037
  }>;
489
1038
  by_lens: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -492,23 +1041,29 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
492
1041
  inappropriate: z.ZodOptional<z.ZodNumber>;
493
1042
  ignored: z.ZodOptional<z.ZodNumber>;
494
1043
  blocked: z.ZodOptional<z.ZodNumber>;
1044
+ pending: z.ZodOptional<z.ZodNumber>;
1045
+ deferred: z.ZodOptional<z.ZodNumber>;
495
1046
  verified_already_fixed: z.ZodOptional<z.ZodNumber>;
496
1047
  refuted: z.ZodOptional<z.ZodNumber>;
497
1048
  }, "strict", z.ZodTypeAny, {
498
1049
  refuted?: number | undefined;
1050
+ deferred?: number | undefined;
499
1051
  resolved?: number | undefined;
500
1052
  verified_no_change?: number | undefined;
501
1053
  inappropriate?: number | undefined;
502
1054
  ignored?: number | undefined;
503
1055
  blocked?: number | undefined;
1056
+ pending?: number | undefined;
504
1057
  verified_already_fixed?: number | undefined;
505
1058
  }, {
506
1059
  refuted?: number | undefined;
1060
+ deferred?: number | undefined;
507
1061
  resolved?: number | undefined;
508
1062
  verified_no_change?: number | undefined;
509
1063
  inappropriate?: number | undefined;
510
1064
  ignored?: number | undefined;
511
1065
  blocked?: number | undefined;
1066
+ pending?: number | undefined;
512
1067
  verified_already_fixed?: number | undefined;
513
1068
  }>>;
514
1069
  /** Earliest item started_at across all outcomes. */
@@ -689,6 +1244,305 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
689
1244
  }>, "many">>;
690
1245
  outcomes: z.ZodArray<z.ZodObject<{
691
1246
  finding_id: z.ZodString;
1247
+ finding: z.ZodOptional<z.ZodObject<{
1248
+ id: z.ZodString;
1249
+ title: z.ZodString;
1250
+ category: z.ZodString;
1251
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
1252
+ severity_downgraded_from: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low", "info"]>>;
1253
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
1254
+ lens: z.ZodString;
1255
+ summary: z.ZodString;
1256
+ affected_files: z.ZodArray<z.ZodEffects<z.ZodObject<{
1257
+ path: z.ZodString;
1258
+ line_start: z.ZodOptional<z.ZodNumber>;
1259
+ line_end: z.ZodOptional<z.ZodNumber>;
1260
+ symbol: z.ZodOptional<z.ZodString>;
1261
+ quoted_text: z.ZodOptional<z.ZodString>;
1262
+ no_quotable_span: z.ZodOptional<z.ZodString>;
1263
+ hash_at_plan_time: z.ZodOptional<z.ZodString>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ path: string;
1266
+ symbol?: string | undefined;
1267
+ line_start?: number | undefined;
1268
+ line_end?: number | undefined;
1269
+ quoted_text?: string | undefined;
1270
+ no_quotable_span?: string | undefined;
1271
+ hash_at_plan_time?: string | undefined;
1272
+ }, {
1273
+ path: string;
1274
+ symbol?: string | undefined;
1275
+ line_start?: number | undefined;
1276
+ line_end?: number | undefined;
1277
+ quoted_text?: string | undefined;
1278
+ no_quotable_span?: string | undefined;
1279
+ hash_at_plan_time?: string | undefined;
1280
+ }>, {
1281
+ path: string;
1282
+ symbol?: string | undefined;
1283
+ line_start?: number | undefined;
1284
+ line_end?: number | undefined;
1285
+ quoted_text?: string | undefined;
1286
+ no_quotable_span?: string | undefined;
1287
+ hash_at_plan_time?: string | undefined;
1288
+ }, {
1289
+ path: string;
1290
+ symbol?: string | undefined;
1291
+ line_start?: number | undefined;
1292
+ line_end?: number | undefined;
1293
+ quoted_text?: string | undefined;
1294
+ no_quotable_span?: string | undefined;
1295
+ hash_at_plan_time?: string | undefined;
1296
+ }>, "many">;
1297
+ impact: z.ZodOptional<z.ZodString>;
1298
+ likelihood: z.ZodOptional<z.ZodString>;
1299
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1300
+ reproduction: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
+ systemic: z.ZodOptional<z.ZodBoolean>;
1302
+ related_findings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1303
+ theme_id: z.ZodOptional<z.ZodString>;
1304
+ blast_radius: z.ZodOptional<z.ZodNumber>;
1305
+ evidence_grounded: z.ZodOptional<z.ZodBoolean>;
1306
+ grounding: z.ZodOptional<z.ZodObject<{
1307
+ status: z.ZodEnum<["grounded", "ungrounded", "refuted"]>;
1308
+ reason: z.ZodOptional<z.ZodString>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ status: "grounded" | "ungrounded" | "refuted";
1311
+ reason?: string | undefined;
1312
+ }, {
1313
+ status: "grounded" | "ungrounded" | "refuted";
1314
+ reason?: string | undefined;
1315
+ }>>;
1316
+ evidence_lane: z.ZodOptional<z.ZodEnum<["per-file-lane", "design-review-lane"]>>;
1317
+ verification_status: z.ZodOptional<z.ZodEnum<["judge_confirmed", "asserted", "refuted_at_head"]>>;
1318
+ executable_anchor: z.ZodOptional<z.ZodObject<{
1319
+ command: z.ZodArray<z.ZodString, "many">;
1320
+ confirm_if: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1321
+ kind: z.ZodLiteral<"exit_zero">;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ kind: "exit_zero";
1324
+ }, {
1325
+ kind: "exit_zero";
1326
+ }>, z.ZodObject<{
1327
+ kind: z.ZodLiteral<"exit_nonzero">;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ kind: "exit_nonzero";
1330
+ }, {
1331
+ kind: "exit_nonzero";
1332
+ }>, z.ZodObject<{
1333
+ kind: z.ZodLiteral<"output_includes">;
1334
+ text: z.ZodString;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ kind: "output_includes";
1337
+ text: string;
1338
+ }, {
1339
+ kind: "output_includes";
1340
+ text: string;
1341
+ }>, z.ZodObject<{
1342
+ kind: z.ZodLiteral<"output_excludes">;
1343
+ text: z.ZodString;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ kind: "output_excludes";
1346
+ text: string;
1347
+ }, {
1348
+ kind: "output_excludes";
1349
+ text: string;
1350
+ }>]>;
1351
+ claim: z.ZodOptional<z.ZodString>;
1352
+ }, "strip", z.ZodTypeAny, {
1353
+ command: string[];
1354
+ confirm_if: {
1355
+ kind: "exit_zero";
1356
+ } | {
1357
+ kind: "exit_nonzero";
1358
+ } | {
1359
+ kind: "output_includes";
1360
+ text: string;
1361
+ } | {
1362
+ kind: "output_excludes";
1363
+ text: string;
1364
+ };
1365
+ claim?: string | undefined;
1366
+ }, {
1367
+ command: string[];
1368
+ confirm_if: {
1369
+ kind: "exit_zero";
1370
+ } | {
1371
+ kind: "exit_nonzero";
1372
+ } | {
1373
+ kind: "output_includes";
1374
+ text: string;
1375
+ } | {
1376
+ kind: "output_excludes";
1377
+ text: string;
1378
+ };
1379
+ claim?: string | undefined;
1380
+ }>>;
1381
+ contract_goal_id: z.ZodOptional<z.ZodString>;
1382
+ contract_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1383
+ verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1384
+ targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1385
+ analyzer_provenance: z.ZodOptional<z.ZodObject<{
1386
+ analyzer_id: z.ZodString;
1387
+ rule: z.ZodOptional<z.ZodString>;
1388
+ path: z.ZodString;
1389
+ snippet_hash: z.ZodString;
1390
+ }, "strict", z.ZodTypeAny, {
1391
+ path: string;
1392
+ analyzer_id: string;
1393
+ snippet_hash: string;
1394
+ rule?: string | undefined;
1395
+ }, {
1396
+ path: string;
1397
+ analyzer_id: string;
1398
+ snippet_hash: string;
1399
+ rule?: string | undefined;
1400
+ }>>;
1401
+ lead_lineage: z.ZodOptional<z.ZodObject<{
1402
+ producer: z.ZodString;
1403
+ source_hash: z.ZodString;
1404
+ confirmation: z.ZodLiteral<"lead">;
1405
+ }, "strict", z.ZodTypeAny, {
1406
+ producer: string;
1407
+ source_hash: string;
1408
+ confirmation: "lead";
1409
+ }, {
1410
+ producer: string;
1411
+ source_hash: string;
1412
+ confirmation: "lead";
1413
+ }>>;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ id: string;
1416
+ confidence: "high" | "low" | "medium";
1417
+ title: string;
1418
+ category: string;
1419
+ severity: "info" | "high" | "low" | "critical" | "medium";
1420
+ lens: string;
1421
+ summary: string;
1422
+ affected_files: {
1423
+ path: string;
1424
+ symbol?: string | undefined;
1425
+ line_start?: number | undefined;
1426
+ line_end?: number | undefined;
1427
+ quoted_text?: string | undefined;
1428
+ no_quotable_span?: string | undefined;
1429
+ hash_at_plan_time?: string | undefined;
1430
+ }[];
1431
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1432
+ impact?: string | undefined;
1433
+ likelihood?: string | undefined;
1434
+ evidence?: string[] | undefined;
1435
+ reproduction?: string[] | undefined;
1436
+ systemic?: boolean | undefined;
1437
+ related_findings?: string[] | undefined;
1438
+ theme_id?: string | undefined;
1439
+ blast_radius?: number | undefined;
1440
+ evidence_grounded?: boolean | undefined;
1441
+ grounding?: {
1442
+ status: "grounded" | "ungrounded" | "refuted";
1443
+ reason?: string | undefined;
1444
+ } | undefined;
1445
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1446
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1447
+ executable_anchor?: {
1448
+ command: string[];
1449
+ confirm_if: {
1450
+ kind: "exit_zero";
1451
+ } | {
1452
+ kind: "exit_nonzero";
1453
+ } | {
1454
+ kind: "output_includes";
1455
+ text: string;
1456
+ } | {
1457
+ kind: "output_excludes";
1458
+ text: string;
1459
+ };
1460
+ claim?: string | undefined;
1461
+ } | undefined;
1462
+ contract_goal_id?: string | undefined;
1463
+ contract_obligation_ids?: string[] | undefined;
1464
+ verification_obligation_ids?: string[] | undefined;
1465
+ targeted_commands?: string[] | undefined;
1466
+ analyzer_provenance?: {
1467
+ path: string;
1468
+ analyzer_id: string;
1469
+ snippet_hash: string;
1470
+ rule?: string | undefined;
1471
+ } | undefined;
1472
+ lead_lineage?: {
1473
+ producer: string;
1474
+ source_hash: string;
1475
+ confirmation: "lead";
1476
+ } | undefined;
1477
+ }, {
1478
+ id: string;
1479
+ confidence: "high" | "low" | "medium";
1480
+ title: string;
1481
+ category: string;
1482
+ severity: "info" | "high" | "low" | "critical" | "medium";
1483
+ lens: string;
1484
+ summary: string;
1485
+ affected_files: {
1486
+ path: string;
1487
+ symbol?: string | undefined;
1488
+ line_start?: number | undefined;
1489
+ line_end?: number | undefined;
1490
+ quoted_text?: string | undefined;
1491
+ no_quotable_span?: string | undefined;
1492
+ hash_at_plan_time?: string | undefined;
1493
+ }[];
1494
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1495
+ impact?: string | undefined;
1496
+ likelihood?: string | undefined;
1497
+ evidence?: string[] | undefined;
1498
+ reproduction?: string[] | undefined;
1499
+ systemic?: boolean | undefined;
1500
+ related_findings?: string[] | undefined;
1501
+ theme_id?: string | undefined;
1502
+ blast_radius?: number | undefined;
1503
+ evidence_grounded?: boolean | undefined;
1504
+ grounding?: {
1505
+ status: "grounded" | "ungrounded" | "refuted";
1506
+ reason?: string | undefined;
1507
+ } | undefined;
1508
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1509
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1510
+ executable_anchor?: {
1511
+ command: string[];
1512
+ confirm_if: {
1513
+ kind: "exit_zero";
1514
+ } | {
1515
+ kind: "exit_nonzero";
1516
+ } | {
1517
+ kind: "output_includes";
1518
+ text: string;
1519
+ } | {
1520
+ kind: "output_excludes";
1521
+ text: string;
1522
+ };
1523
+ claim?: string | undefined;
1524
+ } | undefined;
1525
+ contract_goal_id?: string | undefined;
1526
+ contract_obligation_ids?: string[] | undefined;
1527
+ verification_obligation_ids?: string[] | undefined;
1528
+ targeted_commands?: string[] | undefined;
1529
+ analyzer_provenance?: {
1530
+ path: string;
1531
+ analyzer_id: string;
1532
+ snippet_hash: string;
1533
+ rule?: string | undefined;
1534
+ } | undefined;
1535
+ lead_lineage?: {
1536
+ producer: string;
1537
+ source_hash: string;
1538
+ confirmation: "lead";
1539
+ } | undefined;
1540
+ }>>;
1541
+ unit_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1542
+ unit_dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1543
+ unit_statuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1544
+ final_status: z.ZodOptional<z.ZodEnum<["fixed", "failed", "skipped", "ignored", "pending", "deferred"]>>;
1545
+ original_state: z.ZodOptional<z.ZodString>;
692
1546
  conformance_review: z.ZodOptional<z.ZodEffects<z.ZodObject<{
693
1547
  requirement: z.ZodLiteral<"independent">;
694
1548
  binding: z.ZodString;
@@ -740,7 +1594,7 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
740
1594
  lens: z.ZodString;
741
1595
  /** Distinct file extensions of the finding's affected files (e.g. [".ts"]). */
742
1596
  file_exts: z.ZodArray<z.ZodString, "many">;
743
- outcome: z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked", "verified_already_fixed", "refuted"]>;
1597
+ outcome: z.ZodEnum<["resolved", "verified_no_change", "inappropriate", "ignored", "blocked", "pending", "deferred", "verified_already_fixed", "refuted"]>;
744
1598
  /** How many times the item was sent back for rework before this outcome. */
745
1599
  rework_count: z.ZodNumber;
746
1600
  /** The run's closing-action status (e.g. "success", "failed"). */
@@ -806,13 +1660,14 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
806
1660
  */
807
1661
  recorded_by_module: z.ZodOptional<z.ZodString>;
808
1662
  }, "strict", z.ZodTypeAny, {
809
- outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
1663
+ outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
810
1664
  lens: string;
811
1665
  finding_id: string;
812
1666
  file_exts: string[];
813
1667
  rework_count: number;
814
1668
  closing_status: string;
815
1669
  reason?: string | undefined;
1670
+ unit_ids?: string[] | undefined;
816
1671
  evidence?: {
817
1672
  line: string;
818
1673
  file: string;
@@ -829,6 +1684,74 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
829
1684
  binding: string;
830
1685
  } | undefined;
831
1686
  duration_ms?: number | undefined;
1687
+ finding?: {
1688
+ id: string;
1689
+ confidence: "high" | "low" | "medium";
1690
+ title: string;
1691
+ category: string;
1692
+ severity: "info" | "high" | "low" | "critical" | "medium";
1693
+ lens: string;
1694
+ summary: string;
1695
+ affected_files: {
1696
+ path: string;
1697
+ symbol?: string | undefined;
1698
+ line_start?: number | undefined;
1699
+ line_end?: number | undefined;
1700
+ quoted_text?: string | undefined;
1701
+ no_quotable_span?: string | undefined;
1702
+ hash_at_plan_time?: string | undefined;
1703
+ }[];
1704
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1705
+ impact?: string | undefined;
1706
+ likelihood?: string | undefined;
1707
+ evidence?: string[] | undefined;
1708
+ reproduction?: string[] | undefined;
1709
+ systemic?: boolean | undefined;
1710
+ related_findings?: string[] | undefined;
1711
+ theme_id?: string | undefined;
1712
+ blast_radius?: number | undefined;
1713
+ evidence_grounded?: boolean | undefined;
1714
+ grounding?: {
1715
+ status: "grounded" | "ungrounded" | "refuted";
1716
+ reason?: string | undefined;
1717
+ } | undefined;
1718
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1719
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1720
+ executable_anchor?: {
1721
+ command: string[];
1722
+ confirm_if: {
1723
+ kind: "exit_zero";
1724
+ } | {
1725
+ kind: "exit_nonzero";
1726
+ } | {
1727
+ kind: "output_includes";
1728
+ text: string;
1729
+ } | {
1730
+ kind: "output_excludes";
1731
+ text: string;
1732
+ };
1733
+ claim?: string | undefined;
1734
+ } | undefined;
1735
+ contract_goal_id?: string | undefined;
1736
+ contract_obligation_ids?: string[] | undefined;
1737
+ verification_obligation_ids?: string[] | undefined;
1738
+ targeted_commands?: string[] | undefined;
1739
+ analyzer_provenance?: {
1740
+ path: string;
1741
+ analyzer_id: string;
1742
+ snippet_hash: string;
1743
+ rule?: string | undefined;
1744
+ } | undefined;
1745
+ lead_lineage?: {
1746
+ producer: string;
1747
+ source_hash: string;
1748
+ confirmation: "lead";
1749
+ } | undefined;
1750
+ } | undefined;
1751
+ unit_dependencies?: string[] | undefined;
1752
+ unit_statuses?: Record<string, string> | undefined;
1753
+ final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
1754
+ original_state?: string | undefined;
832
1755
  closing_status_reason?: string | undefined;
833
1756
  started_at?: string | undefined;
834
1757
  completed_at?: string | undefined;
@@ -839,13 +1762,14 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
839
1762
  } | undefined;
840
1763
  recorded_by_module?: string | undefined;
841
1764
  }, {
842
- outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
1765
+ outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
843
1766
  lens: string;
844
1767
  finding_id: string;
845
1768
  file_exts: string[];
846
1769
  rework_count: number;
847
1770
  closing_status: string;
848
1771
  reason?: string | undefined;
1772
+ unit_ids?: string[] | undefined;
849
1773
  evidence?: {
850
1774
  line: string;
851
1775
  file: string;
@@ -862,6 +1786,74 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
862
1786
  binding: string;
863
1787
  } | undefined;
864
1788
  duration_ms?: number | undefined;
1789
+ finding?: {
1790
+ id: string;
1791
+ confidence: "high" | "low" | "medium";
1792
+ title: string;
1793
+ category: string;
1794
+ severity: "info" | "high" | "low" | "critical" | "medium";
1795
+ lens: string;
1796
+ summary: string;
1797
+ affected_files: {
1798
+ path: string;
1799
+ symbol?: string | undefined;
1800
+ line_start?: number | undefined;
1801
+ line_end?: number | undefined;
1802
+ quoted_text?: string | undefined;
1803
+ no_quotable_span?: string | undefined;
1804
+ hash_at_plan_time?: string | undefined;
1805
+ }[];
1806
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
1807
+ impact?: string | undefined;
1808
+ likelihood?: string | undefined;
1809
+ evidence?: string[] | undefined;
1810
+ reproduction?: string[] | undefined;
1811
+ systemic?: boolean | undefined;
1812
+ related_findings?: string[] | undefined;
1813
+ theme_id?: string | undefined;
1814
+ blast_radius?: number | undefined;
1815
+ evidence_grounded?: boolean | undefined;
1816
+ grounding?: {
1817
+ status: "grounded" | "ungrounded" | "refuted";
1818
+ reason?: string | undefined;
1819
+ } | undefined;
1820
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1821
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1822
+ executable_anchor?: {
1823
+ command: string[];
1824
+ confirm_if: {
1825
+ kind: "exit_zero";
1826
+ } | {
1827
+ kind: "exit_nonzero";
1828
+ } | {
1829
+ kind: "output_includes";
1830
+ text: string;
1831
+ } | {
1832
+ kind: "output_excludes";
1833
+ text: string;
1834
+ };
1835
+ claim?: string | undefined;
1836
+ } | undefined;
1837
+ contract_goal_id?: string | undefined;
1838
+ contract_obligation_ids?: string[] | undefined;
1839
+ verification_obligation_ids?: string[] | undefined;
1840
+ targeted_commands?: string[] | undefined;
1841
+ analyzer_provenance?: {
1842
+ path: string;
1843
+ analyzer_id: string;
1844
+ snippet_hash: string;
1845
+ rule?: string | undefined;
1846
+ } | undefined;
1847
+ lead_lineage?: {
1848
+ producer: string;
1849
+ source_hash: string;
1850
+ confirmation: "lead";
1851
+ } | undefined;
1852
+ } | undefined;
1853
+ unit_dependencies?: string[] | undefined;
1854
+ unit_statuses?: Record<string, string> | undefined;
1855
+ final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
1856
+ original_state?: string | undefined;
865
1857
  closing_status_reason?: string | undefined;
866
1858
  started_at?: string | undefined;
867
1859
  completed_at?: string | undefined;
@@ -872,25 +1864,177 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
872
1864
  } | undefined;
873
1865
  recorded_by_module?: string | undefined;
874
1866
  }>, "many">;
1867
+ execution_outcomes: z.ZodArray<z.ZodObject<{
1868
+ unit_id: z.ZodString;
1869
+ title: z.ZodString;
1870
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
1871
+ status: z.ZodString;
1872
+ required_tests: z.ZodArray<z.ZodString, "many">;
1873
+ evidence: z.ZodArray<z.ZodString, "many">;
1874
+ rework_count: z.ZodNumber;
1875
+ landed_commit: z.ZodOptional<z.ZodString>;
1876
+ landed_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1877
+ reason: z.ZodOptional<z.ZodString>;
1878
+ started_at: z.ZodOptional<z.ZodString>;
1879
+ completed_at: z.ZodOptional<z.ZodString>;
1880
+ conformance_review: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1881
+ requirement: z.ZodLiteral<"independent">;
1882
+ binding: z.ZodString;
1883
+ review: z.ZodObject<{
1884
+ mode: z.ZodEnum<["independent", "degraded", "unavailable"]>;
1885
+ reason: z.ZodString;
1886
+ }, "strict", z.ZodTypeAny, {
1887
+ reason: string;
1888
+ mode: "degraded" | "independent" | "unavailable";
1889
+ }, {
1890
+ reason: string;
1891
+ mode: "degraded" | "independent" | "unavailable";
1892
+ }>;
1893
+ summary: z.ZodString;
1894
+ }, "strict", z.ZodTypeAny, {
1895
+ summary: string;
1896
+ review: {
1897
+ reason: string;
1898
+ mode: "degraded" | "independent" | "unavailable";
1899
+ };
1900
+ requirement: "independent";
1901
+ binding: string;
1902
+ }, {
1903
+ summary: string;
1904
+ review: {
1905
+ reason: string;
1906
+ mode: "degraded" | "independent" | "unavailable";
1907
+ };
1908
+ requirement: "independent";
1909
+ binding: string;
1910
+ }>, {
1911
+ summary: string;
1912
+ review: {
1913
+ reason: string;
1914
+ mode: "degraded" | "independent" | "unavailable";
1915
+ };
1916
+ requirement: "independent";
1917
+ binding: string;
1918
+ }, {
1919
+ summary: string;
1920
+ review: {
1921
+ reason: string;
1922
+ mode: "degraded" | "independent" | "unavailable";
1923
+ };
1924
+ requirement: "independent";
1925
+ binding: string;
1926
+ }>>;
1927
+ }, "strict", z.ZodTypeAny, {
1928
+ status: string;
1929
+ unit_id: string;
1930
+ title: string;
1931
+ evidence: string[];
1932
+ source_finding_ids: string[];
1933
+ required_tests: string[];
1934
+ rework_count: number;
1935
+ reason?: string | undefined;
1936
+ conformance_review?: {
1937
+ summary: string;
1938
+ review: {
1939
+ reason: string;
1940
+ mode: "degraded" | "independent" | "unavailable";
1941
+ };
1942
+ requirement: "independent";
1943
+ binding: string;
1944
+ } | undefined;
1945
+ started_at?: string | undefined;
1946
+ completed_at?: string | undefined;
1947
+ landed_commit?: string | undefined;
1948
+ landed_files?: string[] | undefined;
1949
+ }, {
1950
+ status: string;
1951
+ unit_id: string;
1952
+ title: string;
1953
+ evidence: string[];
1954
+ source_finding_ids: string[];
1955
+ required_tests: string[];
1956
+ rework_count: number;
1957
+ reason?: string | undefined;
1958
+ conformance_review?: {
1959
+ summary: string;
1960
+ review: {
1961
+ reason: string;
1962
+ mode: "degraded" | "independent" | "unavailable";
1963
+ };
1964
+ requirement: "independent";
1965
+ binding: string;
1966
+ } | undefined;
1967
+ started_at?: string | undefined;
1968
+ completed_at?: string | undefined;
1969
+ landed_commit?: string | undefined;
1970
+ landed_files?: string[] | undefined;
1971
+ }>, "many">;
1972
+ objective: z.ZodOptional<z.ZodString>;
1973
+ request: z.ZodOptional<z.ZodObject<{
1974
+ id: z.ZodString;
1975
+ text: z.ZodString;
1976
+ source_paths: z.ZodArray<z.ZodString, "many">;
1977
+ }, "strict", z.ZodTypeAny, {
1978
+ id: string;
1979
+ text: string;
1980
+ source_paths: string[];
1981
+ }, {
1982
+ id: string;
1983
+ text: string;
1984
+ source_paths: string[];
1985
+ }>>;
1986
+ request_disposition: z.ZodOptional<z.ZodObject<{
1987
+ status: z.ZodEnum<["already_satisfied", "deferred"]>;
1988
+ reason: z.ZodString;
1989
+ evidence: z.ZodArray<z.ZodString, "many">;
1990
+ }, "strict", z.ZodTypeAny, {
1991
+ status: "deferred" | "already_satisfied";
1992
+ reason: string;
1993
+ evidence: string[];
1994
+ }, {
1995
+ status: "deferred" | "already_satisfied";
1996
+ reason: string;
1997
+ evidence: string[];
1998
+ }>>;
1999
+ request_outcome: z.ZodOptional<z.ZodObject<{
2000
+ status: z.ZodEnum<["resolved", "already_satisfied", "ignored", "pending", "deferred", "blocked"]>;
2001
+ reason: z.ZodString;
2002
+ evidence: z.ZodArray<z.ZodString, "many">;
2003
+ unit_ids: z.ZodArray<z.ZodString, "many">;
2004
+ }, "strict", z.ZodTypeAny, {
2005
+ status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
2006
+ reason: string;
2007
+ unit_ids: string[];
2008
+ evidence: string[];
2009
+ }, {
2010
+ status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
2011
+ reason: string;
2012
+ unit_ids: string[];
2013
+ evidence: string[];
2014
+ }>>;
875
2015
  }, "strip", z.ZodTypeAny, {
876
- contract_version: string;
2016
+ contract_version: "remediate-code-outcomes/v2";
877
2017
  total: number;
878
2018
  by_outcome: {
879
2019
  refuted: number;
2020
+ deferred: number;
880
2021
  resolved: number;
881
2022
  verified_no_change: number;
882
2023
  inappropriate: number;
883
2024
  ignored: number;
884
2025
  blocked: number;
2026
+ pending: number;
885
2027
  verified_already_fixed: number;
886
2028
  };
887
2029
  by_lens: Record<string, {
888
2030
  refuted?: number | undefined;
2031
+ deferred?: number | undefined;
889
2032
  resolved?: number | undefined;
890
2033
  verified_no_change?: number | undefined;
891
2034
  inappropriate?: number | undefined;
892
2035
  ignored?: number | undefined;
893
2036
  blocked?: number | undefined;
2037
+ pending?: number | undefined;
894
2038
  verified_already_fixed?: number | undefined;
895
2039
  }>;
896
2040
  final_gate: {
@@ -919,13 +2063,14 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
919
2063
  dropped_lines: number;
920
2064
  };
921
2065
  outcomes: {
922
- outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
2066
+ outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
923
2067
  lens: string;
924
2068
  finding_id: string;
925
2069
  file_exts: string[];
926
2070
  rework_count: number;
927
2071
  closing_status: string;
928
2072
  reason?: string | undefined;
2073
+ unit_ids?: string[] | undefined;
929
2074
  evidence?: {
930
2075
  line: string;
931
2076
  file: string;
@@ -942,6 +2087,74 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
942
2087
  binding: string;
943
2088
  } | undefined;
944
2089
  duration_ms?: number | undefined;
2090
+ finding?: {
2091
+ id: string;
2092
+ confidence: "high" | "low" | "medium";
2093
+ title: string;
2094
+ category: string;
2095
+ severity: "info" | "high" | "low" | "critical" | "medium";
2096
+ lens: string;
2097
+ summary: string;
2098
+ affected_files: {
2099
+ path: string;
2100
+ symbol?: string | undefined;
2101
+ line_start?: number | undefined;
2102
+ line_end?: number | undefined;
2103
+ quoted_text?: string | undefined;
2104
+ no_quotable_span?: string | undefined;
2105
+ hash_at_plan_time?: string | undefined;
2106
+ }[];
2107
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2108
+ impact?: string | undefined;
2109
+ likelihood?: string | undefined;
2110
+ evidence?: string[] | undefined;
2111
+ reproduction?: string[] | undefined;
2112
+ systemic?: boolean | undefined;
2113
+ related_findings?: string[] | undefined;
2114
+ theme_id?: string | undefined;
2115
+ blast_radius?: number | undefined;
2116
+ evidence_grounded?: boolean | undefined;
2117
+ grounding?: {
2118
+ status: "grounded" | "ungrounded" | "refuted";
2119
+ reason?: string | undefined;
2120
+ } | undefined;
2121
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2122
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2123
+ executable_anchor?: {
2124
+ command: string[];
2125
+ confirm_if: {
2126
+ kind: "exit_zero";
2127
+ } | {
2128
+ kind: "exit_nonzero";
2129
+ } | {
2130
+ kind: "output_includes";
2131
+ text: string;
2132
+ } | {
2133
+ kind: "output_excludes";
2134
+ text: string;
2135
+ };
2136
+ claim?: string | undefined;
2137
+ } | undefined;
2138
+ contract_goal_id?: string | undefined;
2139
+ contract_obligation_ids?: string[] | undefined;
2140
+ verification_obligation_ids?: string[] | undefined;
2141
+ targeted_commands?: string[] | undefined;
2142
+ analyzer_provenance?: {
2143
+ path: string;
2144
+ analyzer_id: string;
2145
+ snippet_hash: string;
2146
+ rule?: string | undefined;
2147
+ } | undefined;
2148
+ lead_lineage?: {
2149
+ producer: string;
2150
+ source_hash: string;
2151
+ confirmation: "lead";
2152
+ } | undefined;
2153
+ } | undefined;
2154
+ unit_dependencies?: string[] | undefined;
2155
+ unit_statuses?: Record<string, string> | undefined;
2156
+ final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
2157
+ original_state?: string | undefined;
945
2158
  closing_status_reason?: string | undefined;
946
2159
  started_at?: string | undefined;
947
2160
  completed_at?: string | undefined;
@@ -952,7 +2165,36 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
952
2165
  } | undefined;
953
2166
  recorded_by_module?: string | undefined;
954
2167
  }[];
2168
+ execution_outcomes: {
2169
+ status: string;
2170
+ unit_id: string;
2171
+ title: string;
2172
+ evidence: string[];
2173
+ source_finding_ids: string[];
2174
+ required_tests: string[];
2175
+ rework_count: number;
2176
+ reason?: string | undefined;
2177
+ conformance_review?: {
2178
+ summary: string;
2179
+ review: {
2180
+ reason: string;
2181
+ mode: "degraded" | "independent" | "unavailable";
2182
+ };
2183
+ requirement: "independent";
2184
+ binding: string;
2185
+ } | undefined;
2186
+ started_at?: string | undefined;
2187
+ completed_at?: string | undefined;
2188
+ landed_commit?: string | undefined;
2189
+ landed_files?: string[] | undefined;
2190
+ }[];
955
2191
  duration_ms?: number | undefined;
2192
+ objective?: string | undefined;
2193
+ request_disposition?: {
2194
+ status: "deferred" | "already_satisfied";
2195
+ reason: string;
2196
+ evidence: string[];
2197
+ } | undefined;
956
2198
  started_at?: string | undefined;
957
2199
  completed_at?: string | undefined;
958
2200
  contract_reviews?: {
@@ -966,25 +2208,40 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
966
2208
  reviewed_content_hash: string;
967
2209
  artifact: string;
968
2210
  }[] | undefined;
2211
+ request?: {
2212
+ id: string;
2213
+ text: string;
2214
+ source_paths: string[];
2215
+ } | undefined;
2216
+ request_outcome?: {
2217
+ status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
2218
+ reason: string;
2219
+ unit_ids: string[];
2220
+ evidence: string[];
2221
+ } | undefined;
969
2222
  }, {
970
- contract_version: string;
2223
+ contract_version: "remediate-code-outcomes/v2";
971
2224
  total: number;
972
2225
  by_outcome: {
973
2226
  refuted: number;
2227
+ deferred: number;
974
2228
  resolved: number;
975
2229
  verified_no_change: number;
976
2230
  inappropriate: number;
977
2231
  ignored: number;
978
2232
  blocked: number;
2233
+ pending: number;
979
2234
  verified_already_fixed: number;
980
2235
  };
981
2236
  by_lens: Record<string, {
982
2237
  refuted?: number | undefined;
2238
+ deferred?: number | undefined;
983
2239
  resolved?: number | undefined;
984
2240
  verified_no_change?: number | undefined;
985
2241
  inappropriate?: number | undefined;
986
2242
  ignored?: number | undefined;
987
2243
  blocked?: number | undefined;
2244
+ pending?: number | undefined;
988
2245
  verified_already_fixed?: number | undefined;
989
2246
  }>;
990
2247
  final_gate: {
@@ -1013,13 +2270,14 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1013
2270
  dropped_lines: number;
1014
2271
  };
1015
2272
  outcomes: {
1016
- outcome: "refuted" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "verified_already_fixed";
2273
+ outcome: "refuted" | "deferred" | "resolved" | "verified_no_change" | "inappropriate" | "ignored" | "blocked" | "pending" | "verified_already_fixed";
1017
2274
  lens: string;
1018
2275
  finding_id: string;
1019
2276
  file_exts: string[];
1020
2277
  rework_count: number;
1021
2278
  closing_status: string;
1022
2279
  reason?: string | undefined;
2280
+ unit_ids?: string[] | undefined;
1023
2281
  evidence?: {
1024
2282
  line: string;
1025
2283
  file: string;
@@ -1036,6 +2294,74 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1036
2294
  binding: string;
1037
2295
  } | undefined;
1038
2296
  duration_ms?: number | undefined;
2297
+ finding?: {
2298
+ id: string;
2299
+ confidence: "high" | "low" | "medium";
2300
+ title: string;
2301
+ category: string;
2302
+ severity: "info" | "high" | "low" | "critical" | "medium";
2303
+ lens: string;
2304
+ summary: string;
2305
+ affected_files: {
2306
+ path: string;
2307
+ symbol?: string | undefined;
2308
+ line_start?: number | undefined;
2309
+ line_end?: number | undefined;
2310
+ quoted_text?: string | undefined;
2311
+ no_quotable_span?: string | undefined;
2312
+ hash_at_plan_time?: string | undefined;
2313
+ }[];
2314
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
2315
+ impact?: string | undefined;
2316
+ likelihood?: string | undefined;
2317
+ evidence?: string[] | undefined;
2318
+ reproduction?: string[] | undefined;
2319
+ systemic?: boolean | undefined;
2320
+ related_findings?: string[] | undefined;
2321
+ theme_id?: string | undefined;
2322
+ blast_radius?: number | undefined;
2323
+ evidence_grounded?: boolean | undefined;
2324
+ grounding?: {
2325
+ status: "grounded" | "ungrounded" | "refuted";
2326
+ reason?: string | undefined;
2327
+ } | undefined;
2328
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2329
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2330
+ executable_anchor?: {
2331
+ command: string[];
2332
+ confirm_if: {
2333
+ kind: "exit_zero";
2334
+ } | {
2335
+ kind: "exit_nonzero";
2336
+ } | {
2337
+ kind: "output_includes";
2338
+ text: string;
2339
+ } | {
2340
+ kind: "output_excludes";
2341
+ text: string;
2342
+ };
2343
+ claim?: string | undefined;
2344
+ } | undefined;
2345
+ contract_goal_id?: string | undefined;
2346
+ contract_obligation_ids?: string[] | undefined;
2347
+ verification_obligation_ids?: string[] | undefined;
2348
+ targeted_commands?: string[] | undefined;
2349
+ analyzer_provenance?: {
2350
+ path: string;
2351
+ analyzer_id: string;
2352
+ snippet_hash: string;
2353
+ rule?: string | undefined;
2354
+ } | undefined;
2355
+ lead_lineage?: {
2356
+ producer: string;
2357
+ source_hash: string;
2358
+ confirmation: "lead";
2359
+ } | undefined;
2360
+ } | undefined;
2361
+ unit_dependencies?: string[] | undefined;
2362
+ unit_statuses?: Record<string, string> | undefined;
2363
+ final_status?: "fixed" | "deferred" | "ignored" | "pending" | "skipped" | "failed" | undefined;
2364
+ original_state?: string | undefined;
1039
2365
  closing_status_reason?: string | undefined;
1040
2366
  started_at?: string | undefined;
1041
2367
  completed_at?: string | undefined;
@@ -1046,7 +2372,36 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1046
2372
  } | undefined;
1047
2373
  recorded_by_module?: string | undefined;
1048
2374
  }[];
2375
+ execution_outcomes: {
2376
+ status: string;
2377
+ unit_id: string;
2378
+ title: string;
2379
+ evidence: string[];
2380
+ source_finding_ids: string[];
2381
+ required_tests: string[];
2382
+ rework_count: number;
2383
+ reason?: string | undefined;
2384
+ conformance_review?: {
2385
+ summary: string;
2386
+ review: {
2387
+ reason: string;
2388
+ mode: "degraded" | "independent" | "unavailable";
2389
+ };
2390
+ requirement: "independent";
2391
+ binding: string;
2392
+ } | undefined;
2393
+ started_at?: string | undefined;
2394
+ completed_at?: string | undefined;
2395
+ landed_commit?: string | undefined;
2396
+ landed_files?: string[] | undefined;
2397
+ }[];
1049
2398
  duration_ms?: number | undefined;
2399
+ objective?: string | undefined;
2400
+ request_disposition?: {
2401
+ status: "deferred" | "already_satisfied";
2402
+ reason: string;
2403
+ evidence: string[];
2404
+ } | undefined;
1050
2405
  started_at?: string | undefined;
1051
2406
  completed_at?: string | undefined;
1052
2407
  contract_reviews?: {
@@ -1060,6 +2415,17 @@ export declare const RemediationOutcomesReportSchema: z.ZodObject<{
1060
2415
  reviewed_content_hash: string;
1061
2416
  artifact: string;
1062
2417
  }[] | undefined;
2418
+ request?: {
2419
+ id: string;
2420
+ text: string;
2421
+ source_paths: string[];
2422
+ } | undefined;
2423
+ request_outcome?: {
2424
+ status: "deferred" | "already_satisfied" | "resolved" | "ignored" | "blocked" | "pending";
2425
+ reason: string;
2426
+ unit_ids: string[];
2427
+ evidence: string[];
2428
+ } | undefined;
1063
2429
  }>;
1064
2430
  export type RemediationOutcomesReport = z.infer<typeof RemediationOutcomesReportSchema>;
1065
2431
  //# sourceMappingURL=remediationOutcome.d.ts.map