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
@@ -121,13 +121,13 @@ export declare const GoalNodeSchema: z.ZodObject<{
121
121
  premise_height: z.ZodNumber;
122
122
  statement: z.ZodString;
123
123
  }, "strict", z.ZodTypeAny, {
124
- statement: string;
125
124
  node_id: string;
126
125
  premise_height: number;
127
- }, {
128
126
  statement: string;
127
+ }, {
129
128
  node_id: string;
130
129
  premise_height: number;
130
+ statement: string;
131
131
  }>;
132
132
  export type GoalNode = z.infer<typeof GoalNodeSchema>;
133
133
  /**
@@ -152,13 +152,13 @@ export declare const GoalGraphSchema: z.ZodObject<{
152
152
  premise_height: z.ZodNumber;
153
153
  statement: z.ZodString;
154
154
  }, "strict", z.ZodTypeAny, {
155
- statement: string;
156
155
  node_id: string;
157
156
  premise_height: number;
158
- }, {
159
157
  statement: string;
158
+ }, {
160
159
  node_id: string;
161
160
  premise_height: number;
161
+ statement: string;
162
162
  }>, "many">;
163
163
  edges: z.ZodArray<z.ZodObject<{
164
164
  from: z.ZodString;
@@ -172,9 +172,9 @@ export declare const GoalGraphSchema: z.ZodObject<{
172
172
  }>, "many">;
173
173
  }, "strict", z.ZodTypeAny, {
174
174
  nodes: {
175
- statement: string;
176
175
  node_id: string;
177
176
  premise_height: number;
177
+ statement: string;
178
178
  }[];
179
179
  edges: {
180
180
  from: string;
@@ -182,9 +182,9 @@ export declare const GoalGraphSchema: z.ZodObject<{
182
182
  }[];
183
183
  }, {
184
184
  nodes: {
185
- statement: string;
186
185
  node_id: string;
187
186
  premise_height: number;
187
+ statement: string;
188
188
  }[];
189
189
  edges: {
190
190
  from: string;
@@ -213,173 +213,656 @@ export declare const CeilingSchema: z.ZodObject<{
213
213
  }>;
214
214
  export type Ceiling = z.infer<typeof CeilingSchema>;
215
215
  /**
216
- * A routed pairwise charter delta — the product of the overlay-and-delta operator at
217
- * the charter layer (produced in Phase C). `pair` is a SYMMETRIC tuple of the two
218
- * charter kinds compared: the design forbids anointing any single estimator as
219
- * ground truth, so a delta is never modeled as `{ from: stated, to: X }`. Each
220
- * channel PAIR has one defined meaning; `routed_to` names who acts on it (a
221
- * low-confidence side forces `human` regardless of kind — gateCharterDelta):
222
- * - `doc_rot` (stated ↔ structural: testimony vs organization — doc rot / naming
223
- * drift) → `remediator`.
224
- * - `says_does_drift` (stated ↔ revealed: testimony vs behavior) → `remediator`.
225
- * - `architecture_betrayal` (structural ↔ revealed: the organization's promise vs
226
- * what the implementation actually does) → `clarification` (which governs?).
227
- * - `wrong_goal` (any estimator ↔ true) → `human` (provocation only; `deepest`).
216
+ * How answerable a charter question is — the axes the VOI ranking scores. A
217
+ * `blast_radius` is how far up the goal DAG the answer ripples (goals are a DAG,
218
+ * not a tree, so one answer can force reframes on multiple parents); a
219
+ * `cascade_count` is how many other still-open deltas the answer is expected to
220
+ * settle. High on both = highest value-of-information (resolve it first).
228
221
  */
