audit-tools 0.52.5 → 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 (347) 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/dist/remediate/contractPipeline/artifactNames.d.ts +0 -8
  242. package/dist/remediate/contractPipeline/artifactNames.d.ts.map +0 -1
  243. package/dist/remediate/contractPipeline/artifactNames.js +0 -28
  244. package/dist/remediate/contractPipeline/artifactNames.js.map +0 -1
  245. package/dist/remediate/contractPipeline/artifactStore.d.ts +0 -219
  246. package/dist/remediate/contractPipeline/artifactStore.d.ts.map +0 -1
  247. package/dist/remediate/contractPipeline/artifactStore.js +0 -436
  248. package/dist/remediate/contractPipeline/artifactStore.js.map +0 -1
  249. package/dist/remediate/contractPipeline/changeClassification.d.ts +0 -130
  250. package/dist/remediate/contractPipeline/changeClassification.d.ts.map +0 -1
  251. package/dist/remediate/contractPipeline/changeClassification.js +0 -446
  252. package/dist/remediate/contractPipeline/changeClassification.js.map +0 -1
  253. package/dist/remediate/contractPipeline/contractReviewBinding.d.ts +0 -28
  254. package/dist/remediate/contractPipeline/contractReviewBinding.d.ts.map +0 -1
  255. package/dist/remediate/contractPipeline/contractReviewBinding.js +0 -75
  256. package/dist/remediate/contractPipeline/contractReviewBinding.js.map +0 -1
  257. package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts +0 -27
  258. package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts.map +0 -1
  259. package/dist/remediate/contractPipeline/counterexampleFingerprint.js +0 -37
  260. package/dist/remediate/contractPipeline/counterexampleFingerprint.js.map +0 -1
  261. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts +0 -131
  262. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +0 -1
  263. package/dist/remediate/contractPipeline/cyclicSeamResolution.js +0 -257
  264. package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +0 -1
  265. package/dist/remediate/contractPipeline/derive.d.ts +0 -173
  266. package/dist/remediate/contractPipeline/derive.d.ts.map +0 -1
  267. package/dist/remediate/contractPipeline/derive.js +0 -477
  268. package/dist/remediate/contractPipeline/derive.js.map +0 -1
  269. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts +0 -50
  270. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts.map +0 -1
  271. package/dist/remediate/contractPipeline/finalizedContractFields.js +0 -77
  272. package/dist/remediate/contractPipeline/finalizedContractFields.js.map +0 -1
  273. package/dist/remediate/contractPipeline/idRegistry.d.ts +0 -144
  274. package/dist/remediate/contractPipeline/idRegistry.d.ts.map +0 -1
  275. package/dist/remediate/contractPipeline/idRegistry.js +0 -214
  276. package/dist/remediate/contractPipeline/idRegistry.js.map +0 -1
  277. package/dist/remediate/contractPipeline/obligationKinds.d.ts +0 -27
  278. package/dist/remediate/contractPipeline/obligationKinds.d.ts.map +0 -1
  279. package/dist/remediate/contractPipeline/obligationKinds.js +0 -18
  280. package/dist/remediate/contractPipeline/obligationKinds.js.map +0 -1
  281. package/dist/remediate/contractPipeline/phaseCut.d.ts +0 -125
  282. package/dist/remediate/contractPipeline/phaseCut.d.ts.map +0 -1
  283. package/dist/remediate/contractPipeline/phaseCut.js +0 -339
  284. package/dist/remediate/contractPipeline/phaseCut.js.map +0 -1
  285. package/dist/remediate/contractPipeline/phaseCutArtifact.d.ts +0 -31
  286. package/dist/remediate/contractPipeline/phaseCutArtifact.d.ts.map +0 -1
  287. package/dist/remediate/contractPipeline/phaseCutArtifact.js +0 -48
  288. package/dist/remediate/contractPipeline/phaseCutArtifact.js.map +0 -1
  289. package/dist/remediate/contractPipeline/repairState.d.ts +0 -110
  290. package/dist/remediate/contractPipeline/repairState.d.ts.map +0 -1
  291. package/dist/remediate/contractPipeline/repairState.js +0 -185
  292. package/dist/remediate/contractPipeline/repairState.js.map +0 -1
  293. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +0 -79
  294. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +0 -1
  295. package/dist/remediate/contractPipeline/reviewSnapshot.js +0 -140
  296. package/dist/remediate/contractPipeline/reviewSnapshot.js.map +0 -1
  297. package/dist/remediate/contractPipeline/semanticProjection.d.ts +0 -64
  298. package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +0 -1
  299. package/dist/remediate/contractPipeline/semanticProjection.js +0 -136
  300. package/dist/remediate/contractPipeline/semanticProjection.js.map +0 -1
  301. package/dist/remediate/contractPipeline/sketchSource.d.ts +0 -194
  302. package/dist/remediate/contractPipeline/sketchSource.d.ts.map +0 -1
  303. package/dist/remediate/contractPipeline/sketchSource.js +0 -262
  304. package/dist/remediate/contractPipeline/sketchSource.js.map +0 -1
  305. package/dist/remediate/contractPipeline/testPlanCarry.d.ts +0 -17
  306. package/dist/remediate/contractPipeline/testPlanCarry.d.ts.map +0 -1
  307. package/dist/remediate/contractPipeline/testPlanCarry.js +0 -72
  308. package/dist/remediate/contractPipeline/testPlanCarry.js.map +0 -1
  309. package/dist/remediate/steps/dispatch/marshal.d.ts +0 -7
  310. package/dist/remediate/steps/dispatch/marshal.d.ts.map +0 -1
  311. package/dist/remediate/steps/dispatch/marshal.js +0 -11
  312. package/dist/remediate/steps/dispatch/marshal.js.map +0 -1
  313. package/dist/remediate/validation/contractPipeline.d.ts +0 -35
  314. package/dist/remediate/validation/contractPipeline.d.ts.map +0 -1
  315. package/dist/remediate/validation/contractPipeline.js +0 -613
  316. package/dist/remediate/validation/contractPipeline.js.map +0 -1
  317. package/dist/remediate/validation/contractPipelineGates.d.ts +0 -272
  318. package/dist/remediate/validation/contractPipelineGates.d.ts.map +0 -1
  319. package/dist/remediate/validation/contractPipelineGates.js +0 -1397
  320. package/dist/remediate/validation/contractPipelineGates.js.map +0 -1
  321. package/dist/shared/types/contractPipeline/design.d.ts +0 -79
  322. package/dist/shared/types/contractPipeline/design.d.ts.map +0 -1
  323. package/dist/shared/types/contractPipeline/design.js +0 -16
  324. package/dist/shared/types/contractPipeline/design.js.map +0 -1
  325. package/dist/shared/types/contractPipeline/goal.d.ts +0 -41
  326. package/dist/shared/types/contractPipeline/goal.d.ts.map +0 -1
  327. package/dist/shared/types/contractPipeline/goal.js +0 -10
  328. package/dist/shared/types/contractPipeline/goal.js.map +0 -1
  329. package/dist/shared/types/contractPipeline/implementation.d.ts +0 -118
  330. package/dist/shared/types/contractPipeline/implementation.d.ts.map +0 -1
  331. package/dist/shared/types/contractPipeline/implementation.js +0 -13
  332. package/dist/shared/types/contractPipeline/implementation.js.map +0 -1
  333. package/dist/shared/types/contractPipeline/obligations.d.ts +0 -283
  334. package/dist/shared/types/contractPipeline/obligations.d.ts.map +0 -1
  335. package/dist/shared/types/contractPipeline/obligations.js +0 -84
  336. package/dist/shared/types/contractPipeline/obligations.js.map +0 -1
  337. package/dist/shared/types/contractPipeline/verification.d.ts.map +0 -1
  338. package/dist/shared/types/contractPipeline/verification.js +0 -10
  339. package/dist/shared/types/contractPipeline/verification.js.map +0 -1
  340. package/dist/shared/types/contractPipeline.d.ts +0 -48
  341. package/dist/shared/types/contractPipeline.d.ts.map +0 -1
  342. package/dist/shared/types/contractPipeline.js +0 -32
  343. package/dist/shared/types/contractPipeline.js.map +0 -1
  344. package/dist/shared/types/obligationLedger.d.ts +0 -39
  345. package/dist/shared/types/obligationLedger.d.ts.map +0 -1
  346. package/dist/shared/types/obligationLedger.js +0 -49
  347. package/dist/shared/types/obligationLedger.js.map +0 -1
