@neuraloom/contracts 0.0.0-stage → 0.1.22

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 (1141) hide show
  1. package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
  2. package/dist/analytics/community-movie/attribution.schema.js +57 -0
  3. package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
  4. package/dist/analytics/community-movie/consent.schema.js +16 -0
  5. package/dist/analytics/community-movie/event-names.d.ts +11 -0
  6. package/dist/analytics/community-movie/event-names.js +113 -0
  7. package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
  8. package/dist/analytics/community-movie/event-params.schema.js +416 -0
  9. package/dist/analytics/community-movie/event-registry.d.ts +11 -0
  10. package/dist/analytics/community-movie/event-registry.js +486 -0
  11. package/dist/analytics/community-movie/index.d.ts +6 -0
  12. package/dist/analytics/community-movie/index.js +22 -0
  13. package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
  14. package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
  15. package/dist/analytics/index.d.ts +1 -0
  16. package/dist/analytics/index.js +17 -0
  17. package/dist/community/actor-builder-options.d.ts +43 -0
  18. package/dist/community/actor-builder-options.js +197 -0
  19. package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
  20. package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
  21. package/dist/constants/AGENT_ROLES.d.ts +37 -0
  22. package/dist/constants/AGENT_ROLES.js +199 -0
  23. package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
  24. package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
  25. package/dist/constants/ci-config.d.ts +4 -0
  26. package/dist/constants/ci-config.js +7 -0
  27. package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
  28. package/dist/constants/kg-implement-stable-keys.js +26 -0
  29. package/dist/constants/knowledge-edge-relation.d.ts +49 -0
  30. package/dist/constants/knowledge-edge-relation.js +42 -0
  31. package/dist/constants/knowledge-node.d.ts +21 -0
  32. package/dist/constants/knowledge-node.js +20 -0
  33. package/dist/constants/mission-control-nav.d.ts +13 -0
  34. package/dist/constants/mission-control-nav.js +75 -0
  35. package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
  36. package/dist/constants/model-mode-preset-defaults.js +65 -0
  37. package/dist/constants/model-policies.d.ts +37 -0
  38. package/dist/constants/model-policies.js +656 -0
  39. package/dist/constants/navConfig.d.ts +43 -0
  40. package/dist/constants/navConfig.js +132 -0
  41. package/dist/constants/orchestration-execution.d.ts +5 -0
  42. package/dist/constants/orchestration-execution.js +10 -0
  43. package/dist/constants/payload-schema-map.d.ts +22 -0
  44. package/dist/constants/payload-schema-map.js +375 -0
  45. package/dist/constants/phase-guardian.d.ts +17 -0
  46. package/dist/constants/phase-guardian.js +43 -0
  47. package/dist/constants/pipeline-step-stages.d.ts +73 -0
  48. package/dist/constants/pipeline-step-stages.js +342 -0
  49. package/dist/constants/project-control-nav.d.ts +29 -0
  50. package/dist/constants/project-control-nav.js +65 -0
  51. package/dist/constants/software-index-targets.d.ts +17 -0
  52. package/dist/constants/software-index-targets.js +46 -0
  53. package/dist/constants/step-tools.d.ts +32 -0
  54. package/dist/constants/step-tools.js +53 -0
  55. package/dist/constants/workflow-agent-defaults.d.ts +4 -0
  56. package/dist/constants/workflow-agent-defaults.js +15 -0
  57. package/dist/constants/workflow-api-errors.d.ts +5 -0
  58. package/dist/constants/workflow-api-errors.js +8 -0
  59. package/dist/constants/workflow-phase-groups.d.ts +34 -0
  60. package/dist/constants/workflow-phase-groups.js +46 -0
  61. package/dist/constants/workflow-registry.d.ts +77 -0
  62. package/dist/constants/workflow-registry.js +421 -0
  63. package/dist/constants/workflow-semantics.d.ts +19 -0
  64. package/dist/constants/workflow-semantics.js +432 -0
  65. package/dist/constants/workflow-vocabulary.d.ts +23 -0
  66. package/dist/constants/workflow-vocabulary.js +227 -0
  67. package/dist/constants/workflow.d.ts +7 -0
  68. package/dist/constants/workflow.js +23 -0
  69. package/dist/data/model-registry.d.ts +36 -0
  70. package/dist/data/model-registry.js +59 -0
  71. package/dist/index.d.ts +47 -0
  72. package/dist/index.js +90 -0
  73. package/dist/integration/index.d.ts +8 -0
  74. package/dist/integration/index.js +24 -0
  75. package/dist/integration/schema-hash-manifest.json +26 -0
  76. package/dist/lib/graph-edge-resolve.d.ts +3 -0
  77. package/dist/lib/graph-edge-resolve.js +20 -0
  78. package/dist/lib/graph-id.d.ts +16 -0
  79. package/dist/lib/graph-id.js +169 -0
  80. package/dist/lib/step-navigation.d.ts +35 -0
  81. package/dist/lib/step-navigation.js +218 -0
  82. package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
  83. package/dist/marketing/acquisition-landing-matrix.js +64 -0
  84. package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
  85. package/dist/marketing/acquisition-recommendation.schema.js +84 -0
  86. package/dist/marketing/ads-account.schema.d.ts +46 -0
  87. package/dist/marketing/ads-account.schema.js +15 -0
  88. package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
  89. package/dist/marketing/ads-ad-group.schema.js +17 -0
  90. package/dist/marketing/ads-campaign.schema.d.ts +59 -0
  91. package/dist/marketing/ads-campaign.schema.js +18 -0
  92. package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
  93. package/dist/marketing/ads-conversion-action.schema.js +27 -0
  94. package/dist/marketing/ads-keyword.schema.d.ts +59 -0
  95. package/dist/marketing/ads-keyword.schema.js +19 -0
  96. package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
  97. package/dist/marketing/ads-metrics-daily.schema.js +24 -0
  98. package/dist/marketing/ads-overview.schema.d.ts +479 -0
  99. package/dist/marketing/ads-overview.schema.js +44 -0
  100. package/dist/marketing/ads-query.schema.d.ts +33 -0
  101. package/dist/marketing/ads-query.schema.js +13 -0
  102. package/dist/marketing/ads-search-term.schema.d.ts +70 -0
  103. package/dist/marketing/ads-search-term.schema.js +19 -0
  104. package/dist/marketing/campaign-asset.schema.d.ts +51 -0
  105. package/dist/marketing/campaign-asset.schema.js +39 -0
  106. package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
  107. package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
  108. package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
  109. package/dist/marketing/community-movie-campaign-matrix.js +265 -0
  110. package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
  111. package/dist/marketing/community-movie-google-ads.constants.js +59 -0
  112. package/dist/marketing/config.schema.d.ts +32 -0
  113. package/dist/marketing/config.schema.js +31 -0
  114. package/dist/marketing/date-range.schema.d.ts +12 -0
  115. package/dist/marketing/date-range.schema.js +10 -0
  116. package/dist/marketing/entities/index.d.ts +6 -0
  117. package/dist/marketing/entities/index.js +11 -0
  118. package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
  119. package/dist/marketing/ga4-conversion.schema.js +22 -0
  120. package/dist/marketing/ga4-event.schema.d.ts +98 -0
  121. package/dist/marketing/ga4-event.schema.js +23 -0
  122. package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
  123. package/dist/marketing/ga4-funnel.schema.js +23 -0
  124. package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
  125. package/dist/marketing/ga4-landing-page.schema.js +25 -0
  126. package/dist/marketing/ga4-overview.schema.d.ts +478 -0
  127. package/dist/marketing/ga4-overview.schema.js +31 -0
  128. package/dist/marketing/ga4-query.schema.d.ts +19 -0
  129. package/dist/marketing/ga4-query.schema.js +27 -0
  130. package/dist/marketing/ga4-retention.schema.d.ts +79 -0
  131. package/dist/marketing/ga4-retention.schema.js +21 -0
  132. package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
  133. package/dist/marketing/ga4-traffic.schema.js +27 -0
  134. package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
  135. package/dist/marketing/gsc-organic-overview.schema.js +28 -0
  136. package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
  137. package/dist/marketing/gsc-organic-query.schema.js +24 -0
  138. package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
  139. package/dist/marketing/gsc-page-performance.schema.js +24 -0
  140. package/dist/marketing/gsc-query.schema.d.ts +19 -0
  141. package/dist/marketing/gsc-query.schema.js +27 -0
  142. package/dist/marketing/index.d.ts +47 -0
  143. package/dist/marketing/index.js +63 -0
  144. package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
  145. package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
  146. package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
  147. package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
  148. package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
  149. package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
  150. package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
  151. package/dist/marketing/marketing-executive-overview.schema.js +39 -0
  152. package/dist/marketing/marketing-health.schema.d.ts +366 -0
  153. package/dist/marketing/marketing-health.schema.js +65 -0
  154. package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
  155. package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
  156. package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
  157. package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
  158. package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
  159. package/dist/marketing/marketing-readiness.schema.js +83 -0
  160. package/dist/marketing/marketing-test-traffic.d.ts +6 -0
  161. package/dist/marketing/marketing-test-traffic.js +28 -0
  162. package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
  163. package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
  164. package/dist/marketing/marketing-world-catalog.d.ts +10 -0
  165. package/dist/marketing/marketing-world-catalog.js +16 -0
  166. package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
  167. package/dist/marketing/marketing-world-performance.schema.js +32 -0
  168. package/dist/marketing/routes.d.ts +77 -0
  169. package/dist/marketing/routes.js +79 -0
  170. package/dist/marketing/search-negative-keywords.d.ts +6 -0
  171. package/dist/marketing/search-negative-keywords.js +30 -0
  172. package/dist/registry/schema-registry.d.ts +74 -0
  173. package/dist/registry/schema-registry.js +1148 -0
  174. package/dist/registry/table-ownership-registry.d.ts +57 -0
  175. package/dist/registry/table-ownership-registry.js +932 -0
  176. package/dist/routes/assurance.d.ts +6 -0
  177. package/dist/routes/assurance.js +14 -0
  178. package/dist/routes/community-operator.d.ts +117 -0
  179. package/dist/routes/community-operator.js +119 -0
  180. package/dist/routes/community.d.ts +232 -0
  181. package/dist/routes/community.js +246 -0
  182. package/dist/routes/index.d.ts +2203 -0
  183. package/dist/routes/index.js +1440 -0
  184. package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
  185. package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
  186. package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
  187. package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
  188. package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
  189. package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
  190. package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
  191. package/dist/schemas/ai/analytics-generate.schema.js +59 -0
  192. package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
  193. package/dist/schemas/ai/api-generate.schema.js +16 -0
  194. package/dist/schemas/ai/api.schema.d.ts +80 -0
  195. package/dist/schemas/ai/api.schema.js +22 -0
  196. package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
  197. package/dist/schemas/ai/architecture-generate.schema.js +19 -0
  198. package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
  199. package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
  200. package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
  201. package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
  202. package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
  203. package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
  204. package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
  205. package/dist/schemas/ai/chapter-revision.schema.js +267 -0
  206. package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
  207. package/dist/schemas/ai/code-generate.schema.js +46 -0
  208. package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
  209. package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
  210. package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
  211. package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
  212. package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
  213. package/dist/schemas/ai/compliance-generate.schema.js +11 -0
  214. package/dist/schemas/ai/compliance.schema.d.ts +58 -0
  215. package/dist/schemas/ai/compliance.schema.js +22 -0
  216. package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
  217. package/dist/schemas/ai/constitution-generate.schema.js +52 -0
  218. package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
  219. package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
  220. package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
  221. package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
  222. package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
  223. package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
  224. package/dist/schemas/ai/constitution.schema.d.ts +19 -0
  225. package/dist/schemas/ai/constitution.schema.js +12 -0
  226. package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
  227. package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
  228. package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
  229. package/dist/schemas/ai/coverage-generate.schema.js +27 -0
  230. package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
  231. package/dist/schemas/ai/definitions-generate.schema.js +62 -0
  232. package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
  233. package/dist/schemas/ai/deployments-generate.schema.js +18 -0
  234. package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
  235. package/dist/schemas/ai/docs-generate.schema.js +18 -0
  236. package/dist/schemas/ai/domain-context.d.ts +58 -0
  237. package/dist/schemas/ai/domain-context.js +185 -0
  238. package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
  239. package/dist/schemas/ai/draft-generate.schema.js +17 -0
  240. package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
  241. package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
  242. package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
  243. package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
  244. package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
  245. package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
  246. package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
  247. package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
  248. package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
  249. package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
  250. package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
  251. package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
  252. package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
  253. package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
  254. package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
  255. package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
  256. package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
  257. package/dist/schemas/ai/generate-response.schema.js +26 -0
  258. package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
  259. package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
  260. package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
  261. package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
  262. package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
  263. package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
  264. package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
  265. package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
  266. package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
  267. package/dist/schemas/ai/implement-graph.schema.js +51 -0
  268. package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
  269. package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
  270. package/dist/schemas/ai/implement.schema.d.ts +73 -0
  271. package/dist/schemas/ai/implement.schema.js +23 -0
  272. package/dist/schemas/ai/index.d.ts +46 -0
  273. package/dist/schemas/ai/index.js +62 -0
  274. package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
  275. package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
  276. package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
  277. package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
  278. package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
  279. package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
  280. package/dist/schemas/ai/model-policy/index.d.ts +9 -0
  281. package/dist/schemas/ai/model-policy/index.js +25 -0
  282. package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
  283. package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
  284. package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
  285. package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
  286. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
  287. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
  288. package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
  289. package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
  290. package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
  291. package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
  292. package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
  293. package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
  294. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
  295. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
  296. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
  297. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
  298. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
  299. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
  300. package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
  301. package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
  302. package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
  303. package/dist/schemas/ai/payload-json-schemas.js +154 -0
  304. package/dist/schemas/ai/plan.schema.d.ts +137 -0
  305. package/dist/schemas/ai/plan.schema.js +36 -0
  306. package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
  307. package/dist/schemas/ai/refine-fields.schema.js +27 -0
  308. package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
  309. package/dist/schemas/ai/review-generate.schema.js +15 -0
  310. package/dist/schemas/ai/review.schema.d.ts +77 -0
  311. package/dist/schemas/ai/review.schema.js +29 -0
  312. package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
  313. package/dist/schemas/ai/run-trace.schema.js +43 -0
  314. package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
  315. package/dist/schemas/ai/schema-generate.schema.js +44 -0
  316. package/dist/schemas/ai/schema.schema.d.ts +205 -0
  317. package/dist/schemas/ai/schema.schema.js +50 -0
  318. package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
  319. package/dist/schemas/ai/screenplay.schema.js +77 -0
  320. package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
  321. package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
  322. package/dist/schemas/ai/spec.schema.d.ts +248 -0
  323. package/dist/schemas/ai/spec.schema.js +78 -0
  324. package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
  325. package/dist/schemas/ai/style-system-generate.schema.js +67 -0
  326. package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
  327. package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
  328. package/dist/schemas/ai/tasks.schema.d.ts +49 -0
  329. package/dist/schemas/ai/tasks.schema.js +17 -0
  330. package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
  331. package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
  332. package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
  333. package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
  334. package/dist/schemas/ai/ui.schema.d.ts +22 -0
  335. package/dist/schemas/ai/ui.schema.js +13 -0
  336. package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
  337. package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
  338. package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
  339. package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
  340. package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
  341. package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
  342. package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
  343. package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
  344. package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
  345. package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
  346. package/dist/schemas/ai-ci-generate.d.ts +47 -0
  347. package/dist/schemas/ai-ci-generate.js +19 -0
  348. package/dist/schemas/ai-llm-outputs.d.ts +52 -0
  349. package/dist/schemas/ai-llm-outputs.js +26 -0
  350. package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
  351. package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
  352. package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
  353. package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
  354. package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
  355. package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
  356. package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
  357. package/dist/schemas/api/plans-list-response.schema.js +35 -0
  358. package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
  359. package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
  360. package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
  361. package/dist/schemas/api/specs-list-response.schema.js +23 -0
  362. package/dist/schemas/api-envelope.schema.d.ts +131 -0
  363. package/dist/schemas/api-envelope.schema.js +60 -0
  364. package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
  365. package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
  366. package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
  367. package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
  368. package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
  369. package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
  370. package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
  371. package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
  372. package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
  373. package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
  374. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
  375. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
  376. package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
  377. package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
  378. package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
  379. package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
  380. package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
  381. package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
  382. package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
  383. package/dist/schemas/assurance/gate-result.schema.js +35 -0
  384. package/dist/schemas/assurance/index.d.ts +13 -0
  385. package/dist/schemas/assurance/index.js +30 -0
  386. package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
  387. package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
  388. package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
  389. package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
  390. package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
  391. package/dist/schemas/assurance/release-verdict.schema.js +47 -0
  392. package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
  393. package/dist/schemas/assurance/risk-class.schema.js +33 -0
  394. package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
  395. package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
  396. package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
  397. package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
  398. package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
  399. package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
  400. package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
  401. package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
  402. package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
  403. package/dist/schemas/audiobook/audiobook-validation.js +23 -0
  404. package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
  405. package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
  406. package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
  407. package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
  408. package/dist/schemas/audiobook/index.d.ts +8 -0
  409. package/dist/schemas/audiobook/index.js +24 -0
  410. package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
  411. package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
  412. package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
  413. package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
  414. package/dist/schemas/auth/session-context.schema.d.ts +177 -0
  415. package/dist/schemas/auth/session-context.schema.js +40 -0
  416. package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
  417. package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
  418. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
  419. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
  420. package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
  421. package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
  422. package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
  423. package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
  424. package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
  425. package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
  426. package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
  427. package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
  428. package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
  429. package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
  430. package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
  431. package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
  432. package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
  433. package/dist/schemas/ci/ci-run.schema.js +27 -0
  434. package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
  435. package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
  436. package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
  437. package/dist/schemas/ci/ci-status-get.schema.js +12 -0
  438. package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
  439. package/dist/schemas/ci/ci-status-response.schema.js +151 -0
  440. package/dist/schemas/ci/index.d.ts +12 -0
  441. package/dist/schemas/ci/index.js +28 -0
  442. package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
  443. package/dist/schemas/ci/pr-check-run.schema.js +21 -0
  444. package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
  445. package/dist/schemas/ci/project-engine-context.schema.js +26 -0
  446. package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
  447. package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
  448. package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
  449. package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
  450. package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
  451. package/dist/schemas/community/community-ad-capi.schema.js +42 -0
  452. package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
  453. package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
  454. package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
  455. package/dist/schemas/community/community-challenge.schema.js +21 -0
  456. package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
  457. package/dist/schemas/community/community-content-translation.schema.js +63 -0
  458. package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
  459. package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
  460. package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
  461. package/dist/schemas/community/community-development-input.schema.js +16 -0
  462. package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
  463. package/dist/schemas/community/community-development-room.schema.js +16 -0
  464. package/dist/schemas/community/community-email.schema.d.ts +96 -0
  465. package/dist/schemas/community/community-email.schema.js +65 -0
  466. package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
  467. package/dist/schemas/community/community-film-playback.schema.js +52 -0
  468. package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
  469. package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
  470. package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
  471. package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
  472. package/dist/schemas/community/community-film.schema.d.ts +183 -0
  473. package/dist/schemas/community/community-film.schema.js +105 -0
  474. package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
  475. package/dist/schemas/community/community-idea-promote.schema.js +6 -0
  476. package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
  477. package/dist/schemas/community/community-idea-submission.schema.js +22 -0
  478. package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
  479. package/dist/schemas/community/community-idea-version.schema.js +28 -0
  480. package/dist/schemas/community/community-idea.schema.d.ts +71 -0
  481. package/dist/schemas/community/community-idea.schema.js +36 -0
  482. package/dist/schemas/community/community-locale.schema.d.ts +8 -0
  483. package/dist/schemas/community/community-locale.schema.js +10 -0
  484. package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
  485. package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
  486. package/dist/schemas/community/community-membership.schema.d.ts +34 -0
  487. package/dist/schemas/community/community-membership.schema.js +19 -0
  488. package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
  489. package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
  490. package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
  491. package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
  492. package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
  493. package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
  494. package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
  495. package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
  496. package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
  497. package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
  498. package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
  499. package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
  500. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
  501. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
  502. package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
  503. package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
  504. package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
  505. package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
  506. package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
  507. package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
  508. package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
  509. package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
  510. package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
  511. package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
  512. package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
  513. package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
  514. package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
  515. package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
  516. package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
  517. package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
  518. package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
  519. package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
  520. package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
  521. package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
  522. package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
  523. package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
  524. package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
  525. package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
  526. package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
  527. package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
  528. package/dist/schemas/community/community-partner-offers.d.ts +13 -0
  529. package/dist/schemas/community/community-partner-offers.js +22 -0
  530. package/dist/schemas/community/community-partner.schema.d.ts +41 -0
  531. package/dist/schemas/community/community-partner.schema.js +23 -0
  532. package/dist/schemas/community/community-poll.schema.d.ts +54 -0
  533. package/dist/schemas/community/community-poll.schema.js +27 -0
  534. package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
  535. package/dist/schemas/community/community-production-operator.schema.js +91 -0
  536. package/dist/schemas/community/community-referral.schema.d.ts +155 -0
  537. package/dist/schemas/community/community-referral.schema.js +63 -0
  538. package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
  539. package/dist/schemas/community/community-signup-intake.constants.js +134 -0
  540. package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
  541. package/dist/schemas/community/community-signup-intake.schema.js +82 -0
  542. package/dist/schemas/community/community-slate.schema.d.ts +60 -0
  543. package/dist/schemas/community/community-slate.schema.js +29 -0
  544. package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
  545. package/dist/schemas/community/community-stage-transition.schema.js +18 -0
  546. package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
  547. package/dist/schemas/community/community-suggestion.schema.js +24 -0
  548. package/dist/schemas/community/community-vote.schema.d.ts +24 -0
  549. package/dist/schemas/community/community-vote.schema.js +14 -0
  550. package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
  551. package/dist/schemas/community/community-waitlist.schema.js +10 -0
  552. package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
  553. package/dist/schemas/community/community-world-contribution.schema.js +86 -0
  554. package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
  555. package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
  556. package/dist/schemas/community/index.d.ts +56 -0
  557. package/dist/schemas/community/index.js +72 -0
  558. package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
  559. package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
  560. package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
  561. package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
  562. package/dist/schemas/cortex/bridge-events.schema.d.ts +12554 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +793 -0
  564. package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
  565. package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
  566. package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
  567. package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
  568. package/dist/schemas/cortex/index.d.ts +7 -0
  569. package/dist/schemas/cortex/index.js +23 -0
  570. package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
  571. package/dist/schemas/cortex/product-release-package.schema.js +123 -0
  572. package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
  573. package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
  574. package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
  575. package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
  576. package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
  577. package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
  578. package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
  579. package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
  580. package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
  581. package/dist/schemas/deployments/deployment-status.schema.js +421 -0
  582. package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
  583. package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
  584. package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
  585. package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
  586. package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
  587. package/dist/schemas/film/film-asset-review.schema.js +42 -0
  588. package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
  589. package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
  590. package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
  591. package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
  592. package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
  593. package/dist/schemas/film/film-character-pack.schema.js +24 -0
  594. package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
  595. package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
  596. package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
  597. package/dist/schemas/film/film-clip-api.schema.js +159 -0
  598. package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
  599. package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
  600. package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
  601. package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
  602. package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
  603. package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
  604. package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
  605. package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
  606. package/dist/schemas/film/film-clip.schema.d.ts +171 -0
  607. package/dist/schemas/film/film-clip.schema.js +64 -0
  608. package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
  609. package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
  610. package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
  611. package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
  612. package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
  613. package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
  614. package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
  615. package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
  616. package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
  617. package/dist/schemas/film/film-deliverable.schema.js +252 -0
  618. package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
  619. package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
  620. package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
  621. package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
  622. package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
  623. package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
  624. package/dist/schemas/film/film-export.schema.d.ts +78 -0
  625. package/dist/schemas/film/film-export.schema.js +37 -0
  626. package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
  627. package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
  628. package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
  629. package/dist/schemas/film/film-generation-package.schema.js +116 -0
  630. package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
  631. package/dist/schemas/film/film-generation-task.schema.js +159 -0
  632. package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
  633. package/dist/schemas/film/film-hydrate.schema.js +23 -0
  634. package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
  635. package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
  636. package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
  637. package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
  638. package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
  639. package/dist/schemas/film/film-keyframe.schema.js +43 -0
  640. package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
  641. package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
  642. package/dist/schemas/film/film-llm-field.d.ts +22 -0
  643. package/dist/schemas/film/film-llm-field.js +78 -0
  644. package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
  645. package/dist/schemas/film/film-location-pack.schema.js +24 -0
  646. package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
  647. package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
  648. package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
  649. package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
  650. package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
  651. package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
  652. package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
  653. package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
  654. package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
  655. package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
  656. package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
  657. package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
  658. package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
  659. package/dist/schemas/film/film-media-asset.schema.js +94 -0
  660. package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
  661. package/dist/schemas/film/film-media-kg.schema.js +70 -0
  662. package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
  663. package/dist/schemas/film/film-ofi-report.schema.js +65 -0
  664. package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
  665. package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
  666. package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
  667. package/dist/schemas/film/film-production-coverage.schema.js +123 -0
  668. package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
  669. package/dist/schemas/film/film-production-graph.schema.js +43 -0
  670. package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
  671. package/dist/schemas/film/film-production-read-model.schema.js +65 -0
  672. package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
  673. package/dist/schemas/film/film-production-style.schema.js +50 -0
  674. package/dist/schemas/film/film-project.schema.d.ts +115 -0
  675. package/dist/schemas/film/film-project.schema.js +50 -0
  676. package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
  677. package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
  678. package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
  679. package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
  680. package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
  681. package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
  682. package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
  683. package/dist/schemas/film/film-prompt.schema.js +47 -0
  684. package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
  685. package/dist/schemas/film/film-provider-hints.schema.js +50 -0
  686. package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
  687. package/dist/schemas/film/film-provider-job.schema.js +181 -0
  688. package/dist/schemas/film/film-provider.schema.d.ts +100 -0
  689. package/dist/schemas/film/film-provider.schema.js +51 -0
  690. package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
  691. package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
  692. package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
  693. package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
  694. package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
  695. package/dist/schemas/film/film-reference-pack.schema.js +23 -0
  696. package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
  697. package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
  698. package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
  699. package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
  700. package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
  701. package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
  702. package/dist/schemas/film/film-review.schema.d.ts +65 -0
  703. package/dist/schemas/film/film-review.schema.js +47 -0
  704. package/dist/schemas/film/film-scene.schema.d.ts +175 -0
  705. package/dist/schemas/film/film-scene.schema.js +38 -0
  706. package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
  707. package/dist/schemas/film/film-screenplay.schema.js +38 -0
  708. package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
  709. package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
  710. package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
  711. package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
  712. package/dist/schemas/film/film-shot.schema.d.ts +564 -0
  713. package/dist/schemas/film/film-shot.schema.js +96 -0
  714. package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
  715. package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
  716. package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
  717. package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
  718. package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
  719. package/dist/schemas/film/film-take-comparison.schema.js +73 -0
  720. package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
  721. package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
  722. package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
  723. package/dist/schemas/film/film-training-dataset.schema.js +69 -0
  724. package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
  725. package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
  726. package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
  727. package/dist/schemas/film/film-workbench.schema.js +58 -0
  728. package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
  729. package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
  730. package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
  731. package/dist/schemas/film/film-world-ontology.schema.js +79 -0
  732. package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
  733. package/dist/schemas/film/image-generation-provider.schema.js +55 -0
  734. package/dist/schemas/film/index.d.ts +81 -0
  735. package/dist/schemas/film/index.js +97 -0
  736. package/dist/schemas/github/branches.schema.d.ts +61 -0
  737. package/dist/schemas/github/branches.schema.js +17 -0
  738. package/dist/schemas/github/issues.schema.d.ts +145 -0
  739. package/dist/schemas/github/issues.schema.js +27 -0
  740. package/dist/schemas/github/pulls.schema.d.ts +173 -0
  741. package/dist/schemas/github/pulls.schema.js +30 -0
  742. package/dist/schemas/github/repo-create.schema.d.ts +21 -0
  743. package/dist/schemas/github/repo-create.schema.js +11 -0
  744. package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
  745. package/dist/schemas/github/webhook-delivery.schema.js +142 -0
  746. package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
  747. package/dist/schemas/github/workflow-runs.schema.js +52 -0
  748. package/dist/schemas/github-pr-create.schema.d.ts +175 -0
  749. package/dist/schemas/github-pr-create.schema.js +70 -0
  750. package/dist/schemas/github-status.schema.d.ts +418 -0
  751. package/dist/schemas/github-status.schema.js +122 -0
  752. package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
  753. package/dist/schemas/graph/edge-v2.schema.js +164 -0
  754. package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
  755. package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
  756. package/dist/schemas/graph/index.d.ts +14 -0
  757. package/dist/schemas/graph/index.js +30 -0
  758. package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
  759. package/dist/schemas/graph/node-v2.schema.js +120 -0
  760. package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
  761. package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
  762. package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
  763. package/dist/schemas/guardian/guardian-score.schema.js +24 -0
  764. package/dist/schemas/guardian/validate.schema.d.ts +51 -0
  765. package/dist/schemas/guardian/validate.schema.js +36 -0
  766. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
  767. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
  768. package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
  769. package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
  770. package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
  771. package/dist/schemas/implement-patch-detail.schema.js +78 -0
  772. package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
  773. package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
  774. package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
  775. package/dist/schemas/implement-patch-task.schema.js +26 -0
  776. package/dist/schemas/implement-patch.schema.d.ts +2955 -0
  777. package/dist/schemas/implement-patch.schema.js +573 -0
  778. package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
  779. package/dist/schemas/implement-quarantine.schema.js +71 -0
  780. package/dist/schemas/index.d.ts +5249 -0
  781. package/dist/schemas/index.js +1649 -0
  782. package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
  783. package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
  784. package/dist/schemas/integrations.d.ts +426 -0
  785. package/dist/schemas/integrations.js +149 -0
  786. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
  787. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
  788. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
  789. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
  790. package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
  791. package/dist/schemas/knowledge/coverage.schema.js +27 -0
  792. package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
  793. package/dist/schemas/knowledge/duplicates.schema.js +23 -0
  794. package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
  795. package/dist/schemas/knowledge/graph-query.schema.js +7 -0
  796. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
  797. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
  798. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
  799. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
  800. package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
  801. package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
  802. package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
  803. package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
  804. package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
  805. package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
  806. package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
  807. package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
  808. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
  809. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
  810. package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
  811. package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
  812. package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
  813. package/dist/schemas/knowledge/lineage.schema.js +28 -0
  814. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
  815. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
  816. package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
  817. package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
  818. package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
  819. package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
  820. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
  821. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
  822. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
  823. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
  824. package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
  825. package/dist/schemas/knowledge-graph-response.schema.js +56 -0
  826. package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
  827. package/dist/schemas/logging/logger-context.schema.js +11 -0
  828. package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
  829. package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
  830. package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
  831. package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
  832. package/dist/schemas/orchestration-execution.d.ts +158 -0
  833. package/dist/schemas/orchestration-execution.js +88 -0
  834. package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
  835. package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
  836. package/dist/schemas/project-kind.schema.d.ts +70 -0
  837. package/dist/schemas/project-kind.schema.js +38 -0
  838. package/dist/schemas/project-team.d.ts +48 -0
  839. package/dist/schemas/project-team.js +52 -0
  840. package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
  841. package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
  842. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
  843. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
  844. package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
  845. package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
  846. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
  847. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
  848. package/dist/schemas/provider-sentinel/index.d.ts +6 -0
  849. package/dist/schemas/provider-sentinel/index.js +22 -0
  850. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
  851. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
  852. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
  853. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
  854. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
  855. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
  856. package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
  857. package/dist/schemas/publication/manuscript-export.schema.js +47 -0
  858. package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
  859. package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
  860. package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
  861. package/dist/schemas/repos/project-repo-link.schema.js +28 -0
  862. package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
  863. package/dist/schemas/repos/repo-readiness.schema.js +23 -0
  864. package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
  865. package/dist/schemas/repos/repo-scan.schema.js +98 -0
  866. package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
  867. package/dist/schemas/review/review-coverage.schema.js +182 -0
  868. package/dist/schemas/review/review-policy.schema.d.ts +87 -0
  869. package/dist/schemas/review/review-policy.schema.js +42 -0
  870. package/dist/schemas/runtime/index.d.ts +6 -0
  871. package/dist/schemas/runtime/index.js +22 -0
  872. package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
  873. package/dist/schemas/runtime/platform-health.schema.js +31 -0
  874. package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
  875. package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
  876. package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
  877. package/dist/schemas/runtime/probe.schema.js +278 -0
  878. package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
  879. package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
  880. package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
  881. package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
  882. package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
  883. package/dist/schemas/runtime/runtime-run.schema.js +30 -0
  884. package/dist/schemas/security/index.d.ts +3 -0
  885. package/dist/schemas/security/index.js +19 -0
  886. package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
  887. package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
  888. package/dist/schemas/security/security-finding.schema.d.ts +546 -0
  889. package/dist/schemas/security/security-finding.schema.js +138 -0
  890. package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
  891. package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
  892. package/dist/schemas/task-complexity.schema.d.ts +3 -0
  893. package/dist/schemas/task-complexity.schema.js +6 -0
  894. package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
  895. package/dist/schemas/task-evidence-expectations.schema.js +35 -0
  896. package/dist/schemas/traceability/index.d.ts +2 -0
  897. package/dist/schemas/traceability/index.js +18 -0
  898. package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
  899. package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
  900. package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
  901. package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
  902. package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
  903. package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
  904. package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
  905. package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
  906. package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
  907. package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
  908. package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
  909. package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
  910. package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
  911. package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
  912. package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
  913. package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
  914. package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
  915. package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
  916. package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
  917. package/dist/schemas/workflow/context-bundle.schema.js +62 -0
  918. package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
  919. package/dist/schemas/workflow/context-contamination.schema.js +65 -0
  920. package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
  921. package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
  922. package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
  923. package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
  924. package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
  925. package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
  926. package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
  927. package/dist/schemas/workflow/engineering-context.schema.js +566 -0
  928. package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
  929. package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
  930. package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
  931. package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
  932. package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
  933. package/dist/schemas/workflow/findings-register.schema.js +35 -0
  934. package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
  935. package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
  936. package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
  937. package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
  938. package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
  939. package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
  940. package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
  941. package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
  942. package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
  943. package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
  944. package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
  945. package/dist/schemas/workflow/import-validity.schema.js +71 -0
  946. package/dist/schemas/workflow/index.d.ts +14 -0
  947. package/dist/schemas/workflow/index.js +30 -0
  948. package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
  949. package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
  950. package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
  951. package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
  952. package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
  953. package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
  954. package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
  955. package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
  956. package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
  957. package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
  958. package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
  959. package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
  960. package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
  961. package/dist/schemas/workflow/plan-approval.schema.js +102 -0
  962. package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
  963. package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
  964. package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
  965. package/dist/schemas/workflow/product-realization.schema.js +207 -0
  966. package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
  967. package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
  968. package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
  969. package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
  970. package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
  971. package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
  972. package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
  973. package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
  974. package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
  975. package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
  976. package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
  977. package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
  978. package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
  979. package/dist/schemas/workflow/route-manifest.schema.js +82 -0
  980. package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
  981. package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
  982. package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
  983. package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
  984. package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
  985. package/dist/schemas/workflow/ship-closure.schema.js +96 -0
  986. package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
  987. package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
  988. package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
  989. package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
  990. package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
  991. package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
  992. package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
  993. package/dist/schemas/workflow/step-gate.schema.js +90 -0
  994. package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
  995. package/dist/schemas/workflow/task-capsule.schema.js +99 -0
  996. package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
  997. package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
  998. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
  999. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
  1000. package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
  1001. package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
  1002. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
  1003. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
  1004. package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
  1005. package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
  1006. package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
  1007. package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
  1008. package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
  1009. package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
  1010. package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
  1011. package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
  1012. package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
  1013. package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
  1014. package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
  1015. package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
  1016. package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
  1017. package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
  1018. package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
  1019. package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
  1020. package/dist/schemas/workflow-progression.d.ts +1955 -0
  1021. package/dist/schemas/workflow-progression.js +259 -0
  1022. package/dist/telemetry/index.d.ts +194 -0
  1023. package/dist/telemetry/index.js +93 -0
  1024. package/dist/transformation/canonical-semantic-model.d.ts +233 -0
  1025. package/dist/transformation/canonical-semantic-model.js +61 -0
  1026. package/dist/transformation/index.d.ts +6 -0
  1027. package/dist/transformation/index.js +22 -0
  1028. package/dist/transformation/transformation-registry.d.ts +136 -0
  1029. package/dist/transformation/transformation-registry.js +100 -0
  1030. package/dist/types/ai-responses.d.ts +98 -0
  1031. package/dist/types/ai-responses.js +42 -0
  1032. package/dist/types/ai.d.ts +4 -0
  1033. package/dist/types/ai.js +2 -0
  1034. package/dist/types/audiobook-embed.d.ts +22 -0
  1035. package/dist/types/audiobook-embed.js +2 -0
  1036. package/dist/types/audiobook.d.ts +30 -0
  1037. package/dist/types/audiobook.js +2 -0
  1038. package/dist/types/chapter-revision.types.d.ts +6 -0
  1039. package/dist/types/chapter-revision.types.js +6 -0
  1040. package/dist/types/ci.d.ts +14 -0
  1041. package/dist/types/ci.js +2 -0
  1042. package/dist/types/codebase.d.ts +309 -0
  1043. package/dist/types/codebase.js +83 -0
  1044. package/dist/types/community-credit-transaction-type.d.ts +2 -0
  1045. package/dist/types/community-credit-transaction-type.js +9 -0
  1046. package/dist/types/community-membership-tier.d.ts +2 -0
  1047. package/dist/types/community-membership-tier.js +4 -0
  1048. package/dist/types/community-operator-role.d.ts +9 -0
  1049. package/dist/types/community-operator-role.js +13 -0
  1050. package/dist/types/community-stage.d.ts +3 -0
  1051. package/dist/types/community-stage.js +19 -0
  1052. package/dist/types/graph-canvas.d.ts +109 -0
  1053. package/dist/types/graph-canvas.js +25 -0
  1054. package/dist/types/graph-question-mapping.d.ts +33 -0
  1055. package/dist/types/graph-question-mapping.js +36 -0
  1056. package/dist/types/index.d.ts +2187 -0
  1057. package/dist/types/index.js +53 -0
  1058. package/dist/types/manuscript-checks.d.ts +1 -0
  1059. package/dist/types/manuscript-checks.js +2 -0
  1060. package/dist/types/orchestration-execution.d.ts +16 -0
  1061. package/dist/types/orchestration-execution.js +5 -0
  1062. package/dist/types/product-readiness.d.ts +44 -0
  1063. package/dist/types/product-readiness.js +2 -0
  1064. package/dist/types/product-route-manifest.d.ts +5 -0
  1065. package/dist/types/product-route-manifest.js +21 -0
  1066. package/dist/types/project-capabilities.d.ts +20 -0
  1067. package/dist/types/project-capabilities.js +40 -0
  1068. package/dist/types/project-kind.d.ts +68 -0
  1069. package/dist/types/project-kind.js +216 -0
  1070. package/dist/types/pwa.d.ts +29 -0
  1071. package/dist/types/pwa.js +6 -0
  1072. package/dist/types/repo.d.ts +2 -0
  1073. package/dist/types/repo.js +2 -0
  1074. package/dist/types/resolve-model-policy-input.d.ts +37 -0
  1075. package/dist/types/resolve-model-policy-input.js +2 -0
  1076. package/dist/types/settings.d.ts +13 -0
  1077. package/dist/types/settings.js +20 -0
  1078. package/dist/types/supabase-generated.d.ts +1122 -0
  1079. package/dist/types/supabase-generated.js +13 -0
  1080. package/dist/types/workflow-action-panel.d.ts +41 -0
  1081. package/dist/types/workflow-action-panel.js +2 -0
  1082. package/dist/types/workflow-command-center.d.ts +50 -0
  1083. package/dist/types/workflow-command-center.js +6 -0
  1084. package/dist/types/workflow-completion.d.ts +154 -0
  1085. package/dist/types/workflow-completion.js +2 -0
  1086. package/dist/types/workflow-graph.d.ts +786 -0
  1087. package/dist/types/workflow-graph.js +119 -0
  1088. package/dist/ui/domain-templates.d.ts +35 -0
  1089. package/dist/ui/domain-templates.js +242 -0
  1090. package/dist/utils/github-closing-keywords.d.ts +8 -0
  1091. package/dist/utils/github-closing-keywords.js +27 -0
  1092. package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
  1093. package/dist/utils/implement-pr-batch-policy.js +72 -0
  1094. package/dist/utils/implement-pr-batch.d.ts +19 -0
  1095. package/dist/utils/implement-pr-batch.js +95 -0
  1096. package/dist/utils/implement-pr-metadata.d.ts +32 -0
  1097. package/dist/utils/implement-pr-metadata.js +41 -0
  1098. package/dist/workflow/api-route-key-resolver.d.ts +11 -0
  1099. package/dist/workflow/api-route-key-resolver.js +51 -0
  1100. package/dist/workflow/assurance-selector-keys.d.ts +134 -0
  1101. package/dist/workflow/assurance-selector-keys.js +145 -0
  1102. package/dist/workflow/channel-registry.d.ts +959 -0
  1103. package/dist/workflow/channel-registry.js +1475 -0
  1104. package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
  1105. package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
  1106. package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
  1107. package/dist/workflow/evaluate-ingest-gate.js +168 -0
  1108. package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
  1109. package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
  1110. package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
  1111. package/dist/workflow/existing-codebase-step-area-map.js +22 -0
  1112. package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
  1113. package/dist/workflow/film-spine-nav-aliases.js +76 -0
  1114. package/dist/workflow/index.d.ts +23 -0
  1115. package/dist/workflow/index.js +39 -0
  1116. package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
  1117. package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
  1118. package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
  1119. package/dist/workflow/is-repository-scan-complete.js +28 -0
  1120. package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
  1121. package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
  1122. package/dist/workflow/project-kind-normalizer.d.ts +34 -0
  1123. package/dist/workflow/project-kind-normalizer.js +162 -0
  1124. package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
  1125. package/dist/workflow/resolve-workflow-variant.js +101 -0
  1126. package/dist/workflow/step-id-canonical.d.ts +26 -0
  1127. package/dist/workflow/step-id-canonical.js +58 -0
  1128. package/dist/workflow/test-obligation-policy.d.ts +12 -0
  1129. package/dist/workflow/test-obligation-policy.js +82 -0
  1130. package/dist/workflow/test-policy-registry.d.ts +45 -0
  1131. package/dist/workflow/test-policy-registry.js +190 -0
  1132. package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
  1133. package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
  1134. package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
  1135. package/dist/workflow/workflow-assurance-manifest.js +309 -0
  1136. package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
  1137. package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
  1138. package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
  1139. package/dist/workflow/workflow-doctor-closure.js +245 -0
  1140. package/package.json +82 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,2235 @@
