audit-tools 0.51.7 → 0.51.9

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 (665) hide show
  1. package/dist/audit/clarification/blastRadius.d.ts +17 -16
  2. package/dist/audit/clarification/blastRadius.d.ts.map +1 -1
  3. package/dist/audit/clarification/blastRadius.js +48 -44
  4. package/dist/audit/clarification/blastRadius.js.map +1 -1
  5. package/dist/audit/clarification/dials.d.ts +4 -4
  6. package/dist/audit/clarification/dials.d.ts.map +1 -1
  7. package/dist/audit/clarification/dials.js +1 -0
  8. package/dist/audit/clarification/dials.js.map +1 -1
  9. package/dist/audit/clarification/partition.d.ts +12 -21
  10. package/dist/audit/clarification/partition.d.ts.map +1 -1
  11. package/dist/audit/clarification/partition.js +52 -59
  12. package/dist/audit/clarification/partition.js.map +1 -1
  13. package/dist/audit/clarification/riskGate.d.ts +2 -2
  14. package/dist/audit/clarification/riskGate.d.ts.map +1 -1
  15. package/dist/audit/clarification/riskGate.js +1 -0
  16. package/dist/audit/clarification/riskGate.js.map +1 -1
  17. package/dist/audit/clarification/voiQueue.d.ts +3 -3
  18. package/dist/audit/clarification/voiQueue.d.ts.map +1 -1
  19. package/dist/audit/clarification/voiQueue.js +1 -0
  20. package/dist/audit/clarification/voiQueue.js.map +1 -1
  21. package/dist/audit/cli/auditStep.d.ts +14 -2
  22. package/dist/audit/cli/auditStep.d.ts.map +1 -1
  23. package/dist/audit/cli/auditStep.js +13 -5
  24. package/dist/audit/cli/auditStep.js.map +1 -1
  25. package/dist/audit/cli/charterClarificationPrompt.d.ts +6 -9
  26. package/dist/audit/cli/charterClarificationPrompt.d.ts.map +1 -1
  27. package/dist/audit/cli/charterClarificationPrompt.js +35 -47
  28. package/dist/audit/cli/charterClarificationPrompt.js.map +1 -1
  29. package/dist/audit/cli/charterComparisonPrompt.d.ts +14 -0
  30. package/dist/audit/cli/charterComparisonPrompt.d.ts.map +1 -0
  31. package/dist/audit/cli/charterComparisonPrompt.js +111 -0
  32. package/dist/audit/cli/charterComparisonPrompt.js.map +1 -0
  33. package/dist/audit/cli/charterExtractionPrompt.d.ts +14 -17
  34. package/dist/audit/cli/charterExtractionPrompt.d.ts.map +1 -1
  35. package/dist/audit/cli/charterExtractionPrompt.js +81 -104
  36. package/dist/audit/cli/charterExtractionPrompt.js.map +1 -1
  37. package/dist/audit/cli/charterFidelityPrompt.d.ts +14 -0
  38. package/dist/audit/cli/charterFidelityPrompt.d.ts.map +1 -0
  39. package/dist/audit/cli/charterFidelityPrompt.js +58 -0
  40. package/dist/audit/cli/charterFidelityPrompt.js.map +1 -0
  41. package/dist/audit/cli/conceptualDispatch.d.ts +39 -6
  42. package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
  43. package/dist/audit/cli/conceptualDispatch.js +59 -12
  44. package/dist/audit/cli/conceptualDispatch.js.map +1 -1
  45. package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
  46. package/dist/audit/cli/confirmIntentStep.js +46 -2
  47. package/dist/audit/cli/confirmIntentStep.js.map +1 -1
  48. package/dist/audit/cli/dispatch/hostHandoff.d.ts +18 -6
  49. package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
  50. package/dist/audit/cli/dispatch/hostHandoff.js +525 -67
  51. package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
  52. package/dist/audit/cli/fanoutLanes.d.ts +24 -0
  53. package/dist/audit/cli/fanoutLanes.d.ts.map +1 -1
  54. package/dist/audit/cli/fanoutLanes.js +9 -1
  55. package/dist/audit/cli/fanoutLanes.js.map +1 -1
  56. package/dist/audit/cli/foldTransaction.d.ts.map +1 -1
  57. package/dist/audit/cli/foldTransaction.js +14 -3
  58. package/dist/audit/cli/foldTransaction.js.map +1 -1
  59. package/dist/audit/cli/forceSynthesisCommand.d.ts.map +1 -1
  60. package/dist/audit/cli/forceSynthesisCommand.js +4 -1
  61. package/dist/audit/cli/forceSynthesisCommand.js.map +1 -1
  62. package/dist/audit/cli/intakeCommand.d.ts.map +1 -1
  63. package/dist/audit/cli/intakeCommand.js +1 -0
  64. package/dist/audit/cli/intakeCommand.js.map +1 -1
  65. package/dist/audit/cli/laneSubmissions.d.ts +18 -12
  66. package/dist/audit/cli/laneSubmissions.d.ts.map +1 -1
  67. package/dist/audit/cli/laneSubmissions.js +40 -4
  68. package/dist/audit/cli/laneSubmissions.js.map +1 -1
  69. package/dist/audit/cli/laneValidators.d.ts.map +1 -1
  70. package/dist/audit/cli/laneValidators.js +14 -14
  71. package/dist/audit/cli/laneValidators.js.map +1 -1
  72. package/dist/audit/cli/nextStepCommand.d.ts +7 -0
  73. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
  74. package/dist/audit/cli/nextStepCommand.js +206 -31
  75. package/dist/audit/cli/nextStepCommand.js.map +1 -1
  76. package/dist/audit/cli/nextStepHelpers.d.ts +92 -28
  77. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
  78. package/dist/audit/cli/nextStepHelpers.js +363 -126
  79. package/dist/audit/cli/nextStepHelpers.js.map +1 -1
  80. package/dist/audit/cli/prompts.d.ts +10 -0
  81. package/dist/audit/cli/prompts.d.ts.map +1 -1
  82. package/dist/audit/cli/prompts.js +3 -1
  83. package/dist/audit/cli/prompts.js.map +1 -1
  84. package/dist/audit/cli/reviewRun.d.ts +12 -0
  85. package/dist/audit/cli/reviewRun.d.ts.map +1 -1
  86. package/dist/audit/cli/reviewRun.js +242 -29
  87. package/dist/audit/cli/reviewRun.js.map +1 -1
  88. package/dist/audit/cli/sampleRunCommand.d.ts +12 -4
  89. package/dist/audit/cli/sampleRunCommand.d.ts.map +1 -1
  90. package/dist/audit/cli/semanticReviewStep.d.ts +9 -0
  91. package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
  92. package/dist/audit/cli/semanticReviewStep.js +71 -30
  93. package/dist/audit/cli/semanticReviewStep.js.map +1 -1
  94. package/dist/audit/cli/statusCommand.d.ts.map +1 -1
  95. package/dist/audit/cli/statusCommand.js +29 -66
  96. package/dist/audit/cli/statusCommand.js.map +1 -1
  97. package/dist/audit/cli/stepScaffold.d.ts +43 -2
  98. package/dist/audit/cli/stepScaffold.d.ts.map +1 -1
  99. package/dist/audit/cli/stepScaffold.js +24 -10
  100. package/dist/audit/cli/stepScaffold.js.map +1 -1
  101. package/dist/audit/cli/steps.d.ts +52 -29
  102. package/dist/audit/cli/steps.d.ts.map +1 -1
  103. package/dist/audit/cli/steps.js +44 -14
  104. package/dist/audit/cli/steps.js.map +1 -1
  105. package/dist/audit/cli/synthesizeCommand.d.ts.map +1 -1
  106. package/dist/audit/cli/synthesizeCommand.js +4 -1
  107. package/dist/audit/cli/synthesizeCommand.js.map +1 -1
  108. package/dist/audit/contracts/workerSchemas.d.ts +65 -16
  109. package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
  110. package/dist/audit/contracts/workerSchemas.js +89 -8
  111. package/dist/audit/contracts/workerSchemas.js.map +1 -1
  112. package/dist/audit/contracts/wrapperResponse.d.ts +14 -21
  113. package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
  114. package/dist/audit/contracts/wrapperResponse.js +0 -1
  115. package/dist/audit/contracts/wrapperResponse.js.map +1 -1
  116. package/dist/audit/decompose/findings.d.ts.map +1 -1
  117. package/dist/audit/decompose/findings.js +10 -2
  118. package/dist/audit/decompose/findings.js.map +1 -1
  119. package/dist/audit/extractors/designAssessment.d.ts.map +1 -1
  120. package/dist/audit/extractors/designAssessment.js +13 -4
  121. package/dist/audit/extractors/designAssessment.js.map +1 -1
  122. package/dist/audit/extractors/disposition.d.ts.map +1 -1
  123. package/dist/audit/extractors/disposition.js +17 -5
  124. package/dist/audit/extractors/disposition.js.map +1 -1
  125. package/dist/audit/extractors/graph.d.ts +1 -1
  126. package/dist/audit/extractors/graph.js +1 -1
  127. package/dist/audit/extractors/graphRoutes.d.ts.map +1 -1
  128. package/dist/audit/extractors/graphRoutes.js +224 -17
  129. package/dist/audit/extractors/graphRoutes.js.map +1 -1
  130. package/dist/audit/extractors/leadLineage.d.ts +10 -0
  131. package/dist/audit/extractors/leadLineage.d.ts.map +1 -0
  132. package/dist/audit/extractors/leadLineage.js +44 -0
  133. package/dist/audit/extractors/leadLineage.js.map +1 -0
  134. package/dist/audit/io/artifacts.d.ts.map +1 -1
  135. package/dist/audit/io/artifacts.js +25 -8
  136. package/dist/audit/io/artifacts.js.map +1 -1
  137. package/dist/audit/io/runArtifacts.d.ts +76 -1
  138. package/dist/audit/io/runArtifacts.d.ts.map +1 -1
  139. package/dist/audit/io/runArtifacts.js +113 -20
  140. package/dist/audit/io/runArtifacts.js.map +1 -1
  141. package/dist/audit/io/toolingManifest.d.ts +15 -0
  142. package/dist/audit/io/toolingManifest.d.ts.map +1 -1
  143. package/dist/audit/io/toolingManifest.js +158 -11
  144. package/dist/audit/io/toolingManifest.js.map +1 -1
  145. package/dist/audit/orchestrator/advance.d.ts.map +1 -1
  146. package/dist/audit/orchestrator/advance.js +30 -4
  147. package/dist/audit/orchestrator/advance.js.map +1 -1
  148. package/dist/audit/orchestrator/advanceTypes.d.ts +28 -5
  149. package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
  150. package/dist/audit/orchestrator/artifactMetadata.d.ts.map +1 -1
  151. package/dist/audit/orchestrator/artifactMetadata.js +39 -1
  152. package/dist/audit/orchestrator/artifactMetadata.js.map +1 -1
  153. package/dist/audit/orchestrator/auditTaskUtils.d.ts.map +1 -1
  154. package/dist/audit/orchestrator/auditTaskUtils.js +4 -1
  155. package/dist/audit/orchestrator/auditTaskUtils.js.map +1 -1
  156. package/dist/audit/orchestrator/charterClarificationExecutor.d.ts +11 -17
  157. package/dist/audit/orchestrator/charterClarificationExecutor.d.ts.map +1 -1
  158. package/dist/audit/orchestrator/charterClarificationExecutor.js +61 -93
  159. package/dist/audit/orchestrator/charterClarificationExecutor.js.map +1 -1
  160. package/dist/audit/orchestrator/charterComparisonExecutor.d.ts +24 -0
  161. package/dist/audit/orchestrator/charterComparisonExecutor.d.ts.map +1 -0
  162. package/dist/audit/orchestrator/charterComparisonExecutor.js +110 -0
  163. package/dist/audit/orchestrator/charterComparisonExecutor.js.map +1 -0
  164. package/dist/audit/orchestrator/charterExtractionExecutor.d.ts +34 -20
  165. package/dist/audit/orchestrator/charterExtractionExecutor.d.ts.map +1 -1
  166. package/dist/audit/orchestrator/charterExtractionExecutor.js +80 -106
  167. package/dist/audit/orchestrator/charterExtractionExecutor.js.map +1 -1
  168. package/dist/audit/orchestrator/charterFidelityExecutor.d.ts +20 -0
  169. package/dist/audit/orchestrator/charterFidelityExecutor.d.ts.map +1 -0
  170. package/dist/audit/orchestrator/charterFidelityExecutor.js +76 -0
  171. package/dist/audit/orchestrator/charterFidelityExecutor.js.map +1 -0
  172. package/dist/audit/orchestrator/charterFidelityPacket.d.ts +7 -0
  173. package/dist/audit/orchestrator/charterFidelityPacket.d.ts.map +1 -0
  174. package/dist/audit/orchestrator/charterFidelityPacket.js +68 -0
  175. package/dist/audit/orchestrator/charterFidelityPacket.js.map +1 -0
  176. package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
  177. package/dist/audit/orchestrator/dependencyMap.js +9 -8
  178. package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
  179. package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
  180. package/dist/audit/orchestrator/dependencySlices.js +7 -6
  181. package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
  182. package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -1
  183. package/dist/audit/orchestrator/designReviewProjection.js +7 -0
  184. package/dist/audit/orchestrator/designReviewProjection.js.map +1 -1
  185. package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
  186. package/dist/audit/orchestrator/designReviewPrompt.js +58 -19
  187. package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
  188. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
  189. package/dist/audit/orchestrator/executorRunners.js +6 -2
  190. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  191. package/dist/audit/orchestrator/executors.d.ts.map +1 -1
  192. package/dist/audit/orchestrator/executors.js +22 -8
  193. package/dist/audit/orchestrator/executors.js.map +1 -1
  194. package/dist/audit/orchestrator/hostInputPause.js +1 -0
  195. package/dist/audit/orchestrator/hostInputPause.js.map +1 -1
  196. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +40 -0
  197. package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
  198. package/dist/audit/orchestrator/intentCheckpointExecutor.js +32 -2
  199. package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
  200. package/dist/audit/orchestrator/intentCheckpointGate.d.ts +5 -3
  201. package/dist/audit/orchestrator/intentCheckpointGate.d.ts.map +1 -1
  202. package/dist/audit/orchestrator/intentCheckpointGate.js +34 -5
  203. package/dist/audit/orchestrator/intentCheckpointGate.js.map +1 -1
  204. package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts +2 -2
  205. package/dist/audit/orchestrator/intentInterpreter.d.ts +1 -1
  206. package/dist/audit/orchestrator/intentInterpreter.js +1 -1
  207. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
  208. package/dist/audit/orchestrator/nextStep.js +3 -1
  209. package/dist/audit/orchestrator/nextStep.js.map +1 -1
  210. package/dist/audit/orchestrator/obligationPolicy.d.ts +2 -1
  211. package/dist/audit/orchestrator/obligationPolicy.d.ts.map +1 -1
  212. package/dist/audit/orchestrator/obligationPolicy.js +19 -7
  213. package/dist/audit/orchestrator/obligationPolicy.js.map +1 -1
  214. package/dist/audit/orchestrator/partitionTaskGraph.d.ts.map +1 -1
  215. package/dist/audit/orchestrator/partitionTaskGraph.js +1 -0
  216. package/dist/audit/orchestrator/partitionTaskGraph.js.map +1 -1
  217. package/dist/audit/orchestrator/resultIngestion.d.ts.map +1 -1
  218. package/dist/audit/orchestrator/resultIngestion.js +3 -1
  219. package/dist/audit/orchestrator/resultIngestion.js.map +1 -1
  220. package/dist/audit/orchestrator/runtimeCommand.d.ts +72 -0
  221. package/dist/audit/orchestrator/runtimeCommand.d.ts.map +1 -1
  222. package/dist/audit/orchestrator/runtimeCommand.js +177 -20
  223. package/dist/audit/orchestrator/runtimeCommand.js.map +1 -1
  224. package/dist/audit/orchestrator/scopeIndexBaseline.d.ts +56 -0
  225. package/dist/audit/orchestrator/scopeIndexBaseline.d.ts.map +1 -0
  226. package/dist/audit/orchestrator/scopeIndexBaseline.js +114 -0
  227. package/dist/audit/orchestrator/scopeIndexBaseline.js.map +1 -0
  228. package/dist/audit/orchestrator/staleness.d.ts +70 -1
  229. package/dist/audit/orchestrator/staleness.d.ts.map +1 -1
  230. package/dist/audit/orchestrator/staleness.js +171 -21
  231. package/dist/audit/orchestrator/staleness.js.map +1 -1
  232. package/dist/audit/orchestrator/state.d.ts.map +1 -1
  233. package/dist/audit/orchestrator/state.js +49 -25
  234. package/dist/audit/orchestrator/state.js.map +1 -1
  235. package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -1
  236. package/dist/audit/orchestrator/structureExecutors.js +7 -5
  237. package/dist/audit/orchestrator/structureExecutors.js.map +1 -1
  238. package/dist/audit/orchestrator/syntaxResolutionExecutor.d.ts.map +1 -1
  239. package/dist/audit/orchestrator/syntaxResolutionExecutor.js +1 -0
  240. package/dist/audit/orchestrator/syntaxResolutionExecutor.js.map +1 -1
  241. package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts +13 -2
  242. package/dist/audit/orchestrator/systemicChallengeExecutor.d.ts.map +1 -1
  243. package/dist/audit/orchestrator/systemicChallengeExecutor.js +166 -12
  244. package/dist/audit/orchestrator/systemicChallengeExecutor.js.map +1 -1
  245. package/dist/audit/reporting/mergeFindings.d.ts.map +1 -1
  246. package/dist/audit/reporting/mergeFindings.js +6 -5
  247. package/dist/audit/reporting/mergeFindings.js.map +1 -1
  248. package/dist/audit/reporting/synthesis.d.ts +117 -0
  249. package/dist/audit/reporting/synthesis.d.ts.map +1 -1
  250. package/dist/audit/reporting/synthesis.js +277 -10
  251. package/dist/audit/reporting/synthesis.js.map +1 -1
  252. package/dist/audit/supervisor/operatorHandoff.d.ts +0 -2
  253. package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
  254. package/dist/audit/supervisor/operatorHandoff.js +0 -3
  255. package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
  256. package/dist/audit/systemic/coveredThemes.d.ts +28 -0
  257. package/dist/audit/systemic/coveredThemes.d.ts.map +1 -0
  258. package/dist/audit/systemic/coveredThemes.js +52 -0
  259. package/dist/audit/systemic/coveredThemes.js.map +1 -0
  260. package/dist/audit/systemic/reviewFileMap.d.ts +81 -0
  261. package/dist/audit/systemic/reviewFileMap.d.ts.map +1 -0
  262. package/dist/audit/systemic/reviewFileMap.js +169 -0
  263. package/dist/audit/systemic/reviewFileMap.js.map +1 -0
  264. package/dist/audit/systemic/secondOrderAdversaryPrompt.d.ts.map +1 -1
  265. package/dist/audit/systemic/secondOrderAdversaryPrompt.js +149 -26
  266. package/dist/audit/systemic/secondOrderAdversaryPrompt.js.map +1 -1
  267. package/dist/audit/systemic/systemicChallengeLoop.d.ts +44 -4
  268. package/dist/audit/systemic/systemicChallengeLoop.d.ts.map +1 -1
  269. package/dist/audit/systemic/systemicChallengeLoop.js +114 -10
  270. package/dist/audit/systemic/systemicChallengeLoop.js.map +1 -1
  271. package/dist/audit/types/auditState.d.ts +6 -6
  272. package/dist/audit/types/charterClarification.d.ts +9 -4
  273. package/dist/audit/types/charterClarification.d.ts.map +1 -1
  274. package/dist/audit/types/charterRegister.d.ts +48 -93
  275. package/dist/audit/types/charterRegister.d.ts.map +1 -1
  276. package/dist/audit/types/charterRegister.js +15 -26
  277. package/dist/audit/types/charterRegister.js.map +1 -1
  278. package/dist/audit/types/conceptualAdjudication.d.ts +88 -18
  279. package/dist/audit/types/conceptualAdjudication.d.ts.map +1 -1
  280. package/dist/audit/types/conceptualAdjudication.js +77 -16
  281. package/dist/audit/types/conceptualAdjudication.js.map +1 -1
  282. package/dist/audit/types/designAssessment.d.ts +8 -6
  283. package/dist/audit/types/designAssessment.d.ts.map +1 -1
  284. package/dist/audit/types/reviewPlanning.d.ts +2 -2
  285. package/dist/audit/types/systemicChallenge.d.ts +43 -7
  286. package/dist/audit/types/systemicChallenge.d.ts.map +1 -1
  287. package/dist/audit/types.d.ts +71 -10
  288. package/dist/audit/types.d.ts.map +1 -1
  289. package/dist/audit/types.js +23 -2
  290. package/dist/audit/types.js.map +1 -1
  291. package/dist/audit/validation/auditResults.d.ts +30 -0
  292. package/dist/audit/validation/auditResults.d.ts.map +1 -1
  293. package/dist/audit/validation/auditResults.js +50 -8
  294. package/dist/audit/validation/auditResults.js.map +1 -1
  295. package/dist/audit/validation/ingestIssueCodes.d.ts +1 -1
  296. package/dist/audit/validation/ingestIssueCodes.d.ts.map +1 -1
  297. package/dist/audit/validation/ingestIssueCodes.js +14 -0
  298. package/dist/audit/validation/ingestIssueCodes.js.map +1 -1
  299. package/dist/remediate/contractPipeline/artifactStore.d.ts +97 -2
  300. package/dist/remediate/contractPipeline/artifactStore.d.ts.map +1 -1
  301. package/dist/remediate/contractPipeline/artifactStore.js +163 -9
  302. package/dist/remediate/contractPipeline/artifactStore.js.map +1 -1
  303. package/dist/remediate/contractPipeline/changeClassification.d.ts.map +1 -1
  304. package/dist/remediate/contractPipeline/changeClassification.js +93 -3
  305. package/dist/remediate/contractPipeline/changeClassification.js.map +1 -1
  306. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +1 -1
  307. package/dist/remediate/contractPipeline/cyclicSeamResolution.js +31 -0
  308. package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +1 -1
  309. package/dist/remediate/contractPipeline/derive.d.ts +0 -14
  310. package/dist/remediate/contractPipeline/derive.d.ts.map +1 -1
  311. package/dist/remediate/contractPipeline/derive.js +52 -24
  312. package/dist/remediate/contractPipeline/derive.js.map +1 -1
  313. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts +50 -0
  314. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts.map +1 -0
  315. package/dist/remediate/contractPipeline/finalizedContractFields.js +77 -0
  316. package/dist/remediate/contractPipeline/finalizedContractFields.js.map +1 -0
  317. package/dist/remediate/contractPipeline/idRegistry.d.ts +85 -0
  318. package/dist/remediate/contractPipeline/idRegistry.d.ts.map +1 -1
  319. package/dist/remediate/contractPipeline/idRegistry.js +147 -0
  320. package/dist/remediate/contractPipeline/idRegistry.js.map +1 -1
  321. package/dist/remediate/contractPipeline/phaseCut.d.ts +13 -16
  322. package/dist/remediate/contractPipeline/phaseCut.d.ts.map +1 -1
  323. package/dist/remediate/contractPipeline/phaseCut.js +15 -30
  324. package/dist/remediate/contractPipeline/phaseCut.js.map +1 -1
  325. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +20 -1
  326. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +1 -1
  327. package/dist/remediate/contractPipeline/reviewSnapshot.js +23 -7
  328. package/dist/remediate/contractPipeline/reviewSnapshot.js.map +1 -1
  329. package/dist/remediate/contractPipeline/semanticProjection.d.ts +17 -0
  330. package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +1 -1
  331. package/dist/remediate/contractPipeline/semanticProjection.js +6 -9
  332. package/dist/remediate/contractPipeline/semanticProjection.js.map +1 -1
  333. package/dist/remediate/contractPipeline/sketchSource.d.ts +183 -0
  334. package/dist/remediate/contractPipeline/sketchSource.d.ts.map +1 -0
  335. package/dist/remediate/contractPipeline/sketchSource.js +255 -0
  336. package/dist/remediate/contractPipeline/sketchSource.js.map +1 -0
  337. package/dist/remediate/findingFilter.d.ts.map +1 -1
  338. package/dist/remediate/findingFilter.js +1 -0
  339. package/dist/remediate/findingFilter.js.map +1 -1
  340. package/dist/remediate/index.d.ts +81 -0
  341. package/dist/remediate/index.d.ts.map +1 -1
  342. package/dist/remediate/index.js +162 -53
  343. package/dist/remediate/index.js.map +1 -1
  344. package/dist/remediate/intake.d.ts +43 -0
  345. package/dist/remediate/intake.d.ts.map +1 -1
  346. package/dist/remediate/intake.js +82 -13
  347. package/dist/remediate/intake.js.map +1 -1
  348. package/dist/remediate/phases/close.d.ts +33 -2
  349. package/dist/remediate/phases/close.d.ts.map +1 -1
  350. package/dist/remediate/phases/close.js +227 -13
  351. package/dist/remediate/phases/close.js.map +1 -1
  352. package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts +154 -0
  353. package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts.map +1 -0
  354. package/dist/remediate/phases/closeVerifyHeadEvidence.js +242 -0
  355. package/dist/remediate/phases/closeVerifyHeadEvidence.js.map +1 -0
  356. package/dist/remediate/state/runStatus.d.ts +35 -0
  357. package/dist/remediate/state/runStatus.d.ts.map +1 -0
  358. package/dist/remediate/state/runStatus.js +46 -0
  359. package/dist/remediate/state/runStatus.js.map +1 -0
  360. package/dist/remediate/state/store.d.ts +52 -2
  361. package/dist/remediate/state/store.d.ts.map +1 -1
  362. package/dist/remediate/state/store.js +124 -21
  363. package/dist/remediate/state/store.js.map +1 -1
  364. package/dist/remediate/state/types.d.ts +83 -13
  365. package/dist/remediate/state/types.d.ts.map +1 -1
  366. package/dist/remediate/steps/contractPipeline.d.ts +65 -1
  367. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
  368. package/dist/remediate/steps/contractPipeline.js +302 -85
  369. package/dist/remediate/steps/contractPipeline.js.map +1 -1
  370. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
  371. package/dist/remediate/steps/contractPipelinePrompts.js +58 -21
  372. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
  373. package/dist/remediate/steps/dispatch/hostHandoff.d.ts +87 -2
  374. package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -1
  375. package/dist/remediate/steps/dispatch/hostHandoff.js +344 -44
  376. package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -1
  377. package/dist/remediate/steps/finalGate.d.ts +109 -5
  378. package/dist/remediate/steps/finalGate.d.ts.map +1 -1
  379. package/dist/remediate/steps/finalGate.js +135 -27
  380. package/dist/remediate/steps/finalGate.js.map +1 -1
  381. package/dist/remediate/steps/gateCommands.d.ts +167 -0
  382. package/dist/remediate/steps/gateCommands.d.ts.map +1 -1
  383. package/dist/remediate/steps/gateCommands.js +428 -1
  384. package/dist/remediate/steps/gateCommands.js.map +1 -1
  385. package/dist/remediate/steps/intakeResolver.d.ts +2 -13
  386. package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
  387. package/dist/remediate/steps/intakeResolver.js +22 -4
  388. package/dist/remediate/steps/intakeResolver.js.map +1 -1
  389. package/dist/remediate/steps/nextStep.d.ts +44 -40
  390. package/dist/remediate/steps/nextStep.d.ts.map +1 -1
  391. package/dist/remediate/steps/nextStep.js +501 -106
  392. package/dist/remediate/steps/nextStep.js.map +1 -1
  393. package/dist/remediate/steps/stepWriter.d.ts +1 -1
  394. package/dist/remediate/steps/stepWriter.d.ts.map +1 -1
  395. package/dist/remediate/steps/stepWriter.js +1 -0
  396. package/dist/remediate/steps/stepWriter.js.map +1 -1
  397. package/dist/remediate/steps/types.d.ts +32 -1
  398. package/dist/remediate/steps/types.d.ts.map +1 -1
  399. package/dist/remediate/steps/types.js +1 -0
  400. package/dist/remediate/steps/types.js.map +1 -1
  401. package/dist/remediate/types/options.d.ts +8 -0
  402. package/dist/remediate/types/options.d.ts.map +1 -1
  403. package/dist/remediate/utils/fileIntegrity.d.ts +8 -0
  404. package/dist/remediate/utils/fileIntegrity.d.ts.map +1 -1
  405. package/dist/remediate/utils/fileIntegrity.js +12 -1
  406. package/dist/remediate/utils/fileIntegrity.js.map +1 -1
  407. package/dist/remediate/validation/artifacts.d.ts +1 -1
  408. package/dist/remediate/validation/artifacts.d.ts.map +1 -1
  409. package/dist/remediate/validation/artifacts.js +19 -2
  410. package/dist/remediate/validation/artifacts.js.map +1 -1
  411. package/dist/remediate/validation/contractPipeline.d.ts.map +1 -1
  412. package/dist/remediate/validation/contractPipeline.js +26 -39
  413. package/dist/remediate/validation/contractPipeline.js.map +1 -1
  414. package/dist/remediate/validation/contractPipelineGates.d.ts +18 -1
  415. package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -1
  416. package/dist/remediate/validation/contractPipelineGates.js +33 -5
  417. package/dist/remediate/validation/contractPipelineGates.js.map +1 -1
  418. package/dist/shared/analyzers/acquisitionEngine.d.ts +83 -5
  419. package/dist/shared/analyzers/acquisitionEngine.d.ts.map +1 -1
  420. package/dist/shared/analyzers/acquisitionEngine.js +46 -14
  421. package/dist/shared/analyzers/acquisitionEngine.js.map +1 -1
  422. package/dist/shared/analyzers/binaryAcquisition.d.ts +35 -2
  423. package/dist/shared/analyzers/binaryAcquisition.d.ts.map +1 -1
  424. package/dist/shared/analyzers/binaryAcquisition.js +5 -5
  425. package/dist/shared/analyzers/binaryAcquisition.js.map +1 -1
  426. package/dist/shared/analyzers/candidates.d.ts.map +1 -1
  427. package/dist/shared/analyzers/candidates.js +1 -0
  428. package/dist/shared/analyzers/candidates.js.map +1 -1
  429. package/dist/shared/analyzers/clippy.d.ts +9 -1
  430. package/dist/shared/analyzers/clippy.d.ts.map +1 -1
  431. package/dist/shared/analyzers/clippy.js +10 -2
  432. package/dist/shared/analyzers/clippy.js.map +1 -1
  433. package/dist/shared/analyzers/normalizeExternal.d.ts.map +1 -1
  434. package/dist/shared/analyzers/normalizeExternal.js +1 -0
  435. package/dist/shared/analyzers/normalizeExternal.js.map +1 -1
  436. package/dist/shared/analyzers/rubocop.d.ts +7 -1
  437. package/dist/shared/analyzers/rubocop.d.ts.map +1 -1
  438. package/dist/shared/analyzers/rubocop.js +8 -2
  439. package/dist/shared/analyzers/rubocop.js.map +1 -1
  440. package/dist/shared/analyzers/types.d.ts +24 -24
  441. package/dist/shared/analyzers/types.d.ts.map +1 -1
  442. package/dist/shared/analyzers/types.js +15 -0
  443. package/dist/shared/analyzers/types.js.map +1 -1
  444. package/dist/shared/artifactFreshness.d.ts.map +1 -1
  445. package/dist/shared/artifactFreshness.js +42 -7
  446. package/dist/shared/artifactFreshness.js.map +1 -1
  447. package/dist/shared/chunkByBudget.d.ts.map +1 -1
  448. package/dist/shared/chunkByBudget.js.map +1 -1
  449. package/dist/shared/continuityScore.d.ts.map +1 -1
  450. package/dist/shared/continuityScore.js +12 -4
  451. package/dist/shared/continuityScore.js.map +1 -1
  452. package/dist/shared/decompose/charterClarification.d.ts +49 -45
  453. package/dist/shared/decompose/charterClarification.d.ts.map +1 -1
  454. package/dist/shared/decompose/charterClarification.js +50 -57
  455. package/dist/shared/decompose/charterClarification.js.map +1 -1
  456. package/dist/shared/decompose/charterExtraction.d.ts +616 -342
  457. package/dist/shared/decompose/charterExtraction.d.ts.map +1 -1
  458. package/dist/shared/decompose/charterExtraction.js +590 -488
  459. package/dist/shared/decompose/charterExtraction.js.map +1 -1
  460. package/dist/shared/decompose/contentCoherence.d.ts +36 -2
  461. package/dist/shared/decompose/contentCoherence.d.ts.map +1 -1
  462. package/dist/shared/decompose/contentCoherence.js +45 -5
  463. package/dist/shared/decompose/contentCoherence.js.map +1 -1
  464. package/dist/shared/decompose/modularity.d.ts +98 -1
  465. package/dist/shared/decompose/modularity.d.ts.map +1 -1
  466. package/dist/shared/decompose/modularity.js +89 -8
  467. package/dist/shared/decompose/modularity.js.map +1 -1
  468. package/dist/shared/decompose/systemicChallenge.d.ts +111 -0
  469. package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
  470. package/dist/shared/decompose/systemicChallenge.js +28 -0
  471. package/dist/shared/decompose/systemicChallenge.js.map +1 -1
  472. package/dist/shared/engine/obligationEngine.d.ts +2 -2
  473. package/dist/shared/engine/obligationEngine.d.ts.map +1 -1
  474. package/dist/shared/engine/obligationEngine.js +8 -2
  475. package/dist/shared/engine/obligationEngine.js.map +1 -1
  476. package/dist/shared/findingSimilarity.d.ts +8 -0
  477. package/dist/shared/findingSimilarity.d.ts.map +1 -1
  478. package/dist/shared/findingSimilarity.js +10 -3
  479. package/dist/shared/findingSimilarity.js.map +1 -1
  480. package/dist/shared/findings/dedupe.d.ts +15 -0
  481. package/dist/shared/findings/dedupe.d.ts.map +1 -1
  482. package/dist/shared/findings/dedupe.js +137 -1
  483. package/dist/shared/findings/dedupe.js.map +1 -1
  484. package/dist/shared/friction/frictionRecord.d.ts.map +1 -1
  485. package/dist/shared/friction/frictionRecord.js +14 -1
  486. package/dist/shared/friction/frictionRecord.js.map +1 -1
  487. package/dist/shared/friction/triage.d.ts +4 -0
  488. package/dist/shared/friction/triage.d.ts.map +1 -1
  489. package/dist/shared/friction/triage.js +41 -29
  490. package/dist/shared/friction/triage.js.map +1 -1
  491. package/dist/shared/git.d.ts +14 -0
  492. package/dist/shared/git.d.ts.map +1 -1
  493. package/dist/shared/git.js +22 -0
  494. package/dist/shared/git.js.map +1 -1
  495. package/dist/shared/index.d.ts +42 -38
  496. package/dist/shared/index.d.ts.map +1 -1
  497. package/dist/shared/index.js +35 -23
  498. package/dist/shared/index.js.map +1 -1
  499. package/dist/shared/intent/clauseBoundaries.d.ts +75 -0
  500. package/dist/shared/intent/clauseBoundaries.d.ts.map +1 -0
  501. package/dist/shared/intent/clauseBoundaries.js +134 -0
  502. package/dist/shared/intent/clauseBoundaries.js.map +1 -0
  503. package/dist/shared/intent/clauseInterpreter.d.ts +11 -5
  504. package/dist/shared/intent/clauseInterpreter.d.ts.map +1 -1
  505. package/dist/shared/intent/clauseInterpreter.js +16 -41
  506. package/dist/shared/intent/clauseInterpreter.js.map +1 -1
  507. package/dist/shared/intent/freeFormIntentInterpreter.d.ts +11 -0
  508. package/dist/shared/intent/freeFormIntentInterpreter.d.ts.map +1 -1
  509. package/dist/shared/intent/freeFormIntentInterpreter.js +31 -17
  510. package/dist/shared/intent/freeFormIntentInterpreter.js.map +1 -1
  511. package/dist/shared/io/fileLock.d.ts.map +1 -1
  512. package/dist/shared/io/fileLock.js +18 -6
  513. package/dist/shared/io/fileLock.js.map +1 -1
  514. package/dist/shared/io/frictionCapture.d.ts +25 -5
  515. package/dist/shared/io/frictionCapture.d.ts.map +1 -1
  516. package/dist/shared/io/frictionCapture.js +30 -9
  517. package/dist/shared/io/frictionCapture.js.map +1 -1
  518. package/dist/shared/io/schemaVersion.d.ts +4 -3
  519. package/dist/shared/io/schemaVersion.d.ts.map +1 -1
  520. package/dist/shared/io/schemaVersion.js +27 -4
  521. package/dist/shared/io/schemaVersion.js.map +1 -1
  522. package/dist/shared/io/stepContractWriter.d.ts +38 -4
  523. package/dist/shared/io/stepContractWriter.d.ts.map +1 -1
  524. package/dist/shared/io/stepContractWriter.js +59 -1
  525. package/dist/shared/io/stepContractWriter.js.map +1 -1
  526. package/dist/shared/loopCorePaths.d.ts.map +1 -1
  527. package/dist/shared/loopCorePaths.js +8 -0
  528. package/dist/shared/loopCorePaths.js.map +1 -1
  529. package/dist/shared/opencodePermissions.d.ts +27 -3
  530. package/dist/shared/opencodePermissions.d.ts.map +1 -1
  531. package/dist/shared/opencodePermissions.js +77 -26
  532. package/dist/shared/opencodePermissions.js.map +1 -1
  533. package/dist/shared/prompts.d.ts +12 -1
  534. package/dist/shared/prompts.d.ts.map +1 -1
  535. package/dist/shared/prompts.js +11 -1
  536. package/dist/shared/prompts.js.map +1 -1
  537. package/dist/shared/reReview/projectionDiff.d.ts +13 -0
  538. package/dist/shared/reReview/projectionDiff.d.ts.map +1 -1
  539. package/dist/shared/reReview/projectionDiff.js +1 -1
  540. package/dist/shared/reReview/projectionDiff.js.map +1 -1
  541. package/dist/shared/reporting/findingDisplay.d.ts +7 -0
  542. package/dist/shared/reporting/findingDisplay.d.ts.map +1 -1
  543. package/dist/shared/reporting/findingDisplay.js +8 -1
  544. package/dist/shared/reporting/findingDisplay.js.map +1 -1
  545. package/dist/shared/steps/stepEmissionScaffold.d.ts +15 -3
  546. package/dist/shared/steps/stepEmissionScaffold.d.ts.map +1 -1
  547. package/dist/shared/steps/stepEmissionScaffold.js +8 -6
  548. package/dist/shared/steps/stepEmissionScaffold.js.map +1 -1
  549. package/dist/shared/submission/hostHandoffCore.d.ts +37 -12
  550. package/dist/shared/submission/hostHandoffCore.d.ts.map +1 -1
  551. package/dist/shared/submission/hostHandoffCore.js +81 -18
  552. package/dist/shared/submission/hostHandoffCore.js.map +1 -1
  553. package/dist/shared/submission/hostResultOutcomes.d.ts +70 -1
  554. package/dist/shared/submission/hostResultOutcomes.d.ts.map +1 -1
  555. package/dist/shared/submission/hostResultOutcomes.js +66 -1
  556. package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
  557. package/dist/shared/submission/submissionLedger.d.ts +86 -1
  558. package/dist/shared/submission/submissionLedger.d.ts.map +1 -1
  559. package/dist/shared/submission/submissionLedger.js +108 -0
  560. package/dist/shared/submission/submissionLedger.js.map +1 -1
  561. package/dist/shared/submission/submissionScan.d.ts.map +1 -1
  562. package/dist/shared/submission/submissionScan.js +1 -0
  563. package/dist/shared/submission/submissionScan.js.map +1 -1
  564. package/dist/shared/tooling/analyzerDeps.d.ts +14 -0
  565. package/dist/shared/tooling/analyzerDeps.d.ts.map +1 -1
  566. package/dist/shared/tooling/analyzerDeps.js +23 -0
  567. package/dist/shared/tooling/analyzerDeps.js.map +1 -1
  568. package/dist/shared/tooling/commandShape.d.ts +35 -1
  569. package/dist/shared/tooling/commandShape.d.ts.map +1 -1
  570. package/dist/shared/tooling/commandShape.js +66 -4
  571. package/dist/shared/tooling/commandShape.js.map +1 -1
  572. package/dist/shared/tooling/exec.d.ts +62 -4
  573. package/dist/shared/tooling/exec.d.ts.map +1 -1
  574. package/dist/shared/tooling/exec.js +127 -8
  575. package/dist/shared/tooling/exec.js.map +1 -1
  576. package/dist/shared/types/charter.d.ts +674 -156
  577. package/dist/shared/types/charter.d.ts.map +1 -1
  578. package/dist/shared/types/charter.js +172 -118
  579. package/dist/shared/types/charter.js.map +1 -1
  580. package/dist/shared/types/closingActions.d.ts +25 -0
  581. package/dist/shared/types/closingActions.d.ts.map +1 -1
  582. package/dist/shared/types/closingActions.js +26 -0
  583. package/dist/shared/types/closingActions.js.map +1 -1
  584. package/dist/shared/types/contractPipeline/obligations.d.ts +63 -2
  585. package/dist/shared/types/contractPipeline/obligations.d.ts.map +1 -1
  586. package/dist/shared/types/contractPipeline/obligations.js +51 -0
  587. package/dist/shared/types/contractPipeline/obligations.js.map +1 -1
  588. package/dist/shared/types/contractPipeline.d.ts +1 -0
  589. package/dist/shared/types/contractPipeline.d.ts.map +1 -1
  590. package/dist/shared/types/contractPipeline.js +1 -0
  591. package/dist/shared/types/contractPipeline.js.map +1 -1
  592. package/dist/shared/types/contractPropertyShapes.d.ts +34 -0
  593. package/dist/shared/types/contractPropertyShapes.d.ts.map +1 -0
  594. package/dist/shared/types/contractPropertyShapes.js +255 -0
  595. package/dist/shared/types/contractPropertyShapes.js.map +1 -0
  596. package/dist/shared/types/finding.d.ts +376 -18
  597. package/dist/shared/types/finding.d.ts.map +1 -1
  598. package/dist/shared/types/finding.js +111 -0
  599. package/dist/shared/types/finding.js.map +1 -1
  600. package/dist/shared/types/intentCheckpoint.d.ts +214 -2
  601. package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
  602. package/dist/shared/types/intentCheckpoint.js +273 -0
  603. package/dist/shared/types/intentCheckpoint.js.map +1 -1
  604. package/dist/shared/types/intentInterpretation.d.ts +1 -1
  605. package/dist/shared/types/intentInterpretation.js +1 -1
  606. package/dist/shared/types/remediationOutcome.d.ts +294 -30
  607. package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
  608. package/dist/shared/types/remediationOutcome.js +96 -7
  609. package/dist/shared/types/remediationOutcome.js.map +1 -1
  610. package/dist/shared/types/stepContract.d.ts +47 -0
  611. package/dist/shared/types/stepContract.d.ts.map +1 -1
  612. package/dist/shared/types/stepContract.js +113 -0
  613. package/dist/shared/types/stepContract.js.map +1 -1
  614. package/dist/shared/validation/charterGate.d.ts +13 -28
  615. package/dist/shared/validation/charterGate.d.ts.map +1 -1
  616. package/dist/shared/validation/charterGate.js +13 -35
  617. package/dist/shared/validation/charterGate.js.map +1 -1
  618. package/dist/shared/validation/contractConstructionSites.d.ts +116 -0
  619. package/dist/shared/validation/contractConstructionSites.d.ts.map +1 -0
  620. package/dist/shared/validation/contractConstructionSites.js +277 -0
  621. package/dist/shared/validation/contractConstructionSites.js.map +1 -0
  622. package/dist/shared/validation/designFindingGrounding.d.ts +33 -4
  623. package/dist/shared/validation/designFindingGrounding.d.ts.map +1 -1
  624. package/dist/shared/validation/designFindingGrounding.js +40 -6
  625. package/dist/shared/validation/designFindingGrounding.js.map +1 -1
  626. package/dist/shared/validation/findingGrounding.d.ts.map +1 -1
  627. package/dist/shared/validation/findingGrounding.js +11 -1
  628. package/dist/shared/validation/findingGrounding.js.map +1 -1
  629. package/dist/shared/validation/findingsReport.d.ts.map +1 -1
  630. package/dist/shared/validation/findingsReport.js +5 -0
  631. package/dist/shared/validation/findingsReport.js.map +1 -1
  632. package/docs/audit-pkg/contracts.md +8 -2
  633. package/opencode.json +29 -29
  634. package/package.json +16 -3
  635. package/schemas/audit-code-v1alpha1.schema.json +0 -4
  636. package/scripts/audit/postinstall.mjs +81 -96
  637. package/scripts/remediate/postinstall.mjs +43 -83
  638. package/scripts/shared/host-asset-plan.mjs +176 -0
  639. package/scripts/shared/install-host-assets.mjs +44 -1
  640. package/scripts/shared/primitives.mjs +89 -0
  641. package/skills/audit-code/SKILL.md +4 -4
  642. package/skills/audit-code/audit-code.prompt.md +14 -10
  643. package/skills/remediate-code/SKILL.md +9 -5
  644. package/skills/remediate-code/remediate-code.prompt.md +11 -4
  645. package/wrapper/audit-code-wrapper-build.mjs +6 -3
  646. package/dist/audit/cli/charterDeltaPrompt.d.ts +0 -18
  647. package/dist/audit/cli/charterDeltaPrompt.d.ts.map +0 -1
  648. package/dist/audit/cli/charterDeltaPrompt.js +0 -150
  649. package/dist/audit/cli/charterDeltaPrompt.js.map +0 -1
  650. package/dist/audit/orchestrator/charterDeltaExecutor.d.ts +0 -24
  651. package/dist/audit/orchestrator/charterDeltaExecutor.d.ts.map +0 -1
  652. package/dist/audit/orchestrator/charterDeltaExecutor.js +0 -128
  653. package/dist/audit/orchestrator/charterDeltaExecutor.js.map +0 -1
  654. package/dist/audit/supervisor/runLedger.d.ts +0 -3
  655. package/dist/audit/supervisor/runLedger.d.ts.map +0 -1
  656. package/dist/audit/supervisor/runLedger.js +0 -69
  657. package/dist/audit/supervisor/runLedger.js.map +0 -1
  658. package/dist/shared/types/executionRecord.d.ts +0 -58
  659. package/dist/shared/types/executionRecord.d.ts.map +0 -1
  660. package/dist/shared/types/executionRecord.js +0 -26
  661. package/dist/shared/types/executionRecord.js.map +0 -1
  662. package/dist/shared/types/runLedger.d.ts +0 -17
  663. package/dist/shared/types/runLedger.d.ts.map +0 -1
  664. package/dist/shared/types/runLedger.js +0 -7
  665. package/dist/shared/types/runLedger.js.map +0 -1