@@ -1,191 +1,163 @@
1
1
  import type { AcceptedConformanceReview } from "../../shared/types/reviewIndependence.js";
2
+ export type { ExecutionRequirement, ExecutionUnit, ExecutionRequest } from "../../shared/types/executionPlan.js";
2
3
  import { z } from "zod";
3
4
  import type { RemediationItemStatus } from "./itemStatus.js";
4
- import type { Finding, RemediationOutcome, MechanicalVerification } from "audit-tools/shared";
5
+ import type { Finding, RemediationOutcome } from "audit-tools/shared";
5
6
  export type { Finding };
6
- import type { Evidence } from "../../shared/types/remediationOutcome.js";
7
- import type { PerFindingDisposition } from "./disposition.js";
8
- export declare const RemediationBlockSchema: z.ZodObject<{
9
- block_id: z.ZodString;
10
- items: z.ZodArray<z.ZodString, "many">;
11
- /**
12
- * Whether this block may run concurrently with its peers. First-class on the
13
- * block contract (not derived host-side) so the scheduler reads one source.
14
- */
15
- parallel_safe: z.ZodBoolean;
16
- /**
17
- * Block ids that must complete before this block runs. First-class (the
18
- * serialized schema-first chain head, CE-001): producers emit it, the
19
- * scheduler consumes it. Optional — absence means no upstream dependency.
20
- */
21
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
- /**
23
- * Commands to run as a post-merge verification gate after this block's
24
- * worktree branch is merged into the main tree. When present, these are
25
- * preferred over `RemediationPlan.test_command` for the gate check.
26
- */
27
- targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
- /**
29
- * Repo-relative paths that this block's implementation is expected to touch.
30
- * First-class and REQUIRED (an empty array is allowed, an omitted field is
31
- * rejected by `validateRemediationBlock` — which the state LOAD gate
32
- * delegates to, so the requirement holds on every path a block reaches a
33
- * consumer through): the file-ownership-disjoint scheduler and
34
- * `blockResolvedItemsOnCombinedFailure` both read it, so a block with no declared
35
- * surface is a producer bug, not an implicit empty.
36
- */
37
- touched_files: z.ZodArray<z.ZodString, "many">;
38
- /**
39
- * 0-based foundations→consumers phase ordinal (auto-phasing, T3). Derived
40
- * mechanically at promotion from the persisted phase cut (the module a block's
41
- * obligations belong to). The host handoff treats it as a hard barrier: a
42
- * block is never emitted until every lower-ordinal block is verified-complete,
43
- * giving a per-phase whole-repo green checkpoint. Optional — absent (or all
44
- * blocks sharing one ordinal) means a single phase, i.e. no barrier.
45
- */
46
- phase_ordinal: z.ZodOptional<z.ZodNumber>;
47
- /**
48
- * Whether the blocks sharing a co-file (same touched path) may still run in
49
- * parallel because their edit regions are disjoint. Additive + optional:
50
- * absence is equivalent to `false` (co-file blocks serialize by default), and
51
- * a pre-existing block with no such key still validates. Deliberately a bare
52
- * boolean — no WriteRegion / WriteAnchor / anchor apparatus lives on the block.
53
- */
54
- cofile_parallel_safe: z.ZodOptional<z.ZodBoolean>;
55
- /**
56
- * Deterministic advisory size derived from this block's unique physical
57
- * files. It is metadata for the host, never a backend-fit claim.
58
- */
59
- token_estimate: z.ZodOptional<z.ZodNumber>;
60
- /** Distinct instructions from the implementation node, carried into the bound prompt. */
61
- implementation_context: z.ZodOptional<z.ZodObject<{
62
- description: z.ZodOptional<z.ZodString>;
63
- preconditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
64
- expected_changes: z.ZodOptional<z.ZodString>;
65
- counterexamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
- id: z.ZodString;
67
- claim: z.ZodString;
68
- reproduction_steps: z.ZodArray<z.ZodString, "many">;
69
- expected: z.ZodString;
70
- actual: z.ZodString;
71
- violated_obligation_ids: z.ZodArray<z.ZodString, "many">;
72
- }, "strip", z.ZodTypeAny, {
73
- expected: string;
74
- id: string;
75
- claim: string;
76
- reproduction_steps: string[];
77
- actual: string;
78
- violated_obligation_ids: string[];
7
+ /** One reviewed semantic plan, carrying immutable source provenance. */
8
+ export declare const RemediationPlanSchema: z.ZodObject<{
9
+ plan_id: z.ZodString;
10
+ objective: z.ZodString;
11
+ non_goals: z.ZodArray<z.ZodString, "many">;
12
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
13
+ id: z.ZodString;
14
+ description: z.ZodString;
15
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
16
+ change_kind: z.ZodEnum<["behavior_change", "addition", "structural"]>;
17
+ assertions: z.ZodArray<z.ZodObject<{
18
+ kind: z.ZodEnum<["positive", "negative"]>;
19
+ description: z.ZodString;
20
+ scope_paths: z.ZodArray<z.ZodString, "many">;
21
+ }, "strict", z.ZodTypeAny, {
22
+ kind: "positive" | "negative";
23
+ description: string;
24
+ scope_paths: string[];
79
25
  }, {
80
- expected: string;
81
- id: string;
82
- claim: string;
83
- reproduction_steps: string[];
84
- actual: string;
85
- violated_obligation_ids: string[];
26
+ kind: "positive" | "negative";
27
+ description: string;
28
+ scope_paths: string[];
29
+ }>, "many">;
30
+ inapplicable_reason: z.ZodOptional<z.ZodString>;
31
+ }, "strict", z.ZodTypeAny, {
32
+ id: string;
33
+ description: string;
34
+ source_finding_ids: string[];
35
+ change_kind: "structural" | "behavior_change" | "addition";
36
+ assertions: {
37
+ kind: "positive" | "negative";
38
+ description: string;
39
+ scope_paths: string[];
40
+ }[];
41
+ inapplicable_reason?: string | undefined;
42
+ }, {
43
+ id: string;
44
+ description: string;
45
+ source_finding_ids: string[];
46
+ change_kind: "structural" | "behavior_change" | "addition";
47
+ assertions: {
48
+ kind: "positive" | "negative";
49
+ description: string;
50
+ scope_paths: string[];
51
+ }[];
52
+ inapplicable_reason?: string | undefined;
53
+ }>, {
54
+ id: string;
55
+ description: string;
56
+ source_finding_ids: string[];
57
+ change_kind: "structural" | "behavior_change" | "addition";
58
+ assertions: {
59
+ kind: "positive" | "negative";
60
+ description: string;
61
+ scope_paths: string[];
62
+ }[];
63
+ inapplicable_reason?: string | undefined;
64
+ }, {
65
+ id: string;
66
+ description: string;
67
+ source_finding_ids: string[];
68
+ change_kind: "structural" | "behavior_change" | "addition";
69
+ assertions: {
70
+ kind: "positive" | "negative";
71
+ description: string;
72
+ scope_paths: string[];
73
+ }[];
74
+ inapplicable_reason?: string | undefined;
75
+ }>, "many">;
76
+ units: z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ title: z.ZodString;
79
+ description: z.ZodString;
80
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
81
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
82
+ dependencies: z.ZodArray<z.ZodString, "many">;
83
+ phase_ordinal: z.ZodOptional<z.ZodNumber>;
84
+ read_paths: z.ZodArray<z.ZodString, "many">;
85
+ allowed_files: z.ZodArray<z.ZodString, "many">;
86
+ required_tests: z.ZodArray<z.ZodString, "many">;
87
+ affected_interfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
88
+ name: z.ZodString;
89
+ description: z.ZodString;
90
+ }, "strict", z.ZodTypeAny, {
91
+ name: string;
92
+ description: string;
93
+ }, {
94
+ name: string;
95
+ description: string;
86
96
  }>, "many">>;
97
+ addresses_counterexample_ids: z.ZodArray<z.ZodString, "many">;
87
98
  }, "strict", z.ZodTypeAny, {
88
- description?: string | undefined;
89
- preconditions?: string[] | undefined;
90
- expected_changes?: string | undefined;
91
- counterexamples?: {
92
- expected: string;
93
- id: string;
94
- claim: string;
95
- reproduction_steps: string[];
96
- actual: string;
97
- violated_obligation_ids: string[];
98
- }[] | undefined;
99
+ id: string;
100
+ read_paths: string[];
101
+ title: string;
102
+ description: string;
103
+ source_finding_ids: string[];
104
+ requirement_ids: string[];
105
+ dependencies: string[];
106
+ allowed_files: string[];
107
+ required_tests: string[];
108
+ affected_interfaces: {
109
+ name: string;
110
+ description: string;
111
+ }[];
112
+ addresses_counterexample_ids: string[];
113
+ phase_ordinal?: number | undefined;
99
114
  }, {
100
- description?: string | undefined;
101
- preconditions?: string[] | undefined;
102
- expected_changes?: string | undefined;
103
- counterexamples?: {
104
- expected: string;
105
- id: string;
106
- claim: string;
107
- reproduction_steps: string[];
108
- actual: string;
109
- violated_obligation_ids: string[];
115
+ id: string;
116
+ read_paths: string[];
117
+ title: string;
118
+ description: string;
119
+ source_finding_ids: string[];
120
+ requirement_ids: string[];
121
+ dependencies: string[];
122
+ allowed_files: string[];
123
+ required_tests: string[];
124
+ addresses_counterexample_ids: string[];
125
+ phase_ordinal?: number | undefined;
126
+ affected_interfaces?: {
127
+ name: string;
128
+ description: string;
110
129
  }[] | undefined;
111
- }>>;
112
- /**
113
- * The APPROVED finalized module contract(s) this block implements (the
114
- * evidence-coverage entry in docs/backlog/open-bugs.md). Attached VERBATIM at promotion by resolving each DAG
115
- * node's obligation-id slugs against `finalized_module_contracts`, and
116
- * carried into the sha-bound dispatch prompt so a worker conforms to the
117
- * approved interface instead of inventing a locally plausible one that
118
- * contradicts it. Optional — a plan from outside the contract pipeline has
119
- * no module contracts.
120
- */
121
- module_contracts: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
- module: z.ZodString;
123
- contract: z.ZodRecord<z.ZodString, z.ZodUnknown>;
130
+ }>, "many">;
131
+ source_dispositions: z.ZodDefault<z.ZodArray<z.ZodObject<{
132
+ finding_id: z.ZodString;
133
+ status: z.ZodEnum<["already_fixed", "refuted", "deferred"]>;
134
+ reason: z.ZodString;
135
+ evidence: z.ZodArray<z.ZodString, "many">;
124
136
  }, "strict", z.ZodTypeAny, {
125
- module: string;
126
- contract: Record<string, unknown>;
137
+ status: "refuted" | "already_fixed" | "deferred";
138
+ reason: string;
139
+ evidence: string[];
140
+ finding_id: string;
127
141
  }, {
128
- module: string;
129
- contract: Record<string, unknown>;
142
+ status: "refuted" | "already_fixed" | "deferred";
143
+ reason: string;
144
+ evidence: string[];
145
+ finding_id: string;
130
146
  }>, "many">>;