229
- export declare const CharterDeltaSchema: z.ZodObject<{
230
- delta_id: z.ZodString;
231
- pair: z.ZodTuple<[z.ZodEnum<["stated", "structural", "revealed", "true"]>, z.ZodEnum<["stated", "structural", "revealed", "true"]>], null>;
232
- kind: z.ZodEnum<["doc_rot", "says_does_drift", "architecture_betrayal", "wrong_goal"]>;
233
- routed_to: z.ZodEnum<["remediator", "clarification", "human"]>;
234
- summary: z.ZodString;
235
- /**
236
- * The subsystem this delta was mined in. `delta_id` is OPAQUE — the assembler
237
- * mints it with a content-derived discriminator when one subsystem carries two
238
- * deltas on the same channel pair — so the originating node is carried as its
239
- * own field and never recovered by parsing the id.
240
- */
241
- node_id: z.ZodOptional<z.ZodString>;
242
- /** Present when `node_id` is linked into the mined goal graph. */
243
- goal_node_id: z.ZodOptional<z.ZodString>;
222
+ export declare const ClarificationValueSchema: z.ZodObject<{
223
+ /** How far up the goal DAG the fix ripples (0 = leaf). Priority AND risk. */
224
+ blast_radius: z.ZodNumber;
225
+ /** How many other open deltas this answer is expected to cascade-settle. */
226
+ cascade_count: z.ZodNumber;
244
227
  }, "strict", z.ZodTypeAny, {
245
- kind: "doc_rot" | "says_does_drift" | "architecture_betrayal" | "wrong_goal";
246
- summary: string;
247
- delta_id: string;
248
- pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
249
- routed_to: "remediator" | "clarification" | "human";
250
- node_id?: string | undefined;
251
- goal_node_id?: string | undefined;
228
+ blast_radius: number;
229
+ cascade_count: number;
252
230
  }, {
253
- kind: "doc_rot" | "says_does_drift" | "architecture_betrayal" | "wrong_goal";
254
- summary: string;
255
- delta_id: string;
256
- pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
257
- routed_to: "remediator" | "clarification" | "human";
258
- node_id?: string | undefined;
259
- goal_node_id?: string | undefined;
231
+ blast_radius: number;
232
+ cascade_count: number;
260
233
  }>;
261
- export type CharterDelta = z.infer<typeof CharterDeltaSchema>;
262
- /**
263
- * A delta as the Phase-C ASSEMBLER emits it — `node_id` required. The identity
264
- * fields are optional on `CharterDelta` because the type also describes a delta
265
- * mid-assembly (the gate operates on one before the register exists), but every
266
- * delta that reaches the persisted register carries its node, so the register
267
- * declares this narrower shape and consumers read the field instead of parsing
268
- * `delta_id`.
269
- */
270
- export interface StampedCharterDelta extends CharterDelta {
271
- node_id: string;
272
- }
234
+ export type ClarificationValue = z.infer<typeof ClarificationValueSchema>;
235
+ /** The three ESTIMATOR kinds — the lanes that author a goal DAG. `true` is never a lane. */
236
+ export declare const CharterLaneKindSchema: z.ZodEnum<["stated", "structural", "revealed"]>;
237
+ export type CharterLaneKind = z.infer<typeof CharterLaneKindSchema>;
273
238
  /**
274
- * One node of a kind's self-organized leveled teleology. The lane organizes its
275
- * OWN view of the repo's purposes — `premise_height` is the emergent level
276
- * (0 = the telos, higher = closer to a leaf mechanism; an integer, NEVER a fixed
277
- * L0/L1/L2 enum), and `files` is the node's FILE SCOPE: content-derived join keys
278
- * no agent can mangle. The tool joins teleologies to each other and to the
279
- * decomposition hint mechanically by file-set overlap (assembleCharters).
239
+ * One node of a lane's goal DAG as PERSISTED. `node_id` is the lane's own local
240
+ * slug (never a join key); `premise_height` is DERIVED by the tool from the edges
241
+ * (longest path from a root purpose), never lane-stated; `files` is optional —
242
+ * the Stated lane may cite provenance only (step 1, "scope follows the evidence").
280
243
  */
281
- export declare const TeleologyNodeSchema: z.ZodObject<{
282
- /** Purpose in telos terms, never mechanism (same discipline as `Charter`). */
244
+ export declare const LaneGoalNodeSchema: z.ZodObject<{
245
+ node_id: z.ZodString;
246
+ /** Purpose in telos terms, never mechanism. */
283
247
  purpose: z.ZodString;
284
- /** Emergent level: 0 = the telos, higher = nearer a leaf mechanism. */
285
248
  premise_height: z.ZodNumber;
286
- /** The node's file scope — the join key. At least one repo-relative path. */
287
- files: z.ZodArray<z.ZodString, "many">;
249
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ provenance: z.ZodArray<z.ZodObject<{
251
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
252
+ ref: z.ZodString;
253
+ quote: z.ZodOptional<z.ZodString>;
254
+ }, "strict", z.ZodTypeAny, {
255
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
256
+ ref: string;
257
+ quote?: string | undefined;
258
+ }, {
259
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
260
+ ref: string;
261
+ quote?: string | undefined;
262
+ }>, "many">;
263
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
288
264
  }, "strict", z.ZodTypeAny, {
289
- files: string[];
265
+ confidence: "high" | "low" | "medium";
290
266
  purpose: string;
267
+ provenance: {
268
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
269
+ ref: string;
270
+ quote?: string | undefined;
271
+ }[];
272
+ node_id: string;
291
273
  premise_height: number;
274
+ files?: string[] | undefined;
292
275
  }, {
293
- files: string[];
276
+ confidence: "high" | "low" | "medium";
294
277
  purpose: string;
278
+ provenance: {
279
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
280
+ ref: string;
281
+ quote?: string | undefined;
282
+ }[];
283
+ node_id: string;
295
284
  premise_height: number;
285
+ files?: string[] | undefined;
286
+ }>;
287
+ export type LaneGoalNode = z.infer<typeof LaneGoalNodeSchema>;
288
+ /** One edge of a lane's goal DAG: `from` SERVES `to`, with its own evidence. */
289
+ export declare const LaneGoalEdgeSchema: z.ZodObject<{
290
+ from: z.ZodString;
291
+ to: z.ZodString;
292
+ provenance: z.ZodArray<z.ZodObject<{
293
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
294
+ ref: z.ZodString;
295
+ quote: z.ZodOptional<z.ZodString>;
296
+ }, "strict", z.ZodTypeAny, {
297
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
298
+ ref: string;
299
+ quote?: string | undefined;
300
+ }, {
301
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
302
+ ref: string;
303
+ quote?: string | undefined;
304
+ }>, "many">;
305
+ }, "strict", z.ZodTypeAny, {
306
+ from: string;
307
+ to: string;
308
+ provenance: {
309
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
310
+ ref: string;
311
+ quote?: string | undefined;
312
+ }[];
313
+ }, {
314
+ from: string;
315
+ to: string;
316
+ provenance: {
317
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
318
+ ref: string;
319
+ quote?: string | undefined;
320
+ }[];
321
+ }>;
322
+ export type LaneGoalEdge = z.infer<typeof LaneGoalEdgeSchema>;
323
+ /** A lane's whole goal DAG, persisted as its own graph — never merged with the others. */
324
+ export declare const CharterLaneGraphSchema: z.ZodObject<{
325
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
326
+ nodes: z.ZodArray<z.ZodObject<{
327
+ node_id: z.ZodString;
328
+ /** Purpose in telos terms, never mechanism. */
329
+ purpose: z.ZodString;
330
+ premise_height: z.ZodNumber;
331
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
332
+ provenance: z.ZodArray<z.ZodObject<{
333
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
334
+ ref: z.ZodString;
335
+ quote: z.ZodOptional<z.ZodString>;
336
+ }, "strict", z.ZodTypeAny, {
337
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
338
+ ref: string;
339
+ quote?: string | undefined;
340
+ }, {
341
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
342
+ ref: string;
343
+ quote?: string | undefined;
344
+ }>, "many">;
345
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
346
+ }, "strict", z.ZodTypeAny, {
347
+ confidence: "high" | "low" | "medium";
348
+ purpose: string;
349
+ provenance: {
350
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
351
+ ref: string;
352
+ quote?: string | undefined;
353
+ }[];
354
+ node_id: string;
355
+ premise_height: number;
356
+ files?: string[] | undefined;
357
+ }, {
358
+ confidence: "high" | "low" | "medium";
359
+ purpose: string;
360
+ provenance: {
361
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
362
+ ref: string;
363
+ quote?: string | undefined;
364
+ }[];
365
+ node_id: string;
366
+ premise_height: number;
367
+ files?: string[] | undefined;
368
+ }>, "many">;
369
+ edges: z.ZodArray<z.ZodObject<{
370
+ from: z.ZodString;
371
+ to: z.ZodString;
372
+ provenance: z.ZodArray<z.ZodObject<{
373
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
374
+ ref: z.ZodString;
375
+ quote: z.ZodOptional<z.ZodString>;
376
+ }, "strict", z.ZodTypeAny, {
377
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
378
+ ref: string;
379
+ quote?: string | undefined;
380
+ }, {
381
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
382
+ ref: string;
383
+ quote?: string | undefined;
384
+ }>, "many">;
385
+ }, "strict", z.ZodTypeAny, {
386
+ from: string;
387
+ to: string;
388
+ provenance: {
389
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
390
+ ref: string;
391
+ quote?: string | undefined;
392
+ }[];
393
+ }, {
394
+ from: string;
395
+ to: string;
396
+ provenance: {
397
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
398
+ ref: string;
399
+ quote?: string | undefined;
400
+ }[];
401
+ }>, "many">;
402
+ }, "strict", z.ZodTypeAny, {
403
+ kind: "stated" | "structural" | "revealed";
404
+ nodes: {
405
+ confidence: "high" | "low" | "medium";
406
+ purpose: string;
407
+ provenance: {
408
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
409
+ ref: string;
410
+ quote?: string | undefined;
411
+ }[];
412
+ node_id: string;
413
+ premise_height: number;
414
+ files?: string[] | undefined;
415
+ }[];
416
+ edges: {
417
+ from: string;
418
+ to: string;
419
+ provenance: {
420
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
421
+ ref: string;
422
+ quote?: string | undefined;
423
+ }[];
424
+ }[];
425
+ }, {
426
+ kind: "stated" | "structural" | "revealed";
427
+ nodes: {
428
+ confidence: "high" | "low" | "medium";
429
+ purpose: string;
430
+ provenance: {
431
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
432
+ ref: string;
433
+ quote?: string | undefined;
434
+ }[];
435
+ node_id: string;
436
+ premise_height: number;
437
+ files?: string[] | undefined;
438
+ }[];
439
+ edges: {
440
+ from: string;
441
+ to: string;
442
+ provenance: {
443
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
444
+ ref: string;
445
+ quote?: string | undefined;
446
+ }[];
447
+ }[];
448
+ }>;
449
+ export type CharterLaneGraph = z.infer<typeof CharterLaneGraphSchema>;
450
+ /** A reference to a set of nodes in ONE lane's DAG (one node, several, or a subgraph). */
451
+ export declare const CorrespondenceMemberSchema: z.ZodObject<{
452
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
453
+ node_ids: z.ZodArray<z.ZodString, "many">;
454
+ }, "strict", z.ZodTypeAny, {
455
+ kind: "stated" | "structural" | "revealed";
456
+ node_ids: string[];
457
+ }, {
458
+ kind: "stated" | "structural" | "revealed";
459
+ node_ids: string[];
296
460
  }>;
297
- export type TeleologyNode = z.infer<typeof TeleologyNodeSchema>;
461
+ export type CorrespondenceMember = z.infer<typeof CorrespondenceMemberSchema>;
298
462
  /**
299
- * The delta miner's TRIANGULATED TELOS for one subsystem — a unified opinion the
300
- * owner reacts to, distilled from the three blind estimators. A LEAD, never a
301
- * reconciliation: the charters stay held un-merged, the deltas stay the primary
302
- * product, and no consumer may treat this as ground truth (the spec's
303
- * "never reconciled into one truth" boundary; the rejected thing is a merge that
304
- * DESTROYS the deltas, and this preserves them).
463
+ * A TOOL-PROPOSED correspondence candidate (step 2): two lanes' nodes related by
464
+ * file-scope overlap or by a provenance cross-reference. Always exactly two members;
465
+ * the host may widen it.
305
466
  */
306
- export declare const TriangulatedTelosSchema: z.ZodObject<{
307
- /** The subsystem (joined unit) this estimate belongs to. */
308
- node_id: z.ZodString;
309
- /** The unified best-estimate telos, in telos terms. */
310
- telos: z.ZodString;
311
- confidence: z.ZodEnum<["high", "medium", "low"]>;
467
+ export declare const CorrespondenceCandidateSchema: z.ZodObject<{
468
+ candidate_id: z.ZodString;
469
+ members: z.ZodArray<z.ZodObject<{
470
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
471
+ node_ids: z.ZodArray<z.ZodString, "many">;
472
+ }, "strict", z.ZodTypeAny, {
473
+ kind: "stated" | "structural" | "revealed";
474
+ node_ids: string[];
475
+ }, {
476
+ kind: "stated" | "structural" | "revealed";
477
+ node_ids: string[];
478
+ }>, "many">;
479
+ basis: z.ZodEnum<["file_overlap", "cross_ref"]>;
480
+ /** What the basis rested on: overlapping paths, or the cross-referenced path. */
481
+ evidence_paths: z.ZodArray<z.ZodString, "many">;
312
482
  }, "strict", z.ZodTypeAny, {
313
- confidence: "high" | "low" | "medium";
314
- node_id: string;
315
- telos: string;
483
+ members: {
484
+ kind: "stated" | "structural" | "revealed";
485
+ node_ids: string[];
486
+ }[];
487
+ candidate_id: string;
488
+ basis: "file_overlap" | "cross_ref";
489
+ evidence_paths: string[];
316
490
  }, {
317
- confidence: "high" | "low" | "medium";
318
- node_id: string;
319
- telos: string;
491
+ members: {
492
+ kind: "stated" | "structural" | "revealed";
493
+ node_ids: string[];
494
+ }[];
495
+ candidate_id: string;
496
+ basis: "file_overlap" | "cross_ref";
497
+ evidence_paths: string[];
320
498
  }>;
321
- export type TriangulatedTelos = z.infer<typeof TriangulatedTelosSchema>;
499
+ export type CorrespondenceCandidate = z.infer<typeof CorrespondenceCandidateSchema>;
322
500
  /**
323
- * Tool-computed disagreement density: how many deltas one subsystem carries per
324
- * channel pair — the quantitative surface for "which parts of the triangulation
325
- * need clarification." Deterministic (counted at assembly), never host-supplied.
501
+ * A CONFIRMED correspondence (step 2 product): regions of two or three lane DAGs
502
+ * that speak about the same thing. A record ABOUT the graphs, never a merge of them.
326
503
  */
327
- export declare const ChannelDisagreementSchema: z.ZodObject<{
328
- node_id: z.ZodString;
329
- pair: z.ZodTuple<[z.ZodEnum<["stated", "structural", "revealed", "true"]>, z.ZodEnum<["stated", "structural", "revealed", "true"]>], null>;
330
- count: z.ZodNumber;
504
+ export declare const CharterCorrespondenceSchema: z.ZodObject<{
505
+ correspondence_id: z.ZodString;
506
+ members: z.ZodArray<z.ZodObject<{
507
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
508
+ node_ids: z.ZodArray<z.ZodString, "many">;
509
+ }, "strict", z.ZodTypeAny, {
510
+ kind: "stated" | "structural" | "revealed";
511
+ node_ids: string[];
512
+ }, {
513
+ kind: "stated" | "structural" | "revealed";
514
+ node_ids: string[];
515
+ }>, "many">;
516
+ /** `tool` = a confirmed candidate; `host` = added by the comparison reader. */
517
+ basis: z.ZodEnum<["tool", "host"]>;
518
+ /** The candidate this confirmed or widened, when any. */
519
+ candidate_id: z.ZodOptional<z.ZodString>;
520
+ evidence: z.ZodArray<z.ZodObject<{
521
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
522
+ ref: z.ZodString;
523
+ quote: z.ZodOptional<z.ZodString>;
524
+ }, "strict", z.ZodTypeAny, {
525
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
526
+ ref: string;
527
+ quote?: string | undefined;
528
+ }, {
529
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
530
+ ref: string;
531
+ quote?: string | undefined;
532
+ }>, "many">;
331
533
  }, "strict", z.ZodTypeAny, {
332
- node_id: string;
333
- pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
334
- count: number;
534
+ members: {
535
+ kind: "stated" | "structural" | "revealed";
536
+ node_ids: string[];
537
+ }[];
538
+ evidence: {
539
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
540
+ ref: string;
541
+ quote?: string | undefined;
542
+ }[];
543
+ basis: "tool" | "host";
544
+ correspondence_id: string;
545
+ candidate_id?: string | undefined;
335
546
  }, {
336
- node_id: string;
337
- pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
338
- count: number;
547
+ members: {
548
+ kind: "stated" | "structural" | "revealed";
549
+ node_ids: string[];
550
+ }[];
551
+ evidence: {
552
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
553
+ ref: string;
554
+ quote?: string | undefined;
555
+ }[];
556
+ basis: "tool" | "host";
557
+ correspondence_id: string;
558
+ candidate_id?: string | undefined;
339
559
  }>;
340
- export type ChannelDisagreement = z.infer<typeof ChannelDisagreementSchema>;
560
+ export type CharterCorrespondence = z.infer<typeof CharterCorrespondenceSchema>;
561
+ /** The closed dimension enum (step 3, seven dimensions with decision rules in the spec). */
562
+ export declare const DifferenceDimensionSchema: z.ZodEnum<["purpose", "presence", "responsibility", "hierarchy", "scope", "standing", "standard"]>;
563
+ export type DifferenceDimension = z.infer<typeof DifferenceDimensionSchema>;
564
+ /** The relation judged across ALL accounts in the correspondence. */
565
+ export declare const DifferenceRelationSchema: z.ZodEnum<["equivalent", "complementary", "incompatible"]>;
566
+ export type DifferenceRelation = z.infer<typeof DifferenceRelationSchema>;
567
+ /** An incompatible record's split: two-against-one (naming the odd channel) or three-way. */
568
+ export declare const DifferenceSplitSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
569
+ kind: z.ZodLiteral<"two_against_one">;
570
+ odd: z.ZodEnum<["stated", "structural", "revealed"]>;
571
+ }, "strict", z.ZodTypeAny, {
572
+ kind: "two_against_one";
573
+ odd: "stated" | "structural" | "revealed";
574
+ }, {
575
+ kind: "two_against_one";
576
+ odd: "stated" | "structural" | "revealed";
577
+ }>, z.ZodObject<{
578
+ kind: z.ZodLiteral<"three_way">;
579
+ }, "strict", z.ZodTypeAny, {
580
+ kind: "three_way";
581
+ }, {
582
+ kind: "three_way";
583
+ }>]>;
584
+ export type DifferenceSplit = z.infer<typeof DifferenceSplitSchema>;
585
+ /** One channel's account of the goal under comparison, with the provenance it rests on. */
586
+ export declare const DifferenceAccountSchema: z.ZodObject<{
587
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
588
+ claim: z.ZodString;
589
+ provenance: z.ZodArray<z.ZodObject<{
590
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
591
+ ref: z.ZodString;
592
+ quote: z.ZodOptional<z.ZodString>;
593
+ }, "strict", z.ZodTypeAny, {
594
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
595
+ ref: string;
596
+ quote?: string | undefined;
597
+ }, {
598
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
599
+ ref: string;
600
+ quote?: string | undefined;
601
+ }>, "many">;
602
+ }, "strict", z.ZodTypeAny, {
603
+ kind: "stated" | "structural" | "revealed";
604
+ claim: string;
605
+ provenance: {
606
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
607
+ ref: string;
608
+ quote?: string | undefined;
609
+ }[];
610
+ }, {
611
+ kind: "stated" | "structural" | "revealed";
612
+ claim: string;
613
+ provenance: {
614
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
615
+ ref: string;
616
+ quote?: string | undefined;
617
+ }[];
618
+ }>;
619
+ export type DifferenceAccount = z.infer<typeof DifferenceAccountSchema>;
620
+ /** Who acts on a difference — derived by the tool from `(dimension, relation, split)`. */
621
+ export declare const DifferenceRouteSchema: z.ZodEnum<["remediator", "clarification", "human", "none"]>;
622
+ export type DifferenceRoute = z.infer<typeof DifferenceRouteSchema>;
623
+ /** The fidelity lane's verdict on one difference (step 4). */
624
+ export declare const FidelityVerdictSchema: z.ZodObject<{
625
+ verdict: z.ZodEnum<["supported", "interpretation", "unverifiable"]>;
626
+ /** Only with `interpretation`: the channel whose claim over-read its source. */
627
+ over_read_side: z.ZodOptional<z.ZodEnum<["stated", "structural", "revealed"]>>;
628
+ rationale: z.ZodString;
629
+ /** `tool` when the mechanical pre-check settled it (a missing quote); `lane` otherwise. */
630
+ decided_by: z.ZodEnum<["tool", "lane"]>;
631
+ }, "strict", z.ZodTypeAny, {
632
+ rationale: string;
633
+ verdict: "supported" | "interpretation" | "unverifiable";
634
+ decided_by: "tool" | "lane";
635
+ over_read_side?: "stated" | "structural" | "revealed" | undefined;
636
+ }, {
637
+ rationale: string;
638
+ verdict: "supported" | "interpretation" | "unverifiable";
639
+ decided_by: "tool" | "lane";
640
+ over_read_side?: "stated" | "structural" | "revealed" | undefined;
641
+ }>;
642
+ export type FidelityVerdict = z.infer<typeof FidelityVerdictSchema>;
341
643
  /**
342
- * How answerable a charter question is — the axes the VOI ranking scores. A
343
- * `blast_radius` is how far up the goal DAG the answer ripples (goals are a DAG,
344
- * not a tree, so one answer can force reframes on multiple parents); a
345
- * `cascade_count` is how many other still-open deltas the answer is expected to
346
- * settle. High on both = highest value-of-information (resolve it first).
644
+ * A DIFFERENCE record (step 3 product, stamped by steps 4 and 5): what the
645
+ * corresponding accounts disagree on, typed on one dimension and one relation,
646
+ * holding EVERY channel's account in its correspondence (two or three).
347
647
  */
348
- export declare const ClarificationValueSchema: z.ZodObject<{
349
- /** How far up the goal DAG the fix ripples (0 = leaf). Priority AND risk. */
350
- blast_radius: z.ZodNumber;
351
- /** How many other open deltas this answer is expected to cascade-settle. */
352
- cascade_count: z.ZodNumber;
648
+ export declare const CharterDifferenceSchema: z.ZodObject<{
649
+ difference_id: z.ZodString;
650
+ correspondence_id: z.ZodString;
651
+ dimension: z.ZodEnum<["purpose", "presence", "responsibility", "hierarchy", "scope", "standing", "standard"]>;
652
+ relation: z.ZodEnum<["equivalent", "complementary", "incompatible"]>;
653
+ /** Required when `relation` is `incompatible`; absent otherwise. */
654
+ split: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
655
+ kind: z.ZodLiteral<"two_against_one">;
656
+ odd: z.ZodEnum<["stated", "structural", "revealed"]>;
657
+ }, "strict", z.ZodTypeAny, {
658
+ kind: "two_against_one";
659
+ odd: "stated" | "structural" | "revealed";
660
+ }, {
661
+ kind: "two_against_one";
662
+ odd: "stated" | "structural" | "revealed";
663
+ }>, z.ZodObject<{
664
+ kind: z.ZodLiteral<"three_way">;
665
+ }, "strict", z.ZodTypeAny, {
666
+ kind: "three_way";
667
+ }, {
668
+ kind: "three_way";
669
+ }>]>>;
670
+ accounts: z.ZodArray<z.ZodObject<{
671
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
672
+ claim: z.ZodString;
673
+ provenance: z.ZodArray<z.ZodObject<{
674
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
675
+ ref: z.ZodString;
676
+ quote: z.ZodOptional<z.ZodString>;
677
+ }, "strict", z.ZodTypeAny, {
678
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
679
+ ref: string;
680
+ quote?: string | undefined;
681
+ }, {
682
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
683
+ ref: string;
684
+ quote?: string | undefined;
685
+ }>, "many">;
686
+ }, "strict", z.ZodTypeAny, {
687
+ kind: "stated" | "structural" | "revealed";
688
+ claim: string;
689
+ provenance: {
690
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
691
+ ref: string;
692
+ quote?: string | undefined;
693
+ }[];
694
+ }, {
695
+ kind: "stated" | "structural" | "revealed";
696
+ claim: string;
697
+ provenance: {
698
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
699
+ ref: string;
700
+ quote?: string | undefined;
701
+ }[];
702
+ }>, "many">;
703
+ /** One-sentence statement of the gap. */
704
+ gap: z.ZodString;
705
+ /** For `presence`: the silent channel SHOULD have covered the goal. */
706
+ covered_channel_gap: z.ZodOptional<z.ZodBoolean>;
707
+ /** Tool-derived routing from the fixed `(dimension, relation, split)` table. */
708
+ routed_to: z.ZodEnum<["remediator", "clarification", "human", "none"]>;
709
+ /** Whether this record is a finding candidate (incompatible, or a covered-channel gap). */
710
+ finding_candidate: z.ZodBoolean;
711
+ /** Set by the fidelity step; absent until it runs. */
712
+ fidelity: z.ZodOptional<z.ZodObject<{
713
+ verdict: z.ZodEnum<["supported", "interpretation", "unverifiable"]>;
714
+ /** Only with `interpretation`: the channel whose claim over-read its source. */
715
+ over_read_side: z.ZodOptional<z.ZodEnum<["stated", "structural", "revealed"]>>;
716
+ rationale: z.ZodString;
717
+ /** `tool` when the mechanical pre-check settled it (a missing quote); `lane` otherwise. */
718
+ decided_by: z.ZodEnum<["tool", "lane"]>;
719
+ }, "strict", z.ZodTypeAny, {
720
+ rationale: string;
721
+ verdict: "supported" | "interpretation" | "unverifiable";
722
+ decided_by: "tool" | "lane";
723
+ over_read_side?: "stated" | "structural" | "revealed" | undefined;
724
+ }, {
725
+ rationale: string;
726
+ verdict: "supported" | "interpretation" | "unverifiable";
727
+ decided_by: "tool" | "lane";
728
+ over_read_side?: "stated" | "structural" | "revealed" | undefined;
729
+ }>>;
353
730
  }, "strict", z.ZodTypeAny, {
354
- blast_radius: number;
355
- cascade_count: number;
731
+ correspondence_id: string;
732
+ difference_id: string;
733
+ dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
734
+ relation: "equivalent" | "complementary" | "incompatible";
735
+ accounts: {
736
+ kind: "stated" | "structural" | "revealed";
737
+ claim: string;
738
+ provenance: {
739
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
740
+ ref: string;
741
+ quote?: string | undefined;
742
+ }[];
743
+ }[];
744
+ gap: string;
745
+ routed_to: "remediator" | "clarification" | "human" | "none";
746
+ finding_candidate: boolean;
747
+ split?: {
748
+ kind: "two_against_one";
749
+ odd: "stated" | "structural" | "revealed";
750
+ } | {
751
+ kind: "three_way";
752
+ } | undefined;
753
+ covered_channel_gap?: boolean | undefined;
754
+ fidelity?: {
755
+ rationale: string;
756
+ verdict: "supported" | "interpretation" | "unverifiable";
757
+ decided_by: "tool" | "lane";
758
+ over_read_side?: "stated" | "structural" | "revealed" | undefined;
759
+ } | undefined;
356
760
  }, {
357
- blast_radius: number;
358
- cascade_count: number;
761
+ correspondence_id: string;
762
+ difference_id: string;
763
+ dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
764
+ relation: "equivalent" | "complementary" | "incompatible";
765
+ accounts: {
766
+ kind: "stated" | "structural" | "revealed";
767
+ claim: string;
768
+ provenance: {
769
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
770
+ ref: string;
771
+ quote?: string | undefined;
772
+ }[];
773
+ }[];
774
+ gap: string;
775
+ routed_to: "remediator" | "clarification" | "human" | "none";
776
+ finding_candidate: boolean;
777
+ split?: {
778
+ kind: "two_against_one";
779
+ odd: "stated" | "structural" | "revealed";
780
+ } | {
781
+ kind: "three_way";
782
+ } | undefined;
783
+ covered_channel_gap?: boolean | undefined;
784
+ fidelity?: {
785
+ rationale: string;
786
+ verdict: "supported" | "interpretation" | "unverifiable";
787
+ decided_by: "tool" | "lane";
788
+ over_read_side?: "stated" | "structural" | "revealed" | undefined;
789
+ } | undefined;
359
790
  }>;
360
- export type ClarificationValue = z.infer<typeof ClarificationValueSchema>;
791
+ export type CharterDifference = z.infer<typeof CharterDifferenceSchema>;
361
792
  /**
362
- * A single charter-alignment question — the audit-side ClarificationRequest,
363
- * sourced from a routed CharterDelta. `options` are SYMMETRIC (any of the four
364
- * charters may move, including Stated; "leave open" is a first-class answer), so a
365
- * question never silently anoints Stated as ground truth. `value` carries the
366
- * blast-radius + cascade estimate the VOI queue ranks on. `answer` is set once the
367
- * user (or the autonomous zero-attention mode) resolves it.
793
+ * The n-ary clarification answer (decision 6): the governing channel by name, a
794
+ * rewrite of all accounts, or a deliberate held tension.
368
795
  */
369
- export declare const CharterClarificationAnswerSchema: z.ZodEnum<["this_side_wins", "that_side_wins", "rewrite_both", "leave_open"]>;
370
- export type CharterClarificationAnswer = z.infer<typeof CharterClarificationAnswerSchema>;
371
- export declare const CharterClarificationRequestSchema: z.ZodObject<{
372
- /** Stable id, derived from the source delta (`${delta_id}:q`). */
796
+ export declare const CharterDifferenceAnswerSchema: z.ZodUnion<[z.ZodObject<{
797
+ governs: z.ZodEnum<["stated", "structural", "revealed"]>;
798
+ }, "strict", z.ZodTypeAny, {
799
+ governs: "stated" | "structural" | "revealed";
800
+ }, {
801
+ governs: "stated" | "structural" | "revealed";
802
+ }>, z.ZodLiteral<"rewrite_all">, z.ZodLiteral<"leave_open">]>;
803
+ export type CharterDifferenceAnswer = z.infer<typeof CharterDifferenceAnswerSchema>;
804
+ /**
805
+ * A charter-alignment question sourced from a DIFFERENCE (the n-ary successor of
806
+ * {@link CharterClarificationRequestSchema}). Every account in the correspondence
807
+ * is shown; the answer names the channel that governs.
808
+ */
809
+ export declare const CharterDifferenceQuestionSchema: z.ZodObject<{
373
810
  request_id: z.ZodString;
374
- /** The routed delta this question triangulates. */
375
- delta_id: z.ZodString;
376
- /** The subsystem the delta belongs to (for grouping + reporting). */
377
- node_id: z.ZodString;
378
- /** The symmetric charter pair in tension. */
379
- pair: z.ZodTuple<[z.ZodEnum<["stated", "structural", "revealed", "true"]>, z.ZodEnum<["stated", "structural", "revealed", "true"]>], null>;
380
- /** The decidable question ("code optimizes X, docs say Y — which governs?"). */
811
+ difference_id: z.ZodString;
812
+ /** The report's grouping subsystem (structure-decomposition unit), when placed. */
813
+ subsystem_id: z.ZodOptional<z.ZodString>;
814
+ dimension: z.ZodEnum<["purpose", "presence", "responsibility", "hierarchy", "scope", "standing", "standard"]>;
815
+ relation: z.ZodEnum<["equivalent", "complementary", "incompatible"]>;
816
+ split: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
817
+ kind: z.ZodLiteral<"two_against_one">;
818
+ odd: z.ZodEnum<["stated", "structural", "revealed"]>;
819
+ }, "strict", z.ZodTypeAny, {
820
+ kind: "two_against_one";
821
+ odd: "stated" | "structural" | "revealed";
822
+ }, {
823
+ kind: "two_against_one";
824
+ odd: "stated" | "structural" | "revealed";
825
+ }>, z.ZodObject<{
826
+ kind: z.ZodLiteral<"three_way">;
827
+ }, "strict", z.ZodTypeAny, {
828
+ kind: "three_way";
829
+ }, {
830
+ kind: "three_way";
831
+ }>]>>;
832
+ accounts: z.ZodArray<z.ZodObject<{
833
+ kind: z.ZodEnum<["stated", "structural", "revealed"]>;
834
+ claim: z.ZodString;
835
+ provenance: z.ZodArray<z.ZodObject<{
836
+ kind: z.ZodEnum<["doc", "intent_checkpoint", "user_feedback", "code", "comment", "inferred"]>;
837
+ ref: z.ZodString;
838
+ quote: z.ZodOptional<z.ZodString>;
839
+ }, "strict", z.ZodTypeAny, {
840
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
841
+ ref: string;
842
+ quote?: string | undefined;
843
+ }, {
844
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
845
+ ref: string;
846
+ quote?: string | undefined;
847
+ }>, "many">;
848
+ }, "strict", z.ZodTypeAny, {
849
+ kind: "stated" | "structural" | "revealed";
850
+ claim: string;
851
+ provenance: {
852
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
853
+ ref: string;
854
+ quote?: string | undefined;
855
+ }[];
856
+ }, {
857
+ kind: "stated" | "structural" | "revealed";
858
+ claim: string;
859
+ provenance: {
860
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
861
+ ref: string;
862
+ quote?: string | undefined;
863
+ }[];
864
+ }>, "many">;
381
865
  question: z.ZodString;
382
- /** The VOI axes this question is ranked on. */
383
866
  value: z.ZodObject<{
384
867
  /** How far up the goal DAG the fix ripples (0 = leaf). Priority AND risk. */
385
868
  blast_radius: z.ZodNumber;
@@ -392,39 +875,74 @@ export declare const CharterClarificationRequestSchema: z.ZodObject<{
392
875
  blast_radius: number;
393
876
  cascade_count: number;
394
877
  }>;
395
- /**
396
- * Whether this question is CLEARED for the interactive human channel or must
397
- * only be written as a finding. A high-blast question that has not cleared the
398
- * risk gate's higher adversarial bar (or any question under zero attention) is
399
- * `finding_only`. `interactive` questions form the VOI queue the user answers.
400
- */
401
878
  disposition: z.ZodEnum<["interactive", "finding_only"]>;
402
- /** Resolved answer (symmetric); absent while the question is still open. */
403
- answer: z.ZodOptional<z.ZodEnum<["this_side_wins", "that_side_wins", "rewrite_both", "leave_open"]>>;
879
+ answer: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
880
+ governs: z.ZodEnum<["stated", "structural", "revealed"]>;
881
+ }, "strict", z.ZodTypeAny, {
882
+ governs: "stated" | "structural" | "revealed";
883
+ }, {
884
+ governs: "stated" | "structural" | "revealed";
885
+ }>, z.ZodLiteral<"rewrite_all">, z.ZodLiteral<"leave_open">]>>;
404
886
  }, "strict", z.ZodTypeAny, {
405
887
  value: {
406
888
  blast_radius: number;
407
889
  cascade_count: number;
408
890
  };
409
- node_id: string;
410
- delta_id: string;
411
- pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
891
+ difference_id: string;
892
+ dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
893
+ relation: "equivalent" | "complementary" | "incompatible";
894
+ accounts: {
895
+ kind: "stated" | "structural" | "revealed";
896
+ claim: string;
897
+ provenance: {
898
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
899
+ ref: string;
900
+ quote?: string | undefined;
901
+ }[];
902
+ }[];
412
903
  request_id: string;
413
904
  question: string;
414
905
  disposition: "interactive" | "finding_only";
415
- answer?: "this_side_wins" | "that_side_wins" | "rewrite_both" | "leave_open" | undefined;
906
+ split?: {
907
+ kind: "two_against_one";
908
+ odd: "stated" | "structural" | "revealed";
909
+ } | {
910
+ kind: "three_way";
911
+ } | undefined;
912
+ subsystem_id?: string | undefined;
913
+ answer?: {
914
+ governs: "stated" | "structural" | "revealed";
915
+ } | "rewrite_all" | "leave_open" | undefined;
416
916
  }, {
417
917
  value: {
418
918
  blast_radius: number;
419
919
  cascade_count: number;
420
920
  };
421
- node_id: string;
422
- delta_id: string;
423
- pair: ["stated" | "structural" | "revealed" | "true", "stated" | "structural" | "revealed" | "true"];
921
+ difference_id: string;
922
+ dimension: "purpose" | "presence" | "responsibility" | "hierarchy" | "scope" | "standing" | "standard";
923
+ relation: "equivalent" | "complementary" | "incompatible";
924
+ accounts: {
925
+ kind: "stated" | "structural" | "revealed";
926
+ claim: string;
927
+ provenance: {
928
+ kind: "code" | "doc" | "intent_checkpoint" | "user_feedback" | "comment" | "inferred";
929
+ ref: string;
930
+ quote?: string | undefined;
931
+ }[];
932
+ }[];
424
933
  request_id: string;
425
934
  question: string;
426
935
  disposition: "interactive" | "finding_only";
427
- answer?: "this_side_wins" | "that_side_wins" | "rewrite_both" | "leave_open" | undefined;
936
+ split?: {
937
+ kind: "two_against_one";
938
+ odd: "stated" | "structural" | "revealed";
939
+ } | {
940
+ kind: "three_way";
941
+ } | undefined;
942
+ subsystem_id?: string | undefined;
943
+ answer?: {
944
+ governs: "stated" | "structural" | "revealed";
945
+ } | "rewrite_all" | "leave_open" | undefined;
428
946
  }>;
429
- export type CharterClarificationRequest = z.infer<typeof CharterClarificationRequestSchema>;
947
+ export type CharterDifferenceQuestion = z.infer<typeof CharterDifferenceQuestionSchema>;
430
948
  //# sourceMappingURL=charter.d.ts.map