kibi-cli 0.18.1 → 1.0.1

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 (539) hide show
  1. package/dist/cli-json-command.d.ts +1 -2
  2. package/dist/cli-json-command.d.ts.map +1 -1
  3. package/dist/cli-json-command.js +2 -34
  4. package/dist/cli-operation-loader.d.ts +3 -0
  5. package/dist/cli-operation-loader.d.ts.map +1 -0
  6. package/dist/cli-operation-loader.js +91 -0
  7. package/dist/cli-operation-metadata.d.ts +94 -0
  8. package/dist/cli-operation-metadata.d.ts.map +1 -0
  9. package/dist/cli-operation-metadata.js +121 -0
  10. package/dist/cli-protocol.d.ts +1 -1
  11. package/dist/cli-protocol.d.ts.map +1 -1
  12. package/dist/cli-protocol.js +42 -11
  13. package/dist/cli-register-foundation.d.ts.map +1 -1
  14. package/dist/cli-register-foundation.js +28 -19
  15. package/dist/cli-register-json.d.ts +3 -0
  16. package/dist/cli-register-json.d.ts.map +1 -0
  17. package/dist/cli-register-json.js +35 -0
  18. package/dist/cli-register-maintenance.d.ts.map +1 -1
  19. package/dist/cli-register-maintenance.js +60 -13
  20. package/dist/cli-register-reporting.d.ts.map +1 -1
  21. package/dist/cli-register-reporting.js +23 -14
  22. package/dist/cli-register-skills.d.ts.map +1 -1
  23. package/dist/cli-register-skills.js +8 -6
  24. package/dist/cli-register-verification.d.ts +3 -0
  25. package/dist/cli-register-verification.d.ts.map +1 -0
  26. package/dist/cli-register-verification.js +16 -0
  27. package/dist/cli.d.ts.map +1 -1
  28. package/dist/cli.js +3 -1
  29. package/dist/commands/aggregated-checks.d.ts +1 -2
  30. package/dist/commands/aggregated-checks.d.ts.map +1 -1
  31. package/dist/commands/aggregated-checks.js +14 -9
  32. package/dist/commands/branch.d.ts +36 -0
  33. package/dist/commands/branch.d.ts.map +1 -1
  34. package/dist/commands/branch.js +371 -40
  35. package/dist/commands/check.d.ts.map +1 -1
  36. package/dist/commands/check.js +48 -77
  37. package/dist/commands/coverage.js +1 -1
  38. package/dist/commands/discovery-shared.d.ts +2 -1
  39. package/dist/commands/discovery-shared.d.ts.map +1 -1
  40. package/dist/commands/discovery-shared.js +38 -25
  41. package/dist/commands/doctor.d.ts +4 -1
  42. package/dist/commands/doctor.d.ts.map +1 -1
  43. package/dist/commands/doctor.js +259 -24
  44. package/dist/commands/engine.d.ts +8 -0
  45. package/dist/commands/engine.d.ts.map +1 -0
  46. package/dist/commands/engine.js +103 -0
  47. package/dist/commands/gaps.js +1 -1
  48. package/dist/commands/gc.d.ts +5 -2
  49. package/dist/commands/gc.d.ts.map +1 -1
  50. package/dist/commands/gc.js +140 -71
  51. package/dist/commands/github-init.d.ts +56 -0
  52. package/dist/commands/github-init.d.ts.map +1 -0
  53. package/dist/commands/github-init.js +310 -0
  54. package/dist/commands/graph.js +1 -1
  55. package/dist/commands/init-helpers.d.ts +1 -1
  56. package/dist/commands/init-helpers.d.ts.map +1 -1
  57. package/dist/commands/init-helpers.js +73 -25
  58. package/dist/commands/init.d.ts +2 -0
  59. package/dist/commands/init.d.ts.map +1 -1
  60. package/dist/commands/init.js +79 -24
  61. package/dist/commands/legacy-storage-migration.d.ts +54 -0
  62. package/dist/commands/legacy-storage-migration.d.ts.map +1 -0
  63. package/dist/commands/legacy-storage-migration.js +277 -0
  64. package/dist/commands/migrate.d.ts +7 -0
  65. package/dist/commands/migrate.d.ts.map +1 -1
  66. package/dist/commands/migrate.js +244 -91
  67. package/dist/commands/query.d.ts.map +1 -1
  68. package/dist/commands/query.js +3 -1
  69. package/dist/commands/report.d.ts +24 -0
  70. package/dist/commands/report.d.ts.map +1 -0
  71. package/dist/commands/report.js +191 -0
  72. package/dist/commands/search.d.ts.map +1 -1
  73. package/dist/commands/search.js +3 -1
  74. package/dist/commands/status.d.ts.map +1 -1
  75. package/dist/commands/status.js +2 -1
  76. package/dist/commands/sync/cache.d.ts +26 -3
  77. package/dist/commands/sync/cache.d.ts.map +1 -1
  78. package/dist/commands/sync/cache.js +141 -5
  79. package/dist/commands/sync/discovery.d.ts +23 -2
  80. package/dist/commands/sync/discovery.d.ts.map +1 -1
  81. package/dist/commands/sync/discovery.js +196 -15
  82. package/dist/commands/sync/extraction.d.ts +8 -1
  83. package/dist/commands/sync/extraction.d.ts.map +1 -1
  84. package/dist/commands/sync/extraction.js +38 -4
  85. package/dist/commands/sync/manifest.d.ts +8 -5
  86. package/dist/commands/sync/manifest.d.ts.map +1 -1
  87. package/dist/commands/sync/manifest.js +142 -39
  88. package/dist/commands/sync/persistence.d.ts +10 -1
  89. package/dist/commands/sync/persistence.d.ts.map +1 -1
  90. package/dist/commands/sync/persistence.js +223 -44
  91. package/dist/commands/sync/staging.d.ts +10 -1
  92. package/dist/commands/sync/staging.d.ts.map +1 -1
  93. package/dist/commands/sync/staging.js +84 -1
  94. package/dist/commands/sync.d.ts +6 -0
  95. package/dist/commands/sync.d.ts.map +1 -1
  96. package/dist/commands/sync.js +710 -48
  97. package/dist/commands/verify.d.ts +10 -0
  98. package/dist/commands/verify.d.ts.map +1 -0
  99. package/dist/commands/verify.js +126 -0
  100. package/dist/diagnostics.d.ts +1 -1
  101. package/dist/diagnostics.d.ts.map +1 -1
  102. package/dist/engine-daemon.d.ts +3 -0
  103. package/dist/engine-daemon.d.ts.map +1 -0
  104. package/dist/engine-daemon.js +34 -0
  105. package/dist/engine.d.ts +156 -0
  106. package/dist/engine.d.ts.map +1 -0
  107. package/dist/engine.js +1625 -0
  108. package/dist/env.d.ts.map +1 -1
  109. package/dist/env.js +5 -6
  110. package/dist/extractors/manifest.d.ts +8 -1
  111. package/dist/extractors/manifest.d.ts.map +1 -1
  112. package/dist/extractors/manifest.js +51 -9
  113. package/dist/extractors/markdown.d.ts +2 -1
  114. package/dist/extractors/markdown.d.ts.map +1 -1
  115. package/dist/extractors/markdown.js +21 -3
  116. package/dist/extractors/playwright-cases.d.ts +24 -0
  117. package/dist/extractors/playwright-cases.d.ts.map +1 -0
  118. package/dist/extractors/playwright-cases.js +126 -0
  119. package/dist/extractors/relationships.d.ts +2 -0
  120. package/dist/extractors/relationships.d.ts.map +1 -1
  121. package/dist/extractors/relationships.js +16 -17
  122. package/dist/extractors/symbol-coordinates.d.ts +81 -3
  123. package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
  124. package/dist/extractors/symbol-coordinates.js +389 -51
  125. package/dist/extractors/symbols-coordinator.js +11 -1
  126. package/dist/intent-search.d.ts +60 -0
  127. package/dist/intent-search.d.ts.map +1 -0
  128. package/dist/intent-search.js +433 -0
  129. package/dist/operations/bootstrap/activation.d.ts.map +1 -0
  130. package/dist/operations/{autopilot → bootstrap}/activation.js +48 -31
  131. package/dist/operations/{autopilot → bootstrap}/candidate-helpers.d.ts.map +1 -1
  132. package/dist/operations/bootstrap/candidates.d.ts +4 -0
  133. package/dist/operations/{autopilot → bootstrap}/candidates.d.ts.map +1 -1
  134. package/dist/operations/{autopilot → bootstrap}/candidates.js +22 -8
  135. package/dist/operations/{autopilot → bootstrap}/discovery-evidence.d.ts +2 -2
  136. package/dist/operations/{autopilot → bootstrap}/discovery-evidence.d.ts.map +1 -1
  137. package/dist/operations/{autopilot → bootstrap}/discovery-evidence.js +46 -6
  138. package/dist/operations/{autopilot → bootstrap}/discovery.d.ts +1 -1
  139. package/dist/operations/bootstrap/discovery.d.ts.map +1 -0
  140. package/dist/operations/{autopilot → bootstrap}/discovery.js +21 -14
  141. package/dist/operations/bootstrap/generate.d.ts +8 -0
  142. package/dist/operations/bootstrap/generate.d.ts.map +1 -0
  143. package/dist/operations/bootstrap/generate.js +204 -0
  144. package/dist/operations/{autopilot → bootstrap}/guidance-actions.d.ts +2 -2
  145. package/dist/operations/{autopilot → bootstrap}/guidance-actions.d.ts.map +1 -1
  146. package/dist/operations/{autopilot → bootstrap}/guidance-actions.js +4 -4
  147. package/dist/operations/{autopilot → bootstrap}/guidance.d.ts +2 -2
  148. package/dist/operations/{autopilot → bootstrap}/guidance.d.ts.map +1 -1
  149. package/dist/operations/{autopilot → bootstrap}/guidance.js +2 -0
  150. package/dist/operations/{autopilot → bootstrap}/markdown-candidates.d.ts +2 -2
  151. package/dist/operations/{autopilot → bootstrap}/markdown-candidates.d.ts.map +1 -1
  152. package/dist/operations/{autopilot → bootstrap}/markdown-candidates.js +4 -3
  153. package/dist/operations/bootstrap/presentation.d.ts +15 -0
  154. package/dist/operations/bootstrap/presentation.d.ts.map +1 -0
  155. package/dist/operations/bootstrap/presentation.js +177 -0
  156. package/dist/operations/{autopilot → bootstrap}/requirement-claims.d.ts.map +1 -1
  157. package/dist/operations/{autopilot → bootstrap}/types.d.ts +63 -21
  158. package/dist/operations/bootstrap/types.d.ts.map +1 -0
  159. package/dist/operations/bootstrap/types.js +25 -0
  160. package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
  161. package/dist/operations/modeling/model-requirement.js +4 -17
  162. package/dist/operations/modeling/predicate-applicability.d.ts +16 -0
  163. package/dist/operations/modeling/predicate-applicability.d.ts.map +1 -0
  164. package/dist/operations/modeling/predicate-applicability.js +276 -0
  165. package/dist/operations/modeling/predicate-applyplan.d.ts +13 -2
  166. package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
  167. package/dist/operations/modeling/predicate-applyplan.js +100 -3
  168. package/dist/operations/modeling/predicate-bindings.d.ts +6 -0
  169. package/dist/operations/modeling/predicate-bindings.d.ts.map +1 -0
  170. package/dist/operations/modeling/predicate-bindings.js +122 -0
  171. package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -1
  172. package/dist/operations/modeling/predicate-catalog-4.js +155 -0
  173. package/dist/operations/modeling/predicate-inference-1.d.ts.map +1 -1
  174. package/dist/operations/modeling/predicate-inference-1.js +8 -0
  175. package/dist/operations/modeling/predicate-inference-launcher.d.ts +10 -0
  176. package/dist/operations/modeling/predicate-inference-launcher.d.ts.map +1 -0
  177. package/dist/operations/modeling/predicate-inference-launcher.js +13 -0
  178. package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
  179. package/dist/operations/modeling/predicate-inference.js +4 -0
  180. package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
  181. package/dist/operations/modeling/predicate-loader.js +7 -0
  182. package/dist/operations/modeling/predicate-ranker.d.ts +8 -1
  183. package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -1
  184. package/dist/operations/modeling/predicate-ranker.js +156 -24
  185. package/dist/operations/modeling/predicate-score-3.d.ts.map +1 -1
  186. package/dist/operations/modeling/predicate-score-3.js +6 -0
  187. package/dist/operations/modeling/predicate-types.d.ts +34 -0
  188. package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
  189. package/dist/operations/modeling/predicate-usage-hints-3.d.ts.map +1 -1
  190. package/dist/operations/modeling/predicate-usage-hints-3.js +40 -0
  191. package/dist/operations/modeling/predicate-utils.d.ts.map +1 -1
  192. package/dist/operations/modeling/predicate-utils.js +2 -0
  193. package/dist/operations/modeling/suggest-predicates.d.ts +1 -1
  194. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
  195. package/dist/operations/modeling/suggest-predicates.js +170 -32
  196. package/dist/operations/mutation/delete.d.ts.map +1 -1
  197. package/dist/operations/mutation/delete.js +415 -19
  198. package/dist/operations/mutation/entity-projection.d.ts +11 -0
  199. package/dist/operations/mutation/entity-projection.d.ts.map +1 -0
  200. package/dist/operations/mutation/entity-projection.js +14 -0
  201. package/dist/operations/mutation/relationships.d.ts +10 -0
  202. package/dist/operations/mutation/relationships.d.ts.map +1 -1
  203. package/dist/operations/mutation/relationships.js +71 -1
  204. package/dist/operations/mutation/serialization.d.ts.map +1 -1
  205. package/dist/operations/mutation/serialization.js +1 -0
  206. package/dist/operations/mutation/source-authoring.d.ts +61 -0
  207. package/dist/operations/mutation/source-authoring.d.ts.map +1 -0
  208. package/dist/operations/mutation/source-authoring.js +543 -0
  209. package/dist/operations/mutation/symbol-compiler-lock.d.ts +51 -0
  210. package/dist/operations/mutation/symbol-compiler-lock.d.ts.map +1 -0
  211. package/dist/operations/mutation/symbol-compiler-lock.js +274 -0
  212. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
  213. package/dist/operations/mutation/symbol-granularity.js +34 -3
  214. package/dist/operations/mutation/symbol-refresh.d.ts +18 -1
  215. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
  216. package/dist/operations/mutation/symbol-refresh.js +225 -63
  217. package/dist/operations/mutation/types.d.ts +57 -1
  218. package/dist/operations/mutation/types.d.ts.map +1 -1
  219. package/dist/operations/mutation/upsert.d.ts.map +1 -1
  220. package/dist/operations/mutation/upsert.js +363 -24
  221. package/dist/operations/mutation/validation.d.ts.map +1 -1
  222. package/dist/operations/mutation/validation.js +1 -0
  223. package/dist/operations/planning/apply-plan.d.ts +117 -0
  224. package/dist/operations/planning/apply-plan.d.ts.map +1 -0
  225. package/dist/operations/planning/apply-plan.js +1437 -0
  226. package/dist/operations/planning/compile-intent.d.ts +106 -0
  227. package/dist/operations/planning/compile-intent.d.ts.map +1 -0
  228. package/dist/operations/planning/compile-intent.js +562 -0
  229. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
  230. package/dist/operations/semantic-advisor/analyze-prose.js +6 -2
  231. package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
  232. package/dist/operations/semantic-advisor/clauses.js +15 -2
  233. package/dist/operations/semantic-advisor/ingestion-boundary.d.ts.map +1 -1
  234. package/dist/operations/semantic-advisor/ingestion-boundary.js +7 -3
  235. package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts +51 -0
  236. package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts.map +1 -0
  237. package/dist/operations/semantic-advisor/predicate-rules-launcher.js +96 -0
  238. package/dist/operations/semantic-advisor/types.d.ts +13 -5
  239. package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
  240. package/dist/operations/verification/ingest-verification.d.ts +29 -0
  241. package/dist/operations/verification/ingest-verification.d.ts.map +1 -0
  242. package/dist/operations/verification/ingest-verification.js +192 -0
  243. package/dist/prolog/codec.d.ts.map +1 -1
  244. package/dist/prolog/codec.js +2 -1
  245. package/dist/prolog.d.ts +8 -0
  246. package/dist/prolog.d.ts.map +1 -1
  247. package/dist/prolog.js +66 -16
  248. package/dist/public/branch-resolver.d.ts +1 -0
  249. package/dist/public/branch-resolver.d.ts.map +1 -1
  250. package/dist/public/branch-resolver.js +1 -0
  251. package/dist/public/check-types.d.ts +2 -2
  252. package/dist/public/check-types.d.ts.map +1 -1
  253. package/dist/public/check-types.js +16 -16
  254. package/dist/public/diagnostic-usage.d.ts.map +1 -1
  255. package/dist/public/diagnostic-usage.js +69 -1
  256. package/dist/public/distribution-parity.d.ts +1 -1
  257. package/dist/public/distribution-parity.d.ts.map +1 -1
  258. package/dist/public/distribution-parity.js +1 -0
  259. package/dist/public/ignore-policy.d.ts.map +1 -1
  260. package/dist/public/ignore-policy.js +16 -4
  261. package/dist/public/impact/coverage-depth-quality.d.ts +6 -1
  262. package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
  263. package/dist/public/impact/coverage-depth-quality.js +21 -3
  264. package/dist/public/impact/full-kb-quality.d.ts +4 -2
  265. package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
  266. package/dist/public/impact/full-kb-quality.js +61 -1
  267. package/dist/public/impact/manifest.d.ts.map +1 -1
  268. package/dist/public/impact/manifest.js +2 -5
  269. package/dist/public/operational-artifacts.d.ts.map +1 -1
  270. package/dist/public/operational-artifacts.js +7 -1
  271. package/dist/public/operations/catalog.d.ts +682 -67
  272. package/dist/public/operations/catalog.d.ts.map +1 -1
  273. package/dist/public/operations/catalog.js +126 -4
  274. package/dist/public/operations/check-executor.d.ts +2 -2
  275. package/dist/public/operations/check-executor.d.ts.map +1 -1
  276. package/dist/public/operations/check-executor.js +72 -13
  277. package/dist/public/operations/check-format-shared.d.ts +3 -0
  278. package/dist/public/operations/check-format-shared.d.ts.map +1 -1
  279. package/dist/public/operations/check-format-shared.js +3 -0
  280. package/dist/public/operations/check-helpers.d.ts +27 -2
  281. package/dist/public/operations/check-helpers.d.ts.map +1 -1
  282. package/dist/public/operations/check-helpers.js +62 -26
  283. package/dist/public/operations/contracts.d.ts +11 -0
  284. package/dist/public/operations/contracts.d.ts.map +1 -0
  285. package/dist/public/operations/contracts.js +325 -0
  286. package/dist/public/operations/discovery-entities.d.ts.map +1 -1
  287. package/dist/public/operations/discovery-entities.js +3 -2
  288. package/dist/public/operations/discovery-executors.d.ts +37 -1
  289. package/dist/public/operations/discovery-executors.d.ts.map +1 -1
  290. package/dist/public/operations/discovery-executors.js +246 -9
  291. package/dist/public/operations/index.d.ts +9 -4
  292. package/dist/public/operations/index.d.ts.map +1 -1
  293. package/dist/public/operations/index.js +8 -3
  294. package/dist/public/operations/migration-plan.d.ts +101 -0
  295. package/dist/public/operations/migration-plan.d.ts.map +1 -0
  296. package/dist/public/operations/migration-plan.js +537 -0
  297. package/dist/public/operations/node-ports.d.ts.map +1 -1
  298. package/dist/public/operations/node-ports.js +68 -8
  299. package/dist/public/operations/prolog-json.d.ts +14 -0
  300. package/dist/public/operations/prolog-json.d.ts.map +1 -1
  301. package/dist/public/operations/prolog-json.js +55 -6
  302. package/dist/public/operations/repair-plan.d.ts.map +1 -1
  303. package/dist/public/operations/repair-plan.js +1 -0
  304. package/dist/public/operations/result-envelope.d.ts +13 -0
  305. package/dist/public/operations/result-envelope.d.ts.map +1 -0
  306. package/dist/public/operations/result-envelope.js +104 -0
  307. package/dist/public/operations/runtime-types.d.ts +126 -5
  308. package/dist/public/operations/runtime-types.d.ts.map +1 -1
  309. package/dist/public/operations/source-relationship-parity.d.ts +13 -0
  310. package/dist/public/operations/source-relationship-parity.d.ts.map +1 -0
  311. package/dist/public/operations/source-relationship-parity.js +162 -0
  312. package/dist/public/operations/specs/{autopilot.d.ts → bootstrap.d.ts} +9 -9
  313. package/dist/public/operations/specs/bootstrap.d.ts.map +1 -0
  314. package/dist/public/operations/specs/{autopilot.js → bootstrap.js} +8 -7
  315. package/dist/public/operations/specs/check.d.ts +4 -4
  316. package/dist/public/operations/specs/check.d.ts.map +1 -1
  317. package/dist/public/operations/specs/check.js +4 -3
  318. package/dist/public/operations/specs/discovery.d.ts +87 -3
  319. package/dist/public/operations/specs/discovery.d.ts.map +1 -1
  320. package/dist/public/operations/specs/discovery.js +53 -3
  321. package/dist/public/operations/specs/modeling.d.ts +3 -3
  322. package/dist/public/operations/specs/modeling.js +3 -3
  323. package/dist/public/operations/specs/mutation-schemas.d.ts +190 -47
  324. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
  325. package/dist/public/operations/specs/mutation-schemas.js +3 -1
  326. package/dist/public/operations/specs/mutation.d.ts +42 -2
  327. package/dist/public/operations/specs/mutation.d.ts.map +1 -1
  328. package/dist/public/operations/specs/mutation.js +26 -2
  329. package/dist/public/operations/specs/planning.d.ts +270 -0
  330. package/dist/public/operations/specs/planning.d.ts.map +1 -0
  331. package/dist/public/operations/specs/planning.js +191 -0
  332. package/dist/public/operations/specs/reporting.d.ts +4 -1
  333. package/dist/public/operations/specs/reporting.d.ts.map +1 -1
  334. package/dist/public/operations/specs/reporting.js +46 -1
  335. package/dist/public/operations/specs/upsert.d.ts +204 -47
  336. package/dist/public/operations/specs/upsert.d.ts.map +1 -1
  337. package/dist/public/operations/specs/upsert.js +9 -0
  338. package/dist/public/operations/specs/verification.d.ts +78 -0
  339. package/dist/public/operations/specs/verification.d.ts.map +1 -0
  340. package/dist/public/operations/specs/verification.js +62 -0
  341. package/dist/public/operations/symbol-repair-plan.d.ts +11 -0
  342. package/dist/public/operations/symbol-repair-plan.d.ts.map +1 -0
  343. package/dist/public/operations/symbol-repair-plan.js +123 -0
  344. package/dist/public/operations/types.d.ts +52 -1
  345. package/dist/public/operations/types.d.ts.map +1 -1
  346. package/dist/public/playwright-case-id.d.ts +8 -0
  347. package/dist/public/playwright-case-id.d.ts.map +1 -0
  348. package/dist/public/playwright-case-id.js +25 -0
  349. package/dist/public/schemas/entity.d.ts.map +1 -1
  350. package/dist/public/schemas/entity.js +4 -2
  351. package/dist/public/skills/kibi-bootstrap/SKILL.md +58 -0
  352. package/dist/public/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  353. package/dist/public/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  354. package/dist/public/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  355. package/dist/public/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  356. package/dist/public/skills/kibi-freshness/SKILL.md +40 -10
  357. package/dist/public/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  358. package/dist/public/skills/kibi-freshness/resources/operation-access.md +6 -0
  359. package/dist/public/skills/kibi-freshness/resources/source-authoring.md +7 -0
  360. package/dist/public/skills/kibi-traceability/SKILL.md +47 -47
  361. package/dist/public/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  362. package/dist/public/skills/kibi-traceability/resources/operation-access.md +5 -0
  363. package/dist/public/skills/kibi-traceability/resources/source-authoring.md +6 -0
  364. package/dist/public/skills/kibi-traceability/resources/traceability.md +8 -0
  365. package/dist/public/skills/kibi-usage/SKILL.md +115 -239
  366. package/dist/public/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  367. package/dist/public/skills/kibi-usage/resources/kb-improvement.md +38 -0
  368. package/dist/public/skills/kibi-usage/resources/operation-access.md +36 -38
  369. package/dist/public/skills/kibi-usage/resources/relationship-directions.md +3 -3
  370. package/dist/public/skills/kibi-usage/resources/source-authoring.md +31 -0
  371. package/dist/public/skills/kibi-usage/resources/workflows.md +56 -3
  372. package/dist/public/symbol-granularity.d.ts +1 -1
  373. package/dist/public/symbol-granularity.d.ts.map +1 -1
  374. package/dist/public/symbol-granularity.js +1 -0
  375. package/dist/public/telemetry-acceptance.d.ts +7 -0
  376. package/dist/public/telemetry-acceptance.d.ts.map +1 -1
  377. package/dist/public/telemetry-acceptance.js +8 -1
  378. package/dist/public/telemetry-remediation.js +1 -1
  379. package/dist/public/verification-receipt.d.ts +206 -39
  380. package/dist/public/verification-receipt.d.ts.map +1 -1
  381. package/dist/public/verification-receipt.js +171 -4
  382. package/dist/relationships/shards.d.ts +16 -0
  383. package/dist/relationships/shards.d.ts.map +1 -1
  384. package/dist/relationships/shards.js +87 -2
  385. package/dist/report/brand.d.ts +19 -0
  386. package/dist/report/brand.d.ts.map +1 -0
  387. package/dist/report/brand.js +112 -0
  388. package/dist/report/html-report.d.ts +19 -0
  389. package/dist/report/html-report.d.ts.map +1 -0
  390. package/dist/report/html-report.js +963 -0
  391. package/dist/report/relative-time.d.ts +4 -0
  392. package/dist/report/relative-time.d.ts.map +1 -0
  393. package/dist/report/relative-time.js +46 -0
  394. package/dist/report/report-view.d.ts +17 -0
  395. package/dist/report/report-view.d.ts.map +1 -0
  396. package/dist/report/report-view.js +33 -0
  397. package/dist/report/repository.d.ts +35 -0
  398. package/dist/report/repository.d.ts.map +1 -0
  399. package/dist/report/repository.js +151 -0
  400. package/dist/runtime/cli-runtime.d.ts.map +1 -1
  401. package/dist/runtime/cli-runtime.js +98 -42
  402. package/dist/schemas/entity.schema.json +1148 -273
  403. package/dist/traceability/evidence-model.d.ts +2 -2
  404. package/dist/traceability/evidence-model.d.ts.map +1 -1
  405. package/dist/traceability/evidence-model.js +2 -2
  406. package/dist/traceability/git-staged.d.ts.map +1 -1
  407. package/dist/traceability/git-staged.js +15 -40
  408. package/dist/traceability/markdown-validate.d.ts.map +1 -1
  409. package/dist/traceability/markdown-validate.js +12 -7
  410. package/dist/traceability/staged-impact-contract.d.ts +3 -3
  411. package/dist/traceability/staged-impact-contract.d.ts.map +1 -1
  412. package/dist/traceability/staged-impact-contract.js +10 -38
  413. package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
  414. package/dist/traceability/staged-symbols-manifest.js +8 -3
  415. package/dist/traceability/temp-kb.d.ts.map +1 -1
  416. package/dist/traceability/temp-kb.js +3 -0
  417. package/dist/types/entities.d.ts +3 -0
  418. package/dist/types/entities.d.ts.map +1 -1
  419. package/dist/utils/branch-resolver.d.ts +24 -10
  420. package/dist/utils/branch-resolver.d.ts.map +1 -1
  421. package/dist/utils/branch-resolver.js +121 -38
  422. package/dist/utils/branch-store-locator.d.ts +23 -0
  423. package/dist/utils/branch-store-locator.d.ts.map +1 -0
  424. package/dist/utils/branch-store-locator.js +90 -0
  425. package/dist/utils/branch-store.d.ts +15 -0
  426. package/dist/utils/branch-store.d.ts.map +1 -0
  427. package/dist/utils/branch-store.js +130 -0
  428. package/dist/utils/config.d.ts +39 -37
  429. package/dist/utils/config.d.ts.map +1 -1
  430. package/dist/utils/config.js +107 -119
  431. package/dist/utils/kb-manifest.d.ts +35 -0
  432. package/dist/utils/kb-manifest.d.ts.map +1 -0
  433. package/dist/utils/kb-manifest.js +154 -0
  434. package/dist/utils/kb-paths.d.ts +54 -0
  435. package/dist/utils/kb-paths.d.ts.map +1 -0
  436. package/dist/utils/kb-paths.js +125 -0
  437. package/dist/utils/manifest-paths.d.ts +4 -4
  438. package/dist/utils/manifest-paths.d.ts.map +1 -1
  439. package/dist/utils/manifest-paths.js +8 -56
  440. package/dist/utils/rule-registry.d.ts +48 -20
  441. package/dist/utils/rule-registry.d.ts.map +1 -1
  442. package/dist/utils/rule-registry.js +82 -77
  443. package/dist/utils/schema-version.d.ts +5 -5
  444. package/dist/utils/schema-version.d.ts.map +1 -1
  445. package/dist/utils/schema-version.js +26 -6
  446. package/dist/utils/strict-modeling.d.ts +0 -4
  447. package/dist/utils/strict-modeling.d.ts.map +1 -1
  448. package/dist/utils/strict-modeling.js +7 -8
  449. package/dist/verification/playwright-reporter.d.ts +21 -0
  450. package/dist/verification/playwright-reporter.d.ts.map +1 -0
  451. package/dist/verification/playwright-reporter.js +114 -0
  452. package/package.json +51 -8
  453. package/schema/config.json +2 -2
  454. package/schema/manifest.json +26 -0
  455. package/src/public/branch-resolver.ts +1 -0
  456. package/src/public/check-types.ts +22 -19
  457. package/src/public/diagnostic-usage.ts +79 -1
  458. package/src/public/distribution-parity.ts +1 -0
  459. package/src/public/ignore-policy.ts +16 -10
  460. package/src/public/impact/coverage-depth-quality.ts +36 -0
  461. package/src/public/impact/full-kb-quality.ts +118 -5
  462. package/src/public/impact/manifest.ts +2 -4
  463. package/src/public/operational-artifacts.ts +9 -1
  464. package/src/public/operations/catalog.ts +146 -9
  465. package/src/public/operations/check-executor.ts +102 -15
  466. package/src/public/operations/check-format-shared.ts +6 -0
  467. package/src/public/operations/check-helpers.ts +74 -35
  468. package/src/public/operations/contracts.ts +366 -0
  469. package/src/public/operations/discovery-entities.ts +3 -2
  470. package/src/public/operations/discovery-executors.ts +343 -15
  471. package/src/public/operations/index.ts +9 -4
  472. package/src/public/operations/migration-plan.ts +740 -0
  473. package/src/public/operations/node-ports.ts +84 -10
  474. package/src/public/operations/prolog-json.ts +73 -6
  475. package/src/public/operations/repair-plan.ts +1 -0
  476. package/src/public/operations/result-envelope.ts +136 -0
  477. package/src/public/operations/runtime-types.ts +130 -5
  478. package/src/public/operations/source-relationship-parity.ts +226 -0
  479. package/src/public/operations/specs/{autopilot.ts → bootstrap.ts} +17 -16
  480. package/src/public/operations/specs/check.ts +4 -3
  481. package/src/public/operations/specs/discovery.ts +57 -3
  482. package/src/public/operations/specs/modeling.ts +3 -3
  483. package/src/public/operations/specs/mutation-schemas.ts +6 -1
  484. package/src/public/operations/specs/mutation.ts +27 -2
  485. package/src/public/operations/specs/planning.ts +234 -0
  486. package/src/public/operations/specs/reporting.ts +55 -1
  487. package/src/public/operations/specs/upsert.ts +10 -0
  488. package/src/public/operations/specs/verification.ts +78 -0
  489. package/src/public/operations/symbol-repair-plan.ts +164 -0
  490. package/src/public/operations/types.ts +62 -1
  491. package/src/public/playwright-case-id.ts +35 -0
  492. package/src/public/schemas/entity.ts +7 -2
  493. package/src/public/skills/kibi-bootstrap/SKILL.md +58 -0
  494. package/src/public/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  495. package/src/public/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  496. package/src/public/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  497. package/src/public/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  498. package/src/public/skills/kibi-freshness/SKILL.md +40 -10
  499. package/src/public/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  500. package/src/public/skills/kibi-freshness/resources/operation-access.md +6 -0
  501. package/src/public/skills/kibi-freshness/resources/source-authoring.md +7 -0
  502. package/src/public/skills/kibi-traceability/SKILL.md +47 -47
  503. package/src/public/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  504. package/src/public/skills/kibi-traceability/resources/operation-access.md +5 -0
  505. package/src/public/skills/kibi-traceability/resources/source-authoring.md +6 -0
  506. package/src/public/skills/kibi-traceability/resources/traceability.md +8 -0
  507. package/src/public/skills/kibi-usage/SKILL.md +115 -239
  508. package/src/public/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  509. package/src/public/skills/kibi-usage/resources/kb-improvement.md +38 -0
  510. package/src/public/skills/kibi-usage/resources/operation-access.md +36 -38
  511. package/src/public/skills/kibi-usage/resources/relationship-directions.md +3 -3
  512. package/src/public/skills/kibi-usage/resources/source-authoring.md +31 -0
  513. package/src/public/skills/kibi-usage/resources/workflows.md +56 -3
  514. package/src/public/symbol-granularity.ts +1 -0
  515. package/src/public/telemetry-acceptance.ts +16 -1
  516. package/src/public/telemetry-remediation.ts +1 -1
  517. package/src/public/verification-receipt.ts +248 -6
  518. package/src/schemas/entity.schema.json +1148 -273
  519. package/templates/github/kibi-badge.yml +86 -0
  520. package/templates/github/kibi-report.yml +84 -0
  521. package/dist/operations/autopilot/activation.d.ts.map +0 -1
  522. package/dist/operations/autopilot/candidates.d.ts +0 -4
  523. package/dist/operations/autopilot/discovery.d.ts.map +0 -1
  524. package/dist/operations/autopilot/generate.d.ts +0 -8
  525. package/dist/operations/autopilot/generate.d.ts.map +0 -1
  526. package/dist/operations/autopilot/generate.js +0 -112
  527. package/dist/operations/autopilot/presentation.d.ts +0 -13
  528. package/dist/operations/autopilot/presentation.d.ts.map +0 -1
  529. package/dist/operations/autopilot/presentation.js +0 -91
  530. package/dist/operations/autopilot/types.d.ts.map +0 -1
  531. package/dist/operations/autopilot/types.js +0 -8
  532. package/dist/public/operations/specs/autopilot.d.ts.map +0 -1
  533. package/dist/public/skills/init-kibi/SKILL.md +0 -62
  534. package/src/public/skills/init-kibi/SKILL.md +0 -62
  535. /package/dist/operations/{autopilot → bootstrap}/activation.d.ts +0 -0
  536. /package/dist/operations/{autopilot → bootstrap}/candidate-helpers.d.ts +0 -0
  537. /package/dist/operations/{autopilot → bootstrap}/candidate-helpers.js +0 -0
  538. /package/dist/operations/{autopilot → bootstrap}/requirement-claims.d.ts +0 -0
  539. /package/dist/operations/{autopilot → bootstrap}/requirement-claims.js +0 -0