131
- }, "strict", z.ZodTypeAny, {
132
- items: string[];
133
- block_id: string;
134
- parallel_safe: boolean;
135
- touched_files: string[];
136
- targeted_commands?: string[] | undefined;
137
- token_estimate?: number | undefined;
138
- dependencies?: string[] | undefined;
139
- phase_ordinal?: number | undefined;
140
- cofile_parallel_safe?: boolean | undefined;
141
- implementation_context?: {
142
- description?: string | undefined;
143
- preconditions?: string[] | undefined;
144
- expected_changes?: string | undefined;
145
- counterexamples?: {
146
- expected: string;
147
- id: string;
148
- claim: string;
149
- reproduction_steps: string[];
150
- actual: string;
151
- violated_obligation_ids: string[];
152
- }[] | undefined;
153
- } | undefined;
154
- module_contracts?: {
155
- module: string;
156
- contract: Record<string, unknown>;
157
- }[] | undefined;
158
- }, {
159
- items: string[];
160
- block_id: string;
161
- parallel_safe: boolean;
162
- touched_files: string[];
163
- targeted_commands?: string[] | undefined;
164
- token_estimate?: number | undefined;
165
- dependencies?: string[] | undefined;
166
- phase_ordinal?: number | undefined;
167
- cofile_parallel_safe?: boolean | undefined;
168
- implementation_context?: {
169
- description?: string | undefined;
170
- preconditions?: string[] | undefined;
171
- expected_changes?: string | undefined;
172
- counterexamples?: {
173
- expected: string;
174
- id: string;
175
- claim: string;
176
- reproduction_steps: string[];
177
- actual: string;
178
- violated_obligation_ids: string[];
179
- }[] | undefined;
180
- } | undefined;
181
- module_contracts?: {
182
- module: string;
183
- contract: Record<string, unknown>;
184
- }[] | undefined;
185
- }>;
186
- export type RemediationBlock = z.infer<typeof RemediationBlockSchema>;
187
- export declare const RemediationPlanSchema: z.ZodObject<{
188
- plan_id: z.ZodString;
147
+ request_disposition: z.ZodOptional<z.ZodObject<{
148
+ status: z.ZodEnum<["already_satisfied", "deferred"]>;
149
+ reason: z.ZodString;
150
+ evidence: z.ZodArray<z.ZodString, "many">;
151
+ }, "strict", z.ZodTypeAny, {
152
+ status: "deferred" | "already_satisfied";
153
+ reason: string;
154
+ evidence: string[];
155
+ }, {
156
+ status: "deferred" | "already_satisfied";
157
+ reason: string;
158
+ evidence: string[];
159
+ }>>;
160
+ } & {
189
161
  goal_id: z.ZodOptional<z.ZodString>;
190
162
  source: z.ZodOptional<z.ZodString>;
191
163
  findings: z.ZodArray<z.ZodObject<{
@@ -482,200 +454,51 @@ export declare const RemediationPlanSchema: z.ZodObject<{
482
454
  confirmation: "lead";
483
455
  } | undefined;
484
456
  }>, "many">;
485
- blocks: z.ZodArray<z.ZodObject<{
486
- block_id: z.ZodString;
487
- items: z.ZodArray<z.ZodString, "many">;
488
- /**
489
- * Whether this block may run concurrently with its peers. First-class on the
490
- * block contract (not derived host-side) so the scheduler reads one source.
491
- */
492
- parallel_safe: z.ZodBoolean;
493
- /**
494
- * Block ids that must complete before this block runs. First-class (the
495
- * serialized schema-first chain head, CE-001): producers emit it, the
496
- * scheduler consumes it. Optional — absence means no upstream dependency.
497
- */
498
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
499
- /**
500
- * Commands to run as a post-merge verification gate after this block's
501
- * worktree branch is merged into the main tree. When present, these are
502
- * preferred over `RemediationPlan.test_command` for the gate check.
503
- */
504
- targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
505
- /**
506
- * Repo-relative paths that this block's implementation is expected to touch.
507
- * First-class and REQUIRED (an empty array is allowed, an omitted field is
508
- * rejected by `validateRemediationBlock` — which the state LOAD gate
509
- * delegates to, so the requirement holds on every path a block reaches a
510
- * consumer through): the file-ownership-disjoint scheduler and
511
- * `blockResolvedItemsOnCombinedFailure` both read it, so a block with no declared
512
- * surface is a producer bug, not an implicit empty.
513
- */
514
- touched_files: z.ZodArray<z.ZodString, "many">;
515
- /**
516
- * 0-based foundations→consumers phase ordinal (auto-phasing, T3). Derived
517
- * mechanically at promotion from the persisted phase cut (the module a block's
518
- * obligations belong to). The host handoff treats it as a hard barrier: a
519
- * block is never emitted until every lower-ordinal block is verified-complete,
520
- * giving a per-phase whole-repo green checkpoint. Optional — absent (or all
521
- * blocks sharing one ordinal) means a single phase, i.e. no barrier.
522
- */
523
- phase_ordinal: z.ZodOptional<z.ZodNumber>;
524
- /**
525
- * Whether the blocks sharing a co-file (same touched path) may still run in
526
- * parallel because their edit regions are disjoint. Additive + optional:
527
- * absence is equivalent to `false` (co-file blocks serialize by default), and
528
- * a pre-existing block with no such key still validates. Deliberately a bare
529
- * boolean — no WriteRegion / WriteAnchor / anchor apparatus lives on the block.
530
- */
531
- cofile_parallel_safe: z.ZodOptional<z.ZodBoolean>;
532
- /**
533
- * Deterministic advisory size derived from this block's unique physical
534
- * files. It is metadata for the host, never a backend-fit claim.
535
- */
536
- token_estimate: z.ZodOptional<z.ZodNumber>;
537
- /** Distinct instructions from the implementation node, carried into the bound prompt. */
538
- implementation_context: z.ZodOptional<z.ZodObject<{
539
- description: z.ZodOptional<z.ZodString>;
540
- preconditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
541
- expected_changes: z.ZodOptional<z.ZodString>;
542
- counterexamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
- id: z.ZodString;
544
- claim: z.ZodString;
545
- reproduction_steps: z.ZodArray<z.ZodString, "many">;
546
- expected: z.ZodString;
547
- actual: z.ZodString;
548
- violated_obligation_ids: z.ZodArray<z.ZodString, "many">;
549
- }, "strip", z.ZodTypeAny, {
550
- expected: string;
551
- id: string;
552
- claim: string;
553
- reproduction_steps: string[];
554
- actual: string;
555
- violated_obligation_ids: string[];
556
- }, {
557
- expected: string;
558
- id: string;
559
- claim: string;
560
- reproduction_steps: string[];
561
- actual: string;
562
- violated_obligation_ids: string[];
563
- }>, "many">>;
564
- }, "strict", z.ZodTypeAny, {
565
- description?: string | undefined;
566
- preconditions?: string[] | undefined;
567
- expected_changes?: string | undefined;
568
- counterexamples?: {
569
- expected: string;
570
- id: string;
571
- claim: string;
572
- reproduction_steps: string[];
573
- actual: string;
574
- violated_obligation_ids: string[];
575
- }[] | undefined;
576
- }, {
577
- description?: string | undefined;
578
- preconditions?: string[] | undefined;
579
- expected_changes?: string | undefined;
580
- counterexamples?: {
581
- expected: string;
582
- id: string;
583
- claim: string;
584
- reproduction_steps: string[];
585
- actual: string;
586
- violated_obligation_ids: string[];
587
- }[] | undefined;
588
- }>>;
589
- /**
590
- * The APPROVED finalized module contract(s) this block implements (the
591
- * evidence-coverage entry in docs/backlog/open-bugs.md). Attached VERBATIM at promotion by resolving each DAG
592
- * node's obligation-id slugs against `finalized_module_contracts`, and
593
- * carried into the sha-bound dispatch prompt so a worker conforms to the
594
- * approved interface instead of inventing a locally plausible one that
595
- * contradicts it. Optional — a plan from outside the contract pipeline has
596
- * no module contracts.
597
- */
598
- module_contracts: z.ZodOptional<z.ZodArray<z.ZodObject<{
599
- module: z.ZodString;
600
- contract: z.ZodRecord<z.ZodString, z.ZodUnknown>;
601
- }, "strict", z.ZodTypeAny, {
602
- module: string;
603
- contract: Record<string, unknown>;
604
- }, {
605
- module: string;
606
- contract: Record<string, unknown>;
607
- }>, "many">>;
457
+ request: z.ZodOptional<z.ZodObject<{
458
+ id: z.ZodString;
459
+ text: z.ZodString;
460
+ source_paths: z.ZodArray<z.ZodString, "many">;
608
461
  }, "strict", z.ZodTypeAny, {
609
- items: string[];
610
- block_id: string;
611
- parallel_safe: boolean;
612
- touched_files: string[];
613
- targeted_commands?: string[] | undefined;
614
- token_estimate?: number | undefined;
615
- dependencies?: string[] | undefined;
616
- phase_ordinal?: number | undefined;
617
- cofile_parallel_safe?: boolean | undefined;
618
- implementation_context?: {
619
- description?: string | undefined;
620
- preconditions?: string[] | undefined;
621
- expected_changes?: string | undefined;
622
- counterexamples?: {
623
- expected: string;
624
- id: string;
625
- claim: string;
626
- reproduction_steps: string[];
627
- actual: string;
628
- violated_obligation_ids: string[];
629
- }[] | undefined;
630
- } | undefined;
631
- module_contracts?: {
632
- module: string;
633
- contract: Record<string, unknown>;
634
- }[] | undefined;
462
+ id: string;
463
+ text: string;
464
+ source_paths: string[];
635
465
  }, {
636
- items: string[];
637
- block_id: string;
638
- parallel_safe: boolean;
639
- touched_files: string[];
640
- targeted_commands?: string[] | undefined;
641
- token_estimate?: number | undefined;
642
- dependencies?: string[] | undefined;
643
- phase_ordinal?: number | undefined;
644
- cofile_parallel_safe?: boolean | undefined;
645
- implementation_context?: {
646
- description?: string | undefined;
647
- preconditions?: string[] | undefined;
648
- expected_changes?: string | undefined;
649
- counterexamples?: {
650
- expected: string;
651
- id: string;
652
- claim: string;
653
- reproduction_steps: string[];
654
- actual: string;
655
- violated_obligation_ids: string[];
656
- }[] | undefined;
657
- } | undefined;
658
- module_contracts?: {
659
- module: string;
660
- contract: Record<string, unknown>;
661
- }[] | undefined;
662
- }>, "many">;
466
+ id: string;
467
+ text: string;
468
+ source_paths: string[];
469
+ }>>;
470
+ review_revision_sha256: z.ZodString;
471
+ review_counterexamples: z.ZodDefault<z.ZodArray<z.ZodObject<{
472
+ id: z.ZodString;
473
+ claim: z.ZodString;
474
+ reproduction_steps: z.ZodArray<z.ZodString, "many">;
475
+ expected: z.ZodString;
476
+ actual: z.ZodString;
477
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
478
+ unit_ids: z.ZodArray<z.ZodString, "many">;
479
+ }, "strict", z.ZodTypeAny, {
480
+ expected: string;
481
+ id: string;
482
+ unit_ids: string[];
483
+ claim: string;
484
+ requirement_ids: string[];
485
+ reproduction_steps: string[];
486
+ actual: string;
487
+ }, {
488
+ expected: string;
489
+ id: string;
490
+ unit_ids: string[];
491
+ claim: string;
492
+ requirement_ids: string[];
493
+ reproduction_steps: string[];
494
+ actual: string;
495
+ }>, "many">>;
663
496
  project_type: z.ZodString;
