audit-tools 0.52.5 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/dist/audit/cli/auditStep.d.ts +1 -1
  2. package/dist/audit/cli/conceptualDispatch.d.ts +2 -2
  3. package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
  4. package/dist/audit/cli/conceptualDispatch.js +6 -5
  5. package/dist/audit/cli/conceptualDispatch.js.map +1 -1
  6. package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
  7. package/dist/audit/cli/confirmIntentStep.js +3 -16
  8. package/dist/audit/cli/confirmIntentStep.js.map +1 -1
  9. package/dist/audit/cli/dispatch/hostHandoff.d.ts +2 -0
  10. package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
  11. package/dist/audit/cli/dispatch/hostHandoff.js +22 -1
  12. package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
  13. package/dist/audit/cli/dispatch/packetFilter.d.ts +1 -1
  14. package/dist/audit/cli/dispatch/packetFilter.d.ts.map +1 -1
  15. package/dist/audit/cli/dispatch/packetFilter.js +1 -1
  16. package/dist/audit/cli/dispatch/packetFilter.js.map +1 -1
  17. package/dist/audit/cli/functionalPreflight.d.ts.map +1 -1
  18. package/dist/audit/cli/functionalPreflight.js +6 -3
  19. package/dist/audit/cli/functionalPreflight.js.map +1 -1
  20. package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
  21. package/dist/audit/cli/nextStepCommand.js +57 -34
  22. package/dist/audit/cli/nextStepCommand.js.map +1 -1
  23. package/dist/audit/cli/nextStepHelpers.d.ts +3 -3
  24. package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
  25. package/dist/audit/cli/nextStepHelpers.js +52 -77
  26. package/dist/audit/cli/nextStepHelpers.js.map +1 -1
  27. package/dist/audit/cli/prompts.d.ts +1 -2
  28. package/dist/audit/cli/prompts.d.ts.map +1 -1
  29. package/dist/audit/cli/prompts.js +2 -12
  30. package/dist/audit/cli/prompts.js.map +1 -1
  31. package/dist/audit/cli/sampleRunCommand.d.ts +2 -2
  32. package/dist/audit/cli/semanticReviewStep.d.ts +11 -2
  33. package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
  34. package/dist/audit/cli/semanticReviewStep.js +14 -10
  35. package/dist/audit/cli/semanticReviewStep.js.map +1 -1
  36. package/dist/audit/contracts/workerSchemas.d.ts +14 -14
  37. package/dist/audit/contracts/wrapperResponse.d.ts +6 -6
  38. package/dist/audit/extractors/graphRoutes.d.ts.map +1 -1
  39. package/dist/audit/extractors/graphRoutes.js +1 -3
  40. package/dist/audit/extractors/graphRoutes.js.map +1 -1
  41. package/dist/audit/io/artifacts.d.ts.map +1 -1
  42. package/dist/audit/io/artifacts.js +2 -3
  43. package/dist/audit/io/artifacts.js.map +1 -1
  44. package/dist/audit/orchestrator/advance.d.ts.map +1 -1
  45. package/dist/audit/orchestrator/advance.js +21 -1
  46. package/dist/audit/orchestrator/advance.js.map +1 -1
  47. package/dist/audit/orchestrator/architectureDiscovery.d.ts +25 -0
  48. package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -0
  49. package/dist/audit/orchestrator/architectureDiscovery.js +193 -0
  50. package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -0
  51. package/dist/audit/orchestrator/dependencyMap.d.ts +20 -0
  52. package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
  53. package/dist/audit/orchestrator/dependencyMap.js +47 -0
  54. package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
  55. package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
  56. package/dist/audit/orchestrator/dependencySlices.js +37 -3
  57. package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
  58. package/dist/audit/orchestrator/designReviewProjection.d.ts +2 -6
  59. package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -1
  60. package/dist/audit/orchestrator/designReviewProjection.js +2 -6
  61. package/dist/audit/orchestrator/designReviewProjection.js.map +1 -1
  62. package/dist/audit/orchestrator/designReviewPrompt.d.ts +2 -2
  63. package/dist/audit/orchestrator/designReviewPrompt.js +2 -2
  64. package/dist/audit/orchestrator/designReviewSnapshot.d.ts +2 -3
  65. package/dist/audit/orchestrator/designReviewSnapshot.d.ts.map +1 -1
  66. package/dist/audit/orchestrator/designReviewSnapshot.js +2 -3
  67. package/dist/audit/orchestrator/designReviewSnapshot.js.map +1 -1
  68. package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
  69. package/dist/audit/orchestrator/executorRunners.js +1 -22
  70. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  71. package/dist/audit/orchestrator/executors.d.ts.map +1 -1
  72. package/dist/audit/orchestrator/executors.js +0 -12
  73. package/dist/audit/orchestrator/executors.js.map +1 -1
  74. package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
  75. package/dist/audit/orchestrator/ingestionExecutors.js +38 -37
  76. package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
  77. package/dist/audit/orchestrator/nextStep.d.ts +2 -28
  78. package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
  79. package/dist/audit/orchestrator/nextStep.js +4 -37
  80. package/dist/audit/orchestrator/nextStep.js.map +1 -1
  81. package/dist/audit/orchestrator/obligationDerive.d.ts +2 -3
  82. package/dist/audit/orchestrator/obligationDerive.d.ts.map +1 -1
  83. package/dist/audit/orchestrator/obligationDerive.js +2 -3
  84. package/dist/audit/orchestrator/obligationDerive.js.map +1 -1
  85. package/dist/audit/orchestrator/pendingTasks.d.ts +2 -0
  86. package/dist/audit/orchestrator/pendingTasks.d.ts.map +1 -1
  87. package/dist/audit/orchestrator/pendingTasks.js +5 -1
  88. package/dist/audit/orchestrator/pendingTasks.js.map +1 -1
  89. package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -1
  90. package/dist/audit/orchestrator/planningExecutors.js +9 -0
  91. package/dist/audit/orchestrator/planningExecutors.js.map +1 -1
  92. package/dist/audit/orchestrator/requeueCommand.d.ts +1 -1
  93. package/dist/audit/orchestrator/resultBaseline.d.ts +5 -5
  94. package/dist/audit/orchestrator/resultBaseline.d.ts.map +1 -1
  95. package/dist/audit/orchestrator/resultBaseline.js +24 -47
  96. package/dist/audit/orchestrator/resultBaseline.js.map +1 -1
  97. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts.map +1 -1
  98. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js +2 -0
  99. package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js.map +1 -1
  100. package/dist/audit/orchestrator/staleness.d.ts.map +1 -1
  101. package/dist/audit/orchestrator/staleness.js +14 -10
  102. package/dist/audit/orchestrator/staleness.js.map +1 -1
  103. package/dist/audit/orchestrator/state.js +1 -1
  104. package/dist/audit/orchestrator/state.js.map +1 -1
  105. package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
  106. package/dist/audit/orchestrator/synthesisExecutors.js +3 -0
  107. package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
  108. package/dist/audit/types/auditState.d.ts +6 -6
  109. package/dist/audit/types/flowCoverage.d.ts +6 -6
  110. package/dist/audit/types.d.ts +24 -13
  111. package/dist/audit/types.d.ts.map +1 -1
  112. package/dist/audit/types.js +92 -11
  113. package/dist/audit/types.js.map +1 -1
  114. package/dist/remediate/contractPipeline/executionPlan.d.ts +1908 -0
  115. package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -0
  116. package/dist/remediate/contractPipeline/executionPlan.js +467 -0
  117. package/dist/remediate/contractPipeline/executionPlan.js.map +1 -0
  118. package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts +12 -0
  119. package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts.map +1 -0
  120. package/dist/remediate/contractPipeline/runtimePlanAuthority.js +41 -0
  121. package/dist/remediate/contractPipeline/runtimePlanAuthority.js.map +1 -0
  122. package/dist/remediate/dedup/crossLensDedup.d.ts +3 -16
  123. package/dist/remediate/dedup/crossLensDedup.d.ts.map +1 -1
  124. package/dist/remediate/dedup/crossLensDedup.js +2 -32
  125. package/dist/remediate/dedup/crossLensDedup.js.map +1 -1
  126. package/dist/remediate/index.d.ts +2 -19
  127. package/dist/remediate/index.d.ts.map +1 -1
  128. package/dist/remediate/index.js +22 -138
  129. package/dist/remediate/index.js.map +1 -1
  130. package/dist/remediate/intake.d.ts +10 -10
  131. package/dist/remediate/intent/intentOrdering.d.ts +6 -8
  132. package/dist/remediate/intent/intentOrdering.d.ts.map +1 -1
  133. package/dist/remediate/intent/intentOrdering.js +24 -47
  134. package/dist/remediate/intent/intentOrdering.js.map +1 -1
  135. package/dist/remediate/phases/close.d.ts +25 -17
  136. package/dist/remediate/phases/close.d.ts.map +1 -1
  137. package/dist/remediate/phases/close.js +278 -218
  138. package/dist/remediate/phases/close.js.map +1 -1
  139. package/dist/remediate/phases/closeAcceptance.d.ts +42 -0
  140. package/dist/remediate/phases/closeAcceptance.d.ts.map +1 -0
  141. package/dist/remediate/phases/closeAcceptance.js +66 -0
  142. package/dist/remediate/phases/closeAcceptance.js.map +1 -0
  143. package/dist/remediate/phases/closeReviewProvenance.d.ts +1 -1
  144. package/dist/remediate/phases/closeReviewProvenance.d.ts.map +1 -1
  145. package/dist/remediate/phases/closeReviewProvenance.js +9 -8
  146. package/dist/remediate/phases/closeReviewProvenance.js.map +1 -1
  147. package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
  148. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +11 -9
  149. package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
  150. package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts +21 -86
  151. package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts.map +1 -1
  152. package/dist/remediate/phases/closeVerifyHeadEvidence.js +30 -19
  153. package/dist/remediate/phases/closeVerifyHeadEvidence.js.map +1 -1
  154. package/dist/remediate/phases/plan.d.ts +3 -60
  155. package/dist/remediate/phases/plan.d.ts.map +1 -1
  156. package/dist/remediate/phases/plan.js +3 -227
  157. package/dist/remediate/phases/plan.js.map +1 -1
  158. package/dist/remediate/phases/triage.d.ts.map +1 -1
  159. package/dist/remediate/phases/triage.js +19 -30
  160. package/dist/remediate/phases/triage.js.map +1 -1
  161. package/dist/remediate/riskSignal.d.ts +9 -43
  162. package/dist/remediate/riskSignal.d.ts.map +1 -1
  163. package/dist/remediate/riskSignal.js +7 -28
  164. package/dist/remediate/riskSignal.js.map +1 -1
  165. package/dist/remediate/state/disposition.d.ts +2 -1
  166. package/dist/remediate/state/disposition.d.ts.map +1 -1
  167. package/dist/remediate/state/disposition.js +37 -1
  168. package/dist/remediate/state/disposition.js.map +1 -1
  169. package/dist/remediate/state/runIdentity.d.ts +2 -13
  170. package/dist/remediate/state/runIdentity.d.ts.map +1 -1
  171. package/dist/remediate/state/runIdentity.js +3 -13
  172. package/dist/remediate/state/runIdentity.js.map +1 -1
  173. package/dist/remediate/state/store.d.ts +12 -36
  174. package/dist/remediate/state/store.d.ts.map +1 -1
  175. package/dist/remediate/state/store.js +58 -150
  176. package/dist/remediate/state/store.js.map +1 -1
  177. package/dist/remediate/state/types.d.ts +406 -504
  178. package/dist/remediate/state/types.d.ts.map +1 -1
  179. package/dist/remediate/state/types.js +24 -104
  180. package/dist/remediate/state/types.js.map +1 -1
  181. package/dist/remediate/steps/contractPipeline.d.ts +7 -661
  182. package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
  183. package/dist/remediate/steps/contractPipeline.js +264 -3851
  184. package/dist/remediate/steps/contractPipeline.js.map +1 -1
  185. package/dist/remediate/steps/contractPipelinePrompts.d.ts +20 -142
  186. package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
  187. package/dist/remediate/steps/contractPipelinePrompts.js +48 -581
  188. package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
  189. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +4 -1
  190. package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts.map +1 -1
  191. package/dist/remediate/steps/dispatch/contractConformanceReview.js +6 -3
  192. package/dist/remediate/steps/dispatch/contractConformanceReview.js.map +1 -1
  193. package/dist/remediate/steps/dispatch/hostContracts.d.ts +1 -1
  194. package/dist/remediate/steps/dispatch/hostContracts.d.ts.map +1 -1
  195. package/dist/remediate/steps/dispatch/hostHandoff.d.ts +4 -21
  196. package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -1
  197. package/dist/remediate/steps/dispatch/hostHandoff.js +161 -383
  198. package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -1
  199. package/dist/remediate/steps/finalGate.d.ts +34 -0
  200. package/dist/remediate/steps/finalGate.d.ts.map +1 -1
  201. package/dist/remediate/steps/finalGate.js +44 -4
  202. package/dist/remediate/steps/finalGate.js.map +1 -1
  203. package/dist/remediate/steps/frictionCloseout.d.ts +1 -30
  204. package/dist/remediate/steps/frictionCloseout.d.ts.map +1 -1
  205. package/dist/remediate/steps/frictionCloseout.js +6 -99
  206. package/dist/remediate/steps/frictionCloseout.js.map +1 -1
  207. package/dist/remediate/steps/nextStep.d.ts +2 -15
  208. package/dist/remediate/steps/nextStep.d.ts.map +1 -1
  209. package/dist/remediate/steps/nextStep.js +254 -1042
  210. package/dist/remediate/steps/nextStep.js.map +1 -1
  211. package/dist/remediate/steps/prompts.js +16 -16
  212. package/dist/remediate/steps/prompts.js.map +1 -1
  213. package/dist/remediate/steps/stepUtils.d.ts +1 -1
  214. package/dist/remediate/steps/stepUtils.d.ts.map +1 -1
  215. package/dist/remediate/steps/types.d.ts +1 -1
  216. package/dist/remediate/steps/types.d.ts.map +1 -1
  217. package/dist/remediate/steps/types.js +1 -1
  218. package/dist/remediate/steps/types.js.map +1 -1
  219. package/dist/remediate/types/options.d.ts +9 -0
  220. package/dist/remediate/types/options.d.ts.map +1 -1
  221. package/dist/remediate/validation/artifacts.d.ts.map +1 -1
  222. package/dist/remediate/validation/artifacts.js +10 -56
  223. package/dist/remediate/validation/artifacts.js.map +1 -1
  224. package/dist/remediate/validation/remediationState.d.ts +2 -2
  225. package/dist/remediate/validation/remediationState.d.ts.map +1 -1
  226. package/dist/remediate/validation/remediationState.js +17 -77
  227. package/dist/remediate/validation/remediationState.js.map +1 -1
  228. package/dist/remediate/validation/verificationReport.d.ts +3 -0
  229. package/dist/remediate/validation/verificationReport.d.ts.map +1 -0
  230. package/dist/remediate/validation/verificationReport.js +28 -0
  231. package/dist/remediate/validation/verificationReport.js.map +1 -0
  232. package/dist/shared/analyzers/types.d.ts +10 -10
  233. package/dist/shared/engine/obligationEngine.d.ts +2 -2
  234. package/dist/shared/friction/triage.d.ts +7 -28
  235. package/dist/shared/friction/triage.d.ts.map +1 -1
  236. package/dist/shared/friction/triage.js +7 -28
  237. package/dist/shared/friction/triage.js.map +1 -1
  238. package/dist/shared/graph/orderedReachability.js +1 -1
  239. package/dist/shared/graph/orderedReachability.js.map +1 -1
  240. package/dist/shared/index.d.ts +5 -6
  241. package/dist/shared/index.d.ts.map +1 -1
  242. package/dist/shared/index.js +3 -4
  243. package/dist/shared/index.js.map +1 -1
  244. package/dist/shared/loopCorePaths.d.ts.map +1 -1
  245. package/dist/shared/loopCorePaths.js +37 -5
  246. package/dist/shared/loopCorePaths.js.map +1 -1
  247. package/dist/shared/prompts.d.ts +24 -10
  248. package/dist/shared/prompts.d.ts.map +1 -1
  249. package/dist/shared/prompts.js +27 -13
  250. package/dist/shared/prompts.js.map +1 -1
  251. package/dist/shared/reReview/projectionDiff.d.ts.map +1 -1
  252. package/dist/shared/reReview/projectionDiff.js +6 -14
  253. package/dist/shared/reReview/projectionDiff.js.map +1 -1
  254. package/dist/shared/types/executionPlan.d.ts +416 -0
  255. package/dist/shared/types/executionPlan.d.ts.map +1 -0
  256. package/dist/shared/types/executionPlan.js +132 -0
  257. package/dist/shared/types/executionPlan.js.map +1 -0
  258. package/dist/shared/types/remediationOutcome.d.ts +1378 -12
  259. package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
  260. package/dist/shared/types/remediationOutcome.js +29 -1
  261. package/dist/shared/types/remediationOutcome.js.map +1 -1
  262. package/dist/shared/types/{contractPipeline/verification.d.ts → verificationReport.d.ts} +9 -37
  263. package/dist/shared/types/verificationReport.d.ts.map +1 -0
  264. package/dist/shared/types/verificationReport.js +4 -0
  265. package/dist/shared/types/verificationReport.js.map +1 -0
  266. package/dist/shared/validation/findingGrounding.d.ts +3 -5
  267. package/dist/shared/validation/findingGrounding.d.ts.map +1 -1
  268. package/dist/shared/validation/findingGrounding.js +4 -7
  269. package/dist/shared/validation/findingGrounding.js.map +1 -1
  270. package/package.json +2 -1
  271. package/scripts/shared/primitives.mjs +20 -0
  272. package/skills/audit-code/SKILL.md +5 -12
  273. package/skills/audit-code/audit-code.prompt.md +5 -8
  274. package/skills/audit-code/opencode-command-template.txt +2 -2
  275. package/skills/remediate-code/SKILL.md +5 -7
  276. package/skills/remediate-code/remediate-code.prompt.md +5 -5
  277. package/dispatch/lens-definitions.json +0 -46
  278. package/dist/remediate/contractPipeline/artifactNames.d.ts +0 -8
  279. package/dist/remediate/contractPipeline/artifactNames.d.ts.map +0 -1
  280. package/dist/remediate/contractPipeline/artifactNames.js +0 -28
  281. package/dist/remediate/contractPipeline/artifactNames.js.map +0 -1
  282. package/dist/remediate/contractPipeline/artifactStore.d.ts +0 -219
  283. package/dist/remediate/contractPipeline/artifactStore.d.ts.map +0 -1
  284. package/dist/remediate/contractPipeline/artifactStore.js +0 -436
  285. package/dist/remediate/contractPipeline/artifactStore.js.map +0 -1
  286. package/dist/remediate/contractPipeline/changeClassification.d.ts +0 -130
  287. package/dist/remediate/contractPipeline/changeClassification.d.ts.map +0 -1
  288. package/dist/remediate/contractPipeline/changeClassification.js +0 -446
  289. package/dist/remediate/contractPipeline/changeClassification.js.map +0 -1
  290. package/dist/remediate/contractPipeline/contractReviewBinding.d.ts +0 -28
  291. package/dist/remediate/contractPipeline/contractReviewBinding.d.ts.map +0 -1
  292. package/dist/remediate/contractPipeline/contractReviewBinding.js +0 -75
  293. package/dist/remediate/contractPipeline/contractReviewBinding.js.map +0 -1
  294. package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts +0 -27
  295. package/dist/remediate/contractPipeline/counterexampleFingerprint.d.ts.map +0 -1
  296. package/dist/remediate/contractPipeline/counterexampleFingerprint.js +0 -37
  297. package/dist/remediate/contractPipeline/counterexampleFingerprint.js.map +0 -1
  298. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts +0 -131
  299. package/dist/remediate/contractPipeline/cyclicSeamResolution.d.ts.map +0 -1
  300. package/dist/remediate/contractPipeline/cyclicSeamResolution.js +0 -257
  301. package/dist/remediate/contractPipeline/cyclicSeamResolution.js.map +0 -1
  302. package/dist/remediate/contractPipeline/derive.d.ts +0 -173
  303. package/dist/remediate/contractPipeline/derive.d.ts.map +0 -1
  304. package/dist/remediate/contractPipeline/derive.js +0 -477
  305. package/dist/remediate/contractPipeline/derive.js.map +0 -1
  306. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts +0 -50
  307. package/dist/remediate/contractPipeline/finalizedContractFields.d.ts.map +0 -1
  308. package/dist/remediate/contractPipeline/finalizedContractFields.js +0 -77
  309. package/dist/remediate/contractPipeline/finalizedContractFields.js.map +0 -1
  310. package/dist/remediate/contractPipeline/idRegistry.d.ts +0 -144
  311. package/dist/remediate/contractPipeline/idRegistry.d.ts.map +0 -1
  312. package/dist/remediate/contractPipeline/idRegistry.js +0 -214
  313. package/dist/remediate/contractPipeline/idRegistry.js.map +0 -1
  314. package/dist/remediate/contractPipeline/obligationKinds.d.ts +0 -27
  315. package/dist/remediate/contractPipeline/obligationKinds.d.ts.map +0 -1
  316. package/dist/remediate/contractPipeline/obligationKinds.js +0 -18
  317. package/dist/remediate/contractPipeline/obligationKinds.js.map +0 -1
  318. package/dist/remediate/contractPipeline/phaseCut.d.ts +0 -125
  319. package/dist/remediate/contractPipeline/phaseCut.d.ts.map +0 -1
  320. package/dist/remediate/contractPipeline/phaseCut.js +0 -339
  321. package/dist/remediate/contractPipeline/phaseCut.js.map +0 -1
  322. package/dist/remediate/contractPipeline/phaseCutArtifact.d.ts +0 -31
  323. package/dist/remediate/contractPipeline/phaseCutArtifact.d.ts.map +0 -1
  324. package/dist/remediate/contractPipeline/phaseCutArtifact.js +0 -48
  325. package/dist/remediate/contractPipeline/phaseCutArtifact.js.map +0 -1
  326. package/dist/remediate/contractPipeline/repairState.d.ts +0 -110
  327. package/dist/remediate/contractPipeline/repairState.d.ts.map +0 -1
  328. package/dist/remediate/contractPipeline/repairState.js +0 -185
  329. package/dist/remediate/contractPipeline/repairState.js.map +0 -1
  330. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts +0 -79
  331. package/dist/remediate/contractPipeline/reviewSnapshot.d.ts.map +0 -1
  332. package/dist/remediate/contractPipeline/reviewSnapshot.js +0 -140
  333. package/dist/remediate/contractPipeline/reviewSnapshot.js.map +0 -1
  334. package/dist/remediate/contractPipeline/semanticProjection.d.ts +0 -64
  335. package/dist/remediate/contractPipeline/semanticProjection.d.ts.map +0 -1
  336. package/dist/remediate/contractPipeline/semanticProjection.js +0 -136
  337. package/dist/remediate/contractPipeline/semanticProjection.js.map +0 -1
  338. package/dist/remediate/contractPipeline/sketchSource.d.ts +0 -194
  339. package/dist/remediate/contractPipeline/sketchSource.d.ts.map +0 -1
  340. package/dist/remediate/contractPipeline/sketchSource.js +0 -262
  341. package/dist/remediate/contractPipeline/sketchSource.js.map +0 -1
  342. package/dist/remediate/contractPipeline/testPlanCarry.d.ts +0 -17
  343. package/dist/remediate/contractPipeline/testPlanCarry.d.ts.map +0 -1
  344. package/dist/remediate/contractPipeline/testPlanCarry.js +0 -72
  345. package/dist/remediate/contractPipeline/testPlanCarry.js.map +0 -1
  346. package/dist/remediate/steps/dispatch/marshal.d.ts +0 -7
  347. package/dist/remediate/steps/dispatch/marshal.d.ts.map +0 -1
  348. package/dist/remediate/steps/dispatch/marshal.js +0 -11
  349. package/dist/remediate/steps/dispatch/marshal.js.map +0 -1
  350. package/dist/remediate/validation/contractPipeline.d.ts +0 -35
  351. package/dist/remediate/validation/contractPipeline.d.ts.map +0 -1
  352. package/dist/remediate/validation/contractPipeline.js +0 -613
  353. package/dist/remediate/validation/contractPipeline.js.map +0 -1
  354. package/dist/remediate/validation/contractPipelineGates.d.ts +0 -272
  355. package/dist/remediate/validation/contractPipelineGates.d.ts.map +0 -1
  356. package/dist/remediate/validation/contractPipelineGates.js +0 -1397
  357. package/dist/remediate/validation/contractPipelineGates.js.map +0 -1
  358. package/dist/shared/types/contractPipeline/design.d.ts +0 -79
  359. package/dist/shared/types/contractPipeline/design.d.ts.map +0 -1
  360. package/dist/shared/types/contractPipeline/design.js +0 -16
  361. package/dist/shared/types/contractPipeline/design.js.map +0 -1
  362. package/dist/shared/types/contractPipeline/goal.d.ts +0 -41
  363. package/dist/shared/types/contractPipeline/goal.d.ts.map +0 -1
  364. package/dist/shared/types/contractPipeline/goal.js +0 -10
  365. package/dist/shared/types/contractPipeline/goal.js.map +0 -1
  366. package/dist/shared/types/contractPipeline/implementation.d.ts +0 -118
  367. package/dist/shared/types/contractPipeline/implementation.d.ts.map +0 -1
  368. package/dist/shared/types/contractPipeline/implementation.js +0 -13
  369. package/dist/shared/types/contractPipeline/implementation.js.map +0 -1
  370. package/dist/shared/types/contractPipeline/obligations.d.ts +0 -283
  371. package/dist/shared/types/contractPipeline/obligations.d.ts.map +0 -1
  372. package/dist/shared/types/contractPipeline/obligations.js +0 -84
  373. package/dist/shared/types/contractPipeline/obligations.js.map +0 -1
  374. package/dist/shared/types/contractPipeline/verification.d.ts.map +0 -1
  375. package/dist/shared/types/contractPipeline/verification.js +0 -10
  376. package/dist/shared/types/contractPipeline/verification.js.map +0 -1
  377. package/dist/shared/types/contractPipeline.d.ts +0 -48
  378. package/dist/shared/types/contractPipeline.d.ts.map +0 -1
  379. package/dist/shared/types/contractPipeline.js +0 -32
  380. package/dist/shared/types/contractPipeline.js.map +0 -1
  381. package/dist/shared/types/obligationLedger.d.ts +0 -39
  382. package/dist/shared/types/obligationLedger.d.ts.map +0 -1
  383. package/dist/shared/types/obligationLedger.js +0 -49
  384. package/dist/shared/types/obligationLedger.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"derive.js","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/derive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,YAAY,GAGb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,GAE/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qCAAqC,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAanF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,sBAAsB,CACpC,wBAAiC,EACjC,UAAyB,EAAE;IAE3B,MAAM,SAAS,GAAG,sBAAsB,CAAC,wBAAwB,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,MAAM,WAAW,GAAsB,EAAE,CAAC;IAE1C,8EAA8E;IAC9E,+EAA+E;IAC/E,wEAAwE;IACxE,+EAA+E;IAC/E,wDAAwD;IACxD,MAAM,eAAe,GAAG,yBAAyB,CAAC,wBAAwB,CAAC,CAAC;IAE5E,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,gBAAgB,EAAE,CAAC;QAE7C,uEAAuE;QACvE,yEAAyE;QACzE,WAAW,CAA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AM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACvD,CAAC,CAAC,MAAM,CAAC,gBAAgB;QACzB,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,gBAAgB,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAA2B,EAAE;QACrE,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC,WAAW,CACvB,6BAA6B,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;YAC3C,KAAK;YACL,gCAAgC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;SAC7C,CAAC,CACmC,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;AAC/C,CAAC"}