@@ -5,6 +5,77 @@ export type FindingSeverity = z.infer<typeof FindingSeveritySchema>;
5
5
  /** Canonical finding confidence vocabulary (most-confident-first). */
6
6
  export declare const FindingConfidenceSchema: z.ZodEnum<["high", "medium", "low"]>;
7
7
  export type FindingConfidence = z.infer<typeof FindingConfidenceSchema>;
8
+ /**
9
+ * Which producer CONTRACT a finding came from, named by the one difference that
10
+ * matters downstream: whether that contract carries an `evidence` array.
11
+ *
12
+ * The two lanes do not share an evidence channel, and the asymmetry is by
13
+ * design. The per-file worker contract requires `evidence` (`WorkerFindingSchema`
14
+ * enforces `min(1)`); the design-review lanes do not — their contract lists no
15
+ * `evidence` at all (`findingsEnvelopeExample`) and their evidence channel is
16
+ * `affected_files`, certified by `groundDesignFinding`. A consumer that tests
17
+ * `evidence` therefore tests a field half its inputs were never asked for, and
18
+ * reads the other half's silence as a failed claim.
19
+ *
20
+ * TOOL-DERIVED at each producer's ingest (`markDesignEvidenceLane` for the
21
+ * design-review lanes, the field's default for per-file results) — never
22
+ * host-supplied, which is why every submission schema omits it. It is recorded
23
+ * rather than inferred at the reader because by the time a finding reaches
24
+ * synthesis the producer is no longer recoverable from its content: findings
25
+ * from both lanes sit in one array, and any content heuristic would be
26
+ * inference dressed as provenance.
27
+ */
28
+ export declare const FindingEvidenceLaneSchema: z.ZodEnum<["per-file-lane", "design-review-lane"]>;
29
+ export type FindingEvidenceLane = z.infer<typeof FindingEvidenceLaneSchema>;
30
+ /**
31
+ * Lineage of a finding a DETERMINISTIC producer emitted — which producer, and
32
+ * over what source content. This is what makes such a finding a LEAD; it is
33
+ * stamped by the producing code (`stampLeadLineage`), and it is ENFORCED to be
34
+ * tool-only — every schema that parses a submitted finding omits this field and
35
+ * refuses it by name, and the design-review ingest strips it where the array
36
+ * door does not parse a schema at all. See `FindingSchema.lead_lineage` for the
37
+ * three sites; the enforcement is the point, because the claim "a host cannot
38
+ * author this" is exactly the kind that decays into prose if nothing tests it.
39
+ *
40
+ * WHY IT IS NOT JUST BOOKKEEPING. A deterministic graph heuristic (a cut-edge
41
+ * bridge, a co-change pair with no structural edge, a behaviorally-smeared
42
+ * doc grouping) computes over a GENERATION of the repo. Its verdict is
43
+ * falsifiable only against that generation: the same heuristic over a moved
44
+ * tree is a different claim, and a finding with no generation recorded cannot
45
+ * be re-checked at all — a reader cannot tell a live lead from one whose
46
+ * evidence was deleted three commits ago. The `source_hash` is the identity
47
+ * that lets a later pass re-derive the same signal and confirm or refute it.
48
+ *
49
+ * `producer` is the detector, not the artifact: `design_assessment` carries
50
+ * nine unrelated detectors, and naming only the artifact would leave a reader
51
+ * unable to tell a cut-edge fragility claim from a complexity-hotspot one.
52
+ */
53
+ export declare const FindingLeadLineageSchema: z.ZodObject<{
54
+ /** Detector that emitted the lead (e.g. `detectSeams`, `detectHiddenCoupling`). */
55
+ producer: z.ZodString;
56
+ /**
57
+ * Content hash of the signal the producer read — the deterministic source
58
+ * this lead is bound to. Two runs over identical inputs produce the same
59
+ * hash; any input move produces a different one.
60
+ */
61
+ source_hash: z.ZodString;
62
+ /**
63
+ * `lead` — deterministic output awaiting semantic confirmation (the
64
+ * default for every graph heuristic). `confirmed` is never set by a
65
+ * deterministic producer: only a semantic pass may promote a lead, and it
66
+ * records the promotion on its own verdict, not here.
67
+ */
68
+ confirmation: z.ZodLiteral<"lead">;
69
+ }, "strict", z.ZodTypeAny, {
70
+ producer: string;
71
+ source_hash: string;
72
+ confirmation: "lead";
73
+ }, {
74
+ producer: string;
75
+ source_hash: string;
76
+ confirmation: "lead";
77
+ }>;
78
+ export type FindingLeadLineage = z.infer<typeof FindingLeadLineageSchema>;
8
79
  export declare const FindingLocationObjectSchema: z.ZodObject<{
9
80
  path: z.ZodString;
10
81
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -294,6 +365,20 @@ export declare const FindingSchema: z.ZodObject<{
294
365
  title: z.ZodString;
295
366
  category: z.ZodString;
296
367
  severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
368
+ /**
369
+ * The severity the tool moved this finding DOWN from, when a synthesis-time
370
+ * bar re-graded it (audit's `CRITICAL_EVIDENCE_BAR`). Present ONLY on a
371
+ * downgrade, and written by the tool that performed it.
372
+ *
373
+ * Why a sibling field rather than the severity alone: without it a
374
+ * tool-moved `high` is byte-identical to a judge-authored `high`, so
375
+ * `audit-findings.json` — and any reader of `work_blocks.max_severity` —
376
+ * cannot tell a claim the tool refused to let stand from one the judge never
377
+ * made. The severity is still the reported truth; this records that it was
378
+ * CHANGED and from what, so the deliverable states the qualification instead
379
+ * of hiding it in a diff nobody kept.
380
+ */
381
+ severity_downgraded_from: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low", "info"]>>;
297
382
  confidence: z.ZodEnum<["high", "medium", "low"]>;
298
383
  /** Audit lens; the auditor narrows this to its `Lens` union. */
299
384
  lens: z.ZodString;
@@ -382,6 +467,15 @@ export declare const FindingSchema: z.ZodObject<{
382
467
  status: "grounded" | "ungrounded" | "refuted";
383
468
  reason?: string | undefined;
384
469
  }>>;
470
+ /**
471
+ * The producer contract this finding arrived on — see
472
+ * {@link FindingEvidenceLaneSchema}. Absent on a per-file result (the lane
473
+ * whose contract requires `evidence`), so its absence is the default rather
474
+ * than a claim; stamped `design-review-lane` at that lane's ingest. Read by
475
+ * synthesis's `CRITICAL_EVIDENCE_BAR`, which applies only to the lane whose
476
+ * contract carries the field it tests.
477
+ */
478
+ evidence_lane: z.ZodOptional<z.ZodEnum<["per-file-lane", "design-review-lane"]>>;
385
479
  /**
386
480
  * Whether the defect this finding names is present at HEAD. TOOL-DERIVED at
387
481
  * conceptual ingest from the judge's per-candidate verification claims — host
@@ -493,6 +587,46 @@ export declare const FindingSchema: z.ZodObject<{
493
587
  snippet_hash: string;
494
588
  rule?: string | undefined;
495
589
  }>>;
590
+ /**
591
+ * Lineage of a finding a DETERMINISTIC producer emitted: which detector, over
592
+ * what source content, as an unconfirmed lead. TOOL-STAMPED by the producer,
593
+ * and host supply is REFUSED at every door into a finding array, because the
594
+ * field decides its own row's trust class: a submission that could set it
595
+ * would let a claim it made itself wear provenance it never had, and one that
596
+ * could omit it would let a real lead read as a first-hand finding. The
597
+ * refusals are `WorkerFindingSchema` (omit + `WORKER_REFUSED_FINDING_VERDICTS`,
598
+ * which `.strict()` turns into a rejection), `ConceptualSubmittedFindingSchema`
599
+ * (omit + `refuseSuppliedToolVerdict`), and the strip in `groundDesignFindings`
600
+ * for the design-review arrays, which reach ingestion through an array check
601
+ * rather than a parsing schema — see each site for why its door needs the shape
602
+ * it has. Absent on host-authored findings (per-file and design-review lanes),
603
+ * which are claims in their own right rather than leads awaiting confirmation.
604
+ */
605
+ lead_lineage: z.ZodOptional<z.ZodObject<{
606
+ /** Detector that emitted the lead (e.g. `detectSeams`, `detectHiddenCoupling`). */
607
+ producer: z.ZodString;
608
+ /**
609
+ * Content hash of the signal the producer read — the deterministic source
610
+ * this lead is bound to. Two runs over identical inputs produce the same
611
+ * hash; any input move produces a different one.
612
+ */
613
+ source_hash: z.ZodString;
614
+ /**
615
+ * `lead` — deterministic output awaiting semantic confirmation (the
616
+ * default for every graph heuristic). `confirmed` is never set by a
617
+ * deterministic producer: only a semantic pass may promote a lead, and it
618
+ * records the promotion on its own verdict, not here.
619
+ */
620
+ confirmation: z.ZodLiteral<"lead">;
621
+ }, "strict", z.ZodTypeAny, {
622
+ producer: string;
623
+ source_hash: string;
624
+ confirmation: "lead";
625
+ }, {
626
+ producer: string;
627
+ source_hash: string;
628
+ confirmation: "lead";
629
+ }>>;
496
630
  }, "strip", z.ZodTypeAny, {
497
631
  id: string;
498
632
  confidence: "high" | "low" | "medium";
@@ -509,6 +643,7 @@ export declare const FindingSchema: z.ZodObject<{
509
643
  quoted_text?: string | undefined;
510
644
  hash_at_plan_time?: string | undefined;
511
645
  }[];
646
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
512
647
  impact?: string | undefined;
513
648
  likelihood?: string | undefined;
514
649
  evidence?: string[] | undefined;
@@ -522,6 +657,7 @@ export declare const FindingSchema: z.ZodObject<{
522
657
  status: "grounded" | "ungrounded" | "refuted";
523
658
  reason?: string | undefined;
524
659
  } | undefined;
660
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
525
661
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
526
662
  executable_anchor?: {
527
663
  command: string[];
@@ -548,6 +684,11 @@ export declare const FindingSchema: z.ZodObject<{
548
684
  snippet_hash: string;
549
685
  rule?: string | undefined;
550
686
  } | undefined;
687
+ lead_lineage?: {
688
+ producer: string;
689
+ source_hash: string;
690
+ confirmation: "lead";
691
+ } | undefined;
551
692
  }, {
552
693
  id: string;
553
694
  confidence: "high" | "low" | "medium";
@@ -564,6 +705,7 @@ export declare const FindingSchema: z.ZodObject<{
564
705
  quoted_text?: string | undefined;
565
706
  hash_at_plan_time?: string | undefined;
566
707
  }[];
708
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
567
709
  impact?: string | undefined;
568
710
  likelihood?: string | undefined;
569
711
  evidence?: string[] | undefined;
@@ -577,6 +719,7 @@ export declare const FindingSchema: z.ZodObject<{
577
719
  status: "grounded" | "ungrounded" | "refuted";
578
720
  reason?: string | undefined;
579
721
  } | undefined;
722
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
580
723
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
581
724
  executable_anchor?: {
582
725
  command: string[];
@@ -603,6 +746,11 @@ export declare const FindingSchema: z.ZodObject<{
603
746
  snippet_hash: string;
604
747
  rule?: string | undefined;
605
748
  } | undefined;
749
+ lead_lineage?: {
750
+ producer: string;
751
+ source_hash: string;
752
+ confirmation: "lead";
753
+ } | undefined;
606
754
  }>;
607
755
  export type Finding = z.infer<typeof FindingSchema>;
608
756
  /** Report-level grouping of findings into parallelizable units of work. */
@@ -820,15 +968,15 @@ export declare const LensCoverageEntrySchema: z.ZodObject<{
820
968
  findings_count: z.ZodNumber;
821
969
  outcome: z.ZodEnum<["clean", "findings", "degraded", "not_run", "not_applicable"]>;
822
970
  }, "strict", z.ZodTypeAny, {
823
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
824
971
  lens: string;
825
972
  selected: boolean;
826
973
  findings_count: number;
827
- }, {
828
974
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
975
+ }, {
829
976
  lens: string;
830
977
  selected: boolean;
831
978
  findings_count: number;
979
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
832
980
  }>;
833
981
  export type LensCoverageEntry = z.infer<typeof LensCoverageEntrySchema>;
834
982
  export declare const AuditFindingsSummarySchema: z.ZodObject<{
@@ -877,15 +1025,15 @@ export declare const AuditFindingsSummarySchema: z.ZodObject<{
877
1025
  findings_count: z.ZodNumber;
878
1026
  outcome: z.ZodEnum<["clean", "findings", "degraded", "not_run", "not_applicable"]>;
879
1027
  }, "strict", z.ZodTypeAny, {
880
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
881
1028
  lens: string;
882
1029
  selected: boolean;
883
1030
  findings_count: number;
884
- }, {
885
1031
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1032
+ }, {
886
1033
  lens: string;
887
1034
  selected: boolean;
888
1035
  findings_count: number;
1036
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
889
1037
  }>, "many">>;
890
1038
  }, "strip", z.ZodTypeAny, {
891
1039
  finding_count: number;
@@ -898,10 +1046,10 @@ export declare const AuditFindingsSummarySchema: z.ZodObject<{
898
1046
  grounding_status_breakdown?: Record<string, number> | undefined;
899
1047
  verification_status_breakdown?: Record<string, number> | undefined;
900
1048
  lens_coverage?: {
901
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
902
1049
  lens: string;
903
1050
  selected: boolean;
904
1051
  findings_count: number;
1052
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
905
1053
  }[] | undefined;
906
1054
  }, {
907
1055
  finding_count: number;
@@ -914,10 +1062,10 @@ export declare const AuditFindingsSummarySchema: z.ZodObject<{
914
1062
  grounding_status_breakdown?: Record<string, number> | undefined;
915
1063
  verification_status_breakdown?: Record<string, number> | undefined;
916
1064
  lens_coverage?: {
917
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
918
1065
  lens: string;
919
1066
  selected: boolean;
920
1067
  findings_count: number;
1068
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
921
1069
  }[] | undefined;
922
1070
  }>;
923
1071
  export type AuditFindingsSummary = z.infer<typeof AuditFindingsSummarySchema>;
@@ -974,15 +1122,15 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
974
1122
  findings_count: z.ZodNumber;
975
1123
  outcome: z.ZodEnum<["clean", "findings", "degraded", "not_run", "not_applicable"]>;
976
1124
  }, "strict", z.ZodTypeAny, {
977
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
978
1125
  lens: string;
979
1126
  selected: boolean;
980
1127
  findings_count: number;
981
- }, {
982
1128
  outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1129
+ }, {
983
1130
  lens: string;
984
1131
  selected: boolean;
985
1132
  findings_count: number;
1133
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
986
1134
  }>, "many">>;
987
1135
  }, "strip", z.ZodTypeAny, {
988
1136
  finding_count: number;
@@ -995,10 +1143,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
995
1143
  grounding_status_breakdown?: Record<string, number> | undefined;
996
1144
  verification_status_breakdown?: Record<string, number> | undefined;
997
1145
  lens_coverage?: {
998
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
999
1146
  lens: string;
1000
1147
  selected: boolean;
1001
1148
  findings_count: number;
1149
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1002
1150
  }[] | undefined;
1003
1151
  }, {
1004
1152
  finding_count: number;
@@ -1011,10 +1159,10 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1011
1159
  grounding_status_breakdown?: Record<string, number> | undefined;
1012
1160
  verification_status_breakdown?: Record<string, number> | undefined;
1013
1161
  lens_coverage?: {
1014
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1015
1162
  lens: string;
1016
1163
  selected: boolean;
1017
1164
  findings_count: number;
1165
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1018
1166
  }[] | undefined;
1019
1167
  }>;
1020
1168
  findings: z.ZodArray<z.ZodObject<{
@@ -1022,6 +1170,20 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1022
1170
  title: z.ZodString;
1023
1171
  category: z.ZodString;
1024
1172
  severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
1173
+ /**
1174
+ * The severity the tool moved this finding DOWN from, when a synthesis-time
1175
+ * bar re-graded it (audit's `CRITICAL_EVIDENCE_BAR`). Present ONLY on a
1176
+ * downgrade, and written by the tool that performed it.
1177
+ *
1178
+ * Why a sibling field rather than the severity alone: without it a
1179
+ * tool-moved `high` is byte-identical to a judge-authored `high`, so
1180
+ * `audit-findings.json` — and any reader of `work_blocks.max_severity` —
1181
+ * cannot tell a claim the tool refused to let stand from one the judge never
1182
+ * made. The severity is still the reported truth; this records that it was
1183
+ * CHANGED and from what, so the deliverable states the qualification instead
1184
+ * of hiding it in a diff nobody kept.
1185
+ */
1186
+ severity_downgraded_from: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low", "info"]>>;
1025
1187
  confidence: z.ZodEnum<["high", "medium", "low"]>;
1026
1188
  /** Audit lens; the auditor narrows this to its `Lens` union. */
1027
1189
  lens: z.ZodString;
@@ -1110,6 +1272,15 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1110
1272
  status: "grounded" | "ungrounded" | "refuted";
1111
1273
  reason?: string | undefined;
1112
1274
  }>>;
1275
+ /**
1276
+ * The producer contract this finding arrived on — see
1277
+ * {@link FindingEvidenceLaneSchema}. Absent on a per-file result (the lane
1278
+ * whose contract requires `evidence`), so its absence is the default rather
1279
+ * than a claim; stamped `design-review-lane` at that lane's ingest. Read by
1280
+ * synthesis's `CRITICAL_EVIDENCE_BAR`, which applies only to the lane whose
1281
+ * contract carries the field it tests.
1282
+ */
1283
+ evidence_lane: z.ZodOptional<z.ZodEnum<["per-file-lane", "design-review-lane"]>>;
1113
1284
  /**
1114
1285
  * Whether the defect this finding names is present at HEAD. TOOL-DERIVED at
1115
1286
  * conceptual ingest from the judge's per-candidate verification claims — host
@@ -1221,6 +1392,46 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1221
1392
  snippet_hash: string;
1222
1393
  rule?: string | undefined;
1223
1394
  }>>;
1395
+ /**
1396
+ * Lineage of a finding a DETERMINISTIC producer emitted: which detector, over
1397
+ * what source content, as an unconfirmed lead. TOOL-STAMPED by the producer,
1398
+ * and host supply is REFUSED at every door into a finding array, because the
1399
+ * field decides its own row's trust class: a submission that could set it
1400
+ * would let a claim it made itself wear provenance it never had, and one that
1401
+ * could omit it would let a real lead read as a first-hand finding. The
1402
+ * refusals are `WorkerFindingSchema` (omit + `WORKER_REFUSED_FINDING_VERDICTS`,
1403
+ * which `.strict()` turns into a rejection), `ConceptualSubmittedFindingSchema`
1404
+ * (omit + `refuseSuppliedToolVerdict`), and the strip in `groundDesignFindings`
1405
+ * for the design-review arrays, which reach ingestion through an array check
1406
+ * rather than a parsing schema — see each site for why its door needs the shape
1407
+ * it has. Absent on host-authored findings (per-file and design-review lanes),
1408
+ * which are claims in their own right rather than leads awaiting confirmation.
1409
+ */
1410
+ lead_lineage: z.ZodOptional<z.ZodObject<{
1411
+ /** Detector that emitted the lead (e.g. `detectSeams`, `detectHiddenCoupling`). */
1412
+ producer: z.ZodString;
1413
+ /**
1414
+ * Content hash of the signal the producer read — the deterministic source
1415
+ * this lead is bound to. Two runs over identical inputs produce the same
1416
+ * hash; any input move produces a different one.
1417
+ */
1418
+ source_hash: z.ZodString;
1419
+ /**
1420
+ * `lead` — deterministic output awaiting semantic confirmation (the
1421
+ * default for every graph heuristic). `confirmed` is never set by a
1422
+ * deterministic producer: only a semantic pass may promote a lead, and it
1423
+ * records the promotion on its own verdict, not here.
1424
+ */
1425
+ confirmation: z.ZodLiteral<"lead">;
1426
+ }, "strict", z.ZodTypeAny, {
1427
+ producer: string;
1428
+ source_hash: string;
1429
+ confirmation: "lead";
1430
+ }, {
1431
+ producer: string;
1432
+ source_hash: string;
1433
+ confirmation: "lead";
1434
+ }>>;
1224
1435
  }, "strip", z.ZodTypeAny, {
1225
1436
  id: string;
1226
1437
  confidence: "high" | "low" | "medium";
@@ -1237,6 +1448,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1237
1448
  quoted_text?: string | undefined;
1238
1449
  hash_at_plan_time?: string | undefined;
1239
1450
  }[];
1451
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1240
1452
  impact?: string | undefined;
1241
1453
  likelihood?: string | undefined;
1242
1454
  evidence?: string[] | undefined;
@@ -1250,6 +1462,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1250
1462
  status: "grounded" | "ungrounded" | "refuted";
1251
1463
  reason?: string | undefined;
1252
1464
  } | undefined;
1465
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1253
1466
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1254
1467
  executable_anchor?: {
1255
1468
  command: string[];
@@ -1276,6 +1489,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1276
1489
  snippet_hash: string;
1277
1490
  rule?: string | undefined;
1278
1491
  } | undefined;
1492
+ lead_lineage?: {
1493
+ producer: string;
1494
+ source_hash: string;
1495
+ confirmation: "lead";
1496
+ } | undefined;
1279
1497
  }, {
1280
1498
  id: string;
1281
1499
  confidence: "high" | "low" | "medium";
@@ -1292,6 +1510,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1292
1510
  quoted_text?: string | undefined;
1293
1511
  hash_at_plan_time?: string | undefined;
1294
1512
  }[];