664
497
  test_command: z.ZodOptional<z.ZodString>;
665
498
  e2e_command: z.ZodOptional<z.ZodString>;
666
499
  test_command_source: z.ZodOptional<z.ZodEnum<["project_facts", "explicit"]>>;
667
500
  e2e_command_source: z.ZodOptional<z.ZodEnum<["project_facts", "explicit"]>>;
668
501
  candidate_closing_actions: z.ZodArray<z.ZodEnum<["commit", "push", "open-pr", "publish", "tag", "none", "custom"]>, "many">;
669
- block_strategy: z.ZodOptional<z.ZodEnum<["test_graph", "git_cocommit", "file_overlap", "manual"]>>;
670
- /**
671
- * What the AUDIT read (`AuditRead`), stamped by the TOOL at plan application
672
- * from the validated source findings report — never taken from the
673
- * host-writable extracted plan. It is the `B` of the close phase's two-read
674
- * evidence leg (`verifyHeadEvidenceAgainstFindings`). `null` and absent both
675
- * mean "no commit is known" (absent only on a state persisted before the
676
- * field existed, or a plan with no audit-side source); either way the leg
677
- * withholds, and no other commit may stand in.
678
- */
679
502
  audit_read: z.ZodOptional<z.ZodNullable<z.ZodObject<{
680
503
  commit: z.ZodString;
681
504
  dirty_paths: z.ZodArray<z.ZodString, "many">;
@@ -751,48 +574,76 @@ export declare const RemediationPlanSchema: z.ZodObject<{
751
574
  confirmation: "lead";
752
575
  } | undefined;
753
576
  }[];
