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
@@ -0,0 +1,1908 @@
1
+ import { z } from "zod";
2
+ import { type ExecutableChangePlan } from "../../shared/types/executionPlan.js";
3
+ export declare const PlanSourceSchema: z.ZodObject<{
4
+ plan_id: z.ZodString;
5
+ findings: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ title: z.ZodString;
8
+ category: z.ZodString;
9
+ severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
10
+ severity_downgraded_from: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low", "info"]>>;
11
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
12
+ lens: z.ZodString;
13
+ summary: z.ZodString;
14
+ affected_files: z.ZodArray<z.ZodEffects<z.ZodObject<{
15
+ path: z.ZodString;
16
+ line_start: z.ZodOptional<z.ZodNumber>;
17
+ line_end: z.ZodOptional<z.ZodNumber>;
18
+ symbol: z.ZodOptional<z.ZodString>;
19
+ quoted_text: z.ZodOptional<z.ZodString>;
20
+ no_quotable_span: z.ZodOptional<z.ZodString>;
21
+ hash_at_plan_time: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ path: string;
24
+ symbol?: string | undefined;
25
+ line_start?: number | undefined;
26
+ line_end?: number | undefined;
27
+ quoted_text?: string | undefined;
28
+ no_quotable_span?: string | undefined;
29
+ hash_at_plan_time?: string | undefined;
30
+ }, {
31
+ path: string;
32
+ symbol?: string | undefined;
33
+ line_start?: number | undefined;
34
+ line_end?: number | undefined;
35
+ quoted_text?: string | undefined;
36
+ no_quotable_span?: string | undefined;
37
+ hash_at_plan_time?: string | undefined;
38
+ }>, {
39
+ path: string;
40
+ symbol?: string | undefined;
41
+ line_start?: number | undefined;
42
+ line_end?: number | undefined;
43
+ quoted_text?: string | undefined;
44
+ no_quotable_span?: string | undefined;
45
+ hash_at_plan_time?: string | undefined;
46
+ }, {
47
+ path: string;
48
+ symbol?: string | undefined;
49
+ line_start?: number | undefined;
50
+ line_end?: number | undefined;
51
+ quoted_text?: string | undefined;
52
+ no_quotable_span?: string | undefined;
53
+ hash_at_plan_time?: string | undefined;
54
+ }>, "many">;
55
+ impact: z.ZodOptional<z.ZodString>;
56
+ likelihood: z.ZodOptional<z.ZodString>;
57
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
+ reproduction: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
+ systemic: z.ZodOptional<z.ZodBoolean>;
60
+ related_findings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ theme_id: z.ZodOptional<z.ZodString>;
62
+ blast_radius: z.ZodOptional<z.ZodNumber>;
63
+ evidence_grounded: z.ZodOptional<z.ZodBoolean>;
64
+ grounding: z.ZodOptional<z.ZodObject<{
65
+ status: z.ZodEnum<["grounded", "ungrounded", "refuted"]>;
66
+ reason: z.ZodOptional<z.ZodString>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ status: "grounded" | "ungrounded" | "refuted";
69
+ reason?: string | undefined;
70
+ }, {
71
+ status: "grounded" | "ungrounded" | "refuted";
72
+ reason?: string | undefined;
73
+ }>>;
74
+ evidence_lane: z.ZodOptional<z.ZodEnum<["per-file-lane", "design-review-lane"]>>;
75
+ verification_status: z.ZodOptional<z.ZodEnum<["judge_confirmed", "asserted", "refuted_at_head"]>>;
76
+ executable_anchor: z.ZodOptional<z.ZodObject<{
77
+ command: z.ZodArray<z.ZodString, "many">;
78
+ confirm_if: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
79
+ kind: z.ZodLiteral<"exit_zero">;
80
+ }, "strip", z.ZodTypeAny, {
81
+ kind: "exit_zero";
82
+ }, {
83
+ kind: "exit_zero";
84
+ }>, z.ZodObject<{
85
+ kind: z.ZodLiteral<"exit_nonzero">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ kind: "exit_nonzero";
88
+ }, {
89
+ kind: "exit_nonzero";
90
+ }>, z.ZodObject<{
91
+ kind: z.ZodLiteral<"output_includes">;
92
+ text: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ kind: "output_includes";
95
+ text: string;
96
+ }, {
97
+ kind: "output_includes";
98
+ text: string;
99
+ }>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"output_excludes">;
101
+ text: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ kind: "output_excludes";
104
+ text: string;
105
+ }, {
106
+ kind: "output_excludes";
107
+ text: string;
108
+ }>]>;
109
+ claim: z.ZodOptional<z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ command: string[];
112
+ confirm_if: {
113
+ kind: "exit_zero";
114
+ } | {
115
+ kind: "exit_nonzero";
116
+ } | {
117
+ kind: "output_includes";
118
+ text: string;
119
+ } | {
120
+ kind: "output_excludes";
121
+ text: string;
122
+ };
123
+ claim?: string | undefined;
124
+ }, {
125
+ command: string[];
126
+ confirm_if: {
127
+ kind: "exit_zero";
128
+ } | {
129
+ kind: "exit_nonzero";
130
+ } | {
131
+ kind: "output_includes";
132
+ text: string;
133
+ } | {
134
+ kind: "output_excludes";
135
+ text: string;
136
+ };
137
+ claim?: string | undefined;
138
+ }>>;
139
+ contract_goal_id: z.ZodOptional<z.ZodString>;
140
+ contract_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
+ verification_obligation_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
+ targeted_commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
143
+ analyzer_provenance: z.ZodOptional<z.ZodObject<{
144
+ analyzer_id: z.ZodString;
145
+ rule: z.ZodOptional<z.ZodString>;
146
+ path: z.ZodString;
147
+ snippet_hash: z.ZodString;
148
+ }, "strict", z.ZodTypeAny, {
149
+ path: string;
150
+ analyzer_id: string;
151
+ snippet_hash: string;
152
+ rule?: string | undefined;
153
+ }, {
154
+ path: string;
155
+ analyzer_id: string;
156
+ snippet_hash: string;
157
+ rule?: string | undefined;
158
+ }>>;
159
+ lead_lineage: z.ZodOptional<z.ZodObject<{
160
+ producer: z.ZodString;
161
+ source_hash: z.ZodString;
162
+ confirmation: z.ZodLiteral<"lead">;
163
+ }, "strict", z.ZodTypeAny, {
164
+ producer: string;
165
+ source_hash: string;
166
+ confirmation: "lead";
167
+ }, {
168
+ producer: string;
169
+ source_hash: string;
170
+ confirmation: "lead";
171
+ }>>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ id: string;
174
+ confidence: "high" | "low" | "medium";
175
+ title: string;
176
+ category: string;
177
+ severity: "info" | "high" | "low" | "critical" | "medium";
178
+ lens: string;
179
+ summary: string;
180
+ affected_files: {
181
+ path: string;
182
+ symbol?: string | undefined;
183
+ line_start?: number | undefined;
184
+ line_end?: number | undefined;
185
+ quoted_text?: string | undefined;
186
+ no_quotable_span?: string | undefined;
187
+ hash_at_plan_time?: string | undefined;
188
+ }[];
189
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
190
+ impact?: string | undefined;
191
+ likelihood?: string | undefined;
192
+ evidence?: string[] | undefined;
193
+ reproduction?: string[] | undefined;
194
+ systemic?: boolean | undefined;
195
+ related_findings?: string[] | undefined;
196
+ theme_id?: string | undefined;
197
+ blast_radius?: number | undefined;
198
+ evidence_grounded?: boolean | undefined;
199
+ grounding?: {
200
+ status: "grounded" | "ungrounded" | "refuted";
201
+ reason?: string | undefined;
202
+ } | undefined;
203
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
204
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
205
+ executable_anchor?: {
206
+ command: string[];
207
+ confirm_if: {
208
+ kind: "exit_zero";
209
+ } | {
210
+ kind: "exit_nonzero";
211
+ } | {
212
+ kind: "output_includes";
213
+ text: string;
214
+ } | {
215
+ kind: "output_excludes";
216
+ text: string;
217
+ };
218
+ claim?: string | undefined;
219
+ } | undefined;
220
+ contract_goal_id?: string | undefined;
221
+ contract_obligation_ids?: string[] | undefined;
222
+ verification_obligation_ids?: string[] | undefined;
223
+ targeted_commands?: string[] | undefined;
224
+ analyzer_provenance?: {
225
+ path: string;
226
+ analyzer_id: string;
227
+ snippet_hash: string;
228
+ rule?: string | undefined;
229
+ } | undefined;
230
+ lead_lineage?: {
231
+ producer: string;
232
+ source_hash: string;
233
+ confirmation: "lead";
234
+ } | undefined;
235
+ }, {
236
+ id: string;
237
+ confidence: "high" | "low" | "medium";
238
+ title: string;
239
+ category: string;
240
+ severity: "info" | "high" | "low" | "critical" | "medium";
241
+ lens: string;
242
+ summary: string;
243
+ affected_files: {
244
+ path: string;
245
+ symbol?: string | undefined;
246
+ line_start?: number | undefined;
247
+ line_end?: number | undefined;
248
+ quoted_text?: string | undefined;
249
+ no_quotable_span?: string | undefined;
250
+ hash_at_plan_time?: string | undefined;
251
+ }[];
252
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
253
+ impact?: string | undefined;
254
+ likelihood?: string | undefined;
255
+ evidence?: string[] | undefined;
256
+ reproduction?: string[] | undefined;
257
+ systemic?: boolean | undefined;
258
+ related_findings?: string[] | undefined;
259
+ theme_id?: string | undefined;
260
+ blast_radius?: number | undefined;
261
+ evidence_grounded?: boolean | undefined;
262
+ grounding?: {
263
+ status: "grounded" | "ungrounded" | "refuted";
264
+ reason?: string | undefined;
265
+ } | undefined;
266
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
267
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
268
+ executable_anchor?: {
269
+ command: string[];
270
+ confirm_if: {
271
+ kind: "exit_zero";
272
+ } | {
273
+ kind: "exit_nonzero";
274
+ } | {
275
+ kind: "output_includes";
276
+ text: string;
277
+ } | {
278
+ kind: "output_excludes";
279
+ text: string;
280
+ };
281
+ claim?: string | undefined;
282
+ } | undefined;
283
+ contract_goal_id?: string | undefined;
284
+ contract_obligation_ids?: string[] | undefined;
285
+ verification_obligation_ids?: string[] | undefined;
286
+ targeted_commands?: string[] | undefined;
287
+ analyzer_provenance?: {
288
+ path: string;
289
+ analyzer_id: string;
290
+ snippet_hash: string;
291
+ rule?: string | undefined;
292
+ } | undefined;
293
+ lead_lineage?: {
294
+ producer: string;
295
+ source_hash: string;
296
+ confirmation: "lead";
297
+ } | undefined;
298
+ }>, "many">;
299
+ request: z.ZodOptional<z.ZodObject<{
300
+ id: z.ZodString;
301
+ text: z.ZodString;
302
+ source_paths: z.ZodArray<z.ZodString, "many">;
303
+ }, "strict", z.ZodTypeAny, {
304
+ id: string;
305
+ text: string;
306
+ source_paths: string[];
307
+ }, {
308
+ id: string;
309
+ text: string;
310
+ source_paths: string[];
311
+ }>>;
312
+ audit_read: z.ZodNullable<z.ZodObject<{
313
+ commit: z.ZodString;
314
+ dirty_paths: z.ZodArray<z.ZodString, "many">;
315
+ }, "strict", z.ZodTypeAny, {
316
+ commit: string;
317
+ dirty_paths: string[];
318
+ }, {
319
+ commit: string;
320
+ dirty_paths: string[];
321
+ }>>;
322
+ sources: z.ZodArray<z.ZodObject<{
323
+ path: z.ZodString;
324
+ sha256: z.ZodString;
325
+ }, "strict", z.ZodTypeAny, {
326
+ path: string;
327
+ sha256: string;
328
+ }, {
329
+ path: string;
330
+ sha256: string;
331
+ }>, "many">;
332
+ intent: z.ZodOptional<z.ZodObject<Omit<{
333
+ schema_version: z.ZodLiteral<"intent-checkpoint/v1">;
334
+ confirmed_at: z.ZodString;
335
+ confirmed_by: z.ZodLiteral<"host">;
336
+ scope_summary: z.ZodString;
337
+ intent_summary: z.ZodString;
338
+ free_form_intent: z.ZodOptional<z.ZodString>;
339
+ conformance_review: z.ZodOptional<z.ZodBoolean>;
340
+ excluded_scope: z.ZodOptional<z.ZodArray<z.ZodObject<{
341
+ path: z.ZodString;
342
+ reason: z.ZodString;
343
+ }, "strict", z.ZodTypeAny, {
344
+ path: string;
345
+ reason: string;
346
+ }, {
347
+ path: string;
348
+ reason: string;
349
+ }>, "many">>;
350
+ must_not_touch: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
351
+ filters: z.ZodOptional<z.ZodObject<{
352
+ severity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ lenses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
+ packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ themes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
+ }, "strict", z.ZodTypeAny, {
357
+ lenses?: string[] | undefined;
358
+ severity?: string[] | undefined;
359
+ themes?: string[] | undefined;
360
+ packages?: string[] | undefined;
361
+ }, {
362
+ lenses?: string[] | undefined;
363
+ severity?: string[] | undefined;
364
+ themes?: string[] | undefined;
365
+ packages?: string[] | undefined;
366
+ }>>;
367
+ closing_action: z.ZodOptional<z.ZodEnum<["commit", "push", "open-pr", "publish", "tag", "none", "custom"]>>;
368
+ closing_custom_command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ constraint_clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ clause_id: z.ZodOptional<z.ZodString>;
371
+ text: z.ZodString;
372
+ checkpoint_question: z.ZodString;
373
+ host_answer: z.ZodOptional<z.ZodString>;
374
+ }, "strict", z.ZodTypeAny, {
375
+ text: string;
376
+ checkpoint_question: string;
377
+ clause_id?: string | undefined;
378
+ host_answer?: string | undefined;
379
+ }, {
380
+ text: string;
381
+ checkpoint_question: string;
382
+ clause_id?: string | undefined;
383
+ host_answer?: string | undefined;
384
+ }>, "many">>;
385
+ disposition_overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
386
+ path: z.ZodString;
387
+ status: z.ZodEnum<["included", "excluded", "generated", "vendor", "binary", "doc_only"]>;
388
+ reason: z.ZodString;
389
+ }, "strict", z.ZodTypeAny, {
390
+ path: string;
391
+ status: "binary" | "included" | "excluded" | "generated" | "vendor" | "doc_only";
392
+ reason: string;
393
+ }, {
394
+ path: string;
395
+ status: "binary" | "included" | "excluded" | "generated" | "vendor" | "doc_only";
396
+ reason: string;
397
+ }>, "many">>;
398
+ lens_selection: z.ZodOptional<z.ZodObject<{
399
+ include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
400
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
401
+ }, "strict", z.ZodTypeAny, {
402
+ include?: string[] | undefined;
403
+ exclude?: string[] | undefined;
404
+ }, {
405
+ include?: string[] | undefined;
406
+ exclude?: string[] | undefined;
407
+ }>>;
408
+ design_review: z.ZodOptional<z.ZodEffects<z.ZodObject<{
409
+ answered_at: z.ZodOptional<z.ZodString>;
410
+ conceptual_depth: z.ZodOptional<z.ZodEnum<["shallow", "deep"]>>;
411
+ perspectives: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
412
+ name: z.ZodString;
413
+ lens: z.ZodString;
414
+ }, "strict", z.ZodTypeAny, {
415
+ name: string;
416
+ lens: string;
417
+ }, {
418
+ name: string;
419
+ lens: string;
420
+ }>]>, "many">, (string | {
421
+ name: string;
422
+ lens: string;
423
+ })[], (string | {
424
+ name: string;
425
+ lens: string;
426
+ })[]>]>>;
427
+ ceiling: z.ZodOptional<z.ZodObject<{
428
+ rung: z.ZodEnum<["shallow", "deep", "deepest"]>;
429
+ explicit_opt_in: z.ZodOptional<z.ZodBoolean>;
430
+ }, "strict", z.ZodTypeAny, {
431
+ rung: "shallow" | "deep" | "deepest";
432
+ explicit_opt_in?: boolean | undefined;
433
+ }, {
434
+ rung: "shallow" | "deep" | "deepest";
435
+ explicit_opt_in?: boolean | undefined;
436
+ }>>;
437
+ attention: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>>;
438
+ }, "strict", z.ZodTypeAny, {
439
+ answered_at?: string | undefined;
440
+ conceptual_depth?: "shallow" | "deep" | undefined;
441
+ perspectives?: number | (string | {
442
+ name: string;
443
+ lens: string;
444
+ })[] | undefined;
445
+ ceiling?: {
446
+ rung: "shallow" | "deep" | "deepest";
447
+ explicit_opt_in?: boolean | undefined;
448
+ } | undefined;
449
+ attention?: number | "all" | undefined;
450
+ }, {
451
+ answered_at?: string | undefined;
452
+ conceptual_depth?: "shallow" | "deep" | undefined;
453
+ perspectives?: number | (string | {
454
+ name: string;
455
+ lens: string;
456
+ })[] | undefined;
457
+ ceiling?: {
458
+ rung: "shallow" | "deep" | "deepest";
459
+ explicit_opt_in?: boolean | undefined;
460
+ } | undefined;
461
+ attention?: number | "all" | undefined;
462
+ }>, {
463
+ answered_at?: string | undefined;
464
+ conceptual_depth?: "shallow" | "deep" | undefined;
465
+ perspectives?: number | (string | {
466
+ name: string;
467
+ lens: string;
468
+ })[] | undefined;
469
+ ceiling?: {
470
+ rung: "shallow" | "deep" | "deepest";
471
+ explicit_opt_in?: boolean | undefined;
472
+ } | undefined;
473
+ attention?: number | "all" | undefined;
474
+ }, {
475
+ answered_at?: string | undefined;
476
+ conceptual_depth?: "shallow" | "deep" | undefined;
477
+ perspectives?: number | (string | {
478
+ name: string;
479
+ lens: string;
480
+ })[] | undefined;
481
+ ceiling?: {
482
+ rung: "shallow" | "deep" | "deepest";
483
+ explicit_opt_in?: boolean | undefined;
484
+ } | undefined;
485
+ attention?: number | "all" | undefined;
486
+ }>>;
487
+ }, "confirmed_at" | "conformance_review" | "closing_action" | "closing_custom_command">, "strict", z.ZodTypeAny, {
488
+ schema_version: "intent-checkpoint/v1";
489
+ confirmed_by: "host";
490
+ scope_summary: string;
491
+ intent_summary: string;
492
+ excluded_scope?: {
493
+ path: string;
494
+ reason: string;
495
+ }[] | undefined;
496
+ free_form_intent?: string | undefined;
497
+ must_not_touch?: string[] | undefined;
498
+ filters?: {
499
+ lenses?: string[] | undefined;
500
+ severity?: string[] | undefined;
501
+ themes?: string[] | undefined;
502
+ packages?: string[] | undefined;
503
+ } | undefined;
504
+ constraint_clauses?: {
505
+ text: string;
506
+ checkpoint_question: string;
507
+ clause_id?: string | undefined;
508
+ host_answer?: string | undefined;
509
+ }[] | undefined;
510
+ disposition_overrides?: {
511
+ path: string;
512
+ status: "binary" | "included" | "excluded" | "generated" | "vendor" | "doc_only";
513
+ reason: string;
514
+ }[] | undefined;
515
+ lens_selection?: {
516
+ include?: string[] | undefined;
517
+ exclude?: string[] | undefined;
518
+ } | undefined;
519
+ design_review?: {
520
+ answered_at?: string | undefined;
521
+ conceptual_depth?: "shallow" | "deep" | undefined;
522
+ perspectives?: number | (string | {
523
+ name: string;
524
+ lens: string;
525
+ })[] | undefined;
526
+ ceiling?: {
527
+ rung: "shallow" | "deep" | "deepest";
528
+ explicit_opt_in?: boolean | undefined;
529
+ } | undefined;
530
+ attention?: number | "all" | undefined;
531
+ } | undefined;
532
+ }, {
533
+ schema_version: "intent-checkpoint/v1";
534
+ confirmed_by: "host";
535
+ scope_summary: string;
536
+ intent_summary: string;
537
+ excluded_scope?: {
538
+ path: string;
539
+ reason: string;
540
+ }[] | undefined;
541
+ free_form_intent?: string | undefined;
542
+ must_not_touch?: string[] | undefined;
543
+ filters?: {
544
+ lenses?: string[] | undefined;
545
+ severity?: string[] | undefined;
546
+ themes?: string[] | undefined;
547
+ packages?: string[] | undefined;
548
+ } | undefined;
549
+ constraint_clauses?: {
550
+ text: string;
551
+ checkpoint_question: string;
552
+ clause_id?: string | undefined;
553
+ host_answer?: string | undefined;
554
+ }[] | undefined;
555
+ disposition_overrides?: {
556
+ path: string;
557
+ status: "binary" | "included" | "excluded" | "generated" | "vendor" | "doc_only";
558
+ reason: string;
559
+ }[] | undefined;
560
+ lens_selection?: {
561
+ include?: string[] | undefined;
562
+ exclude?: string[] | undefined;
563
+ } | undefined;
564
+ design_review?: {
565
+ answered_at?: string | undefined;
566
+ conceptual_depth?: "shallow" | "deep" | undefined;
567
+ perspectives?: number | (string | {
568
+ name: string;
569
+ lens: string;
570
+ })[] | undefined;
571
+ ceiling?: {
572
+ rung: "shallow" | "deep" | "deepest";
573
+ explicit_opt_in?: boolean | undefined;
574
+ } | undefined;
575
+ attention?: number | "all" | undefined;
576
+ } | undefined;
577
+ }>>;
578
+ }, "strict", z.ZodTypeAny, {
579
+ findings: {
580
+ id: string;
581
+ confidence: "high" | "low" | "medium";
582
+ title: string;
583
+ category: string;
584
+ severity: "info" | "high" | "low" | "critical" | "medium";
585
+ lens: string;
586
+ summary: string;
587
+ affected_files: {
588
+ path: string;
589
+ symbol?: string | undefined;
590
+ line_start?: number | undefined;
591
+ line_end?: number | undefined;
592
+ quoted_text?: string | undefined;
593
+ no_quotable_span?: string | undefined;
594
+ hash_at_plan_time?: string | undefined;
595
+ }[];
596
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
597
+ impact?: string | undefined;
598
+ likelihood?: string | undefined;
599
+ evidence?: string[] | undefined;
600
+ reproduction?: string[] | undefined;
601
+ systemic?: boolean | undefined;
602
+ related_findings?: string[] | undefined;
603
+ theme_id?: string | undefined;
604
+ blast_radius?: number | undefined;
605
+ evidence_grounded?: boolean | undefined;
606
+ grounding?: {
607
+ status: "grounded" | "ungrounded" | "refuted";
608
+ reason?: string | undefined;
609
+ } | undefined;
610
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
611
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
612
+ executable_anchor?: {
613
+ command: string[];
614
+ confirm_if: {
615
+ kind: "exit_zero";
616
+ } | {
617
+ kind: "exit_nonzero";
618
+ } | {
619
+ kind: "output_includes";
620
+ text: string;
621
+ } | {
622
+ kind: "output_excludes";
623
+ text: string;
624
+ };
625
+ claim?: string | undefined;
626
+ } | undefined;
627
+ contract_goal_id?: string | undefined;
628
+ contract_obligation_ids?: string[] | undefined;
629
+ verification_obligation_ids?: string[] | undefined;
630
+ targeted_commands?: string[] | undefined;
631
+ analyzer_provenance?: {
632
+ path: string;
633
+ analyzer_id: string;
634
+ snippet_hash: string;
635
+ rule?: string | undefined;
636
+ } | undefined;
637
+ lead_lineage?: {
638
+ producer: string;
639
+ source_hash: string;
640
+ confirmation: "lead";
641
+ } | undefined;
642
+ }[];
643
+ audit_read: {
644
+ commit: string;
645
+ dirty_paths: string[];
646
+ } | null;
647
+ plan_id: string;
648
+ sources: {
649
+ path: string;
650
+ sha256: string;
651
+ }[];
652
+ intent?: {
653
+ schema_version: "intent-checkpoint/v1";
654
+ confirmed_by: "host";
655
+ scope_summary: string;
656
+ intent_summary: string;
657
+ excluded_scope?: {
658
+ path: string;
659
+ reason: string;
660
+ }[] | undefined;
661
+ free_form_intent?: string | undefined;
662
+ must_not_touch?: string[] | undefined;
663
+ filters?: {
664
+ lenses?: string[] | undefined;
665
+ severity?: string[] | undefined;
666
+ themes?: string[] | undefined;
667
+ packages?: string[] | undefined;
668
+ } | undefined;
669
+ constraint_clauses?: {
670
+ text: string;
671
+ checkpoint_question: string;
672
+ clause_id?: string | undefined;
673
+ host_answer?: string | undefined;
674
+ }[] | undefined;
675
+ disposition_overrides?: {
676
+ path: string;
677
+ status: "binary" | "included" | "excluded" | "generated" | "vendor" | "doc_only";
678
+ reason: string;
679
+ }[] | undefined;
680
+ lens_selection?: {
681
+ include?: string[] | undefined;
682
+ exclude?: string[] | undefined;
683
+ } | undefined;
684
+ design_review?: {
685
+ answered_at?: string | undefined;
686
+ conceptual_depth?: "shallow" | "deep" | undefined;
687
+ perspectives?: number | (string | {
688
+ name: string;
689
+ lens: string;
690
+ })[] | undefined;
691
+ ceiling?: {
692
+ rung: "shallow" | "deep" | "deepest";
693
+ explicit_opt_in?: boolean | undefined;
694
+ } | undefined;
695
+ attention?: number | "all" | undefined;
696
+ } | undefined;
697
+ } | undefined;
698
+ request?: {
699
+ id: string;
700
+ text: string;
701
+ source_paths: string[];
702
+ } | undefined;
703
+ }, {
704
+ findings: {
705
+ id: string;
706
+ confidence: "high" | "low" | "medium";
707
+ title: string;
708
+ category: string;
709
+ severity: "info" | "high" | "low" | "critical" | "medium";
710
+ lens: string;
711
+ summary: string;
712
+ affected_files: {
713
+ path: string;
714
+ symbol?: string | undefined;
715
+ line_start?: number | undefined;
716
+ line_end?: number | undefined;
717
+ quoted_text?: string | undefined;
718
+ no_quotable_span?: string | undefined;
719
+ hash_at_plan_time?: string | undefined;
720
+ }[];
721
+ severity_downgraded_from?: "info" | "high" | "low" | "critical" | "medium" | undefined;
722
+ impact?: string | undefined;
723
+ likelihood?: string | undefined;
724
+ evidence?: string[] | undefined;
725
+ reproduction?: string[] | undefined;
726
+ systemic?: boolean | undefined;
727
+ related_findings?: string[] | undefined;
728
+ theme_id?: string | undefined;
729
+ blast_radius?: number | undefined;
730
+ evidence_grounded?: boolean | undefined;
731
+ grounding?: {
732
+ status: "grounded" | "ungrounded" | "refuted";
733
+ reason?: string | undefined;
734
+ } | undefined;
735
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
736
+ verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
737
+ executable_anchor?: {
738
+ command: string[];
739
+ confirm_if: {
740
+ kind: "exit_zero";
741
+ } | {
742
+ kind: "exit_nonzero";
743
+ } | {
744
+ kind: "output_includes";
745
+ text: string;
746
+ } | {
747
+ kind: "output_excludes";
748
+ text: string;
749
+ };
750
+ claim?: string | undefined;
751
+ } | undefined;
752
+ contract_goal_id?: string | undefined;
753
+ contract_obligation_ids?: string[] | undefined;
754
+ verification_obligation_ids?: string[] | undefined;
755
+ targeted_commands?: string[] | undefined;
756
+ analyzer_provenance?: {
757
+ path: string;
758
+ analyzer_id: string;
759
+ snippet_hash: string;
760
+ rule?: string | undefined;
761
+ } | undefined;
762
+ lead_lineage?: {
763
+ producer: string;
764
+ source_hash: string;
765
+ confirmation: "lead";
766
+ } | undefined;
767
+ }[];
768
+ audit_read: {
769
+ commit: string;
770
+ dirty_paths: string[];
771
+ } | null;
772
+ plan_id: string;
773
+ sources: {
774
+ path: string;
775
+ sha256: string;
776
+ }[];
777
+ intent?: {
778
+ schema_version: "intent-checkpoint/v1";
779
+ confirmed_by: "host";
780
+ scope_summary: string;
781
+ intent_summary: string;
782
+ excluded_scope?: {
783
+ path: string;
784
+ reason: string;
785
+ }[] | undefined;
786
+ free_form_intent?: string | undefined;
787
+ must_not_touch?: string[] | undefined;
788
+ filters?: {
789
+ lenses?: string[] | undefined;
790
+ severity?: string[] | undefined;
791
+ themes?: string[] | undefined;
792
+ packages?: string[] | undefined;
793
+ } | undefined;
794
+ constraint_clauses?: {
795
+ text: string;
796
+ checkpoint_question: string;
797
+ clause_id?: string | undefined;
798
+ host_answer?: string | undefined;
799
+ }[] | undefined;
800
+ disposition_overrides?: {
801
+ path: string;
802
+ status: "binary" | "included" | "excluded" | "generated" | "vendor" | "doc_only";
803
+ reason: string;
804
+ }[] | undefined;
805
+ lens_selection?: {
806
+ include?: string[] | undefined;
807
+ exclude?: string[] | undefined;
808
+ } | undefined;
809
+ design_review?: {
810
+ answered_at?: string | undefined;
811
+ conceptual_depth?: "shallow" | "deep" | undefined;
812
+ perspectives?: number | (string | {
813
+ name: string;
814
+ lens: string;
815
+ })[] | undefined;
816
+ ceiling?: {
817
+ rung: "shallow" | "deep" | "deepest";
818
+ explicit_opt_in?: boolean | undefined;
819
+ } | undefined;
820
+ attention?: number | "all" | undefined;
821
+ } | undefined;
822
+ } | undefined;
823
+ request?: {
824
+ id: string;
825
+ text: string;
826
+ source_paths: string[];
827
+ } | undefined;
828
+ }>;
829
+ export type PlanSource = z.infer<typeof PlanSourceSchema>;
830
+ export declare function readExecutionIntent(artifactsDir: string): Promise<PlanSource["intent"]>;
831
+ export declare const PlanSubmissionSchema: z.ZodObject<{
832
+ base_revision_sha256: z.ZodNullable<z.ZodString>;
833
+ plan: z.ZodObject<{
834
+ plan_id: z.ZodString;
835
+ objective: z.ZodString;
836
+ non_goals: z.ZodArray<z.ZodString, "many">;
837
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
838
+ id: z.ZodString;
839
+ description: z.ZodString;
840
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
841
+ change_kind: z.ZodEnum<["behavior_change", "addition", "structural"]>;
842
+ assertions: z.ZodArray<z.ZodObject<{
843
+ kind: z.ZodEnum<["positive", "negative"]>;
844
+ description: z.ZodString;
845
+ scope_paths: z.ZodArray<z.ZodString, "many">;
846
+ }, "strict", z.ZodTypeAny, {
847
+ kind: "positive" | "negative";
848
+ description: string;
849
+ scope_paths: string[];
850
+ }, {
851
+ kind: "positive" | "negative";
852
+ description: string;
853
+ scope_paths: string[];
854
+ }>, "many">;
855
+ inapplicable_reason: z.ZodOptional<z.ZodString>;
856
+ }, "strict", z.ZodTypeAny, {
857
+ id: string;
858
+ description: string;
859
+ source_finding_ids: string[];
860
+ change_kind: "structural" | "behavior_change" | "addition";
861
+ assertions: {
862
+ kind: "positive" | "negative";
863
+ description: string;
864
+ scope_paths: string[];
865
+ }[];
866
+ inapplicable_reason?: string | undefined;
867
+ }, {
868
+ id: string;
869
+ description: string;
870
+ source_finding_ids: string[];
871
+ change_kind: "structural" | "behavior_change" | "addition";
872
+ assertions: {
873
+ kind: "positive" | "negative";
874
+ description: string;
875
+ scope_paths: string[];
876
+ }[];
877
+ inapplicable_reason?: string | undefined;
878
+ }>, {
879
+ id: string;
880
+ description: string;
881
+ source_finding_ids: string[];
882
+ change_kind: "structural" | "behavior_change" | "addition";
883
+ assertions: {
884
+ kind: "positive" | "negative";
885
+ description: string;
886
+ scope_paths: string[];
887
+ }[];
888
+ inapplicable_reason?: string | undefined;
889
+ }, {
890
+ id: string;
891
+ description: string;
892
+ source_finding_ids: string[];
893
+ change_kind: "structural" | "behavior_change" | "addition";
894
+ assertions: {
895
+ kind: "positive" | "negative";
896
+ description: string;
897
+ scope_paths: string[];
898
+ }[];
899
+ inapplicable_reason?: string | undefined;
900
+ }>, "many">;
901
+ units: z.ZodArray<z.ZodObject<{
902
+ id: z.ZodString;
903
+ title: z.ZodString;
904
+ description: z.ZodString;
905
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
906
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
907
+ dependencies: z.ZodArray<z.ZodString, "many">;
908
+ phase_ordinal: z.ZodOptional<z.ZodNumber>;
909
+ read_paths: z.ZodArray<z.ZodString, "many">;
910
+ allowed_files: z.ZodArray<z.ZodString, "many">;
911
+ required_tests: z.ZodArray<z.ZodString, "many">;
912
+ affected_interfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
913
+ name: z.ZodString;
914
+ description: z.ZodString;
915
+ }, "strict", z.ZodTypeAny, {
916
+ name: string;
917
+ description: string;
918
+ }, {
919
+ name: string;
920
+ description: string;
921
+ }>, "many">>;
922
+ addresses_counterexample_ids: z.ZodArray<z.ZodString, "many">;
923
+ }, "strict", z.ZodTypeAny, {
924
+ id: string;
925
+ read_paths: string[];
926
+ title: string;
927
+ description: string;
928
+ source_finding_ids: string[];
929
+ requirement_ids: string[];
930
+ dependencies: string[];
931
+ allowed_files: string[];
932
+ required_tests: string[];
933
+ affected_interfaces: {
934
+ name: string;
935
+ description: string;
936
+ }[];
937
+ addresses_counterexample_ids: string[];
938
+ phase_ordinal?: number | undefined;
939
+ }, {
940
+ id: string;
941
+ read_paths: string[];
942
+ title: string;
943
+ description: string;
944
+ source_finding_ids: string[];
945
+ requirement_ids: string[];
946
+ dependencies: string[];
947
+ allowed_files: string[];
948
+ required_tests: string[];
949
+ addresses_counterexample_ids: string[];
950
+ phase_ordinal?: number | undefined;
951
+ affected_interfaces?: {
952
+ name: string;
953
+ description: string;
954
+ }[] | undefined;
955
+ }>, "many">;
956
+ source_dispositions: z.ZodDefault<z.ZodArray<z.ZodObject<{
957
+ finding_id: z.ZodString;
958
+ status: z.ZodEnum<["already_fixed", "refuted", "deferred"]>;
959
+ reason: z.ZodString;
960
+ evidence: z.ZodArray<z.ZodString, "many">;
961
+ }, "strict", z.ZodTypeAny, {
962
+ status: "refuted" | "already_fixed" | "deferred";
963
+ reason: string;
964
+ evidence: string[];
965
+ finding_id: string;
966
+ }, {
967
+ status: "refuted" | "already_fixed" | "deferred";
968
+ reason: string;
969
+ evidence: string[];
970
+ finding_id: string;
971
+ }>, "many">>;
972
+ request_disposition: z.ZodOptional<z.ZodObject<{
973
+ status: z.ZodEnum<["already_satisfied", "deferred"]>;
974
+ reason: z.ZodString;
975
+ evidence: z.ZodArray<z.ZodString, "many">;
976
+ }, "strict", z.ZodTypeAny, {
977
+ status: "deferred" | "already_satisfied";
978
+ reason: string;
979
+ evidence: string[];
980
+ }, {
981
+ status: "deferred" | "already_satisfied";
982
+ reason: string;
983
+ evidence: string[];
984
+ }>>;
985
+ }, "strict", z.ZodTypeAny, {
986
+ plan_id: string;
987
+ objective: string;
988
+ non_goals: string[];
989
+ requirements: {
990
+ id: string;
991
+ description: string;
992
+ source_finding_ids: string[];
993
+ change_kind: "structural" | "behavior_change" | "addition";
994
+ assertions: {
995
+ kind: "positive" | "negative";
996
+ description: string;
997
+ scope_paths: string[];
998
+ }[];
999
+ inapplicable_reason?: string | undefined;
1000
+ }[];
1001
+ units: {
1002
+ id: string;
1003
+ read_paths: string[];
1004
+ title: string;
1005
+ description: string;
1006
+ source_finding_ids: string[];
1007
+ requirement_ids: string[];
1008
+ dependencies: string[];
1009
+ allowed_files: string[];
1010
+ required_tests: string[];
1011
+ affected_interfaces: {
1012
+ name: string;
1013
+ description: string;
1014
+ }[];
1015
+ addresses_counterexample_ids: string[];
1016
+ phase_ordinal?: number | undefined;
1017
+ }[];
1018
+ source_dispositions: {
1019
+ status: "refuted" | "already_fixed" | "deferred";
1020
+ reason: string;
1021
+ evidence: string[];
1022
+ finding_id: string;
1023
+ }[];
1024
+ request_disposition?: {
1025
+ status: "deferred" | "already_satisfied";
1026
+ reason: string;
1027
+ evidence: string[];
1028
+ } | undefined;
1029
+ }, {
1030
+ plan_id: string;
1031
+ objective: string;
1032
+ non_goals: string[];
1033
+ requirements: {
1034
+ id: string;
1035
+ description: string;
1036
+ source_finding_ids: string[];
1037
+ change_kind: "structural" | "behavior_change" | "addition";
1038
+ assertions: {
1039
+ kind: "positive" | "negative";
1040
+ description: string;
1041
+ scope_paths: string[];
1042
+ }[];
1043
+ inapplicable_reason?: string | undefined;
1044
+ }[];
1045
+ units: {
1046
+ id: string;
1047
+ read_paths: string[];
1048
+ title: string;
1049
+ description: string;
1050
+ source_finding_ids: string[];
1051
+ requirement_ids: string[];
1052
+ dependencies: string[];
1053
+ allowed_files: string[];
1054
+ required_tests: string[];
1055
+ addresses_counterexample_ids: string[];
1056
+ phase_ordinal?: number | undefined;
1057
+ affected_interfaces?: {
1058
+ name: string;
1059
+ description: string;
1060
+ }[] | undefined;
1061
+ }[];
1062
+ source_dispositions?: {
1063
+ status: "refuted" | "already_fixed" | "deferred";
1064
+ reason: string;
1065
+ evidence: string[];
1066
+ finding_id: string;
1067
+ }[] | undefined;
1068
+ request_disposition?: {
1069
+ status: "deferred" | "already_satisfied";
1070
+ reason: string;
1071
+ evidence: string[];
1072
+ } | undefined;
1073
+ }>;
1074
+ retired_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
1075
+ id: z.ZodString;
1076
+ reason: z.ZodString;
1077
+ replaced_by: z.ZodArray<z.ZodString, "many">;
1078
+ }, "strict", z.ZodTypeAny, {
1079
+ reason: string;
1080
+ id: string;
1081
+ replaced_by: string[];
1082
+ }, {
1083
+ reason: string;
1084
+ id: string;
1085
+ replaced_by: string[];
1086
+ }>, "many">>;
1087
+ }, "strict", z.ZodTypeAny, {
1088
+ plan: {
1089
+ plan_id: string;
1090
+ objective: string;
1091
+ non_goals: string[];
1092
+ requirements: {
1093
+ id: string;
1094
+ description: string;
1095
+ source_finding_ids: string[];
1096
+ change_kind: "structural" | "behavior_change" | "addition";
1097
+ assertions: {
1098
+ kind: "positive" | "negative";
1099
+ description: string;
1100
+ scope_paths: string[];
1101
+ }[];
1102
+ inapplicable_reason?: string | undefined;
1103
+ }[];
1104
+ units: {
1105
+ id: string;
1106
+ read_paths: string[];
1107
+ title: string;
1108
+ description: string;
1109
+ source_finding_ids: string[];
1110
+ requirement_ids: string[];
1111
+ dependencies: string[];
1112
+ allowed_files: string[];
1113
+ required_tests: string[];
1114
+ affected_interfaces: {
1115
+ name: string;
1116
+ description: string;
1117
+ }[];
1118
+ addresses_counterexample_ids: string[];
1119
+ phase_ordinal?: number | undefined;
1120
+ }[];
1121
+ source_dispositions: {
1122
+ status: "refuted" | "already_fixed" | "deferred";
1123
+ reason: string;
1124
+ evidence: string[];
1125
+ finding_id: string;
1126
+ }[];
1127
+ request_disposition?: {
1128
+ status: "deferred" | "already_satisfied";
1129
+ reason: string;
1130
+ evidence: string[];
1131
+ } | undefined;
1132
+ };
1133
+ base_revision_sha256: string | null;
1134
+ retired_requirements: {
1135
+ reason: string;
1136
+ id: string;
1137
+ replaced_by: string[];
1138
+ }[];
1139
+ }, {
1140
+ plan: {
1141
+ plan_id: string;
1142
+ objective: string;
1143
+ non_goals: string[];
1144
+ requirements: {
1145
+ id: string;
1146
+ description: string;
1147
+ source_finding_ids: string[];
1148
+ change_kind: "structural" | "behavior_change" | "addition";
1149
+ assertions: {
1150
+ kind: "positive" | "negative";
1151
+ description: string;
1152
+ scope_paths: string[];
1153
+ }[];
1154
+ inapplicable_reason?: string | undefined;
1155
+ }[];
1156
+ units: {
1157
+ id: string;
1158
+ read_paths: string[];
1159
+ title: string;
1160
+ description: string;
1161
+ source_finding_ids: string[];
1162
+ requirement_ids: string[];
1163
+ dependencies: string[];
1164
+ allowed_files: string[];
1165
+ required_tests: string[];
1166
+ addresses_counterexample_ids: string[];
1167
+ phase_ordinal?: number | undefined;
1168
+ affected_interfaces?: {
1169
+ name: string;
1170
+ description: string;
1171
+ }[] | undefined;
1172
+ }[];
1173
+ source_dispositions?: {
1174
+ status: "refuted" | "already_fixed" | "deferred";
1175
+ reason: string;
1176
+ evidence: string[];
1177
+ finding_id: string;
1178
+ }[] | undefined;
1179
+ request_disposition?: {
1180
+ status: "deferred" | "already_satisfied";
1181
+ reason: string;
1182
+ evidence: string[];
1183
+ } | undefined;
1184
+ };
1185
+ base_revision_sha256: string | null;
1186
+ retired_requirements?: {
1187
+ reason: string;
1188
+ id: string;
1189
+ replaced_by: string[];
1190
+ }[] | undefined;
1191
+ }>;
1192
+ export declare const CanonicalPlanSchema: z.ZodObject<{
1193
+ contract_version: z.ZodLiteral<"remediate-code-executable-plan/v1">;
1194
+ revision_sha256: z.ZodString;
1195
+ source_sha256: z.ZodString;
1196
+ context_files: z.ZodArray<z.ZodObject<{
1197
+ path: z.ZodString;
1198
+ sha256: z.ZodNullable<z.ZodString>;
1199
+ }, "strict", z.ZodTypeAny, {
1200
+ path: string;
1201
+ sha256: string | null;
1202
+ }, {
1203
+ path: string;
1204
+ sha256: string | null;
1205
+ }>, "many">;
1206
+ plan: z.ZodObject<{
1207
+ plan_id: z.ZodString;
1208
+ objective: z.ZodString;
1209
+ non_goals: z.ZodArray<z.ZodString, "many">;
1210
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
1211
+ id: z.ZodString;
1212
+ description: z.ZodString;
1213
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
1214
+ change_kind: z.ZodEnum<["behavior_change", "addition", "structural"]>;
1215
+ assertions: z.ZodArray<z.ZodObject<{
1216
+ kind: z.ZodEnum<["positive", "negative"]>;
1217
+ description: z.ZodString;
1218
+ scope_paths: z.ZodArray<z.ZodString, "many">;
1219
+ }, "strict", z.ZodTypeAny, {
1220
+ kind: "positive" | "negative";
1221
+ description: string;
1222
+ scope_paths: string[];
1223
+ }, {
1224
+ kind: "positive" | "negative";
1225
+ description: string;
1226
+ scope_paths: string[];
1227
+ }>, "many">;
1228
+ inapplicable_reason: z.ZodOptional<z.ZodString>;
1229
+ }, "strict", z.ZodTypeAny, {
1230
+ id: string;
1231
+ description: string;
1232
+ source_finding_ids: string[];
1233
+ change_kind: "structural" | "behavior_change" | "addition";
1234
+ assertions: {
1235
+ kind: "positive" | "negative";
1236
+ description: string;
1237
+ scope_paths: string[];
1238
+ }[];
1239
+ inapplicable_reason?: string | undefined;
1240
+ }, {
1241
+ id: string;
1242
+ description: string;
1243
+ source_finding_ids: string[];
1244
+ change_kind: "structural" | "behavior_change" | "addition";
1245
+ assertions: {
1246
+ kind: "positive" | "negative";
1247
+ description: string;
1248
+ scope_paths: string[];
1249
+ }[];
1250
+ inapplicable_reason?: string | undefined;
1251
+ }>, {
1252
+ id: string;
1253
+ description: string;
1254
+ source_finding_ids: string[];
1255
+ change_kind: "structural" | "behavior_change" | "addition";
1256
+ assertions: {
1257
+ kind: "positive" | "negative";
1258
+ description: string;
1259
+ scope_paths: string[];
1260
+ }[];
1261
+ inapplicable_reason?: string | undefined;
1262
+ }, {
1263
+ id: string;
1264
+ description: string;
1265
+ source_finding_ids: string[];
1266
+ change_kind: "structural" | "behavior_change" | "addition";
1267
+ assertions: {
1268
+ kind: "positive" | "negative";
1269
+ description: string;
1270
+ scope_paths: string[];
1271
+ }[];
1272
+ inapplicable_reason?: string | undefined;
1273
+ }>, "many">;
1274
+ units: z.ZodArray<z.ZodObject<{
1275
+ id: z.ZodString;
1276
+ title: z.ZodString;
1277
+ description: z.ZodString;
1278
+ source_finding_ids: z.ZodArray<z.ZodString, "many">;
1279
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
1280
+ dependencies: z.ZodArray<z.ZodString, "many">;
1281
+ phase_ordinal: z.ZodOptional<z.ZodNumber>;
1282
+ read_paths: z.ZodArray<z.ZodString, "many">;
1283
+ allowed_files: z.ZodArray<z.ZodString, "many">;
1284
+ required_tests: z.ZodArray<z.ZodString, "many">;
1285
+ affected_interfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
1286
+ name: z.ZodString;
1287
+ description: z.ZodString;
1288
+ }, "strict", z.ZodTypeAny, {
1289
+ name: string;
1290
+ description: string;
1291
+ }, {
1292
+ name: string;
1293
+ description: string;
1294
+ }>, "many">>;
1295
+ addresses_counterexample_ids: z.ZodArray<z.ZodString, "many">;
1296
+ }, "strict", z.ZodTypeAny, {
1297
+ id: string;
1298
+ read_paths: string[];
1299
+ title: string;
1300
+ description: string;
1301
+ source_finding_ids: string[];
1302
+ requirement_ids: string[];
1303
+ dependencies: string[];
1304
+ allowed_files: string[];
1305
+ required_tests: string[];
1306
+ affected_interfaces: {
1307
+ name: string;
1308
+ description: string;
1309
+ }[];
1310
+ addresses_counterexample_ids: string[];
1311
+ phase_ordinal?: number | undefined;
1312
+ }, {
1313
+ id: string;
1314
+ read_paths: string[];
1315
+ title: string;
1316
+ description: string;
1317
+ source_finding_ids: string[];
1318
+ requirement_ids: string[];
1319
+ dependencies: string[];
1320
+ allowed_files: string[];
1321
+ required_tests: string[];
1322
+ addresses_counterexample_ids: string[];
1323
+ phase_ordinal?: number | undefined;
1324
+ affected_interfaces?: {
1325
+ name: string;
1326
+ description: string;
1327
+ }[] | undefined;
1328
+ }>, "many">;
1329
+ source_dispositions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1330
+ finding_id: z.ZodString;
1331
+ status: z.ZodEnum<["already_fixed", "refuted", "deferred"]>;
1332
+ reason: z.ZodString;
1333
+ evidence: z.ZodArray<z.ZodString, "many">;
1334
+ }, "strict", z.ZodTypeAny, {
1335
+ status: "refuted" | "already_fixed" | "deferred";
1336
+ reason: string;
1337
+ evidence: string[];
1338
+ finding_id: string;
1339
+ }, {
1340
+ status: "refuted" | "already_fixed" | "deferred";
1341
+ reason: string;
1342
+ evidence: string[];
1343
+ finding_id: string;
1344
+ }>, "many">>;
1345
+ request_disposition: z.ZodOptional<z.ZodObject<{
1346
+ status: z.ZodEnum<["already_satisfied", "deferred"]>;
1347
+ reason: z.ZodString;
1348
+ evidence: z.ZodArray<z.ZodString, "many">;
1349
+ }, "strict", z.ZodTypeAny, {
1350
+ status: "deferred" | "already_satisfied";
1351
+ reason: string;
1352
+ evidence: string[];
1353
+ }, {
1354
+ status: "deferred" | "already_satisfied";
1355
+ reason: string;
1356
+ evidence: string[];
1357
+ }>>;
1358
+ }, "strict", z.ZodTypeAny, {
1359
+ plan_id: string;
1360
+ objective: string;
1361
+ non_goals: string[];
1362
+ requirements: {
1363
+ id: string;
1364
+ description: string;
1365
+ source_finding_ids: string[];
1366
+ change_kind: "structural" | "behavior_change" | "addition";
1367
+ assertions: {
1368
+ kind: "positive" | "negative";
1369
+ description: string;
1370
+ scope_paths: string[];
1371
+ }[];
1372
+ inapplicable_reason?: string | undefined;
1373
+ }[];
1374
+ units: {
1375
+ id: string;
1376
+ read_paths: string[];
1377
+ title: string;
1378
+ description: string;
1379
+ source_finding_ids: string[];
1380
+ requirement_ids: string[];
1381
+ dependencies: string[];
1382
+ allowed_files: string[];
1383
+ required_tests: string[];
1384
+ affected_interfaces: {
1385
+ name: string;
1386
+ description: string;
1387
+ }[];
1388
+ addresses_counterexample_ids: string[];
1389
+ phase_ordinal?: number | undefined;
1390
+ }[];
1391
+ source_dispositions: {
1392
+ status: "refuted" | "already_fixed" | "deferred";
1393
+ reason: string;
1394
+ evidence: string[];
1395
+ finding_id: string;
1396
+ }[];
1397
+ request_disposition?: {
1398
+ status: "deferred" | "already_satisfied";
1399
+ reason: string;
1400
+ evidence: string[];
1401
+ } | undefined;
1402
+ }, {
1403
+ plan_id: string;
1404
+ objective: string;
1405
+ non_goals: string[];
1406
+ requirements: {
1407
+ id: string;
1408
+ description: string;
1409
+ source_finding_ids: string[];
1410
+ change_kind: "structural" | "behavior_change" | "addition";
1411
+ assertions: {
1412
+ kind: "positive" | "negative";
1413
+ description: string;
1414
+ scope_paths: string[];
1415
+ }[];
1416
+ inapplicable_reason?: string | undefined;
1417
+ }[];
1418
+ units: {
1419
+ id: string;
1420
+ read_paths: string[];
1421
+ title: string;
1422
+ description: string;
1423
+ source_finding_ids: string[];
1424
+ requirement_ids: string[];
1425
+ dependencies: string[];
1426
+ allowed_files: string[];
1427
+ required_tests: string[];
1428
+ addresses_counterexample_ids: string[];
1429
+ phase_ordinal?: number | undefined;
1430
+ affected_interfaces?: {
1431
+ name: string;
1432
+ description: string;
1433
+ }[] | undefined;
1434
+ }[];
1435
+ source_dispositions?: {
1436
+ status: "refuted" | "already_fixed" | "deferred";
1437
+ reason: string;
1438
+ evidence: string[];
1439
+ finding_id: string;
1440
+ }[] | undefined;
1441
+ request_disposition?: {
1442
+ status: "deferred" | "already_satisfied";
1443
+ reason: string;
1444
+ evidence: string[];
1445
+ } | undefined;
1446
+ }>;
1447
+ }, "strict", z.ZodTypeAny, {
1448
+ contract_version: "remediate-code-executable-plan/v1";
1449
+ plan: {
1450
+ plan_id: string;
1451
+ objective: string;
1452
+ non_goals: string[];
1453
+ requirements: {
1454
+ id: string;
1455
+ description: string;
1456
+ source_finding_ids: string[];
1457
+ change_kind: "structural" | "behavior_change" | "addition";
1458
+ assertions: {
1459
+ kind: "positive" | "negative";
1460
+ description: string;
1461
+ scope_paths: string[];
1462
+ }[];
1463
+ inapplicable_reason?: string | undefined;
1464
+ }[];
1465
+ units: {
1466
+ id: string;
1467
+ read_paths: string[];
1468
+ title: string;
1469
+ description: string;
1470
+ source_finding_ids: string[];
1471
+ requirement_ids: string[];
1472
+ dependencies: string[];
1473
+ allowed_files: string[];
1474
+ required_tests: string[];
1475
+ affected_interfaces: {
1476
+ name: string;
1477
+ description: string;
1478
+ }[];
1479
+ addresses_counterexample_ids: string[];
1480
+ phase_ordinal?: number | undefined;
1481
+ }[];
1482
+ source_dispositions: {
1483
+ status: "refuted" | "already_fixed" | "deferred";
1484
+ reason: string;
1485
+ evidence: string[];
1486
+ finding_id: string;
1487
+ }[];
1488
+ request_disposition?: {
1489
+ status: "deferred" | "already_satisfied";
1490
+ reason: string;
1491
+ evidence: string[];
1492
+ } | undefined;
1493
+ };
1494
+ revision_sha256: string;
1495
+ source_sha256: string;
1496
+ context_files: {
1497
+ path: string;
1498
+ sha256: string | null;
1499
+ }[];
1500
+ }, {
1501
+ contract_version: "remediate-code-executable-plan/v1";
1502
+ plan: {
1503
+ plan_id: string;
1504
+ objective: string;
1505
+ non_goals: string[];
1506
+ requirements: {
1507
+ id: string;
1508
+ description: string;
1509
+ source_finding_ids: string[];
1510
+ change_kind: "structural" | "behavior_change" | "addition";
1511
+ assertions: {
1512
+ kind: "positive" | "negative";
1513
+ description: string;
1514
+ scope_paths: string[];
1515
+ }[];
1516
+ inapplicable_reason?: string | undefined;
1517
+ }[];
1518
+ units: {
1519
+ id: string;
1520
+ read_paths: string[];
1521
+ title: string;
1522
+ description: string;
1523
+ source_finding_ids: string[];
1524
+ requirement_ids: string[];
1525
+ dependencies: string[];
1526
+ allowed_files: string[];
1527
+ required_tests: string[];
1528
+ addresses_counterexample_ids: string[];
1529
+ phase_ordinal?: number | undefined;
1530
+ affected_interfaces?: {
1531
+ name: string;
1532
+ description: string;
1533
+ }[] | undefined;
1534
+ }[];
1535
+ source_dispositions?: {
1536
+ status: "refuted" | "already_fixed" | "deferred";
1537
+ reason: string;
1538
+ evidence: string[];
1539
+ finding_id: string;
1540
+ }[] | undefined;
1541
+ request_disposition?: {
1542
+ status: "deferred" | "already_satisfied";
1543
+ reason: string;
1544
+ evidence: string[];
1545
+ } | undefined;
1546
+ };
1547
+ revision_sha256: string;
1548
+ source_sha256: string;
1549
+ context_files: {
1550
+ path: string;
1551
+ sha256: string | null;
1552
+ }[];
1553
+ }>;
1554
+ export type CanonicalPlan = z.infer<typeof CanonicalPlanSchema>;
1555
+ export declare const ReviewIssueSchema: z.ZodObject<{
1556
+ id: z.ZodString;
1557
+ description: z.ZodString;
1558
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
1559
+ unit_ids: z.ZodArray<z.ZodString, "many">;
1560
+ blocking: z.ZodBoolean;
1561
+ }, "strict", z.ZodTypeAny, {
1562
+ id: string;
1563
+ unit_ids: string[];
1564
+ description: string;
1565
+ requirement_ids: string[];
1566
+ blocking: boolean;
1567
+ }, {
1568
+ id: string;
1569
+ unit_ids: string[];
1570
+ description: string;
1571
+ requirement_ids: string[];
1572
+ blocking: boolean;
1573
+ }>;
1574
+ export declare const CritiqueSchema: z.ZodObject<{
1575
+ verdict: z.ZodEnum<["approved", "needs_repair"]>;
1576
+ issues: z.ZodArray<z.ZodObject<{
1577
+ id: z.ZodString;
1578
+ description: z.ZodString;
1579
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
1580
+ unit_ids: z.ZodArray<z.ZodString, "many">;
1581
+ blocking: z.ZodBoolean;
1582
+ }, "strict", z.ZodTypeAny, {
1583
+ id: string;
1584
+ unit_ids: string[];
1585
+ description: string;
1586
+ requirement_ids: string[];
1587
+ blocking: boolean;
1588
+ }, {
1589
+ id: string;
1590
+ unit_ids: string[];
1591
+ description: string;
1592
+ requirement_ids: string[];
1593
+ blocking: boolean;
1594
+ }>, "many">;
1595
+ }, "strict", z.ZodTypeAny, {
1596
+ issues: {
1597
+ id: string;
1598
+ unit_ids: string[];
1599
+ description: string;
1600
+ requirement_ids: string[];
1601
+ blocking: boolean;
1602
+ }[];
1603
+ verdict: "approved" | "needs_repair";
1604
+ }, {
1605
+ issues: {
1606
+ id: string;
1607
+ unit_ids: string[];
1608
+ description: string;
1609
+ requirement_ids: string[];
1610
+ blocking: boolean;
1611
+ }[];
1612
+ verdict: "approved" | "needs_repair";
1613
+ }>;
1614
+ export declare const PlanCounterexampleSchema: z.ZodObject<{
1615
+ id: z.ZodString;
1616
+ claim: z.ZodString;
1617
+ reproduction_steps: z.ZodArray<z.ZodString, "many">;
1618
+ expected: z.ZodString;
1619
+ actual: z.ZodString;
1620
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
1621
+ unit_ids: z.ZodArray<z.ZodString, "many">;
1622
+ }, "strict", z.ZodTypeAny, {
1623
+ expected: string;
1624
+ id: string;
1625
+ unit_ids: string[];
1626
+ claim: string;
1627
+ requirement_ids: string[];
1628
+ reproduction_steps: string[];
1629
+ actual: string;
1630
+ }, {
1631
+ expected: string;
1632
+ id: string;
1633
+ unit_ids: string[];
1634
+ claim: string;
1635
+ requirement_ids: string[];
1636
+ reproduction_steps: string[];
1637
+ actual: string;
1638
+ }>;
1639
+ export declare const CriticSchema: z.ZodObject<{
1640
+ counterexamples: z.ZodArray<z.ZodObject<{
1641
+ id: z.ZodString;
1642
+ claim: z.ZodString;
1643
+ reproduction_steps: z.ZodArray<z.ZodString, "many">;
1644
+ expected: z.ZodString;
1645
+ actual: z.ZodString;
1646
+ requirement_ids: z.ZodArray<z.ZodString, "many">;
1647
+ unit_ids: z.ZodArray<z.ZodString, "many">;
1648
+ }, "strict", z.ZodTypeAny, {
1649
+ expected: string;
1650
+ id: string;
1651
+ unit_ids: string[];
1652
+ claim: string;
1653
+ requirement_ids: string[];
1654
+ reproduction_steps: string[];
1655
+ actual: string;
1656
+ }, {
1657
+ expected: string;
1658
+ id: string;
1659
+ unit_ids: string[];
1660
+ claim: string;
1661
+ requirement_ids: string[];
1662
+ reproduction_steps: string[];
1663
+ actual: string;
1664
+ }>, "many">;
1665
+ }, "strict", z.ZodTypeAny, {
1666
+ counterexamples: {
1667
+ expected: string;
1668
+ id: string;
1669
+ unit_ids: string[];
1670
+ claim: string;
1671
+ requirement_ids: string[];
1672
+ reproduction_steps: string[];
1673
+ actual: string;
1674
+ }[];
1675
+ }, {
1676
+ counterexamples: {
1677
+ expected: string;
1678
+ id: string;
1679
+ unit_ids: string[];
1680
+ claim: string;
1681
+ requirement_ids: string[];
1682
+ reproduction_steps: string[];
1683
+ actual: string;
1684
+ }[];
1685
+ }>;
1686
+ export declare const PlanJudgeSchema: z.ZodObject<{
1687
+ verdict: z.ZodEnum<["approved", "needs_repair"]>;
1688
+ classifications: z.ZodArray<z.ZodObject<{
1689
+ counterexample_id: z.ZodString;
1690
+ classification: z.ZodEnum<["accepted", "repaired", "invalid", "out_of_scope", "duplicate", "residual_risk"]>;
1691
+ rationale: z.ZodString;
1692
+ }, "strict", z.ZodTypeAny, {
1693
+ rationale: string;
1694
+ counterexample_id: string;
1695
+ classification: "accepted" | "out_of_scope" | "invalid" | "repaired" | "duplicate" | "residual_risk";
1696
+ }, {
1697
+ rationale: string;
1698
+ counterexample_id: string;
1699
+ classification: "accepted" | "out_of_scope" | "invalid" | "repaired" | "duplicate" | "residual_risk";
1700
+ }>, "many">;
1701
+ requirement_assessments: z.ZodArray<z.ZodObject<{
1702
+ requirement_id: z.ZodString;
1703
+ verdict: z.ZodEnum<["satisfied", "insufficient"]>;
1704
+ evidence: z.ZodArray<z.ZodString, "many">;
1705
+ }, "strict", z.ZodTypeAny, {
1706
+ evidence: string[];
1707
+ verdict: "satisfied" | "insufficient";
1708
+ requirement_id: string;
1709
+ }, {
1710
+ evidence: string[];
1711
+ verdict: "satisfied" | "insufficient";
1712
+ requirement_id: string;
1713
+ }>, "many">;
1714
+ disposition_assessments: z.ZodArray<z.ZodObject<{
1715
+ finding_id: z.ZodString;
1716
+ verdict: z.ZodEnum<["satisfied", "insufficient"]>;
1717
+ evidence: z.ZodArray<z.ZodString, "many">;
1718
+ }, "strict", z.ZodTypeAny, {
1719
+ evidence: string[];
1720
+ verdict: "satisfied" | "insufficient";
1721
+ finding_id: string;
1722
+ }, {
1723
+ evidence: string[];
1724
+ verdict: "satisfied" | "insufficient";
1725
+ finding_id: string;
1726
+ }>, "many">;
1727
+ request_disposition_assessment: z.ZodOptional<z.ZodObject<{
1728
+ verdict: z.ZodEnum<["satisfied", "insufficient"]>;
1729
+ evidence: z.ZodArray<z.ZodString, "many">;
1730
+ }, "strict", z.ZodTypeAny, {
1731
+ evidence: string[];
1732
+ verdict: "satisfied" | "insufficient";
1733
+ }, {
1734
+ evidence: string[];
1735
+ verdict: "satisfied" | "insufficient";
1736
+ }>>;
1737
+ }, "strict", z.ZodTypeAny, {
1738
+ verdict: "approved" | "needs_repair";
1739
+ classifications: {
1740
+ rationale: string;
1741
+ counterexample_id: string;
1742
+ classification: "accepted" | "out_of_scope" | "invalid" | "repaired" | "duplicate" | "residual_risk";
1743
+ }[];
1744
+ requirement_assessments: {
1745
+ evidence: string[];
1746
+ verdict: "satisfied" | "insufficient";
1747
+ requirement_id: string;
1748
+ }[];
1749
+ disposition_assessments: {
1750
+ evidence: string[];
1751
+ verdict: "satisfied" | "insufficient";
1752
+ finding_id: string;
1753
+ }[];
1754
+ request_disposition_assessment?: {
1755
+ evidence: string[];
1756
+ verdict: "satisfied" | "insufficient";
1757
+ } | undefined;
1758
+ }, {
1759
+ verdict: "approved" | "needs_repair";
1760
+ classifications: {
1761
+ rationale: string;
1762
+ counterexample_id: string;
1763
+ classification: "accepted" | "out_of_scope" | "invalid" | "repaired" | "duplicate" | "residual_risk";
1764
+ }[];
1765
+ requirement_assessments: {
1766
+ evidence: string[];
1767
+ verdict: "satisfied" | "insufficient";
1768
+ requirement_id: string;
1769
+ }[];
1770
+ disposition_assessments: {
1771
+ evidence: string[];
1772
+ verdict: "satisfied" | "insufficient";
1773
+ finding_id: string;
1774
+ }[];
1775
+ request_disposition_assessment?: {
1776
+ evidence: string[];
1777
+ verdict: "satisfied" | "insufficient";
1778
+ } | undefined;
1779
+ }>;
1780
+ export declare const PlanRiskDecisionSchema: z.ZodObject<{
1781
+ revision_sha256: z.ZodString;
1782
+ confirmed_by: z.ZodLiteral<"host">;
1783
+ accepted_counterexample_ids: z.ZodArray<z.ZodString, "many">;
1784
+ }, "strict", z.ZodTypeAny, {
1785
+ confirmed_by: "host";
1786
+ revision_sha256: string;
1787
+ accepted_counterexample_ids: string[];
1788
+ }, {
1789
+ confirmed_by: "host";
1790
+ revision_sha256: string;
1791
+ accepted_counterexample_ids: string[];
1792
+ }>;
1793
+ export type PlanCounterexample = z.infer<typeof PlanCounterexampleSchema>;
1794
+ export type PlanReviewRole = "critique" | "critic" | "judge";
1795
+ export declare const PLAN_REVIEW_ROLES: readonly PlanReviewRole[];
1796
+ export declare const PlanReviewReceiptSchema: z.ZodObject<{
1797
+ revision_sha256: z.ZodString;
1798
+ role: z.ZodEnum<["critique", "critic", "judge"]>;
1799
+ input_sha256: z.ZodString;
1800
+ provenance: z.ZodObject<{
1801
+ requirement: z.ZodEnum<["ordinary", "independent", "degraded_allowed"]>;
1802
+ prompt_sha256: z.ZodString;
1803
+ review: z.ZodObject<{
1804
+ mode: z.ZodEnum<["independent", "degraded", "unavailable"]>;
1805
+ reason: z.ZodString;
1806
+ }, "strict", z.ZodTypeAny, {
1807
+ reason: string;
1808
+ mode: "degraded" | "independent" | "unavailable";
1809
+ }, {
1810
+ reason: string;
1811
+ mode: "degraded" | "independent" | "unavailable";
1812
+ }>;
1813
+ reviewed_content_hash: z.ZodString;
1814
+ }, "strict", z.ZodTypeAny, {
1815
+ prompt_sha256: string;
1816
+ review: {
1817
+ reason: string;
1818
+ mode: "degraded" | "independent" | "unavailable";
1819
+ };
1820
+ requirement: "ordinary" | "independent" | "degraded_allowed";
1821
+ reviewed_content_hash: string;
1822
+ }, {
1823
+ prompt_sha256: string;
1824
+ review: {
1825
+ reason: string;
1826
+ mode: "degraded" | "independent" | "unavailable";
1827
+ };
1828
+ requirement: "ordinary" | "independent" | "degraded_allowed";
1829
+ reviewed_content_hash: string;
1830
+ }>;
1831
+ result: z.ZodUnknown;
1832
+ }, "strict", z.ZodTypeAny, {
1833
+ role: "judge" | "critique" | "critic";
1834
+ provenance: {
1835
+ prompt_sha256: string;
1836
+ review: {
1837
+ reason: string;
1838
+ mode: "degraded" | "independent" | "unavailable";
1839
+ };
1840
+ requirement: "ordinary" | "independent" | "degraded_allowed";
1841
+ reviewed_content_hash: string;
1842
+ };
1843
+ revision_sha256: string;
1844
+ input_sha256: string;
1845
+ result?: unknown;
1846
+ }, {
1847
+ role: "judge" | "critique" | "critic";
1848
+ provenance: {
1849
+ prompt_sha256: string;
1850
+ review: {
1851
+ reason: string;
1852
+ mode: "degraded" | "independent" | "unavailable";
1853
+ };
1854
+ requirement: "ordinary" | "independent" | "degraded_allowed";
1855
+ reviewed_content_hash: string;
1856
+ };
1857
+ revision_sha256: string;
1858
+ input_sha256: string;
1859
+ result?: unknown;
1860
+ }>;
1861
+ export type PlanReviewReceipt = z.infer<typeof PlanReviewReceiptSchema>;
1862
+ export interface PlanReviewHistory {
1863
+ counterexamples: PlanCounterexample[];
1864
+ accepted_ids: string[];
1865
+ repair_rounds: number;
1866
+ repair_revision?: string;
1867
+ repair_reason?: string;
1868
+ }
1869
+ export declare function executionPlanPaths(artifactsDir: string): {
1870
+ directory: string;
1871
+ source: string;
1872
+ canonical: string;
1873
+ submission: string;
1874
+ history: string;
1875
+ approval: string;
1876
+ review: (role: PlanReviewRole) => {
1877
+ request: string;
1878
+ submission: string;
1879
+ accepted: string;
1880
+ };
1881
+ };
1882
+ /** Canonical order ignores unrelated insert/reorder, but command order is semantic. */
1883
+ export declare function executionPlanRevision(plan: ExecutableChangePlan, sourceSha256: string, contextFiles?: CanonicalPlan["context_files"]): string;
1884
+ export declare function readPlanSource(artifactsDir: string): Promise<PlanSource | undefined>;
1885
+ export declare function readCanonicalPlan(artifactsDir: string): Promise<CanonicalPlan | undefined>;
1886
+ export declare function readPlanReviewHistory(artifactsDir: string): Promise<PlanReviewHistory>;
1887
+ /** Cross-reference and executable-boundary validation, not semantic self-certification. */
1888
+ export declare function executionPlanIssues(root: string, source: PlanSource, plan: ExecutableChangePlan): string[];
1889
+ export declare function ingestExecutionPlan(params: {
1890
+ root: string;
1891
+ artifactsDir: string;
1892
+ acceptedUnits?: ReadonlyMap<string, unknown>;
1893
+ }): Promise<{
1894
+ changed: boolean;
1895
+ issues: string[];
1896
+ }>;
1897
+ export declare function captureExecutionContext(root: string, plan: ExecutableChangePlan): Promise<CanonicalPlan["context_files"]>;
1898
+ /** Preparation checks reviewed premises; result ingestion instead checks its bound baseline. */
1899
+ export declare function executionPlanContextIssues(root: string, canonical: CanonicalPlan, accepted?: readonly {
1900
+ allowed_files: readonly string[];
1901
+ landed_commit: string;
1902
+ }[]): Promise<string[]>;
1903
+ export declare function readPlanReview(artifactsDir: string, role: PlanReviewRole, revision: string): Promise<PlanReviewReceipt | undefined>;
1904
+ export declare function readApprovedExecutionPlan(artifactsDir: string): Promise<{
1905
+ canonical: CanonicalPlan;
1906
+ source: PlanSource;
1907
+ } | undefined>;
1908
+ //# sourceMappingURL=executionPlan.d.ts.map