1513
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1295
1514
  impact?: string | undefined;
1296
1515
  likelihood?: string | undefined;
1297
1516
  evidence?: string[] | undefined;
@@ -1305,6 +1524,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1305
1524
  status: "grounded" | "ungrounded" | "refuted";
1306
1525
  reason?: string | undefined;
1307
1526
  } | undefined;
1527
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1308
1528
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1309
1529
  executable_anchor?: {
1310
1530
  command: string[];
@@ -1331,6 +1551,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1331
1551
  snippet_hash: string;
1332
1552
  rule?: string | undefined;
1333
1553
  } | undefined;
1554
+ lead_lineage?: {
1555
+ producer: string;
1556
+ source_hash: string;
1557
+ confirmation: "lead";
1558
+ } | undefined;
1334
1559
  }>, "many">;
1335
1560
  coherence_trace: z.ZodObject<{
1336
1561
  normalized_items: z.ZodArray<z.ZodObject<{
@@ -1463,6 +1688,20 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1463
1688
  title: z.ZodString;
1464
1689
  category: z.ZodString;
1465
1690
  severity: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
1691
+ /**
1692
+ * The severity the tool moved this finding DOWN from, when a synthesis-time
1693
+ * bar re-graded it (audit's `CRITICAL_EVIDENCE_BAR`). Present ONLY on a
1694
+ * downgrade, and written by the tool that performed it.
1695
+ *
1696
+ * Why a sibling field rather than the severity alone: without it a
1697
+ * tool-moved `high` is byte-identical to a judge-authored `high`, so
1698
+ * `audit-findings.json` — and any reader of `work_blocks.max_severity` —
1699
+ * cannot tell a claim the tool refused to let stand from one the judge never
1700
+ * made. The severity is still the reported truth; this records that it was
1701
+ * CHANGED and from what, so the deliverable states the qualification instead
1702
+ * of hiding it in a diff nobody kept.
1703
+ */
1704
+ severity_downgraded_from: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low", "info"]>>;
1466
1705
  confidence: z.ZodEnum<["high", "medium", "low"]>;
1467
1706
  /** Audit lens; the auditor narrows this to its `Lens` union. */
1468
1707
  lens: z.ZodString;
@@ -1551,6 +1790,15 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1551
1790
  status: "grounded" | "ungrounded" | "refuted";
1552
1791
  reason?: string | undefined;
1553
1792
  }>>;
1793
+ /**
1794
+ * The producer contract this finding arrived on — see
1795
+ * {@link FindingEvidenceLaneSchema}. Absent on a per-file result (the lane
1796
+ * whose contract requires `evidence`), so its absence is the default rather
1797
+ * than a claim; stamped `design-review-lane` at that lane's ingest. Read by
1798
+ * synthesis's `CRITICAL_EVIDENCE_BAR`, which applies only to the lane whose
1799
+ * contract carries the field it tests.
1800
+ */
1801
+ evidence_lane: z.ZodOptional<z.ZodEnum<["per-file-lane", "design-review-lane"]>>;
1554
1802
  /**
1555
1803
  * Whether the defect this finding names is present at HEAD. TOOL-DERIVED at
1556
1804
  * conceptual ingest from the judge's per-candidate verification claims — host
@@ -1662,6 +1910,46 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1662
1910
  snippet_hash: string;
1663
1911
  rule?: string | undefined;
1664
1912
  }>>;
1913
+ /**
1914
+ * Lineage of a finding a DETERMINISTIC producer emitted: which detector, over
1915
+ * what source content, as an unconfirmed lead. TOOL-STAMPED by the producer,
1916
+ * and host supply is REFUSED at every door into a finding array, because the
1917
+ * field decides its own row's trust class: a submission that could set it
1918
+ * would let a claim it made itself wear provenance it never had, and one that
1919
+ * could omit it would let a real lead read as a first-hand finding. The
1920
+ * refusals are `WorkerFindingSchema` (omit + `WORKER_REFUSED_FINDING_VERDICTS`,
1921
+ * which `.strict()` turns into a rejection), `ConceptualSubmittedFindingSchema`
1922
+ * (omit + `refuseSuppliedToolVerdict`), and the strip in `groundDesignFindings`
1923
+ * for the design-review arrays, which reach ingestion through an array check
1924
+ * rather than a parsing schema — see each site for why its door needs the shape
1925
+ * it has. Absent on host-authored findings (per-file and design-review lanes),
1926
+ * which are claims in their own right rather than leads awaiting confirmation.
1927
+ */
1928
+ lead_lineage: z.ZodOptional<z.ZodObject<{
1929
+ /** Detector that emitted the lead (e.g. `detectSeams`, `detectHiddenCoupling`). */
1930
+ producer: z.ZodString;
1931
+ /**
1932
+ * Content hash of the signal the producer read — the deterministic source
1933
+ * this lead is bound to. Two runs over identical inputs produce the same
1934
+ * hash; any input move produces a different one.
1935
+ */
1936
+ source_hash: z.ZodString;
1937
+ /**
1938
+ * `lead` — deterministic output awaiting semantic confirmation (the
1939
+ * default for every graph heuristic). `confirmed` is never set by a
1940
+ * deterministic producer: only a semantic pass may promote a lead, and it
1941
+ * records the promotion on its own verdict, not here.
1942
+ */
1943
+ confirmation: z.ZodLiteral<"lead">;
1944
+ }, "strict", z.ZodTypeAny, {
1945
+ producer: string;
1946
+ source_hash: string;
1947
+ confirmation: "lead";
1948
+ }, {
1949
+ producer: string;
1950
+ source_hash: string;
1951
+ confirmation: "lead";
1952
+ }>>;
1665
1953
  }, "strip", z.ZodTypeAny, {
1666
1954
  id: string;
1667
1955
  confidence: "high" | "low" | "medium";
@@ -1678,6 +1966,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1678
1966
  quoted_text?: string | undefined;
1679
1967
  hash_at_plan_time?: string | undefined;
1680
1968
  }[];