577
+ plan_id: string;
578
+ objective: string;
579
+ non_goals: string[];
580
+ requirements: {
581
+ id: string;
582
+ description: string;
583
+ source_finding_ids: string[];
584
+ change_kind: "structural" | "behavior_change" | "addition";
585
+ assertions: {
586
+ kind: "positive" | "negative";
587
+ description: string;
588
+ scope_paths: string[];
589
+ }[];
590
+ inapplicable_reason?: string | undefined;
591
+ }[];
592
+ units: {
593
+ id: string;
594
+ read_paths: string[];
595
+ title: string;
596
+ description: string;
597
+ source_finding_ids: string[];
598
+ requirement_ids: string[];
599
+ dependencies: string[];
600
+ allowed_files: string[];
601
+ required_tests: string[];
602
+ affected_interfaces: {
603
+ name: string;
604
+ description: string;
605
+ }[];
606
+ addresses_counterexample_ids: string[];
607
+ phase_ordinal?: number | undefined;
608
+ }[];
609
+ source_dispositions: {
610
+ status: "refuted" | "already_fixed" | "deferred";
611
+ reason: string;
612
+ evidence: string[];
613
+ finding_id: string;
614
+ }[];
754
615
  candidate_closing_actions: ("push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag")[];
755
616
  project_type: string;