1
+ /**
2
+ * Engineering Context — durable, revision-aware task context that survives agent resets.
3
+ *
4
+ * Connects the existing mechanisms (task capsule → context bundle → durable execution
5
+ * spine → workflow artifacts) into one task-specific workflow:
6
+ *
7
+ * capsule (intake) → engineering brief (evidence assembly, bounded)
8
+ * → task checkpoint (durable milestones, provider-independent)
9
+ * → verification result (what was genuinely tested)
10
+ * → resume (invalidate stale evidence, rebuild brief, continue)
11
+ *
12
+ * Canonical storage: workflow_artifacts rows with artifact_type in
13
+ * 'engineeringBrief' | 'taskCheckpoint' | 'verificationResult'.
14
+ * Execution linkage: execution_runs / execution_tasks (CAN-021) — never a second spine.
15
+ *
16
+ * Source facts, accepted decisions and hypotheses are separate fields by design:
17
+ * an agent's plausible interpretation must never become an authoritative fact
18
+ * merely because it was saved.
19
+ */
20
+ import { z } from 'zod';
21
+ export declare const ENGINEERING_CONTEXT_SCHEMA_VERSION: "1.0.0";
22
+ /** Starting budget for a worker brief (chars ≈ tokens × 4). Tunable, not a universal limit. */
23
+ export declare const ENGINEERING_BRIEF_DEFAULT_MAX_CHARS: 24000;
24
+ export declare const ENGINEERING_BRIEF_MAX_EVIDENCE_REFS: 200;
25
+ export declare const ENGINEERING_BRIEF_MAX_RELATIONSHIPS: 400;
26
+ export declare const VERIFICATION_ERROR_EXCERPT_MAX_CHARS: 4000;
27
+ export declare const CommitShaSchema: z.ZodString;
28
+ export declare const RevisionRoleSchema: z.ZodEnum<["primary", "dependency", "consumer"]>;
29
+ export type RevisionRole = z.infer<typeof RevisionRoleSchema>;
30
+ /**
31
+ * One participating repository at an exact revision. A task across connected
32
+ * codebases needs one entry per repo — a single commit SHA is insufficient.
33
+ * `installedVersions` records what a consuming app actually has installed of a
34
+ * shared package so an agent cannot assume a new producer API is available.
35
+ */
36
+ export declare const RevisionMapEntrySchema: z.ZodObject<{
37
+ repo: z.ZodString;
38
+ branch: z.ZodNullable<z.ZodString>;
39
+ commit: z.ZodString;
40
+ dirty: z.ZodDefault<z.ZodBoolean>;
41
+ uncommittedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
42
+ role: z.ZodDefault<z.ZodEnum<["primary", "dependency", "consumer"]>>;
43
+ installedVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ repo: string;
46
+ dirty: boolean;
47
+ branch: string | null;
48
+ role: "primary" | "dependency" | "consumer";
49
+ commit: string;
50
+ uncommittedFiles: string[];
51
+ installedVersions?: Record<string, string> | undefined;
52
+ }, {
53
+ repo: string;
54
+ branch: string | null;
55
+ commit: string;
56
+ dirty?: boolean | undefined;
57
+ role?: "primary" | "dependency" | "consumer" | undefined;
58
+ uncommittedFiles?: string[] | undefined;
59
+ installedVersions?: Record<string, string> | undefined;
60
+ }>;
61
+ export type RevisionMapEntry = z.infer<typeof RevisionMapEntrySchema>;
62
+ export declare const RevisionMapSchema: z.ZodArray<z.ZodObject<{
63
+ repo: z.ZodString;
64
+ branch: z.ZodNullable<z.ZodString>;
65
+ commit: z.ZodString;
66
+ dirty: z.ZodDefault<z.ZodBoolean>;
67
+ uncommittedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
68
+ role: z.ZodDefault<z.ZodEnum<["primary", "dependency", "consumer"]>>;
69
+ installedVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ repo: string;
72
+ dirty: boolean;
73
+ branch: string | null;
74
+ role: "primary" | "dependency" | "consumer";
75
+ commit: string;
76
+ uncommittedFiles: string[];
77
+ installedVersions?: Record<string, string> | undefined;
78
+ }, {
79
+ repo: string;
80
+ branch: string | null;
81
+ commit: string;
82
+ dirty?: boolean | undefined;
83
+ role?: "primary" | "dependency" | "consumer" | undefined;
84
+ uncommittedFiles?: string[] | undefined;
85
+ installedVersions?: Record<string, string> | undefined;
86
+ }>, "many">;
87
+ export type RevisionMap = z.infer<typeof RevisionMapSchema>;
88
+ export declare const EvidenceKindSchema: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
89
+ export type EvidenceKind = z.infer<typeof EvidenceKindSchema>;
90
+ /** How an evidence item was selected — exact resolution ranks above keyword hits. */
91
+ export declare const EvidenceRelevanceSchema: z.ZodEnum<["exact", "dependency", "reference", "governance", "keyword"]>;
92
+ export type EvidenceRelevance = z.infer<typeof EvidenceRelevanceSchema>;
93
+ export declare const EvidenceRefSchema: z.ZodObject<{
94
+ /** Stable evidence id, e.g. `node:<uuid>`, `file:<path>`, `drift:<finding-id>`. */
95
+ id: z.ZodString;
96
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
97
+ /** Path, stable key, artifact uuid, route path or finding id the id points at. */
98
+ ref: z.ZodString;
99
+ label: z.ZodOptional<z.ZodString>;
100
+ repo: z.ZodOptional<z.ZodString>;
101
+ /** Commit the evidence was observed at; null when not revision-bound. */
102
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
103
+ /** Content hash (sha256) when the evidence body was hashed; null otherwise. */
104
+ contentHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
105
+ relevance: z.ZodEnum<["exact", "dependency", "reference", "governance", "keyword"]>;
106
+ /** Resolver that selected this item (symbol_index, dependency_traversal, …). */
107
+ selectedBy: z.ZodOptional<z.ZodString>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ id: string;
110
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
111
+ ref: string;
112
+ revision: string | null;
113
+ contentHash: string | null;
114
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
115
+ repo?: string | undefined;
116
+ label?: string | undefined;
117
+ selectedBy?: string | undefined;
118
+ }, {
119
+ id: string;
120
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
121
+ ref: string;
122
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
123
+ repo?: string | undefined;
124
+ label?: string | undefined;
125
+ revision?: string | null | undefined;
126
+ contentHash?: string | null | undefined;
127
+ selectedBy?: string | undefined;
128
+ }>;
129
+ export type EvidenceRef = z.infer<typeof EvidenceRefSchema>;
130
+ export declare const EvidenceRelationshipSchema: z.ZodObject<{
131
+ sourceId: z.ZodString;
132
+ targetId: z.ZodString;
133
+ relation: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ sourceId: string;
136
+ targetId: string;
137
+ relation: string;
138
+ }, {
139
+ sourceId: string;
140
+ targetId: string;
141
+ relation: string;
142
+ }>;
143
+ export type EvidenceRelationship = z.infer<typeof EvidenceRelationshipSchema>;
144
+ /** Explicit, expandable truncation: what was left out and how to fetch more. */
145
+ export declare const EvidenceOmissionSchema: z.ZodObject<{
146
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
147
+ totalCount: z.ZodNumber;
148
+ omittedCount: z.ZodNumber;
149
+ continuationToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
152
+ totalCount: number;
153
+ omittedCount: number;
154
+ continuationToken: string | null;
155
+ }, {
156
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
157
+ totalCount: number;
158
+ omittedCount: number;
159
+ continuationToken?: string | null | undefined;
160
+ }>;
161
+ export type EvidenceOmission = z.infer<typeof EvidenceOmissionSchema>;
162
+ export declare const MandatoryRuleSourceSchema: z.ZodEnum<["constitution", "repo_policy", "tombstone", "ownership", "capsule", "agent_rules"]>;
163
+ /** Governing requirements that context reduction must never drop. */
164
+ export declare const MandatoryRuleSchema: z.ZodObject<{
165
+ id: z.ZodString;
166
+ source: z.ZodEnum<["constitution", "repo_policy", "tombstone", "ownership", "capsule", "agent_rules"]>;
167
+ text: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ id: string;
170
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
171
+ text: string;
172
+ }, {
173
+ id: string;
174
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
175
+ text: string;
176
+ }>;
177
+ export type MandatoryRule = z.infer<typeof MandatoryRuleSchema>;
178
+ export declare const DecisionSourceSchema: z.ZodEnum<["human", "agent"]>;
179
+ export declare const DecisionSchema: z.ZodObject<{
180
+ id: z.ZodString;
181
+ decision: z.ZodString;
182
+ rationale: z.ZodDefault<z.ZodString>;
183
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
184
+ source: z.ZodEnum<["human", "agent"]>;
185
+ decidedAt: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ id: string;
188
+ source: "agent" | "human";
189
+ decidedAt: string;
190
+ decision: string;
191
+ rationale: string;
192
+ evidenceIds: string[];
193
+ }, {
194
+ id: string;
195
+ source: "agent" | "human";
196
+ decidedAt: string;
197
+ decision: string;
198
+ rationale?: string | undefined;
199
+ evidenceIds?: string[] | undefined;
200
+ }>;
201
+ export type Decision = z.infer<typeof DecisionSchema>;
202
+ export declare const HypothesisStatusSchema: z.ZodEnum<["open", "confirmed", "rejected"]>;
203
+ export declare const HypothesisSchema: z.ZodObject<{
204
+ id: z.ZodString;
205
+ statement: z.ZodString;
206
+ status: z.ZodEnum<["open", "confirmed", "rejected"]>;
207
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
208
+ note: z.ZodOptional<z.ZodString>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ id: string;
211
+ status: "rejected" | "open" | "confirmed";
212
+ statement: string;
213
+ evidenceIds: string[];
214
+ note?: string | undefined;
215
+ }, {
216
+ id: string;
217
+ status: "rejected" | "open" | "confirmed";
218
+ statement: string;
219
+ note?: string | undefined;
220
+ evidenceIds?: string[] | undefined;
221
+ }>;
222
+ export type Hypothesis = z.infer<typeof HypothesisSchema>;
223
+ export declare const KnownFailureStatusSchema: z.ZodEnum<["open", "resolved", "rejected"]>;
224
+ export declare const KnownFailureSchema: z.ZodObject<{
225
+ id: z.ZodString;
226
+ summary: z.ZodString;
227
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
228
+ status: z.ZodDefault<z.ZodEnum<["open", "resolved", "rejected"]>>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ id: string;
231
+ status: "rejected" | "open" | "resolved";
232
+ summary: string;
233
+ evidenceIds: string[];
234
+ }, {
235
+ id: string;
236
+ summary: string;
237
+ status?: "rejected" | "open" | "resolved" | undefined;
238
+ evidenceIds?: string[] | undefined;
239
+ }>;
240
+ export type KnownFailure = z.infer<typeof KnownFailureSchema>;
241
+ export declare const PatchRefSchema: z.ZodObject<{
242
+ repo: z.ZodString;
243
+ branch: z.ZodNullable<z.ZodString>;
244
+ worktree: z.ZodDefault<z.ZodNullable<z.ZodString>>;
245
+ headSha: z.ZodNullable<z.ZodString>;
246
+ dirty: z.ZodDefault<z.ZodBoolean>;
247
+ /** sha256 of the current diff, so a resumed agent can detect a changed patch. */
248
+ diffHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
249
+ patchArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ repo: string;
252
+ dirty: boolean;
253
+ branch: string | null;
254
+ headSha: string | null;
255
+ worktree: string | null;
256
+ diffHash: string | null;
257
+ patchArtifactId: string | null;
258
+ }, {
259
+ repo: string;
260
+ branch: string | null;
261
+ headSha: string | null;
262
+ dirty?: boolean | undefined;
263
+ worktree?: string | null | undefined;
264
+ diffHash?: string | null | undefined;
265
+ patchArtifactId?: string | null | undefined;
266
+ }>;
267
+ export type PatchRef = z.infer<typeof PatchRefSchema>;
268
+ export declare const VerificationStatusSchema: z.ZodEnum<["passed", "failed", "blocked", "not_run"]>;
269
+ export type VerificationStatus = z.infer<typeof VerificationStatusSchema>;
270
+ export declare const ToolchainIdentitySchema: z.ZodObject<{
271
+ node: z.ZodOptional<z.ZodString>;
272
+ pnpm: z.ZodOptional<z.ZodString>;
273
+ os: z.ZodOptional<z.ZodString>;
274
+ environment: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ environment?: string | undefined;
277
+ pnpm?: string | undefined;
278
+ node?: string | undefined;
279
+ os?: string | undefined;
280
+ }, {
281
+ environment?: string | undefined;
282
+ pnpm?: string | undefined;
283
+ node?: string | undefined;
284
+ os?: string | undefined;
285
+ }>;
286
+ /**
287
+ * One verification result: exact revision + patch tested, command identity,
288
+ * failure excerpt first, full log on demand. Producer tests passing does not
289
+ * prove the consumer still works — `contractSides` records both.
290
+ */
291
+ export declare const VerificationResultPayloadSchema: z.ZodObject<{
292
+ schemaVersion: z.ZodLiteral<"1.0.0">;
293
+ taskId: z.ZodString;
294
+ checkpointSequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
295
+ revision: z.ZodObject<{
296
+ repo: z.ZodString;
297
+ commit: z.ZodString;
298
+ }, "strip", z.ZodTypeAny, {
299
+ repo: string;
300
+ commit: string;
301
+ }, {
302
+ repo: string;
303
+ commit: string;
304
+ }>;
305
+ patchRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
306
+ repo: z.ZodString;
307
+ branch: z.ZodNullable<z.ZodString>;
308
+ worktree: z.ZodDefault<z.ZodNullable<z.ZodString>>;
309
+ headSha: z.ZodNullable<z.ZodString>;
310
+ dirty: z.ZodDefault<z.ZodBoolean>;
311
+ /** sha256 of the current diff, so a resumed agent can detect a changed patch. */
312
+ diffHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
313
+ patchArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ repo: string;
316
+ dirty: boolean;
317
+ branch: string | null;
318
+ headSha: string | null;
319
+ worktree: string | null;
320
+ diffHash: string | null;
321
+ patchArtifactId: string | null;
322
+ }, {
323
+ repo: string;
324
+ branch: string | null;
325
+ headSha: string | null;
326
+ dirty?: boolean | undefined;
327
+ worktree?: string | null | undefined;
328
+ diffHash?: string | null | undefined;
329
+ patchArtifactId?: string | null | undefined;
330
+ }>>>;
331
+ command: z.ZodString;
332
+ cwd: z.ZodString;
333
+ toolchain: z.ZodDefault<z.ZodObject<{
334
+ node: z.ZodOptional<z.ZodString>;
335
+ pnpm: z.ZodOptional<z.ZodString>;
336
+ os: z.ZodOptional<z.ZodString>;
337
+ environment: z.ZodOptional<z.ZodString>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ environment?: string | undefined;
340
+ pnpm?: string | undefined;
341
+ node?: string | undefined;
342
+ os?: string | undefined;
343
+ }, {
344
+ environment?: string | undefined;
345
+ pnpm?: string | undefined;
346
+ node?: string | undefined;
347
+ os?: string | undefined;
348
+ }>>;
349
+ exitCode: z.ZodNullable<z.ZodNumber>;
350
+ status: z.ZodEnum<["passed", "failed", "blocked", "not_run"]>;
351
+ failingTests: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
352
+ errorExcerpt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
353
+ logArtifactRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
354
+ /** True when the same failure reproduces without the patch; null when unknown. */
355
+ preExistingFailure: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
356
+ affectedSymbols: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
357
+ contractSides: z.ZodOptional<z.ZodObject<{
358
+ producer: z.ZodOptional<z.ZodEnum<["passed", "failed", "blocked", "not_run"]>>;
359
+ consumer: z.ZodOptional<z.ZodEnum<["passed", "failed", "blocked", "not_run"]>>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
362
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
363
+ }, {
364
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
365
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
366
+ }>>;
367
+ durationMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
368
+ recordedAt: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ status: "failed" | "blocked" | "passed" | "not_run";
371
+ schemaVersion: "1.0.0";
372
+ recordedAt: string;
373
+ durationMs: number | null;
374
+ taskId: string;
375
+ revision: {
376
+ repo: string;
377
+ commit: string;
378
+ };
379
+ command: string;
380
+ checkpointSequence: number | null;
381
+ patchRef: {
382
+ repo: string;
383
+ dirty: boolean;
384
+ branch: string | null;
385
+ headSha: string | null;
386
+ worktree: string | null;
387
+ diffHash: string | null;
388
+ patchArtifactId: string | null;
389
+ } | null;
390
+ cwd: string;
391
+ toolchain: {
392
+ environment?: string | undefined;
393
+ pnpm?: string | undefined;
394
+ node?: string | undefined;
395
+ os?: string | undefined;
396
+ };
397
+ exitCode: number | null;
398
+ failingTests: string[];
399
+ errorExcerpt: string | null;
400
+ logArtifactRef: string | null;
401
+ preExistingFailure: boolean | null;
402
+ affectedSymbols: string[];
403
+ contractSides?: {
404
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
405
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
406
+ } | undefined;
407
+ }, {
408
+ status: "failed" | "blocked" | "passed" | "not_run";
409
+ schemaVersion: "1.0.0";
410
+ recordedAt: string;
411
+ taskId: string;
412
+ revision: {
413
+ repo: string;
414
+ commit: string;
415
+ };
416
+ command: string;
417
+ cwd: string;
418
+ exitCode: number | null;
419
+ durationMs?: number | null | undefined;
420
+ checkpointSequence?: number | null | undefined;
421
+ patchRef?: {
422
+ repo: string;
423
+ branch: string | null;
424
+ headSha: string | null;
425
+ dirty?: boolean | undefined;
426
+ worktree?: string | null | undefined;
427
+ diffHash?: string | null | undefined;
428
+ patchArtifactId?: string | null | undefined;
429
+ } | null | undefined;
430
+ toolchain?: {
431
+ environment?: string | undefined;
432
+ pnpm?: string | undefined;
433
+ node?: string | undefined;
434
+ os?: string | undefined;
435
+ } | undefined;
436
+ failingTests?: string[] | undefined;
437
+ errorExcerpt?: string | null | undefined;
438
+ logArtifactRef?: string | null | undefined;
439
+ preExistingFailure?: boolean | null | undefined;
440
+ affectedSymbols?: string[] | undefined;
441
+ contractSides?: {
442
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
443
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
444
+ } | undefined;
445
+ }>;
446
+ export type VerificationResultPayload = z.infer<typeof VerificationResultPayloadSchema>;
447
+ export declare const InvestigationMethodSchema: z.ZodEnum<["symbol_index", "dependency_traversal", "route_trace", "knowledge_retrieval", "git_diff", "test_mapping", "manual"]>;
448
+ export type InvestigationMethod = z.infer<typeof InvestigationMethodSchema>;
449
+ export declare const CompletedInvestigationSchema: z.ZodObject<{
450
+ id: z.ZodString;
451
+ query: z.ZodString;
452
+ method: z.ZodEnum<["symbol_index", "dependency_traversal", "route_trace", "knowledge_retrieval", "git_diff", "test_mapping", "manual"]>;
453
+ summary: z.ZodDefault<z.ZodString>;
454
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ id: string;
457
+ summary: string;
458
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
459
+ query: string;
460
+ evidenceIds: string[];
461
+ }, {
462
+ id: string;
463
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
464
+ query: string;
465
+ summary?: string | undefined;
466
+ evidenceIds?: string[] | undefined;
467
+ }>;
468
+ export type CompletedInvestigation = z.infer<typeof CompletedInvestigationSchema>;
469
+ export declare const EngineeringBriefBudgetSchema: z.ZodObject<{
470
+ maxChars: z.ZodNumber;
471
+ usedChars: z.ZodNumber;
472
+ estimatedTokens: z.ZodNumber;
473
+ }, "strip", z.ZodTypeAny, {
474
+ maxChars: number;
475
+ usedChars: number;
476
+ estimatedTokens: number;
477
+ }, {
478
+ maxChars: number;
479
+ usedChars: number;
480
+ estimatedTokens: number;
481
+ }>;
482
+ /**
483
+ * The compact worker brief. Objective → rules → relevant implementation →
484
+ * relationships → known failures → acceptance criteria → next action.
485
+ */
486
+ export declare const EngineeringBriefPayloadSchema: z.ZodObject<{
487
+ schemaVersion: z.ZodLiteral<"1.0.0">;
488
+ taskId: z.ZodString;
489
+ capsuleArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
490
+ /** Execution task (execution_tasks.id) whose checkpoint this brief was built from. */
491
+ executionTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
492
+ executionRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
493
+ compiledAt: z.ZodString;
494
+ objective: z.ZodString;
495
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
496
+ mandatoryRules: z.ZodArray<z.ZodObject<{
497
+ id: z.ZodString;
498
+ source: z.ZodEnum<["constitution", "repo_policy", "tombstone", "ownership", "capsule", "agent_rules"]>;
499
+ text: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ id: string;
502
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
503
+ text: string;
504
+ }, {
505
+ id: string;
506
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
507
+ text: string;
508
+ }>, "many">;
509
+ revisionMap: z.ZodArray<z.ZodObject<{
510
+ repo: z.ZodString;
511
+ branch: z.ZodNullable<z.ZodString>;
512
+ commit: z.ZodString;
513
+ dirty: z.ZodDefault<z.ZodBoolean>;
514
+ uncommittedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
515
+ role: z.ZodDefault<z.ZodEnum<["primary", "dependency", "consumer"]>>;
516
+ installedVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ repo: string;
519
+ dirty: boolean;
520
+ branch: string | null;
521
+ role: "primary" | "dependency" | "consumer";
522
+ commit: string;
523
+ uncommittedFiles: string[];
524
+ installedVersions?: Record<string, string> | undefined;
525
+ }, {
526
+ repo: string;
527
+ branch: string | null;
528
+ commit: string;
529
+ dirty?: boolean | undefined;
530
+ role?: "primary" | "dependency" | "consumer" | undefined;
531
+ uncommittedFiles?: string[] | undefined;
532
+ installedVersions?: Record<string, string> | undefined;
533
+ }>, "many">;
534
+ policyVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
535
+ selectedEvidence: z.ZodArray<z.ZodObject<{
536
+ /** Stable evidence id, e.g. `node:<uuid>`, `file:<path>`, `drift:<finding-id>`. */
537
+ id: z.ZodString;
538
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
539
+ /** Path, stable key, artifact uuid, route path or finding id the id points at. */
540
+ ref: z.ZodString;
541
+ label: z.ZodOptional<z.ZodString>;
542
+ repo: z.ZodOptional<z.ZodString>;
543
+ /** Commit the evidence was observed at; null when not revision-bound. */
544
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
545
+ /** Content hash (sha256) when the evidence body was hashed; null otherwise. */
546
+ contentHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
547
+ relevance: z.ZodEnum<["exact", "dependency", "reference", "governance", "keyword"]>;
548
+ /** Resolver that selected this item (symbol_index, dependency_traversal, …). */
549
+ selectedBy: z.ZodOptional<z.ZodString>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ id: string;
552
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
553
+ ref: string;
554
+ revision: string | null;
555
+ contentHash: string | null;
556
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
557
+ repo?: string | undefined;
558
+ label?: string | undefined;
559
+ selectedBy?: string | undefined;
560
+ }, {
561
+ id: string;
562
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
563
+ ref: string;
564
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
565
+ repo?: string | undefined;
566
+ label?: string | undefined;
567
+ revision?: string | null | undefined;
568
+ contentHash?: string | null | undefined;
569
+ selectedBy?: string | undefined;
570
+ }>, "many">;
571
+ relationships: z.ZodArray<z.ZodObject<{
572
+ sourceId: z.ZodString;
573
+ targetId: z.ZodString;
574
+ relation: z.ZodString;
575
+ }, "strip", z.ZodTypeAny, {
576
+ sourceId: string;
577
+ targetId: string;
578
+ relation: string;
579
+ }, {
580
+ sourceId: string;
581
+ targetId: string;
582
+ relation: string;
583
+ }>, "many">;
584
+ omissions: z.ZodArray<z.ZodObject<{
585
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
586
+ totalCount: z.ZodNumber;
587
+ omittedCount: z.ZodNumber;
588
+ continuationToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
591
+ totalCount: number;
592
+ omittedCount: number;
593
+ continuationToken: string | null;
594
+ }, {
595
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
596
+ totalCount: number;
597
+ omittedCount: number;
598
+ continuationToken?: string | null | undefined;
599
+ }>, "many">;
600
+ knownFailures: z.ZodArray<z.ZodObject<{
601
+ id: z.ZodString;
602
+ summary: z.ZodString;
603
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
604
+ status: z.ZodDefault<z.ZodEnum<["open", "resolved", "rejected"]>>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ id: string;
607
+ status: "rejected" | "open" | "resolved";
608
+ summary: string;
609
+ evidenceIds: string[];
610
+ }, {
611
+ id: string;
612
+ summary: string;
613
+ status?: "rejected" | "open" | "resolved" | undefined;
614
+ evidenceIds?: string[] | undefined;
615
+ }>, "many">;
616
+ priorDecisions: z.ZodArray<z.ZodObject<{
617
+ id: z.ZodString;
618
+ decision: z.ZodString;
619
+ rationale: z.ZodDefault<z.ZodString>;
620
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
621
+ source: z.ZodEnum<["human", "agent"]>;
622
+ decidedAt: z.ZodString;
623
+ }, "strip", z.ZodTypeAny, {
624
+ id: string;
625
+ source: "agent" | "human";
626
+ decidedAt: string;
627
+ decision: string;
628
+ rationale: string;
629
+ evidenceIds: string[];
630
+ }, {
631
+ id: string;
632
+ source: "agent" | "human";
633
+ decidedAt: string;
634
+ decision: string;
635
+ rationale?: string | undefined;
636
+ evidenceIds?: string[] | undefined;
637
+ }>, "many">;
638
+ nextAction: z.ZodString;
639
+ budget: z.ZodObject<{
640
+ maxChars: z.ZodNumber;
641
+ usedChars: z.ZodNumber;
642
+ estimatedTokens: z.ZodNumber;
643
+ }, "strip", z.ZodTypeAny, {
644
+ maxChars: number;
645
+ usedChars: number;
646
+ estimatedTokens: number;
647
+ }, {
648
+ maxChars: number;
649
+ usedChars: number;
650
+ estimatedTokens: number;
651
+ }>;
652
+ /** Content-addressed identity: repos + revisions + policy + scope + task. */
653
+ cacheKey: z.ZodString;
654
+ /** Hash of the access scope (never raw scope identifiers). */
655
+ scopeKey: z.ZodString;
656
+ promptMarkdown: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ schemaVersion: "1.0.0";
659
+ executionRunId: string | null;
660
+ executionTaskId: string | null;
661
+ nextAction: string;
662
+ taskId: string;
663
+ acceptanceCriteria: string[];
664
+ budget: {
665
+ maxChars: number;
666
+ usedChars: number;
667
+ estimatedTokens: number;
668
+ };
669
+ compiledAt: string;
670
+ objective: string;
671
+ relationships: {
672
+ sourceId: string;
673
+ targetId: string;
674
+ relation: string;
675
+ }[];
676
+ capsuleArtifactId: string | null;
677
+ mandatoryRules: {
678
+ id: string;
679
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
680
+ text: string;
681
+ }[];
682
+ revisionMap: {
683
+ repo: string;
684
+ dirty: boolean;
685
+ branch: string | null;
686
+ role: "primary" | "dependency" | "consumer";
687
+ commit: string;
688
+ uncommittedFiles: string[];
689
+ installedVersions?: Record<string, string> | undefined;
690
+ }[];
691
+ policyVersion: string | null;
692
+ selectedEvidence: {
693
+ id: string;
694
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
695
+ ref: string;
696
+ revision: string | null;
697
+ contentHash: string | null;
698
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
699
+ repo?: string | undefined;
700
+ label?: string | undefined;
701
+ selectedBy?: string | undefined;
702
+ }[];
703
+ omissions: {
704
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
705
+ totalCount: number;
706
+ omittedCount: number;
707
+ continuationToken: string | null;
708
+ }[];
709
+ knownFailures: {
710
+ id: string;
711
+ status: "rejected" | "open" | "resolved";
712
+ summary: string;
713
+ evidenceIds: string[];
714
+ }[];
715
+ priorDecisions: {
716
+ id: string;
717
+ source: "agent" | "human";
718
+ decidedAt: string;
719
+ decision: string;
720
+ rationale: string;
721
+ evidenceIds: string[];
722
+ }[];
723
+ cacheKey: string;
724
+ scopeKey: string;
725
+ promptMarkdown: string;
726
+ }, {
727
+ schemaVersion: "1.0.0";
728
+ nextAction: string;
729
+ taskId: string;
730
+ acceptanceCriteria: string[];
731
+ budget: {
732
+ maxChars: number;
733
+ usedChars: number;
734
+ estimatedTokens: number;
735
+ };
736
+ compiledAt: string;
737
+ objective: string;
738
+ relationships: {
739
+ sourceId: string;
740
+ targetId: string;
741
+ relation: string;
742
+ }[];
743
+ mandatoryRules: {
744
+ id: string;
745
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
746
+ text: string;
747
+ }[];
748
+ revisionMap: {
749
+ repo: string;
750
+ branch: string | null;
751
+ commit: string;
752
+ dirty?: boolean | undefined;
753
+ role?: "primary" | "dependency" | "consumer" | undefined;
754
+ uncommittedFiles?: string[] | undefined;
755
+ installedVersions?: Record<string, string> | undefined;
756
+ }[];
757
+ selectedEvidence: {
758
+ id: string;
759
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
760
+ ref: string;
761
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
762
+ repo?: string | undefined;
763
+ label?: string | undefined;
764
+ revision?: string | null | undefined;
765
+ contentHash?: string | null | undefined;
766
+ selectedBy?: string | undefined;
767
+ }[];
768
+ omissions: {
769
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
770
+ totalCount: number;
771
+ omittedCount: number;
772
+ continuationToken?: string | null | undefined;
773
+ }[];
774
+ knownFailures: {
775
+ id: string;
776
+ summary: string;
777
+ status?: "rejected" | "open" | "resolved" | undefined;
778
+ evidenceIds?: string[] | undefined;
779
+ }[];
780
+ priorDecisions: {
781
+ id: string;
782
+ source: "agent" | "human";
783
+ decidedAt: string;
784
+ decision: string;
785
+ rationale?: string | undefined;
786
+ evidenceIds?: string[] | undefined;
787
+ }[];
788
+ cacheKey: string;
789
+ scopeKey: string;
790
+ promptMarkdown: string;
791
+ executionRunId?: string | null | undefined;
792
+ executionTaskId?: string | null | undefined;
793
+ capsuleArtifactId?: string | null | undefined;
794
+ policyVersion?: string | null | undefined;
795
+ }>;
796
+ export type EngineeringBriefPayload = z.infer<typeof EngineeringBriefPayloadSchema>;
797
+ export declare const CheckpointProviderSchema: z.ZodObject<{
798
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
799
+ responseId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
800
+ model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ responseId: string | null;
803
+ model: string | null;
804
+ conversationId: string | null;
805
+ }, {
806
+ responseId?: string | null | undefined;
807
+ model?: string | null | undefined;
808
+ conversationId?: string | null | undefined;
809
+ }>;
810
+ /**
811
+ * Durable milestone. Sufficient to resume in a fresh conversation with a
812
+ * different model; a provider conversation id is an optional convenience.
813
+ * Stores concise conclusions and evidence — never private reasoning.
814
+ */
815
+ export declare const TaskCheckpointPayloadSchema: z.ZodObject<{
816
+ schemaVersion: z.ZodLiteral<"1.0.0">;
817
+ taskId: z.ZodString;
818
+ executionRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
819
+ executionTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
820
+ cortexTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
821
+ sequence: z.ZodNumber;
822
+ milestone: z.ZodString;
823
+ createdAt: z.ZodString;
824
+ revisionMap: z.ZodArray<z.ZodObject<{
825
+ repo: z.ZodString;
826
+ branch: z.ZodNullable<z.ZodString>;
827
+ commit: z.ZodString;
828
+ dirty: z.ZodDefault<z.ZodBoolean>;
829
+ uncommittedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
830
+ role: z.ZodDefault<z.ZodEnum<["primary", "dependency", "consumer"]>>;
831
+ installedVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ repo: string;
834
+ dirty: boolean;
835
+ branch: string | null;
836
+ role: "primary" | "dependency" | "consumer";
837
+ commit: string;
838
+ uncommittedFiles: string[];
839
+ installedVersions?: Record<string, string> | undefined;
840
+ }, {
841
+ repo: string;
842
+ branch: string | null;
843
+ commit: string;
844
+ dirty?: boolean | undefined;
845
+ role?: "primary" | "dependency" | "consumer" | undefined;
846
+ uncommittedFiles?: string[] | undefined;
847
+ installedVersions?: Record<string, string> | undefined;
848
+ }>, "many">;
849
+ policyVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
850
+ completedInvestigation: z.ZodDefault<z.ZodArray<z.ZodObject<{
851
+ id: z.ZodString;
852
+ query: z.ZodString;
853
+ method: z.ZodEnum<["symbol_index", "dependency_traversal", "route_trace", "knowledge_retrieval", "git_diff", "test_mapping", "manual"]>;
854
+ summary: z.ZodDefault<z.ZodString>;
855
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
856
+ }, "strip", z.ZodTypeAny, {
857
+ id: string;
858
+ summary: string;
859
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
860
+ query: string;
861
+ evidenceIds: string[];
862
+ }, {
863
+ id: string;
864
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
865
+ query: string;
866
+ summary?: string | undefined;
867
+ evidenceIds?: string[] | undefined;
868
+ }>, "many">>;
869
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
870
+ /** Stable evidence id, e.g. `node:<uuid>`, `file:<path>`, `drift:<finding-id>`. */
871
+ id: z.ZodString;
872
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
873
+ /** Path, stable key, artifact uuid, route path or finding id the id points at. */
874
+ ref: z.ZodString;
875
+ label: z.ZodOptional<z.ZodString>;
876
+ repo: z.ZodOptional<z.ZodString>;
877
+ /** Commit the evidence was observed at; null when not revision-bound. */
878
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
879
+ /** Content hash (sha256) when the evidence body was hashed; null otherwise. */
880
+ contentHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
881
+ relevance: z.ZodEnum<["exact", "dependency", "reference", "governance", "keyword"]>;
882
+ /** Resolver that selected this item (symbol_index, dependency_traversal, …). */
883
+ selectedBy: z.ZodOptional<z.ZodString>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ id: string;
886
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
887
+ ref: string;
888
+ revision: string | null;
889
+ contentHash: string | null;
890
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
891
+ repo?: string | undefined;
892
+ label?: string | undefined;
893
+ selectedBy?: string | undefined;
894
+ }, {
895
+ id: string;
896
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
897
+ ref: string;
898
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
899
+ repo?: string | undefined;
900
+ label?: string | undefined;
901
+ revision?: string | null | undefined;
902
+ contentHash?: string | null | undefined;
903
+ selectedBy?: string | undefined;
904
+ }>, "many">>;
905
+ decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
906
+ id: z.ZodString;
907
+ decision: z.ZodString;
908
+ rationale: z.ZodDefault<z.ZodString>;
909
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
910
+ source: z.ZodEnum<["human", "agent"]>;
911
+ decidedAt: z.ZodString;
912
+ }, "strip", z.ZodTypeAny, {
913
+ id: string;
914
+ source: "agent" | "human";
915
+ decidedAt: string;
916
+ decision: string;
917
+ rationale: string;
918
+ evidenceIds: string[];
919
+ }, {
920
+ id: string;
921
+ source: "agent" | "human";
922
+ decidedAt: string;
923
+ decision: string;
924
+ rationale?: string | undefined;
925
+ evidenceIds?: string[] | undefined;
926
+ }>, "many">>;
927
+ hypotheses: z.ZodDefault<z.ZodArray<z.ZodObject<{
928
+ id: z.ZodString;
929
+ statement: z.ZodString;
930
+ status: z.ZodEnum<["open", "confirmed", "rejected"]>;
931
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
932
+ note: z.ZodOptional<z.ZodString>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ id: string;
935
+ status: "rejected" | "open" | "confirmed";
936
+ statement: string;
937
+ evidenceIds: string[];
938
+ note?: string | undefined;
939
+ }, {
940
+ id: string;
941
+ status: "rejected" | "open" | "confirmed";
942
+ statement: string;
943
+ note?: string | undefined;
944
+ evidenceIds?: string[] | undefined;
945
+ }>, "many">>;
946
+ patchRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
947
+ repo: z.ZodString;
948
+ branch: z.ZodNullable<z.ZodString>;
949
+ worktree: z.ZodDefault<z.ZodNullable<z.ZodString>>;
950
+ headSha: z.ZodNullable<z.ZodString>;
951
+ dirty: z.ZodDefault<z.ZodBoolean>;
952
+ /** sha256 of the current diff, so a resumed agent can detect a changed patch. */
953
+ diffHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
954
+ patchArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ repo: string;
957
+ dirty: boolean;
958
+ branch: string | null;
959
+ headSha: string | null;
960
+ worktree: string | null;
961
+ diffHash: string | null;
962
+ patchArtifactId: string | null;
963
+ }, {
964
+ repo: string;
965
+ branch: string | null;
966
+ headSha: string | null;
967
+ dirty?: boolean | undefined;
968
+ worktree?: string | null | undefined;
969
+ diffHash?: string | null | undefined;
970
+ patchArtifactId?: string | null | undefined;
971
+ }>>>;
972
+ verification: z.ZodDefault<z.ZodArray<z.ZodObject<{
973
+ schemaVersion: z.ZodLiteral<"1.0.0">;
974
+ taskId: z.ZodString;
975
+ checkpointSequence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
976
+ revision: z.ZodObject<{
977
+ repo: z.ZodString;
978
+ commit: z.ZodString;
979
+ }, "strip", z.ZodTypeAny, {
980
+ repo: string;
981
+ commit: string;
982
+ }, {
983
+ repo: string;
984
+ commit: string;
985
+ }>;
986
+ patchRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
987
+ repo: z.ZodString;
988
+ branch: z.ZodNullable<z.ZodString>;
989
+ worktree: z.ZodDefault<z.ZodNullable<z.ZodString>>;
990
+ headSha: z.ZodNullable<z.ZodString>;
991
+ dirty: z.ZodDefault<z.ZodBoolean>;
992
+ /** sha256 of the current diff, so a resumed agent can detect a changed patch. */
993
+ diffHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
994
+ patchArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ repo: string;
997
+ dirty: boolean;
998
+ branch: string | null;
999
+ headSha: string | null;
1000
+ worktree: string | null;
1001
+ diffHash: string | null;
1002
+ patchArtifactId: string | null;
1003
+ }, {
1004
+ repo: string;
1005
+ branch: string | null;
1006
+ headSha: string | null;
1007
+ dirty?: boolean | undefined;
1008
+ worktree?: string | null | undefined;
1009
+ diffHash?: string | null | undefined;
1010
+ patchArtifactId?: string | null | undefined;
1011
+ }>>>;
1012
+ command: z.ZodString;
1013
+ cwd: z.ZodString;
1014
+ toolchain: z.ZodDefault<z.ZodObject<{
1015
+ node: z.ZodOptional<z.ZodString>;
1016
+ pnpm: z.ZodOptional<z.ZodString>;
1017
+ os: z.ZodOptional<z.ZodString>;
1018
+ environment: z.ZodOptional<z.ZodString>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ environment?: string | undefined;
1021
+ pnpm?: string | undefined;
1022
+ node?: string | undefined;
1023
+ os?: string | undefined;
1024
+ }, {
1025
+ environment?: string | undefined;
1026
+ pnpm?: string | undefined;
1027
+ node?: string | undefined;
1028
+ os?: string | undefined;
1029
+ }>>;
1030
+ exitCode: z.ZodNullable<z.ZodNumber>;
1031
+ status: z.ZodEnum<["passed", "failed", "blocked", "not_run"]>;
1032
+ failingTests: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1033
+ errorExcerpt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1034
+ logArtifactRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1035
+ /** True when the same failure reproduces without the patch; null when unknown. */
1036
+ preExistingFailure: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1037
+ affectedSymbols: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1038
+ contractSides: z.ZodOptional<z.ZodObject<{
1039
+ producer: z.ZodOptional<z.ZodEnum<["passed", "failed", "blocked", "not_run"]>>;
1040
+ consumer: z.ZodOptional<z.ZodEnum<["passed", "failed", "blocked", "not_run"]>>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1043
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1044
+ }, {
1045
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1046
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1047
+ }>>;
1048
+ durationMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1049
+ recordedAt: z.ZodString;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ status: "failed" | "blocked" | "passed" | "not_run";
1052
+ schemaVersion: "1.0.0";
1053
+ recordedAt: string;
1054
+ durationMs: number | null;
1055
+ taskId: string;
1056
+ revision: {
1057
+ repo: string;
1058
+ commit: string;
1059
+ };
1060
+ command: string;
1061
+ checkpointSequence: number | null;
1062
+ patchRef: {
1063
+ repo: string;
1064
+ dirty: boolean;
1065
+ branch: string | null;
1066
+ headSha: string | null;
1067
+ worktree: string | null;
1068
+ diffHash: string | null;
1069
+ patchArtifactId: string | null;
1070
+ } | null;
1071
+ cwd: string;
1072
+ toolchain: {
1073
+ environment?: string | undefined;
1074
+ pnpm?: string | undefined;
1075
+ node?: string | undefined;
1076
+ os?: string | undefined;
1077
+ };
1078
+ exitCode: number | null;
1079
+ failingTests: string[];
1080
+ errorExcerpt: string | null;
1081
+ logArtifactRef: string | null;
1082
+ preExistingFailure: boolean | null;
1083
+ affectedSymbols: string[];
1084
+ contractSides?: {
1085
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1086
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1087
+ } | undefined;
1088
+ }, {
1089
+ status: "failed" | "blocked" | "passed" | "not_run";
1090
+ schemaVersion: "1.0.0";
1091
+ recordedAt: string;
1092
+ taskId: string;
1093
+ revision: {
1094
+ repo: string;
1095
+ commit: string;
1096
+ };
1097
+ command: string;
1098
+ cwd: string;
1099
+ exitCode: number | null;
1100
+ durationMs?: number | null | undefined;
1101
+ checkpointSequence?: number | null | undefined;
1102
+ patchRef?: {
1103
+ repo: string;
1104
+ branch: string | null;
1105
+ headSha: string | null;
1106
+ dirty?: boolean | undefined;
1107
+ worktree?: string | null | undefined;
1108
+ diffHash?: string | null | undefined;
1109
+ patchArtifactId?: string | null | undefined;
1110
+ } | null | undefined;
1111
+ toolchain?: {
1112
+ environment?: string | undefined;
1113
+ pnpm?: string | undefined;
1114
+ node?: string | undefined;
1115
+ os?: string | undefined;
1116
+ } | undefined;
1117
+ failingTests?: string[] | undefined;
1118
+ errorExcerpt?: string | null | undefined;
1119
+ logArtifactRef?: string | null | undefined;
1120
+ preExistingFailure?: boolean | null | undefined;
1121
+ affectedSymbols?: string[] | undefined;
1122
+ contractSides?: {
1123
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1124
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1125
+ } | undefined;
1126
+ }>, "many">>;
1127
+ remainingWork: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1128
+ nextAction: z.ZodString;
1129
+ provider: z.ZodDefault<z.ZodObject<{
1130
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1131
+ responseId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1132
+ model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ responseId: string | null;
1135
+ model: string | null;
1136
+ conversationId: string | null;
1137
+ }, {
1138
+ responseId?: string | null | undefined;
1139
+ model?: string | null | undefined;
1140
+ conversationId?: string | null | undefined;
1141
+ }>>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ schemaVersion: "1.0.0";
1144
+ createdAt: string;
1145
+ executionRunId: string | null;
1146
+ executionTaskId: string | null;
1147
+ provider: {
1148
+ responseId: string | null;
1149
+ model: string | null;
1150
+ conversationId: string | null;
1151
+ };
1152
+ evidence: {
1153
+ id: string;
1154
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1155
+ ref: string;
1156
+ revision: string | null;
1157
+ contentHash: string | null;
1158
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1159
+ repo?: string | undefined;
1160
+ label?: string | undefined;
1161
+ selectedBy?: string | undefined;
1162
+ }[];
1163
+ nextAction: string;
1164
+ taskId: string;
1165
+ decisions: {
1166
+ id: string;
1167
+ source: "agent" | "human";
1168
+ decidedAt: string;
1169
+ decision: string;
1170
+ rationale: string;
1171
+ evidenceIds: string[];
1172
+ }[];
1173
+ verification: {
1174
+ status: "failed" | "blocked" | "passed" | "not_run";
1175
+ schemaVersion: "1.0.0";
1176
+ recordedAt: string;
1177
+ durationMs: number | null;
1178
+ taskId: string;
1179
+ revision: {
1180
+ repo: string;
1181
+ commit: string;
1182
+ };
1183
+ command: string;
1184
+ checkpointSequence: number | null;
1185
+ patchRef: {
1186
+ repo: string;
1187
+ dirty: boolean;
1188
+ branch: string | null;
1189
+ headSha: string | null;
1190
+ worktree: string | null;
1191
+ diffHash: string | null;
1192
+ patchArtifactId: string | null;
1193
+ } | null;
1194
+ cwd: string;
1195
+ toolchain: {
1196
+ environment?: string | undefined;
1197
+ pnpm?: string | undefined;
1198
+ node?: string | undefined;
1199
+ os?: string | undefined;
1200
+ };
1201
+ exitCode: number | null;
1202
+ failingTests: string[];
1203
+ errorExcerpt: string | null;
1204
+ logArtifactRef: string | null;
1205
+ preExistingFailure: boolean | null;
1206
+ affectedSymbols: string[];
1207
+ contractSides?: {
1208
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1209
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1210
+ } | undefined;
1211
+ }[];
1212
+ patchRef: {
1213
+ repo: string;
1214
+ dirty: boolean;
1215
+ branch: string | null;
1216
+ headSha: string | null;
1217
+ worktree: string | null;
1218
+ diffHash: string | null;
1219
+ patchArtifactId: string | null;
1220
+ } | null;
1221
+ revisionMap: {
1222
+ repo: string;
1223
+ dirty: boolean;
1224
+ branch: string | null;
1225
+ role: "primary" | "dependency" | "consumer";
1226
+ commit: string;
1227
+ uncommittedFiles: string[];
1228
+ installedVersions?: Record<string, string> | undefined;
1229
+ }[];
1230
+ policyVersion: string | null;
1231
+ cortexTaskId: string | null;
1232
+ sequence: number;
1233
+ milestone: string;
1234
+ completedInvestigation: {
1235
+ id: string;
1236
+ summary: string;
1237
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
1238
+ query: string;
1239
+ evidenceIds: string[];
1240
+ }[];
1241
+ hypotheses: {
1242
+ id: string;
1243
+ status: "rejected" | "open" | "confirmed";
1244
+ statement: string;
1245
+ evidenceIds: string[];
1246
+ note?: string | undefined;
1247
+ }[];
1248
+ remainingWork: string[];
1249
+ }, {
1250
+ schemaVersion: "1.0.0";
1251
+ createdAt: string;
1252
+ nextAction: string;
1253
+ taskId: string;
1254
+ revisionMap: {
1255
+ repo: string;
1256
+ branch: string | null;
1257
+ commit: string;
1258
+ dirty?: boolean | undefined;
1259
+ role?: "primary" | "dependency" | "consumer" | undefined;
1260
+ uncommittedFiles?: string[] | undefined;
1261
+ installedVersions?: Record<string, string> | undefined;
1262
+ }[];
1263
+ sequence: number;
1264
+ milestone: string;
1265
+ executionRunId?: string | null | undefined;
1266
+ executionTaskId?: string | null | undefined;
1267
+ provider?: {
1268
+ responseId?: string | null | undefined;
1269
+ model?: string | null | undefined;
1270
+ conversationId?: string | null | undefined;
1271
+ } | undefined;
1272
+ evidence?: {
1273
+ id: string;
1274
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1275
+ ref: string;
1276
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1277
+ repo?: string | undefined;
1278
+ label?: string | undefined;
1279
+ revision?: string | null | undefined;
1280
+ contentHash?: string | null | undefined;
1281
+ selectedBy?: string | undefined;
1282
+ }[] | undefined;
1283
+ decisions?: {
1284
+ id: string;
1285
+ source: "agent" | "human";
1286
+ decidedAt: string;
1287
+ decision: string;
1288
+ rationale?: string | undefined;
1289
+ evidenceIds?: string[] | undefined;
1290
+ }[] | undefined;
1291
+ verification?: {
1292
+ status: "failed" | "blocked" | "passed" | "not_run";
1293
+ schemaVersion: "1.0.0";
1294
+ recordedAt: string;
1295
+ taskId: string;
1296
+ revision: {
1297
+ repo: string;
1298
+ commit: string;
1299
+ };
1300
+ command: string;
1301
+ cwd: string;
1302
+ exitCode: number | null;
1303
+ durationMs?: number | null | undefined;
1304
+ checkpointSequence?: number | null | undefined;
1305
+ patchRef?: {
1306
+ repo: string;
1307
+ branch: string | null;
1308
+ headSha: string | null;
1309
+ dirty?: boolean | undefined;
1310
+ worktree?: string | null | undefined;
1311
+ diffHash?: string | null | undefined;
1312
+ patchArtifactId?: string | null | undefined;
1313
+ } | null | undefined;
1314
+ toolchain?: {
1315
+ environment?: string | undefined;
1316
+ pnpm?: string | undefined;
1317
+ node?: string | undefined;
1318
+ os?: string | undefined;
1319
+ } | undefined;
1320
+ failingTests?: string[] | undefined;
1321
+ errorExcerpt?: string | null | undefined;
1322
+ logArtifactRef?: string | null | undefined;
1323
+ preExistingFailure?: boolean | null | undefined;
1324
+ affectedSymbols?: string[] | undefined;
1325
+ contractSides?: {
1326
+ producer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1327
+ consumer?: "failed" | "blocked" | "passed" | "not_run" | undefined;
1328
+ } | undefined;
1329
+ }[] | undefined;
1330
+ patchRef?: {
1331
+ repo: string;
1332
+ branch: string | null;
1333
+ headSha: string | null;
1334
+ dirty?: boolean | undefined;
1335
+ worktree?: string | null | undefined;
1336
+ diffHash?: string | null | undefined;
1337
+ patchArtifactId?: string | null | undefined;
1338
+ } | null | undefined;
1339
+ policyVersion?: string | null | undefined;
1340
+ cortexTaskId?: string | null | undefined;
1341
+ completedInvestigation?: {
1342
+ id: string;
1343
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
1344
+ query: string;
1345
+ summary?: string | undefined;
1346
+ evidenceIds?: string[] | undefined;
1347
+ }[] | undefined;
1348
+ hypotheses?: {
1349
+ id: string;
1350
+ status: "rejected" | "open" | "confirmed";
1351
+ statement: string;
1352
+ note?: string | undefined;
1353
+ evidenceIds?: string[] | undefined;
1354
+ }[] | undefined;
1355
+ remainingWork?: string[] | undefined;
1356
+ }>;
1357
+ export type TaskCheckpointPayload = z.infer<typeof TaskCheckpointPayloadSchema>;
1358
+ export declare const EvidenceInvalidationReasonSchema: z.ZodEnum<["revision_changed", "file_changed", "repo_missing", "policy_changed", "hash_mismatch"]>;
1359
+ export type EvidenceInvalidationReason = z.infer<typeof EvidenceInvalidationReasonSchema>;
1360
+ export declare const InvalidatedEvidenceSchema: z.ZodObject<{
1361
+ evidenceId: z.ZodString;
1362
+ reason: z.ZodEnum<["revision_changed", "file_changed", "repo_missing", "policy_changed", "hash_mismatch"]>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ reason: "repo_missing" | "revision_changed" | "file_changed" | "policy_changed" | "hash_mismatch";
1365
+ evidenceId: string;
1366
+ }, {
1367
+ reason: "repo_missing" | "revision_changed" | "file_changed" | "policy_changed" | "hash_mismatch";
1368
+ evidenceId: string;
1369
+ }>;
1370
+ export type InvalidatedEvidence = z.infer<typeof InvalidatedEvidenceSchema>;
1371
+ export declare const StaleRevisionSchema: z.ZodObject<{
1372
+ repo: z.ZodString;
1373
+ checkpointCommit: z.ZodNullable<z.ZodString>;
1374
+ currentCommit: z.ZodNullable<z.ZodString>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ repo: string;
1377
+ checkpointCommit: string | null;
1378
+ currentCommit: string | null;
1379
+ }, {
1380
+ repo: string;
1381
+ checkpointCommit: string | null;
1382
+ currentCommit: string | null;
1383
+ }>;
1384
+ export type StaleRevision = z.infer<typeof StaleRevisionSchema>;
1385
+ export declare const CheckpointResumeRequestSchema: z.ZodObject<{
1386
+ taskId: z.ZodString;
1387
+ currentRevisionMap: z.ZodArray<z.ZodObject<{
1388
+ repo: z.ZodString;
1389
+ branch: z.ZodNullable<z.ZodString>;
1390
+ commit: z.ZodString;
1391
+ dirty: z.ZodDefault<z.ZodBoolean>;
1392
+ uncommittedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1393
+ role: z.ZodDefault<z.ZodEnum<["primary", "dependency", "consumer"]>>;
1394
+ installedVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ repo: string;
1397
+ dirty: boolean;
1398
+ branch: string | null;
1399
+ role: "primary" | "dependency" | "consumer";
1400
+ commit: string;
1401
+ uncommittedFiles: string[];
1402
+ installedVersions?: Record<string, string> | undefined;
1403
+ }, {
1404
+ repo: string;
1405
+ branch: string | null;
1406
+ commit: string;
1407
+ dirty?: boolean | undefined;
1408
+ role?: "primary" | "dependency" | "consumer" | undefined;
1409
+ uncommittedFiles?: string[] | undefined;
1410
+ installedVersions?: Record<string, string> | undefined;
1411
+ }>, "many">;
1412
+ /** Repo-relative paths changed since the checkpoint (git diff + graph diff). */
1413
+ changedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1414
+ policyVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ taskId: string;
1417
+ policyVersion: string | null;
1418
+ currentRevisionMap: {
1419
+ repo: string;
1420
+ dirty: boolean;
1421
+ branch: string | null;
1422
+ role: "primary" | "dependency" | "consumer";
1423
+ commit: string;
1424
+ uncommittedFiles: string[];
1425
+ installedVersions?: Record<string, string> | undefined;
1426
+ }[];
1427
+ changedFiles: string[];
1428
+ }, {
1429
+ taskId: string;
1430
+ currentRevisionMap: {
1431
+ repo: string;
1432
+ branch: string | null;
1433
+ commit: string;
1434
+ dirty?: boolean | undefined;
1435
+ role?: "primary" | "dependency" | "consumer" | undefined;
1436
+ uncommittedFiles?: string[] | undefined;
1437
+ installedVersions?: Record<string, string> | undefined;
1438
+ }[];
1439
+ policyVersion?: string | null | undefined;
1440
+ changedFiles?: string[] | undefined;
1441
+ }>;
1442
+ export type CheckpointResumeRequest = z.infer<typeof CheckpointResumeRequestSchema>;
1443
+ export declare const CheckpointResumeOutcomeSchema: z.ZodEnum<["resumed", "no_checkpoint"]>;
1444
+ export declare const CheckpointResumeResponseSchema: z.ZodObject<{
1445
+ taskId: z.ZodString;
1446
+ outcome: z.ZodEnum<["resumed", "no_checkpoint"]>;
1447
+ /** Execution task the resumed checkpoint lives on (single persistence path). */
1448
+ executionTaskId: z.ZodNullable<z.ZodString>;
1449
+ sequence: z.ZodNullable<z.ZodNumber>;
1450
+ staleRevisions: z.ZodArray<z.ZodObject<{
1451
+ repo: z.ZodString;
1452
+ checkpointCommit: z.ZodNullable<z.ZodString>;
1453
+ currentCommit: z.ZodNullable<z.ZodString>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ repo: string;
1456
+ checkpointCommit: string | null;
1457
+ currentCommit: string | null;
1458
+ }, {
1459
+ repo: string;
1460
+ checkpointCommit: string | null;
1461
+ currentCommit: string | null;
1462
+ }>, "many">;
1463
+ validEvidence: z.ZodArray<z.ZodObject<{
1464
+ /** Stable evidence id, e.g. `node:<uuid>`, `file:<path>`, `drift:<finding-id>`. */
1465
+ id: z.ZodString;
1466
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
1467
+ /** Path, stable key, artifact uuid, route path or finding id the id points at. */
1468
+ ref: z.ZodString;
1469
+ label: z.ZodOptional<z.ZodString>;
1470
+ repo: z.ZodOptional<z.ZodString>;
1471
+ /** Commit the evidence was observed at; null when not revision-bound. */
1472
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1473
+ /** Content hash (sha256) when the evidence body was hashed; null otherwise. */
1474
+ contentHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1475
+ relevance: z.ZodEnum<["exact", "dependency", "reference", "governance", "keyword"]>;
1476
+ /** Resolver that selected this item (symbol_index, dependency_traversal, …). */
1477
+ selectedBy: z.ZodOptional<z.ZodString>;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ id: string;
1480
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1481
+ ref: string;
1482
+ revision: string | null;
1483
+ contentHash: string | null;
1484
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1485
+ repo?: string | undefined;
1486
+ label?: string | undefined;
1487
+ selectedBy?: string | undefined;
1488
+ }, {
1489
+ id: string;
1490
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1491
+ ref: string;
1492
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1493
+ repo?: string | undefined;
1494
+ label?: string | undefined;
1495
+ revision?: string | null | undefined;
1496
+ contentHash?: string | null | undefined;
1497
+ selectedBy?: string | undefined;
1498
+ }>, "many">;
1499
+ invalidatedEvidence: z.ZodArray<z.ZodObject<{
1500
+ evidenceId: z.ZodString;
1501
+ reason: z.ZodEnum<["revision_changed", "file_changed", "repo_missing", "policy_changed", "hash_mismatch"]>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ reason: "repo_missing" | "revision_changed" | "file_changed" | "policy_changed" | "hash_mismatch";
1504
+ evidenceId: string;
1505
+ }, {
1506
+ reason: "repo_missing" | "revision_changed" | "file_changed" | "policy_changed" | "hash_mismatch";
1507
+ evidenceId: string;
1508
+ }>, "many">;
1509
+ /** Hypotheses whose supporting evidence was invalidated are re-opened, not deleted. */
1510
+ reopenedHypothesisIds: z.ZodArray<z.ZodString, "many">;
1511
+ /** Verification results that no longer describe the current revision/patch. */
1512
+ staleVerificationCount: z.ZodNumber;
1513
+ completedInvestigation: z.ZodArray<z.ZodObject<{
1514
+ id: z.ZodString;
1515
+ query: z.ZodString;
1516
+ method: z.ZodEnum<["symbol_index", "dependency_traversal", "route_trace", "knowledge_retrieval", "git_diff", "test_mapping", "manual"]>;
1517
+ summary: z.ZodDefault<z.ZodString>;
1518
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ id: string;
1521
+ summary: string;
1522
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
1523
+ query: string;
1524
+ evidenceIds: string[];
1525
+ }, {
1526
+ id: string;
1527
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
1528
+ query: string;
1529
+ summary?: string | undefined;
1530
+ evidenceIds?: string[] | undefined;
1531
+ }>, "many">;
1532
+ decisions: z.ZodArray<z.ZodObject<{
1533
+ id: z.ZodString;
1534
+ decision: z.ZodString;
1535
+ rationale: z.ZodDefault<z.ZodString>;
1536
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1537
+ source: z.ZodEnum<["human", "agent"]>;
1538
+ decidedAt: z.ZodString;
1539
+ }, "strip", z.ZodTypeAny, {
1540
+ id: string;
1541
+ source: "agent" | "human";
1542
+ decidedAt: string;
1543
+ decision: string;
1544
+ rationale: string;
1545
+ evidenceIds: string[];
1546
+ }, {
1547
+ id: string;
1548
+ source: "agent" | "human";
1549
+ decidedAt: string;
1550
+ decision: string;
1551
+ rationale?: string | undefined;
1552
+ evidenceIds?: string[] | undefined;
1553
+ }>, "many">;
1554
+ remainingWork: z.ZodArray<z.ZodString, "many">;
1555
+ nextAction: z.ZodNullable<z.ZodString>;
1556
+ brief: z.ZodNullable<z.ZodObject<{
1557
+ schemaVersion: z.ZodLiteral<"1.0.0">;
1558
+ taskId: z.ZodString;
1559
+ capsuleArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1560
+ /** Execution task (execution_tasks.id) whose checkpoint this brief was built from. */
1561
+ executionTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1562
+ executionRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1563
+ compiledAt: z.ZodString;
1564
+ objective: z.ZodString;
1565
+ acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
1566
+ mandatoryRules: z.ZodArray<z.ZodObject<{
1567
+ id: z.ZodString;
1568
+ source: z.ZodEnum<["constitution", "repo_policy", "tombstone", "ownership", "capsule", "agent_rules"]>;
1569
+ text: z.ZodString;
1570
+ }, "strip", z.ZodTypeAny, {
1571
+ id: string;
1572
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
1573
+ text: string;
1574
+ }, {
1575
+ id: string;
1576
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
1577
+ text: string;
1578
+ }>, "many">;
1579
+ revisionMap: z.ZodArray<z.ZodObject<{
1580
+ repo: z.ZodString;
1581
+ branch: z.ZodNullable<z.ZodString>;
1582
+ commit: z.ZodString;
1583
+ dirty: z.ZodDefault<z.ZodBoolean>;
1584
+ uncommittedFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1585
+ role: z.ZodDefault<z.ZodEnum<["primary", "dependency", "consumer"]>>;
1586
+ installedVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1587
+ }, "strip", z.ZodTypeAny, {
1588
+ repo: string;
1589
+ dirty: boolean;
1590
+ branch: string | null;
1591
+ role: "primary" | "dependency" | "consumer";
1592
+ commit: string;
1593
+ uncommittedFiles: string[];
1594
+ installedVersions?: Record<string, string> | undefined;
1595
+ }, {
1596
+ repo: string;
1597
+ branch: string | null;
1598
+ commit: string;
1599
+ dirty?: boolean | undefined;
1600
+ role?: "primary" | "dependency" | "consumer" | undefined;
1601
+ uncommittedFiles?: string[] | undefined;
1602
+ installedVersions?: Record<string, string> | undefined;
1603
+ }>, "many">;
1604
+ policyVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1605
+ selectedEvidence: z.ZodArray<z.ZodObject<{
1606
+ /** Stable evidence id, e.g. `node:<uuid>`, `file:<path>`, `drift:<finding-id>`. */
1607
+ id: z.ZodString;
1608
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
1609
+ /** Path, stable key, artifact uuid, route path or finding id the id points at. */
1610
+ ref: z.ZodString;
1611
+ label: z.ZodOptional<z.ZodString>;
1612
+ repo: z.ZodOptional<z.ZodString>;
1613
+ /** Commit the evidence was observed at; null when not revision-bound. */
1614
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1615
+ /** Content hash (sha256) when the evidence body was hashed; null otherwise. */
1616
+ contentHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1617
+ relevance: z.ZodEnum<["exact", "dependency", "reference", "governance", "keyword"]>;
1618
+ /** Resolver that selected this item (symbol_index, dependency_traversal, …). */
1619
+ selectedBy: z.ZodOptional<z.ZodString>;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ id: string;
1622
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1623
+ ref: string;
1624
+ revision: string | null;
1625
+ contentHash: string | null;
1626
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1627
+ repo?: string | undefined;
1628
+ label?: string | undefined;
1629
+ selectedBy?: string | undefined;
1630
+ }, {
1631
+ id: string;
1632
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1633
+ ref: string;
1634
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1635
+ repo?: string | undefined;
1636
+ label?: string | undefined;
1637
+ revision?: string | null | undefined;
1638
+ contentHash?: string | null | undefined;
1639
+ selectedBy?: string | undefined;
1640
+ }>, "many">;
1641
+ relationships: z.ZodArray<z.ZodObject<{
1642
+ sourceId: z.ZodString;
1643
+ targetId: z.ZodString;
1644
+ relation: z.ZodString;
1645
+ }, "strip", z.ZodTypeAny, {
1646
+ sourceId: string;
1647
+ targetId: string;
1648
+ relation: string;
1649
+ }, {
1650
+ sourceId: string;
1651
+ targetId: string;
1652
+ relation: string;
1653
+ }>, "many">;
1654
+ omissions: z.ZodArray<z.ZodObject<{
1655
+ kind: z.ZodEnum<["node", "edge", "file", "symbol", "route", "contract", "drift_finding", "decision", "test", "verification", "log", "artifact", "knowledge"]>;
1656
+ totalCount: z.ZodNumber;
1657
+ omittedCount: z.ZodNumber;
1658
+ continuationToken: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1661
+ totalCount: number;
1662
+ omittedCount: number;
1663
+ continuationToken: string | null;
1664
+ }, {
1665
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1666
+ totalCount: number;
1667
+ omittedCount: number;
1668
+ continuationToken?: string | null | undefined;
1669
+ }>, "many">;
1670
+ knownFailures: z.ZodArray<z.ZodObject<{
1671
+ id: z.ZodString;
1672
+ summary: z.ZodString;
1673
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1674
+ status: z.ZodDefault<z.ZodEnum<["open", "resolved", "rejected"]>>;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ id: string;
1677
+ status: "rejected" | "open" | "resolved";
1678
+ summary: string;
1679
+ evidenceIds: string[];
1680
+ }, {
1681
+ id: string;
1682
+ summary: string;
1683
+ status?: "rejected" | "open" | "resolved" | undefined;
1684
+ evidenceIds?: string[] | undefined;
1685
+ }>, "many">;
1686
+ priorDecisions: z.ZodArray<z.ZodObject<{
1687
+ id: z.ZodString;
1688
+ decision: z.ZodString;
1689
+ rationale: z.ZodDefault<z.ZodString>;
1690
+ evidenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1691
+ source: z.ZodEnum<["human", "agent"]>;
1692
+ decidedAt: z.ZodString;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: string;
1695
+ source: "agent" | "human";
1696
+ decidedAt: string;
1697
+ decision: string;
1698
+ rationale: string;
1699
+ evidenceIds: string[];
1700
+ }, {
1701
+ id: string;
1702
+ source: "agent" | "human";
1703
+ decidedAt: string;
1704
+ decision: string;
1705
+ rationale?: string | undefined;
1706
+ evidenceIds?: string[] | undefined;
1707
+ }>, "many">;
1708
+ nextAction: z.ZodString;
1709
+ budget: z.ZodObject<{
1710
+ maxChars: z.ZodNumber;
1711
+ usedChars: z.ZodNumber;
1712
+ estimatedTokens: z.ZodNumber;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ maxChars: number;
1715
+ usedChars: number;
1716
+ estimatedTokens: number;
1717
+ }, {
1718
+ maxChars: number;
1719
+ usedChars: number;
1720
+ estimatedTokens: number;
1721
+ }>;
1722
+ /** Content-addressed identity: repos + revisions + policy + scope + task. */
1723
+ cacheKey: z.ZodString;
1724
+ /** Hash of the access scope (never raw scope identifiers). */
1725
+ scopeKey: z.ZodString;
1726
+ promptMarkdown: z.ZodString;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ schemaVersion: "1.0.0";
1729
+ executionRunId: string | null;
1730
+ executionTaskId: string | null;
1731
+ nextAction: string;
1732
+ taskId: string;
1733
+ acceptanceCriteria: string[];
1734
+ budget: {
1735
+ maxChars: number;
1736
+ usedChars: number;
1737
+ estimatedTokens: number;
1738
+ };
1739
+ compiledAt: string;
1740
+ objective: string;
1741
+ relationships: {
1742
+ sourceId: string;
1743
+ targetId: string;
1744
+ relation: string;
1745
+ }[];
1746
+ capsuleArtifactId: string | null;
1747
+ mandatoryRules: {
1748
+ id: string;
1749
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
1750
+ text: string;
1751
+ }[];
1752
+ revisionMap: {
1753
+ repo: string;
1754
+ dirty: boolean;
1755
+ branch: string | null;
1756
+ role: "primary" | "dependency" | "consumer";
1757
+ commit: string;
1758
+ uncommittedFiles: string[];
1759
+ installedVersions?: Record<string, string> | undefined;
1760
+ }[];
1761
+ policyVersion: string | null;
1762
+ selectedEvidence: {
1763
+ id: string;
1764
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1765
+ ref: string;
1766
+ revision: string | null;
1767
+ contentHash: string | null;
1768
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1769
+ repo?: string | undefined;
1770
+ label?: string | undefined;
1771
+ selectedBy?: string | undefined;
1772
+ }[];
1773
+ omissions: {
1774
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1775
+ totalCount: number;
1776
+ omittedCount: number;
1777
+ continuationToken: string | null;
1778
+ }[];
1779
+ knownFailures: {
1780
+ id: string;
1781
+ status: "rejected" | "open" | "resolved";
1782
+ summary: string;
1783
+ evidenceIds: string[];
1784
+ }[];
1785
+ priorDecisions: {
1786
+ id: string;
1787
+ source: "agent" | "human";
1788
+ decidedAt: string;
1789
+ decision: string;
1790
+ rationale: string;
1791
+ evidenceIds: string[];
1792
+ }[];
1793
+ cacheKey: string;
1794
+ scopeKey: string;
1795
+ promptMarkdown: string;
1796
+ }, {
1797
+ schemaVersion: "1.0.0";
1798
+ nextAction: string;
1799
+ taskId: string;
1800
+ acceptanceCriteria: string[];
1801
+ budget: {
1802
+ maxChars: number;
1803
+ usedChars: number;
1804
+ estimatedTokens: number;
1805
+ };
1806
+ compiledAt: string;
1807
+ objective: string;
1808
+ relationships: {
1809
+ sourceId: string;
1810
+ targetId: string;
1811
+ relation: string;
1812
+ }[];
1813
+ mandatoryRules: {
1814
+ id: string;
1815
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
1816
+ text: string;
1817
+ }[];
1818
+ revisionMap: {
1819
+ repo: string;
1820
+ branch: string | null;
1821
+ commit: string;
1822
+ dirty?: boolean | undefined;
1823
+ role?: "primary" | "dependency" | "consumer" | undefined;
1824
+ uncommittedFiles?: string[] | undefined;
1825
+ installedVersions?: Record<string, string> | undefined;
1826
+ }[];
1827
+ selectedEvidence: {
1828
+ id: string;
1829
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1830
+ ref: string;
1831
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1832
+ repo?: string | undefined;
1833
+ label?: string | undefined;
1834
+ revision?: string | null | undefined;
1835
+ contentHash?: string | null | undefined;
1836
+ selectedBy?: string | undefined;
1837
+ }[];
1838
+ omissions: {
1839
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1840
+ totalCount: number;
1841
+ omittedCount: number;
1842
+ continuationToken?: string | null | undefined;
1843
+ }[];
1844
+ knownFailures: {
1845
+ id: string;
1846
+ summary: string;
1847
+ status?: "rejected" | "open" | "resolved" | undefined;
1848
+ evidenceIds?: string[] | undefined;
1849
+ }[];
1850
+ priorDecisions: {
1851
+ id: string;
1852
+ source: "agent" | "human";
1853
+ decidedAt: string;
1854
+ decision: string;
1855
+ rationale?: string | undefined;
1856
+ evidenceIds?: string[] | undefined;
1857
+ }[];
1858
+ cacheKey: string;
1859
+ scopeKey: string;
1860
+ promptMarkdown: string;
1861
+ executionRunId?: string | null | undefined;
1862
+ executionTaskId?: string | null | undefined;
1863
+ capsuleArtifactId?: string | null | undefined;
1864
+ policyVersion?: string | null | undefined;
1865
+ }>>;
1866
+ }, "strip", z.ZodTypeAny, {
1867
+ executionTaskId: string | null;
1868
+ nextAction: string | null;
1869
+ taskId: string;
1870
+ decisions: {
1871
+ id: string;
1872
+ source: "agent" | "human";
1873
+ decidedAt: string;
1874
+ decision: string;
1875
+ rationale: string;
1876
+ evidenceIds: string[];
1877
+ }[];
1878
+ outcome: "resumed" | "no_checkpoint";
1879
+ brief: {
1880
+ schemaVersion: "1.0.0";
1881
+ executionRunId: string | null;
1882
+ executionTaskId: string | null;
1883
+ nextAction: string;
1884
+ taskId: string;
1885
+ acceptanceCriteria: string[];
1886
+ budget: {
1887
+ maxChars: number;
1888
+ usedChars: number;
1889
+ estimatedTokens: number;
1890
+ };
1891
+ compiledAt: string;
1892
+ objective: string;
1893
+ relationships: {
1894
+ sourceId: string;
1895
+ targetId: string;
1896
+ relation: string;
1897
+ }[];
1898
+ capsuleArtifactId: string | null;
1899
+ mandatoryRules: {
1900
+ id: string;
1901
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
1902
+ text: string;
1903
+ }[];
1904
+ revisionMap: {
1905
+ repo: string;
1906
+ dirty: boolean;
1907
+ branch: string | null;
1908
+ role: "primary" | "dependency" | "consumer";
1909
+ commit: string;
1910
+ uncommittedFiles: string[];
1911
+ installedVersions?: Record<string, string> | undefined;
1912
+ }[];
1913
+ policyVersion: string | null;
1914
+ selectedEvidence: {
1915
+ id: string;
1916
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1917
+ ref: string;
1918
+ revision: string | null;
1919
+ contentHash: string | null;
1920
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1921
+ repo?: string | undefined;
1922
+ label?: string | undefined;
1923
+ selectedBy?: string | undefined;
1924
+ }[];
1925
+ omissions: {
1926
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1927
+ totalCount: number;
1928
+ omittedCount: number;
1929
+ continuationToken: string | null;
1930
+ }[];
1931
+ knownFailures: {
1932
+ id: string;
1933
+ status: "rejected" | "open" | "resolved";
1934
+ summary: string;
1935
+ evidenceIds: string[];
1936
+ }[];
1937
+ priorDecisions: {
1938
+ id: string;
1939
+ source: "agent" | "human";
1940
+ decidedAt: string;
1941
+ decision: string;
1942
+ rationale: string;
1943
+ evidenceIds: string[];
1944
+ }[];
1945
+ cacheKey: string;
1946
+ scopeKey: string;
1947
+ promptMarkdown: string;
1948
+ } | null;
1949
+ sequence: number | null;
1950
+ completedInvestigation: {
1951
+ id: string;
1952
+ summary: string;
1953
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
1954
+ query: string;
1955
+ evidenceIds: string[];
1956
+ }[];
1957
+ remainingWork: string[];
1958
+ staleRevisions: {
1959
+ repo: string;
1960
+ checkpointCommit: string | null;
1961
+ currentCommit: string | null;
1962
+ }[];
1963
+ validEvidence: {
1964
+ id: string;
1965
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
1966
+ ref: string;
1967
+ revision: string | null;
1968
+ contentHash: string | null;
1969
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
1970
+ repo?: string | undefined;
1971
+ label?: string | undefined;
1972
+ selectedBy?: string | undefined;
1973
+ }[];
1974
+ invalidatedEvidence: {
1975
+ reason: "repo_missing" | "revision_changed" | "file_changed" | "policy_changed" | "hash_mismatch";
1976
+ evidenceId: string;
1977
+ }[];
1978
+ reopenedHypothesisIds: string[];
1979
+ staleVerificationCount: number;
1980
+ }, {
1981
+ executionTaskId: string | null;
1982
+ nextAction: string | null;
1983
+ taskId: string;
1984
+ decisions: {
1985
+ id: string;
1986
+ source: "agent" | "human";
1987
+ decidedAt: string;
1988
+ decision: string;
1989
+ rationale?: string | undefined;
1990
+ evidenceIds?: string[] | undefined;
1991
+ }[];
1992
+ outcome: "resumed" | "no_checkpoint";
1993
+ brief: {
1994
+ schemaVersion: "1.0.0";
1995
+ nextAction: string;
1996
+ taskId: string;
1997
+ acceptanceCriteria: string[];
1998
+ budget: {
1999
+ maxChars: number;
2000
+ usedChars: number;
2001
+ estimatedTokens: number;
2002
+ };
2003
+ compiledAt: string;
2004
+ objective: string;
2005
+ relationships: {
2006
+ sourceId: string;
2007
+ targetId: string;
2008
+ relation: string;
2009
+ }[];
2010
+ mandatoryRules: {
2011
+ id: string;
2012
+ source: "constitution" | "repo_policy" | "tombstone" | "ownership" | "capsule" | "agent_rules";
2013
+ text: string;
2014
+ }[];
2015
+ revisionMap: {
2016
+ repo: string;
2017
+ branch: string | null;
2018
+ commit: string;
2019
+ dirty?: boolean | undefined;
2020
+ role?: "primary" | "dependency" | "consumer" | undefined;
2021
+ uncommittedFiles?: string[] | undefined;
2022
+ installedVersions?: Record<string, string> | undefined;
2023
+ }[];
2024
+ selectedEvidence: {
2025
+ id: string;
2026
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
2027
+ ref: string;
2028
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
2029
+ repo?: string | undefined;
2030
+ label?: string | undefined;
2031
+ revision?: string | null | undefined;
2032
+ contentHash?: string | null | undefined;
2033
+ selectedBy?: string | undefined;
2034
+ }[];
2035
+ omissions: {
2036
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
2037
+ totalCount: number;
2038
+ omittedCount: number;
2039
+ continuationToken?: string | null | undefined;
2040
+ }[];
2041
+ knownFailures: {
2042
+ id: string;
2043
+ summary: string;
2044
+ status?: "rejected" | "open" | "resolved" | undefined;
2045
+ evidenceIds?: string[] | undefined;
2046
+ }[];
2047
+ priorDecisions: {
2048
+ id: string;
2049
+ source: "agent" | "human";
2050
+ decidedAt: string;
2051
+ decision: string;
2052
+ rationale?: string | undefined;
2053
+ evidenceIds?: string[] | undefined;
2054
+ }[];
2055
+ cacheKey: string;
2056
+ scopeKey: string;
2057
+ promptMarkdown: string;
2058
+ executionRunId?: string | null | undefined;
2059
+ executionTaskId?: string | null | undefined;
2060
+ capsuleArtifactId?: string | null | undefined;
2061
+ policyVersion?: string | null | undefined;
2062
+ } | null;
2063
+ sequence: number | null;
2064
+ completedInvestigation: {
2065
+ id: string;
2066
+ method: "manual" | "symbol_index" | "dependency_traversal" | "route_trace" | "knowledge_retrieval" | "git_diff" | "test_mapping";
2067
+ query: string;
2068
+ summary?: string | undefined;
2069
+ evidenceIds?: string[] | undefined;
2070
+ }[];
2071
+ remainingWork: string[];
2072
+ staleRevisions: {
2073
+ repo: string;
2074
+ checkpointCommit: string | null;
2075
+ currentCommit: string | null;
2076
+ }[];
2077
+ validEvidence: {
2078
+ id: string;
2079
+ kind: "symbol" | "knowledge" | "decision" | "test" | "file" | "route" | "artifact" | "log" | "node" | "edge" | "contract" | "drift_finding" | "verification";
2080
+ ref: string;
2081
+ relevance: "governance" | "exact" | "dependency" | "reference" | "keyword";
2082
+ repo?: string | undefined;
2083
+ label?: string | undefined;
2084
+ revision?: string | null | undefined;
2085
+ contentHash?: string | null | undefined;
2086
+ selectedBy?: string | undefined;
2087
+ }[];
2088
+ invalidatedEvidence: {
2089
+ reason: "repo_missing" | "revision_changed" | "file_changed" | "policy_changed" | "hash_mismatch";
2090
+ evidenceId: string;
2091
+ }[];
2092
+ reopenedHypothesisIds: string[];
2093
+ staleVerificationCount: number;
2094
+ }>;
2095
+ export type CheckpointResumeResponse = z.infer<typeof CheckpointResumeResponseSchema>;
2096
+ export type EvidenceInvalidationInput = {
2097
+ checkpoint: Pick<TaskCheckpointPayload, 'revisionMap' | 'evidence' | 'hypotheses' | 'verification' | 'policyVersion' | 'patchRef'>;
2098
+ currentRevisionMap: RevisionMap;
2099
+ changedFiles?: readonly string[];
2100
+ policyVersion?: string | null;
2101
+ };
2102
+ export type EvidenceInvalidationResult = {
2103
+ staleRevisions: StaleRevision[];
2104
+ validEvidence: EvidenceRef[];
2105
+ invalidatedEvidence: InvalidatedEvidence[];
2106
+ reopenedHypothesisIds: string[];
2107
+ staleVerificationCount: number;
2108
+ policyChanged: boolean;
2109
+ };
2110
+ /**
2111
+ * Compare a checkpoint against the current revision map and changed files.
2112
+ * Evidence bound to a repo whose commit moved is invalidated only when its file
2113
+ * is in `changedFiles` (git diff + graph diff) or when it is revision-bound to
2114
+ * the old commit and no changed-file list was supplied. Evidence whose repo is
2115
+ * no longer present is invalidated. A policy version change invalidates
2116
+ * governance evidence. Everything else stays valid — refresh what changed,
2117
+ * retain what remains valid.
2118
+ */
2119
+ export declare function computeEvidenceInvalidation(input: EvidenceInvalidationInput): EvidenceInvalidationResult;
2120
+ /** Stable, order-independent serialization for cache keys. */
2121
+ export declare function serializeRevisionMap(map: RevisionMap): string;
2122
+ /**
2123
+ * Cache key material: task + repos/revisions/worktree state + policy + scope.
2124
+ * Callers hash this (sha256) — hashing is left to the runtime so contracts stay
2125
+ * dependency-free. The task text alone is never a sufficient key.
2126
+ */
2127
+ export declare function buildEngineeringContextCacheMaterial(input: {
2128
+ taskId: string;
2129
+ revisionMap: RevisionMap;
2130
+ policyVersion: string | null;
2131
+ scopeKey: string;
2132
+ step?: string | null;
2133
+ }): string;
2134
+ /** Rough token estimate for budget accounting (4 chars ≈ 1 token). */
2135
+ export declare function estimateTokensFromChars(chars: number): number;
2136
+ /**
2137
+ * The ONLY place a task checkpoint is stored. It rides the existing durable
2138
+ * execution spine (CAN-021) as `execution_tasks.metadata.stage_metadata[KEY]`;
2139
+ * there is no artifact table, no second store, no history table. Sequence and
2140
+ * verification history live inside the payload.
2141
+ */
2142
+ export declare const ENGINEERING_CHECKPOINT_STAGE_METADATA_KEY: "engineeringCheckpoint";
2143
+ /** Stage id that routes brief preparation through the cheaper model policy in executeStage. */
2144
+ export declare const ENGINEERING_BRIEF_PREPARATION_STAGE_ID: "engineering_brief_preparation";
2145
+ export declare const CheckpointMissReasonSchema: z.ZodEnum<["stage_metadata_missing", "checkpoint_absent", "checkpoint_invalid"]>;
2146
+ export type CheckpointMissReason = z.infer<typeof CheckpointMissReasonSchema>;
2147
+ /** Defensive reader for stage metadata; never throws. */
2148
+ export declare function readTaskCheckpointFromStageMetadata(stageMetadata: unknown): {
2149
+ checkpoint: TaskCheckpointPayload | null;
2150
+ missReason: CheckpointMissReason | null;
2151
+ };
2152
+ /** Merge a checkpoint into stage metadata (pure). */
2153
+ export declare function mergeTaskCheckpointIntoStageMetadata(stageMetadata: Record<string, unknown> | null, checkpoint: TaskCheckpointPayload): Record<string, unknown>;
2154
+ export type ContractChangeInvalidation = {
2155
+ invalidatedEvidenceIds: string[];
2156
+ preservedEvidenceIds: string[];
2157
+ /** Consumers still on the previous producer revision get their own verification command. */
2158
+ consumerChecks: Array<{
2159
+ repo: string;
2160
+ command: string;
2161
+ cwd: string;
2162
+ reason: string;
2163
+ }>;
2164
+ };
2165
+ /**
2166
+ * A shared contract changed at exactly (repo, previousRevision → nextRevision).
2167
+ * Only evidence observed at that producer revision is invalidated; everything
2168
+ * else is preserved. Producer tests passing never proves a consumer: every
2169
+ * consumer entry whose installed version of `packageName` is unknown or still
2170
+ * the previous one receives its own verification command.
2171
+ */
2172
+ export declare function computeContractChangeInvalidation(input: {
2173
+ evidence: readonly EvidenceRef[];
2174
+ revisionMap: RevisionMap;
2175
+ changed: {
2176
+ repo: string;
2177
+ previousRevision: string;
2178
+ nextRevision: string;
2179
+ packageName: string;
2180
+ /** Version string consumers had installed before the change, when known. */
2181
+ previousVersion?: string | null;
2182
+ };
2183
+ }): ContractChangeInvalidation;
2184
+ export declare const EngineeringContextMissingReasonSchema: z.ZodEnum<["no_matches", "source_unavailable", "not_approved", "retrieval_failed", "stale_revision"]>;
2185
+ export type EngineeringContextMissingReason = z.infer<typeof EngineeringContextMissingReasonSchema>;
2186
+ export declare const EngineeringContextTraceSchema: z.ZodObject<{
2187
+ taskReachedNeuraLoom: z.ZodBoolean;
2188
+ cortexTaskId: z.ZodNullable<z.ZodString>;
2189
+ executionRunId: z.ZodNullable<z.ZodString>;
2190
+ executionTaskId: z.ZodNullable<z.ZodString>;
2191
+ requestedRevision: z.ZodNullable<z.ZodString>;
2192
+ indexedRevision: z.ZodNullable<z.ZodString>;
2193
+ indexedRevisionMatches: z.ZodNullable<z.ZodBoolean>;
2194
+ missingContextReason: z.ZodNullable<z.ZodEnum<["no_matches", "source_unavailable", "not_approved", "retrieval_failed", "stale_revision"]>>;
2195
+ checkpointMissReason: z.ZodNullable<z.ZodEnum<["stage_metadata_missing", "checkpoint_absent", "checkpoint_invalid"]>>;
2196
+ sequence: z.ZodNullable<z.ZodNumber>;
2197
+ verificationTestedPatch: z.ZodBoolean;
2198
+ canResume: z.ZodBoolean;
2199
+ nextAction: z.ZodNullable<z.ZodString>;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ executionRunId: string | null;
2202
+ executionTaskId: string | null;
2203
+ nextAction: string | null;
2204
+ cortexTaskId: string | null;
2205
+ sequence: number | null;
2206
+ taskReachedNeuraLoom: boolean;
2207
+ requestedRevision: string | null;
2208
+ indexedRevision: string | null;
2209
+ indexedRevisionMatches: boolean | null;
2210
+ missingContextReason: "no_matches" | "source_unavailable" | "not_approved" | "retrieval_failed" | "stale_revision" | null;
2211
+ checkpointMissReason: "stage_metadata_missing" | "checkpoint_absent" | "checkpoint_invalid" | null;
2212
+ verificationTestedPatch: boolean;
2213
+ canResume: boolean;
2214
+ }, {
2215
+ executionRunId: string | null;
2216
+ executionTaskId: string | null;
2217
+ nextAction: string | null;
2218
+ cortexTaskId: string | null;
2219
+ sequence: number | null;
2220
+ taskReachedNeuraLoom: boolean;
2221
+ requestedRevision: string | null;
2222
+ indexedRevision: string | null;
2223
+ indexedRevisionMatches: boolean | null;
2224
+ missingContextReason: "no_matches" | "source_unavailable" | "not_approved" | "retrieval_failed" | "stale_revision" | null;
2225
+ checkpointMissReason: "stage_metadata_missing" | "checkpoint_absent" | "checkpoint_invalid" | null;
2226
+ verificationTestedPatch: boolean;
2227
+ canResume: boolean;
2228
+ }>;
2229
+ export type EngineeringContextTrace = z.infer<typeof EngineeringContextTraceSchema>;
2230
+ export declare function diagnoseEngineeringContext(input: {
2231
+ checkpoint: TaskCheckpointPayload | null;
2232
+ checkpointMissReason: CheckpointMissReason | null;
2233
+ indexedRevision: string | null;
2234
+ missingContextReason: EngineeringContextMissingReason | null;
2235
+ }): EngineeringContextTrace;