1969
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1681
1970
  impact?: string | undefined;
1682
1971
  likelihood?: string | undefined;
1683
1972
  evidence?: string[] | undefined;
@@ -1691,6 +1980,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1691
1980
  status: "grounded" | "ungrounded" | "refuted";
1692
1981
  reason?: string | undefined;
1693
1982
  } | undefined;
1983
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1694
1984
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1695
1985
  executable_anchor?: {
1696
1986
  command: string[];
@@ -1717,6 +2007,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1717
2007
  snippet_hash: string;
1718
2008
  rule?: string | undefined;
1719
2009
  } | undefined;
2010
+ lead_lineage?: {
2011
+ producer: string;
2012
+ source_hash: string;
2013
+ confirmation: "lead";
2014
+ } | undefined;
1720
2015
  }, {
1721
2016
  id: string;
1722
2017
  confidence: "high" | "low" | "medium";
@@ -1733,6 +2028,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1733
2028
  quoted_text?: string | undefined;
1734
2029
  hash_at_plan_time?: string | undefined;
1735
2030
  }[];
2031
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1736
2032
  impact?: string | undefined;
1737
2033
  likelihood?: string | undefined;
1738
2034
  evidence?: string[] | undefined;
@@ -1746,6 +2042,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1746
2042
  status: "grounded" | "ungrounded" | "refuted";