756
- blocks: {
757
- items: string[];
758
- block_id: string;
759
- parallel_safe: boolean;
760
- touched_files: string[];
761
- targeted_commands?: string[] | undefined;
762
- token_estimate?: number | undefined;
763
- dependencies?: string[] | undefined;
764
- phase_ordinal?: number | undefined;
765
- cofile_parallel_safe?: boolean | undefined;
766
- implementation_context?: {
767
- description?: string | undefined;
768
- preconditions?: string[] | undefined;
769
- expected_changes?: string | undefined;
770
- counterexamples?: {
771
- expected: string;
772
- id: string;
773
- claim: string;
774
- reproduction_steps: string[];
775
- actual: string;
776
- violated_obligation_ids: string[];
777
- }[] | undefined;
778
- } | undefined;
779
- module_contracts?: {
780
- module: string;
781
- contract: Record<string, unknown>;
782
- }[] | undefined;
617
+ review_revision_sha256: string;
618
+ review_counterexamples: {
619
+ expected: string;
620
+ id: string;
621
+ unit_ids: string[];
622
+ claim: string;
623
+ requirement_ids: string[];
624
+ reproduction_steps: string[];
625
+ actual: string;
783
626
  }[];
784
- plan_id: string;
785
627
  audit_read?: {
786
628
  commit: string;
787
629
  dirty_paths: string[];
788
630
  } | null | undefined;
631
+ request_disposition?: {
632
+ status: "deferred" | "already_satisfied";
633
+ reason: string;
634
+ evidence: string[];
635
+ } | undefined;
636
+ request?: {
637
+ id: string;
638
+ text: string;
639
+ source_paths: string[];
640
+ } | undefined;
789
641
  source?: string | undefined;
790
642
  goal_id?: string | undefined;
791
643
  test_command?: string | undefined;
792
644
  e2e_command?: string | undefined;
793
645
  test_command_source?: "project_facts" | "explicit" | undefined;
794
646
  e2e_command_source?: "project_facts" | "explicit" | undefined;
795
- block_strategy?: "file_overlap" | "manual" | "test_graph" | "git_cocommit" | undefined;
796
647
  }, {
797
648
  findings: {
798
649
  id: string;
@@ -858,50 +709,153 @@ export declare const RemediationPlanSchema: z.ZodObject<{
858
709
  confirmation: "lead";
859
710
  } | undefined;
860
711
  }[];
861
- candidate_closing_actions: ("push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag")[];
862
- project_type: string;
863
- blocks: {
864
- items: string[];
865
- block_id: string;
866
- parallel_safe: boolean;
867
- touched_files: string[];
868
- targeted_commands?: string[] | undefined;
869
- token_estimate?: number | undefined;
870
- dependencies?: string[] | undefined;
712
+ plan_id: string;
713
+ objective: string;
714
+ non_goals: string[];
715
+ requirements: {
716
+ id: string;
717
+ description: string;
718
+ source_finding_ids: string[];
719
+ change_kind: "structural" | "behavior_change" | "addition";
720
+ assertions: {
721
+ kind: "positive" | "negative";
722
+ description: string;
723
+ scope_paths: string[];
724
+ }[];
725
+ inapplicable_reason?: string | undefined;
726
+ }[];
727
+ units: {
728
+ id: string;
729
+ read_paths: string[];
730
+ title: string;
731
+ description: string;
732
+ source_finding_ids: string[];
733
+ requirement_ids: string[];
734
+ dependencies: string[];
735
+ allowed_files: string[];
736
+ required_tests: string[];
737
+ addresses_counterexample_ids: string[];
871
738
  phase_ordinal?: number | undefined;
872
- cofile_parallel_safe?: boolean | undefined;
873
- implementation_context?: {
874
- description?: string | undefined;
875
- preconditions?: string[] | undefined;
876
- expected_changes?: string | undefined;
877
- counterexamples?: {
878
- expected: string;
879
- id: string;
880
- claim: string;
881
- reproduction_steps: string[];
882
- actual: string;
883
- violated_obligation_ids: string[];
884
- }[] | undefined;
885
- } | undefined;
886
- module_contracts?: {
887
- module: string;
888
- contract: Record<string, unknown>;
739
+ affected_interfaces?: {
740
+ name: string;
741
+ description: string;
889
742
  }[] | undefined;
890
743
  }[];
891
- plan_id: string;
744
+ candidate_closing_actions: ("push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag")[];
745
+ project_type: string;
746
+ review_revision_sha256: string;
892
747
  audit_read?: {
893
748
  commit: string;
894
749
  dirty_paths: string[];
895
750
  } | null | undefined;
751
+ source_dispositions?: {
752
+ status: "refuted" | "already_fixed" | "deferred";
753
+ reason: string;
754
+ evidence: string[];
755
+ finding_id: string;
756
+ }[] | undefined;
757
+ request_disposition?: {
758
+ status: "deferred" | "already_satisfied";
759
+ reason: string;
760
+ evidence: string[];
761
+ } | undefined;
762
+ request?: {
763
+ id: string;
764
+ text: string;
765
+ source_paths: string[];
766
+ } | undefined;
896
767
  source?: string | undefined;
897
768
  goal_id?: string | undefined;
769
+ review_counterexamples?: {
770
+ expected: string;
771
+ id: string;
772
+ unit_ids: string[];
773
+ claim: string;
774
+ requirement_ids: string[];
775
+ reproduction_steps: string[];
776
+ actual: string;
777
+ }[] | undefined;
898
778
  test_command?: string | undefined;
899
779
  e2e_command?: string | undefined;
900
780
  test_command_source?: "project_facts" | "explicit" | undefined;
901
781
  e2e_command_source?: "project_facts" | "explicit" | undefined;
902
- block_strategy?: "file_overlap" | "manual" | "test_graph" | "git_cocommit" | undefined;
903
782
  }>;
904
783
  export type RemediationPlan = z.infer<typeof RemediationPlanSchema>;
784
+ export declare const SourceVerificationSchema: z.ZodObject<{
785
+ disposition_override: z.ZodOptional<z.ZodEnum<["resolved", "resolved_no_change", "ignored", "deemed_inappropriate", "abandoned", "verified_already_fixed", "refuted"]>>;
786
+ evidence: z.ZodOptional<z.ZodObject<{
787
+ file: z.ZodString;
788
+ line: z.ZodString;
789
+ mechanism: z.ZodEnum<["red_green_test", "build_lint_gate", "read_at_head_verification", "read_at_head_refutation"]>;
790
+ mechanism_detail: z.ZodOptional<z.ZodString>;
791
+ }, "strict", z.ZodTypeAny, {
792
+ line: string;
793
+ file: string;
794
+ mechanism: "red_green_test" | "build_lint_gate" | "read_at_head_verification" | "read_at_head_refutation";
795
+ mechanism_detail?: string | undefined;
796
+ }, {
797
+ line: string;
798
+ file: string;
799
+ mechanism: "red_green_test" | "build_lint_gate" | "read_at_head_verification" | "read_at_head_refutation";
800
+ mechanism_detail?: string | undefined;
801
+ }>>;
802
+ recorded_by_module: z.ZodOptional<z.ZodString>;
803
+ mechanical_verification: z.ZodOptional<z.ZodObject<{
804
+ status: z.ZodEnum<["verified_mechanically", "lead_persists", "skipped"]>;
805
+ analyzer_id: z.ZodString;
806
+ reason: z.ZodOptional<z.ZodString>;
807
+ }, "strict", z.ZodTypeAny, {
808
+ status: "verified_mechanically" | "lead_persists" | "skipped";
809
+ analyzer_id: string;
810
+ reason?: string | undefined;
811
+ }, {
812
+ status: "verified_mechanically" | "lead_persists" | "skipped";
813
+ analyzer_id: string;
814
+ reason?: string | undefined;
815
+ }>>;
816
+ review_revision_sha256: z.ZodOptional<z.ZodString>;
817
+ source_sha256: z.ZodOptional<z.ZodString>;
818
+ head_commit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
+ }, "strict", z.ZodTypeAny, {
820
+ evidence?: {
821
+ line: string;
822
+ file: string;
823
+ mechanism: "red_green_test" | "build_lint_gate" | "read_at_head_verification" | "read_at_head_refutation";
824
+ mechanism_detail?: string | undefined;
825
+ } | undefined;
826
+ mechanical_verification?: {
827
+ status: "verified_mechanically" | "lead_persists" | "skipped";
828
+ analyzer_id: string;
829
+ reason?: string | undefined;
830
+ } | undefined;
831
+ recorded_by_module?: string | undefined;
832
+ source_sha256?: string | undefined;
833
+ review_revision_sha256?: string | undefined;
834
+ disposition_override?: "refuted" | "resolved" | "ignored" | "verified_already_fixed" | "resolved_no_change" | "deemed_inappropriate" | "abandoned" | undefined;
835
+ head_commit?: string | null | undefined;
836
+ }, {
837
+ evidence?: {
838
+ line: string;
839
+ file: string;
840
+ mechanism: "red_green_test" | "build_lint_gate" | "read_at_head_verification" | "read_at_head_refutation";
841
+ mechanism_detail?: string | undefined;
842
+ } | undefined;
843
+ mechanical_verification?: {
844
+ status: "verified_mechanically" | "lead_persists" | "skipped";
845
+ analyzer_id: string;
846
+ reason?: string | undefined;
847
+ } | undefined;
848
+ recorded_by_module?: string | undefined;
849
+ source_sha256?: string | undefined;
850
+ review_revision_sha256?: string | undefined;
851
+ disposition_override?: "refuted" | "resolved" | "ignored" | "verified_already_fixed" | "resolved_no_change" | "deemed_inappropriate" | "abandoned" | undefined;
852
+ head_commit?: string | null | undefined;
853
+ }>;
854
+ export type SourceVerification = z.infer<typeof SourceVerificationSchema>;
855
+ export interface FindingDisposition {
856
+ status: "ignored" | "declined";
857
+ reason: string;
858
+ }
905
859
  /**
906
860
  * Tool-owned binding for one emitted host workload. The host may write result
907
861
  * files, but it must not be able to rewrite the workload and then make the
@@ -925,29 +879,7 @@ export declare const ConformanceReviewBindingSchema: z.ZodObject<{
925
879
  checkpoint_sha256?: string | undefined;
926
880
  }>;
927
881
  export type ConformanceReviewBinding = z.infer<typeof ConformanceReviewBindingSchema>;
928
- export declare const RemediationHostHandoffRecordSchema: z.ZodDiscriminatedUnion<"contract_version", [z.ZodObject<{
929
- run_id: z.ZodString;
930
- baseline_commit: z.ZodString;
931
- workload_sha256: z.ZodString;
932
- /** Enforces persistence of the tool-minted required-review snapshot alongside this handoff. */
933
- conformance_policy_sha256: z.ZodOptional<z.ZodString>;
934
- work_item_ids: z.ZodArray<z.ZodString, "many">;
935
- contract_version: z.ZodLiteral<"remediation-host-handoff-record/v1alpha1">;
936
- }, "strict", z.ZodTypeAny, {
937
- run_id: string;
938
- contract_version: "remediation-host-handoff-record/v1alpha1";
939
- baseline_commit: string;
940
- workload_sha256: string;
941
- work_item_ids: string[];
942
- conformance_policy_sha256?: string | undefined;
943
- }, {
944
- run_id: string;
945
- contract_version: "remediation-host-handoff-record/v1alpha1";
946
- baseline_commit: string;
947
- workload_sha256: string;
948
- work_item_ids: string[];
949
- conformance_policy_sha256?: string | undefined;
950
- }>, z.ZodObject<{
882
+ export declare const RemediationHostHandoffRecordSchema: z.ZodObject<{
951
883
  run_id: z.ZodString;
952
884
  baseline_commit: z.ZodString;
953
885
  workload_sha256: z.ZodString;
@@ -959,34 +891,34 @@ export declare const RemediationHostHandoffRecordSchema: z.ZodDiscriminatedUnion
959
891
  }, "strict", z.ZodTypeAny, {
960
892
  run_id: string;
961
893
  contract_version: "remediation-host-handoff-record/v1alpha2";
894
+ scope_semantics: "explicit-directory-markers/v1";
962
895
  baseline_commit: string;
963
896
  workload_sha256: string;
964
897
  work_item_ids: string[];
965
- scope_semantics: "explicit-directory-markers/v1";
966
898
  conformance_policy_sha256?: string | undefined;
967
899
  }, {
968
900
  run_id: string;
969
901
  contract_version: "remediation-host-handoff-record/v1alpha2";
902
+ scope_semantics: "explicit-directory-markers/v1";
970
903
  baseline_commit: string;
971
904
  workload_sha256: string;
972
905
  work_item_ids: string[];
973
- scope_semantics: "explicit-directory-markers/v1";
974
906
  conformance_policy_sha256?: string | undefined;
975
- }>]>;
907
+ }>;
976
908
  export type RemediationHostHandoffRecord = z.infer<typeof RemediationHostHandoffRecordSchema>;