@@ -1,4 +1,4 @@
1
- import type { OperationName, OperationSpec } from "./types.js";
1
+ import type { OperationName, OperationSpec, ResolvedOperationSpec } from "./types.js";
2
2
  export declare const OPERATION_CATALOG: readonly [{
3
3
  readonly name: "kb_skills_list";
4
4
  readonly cliName: "skills list";
@@ -103,7 +103,7 @@ export declare const OPERATION_CATALOG: readonly [{
103
103
  }, {
104
104
  readonly name: "kb_search";
105
105
  readonly cliName: "search";
106
- readonly description: "Search KB entities for discovery using metadata and markdown body text. Use for exploratory lookup before exact follow-up with kb_query. No mutation side effects.";
106
+ readonly description: "Search KB entities for discovery using legacy lexical ranking or deterministic intent-v1 ranking. Intent mode accepts host-agent semantic facets and source locations, returns evidence and abstains below its confidence threshold. Use for exploratory lookup before exact follow-up with kb_query. No mutation side effects.";
107
107
  readonly businessInputSchema: {
108
108
  readonly type: "object";
109
109
  readonly required: readonly ["query"];
@@ -131,6 +131,90 @@ export declare const OPERATION_CATALOG: readonly [{
131
131
  readonly default: 0;
132
132
  readonly description: "Optional zero-based pagination offset. Default: 0.";
133
133
  };
134
+ readonly rankingMode: {
135
+ readonly type: "string";
136
+ readonly enum: readonly ["legacy", "intent-v1"];
137
+ readonly default: "legacy";
138
+ readonly description: "Optional deterministic ranking mode. Omit for backward-compatible lexical search; use intent-v1 for semantic facets, source-aware evidence, graph boosts, and abstention.";
139
+ };
140
+ readonly semanticFacets: {
141
+ readonly type: "object";
142
+ readonly additionalProperties: false;
143
+ readonly properties: {
144
+ readonly actors: {
145
+ readonly type: "array";
146
+ readonly items: {
147
+ readonly type: "string";
148
+ };
149
+ readonly maxItems: 20;
150
+ };
151
+ readonly actions: {
152
+ readonly type: "array";
153
+ readonly items: {
154
+ readonly type: "string";
155
+ };
156
+ readonly maxItems: 20;
157
+ };
158
+ readonly objects: {
159
+ readonly type: "array";
160
+ readonly items: {
161
+ readonly type: "string";
162
+ };
163
+ readonly maxItems: 20;
164
+ };
165
+ readonly constraints: {
166
+ readonly type: "array";
167
+ readonly items: {
168
+ readonly type: "string";
169
+ };
170
+ readonly maxItems: 20;
171
+ };
172
+ readonly aliases: {
173
+ readonly type: "array";
174
+ readonly items: {
175
+ readonly type: "string";
176
+ };
177
+ readonly maxItems: 20;
178
+ };
179
+ };
180
+ readonly description: "Optional host-agent semantic interpretation. Kibi uses these strings as deterministic aliases/facets; it does not call a model itself.";
181
+ };
182
+ readonly sourceLocations: {
183
+ readonly type: "array";
184
+ readonly maxItems: 20;
185
+ readonly items: {
186
+ readonly type: "object";
187
+ readonly required: readonly ["path"];
188
+ readonly additionalProperties: false;
189
+ readonly properties: {
190
+ readonly path: {
191
+ readonly type: "string";
192
+ readonly minLength: 1;
193
+ readonly description: "Workspace-relative source path.";
194
+ };
195
+ readonly line: {
196
+ readonly type: "integer";
197
+ readonly minimum: 1;
198
+ };
199
+ readonly column: {
200
+ readonly type: "integer";
201
+ readonly minimum: 1;
202
+ };
203
+ readonly symbol: {
204
+ readonly type: "string";
205
+ readonly minLength: 1;
206
+ };
207
+ };
208
+ };
209
+ readonly description: "Optional changed-code locations. Results are matched to source-linked symbols/entities and include source evidence.";
210
+ };
211
+ readonly minScore: {
212
+ readonly type: "number";
213
+ readonly minimum: 0;
214
+ readonly maximum: 1;
215
+ readonly default: 0.18;
216
+ readonly description: "Intent-v1 acceptance threshold between 0 and 1. Low-confidence queries abstain instead of returning misleading matches.";
217
+ };
134
218
  };
135
219
  };
136
220
  readonly requiresProlog: true;
@@ -139,12 +223,12 @@ export declare const OPERATION_CATALOG: readonly [{
139
223
  }, {
140
224
  readonly name: "kb_status";
141
225
  readonly cliName: "status";
142
- readonly description: "Report current branch, KB snapshot and freshness metadata, plus the deterministic workspace snapshot used to validate execution receipts. Read-only status inspection with no mutation side effects.";
226
+ readonly description: "Report current branch, KB snapshot, freshness metadata, schema status, and a typed kibi.migration-plan.v2 action graph. Read-only status inspection with no mutation side effects; damaged stores are diagnosed without starting the engine.";
143
227
  readonly businessInputSchema: {
144
228
  readonly type: "object";
145
229
  readonly properties: {};
146
230
  };
147
- readonly requiresProlog: true;
231
+ readonly requiresProlog: false;
148
232
  readonly effects: readonly ["kb-read", "workspace-read"];
149
233
  readonly execute: typeof import("./discovery-executors.js").executeStatus;
150
234
  }, {
@@ -195,7 +279,7 @@ export declare const OPERATION_CATALOG: readonly [{
195
279
  }, {
196
280
  readonly name: "kb_coverage";
197
281
  readonly cliName: "coverage";
198
- readonly description: "Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types. Requirement reports include a deterministic, dependency-ordered, read-only repair plan; optional legacy migration previews reconstruct authored proposition inventories and rank exact schema candidates without producing executable writes. Paginated plans identify incomplete scope. Requirement rows keep coverageStatus separate from proofStatus and require fresh snapshot-bound E2E receipts before proof. No mutation side effects.";
282
+ readonly description: "Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types. Reports include the compatible repair plan plus typed kibi.migration-plan.v2 actions; semantic and E2E actions remain review/execution work. Paginated plans identify incomplete scope and no mutation occurs.";
199
283
  readonly businessInputSchema: {
200
284
  readonly type: "object";
201
285
  readonly properties: {
@@ -401,7 +485,7 @@ export declare const OPERATION_CATALOG: readonly [{
401
485
  };
402
486
  readonly source: {
403
487
  readonly type: "string";
404
- readonly description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: 'documentation/requirements/customer-retention.md'.";
488
+ readonly description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: '.kb/requirements/customer-retention.md'.";
405
489
  };
406
490
  readonly sourceFiles: {
407
491
  readonly type: "array";
@@ -435,7 +519,7 @@ export declare const OPERATION_CATALOG: readonly [{
435
519
  };
436
520
  readonly provenance: {
437
521
  readonly type: "string";
438
- readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: 'documentation/requirements/customer-retention.md#L1'.";
522
+ readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: '.kb/requirements/customer-retention.md#L1'.";
439
523
  };
440
524
  readonly existingLogicClaims: {
441
525
  readonly type: "array";
@@ -470,7 +554,7 @@ export declare const OPERATION_CATALOG: readonly [{
470
554
  }, {
471
555
  readonly name: "kb_suggest_predicates";
472
556
  readonly cliName: "suggest-predicates";
473
- readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns ranked candidates, an applicable predicate-fact plan only when every ordered argument is bound, a separate requires_predicate relationship plan when a requirement ID is supplied, or an explicit ontology-gap observation when no predicate fits.";
557
+ readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Retrieval/ranking is followed by a semantic applicability gate and conservative binding review; complete-looking generic placeholders never trigger application. Read-only guidance returns additive candidate diagnostics, an applicable predicate-fact plan only for a semantically eligible candidate with reviewed bindings, or an explicit ontology-gap observation plus a deterministic review-only predicate schema draft when no schema fits.";
474
558
  readonly businessInputSchema: {
475
559
  readonly type: "object";
476
560
  readonly required: readonly ["text"];
@@ -543,9 +627,9 @@ export declare const OPERATION_CATALOG: readonly [{
543
627
  readonly effects: readonly ["kb-read"];
544
628
  readonly execute: typeof import("../../operations/modeling/suggest-predicates.js").executeSuggestPredicates;
545
629
  }, {
546
- readonly name: "kb_autopilot_generate";
547
- readonly cliName: "autopilot-generate";
548
- readonly description: "Generate agent-centric bootstrap output for KB population. Read-only analysis that returns activation state, bootstrap guidance, candidate entities with evidence, payoff summary, and exact applyPlan payloads for later kb_upsert calls. No mutation side effects.";
630
+ readonly name: "kb_plan_bootstrap";
631
+ readonly cliName: "plan-bootstrap";
632
+ readonly description: "Generate a deterministic, snapshot-bound kibi.bootstrap-plan.v1 for repository onboarding. Read-only analysis returns evidence, bounded context questions, exact dependency-ordered actions, a canonical plan hash, and no mutation side effects.";
549
633
  readonly businessInputSchema: {
550
634
  readonly type: "object";
551
635
  readonly properties: {
@@ -618,7 +702,7 @@ export declare const OPERATION_CATALOG: readonly [{
618
702
  };
619
703
  readonly requiresProlog: false;
620
704
  readonly effects: readonly ["workspace-read"];
621
- readonly execute: typeof import("./index.js").executeAutopilotGenerate;
705
+ readonly execute: typeof import("./index.js").executePlanBootstrap;
622
706
  }, {
623
707
  readonly name: "kb_validate_upsert";
624
708
  readonly cliName: "validate-upsert";
@@ -756,7 +840,7 @@ export declare const OPERATION_CATALOG: readonly [{
756
840
  };
757
841
  readonly granularity_reason: {
758
842
  readonly type: "string";
759
- readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link"];
843
+ readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link", "test-suite"];
760
844
  readonly description: "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist.";
761
845
  };
762
846
  readonly symbol_role: {
@@ -774,63 +858,206 @@ export declare const OPERATION_CATALOG: readonly [{
774
858
  readonly enum: readonly ["internal", "consumer"];
775
859
  readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
776
860
  };
777
- readonly verification_receipts: {
778
- readonly type: "array";
779
- readonly maxItems: 50;
780
- readonly items: {
781
- readonly type: "object";
782
- readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest"];
783
- readonly properties: {
784
- readonly version: {
785
- readonly type: "string";
786
- readonly const: "kibi.verification-receipt.v1";
787
- };
788
- readonly receipt_id: {
789
- readonly type: "string";
790
- readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
791
- };
792
- readonly test_id: {
793
- readonly type: "string";
794
- readonly minLength: 1;
795
- };
796
- readonly runner: {
861
+ readonly verification_contract: {
862
+ readonly type: "object";
863
+ readonly required: readonly ["version", "runner", "command_argv", "required_case_symbols", "required_projects", "success_policy"];
864
+ readonly properties: {
865
+ readonly version: {
866
+ readonly type: "string";
867
+ readonly const: "kibi.verification-contract.v1";
868
+ };
869
+ readonly runner: {
870
+ readonly type: "string";
871
+ readonly minLength: 1;
872
+ };
873
+ readonly command_argv: {
874
+ readonly type: "array";
875
+ readonly minItems: 1;
876
+ readonly items: {
797
877
  readonly type: "string";
798
878
  readonly minLength: 1;
799
879
  };
800
- readonly command: {
880
+ };
881
+ readonly required_case_symbols: {
882
+ readonly type: "array";
883
+ readonly items: {
801
884
  readonly type: "string";
802
885
  readonly minLength: 1;
803
886
  };
804
- readonly scope: {
805
- readonly type: "string";
806
- readonly enum: readonly ["unit", "integration", "end_to_end"];
807
- };
808
- readonly outcome: {
809
- readonly type: "string";
810
- readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped"];
811
- };
812
- readonly code_snapshot: {
813
- readonly type: "string";
814
- readonly pattern: "^[a-f0-9]{64}$";
815
- };
816
- readonly environment_hash: {
817
- readonly type: "string";
818
- readonly pattern: "^[a-f0-9]{64}$";
819
- };
820
- readonly started_at: {
887
+ readonly uniqueItems: true;
888
+ };
889
+ readonly required_projects: {
890
+ readonly type: "array";
891
+ readonly items: {
821
892
  readonly type: "string";
822
893
  readonly minLength: 1;
823
894
  };
824
- readonly finished_at: {
825
- readonly type: "string";
826
- readonly minLength: 1;
895
+ readonly uniqueItems: true;
896
+ };
897
+ readonly success_policy: {
898
+ readonly type: "string";
899
+ readonly const: "all_required_cases_first_attempt";
900
+ };
901
+ };
902
+ readonly additionalProperties: false;
903
+ };
904
+ readonly verification_receipts: {
905
+ readonly type: "array";
906
+ readonly maxItems: 50;
907
+ readonly items: {
908
+ readonly oneOf: readonly [{
909
+ readonly type: "object";
910
+ readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest"];
911
+ readonly properties: {
912
+ readonly version: {
913
+ readonly type: "string";
914
+ readonly const: "kibi.verification-receipt.v1";
915
+ };
916
+ readonly receipt_id: {
917
+ readonly type: "string";
918
+ readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
919
+ };
920
+ readonly test_id: {
921
+ readonly type: "string";
922
+ readonly minLength: 1;
923
+ };
924
+ readonly runner: {
925
+ readonly type: "string";
926
+ readonly minLength: 1;
927
+ };
928
+ readonly command: {
929
+ readonly type: "string";
930
+ readonly minLength: 1;
931
+ };
932
+ readonly scope: {
933
+ readonly type: "string";
934
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
935
+ };
936
+ readonly outcome: {
937
+ readonly type: "string";
938
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
939
+ };
940
+ readonly code_snapshot: {
941
+ readonly type: "string";
942
+ readonly pattern: "^[a-f0-9]{64}$";
943
+ };
944
+ readonly environment_hash: {
945
+ readonly type: "string";
946
+ readonly pattern: "^[a-f0-9]{64}$";
947
+ };
948
+ readonly started_at: {
949
+ readonly type: "string";
950
+ readonly minLength: 1;
951
+ };
952
+ readonly finished_at: {
953
+ readonly type: "string";
954
+ readonly minLength: 1;
955
+ };
956
+ readonly artifact_digest: {
957
+ readonly type: "string";
958
+ readonly pattern: "^[a-f0-9]{64}$";
959
+ };
827
960
  };
828
- readonly artifact_digest: {
829
- readonly type: "string";
830
- readonly pattern: "^[a-f0-9]{64}$";
961
+ readonly additionalProperties: false;
962
+ }, {
963
+ readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest", "command_argv", "contract_hash", "case_results"];
964
+ readonly properties: {
965
+ readonly version: {
966
+ readonly type: "string";
967
+ readonly const: "kibi.verification-receipt.v2";
968
+ };
969
+ readonly command_argv: {
970
+ readonly type: "array";
971
+ readonly minItems: 1;
972
+ readonly items: {
973
+ readonly type: "string";
974
+ readonly minLength: 1;
975
+ };
976
+ };
977
+ readonly contract_hash: {
978
+ readonly type: "string";
979
+ readonly pattern: "^[a-f0-9]{64}$";
980
+ };
981
+ readonly case_results: {
982
+ readonly type: "array";
983
+ readonly minItems: 1;
984
+ readonly maxItems: 1000;
985
+ readonly items: {
986
+ readonly type: "object";
987
+ readonly required: readonly ["symbol_id", "project", "outcome", "retries", "duration_ms"];
988
+ readonly properties: {
989
+ readonly symbol_id: {
990
+ readonly type: "string";
991
+ readonly minLength: 1;
992
+ };
993
+ readonly project: {
994
+ readonly type: "string";
995
+ readonly minLength: 1;
996
+ };
997
+ readonly outcome: {
998
+ readonly type: "string";
999
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted"];
1000
+ };
1001
+ readonly retries: {
1002
+ readonly type: "integer";
1003
+ readonly minimum: 0;
1004
+ };
1005
+ readonly duration_ms: {
1006
+ readonly type: "integer";
1007
+ readonly minimum: 0;
1008
+ };
1009
+ };
1010
+ readonly additionalProperties: false;
1011
+ };
1012
+ };
1013
+ readonly receipt_id: {
1014
+ readonly type: "string";
1015
+ readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
1016
+ };
1017
+ readonly test_id: {
1018
+ readonly type: "string";
1019
+ readonly minLength: 1;
1020
+ };
1021
+ readonly runner: {
1022
+ readonly type: "string";
1023
+ readonly minLength: 1;
1024
+ };
1025
+ readonly command: {
1026
+ readonly type: "string";
1027
+ readonly minLength: 1;
1028
+ };
1029
+ readonly scope: {
1030
+ readonly type: "string";
1031
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
1032
+ };
1033
+ readonly outcome: {
1034
+ readonly type: "string";
1035
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
1036
+ };
1037
+ readonly code_snapshot: {
1038
+ readonly type: "string";
1039
+ readonly pattern: "^[a-f0-9]{64}$";
1040
+ };
1041
+ readonly environment_hash: {
1042
+ readonly type: "string";
1043
+ readonly pattern: "^[a-f0-9]{64}$";
1044
+ };
1045
+ readonly started_at: {
1046
+ readonly type: "string";
1047
+ readonly minLength: 1;
1048
+ };
1049
+ readonly finished_at: {
1050
+ readonly type: "string";
1051
+ readonly minLength: 1;
1052
+ };
1053
+ readonly artifact_digest: {
1054
+ readonly type: "string";
1055
+ readonly pattern: "^[a-f0-9]{64}$";
1056
+ };
831
1057
  };
832
- };
833
- readonly additionalProperties: false;
1058
+ readonly type: "object";
1059
+ readonly additionalProperties: false;
1060
+ }];
834
1061
  };
835
1062
  readonly description: "Append-only test execution evidence. Proof accepts only the newest valid passed receipt bound to the current code snapshot and within the seven-day freshness window.";
836
1063
  };
@@ -1027,6 +1254,20 @@ export declare const OPERATION_CATALOG: readonly [{
1027
1254
  };
1028
1255
  };
1029
1256
  };
1257
+ readonly document: {
1258
+ readonly type: "object";
1259
+ readonly additionalProperties: false;
1260
+ readonly description: "Optional source-first document write. Paths are workspace-relative; omit body when updating to preserve the existing body bytes.";
1261
+ readonly properties: {
1262
+ readonly path: {
1263
+ readonly type: "string";
1264
+ readonly minLength: 1;
1265
+ };
1266
+ readonly body: {
1267
+ readonly type: "string";
1268
+ };
1269
+ };
1270
+ };
1030
1271
  };
1031
1272
  };
1032
1273
  readonly requiresProlog: true;
@@ -1038,14 +1279,54 @@ export declare const OPERATION_CATALOG: readonly [{
1038
1279
  readonly description: "Delete entities by ID. Use only for intentional removals after dependency checks. Do not use as a bulk cleanup shortcut. Side effects: mutates and saves KB; skips entities with dependents.";
1039
1280
  readonly businessInputSchema: {
1040
1281
  readonly type: "object";
1041
- readonly required: readonly ["ids"];
1282
+ readonly oneOf: readonly [{
1283
+ readonly required: readonly ["ids"];
1284
+ readonly not: {
1285
+ readonly required: readonly ["relationships"];
1286
+ };
1287
+ }, {
1288
+ readonly required: readonly ["relationships"];
1289
+ readonly not: {
1290
+ readonly required: readonly ["ids"];
1291
+ };
1292
+ }];
1042
1293
  readonly properties: {
1043
1294
  readonly ids: {
1044
1295
  readonly type: "array";
1045
1296
  readonly items: {
1046
1297
  readonly type: "string";
1047
1298
  };
1048
- readonly description: "Required list of entity IDs to delete. Example: ['REQ-001','TEST-002']. At least one ID is required.";
1299
+ readonly minItems: 1;
1300
+ readonly description: "Entity IDs to delete after dependency checks.";
1301
+ };
1302
+ readonly relationships: {
1303
+ readonly type: "array";
1304
+ readonly minItems: 1;
1305
+ readonly items: {
1306
+ readonly type: "object";
1307
+ readonly required: readonly ["type", "from", "to"];
1308
+ readonly additionalProperties: false;
1309
+ readonly properties: {
1310
+ readonly type: {
1311
+ readonly type: "string";
1312
+ readonly minLength: 1;
1313
+ };
1314
+ readonly from: {
1315
+ readonly type: "string";
1316
+ readonly minLength: 1;
1317
+ };
1318
+ readonly to: {
1319
+ readonly type: "string";
1320
+ readonly minLength: 1;
1321
+ };
1322
+ };
1323
+ };
1324
+ readonly description: "Exact relationship triples to retract, including legacy shard records.";
1325
+ };
1326
+ readonly approvedPlanHash: {
1327
+ readonly type: "string";
1328
+ readonly pattern: "^[a-fA-F0-9]{64}$";
1329
+ readonly description: "Exact hash returned by a prior authored-entity deletion plan.";
1049
1330
  };
1050
1331
  };
1051
1332
  };
@@ -1055,7 +1336,7 @@ export declare const OPERATION_CATALOG: readonly [{
1055
1336
  }, {
1056
1337
  readonly name: "kb_check";
1057
1338
  readonly cliName: "check";
1058
- readonly description: "Run KB validation rules and return violations. Use before or after mutations, and after meaningful source edits with impact options to surface symbol granularity and semantic-review diagnostics. Do not use for point lookups. No write side effects. Prefer explicit rules for faster iteration; omit rules for final full validation plus full-KB qualityDiagnostics review, including telemetry acceptance when .kb/usage.log exists.";
1339
+ readonly description: "Run KB validation rules and return violations, quality diagnostics, and typed kibi.migration-plan.v2 actions. Use before or after mutations and after source edits; checks remain read-only and never infer or apply actions from prose suggestions.";
1059
1340
  readonly businessInputSchema: {
1060
1341
  readonly type: "object";
1061
1342
  readonly properties: {
@@ -1063,9 +1344,9 @@ export declare const OPERATION_CATALOG: readonly [{
1063
1344
  readonly type: "array";
1064
1345
  readonly items: {
1065
1346
  readonly type: "string";
1066
- readonly enum: readonly ["must-priority-coverage", "symbol-coverage", "symbol-traceability", "no-dangling-refs", "no-cycles", "required-fields", "deprecated-adr-no-successor", "domain-contradictions", "strict-fact-shape", "strict-req-fact-pairing", "predicate-verifiability", "logic-coverage", "rule-safety", "rule-verifiability", "semantic-completeness", "query-plan-safety"];
1347
+ readonly enum: readonly ["must-priority-coverage", "symbol-coverage", "symbol-traceability", "no-dangling-refs", "source-relationship-parity", "no-cycles", "required-fields", "deprecated-adr-no-successor", "domain-contradictions", "strict-fact-shape", "strict-req-fact-pairing", "predicate-verifiability", "logic-coverage", "rule-safety", "rule-verifiability", "semantic-completeness", "query-plan-safety"];
1067
1348
  };
1068
- readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs all rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; if supplied, server preserves scoped validation and skips the full-KB advisory scan.";
1349
+ readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, source-relationship-parity, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs canonical and advisory rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; migration rules run only when explicitly selected. Advisory and migration findings are non-blocking qualityDiagnostics. If supplied, server preserves scoped validation and skips the full-KB advisory scan.";
1069
1350
  };
1070
1351
  readonly sourceFiles: {
1071
1352
  readonly type: "array";
@@ -1093,7 +1374,7 @@ export declare const OPERATION_CATALOG: readonly [{
1093
1374
  };
1094
1375
  readonly workspaceRoot: {
1095
1376
  readonly type: "string";
1096
- readonly description: "Optional workspace root for impact diagnostics and .kb/config.json lookup. Defaults to the MCP server workspace.";
1377
+ readonly description: "Optional workspace root for impact diagnostics. Defaults to the MCP server workspace.";
1097
1378
  };
1098
1379
  };
1099
1380
  };
@@ -1125,7 +1406,341 @@ export declare const OPERATION_CATALOG: readonly [{
1125
1406
  readonly requiresProlog: false;
1126
1407
  readonly effects: readonly ["network-read"];
1127
1408
  readonly execute: (input: import("./index.js").SparqlRemoteInput, context: import("./runtime-types.js").OperationContext) => Promise<import("./types.js").OperationResult<import("./index.js").SparqlRemoteOutput>>;
1409
+ }, {
1410
+ readonly name: "kb_compile_intent";
1411
+ readonly cliName: "compile-intent";
1412
+ readonly description: "Compile complete change intent into a deterministic, snapshot-bound read-only plan. Reuses intent-aware discovery and semantic modeling, accounts for every proposition, reports contradiction witnesses, proposes traceability links, and emits dependency-ordered kb_upsert-style steps only for resolved typed claims. No mutation side effects.";
1413
+ readonly businessInputSchema: {
1414
+ readonly type: "object";
1415
+ readonly required: readonly ["intent", "mode"];
1416
+ readonly properties: {
1417
+ readonly intent: {
1418
+ readonly type: "string";
1419
+ readonly minLength: 1;
1420
+ readonly maxLength: 10000;
1421
+ readonly description: "Complete post-change normative intent. Send the desired behavior, not a patch fragment.";
1422
+ };
1423
+ readonly mode: {
1424
+ readonly type: "string";
1425
+ readonly enum: readonly ["create", "update"];
1426
+ readonly description: "Create a new requirement or update an existing one. Update auto-selection is allowed only with a high-confidence, well-separated candidate.";
1427
+ };
1428
+ readonly requirementId: {
1429
+ readonly type: "string";
1430
+ readonly description: "Optional exact requirement ID. Required for an update when automatic selection is below the confidence and margin gates.";
1431
+ };
1432
+ readonly title: {
1433
+ readonly type: "string";
1434
+ readonly description: "Optional requirement title; existing title is preserved for updates when omitted.";
1435
+ };
1436
+ readonly clauses: {
1437
+ readonly type: "array";
1438
+ readonly items: {
1439
+ readonly type: "string";
1440
+ readonly minLength: 1;
1441
+ };
1442
+ readonly maxItems: 64;
1443
+ readonly description: "Optional complete atomic clause decomposition. Each assertive clause receives independent proposition accounting.";
1444
+ };
1445
+ readonly semanticFacets: {
1446
+ readonly type: "object";
1447
+ readonly additionalProperties: false;
1448
+ readonly properties: {
1449
+ readonly actors: {
1450
+ readonly type: "array";
1451
+ readonly items: {
1452
+ readonly type: "string";
1453
+ };
1454
+ readonly maxItems: 20;
1455
+ };
1456
+ readonly actions: {
1457
+ readonly type: "array";
1458
+ readonly items: {
1459
+ readonly type: "string";
1460
+ };
1461
+ readonly maxItems: 20;
1462
+ };
1463
+ readonly objects: {
1464
+ readonly type: "array";
1465
+ readonly items: {
1466
+ readonly type: "string";
1467
+ };
1468
+ readonly maxItems: 20;
1469
+ };
1470
+ readonly constraints: {
1471
+ readonly type: "array";
1472
+ readonly items: {
1473
+ readonly type: "string";
1474
+ };
1475
+ readonly maxItems: 20;
1476
+ };
1477
+ readonly aliases: {
1478
+ readonly type: "array";
1479
+ readonly items: {
1480
+ readonly type: "string";
1481
+ };
1482
+ readonly maxItems: 20;
1483
+ };
1484
+ };
1485
+ readonly description: "Host-agent facets forwarded to deterministic intent-v1 discovery.";
1486
+ };
1487
+ readonly sourceLocations: {
1488
+ readonly type: "array";
1489
+ readonly maxItems: 20;
1490
+ readonly items: {
1491
+ readonly type: "object";
1492
+ readonly required: readonly ["path"];
1493
+ readonly additionalProperties: false;
1494
+ readonly properties: {
1495
+ readonly path: {
1496
+ readonly type: "string";
1497
+ readonly minLength: 1;
1498
+ };
1499
+ readonly line: {
1500
+ readonly type: "integer";
1501
+ readonly minimum: 1;
1502
+ };
1503
+ readonly column: {
1504
+ readonly type: "integer";
1505
+ readonly minimum: 1;
1506
+ };
1507
+ readonly symbol: {
1508
+ readonly type: "string";
1509
+ readonly minLength: 1;
1510
+ };
1511
+ };
1512
+ };
1513
+ readonly description: "Workspace-relative source coordinates used for discovery and before-hash binding.";
1514
+ };
1515
+ readonly interpretations: {
1516
+ readonly type: "array";
1517
+ readonly maxItems: 3;
1518
+ readonly items: {
1519
+ readonly type: "object";
1520
+ readonly required: readonly ["claim_key", "claim_text", "ir"];
1521
+ readonly properties: {
1522
+ readonly claim_key: {
1523
+ readonly type: "string";
1524
+ };
1525
+ readonly claim_text: {
1526
+ readonly type: "string";
1527
+ };
1528
+ readonly confidence: {
1529
+ readonly type: "number";
1530
+ readonly minimum: 0;
1531
+ readonly maximum: 1;
1532
+ };
1533
+ readonly span: {
1534
+ readonly type: "object";
1535
+ };
1536
+ readonly ir: {
1537
+ readonly type: "object";
1538
+ };
1539
+ };
1540
+ };
1541
+ readonly description: "Optional host-supplied typed kibi.logic.v1 interpretations; Kibi validates them before including rule steps.";
1542
+ };
1543
+ readonly scenarioDrafts: {
1544
+ readonly type: "array";
1545
+ readonly maxItems: 20;
1546
+ readonly items: {
1547
+ readonly type: "object";
1548
+ readonly required: readonly ["title", "body"];
1549
+ readonly properties: {
1550
+ readonly id: {
1551
+ readonly type: "string";
1552
+ };
1553
+ readonly title: {
1554
+ readonly type: "string";
1555
+ readonly minLength: 1;
1556
+ };
1557
+ readonly body: {
1558
+ readonly type: "string";
1559
+ readonly minLength: 1;
1560
+ };
1561
+ };
1562
+ };
1563
+ readonly description: "Optional scenario drafts. Each is linked requirement -> scenario with specified_by.";
1564
+ };
1565
+ readonly testDrafts: {
1566
+ readonly type: "array";
1567
+ readonly maxItems: 20;
1568
+ readonly items: {
1569
+ readonly type: "object";
1570
+ readonly required: readonly ["title", "body"];
1571
+ readonly properties: {
1572
+ readonly id: {
1573
+ readonly type: "string";
1574
+ };
1575
+ readonly title: {
1576
+ readonly type: "string";
1577
+ readonly minLength: 1;
1578
+ };
1579
+ readonly body: {
1580
+ readonly type: "string";
1581
+ readonly minLength: 1;
1582
+ };
1583
+ readonly verificationScope: {
1584
+ readonly type: "string";
1585
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
1586
+ };
1587
+ readonly verificationPerspective: {
1588
+ readonly type: "string";
1589
+ readonly enum: readonly ["internal", "consumer"];
1590
+ };
1591
+ };
1592
+ };
1593
+ readonly description: "Optional test drafts. Tests are attached to scenarios with verified_by; direct req -> test proof links are not emitted.";
1594
+ };
1595
+ readonly proposalDecisions: {
1596
+ readonly type: "array";
1597
+ readonly maxItems: 20;
1598
+ readonly items: {
1599
+ readonly type: "object";
1600
+ readonly required: readonly ["proposalId", "decision"];
1601
+ readonly properties: {
1602
+ readonly proposalId: {
1603
+ readonly type: "string";
1604
+ readonly minLength: 1;
1605
+ };
1606
+ readonly decision: {
1607
+ readonly type: "string";
1608
+ readonly enum: readonly ["accept", "reject"];
1609
+ };
1610
+ };
1611
+ };
1612
+ readonly description: "Explicit decisions for deterministic traceability proposals. Pending proposals never enter steps.";
1613
+ };
1614
+ };
1615
+ };
1616
+ readonly requiresProlog: true;
1617
+ readonly effects: readonly ["kb-read", "workspace-read"];
1618
+ readonly execute: typeof import("./index.js").executeCompileIntent;
1619
+ }, {
1620
+ readonly name: "kb_apply_plan";
1621
+ readonly cliName: "apply-plan";
1622
+ readonly description: "Apply an explicitly approved kibi.bootstrap-plan.v1, kibi.compile-plan.v1, kibi.migration-plan.v2, or entity-deletion plan after revalidating its canonical hash and live snapshots. Bootstrap actions are dependency-ordered, sequential, source-first, and recoverable from a typed journal.";
1623
+ readonly businessInputSchema: {
1624
+ readonly type: "object";
1625
+ readonly oneOf: readonly [{
1626
+ readonly required: readonly ["plan", "approvedPlanHash"];
1627
+ readonly not: {
1628
+ readonly required: readonly ["recoveryJournalId"];
1629
+ };
1630
+ }, {
1631
+ readonly required: readonly ["recoveryJournalId"];
1632
+ readonly not: {
1633
+ readonly anyOf: readonly [{
1634
+ readonly required: readonly ["plan"];
1635
+ }, {
1636
+ readonly required: readonly ["approvedPlanHash"];
1637
+ }];
1638
+ };
1639
+ }];
1640
+ readonly properties: {
1641
+ readonly approvedPlanHash: {
1642
+ readonly type: "string";
1643
+ readonly pattern: "^[a-fA-F0-9]{64}$";
1644
+ readonly description: "Exact SHA-256 planHash returned by kb_plan_bootstrap, kb_compile_intent, or another approved plan after human review.";
1645
+ };
1646
+ readonly plan: {
1647
+ readonly type: "object";
1648
+ readonly required: readonly ["version", "planHash"];
1649
+ readonly description: "The complete kibi.bootstrap-plan.v1, kibi.compile-plan.v1, kibi.migration-plan.v2, or hash-bound kibi.entity-deletion-plan.v1 object. Migration plans require approvedActionIds and reject blocked/non-automatic actions.";
1650
+ };
1651
+ readonly approvedActionIds: {
1652
+ readonly type: "array";
1653
+ readonly items: {
1654
+ readonly type: "string";
1655
+ readonly minLength: 1;
1656
+ };
1657
+ readonly description: "Required for migration-plan.v2. Exact automatic action IDs explicitly approved for this application.";
1658
+ };
1659
+ readonly recoveryJournalId: {
1660
+ readonly type: "string";
1661
+ readonly pattern: "^[A-Za-z0-9._-]+$";
1662
+ readonly description: "Typed recovery journal identifier returned by a committed_with_repairs result. Recovery replays only the immutable journal and never the original plan request.";
1663
+ };
1664
+ };
1665
+ };
1666
+ readonly requiresProlog: true;
1667
+ readonly effects: readonly ["kb-read", "kb-write", "workspace-read", "workspace-write"];
1668
+ readonly execute: typeof import("./index.js").executeApplyPlan;
1669
+ }, {
1670
+ readonly name: "kb_ingest_verification";
1671
+ readonly cliName: "ingest-verification";
1672
+ readonly description: "Ingest a reporter-produced kibi.playwright-run.v1 artifact for a contracted test. Revalidates the live workspace snapshot, runner/command contract, required case/project coverage, and append-only receipt history before deriving and appending a kibi.verification-receipt.v2. It never accepts a caller-authored receipt or trusted outcome.";
1673
+ readonly businessInputSchema: {
1674
+ readonly type: "object";
1675
+ readonly required: readonly ["testId", "snapshot", "artifact"];
1676
+ readonly properties: {
1677
+ readonly testId: {
1678
+ readonly type: "string";
1679
+ readonly minLength: 1;
1680
+ readonly description: "Existing test entity with verification_contract.v1.";
1681
+ };
1682
+ readonly snapshot: {
1683
+ readonly type: "string";
1684
+ readonly pattern: "^[a-f0-9]{64}$";
1685
+ readonly description: "Workspace verification snapshot captured immediately before the run.";
1686
+ };
1687
+ readonly artifact: {
1688
+ readonly type: "object";
1689
+ readonly required: readonly ["version", "runner", "command_argv", "code_snapshot", "environment_hash", "started_at", "finished_at", "process_exit_code", "cases"];
1690
+ readonly properties: {
1691
+ readonly version: {
1692
+ readonly type: "string";
1693
+ readonly const: "kibi.playwright-run.v1";
1694
+ };
1695
+ readonly runner: {
1696
+ readonly type: "string";
1697
+ readonly minLength: 1;
1698
+ };
1699
+ readonly command_argv: {
1700
+ readonly type: "array";
1701
+ readonly minItems: 1;
1702
+ readonly items: {
1703
+ readonly type: "string";
1704
+ readonly minLength: 1;
1705
+ };
1706
+ };
1707
+ readonly code_snapshot: {
1708
+ readonly type: "string";
1709
+ readonly pattern: "^[a-f0-9]{64}$";
1710
+ };
1711
+ readonly environment_hash: {
1712
+ readonly type: "string";
1713
+ readonly pattern: "^[a-f0-9]{64}$";
1714
+ };
1715
+ readonly started_at: {
1716
+ readonly type: "string";
1717
+ readonly minLength: 1;
1718
+ };
1719
+ readonly finished_at: {
1720
+ readonly type: "string";
1721
+ readonly minLength: 1;
1722
+ };
1723
+ readonly process_exit_code: {
1724
+ readonly type: "integer";
1725
+ };
1726
+ readonly cases: {
1727
+ readonly type: "array";
1728
+ readonly minItems: 1;
1729
+ readonly maxItems: 1000;
1730
+ readonly items: {
1731
+ readonly type: "object";
1732
+ };
1733
+ };
1734
+ };
1735
+ readonly additionalProperties: true;
1736
+ };
1737
+ };
1738
+ };
1739
+ readonly requiresProlog: true;
1740
+ readonly effects: readonly ["kb-read", "kb-write", "workspace-read"];
1741
+ readonly execute: typeof import("./index.js").executeIngestVerification;
1128
1742
  }];
1129
- export declare function getSpec(name: OperationName): OperationSpec;
1130
- export declare function listSpecs(): readonly OperationSpec[];
1743
+ export declare function withContractDefaults(spec: OperationSpec): ResolvedOperationSpec;
1744
+ export declare function getSpec(name: OperationName): ResolvedOperationSpec;
1745
+ export declare function listSpecs(): readonly ResolvedOperationSpec[];
1131
1746
  //# sourceMappingURL=catalog.d.ts.map