1747
2043
  reason?: string | undefined;
1748
2044
  } | undefined;
2045
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1749
2046
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1750
2047
  executable_anchor?: {
1751
2048
  command: string[];
@@ -1772,6 +2069,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1772
2069
  snippet_hash: string;
1773
2070
  rule?: string | undefined;
1774
2071
  } | undefined;
2072
+ lead_lineage?: {
2073
+ producer: string;
2074
+ source_hash: string;
2075
+ confirmation: "lead";
2076
+ } | undefined;
1775
2077
  }>, "many">>;
1776
2078
  /** Paths excluded from the audit per the intent checkpoint, with reasons. */
1777
2079
  excluded_scope: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1806,7 +2108,6 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1806
2108
  executive_summary: z.ZodOptional<z.ZodString>;
1807
2109
  top_risks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1808
2110
  }, "strip", z.ZodTypeAny, {
1809
- contract_version: string;
1810
2111
  findings: {
1811
2112
  id: string;
1812
2113
  confidence: "high" | "low" | "medium";
@@ -1823,6 +2124,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1823
2124
  quoted_text?: string | undefined;
1824
2125
  hash_at_plan_time?: string | undefined;
1825
2126
  }[];
2127
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1826
2128
  impact?: string | undefined;
1827
2129
  likelihood?: string | undefined;
1828
2130
  evidence?: string[] | undefined;
@@ -1836,6 +2138,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1836
2138
  status: "grounded" | "ungrounded" | "refuted";
1837
2139
  reason?: string | undefined;
1838
2140
  } | undefined;