977
909
  export declare const ClarificationRequestSchema: z.ZodObject<{
978
- finding_id: z.ZodString;
910
+ unit_id: z.ZodString;
979
911
  category: z.ZodEnum<["public_contract", "behavioral_semantics", "scope_of_fix", "dependency_introduction", "compatibility_policy", "intent_vs_symptom", "issue_appropriateness"]>;
980
912
  description: z.ZodString;
981
913
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
982
914
  }, "strict", z.ZodTypeAny, {
915
+ unit_id: string;
983
916
  category: "public_contract" | "behavioral_semantics" | "scope_of_fix" | "dependency_introduction" | "compatibility_policy" | "intent_vs_symptom" | "issue_appropriateness";
984
- finding_id: string;
985
917
  description: string;
986
918
  options?: string[] | undefined;
987
919
  }, {
920
+ unit_id: string;
988
921
  category: "public_contract" | "behavioral_semantics" | "scope_of_fix" | "dependency_introduction" | "compatibility_policy" | "intent_vs_symptom" | "issue_appropriateness";
989
- finding_id: string;
990
922
  description: string;
991
923
  options?: string[] | undefined;
992
924
  }>;
@@ -999,13 +931,16 @@ export type ClarificationRequest = z.infer<typeof ClarificationRequestSchema>;
999
931
  * others. A separate run-level question list used to be a second copy; clearing
1000
932
  * it after a partial answer left the unanswered items with no question to show.
1001
933
  */
1002
- export type ClarificationQuestion = Omit<ClarificationRequest, "finding_id">;
934
+ export type ClarificationQuestion = Omit<ClarificationRequest, "unit_id">;
1003
935
  /** The canonical clarification categories (single-sourced from the schema). */
1004
936
  export declare const CLARIFICATION_CATEGORIES: ["public_contract", "behavioral_semantics", "scope_of_fix", "dependency_introduction", "compatibility_policy", "intent_vs_symptom", "issue_appropriateness"];
1005
937
  export type ClarificationCategory = ClarificationRequest["category"];
1006
938
  /** Narrow an arbitrary value to a canonical clarification category. */
1007
939
  export declare function isClarificationCategory(value: unknown): value is ClarificationCategory;