@@ -1,50 +0,0 @@
1
- /**
2
- * Fields finalization COPIES VERBATIM from the drafted module contract, in
3
- * canonical order. This is the load-bearing interface: `deriveObligationLedger`
4
- * derives the obligation set and test-plan premises from it, and
5
- * `buildBaselineSymbolCorpus` (`changeClassification.ts`) builds the
6
- * change-vs-addition corpus from the declared surface — `inputs`, `outputs`,
7
- * `side_effects`, `validation_boundary` — so a side_effects-only edit is
8
- * exactly as load-bearing as an interface edit.
9
- */
10
- export declare const COPIED_MODULE_CONTRACT_FIELDS: readonly ["name", "inputs", "outputs", "invariants", "side_effects", "validation_boundary", "failure_modes"];
11
- /**
12
- * Fields finalization DERIVES from the seam reconciliation report rather than
13
- * copying. Excluded from the staleness projection: a re-agreed seam is not a
14
- * change to the interface any downstream consumes.
15
- */
16
- export declare const DERIVED_MODULE_CONTRACT_FIELDS: readonly ["seam_adjustments"];
17
- /**
18
- * Every field a finalized module contract carries — copied first, derived
19
- * second. The finalizer builds exactly this key set, and the reader reads
20
- * exactly this key set; they are two draws over one list rather than two
21
- * lists that happen to agree.
22
- */
23
- export declare const FINALIZED_MODULE_CONTRACT_FIELDS: readonly string[];
24
- /**
25
- * The fields the staleness projection narrows a module entry to — the COPIED
26
- * set alone (see this module's header for why `seam_adjustments` is excluded).
27
- * Exported under the name `semanticProjection.ts` already used, so the
28
- * projection reads the shared vocabulary instead of owning a third copy.
29
- */
30
- export declare const DERIVABLE_MODULE_CONTRACT_FIELDS: readonly string[];
31
- /**
32
- * The runtime shape of a finalized module entry as the deterministic derivers
33
- * read it — `name` is required and always a string; the array fields are read
34
- * through a defensive `string[]` coercion; `validation_boundary` is a string.
35
- * `seam_adjustments` is deliberately absent: no deriver reads it.
36
- *
37
- * The field NAMES here are the compiler-checked twin of
38
- * {@link COPIED_MODULE_CONTRACT_FIELDS}; the `satisfies` clause below is what
39
- * keeps the two from drifting, which is the whole point of this module.
40
- */
41
- export interface DerivableModuleContract {
42
- name: string;
43
- inputs: string[];
44
- outputs: string[];
45
- invariants: string[];
46
- failure_modes: string[];
47
- side_effects: string[];
48
- validation_boundary: string;
49
- }
50
- //# sourceMappingURL=finalizedContractFields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"finalizedContractFields.d.ts","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/finalizedContractFields.ts"],"names":[],"mappings":"AA8BA;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,8GAQhC,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,+BAAgC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,SAAS,MAAM,EAGtC,CAAC;AAEzB;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,SAAS,MAAM,EAE7D,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
@@ -1,77 +0,0 @@
1
- /**
2
- * The ONE field vocabulary of a module contract, at both layers.
3
- *
4
- * A module contract's shape was spelled out by hand in THREE places: the
5
- * finalizer's object literal (`derive.ts`, `deriveFinalizedModuleContracts`),
6
- * the defensive reader's field-by-field narrowing (`derive.ts`,
7
- * `readFinalizedContracts`), and the staleness projection's narrowing
8
- * (`semanticProjection.ts`, `DERIVABLE_MODULE_CONTRACT_FIELDS`). They had
9
- * already drifted — the finalizer wrote eight fields, the reader read seven,
10
- * and nothing made the difference (`seam_adjustments`, which finalization
11
- * DERIVES and no deterministic consumer reads) legible as intentional rather
12
- * than as a dropped field. A field added to the finalizer and forgotten in the
13
- * reader is a silent narrowing of everything downstream of the ledger.
14
- *
15
- * The vocabulary is therefore stated once, here, beside the finalizer that
16
- * writes it — with the two DISTINCTIONS the three copies were groping at made
17
- * explicit, because they are real:
18
- *
19
- * - {@link COPIED_MODULE_CONTRACT_FIELDS} are copied verbatim from the drafted
20
- * contract. They are the load-bearing interface, and they are what a
21
- * deterministic consumer may read.
22
- * - {@link DERIVED_MODULE_CONTRACT_FIELDS} are computed by finalization from
23
- * the seam reconciliation report. No deterministic consumer reads them, so
24
- * they are excluded from the staleness projection — a re-agreed seam
25
- * changes `seam_adjustments` without changing any obligation.
26
- *
27
- * Anything that must know a module contract's field set reads it from here.
28
- */
29
- import { compareCodeUnits } from "../../shared/compareCodeUnits.js";
30
- /**
31
- * Fields finalization COPIES VERBATIM from the drafted module contract, in
32
- * canonical order. This is the load-bearing interface: `deriveObligationLedger`
33
- * derives the obligation set and test-plan premises from it, and
34
- * `buildBaselineSymbolCorpus` (`changeClassification.ts`) builds the
35
- * change-vs-addition corpus from the declared surface — `inputs`, `outputs`,
36
- * `side_effects`, `validation_boundary` — so a side_effects-only edit is
37
- * exactly as load-bearing as an interface edit.
38
- */
39
- export const COPIED_MODULE_CONTRACT_FIELDS = [
40
- "name",
41
- "inputs",
42
- "outputs",
43
- "invariants",
44
- "side_effects",
45
- "validation_boundary",
46
- "failure_modes",
47
- ];
48
- /**
49
- * Fields finalization DERIVES from the seam reconciliation report rather than
50
- * copying. Excluded from the staleness projection: a re-agreed seam is not a
51
- * change to the interface any downstream consumes.
52
- */
53
- export const DERIVED_MODULE_CONTRACT_FIELDS = ["seam_adjustments"];
54
- /**
55
- * Every field a finalized module contract carries — copied first, derived
56
- * second. The finalizer builds exactly this key set, and the reader reads
57
- * exactly this key set; they are two draws over one list rather than two
58
- * lists that happen to agree.
59
- */
60
- export const FINALIZED_MODULE_CONTRACT_FIELDS = [
61
- ...COPIED_MODULE_CONTRACT_FIELDS,
62
- ...DERIVED_MODULE_CONTRACT_FIELDS,
63
- ].sort(compareCodeUnits);
64
- /**
65
- * The fields the staleness projection narrows a module entry to — the COPIED
66
- * set alone (see this module's header for why `seam_adjustments` is excluded).
67
- * Exported under the name `semanticProjection.ts` already used, so the
68
- * projection reads the shared vocabulary instead of owning a third copy.
69
- */
70
- export const DERIVABLE_MODULE_CONTRACT_FIELDS = [
71
- ...COPIED_MODULE_CONTRACT_FIELDS,
72
- ];
73
- const _everyListedFieldIsTyped = true;
74
- const _everyTypedFieldIsListed = true;
75
- void _everyListedFieldIsTyped;
76
- void _everyTypedFieldIsListed;
77
- //# sourceMappingURL=finalizedContractFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"finalizedContractFields.js","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/finalizedContractFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,MAAM;IACN,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,cAAc;IACd,qBAAqB;IACrB,eAAe;CACP,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,kBAAkB,CAAU,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAsB;IACjE,GAAG,6BAA6B;IAChC,GAAG,8BAA8B;CAClC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAsB;IACjE,GAAG,6BAA6B;CACjC,CAAC;AAoCF,MAAM,wBAAwB,GAAmD,IAAI,CAAC;AACtF,MAAM,wBAAwB,GAAmD,IAAI,CAAC;AACtF,KAAK,wBAAwB,CAAC;AAC9B,KAAK,wBAAwB,CAAC"}
@@ -1,144 +0,0 @@
1
- /**
2
- * Single tool-owned authority for the contract-pipeline's id relationships
3
- * (S4 of the contract-authoring determinism design).
4
- *
5
- * Its block-id relationship caused the recurring "Unknown
6
- * finding_id" merge trap: the one-way bare-node-id to `CP-BLOCK-` block-id mint.
7
- * Before this module the prefix was constructed by inline string templates at
8
- * several sites (the DAG->plan promotion built it for both node block ids AND
9
- * dependency edges; the dispatch alias map built it again). With the node id and
10
- * prefix minted in exactly ONE place each, dispatch and merge consume the same
11
- * persisted identity without a reverse-mapping API.
12
- *
13
- * The block-id API is intentionally one-way: callers consume the persisted id
14
- * minted by `toBlockId` rather than reverse-mapping it.
15
- * It is a pure module — no IO, no model identity — so it is testable in
16
- * isolation and feeds the hash/staleness DAG cleanly.
17
- */
18
- /** The one prefix that marks a dispatch block id derived from a DAG node id. */
19
- export declare const CP_BLOCK_PREFIX = "CP-BLOCK-";
20
- /**
21
- * Mint the canonical bare node id for a DAG node, applying the deterministic
22
- * `CP-NNN` fallback when the planner-authored `node.id` is missing (the DAG is
23
- * parsed from an LLM envelope via an unchecked cast, so `id` can be absent at
24
- * runtime). This is the ONE place the fallback rule lives, so a node's finding
25
- * id, block id, `items`, and traceability key can never diverge.
26
- *
27
- * This closes a merge-trap: when `node.id` was missing, the finding id used this
28
- * fallback (`CP-001`) but the block id was built from the raw `node.id`
29
- * (`CP-BLOCK-undefined`), so the worker result landed in `unresolved`. Routing
30
- * every node-id site through `ensureNodeId` keeps the finding and block mints
31
- * aligned.
32
- */
33
- export declare function ensureNodeId(rawId: string | undefined, index: number): string;
34
- /**
35
- * Mint the block id for a bare DAG node id. This is the ONLY place the
36
- * `CP-BLOCK-` prefix is applied — every producer of a block id goes through here.
37
- */
38
- export declare function toBlockId(nodeId: string): string;
39
- /** The one prefix every derived obligation id carries. */
40
- export declare const OBLIGATION_PREFIX = "OBL-";
41
- /**
42
- * Lowercase-hyphenate a module name into the id fragment obligation ids encode.
43
- *
44
- * The ENCODER (`derive.ts`, minting `OBL-<slug>-…`) and the DECODERS (phase
45
- * resolution, write-scope inheritance) must agree exactly, or an obligation
46
- * resolves to no module and its node silently loses its phase and file scope.
47
- * They previously agreed by way of two identical implementations and a comment
48
- * saying they must stay in lockstep — a drift test made of memory. One
49
- * implementation, here with the rest of the id authority, cannot drift.
50
- */
51
- export declare function moduleSlug(name: string): string;
52
- /**
53
- * Mint a derived obligation id from a module name and a suffix — the ONLY place
54
- * the `OBL-<slug>-<suffix>` shape is applied, so the decoders above are matching
55
- * a format with a single author. Callers still pass the result through
56
- * `mintUniqueId` for collision disambiguation.
57
- */
58
- export declare function obligationId(moduleName: string, suffix: string): string;
59
- /**
60
- * The ONE exact join from a derived obligation id back to its module slug, or
61
- * `null` when the id carries no obligation prefix or its body is not
62
- * `<knownSlug>-<grammaticalSuffix>`.
63
- *
64
- * `knownSlugs` MUST be the module slugs in scope; the match is exact, so the
65
- * caller need not pre-sort them (the previous longest-first sort existed only
66
- * to arbitrate the prefix ambiguity this rule removes).
67
- */
68
- export declare function moduleSlugForObligationId(id: string, knownSlugs: ReadonlySet<string>): string | null;
69
- /**
70
- * The one shape a contract-pipeline `goal_id` may take.
71
- *
72
- * Why a grammar at all. `goal_id` is the identity JOINING fifteen artifacts —
73
- * `deriveFinalizedModuleContracts` carries it onto the finalized contracts,
74
- * `deriveObligationLedger` onto the ledger, `contract_goal_id` onto every
75
- * promoted finding, and `validateGoalIdConsistency` reds the run when two
76
- * artifacts disagree. It is the ONE id in this pipeline minted by the LLM
77
- * rather than by the tool (`goal_normalization` is its sole origin), and its
78
- * entire specification the model ever saw was the prompt placeholder
79
- * `<stable-identifier>`. So the format was whatever the model happened to emit:
80
- * observed values in this repo include `G1`, `GOAL-001`, `goal-abc`, `g`,
81
- * `goal-test`, and `goal-self-audit-2026-08-21-first-draw`.
82
- *
83
- * That matters because an unvalidated identity is not an identity. `goal_id`
84
- * becomes a path/plan-row join and a consistency key, and the entry's own
85
- * recorded incident is two artifacts authored in one run under `goal-test` and
86
- * `g` (audit finding MNT-4829db27-3) — a mismatch only the equality gate
87
- * catches, and only when both are present.
88
- *
89
- * The rule: a lowercase alphanumeric slug, hyphen-separated, starting with a
90
- * letter, between 1 and 64 characters. Deliberately PERMISSIVE about content —
91
- * a goal id is an opaque handle, and the model is free to name the goal
92
- * meaningfully — but STRICT about shape, so an empty string, a placeholder left
93
- * unsubstituted (`<stable-identifier>`), or a free-text sentence is refused on
94
- * the way in.
95
- *
96
- * A single-token id (`g`, `g1`, `auth`) is deliberately ADMITTED despite being
97
- * a poor name: the grammar's job is to refuse a non-identity, not to grade one,
98
- * and the alternative — requiring a hyphen — would retroactively invalidate ids
99
- * already persisted by real runs. The property the entry asks for is "minted by
100
- * the registry OR validated on the way in", and validation that rejects
101
- * everything already in the wild is a migration, not a validation.
102
- *
103
- * Kept here, beside the obligation/node/block mints, for the reason this
104
- * module's header gives: a grammar only one side knows is a drift test made of
105
- * memory. `derive.ts` validates on the way in; `validation/contractPipeline.ts`
106
- * and the consistency gate read the same predicate.
107
- */
108
- export declare const GOAL_ID_PATTERN: RegExp;
109
- /** The longest goal id the grammar admits. */
110
- export declare const GOAL_ID_MAX_LENGTH = 64;
111
- /**
112
- * Whether `value` is a well-formed goal id. The ONE home for the question; a
113
- * caller that re-spells the regex has forked the grammar.
114
- */
115
- export declare function isGoalId(value: unknown): value is string;
116
- /**
117
- * Coerce a host-supplied `goal_id` to a well-formed one, or return the empty
118
- * string when it cannot be repaired.
119
- *
120
- * Lowercases and slugifies rather than rejecting outright, because the LLM is
121
- * the producer and a near-miss (`Goal-001`, `goal_001`, `Goal 1`) is the
122
- * expected input shape — refusing it would strand the pipeline on a
123
- * formatting detail. What it will NOT do is invent an id from nothing: an
124
- * absent or placeholder value yields `""`, and every reader's existing
125
- * empty-string handling stays the signal that no goal id was established.
126
- * Deterministic: the same input always yields the same id.
127
- *
128
- * Case-folding is load-bearing, not cosmetic. `validateGoalIdConsistency`
129
- * compares ids for EXACT string equality and reds the run on any difference, so
130
- * under the previous verbatim read two shards that each wrote `Goal-1` and
131
- * `goal-1` for the same goal would fail the gate — and the failure would name a
132
- * mismatch where no disagreement exists. Folding on the way in makes the gate's
133
- * strict comparison mean what it says.
134
- *
135
- * The placeholder guard is not decoration. Slugifying alone would turn the
136
- * prompt's own placeholder `<stable-identifier>` into the well-formed-looking
137
- * `stable-identifier` — MANUFACTURING an identity out of a failure to
138
- * substitute one, which is strictly worse than the verbatim read it replaces
139
- * (that at least kept the angle brackets, so a human could see it). A value
140
- * that is not already slug-shaped once whitespace is trimmed is a value the
141
- * model did not mean as an id, so it yields `""` rather than a plausible slug.
142
- */
143
- export declare function coerceGoalId(value: unknown): string;
144
- //# sourceMappingURL=idRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"idRegistry.d.ts","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/idRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,gFAAgF;AAChF,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,KAAK,EAAE,MAAM,GACZ,MAAM,CAER;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE;AA8BD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,MAAM,GAAG,IAAI,CAUf;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,eAAe,QAAqC,CAAC;AAElE,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAOxD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAgBnD"}
@@ -1,214 +0,0 @@
1
- /**
2
- * Single tool-owned authority for the contract-pipeline's id relationships
3
- * (S4 of the contract-authoring determinism design).
4
- *
5
- * Its block-id relationship caused the recurring "Unknown
6
- * finding_id" merge trap: the one-way bare-node-id to `CP-BLOCK-` block-id mint.
7
- * Before this module the prefix was constructed by inline string templates at
8
- * several sites (the DAG->plan promotion built it for both node block ids AND
9
- * dependency edges; the dispatch alias map built it again). With the node id and
10
- * prefix minted in exactly ONE place each, dispatch and merge consume the same
11
- * persisted identity without a reverse-mapping API.
12
- *
13
- * The block-id API is intentionally one-way: callers consume the persisted id
14
- * minted by `toBlockId` rather than reverse-mapping it.
15
- * It is a pure module — no IO, no model identity — so it is testable in
16
- * isolation and feeds the hash/staleness DAG cleanly.
17
- */
18
- /** The one prefix that marks a dispatch block id derived from a DAG node id. */
19
- export const CP_BLOCK_PREFIX = "CP-BLOCK-";
20
- /**
21
- * Mint the canonical bare node id for a DAG node, applying the deterministic
22
- * `CP-NNN` fallback when the planner-authored `node.id` is missing (the DAG is
23
- * parsed from an LLM envelope via an unchecked cast, so `id` can be absent at
24
- * runtime). This is the ONE place the fallback rule lives, so a node's finding
25
- * id, block id, `items`, and traceability key can never diverge.
26
- *
27
- * This closes a merge-trap: when `node.id` was missing, the finding id used this
28
- * fallback (`CP-001`) but the block id was built from the raw `node.id`
29
- * (`CP-BLOCK-undefined`), so the worker result landed in `unresolved`. Routing
30
- * every node-id site through `ensureNodeId` keeps the finding and block mints
31
- * aligned.
32
- */
33
- export function ensureNodeId(rawId, index) {
34
- return rawId ?? `CP-${String(index + 1).padStart(3, "0")}`;
35
- }
36
- /**
37
- * Mint the block id for a bare DAG node id. This is the ONLY place the
38
- * `CP-BLOCK-` prefix is applied — every producer of a block id goes through here.
39
- */
40
- export function toBlockId(nodeId) {
41
- return `${CP_BLOCK_PREFIX}${nodeId}`;
42
- }
43
- /** The one prefix every derived obligation id carries. */
44
- export const OBLIGATION_PREFIX = "OBL-";
45
- /**
46
- * Lowercase-hyphenate a module name into the id fragment obligation ids encode.
47
- *
48
- * The ENCODER (`derive.ts`, minting `OBL-<slug>-…`) and the DECODERS (phase
49
- * resolution, write-scope inheritance) must agree exactly, or an obligation
50
- * resolves to no module and its node silently loses its phase and file scope.
51
- * They previously agreed by way of two identical implementations and a comment
52
- * saying they must stay in lockstep — a drift test made of memory. One
53
- * implementation, here with the rest of the id authority, cannot drift.
54
- */
55
- export function moduleSlug(name) {
56
- return name.toLowerCase().replace(/[^a-z0-9]+/gu, "-").replace(/^-+|-+$/gu, "");
57
- }
58
- /**
59
- * Mint a derived obligation id from a module name and a suffix — the ONLY place
60
- * the `OBL-<slug>-<suffix>` shape is applied, so the decoders above are matching
61
- * a format with a single author. Callers still pass the result through
62
- * `mintUniqueId` for collision disambiguation.
63
- */
64
- export function obligationId(moduleName, suffix) {
65
- return `${OBLIGATION_PREFIX}${moduleSlug(moduleName) || "module"}-${suffix}`;
66
- }
67
- /**
68
- * The suffix GRAMMAR of a derived obligation id — the `…-<suffix>` half, and the
69
- * half that makes the id → module join exact rather than longest-prefix.
70
- *
71
- * Why it has to exist. The decoders (`phaseOrdinalForObligations`, the
72
- * promotion's module-contract attachment) recover a module from its obligation
73
- * ids by matching a slug against the id BODY. Two distinct module names can
74
- * collide there in one direction: `auth` and `auth-service` are different
75
- * modules, and `OBL-auth-service-contract` starts with `auth-`. Longest-slug-
76
- * first picks `auth-service` and happens to be right, but only because the
77
- * SLUG SET is what decides — a plan whose `auth-service` obligations were
78
- * emitted before the module registry knew that name would silently resolve them
79
- * to `auth`, and the node would take `auth`'s phase and file scope.
80
- *
81
- * The suffix is the tiebreak that removes the guess: once the grammar is
82
- * stripped, the remaining body must equal a known slug EXACTLY. A module name
83
- * is free-form prose, so it can contain `contract` or `inv-2`; what it cannot
84
- * do is make the exact-equality test pass for a DIFFERENT module, because the
85
- * candidate body is only ever the id minus its one grammatical suffix.
86
- *
87
- * Kept here, beside the mint, for the same reason `moduleSlug` is: a grammar
88
- * only the encoder knows is a drift test made of memory. `derive.ts` is the
89
- * encoder and imports `obligationId` from this module; the suffixed forms it
90
- * mints are `contract`, `inv-<n>`, and `fail-<n>`, and `mintUniqueId`
91
- * (`audit-tools/shared`) appends `-<n>` to disambiguate a collision.
92
- */
93
- const OBLIGATION_SUFFIX_PATTERN = /^(?:contract|inv-\d+|fail-\d+)(?:-\d+)?$/u;
94
- /**
95
- * The ONE exact join from a derived obligation id back to its module slug, or
96
- * `null` when the id carries no obligation prefix or its body is not
97
- * `<knownSlug>-<grammaticalSuffix>`.
98
- *
99
- * `knownSlugs` MUST be the module slugs in scope; the match is exact, so the
100
- * caller need not pre-sort them (the previous longest-first sort existed only
101
- * to arbitrate the prefix ambiguity this rule removes).
102
- */
103
- export function moduleSlugForObligationId(id, knownSlugs) {
104
- if (!id.startsWith(OBLIGATION_PREFIX))
105
- return null;
106
- const body = id.slice(OBLIGATION_PREFIX.length);
107
- for (let index = body.lastIndexOf("-"); index > 0; index = body.lastIndexOf("-", index - 1)) {
108
- const slug = body.slice(0, index);
109
- if (knownSlugs.has(slug) && OBLIGATION_SUFFIX_PATTERN.test(body.slice(index + 1))) {
110
- return slug;
111
- }
112
- }
113
- return null;
114
- }
115
- // ── The goal-id grammar ─────────────────────────────────────────────────────
116
- /**
117
- * The one shape a contract-pipeline `goal_id` may take.
118
- *
119
- * Why a grammar at all. `goal_id` is the identity JOINING fifteen artifacts —
120
- * `deriveFinalizedModuleContracts` carries it onto the finalized contracts,
121
- * `deriveObligationLedger` onto the ledger, `contract_goal_id` onto every
122
- * promoted finding, and `validateGoalIdConsistency` reds the run when two
123
- * artifacts disagree. It is the ONE id in this pipeline minted by the LLM
124
- * rather than by the tool (`goal_normalization` is its sole origin), and its
125
- * entire specification the model ever saw was the prompt placeholder
126
- * `<stable-identifier>`. So the format was whatever the model happened to emit:
127
- * observed values in this repo include `G1`, `GOAL-001`, `goal-abc`, `g`,
128
- * `goal-test`, and `goal-self-audit-2026-08-21-first-draw`.
129
- *
130
- * That matters because an unvalidated identity is not an identity. `goal_id`
131
- * becomes a path/plan-row join and a consistency key, and the entry's own
132
- * recorded incident is two artifacts authored in one run under `goal-test` and
133
- * `g` (audit finding MNT-4829db27-3) — a mismatch only the equality gate
134
- * catches, and only when both are present.
135
- *
136
- * The rule: a lowercase alphanumeric slug, hyphen-separated, starting with a
137
- * letter, between 1 and 64 characters. Deliberately PERMISSIVE about content —
138
- * a goal id is an opaque handle, and the model is free to name the goal
139
- * meaningfully — but STRICT about shape, so an empty string, a placeholder left
140
- * unsubstituted (`<stable-identifier>`), or a free-text sentence is refused on
141
- * the way in.
142
- *
143
- * A single-token id (`g`, `g1`, `auth`) is deliberately ADMITTED despite being
144
- * a poor name: the grammar's job is to refuse a non-identity, not to grade one,
145
- * and the alternative — requiring a hyphen — would retroactively invalidate ids
146
- * already persisted by real runs. The property the entry asks for is "minted by
147
- * the registry OR validated on the way in", and validation that rejects
148
- * everything already in the wild is a migration, not a validation.
149
- *
150
- * Kept here, beside the obligation/node/block mints, for the reason this
151
- * module's header gives: a grammar only one side knows is a drift test made of
152
- * memory. `derive.ts` validates on the way in; `validation/contractPipeline.ts`
153
- * and the consistency gate read the same predicate.
154
- */
155
- export const GOAL_ID_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u;
156
- /** The longest goal id the grammar admits. */
157
- export const GOAL_ID_MAX_LENGTH = 64;
158
- /**
159
- * Whether `value` is a well-formed goal id. The ONE home for the question; a
160
- * caller that re-spells the regex has forked the grammar.
161
- */
162
- export function isGoalId(value) {
163
- return (typeof value === "string" &&
164
- value.length > 0 &&
165
- value.length <= GOAL_ID_MAX_LENGTH &&
166
- GOAL_ID_PATTERN.test(value));
167
- }
168
- /**
169
- * Coerce a host-supplied `goal_id` to a well-formed one, or return the empty
170
- * string when it cannot be repaired.
171
- *
172
- * Lowercases and slugifies rather than rejecting outright, because the LLM is
173
- * the producer and a near-miss (`Goal-001`, `goal_001`, `Goal 1`) is the
174
- * expected input shape — refusing it would strand the pipeline on a
175
- * formatting detail. What it will NOT do is invent an id from nothing: an
176
- * absent or placeholder value yields `""`, and every reader's existing
177
- * empty-string handling stays the signal that no goal id was established.
178
- * Deterministic: the same input always yields the same id.
179
- *
180
- * Case-folding is load-bearing, not cosmetic. `validateGoalIdConsistency`
181
- * compares ids for EXACT string equality and reds the run on any difference, so
182
- * under the previous verbatim read two shards that each wrote `Goal-1` and
183
- * `goal-1` for the same goal would fail the gate — and the failure would name a
184
- * mismatch where no disagreement exists. Folding on the way in makes the gate's
185
- * strict comparison mean what it says.
186
- *
187
- * The placeholder guard is not decoration. Slugifying alone would turn the
188
- * prompt's own placeholder `<stable-identifier>` into the well-formed-looking
189
- * `stable-identifier` — MANUFACTURING an identity out of a failure to
190
- * substitute one, which is strictly worse than the verbatim read it replaces
191
- * (that at least kept the angle brackets, so a human could see it). A value
192
- * that is not already slug-shaped once whitespace is trimmed is a value the
193
- * model did not mean as an id, so it yields `""` rather than a plausible slug.
194
- */
195
- export function coerceGoalId(value) {
196
- if (typeof value !== "string")
197
- return "";
198
- const trimmed = value.trim();
199
- // Refuse anything carrying structure a goal id cannot have: angle brackets
200
- // (a template placeholder), whitespace runs between words (prose), or any
201
- // punctuation outside the hyphen/underscore separators we fold.
202
- if (/[<>{}[\]"'`/\\.,;:!?()@#$%^&*+=|~]/u.test(trimmed))
203
- return "";
204
- if (/\s/u.test(trimmed) && !/^[A-Za-z0-9]+(?:[\s_-]+[A-Za-z0-9]+)+$/u.test(trimmed)) {
205
- return "";
206
- }
207
- const slug = trimmed
208
- .toLowerCase()
209
- .replace(/[\s_]+/gu, "-")
210
- .replace(/-+/gu, "-")
211
- .replace(/^-+|-+$/gu, "");
212
- return isGoalId(slug) ? slug : "";
213
- }
214
- //# sourceMappingURL=idRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"idRegistry.js","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/idRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,gFAAgF;AAChF,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,YAAY,CAC1B,KAAyB,EACzB,KAAa;IAEb,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,MAAc;IACtC,OAAO,GAAG,eAAe,GAAG,MAAM,EAAE,CAAC;AACvC,CAAC;AAED,0DAA0D;AAC1D,M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IGATION_KINDS iteration order; the
4
- * explicit priority rank preserves the load-bearing lens/severity order.
5
- */
6
- declare const OBLIGATION_KIND_DEFINITIONS: readonly [{
7
- readonly kind: "invariant";
8
- readonly testable: true;
9
- readonly priority: 3;
10
- }, {
11
- readonly kind: "behavioral";
12
- readonly testable: true;
13
- readonly priority: 2;
14
- }, {
15
- readonly kind: "structural";
16
- readonly testable: false;
17
- readonly priority: 1;
18
- }, {
19
- readonly kind: "test";
20
- readonly testable: false;
21
- readonly priority: 0;
22
- }];
23
- export type ObligationKind = (typeof OBLIGATION_KIND_DEFINITIONS)[number]["kind"];
24
- export declare const OBLIGATION_KIND_PRIORITY: readonly ObligationKind[];
25
- export declare const TESTABLE_OBLIGATION_KINDS: Set<string>;
26
- export {};
27
- //# sourceMappingURL=obligationKinds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"obligationKinds.d.ts","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/obligationKinds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;EAKvB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAElF,eAAO,MAAM,wBAAwB,EAAE,SAAS,cAAc,EAIpC,CAAC;AAE3B,eAAO,MAAM,yBAAyB,aAErC,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * One vocabulary for contract-pipeline obligation kinds. Definition order
3
- * preserves the observable TESTABLE_OBLIGATION_KINDS iteration order; the
4
- * explicit priority rank preserves the load-bearing lens/severity order.
5
- */
6
- const OBLIGATION_KIND_DEFINITIONS = [
7
- { kind: "invariant", testable: true, priority: 3 },
8
- { kind: "behavioral", testable: true, priority: 2 },
9
- { kind: "structural", testable: false, priority: 1 },
10
- { kind: "test", testable: false, priority: 0 },
11
- ];
12
- export const OBLIGATION_KIND_PRIORITY = [
13
- ...OBLIGATION_KIND_DEFINITIONS,
14
- ]
15
- .sort((left, right) => left.priority - right.priority)
16
- .map(({ kind }) => kind);
17
- export const TESTABLE_OBLIGATION_KINDS = new Set(OBLIGATION_KIND_DEFINITIONS.filter(({ testable }) => testable).map(({ kind }) => kind));
18
- //# sourceMappingURL=obligationKinds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"obligationKinds.js","sourceRoot":"","sources":["../../../src/remediate/contractPipeline/obligationKinds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,2BAA2B,GAAG;IAClC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE;IAClD,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE;IACnD,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;IACpD,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;CACtC,CAAC;AAIX,MAAM,CAAC,MAAM,wBAAwB,GAA8B;IACjE,GAAG,2BAA2B;CAC/B;KACE,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;KACrD,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAE3B,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAC9C,2BAA2B,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CACvF,CAAC"}