2141
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1839
2142
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1840
2143
  executable_anchor?: {
1841
2144
  command: string[];
@@ -1862,6 +2165,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1862
2165
  snippet_hash: string;
1863
2166
  rule?: string | undefined;
1864
2167
  } | undefined;
2168
+ lead_lineage?: {
2169
+ producer: string;
2170
+ source_hash: string;
2171
+ confirmation: "lead";
2172
+ } | undefined;
1865
2173
  }[];
1866
2174
  summary: {
1867
2175
  finding_count: number;
@@ -1874,12 +2182,13 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1874
2182
  grounding_status_breakdown?: Record<string, number> | undefined;
1875
2183
  verification_status_breakdown?: Record<string, number> | undefined;
1876
2184
  lens_coverage?: {
1877
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1878
2185
  lens: string;
1879
2186
  selected: boolean;
1880
2187
  findings_count: number;
2188
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
1881
2189
  }[] | undefined;
1882
2190
  };
2191
+ contract_version: string;
1883
2192
  coherence_trace: {
1884
2193
  normalized_items: {
1885
2194
  id: string;
@@ -1934,6 +2243,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1934
2243
  quoted_text?: string | undefined;
1935
2244
  hash_at_plan_time?: string | undefined;
1936
2245
  }[];
2246
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1937
2247
  impact?: string | undefined;
1938
2248
  likelihood?: string | undefined;
1939
2249
  evidence?: string[] | undefined;
@@ -1947,6 +2257,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1947
2257
  status: "grounded" | "ungrounded" | "refuted";
1948
2258
  reason?: string | undefined;
1949
2259
  } | undefined;