1008
940
  export declare const ClosingActionPreviewSchema: z.ZodObject<{
941
+ /** Approval is for this action, never an interchangeable close label. */
942
+ action: z.ZodEnum<["commit", "push", "open-pr", "publish", "tag", "none", "custom"]>;
943
+ custom_command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1009
944
  /** Repo-relative paths that would be staged for the commit. */
1010
945
  files: z.ZodArray<z.ZodString, "many">;
1011
946
  /** Generated commit message derived from item summaries / finding titles. */
@@ -1020,11 +955,15 @@ export declare const ClosingActionPreviewSchema: z.ZodObject<{
1020
955
  leftover_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1021
956
  }, "strict", z.ZodTypeAny, {
1022
957
  files: string[];
958
+ action: "push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag";
1023
959
  commit_message: string;
960
+ custom_command?: string[] | undefined;
1024
961
  leftover_files?: string[] | undefined;
1025
962
  }, {
1026
963
  files: string[];
964
+ action: "push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag";
1027
965
  commit_message: string;
966
+ custom_command?: string[] | undefined;
1028
967
  leftover_files?: string[] | undefined;
1029
968
  }>;
1030
969
  export declare const ClosingPlanSchema: z.ZodObject<{
@@ -1042,6 +981,9 @@ export declare const ClosingPlanSchema: z.ZodObject<{
1042
981
  * the host can present them to the user. Cleared once the action executes.
1043
982
  */
1044
983
  closing_action_preview: z.ZodOptional<z.ZodObject<{
984
+ /** Approval is for this action, never an interchangeable close label. */
985
+ action: z.ZodEnum<["commit", "push", "open-pr", "publish", "tag", "none", "custom"]>;
986
+ custom_command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1045
987
  /** Repo-relative paths that would be staged for the commit. */
1046
988
  files: z.ZodArray<z.ZodString, "many">;
1047
989
  /** Generated commit message derived from item summaries / finding titles. */
@@ -1056,11 +998,15 @@ export declare const ClosingPlanSchema: z.ZodObject<{
1056
998
  leftover_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1057
999
  }, "strict", z.ZodTypeAny, {
1058
1000
  files: string[];
1001
+ action: "push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag";
1059
1002
  commit_message: string;
1003
+ custom_command?: string[] | undefined;
1060
1004
  leftover_files?: string[] | undefined;
1061
1005
  }, {
1062
1006
  files: string[];
1007
+ action: "push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag";
1063
1008
  commit_message: string;
1009
+ custom_command?: string[] | undefined;
1064
1010
  leftover_files?: string[] | undefined;
1065
1011
  }>>;
1066
1012
  }, "strict", z.ZodTypeAny, {
@@ -1069,7 +1015,9 @@ export declare const ClosingPlanSchema: z.ZodObject<{
1069
1015
  pre_authorized?: boolean | undefined;
1070
1016
  closing_action_preview?: {
1071
1017
  files: string[];
1018
+ action: "push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag";
1072
1019
  commit_message: string;
1020
+ custom_command?: string[] | undefined;
1073
1021
  leftover_files?: string[] | undefined;
1074
1022
  } | undefined;
1075
1023
  }, {
@@ -1078,7 +1026,9 @@ export declare const ClosingPlanSchema: z.ZodObject<{
1078
1026
  pre_authorized?: boolean | undefined;
1079
1027
  closing_action_preview?: {
1080
1028
  files: string[];
1029
+ action: "push" | "custom" | "commit" | "none" | "open-pr" | "publish" | "tag";
1081
1030
  commit_message: string;
1031
+ custom_command?: string[] | undefined;
1082
1032
  leftover_files?: string[] | undefined;
1083
1033
  } | undefined;
1084
1034
  }>;
@@ -1087,7 +1037,7 @@ export interface CoverageLedgerEntry {
1087
1037
  finding_id: string;
1088
1038
  title?: string;
1089
1039
  disposition: "planned" | "folded_into" | "dropped_no_evidence" | "dropped_by_checkpoint" | "dropped_phantom_paths" | "declined_by_review";
1090
- block_id?: string;
1040
+ unit_ids?: string[];
1091
1041
  folded_into?: string;
1092
1042
  rationale?: string;
1093
1043
  /** Phantom (non-existent) cited paths the grounding pass stripped. */
@@ -1128,7 +1078,7 @@ export interface CoverageLedger {
1128
1078
  * `failed` covers blocked and force-closed non-terminal items, `skipped`
1129
1079
  * covers deemed-inappropriate items, `ignored` covers user-ignored items.
1130
1080
  */
1131
- export type RemediationOutcomeFinalStatus = "fixed" | "failed" | "ignored" | "skipped";
1081
+ export type RemediationOutcomeFinalStatus = "fixed" | "failed" | "ignored" | "skipped" | "pending" | "deferred";
1132
1082
  /**
1133
1083
  * One fully self-describing entry per finding in `remediation-outcomes.json`.
1134
1084
  * Extends the shared per-finding outcome so the file is retryable on its own:
@@ -1144,10 +1094,9 @@ export type RemediationOutcomeFinalStatus = "fixed" | "failed" | "ignored" | "sk
1144
1094
  export interface RemediationOutcomeItem extends RemediationOutcome {
1145
1095
  /** Full original Finding payload (the shared `Finding` type, verbatim). */
1146
1096
  finding: Finding;
1147
- /** Owning block id (`RemediationBlock.block_id`). */
1148
- block_id: RemediationBlock["block_id"];
1149
- /** The owning block's dependency block ids (`RemediationBlock.dependencies`). */
1150
- block_dependencies: string[];
1097
+ /** Every execution unit addressing this original source finding. */
1098
+ unit_ids: string[];
1099
+ unit_dependencies: string[];
1151
1100
  /** Retry-oriented final status (see `RemediationOutcomeFinalStatus`). */
1152
1101
  final_status: RemediationOutcomeFinalStatus;
1153
1102
  /**
@@ -1173,9 +1122,8 @@ export interface OutcomeCoverageLedger extends Omit<CoverageLedger, "entries"> {
1173
1122
  }
1174
1123
  export type { PerFindingDisposition } from "./disposition.js";
1175
1124
  export interface RemediationItemState {
1176
- finding_id: string;
1125
+ unit_id: string;
1177
1126
  status: RemediationItemStatus;
1178
- block_id: string;
1179
1127
  last_successful_step?: string;
1180
1128
  failure_reason?: string;
1181
1129
  /** Prompt-bound evidence supplied for a verified no-change host outcome. */
@@ -1205,11 +1153,6 @@ export interface RemediationItemState {
1205
1153
  host_landed_commit?: string;
1206
1154
  /** Repo-relative, path-sorted files the landed commit changed (see above). */
1207
1155
  host_landed_files?: string[];
1208
- /**
1209
- * Item C — close-gate mechanical re-verify verdict for an analyzer-born
1210
- * finding (set by `verifyAnalyzerLeads`; copied into the outcomes contract).
1211
- */
1212
- mechanical_verification?: MechanicalVerification;
1213
1156
  /** Times this item was sent back for rework via triage (Phase 7B outcomes). */
1214
1157
  rework_count?: number;
1215
1158
  /** ISO-8601 timestamp when this item first left pending. */
@@ -1237,46 +1180,5 @@ export interface RemediationItemState {
1237
1180
  * the cap is hit) instead of re-dispatching the same worker indefinitely.
1238
1181
  */
1239
1182
  incomplete_coverage_attempts?: number;
1240
- /**
1241
- * CDC-25/CDC-26 — SOURCE-SIDE SHAPE. The per-finding verification-evidence
1242
- * triple (file/line/mechanism) a producing module RECORDS onto this item at
1243
- * its OWN phase (INV-COVERAGE's "evidence producer" half) before the single
1244
- * run-terminal `runClosePhase` PERSISTS it (INV-ISC-EVIDENCE-EMITTED). The
1245
- * producer is `verifyHeadEvidenceAgainstFindings`
1246
- * (`src/remediate/phases/closeVerifyHeadEvidence.ts`), whose own reads of the
1247
- * finding's cited location — at the audit's commit and at HEAD — are what the
1248
- * triple names. A runtime data flow through this already-existing state item,
1249
- * not a build-phase dependency: no cross-phase artifact token is minted for
1250
- * it.
1251
- * This field lives here — inside item-status-partition-and-close's own
1252
- * file_scope — and is therefore owned BY SCOPE, not by a clause 1(c)
1253
- * declaration (that channel is only for a file outside every module's
1254
- * file_scope, as `src/shared/types/remediationOutcome.ts` needed one for the
1255
- * matching widened record shape). No other module edits this file.
1256
- */
1257
- evidence?: Evidence;
1258
- /**
1259
- * CDC-25 — which module recorded {@link evidence} (and, where set,
1260
- * {@link disposition_override}) for this finding. Carried byte-exact into the
1261
- * emitted outcome record's `recorded_by_module` (the ATTRIBUTION ROUND-TRIP)
1262
- * so the 26 INV-COVERAGE joins' condition (3) can still tell which module
1263
- * closed which id — the writer must never re-derive this or drop it.
1264
- */
1265
- recorded_by_module?: string;
1266
- /**
1267
- * CDC-25 — a producing module's own-phase determination that this finding's
1268
- * true disposition is `verified_already_fixed` or `refuted` rather than the
1269
- * disposition ordinarily derived from {@link status} alone.
1270
- * `RemediationItemStatus` stays a closed 12-member enum with no
1271
- * `verified_already_fixed`/`refuted` values of its own; the two new
1272
- * `PerFindingDisposition` members are reached ONLY through this explicit
1273
- * override (see `resolveDisposition` in `itemStatus.ts`), and only honoured
1274
- * by the writer when this item's {@link status} is terminal and its
1275
- * {@link evidence} triple is complete (INV-ISC-EVIDENCE-EMITTED) — an
1276
- * incomplete triple makes the writer refuse the override and fall back to a
1277
- * non-terminal, force-closed outcome instead of a green close on assertion
1278
- * alone.
1279
- */
1280
- disposition_override?: PerFindingDisposition;
1281
1183
  }
1282
1184
  //# sourceMappingURL=types.d.ts.map