2260
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
1950
2261
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
1951
2262
  executable_anchor?: {
1952
2263
  command: string[];
@@ -1973,13 +2284,17 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1973
2284
  snippet_hash: string;
1974
2285
  rule?: string | undefined;
1975
2286
  } | undefined;
2287
+ lead_lineage?: {
2288
+ producer: string;
2289
+ source_hash: string;
2290
+ confirmation: "lead";
2291
+ } | undefined;
1976
2292
  }[] | undefined;
1977
2293
  excluded_scope?: {
1978
2294
  path: string;
1979
2295
  reason: string;
1980
2296
  }[] | undefined;
1981
2297
  }, {
1982
- contract_version: string;
1983
2298
  findings: {
1984
2299
  id: string;
1985
2300
  confidence: "high" | "low" | "medium";
@@ -1996,6 +2311,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
1996
2311
  quoted_text?: string | undefined;
1997
2312
  hash_at_plan_time?: string | undefined;
1998
2313
  }[];
2314
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
1999
2315
  impact?: string | undefined;
2000
2316
  likelihood?: string | undefined;
2001
2317
  evidence?: string[] | undefined;
@@ -2009,6 +2325,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2009
2325
  status: "grounded" | "ungrounded" | "refuted";
2010
2326
  reason?: string | undefined;
2011
2327
  } | undefined;
2328
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2012
2329
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2013
2330
  executable_anchor?: {
2014
2331
  command: string[];
@@ -2035,6 +2352,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2035
2352
  snippet_hash: string;
2036
2353
  rule?: string | undefined;
2037
2354
  } | undefined;
2355
+ lead_lineage?: {
2356
+ producer: string;
2357
+ source_hash: string;
2358
+ confirmation: "lead";
2359
+ } | undefined;
2038
2360
  }[];
2039
2361
  summary: {
2040
2362
  finding_count: number;
@@ -2047,12 +2369,13 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2047
2369
  grounding_status_breakdown?: Record<string, number> | undefined;
2048
2370
  verification_status_breakdown?: Record<string, number> | undefined;
2049
2371
  lens_coverage?: {
2050
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
2051
2372
  lens: string;
2052
2373
  selected: boolean;
2053
2374
  findings_count: number;
2375
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
2054
2376
  }[] | undefined;
2055
2377
  };
2378
+ contract_version: string;
2056
2379
  coherence_trace: {
2057
2380
  normalized_items: {
2058
2381
  id: string;
@@ -2107,6 +2430,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2107
2430
  quoted_text?: string | undefined;
2108
2431
  hash_at_plan_time?: string | undefined;
2109
2432
  }[];
2433
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
2110
2434
  impact?: string | undefined;
2111
2435
  likelihood?: string | undefined;
2112
2436
  evidence?: string[] | undefined;
@@ -2120,6 +2444,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2120
2444
  status: "grounded" | "ungrounded" | "refuted";
2121
2445
  reason?: string | undefined;
2122
2446
  } | undefined;
2447
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2123
2448
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2124
2449
  executable_anchor?: {
2125
2450
  command: string[];
@@ -2146,13 +2471,17 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2146
2471
  snippet_hash: string;
2147
2472
  rule?: string | undefined;
2148
2473
  } | undefined;
2474
+ lead_lineage?: {
2475
+ producer: string;
2476
+ source_hash: string;
2477
+ confirmation: "lead";
2478
+ } | undefined;
2149
2479
  }[] | undefined;
2150
2480
  excluded_scope?: {
2151
2481
  path: string;
2152
2482
  reason: string;
2153
2483
  }[] | undefined;
2154
2484
  }>, {
2155
- contract_version: string;
2156
2485
  findings: {
2157
2486
  id: string;
2158
2487
  confidence: "high" | "low" | "medium";
@@ -2169,6 +2498,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2169
2498
  quoted_text?: string | undefined;
2170
2499
  hash_at_plan_time?: string | undefined;
2171
2500
  }[];
2501
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
2172
2502
  impact?: string | undefined;
2173
2503
  likelihood?: string | undefined;
2174
2504
  evidence?: string[] | undefined;
@@ -2182,6 +2512,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2182
2512
  status: "grounded" | "ungrounded" | "refuted";
2183
2513
  reason?: string | undefined;
2184
2514
  } | undefined;
2515
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2185
2516
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2186
2517
  executable_anchor?: {
2187
2518
  command: string[];
@@ -2208,6 +2539,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2208
2539
  snippet_hash: string;
2209
2540
  rule?: string | undefined;
2210
2541
  } | undefined;
2542
+ lead_lineage?: {
2543
+ producer: string;
2544
+ source_hash: string;
2545
+ confirmation: "lead";
2546
+ } | undefined;
2211
2547
  }[];
2212
2548
  summary: {
2213
2549
  finding_count: number;
@@ -2220,12 +2556,13 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2220
2556
  grounding_status_breakdown?: Record<string, number> | undefined;
2221
2557
  verification_status_breakdown?: Record<string, number> | undefined;
2222
2558
  lens_coverage?: {
2223
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
2224
2559
  lens: string;
2225
2560
  selected: boolean;
2226
2561
  findings_count: number;
2562
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
2227
2563
  }[] | undefined;
2228
2564
  };
2565
+ contract_version: string;
2229
2566
  coherence_trace: {
2230
2567
  normalized_items: {
2231
2568
  id: string;
@@ -2280,6 +2617,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2280
2617
  quoted_text?: string | undefined;
2281
2618
  hash_at_plan_time?: string | undefined;
2282
2619
  }[];
2620
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
2283
2621
  impact?: string | undefined;
2284
2622
  likelihood?: string | undefined;
2285
2623
  evidence?: string[] | undefined;
@@ -2293,6 +2631,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2293
2631
  status: "grounded" | "ungrounded" | "refuted";
2294
2632
  reason?: string | undefined;
2295
2633
  } | undefined;
2634
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2296
2635
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2297
2636
  executable_anchor?: {
2298
2637
  command: string[];
@@ -2319,13 +2658,17 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2319
2658
  snippet_hash: string;
2320
2659
  rule?: string | undefined;
2321
2660
  } | undefined;
2661
+ lead_lineage?: {
2662
+ producer: string;
2663
+ source_hash: string;
2664
+ confirmation: "lead";
2665
+ } | undefined;
2322
2666
  }[] | undefined;
2323
2667
  excluded_scope?: {
2324
2668
  path: string;
2325
2669
  reason: string;
2326
2670
  }[] | undefined;
2327
2671
  }, {
2328
- contract_version: string;
2329
2672
  findings: {
2330
2673
  id: string;
2331
2674
  confidence: "high" | "low" | "medium";
@@ -2342,6 +2685,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2342
2685
  quoted_text?: string | undefined;
2343
2686
  hash_at_plan_time?: string | undefined;
2344
2687
  }[];
2688
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
2345
2689
  impact?: string | undefined;
2346
2690
  likelihood?: string | undefined;
2347
2691
  evidence?: string[] | undefined;
@@ -2355,6 +2699,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2355
2699
  status: "grounded" | "ungrounded" | "refuted";
2356
2700
  reason?: string | undefined;
2357
2701
  } | undefined;
2702
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2358
2703
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2359
2704
  executable_anchor?: {
2360
2705
  command: string[];
@@ -2381,6 +2726,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2381
2726
  snippet_hash: string;
2382
2727
  rule?: string | undefined;
2383
2728
  } | undefined;
2729
+ lead_lineage?: {
2730
+ producer: string;
2731
+ source_hash: string;
2732
+ confirmation: "lead";
2733
+ } | undefined;
2384
2734
  }[];
2385
2735
  summary: {
2386
2736
  finding_count: number;
@@ -2393,12 +2743,13 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2393
2743
  grounding_status_breakdown?: Record<string, number> | undefined;
2394
2744
  verification_status_breakdown?: Record<string, number> | undefined;
2395
2745
  lens_coverage?: {
2396
- outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
2397
2746
  lens: string;
2398
2747
  selected: boolean;
2399
2748
  findings_count: number;
2749
+ outcome: "clean" | "findings" | "degraded" | "not_run" | "not_applicable";
2400
2750
  }[] | undefined;
2401
2751
  };
2752
+ contract_version: string;
2402
2753
  coherence_trace: {
2403
2754
  normalized_items: {
2404
2755
  id: string;
@@ -2453,6 +2804,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2453
2804
  quoted_text?: string | undefined;
2454
2805
  hash_at_plan_time?: string | undefined;
2455
2806
  }[];
2807
+ severity_downgraded_from?: "high" | "low" | "critical" | "medium" | "info" | undefined;
2456
2808
  impact?: string | undefined;
2457
2809
  likelihood?: string | undefined;
2458
2810
  evidence?: string[] | undefined;
@@ -2466,6 +2818,7 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2466
2818
  status: "grounded" | "ungrounded" | "refuted";
2467
2819
  reason?: string | undefined;
2468
2820
  } | undefined;
2821
+ evidence_lane?: "per-file-lane" | "design-review-lane" | undefined;
2469
2822
  verification_status?: "judge_confirmed" | "asserted" | "refuted_at_head" | undefined;
2470
2823
  executable_anchor?: {
2471
2824
  command: string[];
@@ -2492,6 +2845,11 @@ export declare const AuditFindingsReportSchema: z.ZodEffects<z.ZodObject<{
2492
2845
  snippet_hash: string;
2493
2846
  rule?: string | undefined;
2494
2847
  } | undefined;
2848
+ lead_lineage?: {
2849
+ producer: string;
2850
+ source_hash: string;
2851
+ confirmation: "lead";
2852
+ } | undefined;
2495
2853
  }[] | undefined;
2496
2854
  excluded_scope?: {
2497
2855
  path: string;