kibi-cli 0.19.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (672) hide show
  1. package/dist/cli-errors.d.ts +3 -1
  2. package/dist/cli-errors.d.ts.map +1 -1
  3. package/dist/cli-errors.js +4 -1
  4. package/dist/cli-json-command.d.ts +1 -0
  5. package/dist/cli-json-command.d.ts.map +1 -1
  6. package/dist/cli-json-command.js +13 -4
  7. package/dist/cli-operation-loader.d.ts.map +1 -1
  8. package/dist/cli-operation-loader.js +53 -20
  9. package/dist/cli-operation-metadata.d.ts +21 -8
  10. package/dist/cli-operation-metadata.d.ts.map +1 -1
  11. package/dist/cli-operation-metadata.js +27 -10
  12. package/dist/cli-protocol.d.ts.map +1 -1
  13. package/dist/cli-protocol.js +38 -8
  14. package/dist/cli-register-foundation.d.ts.map +1 -1
  15. package/dist/cli-register-foundation.js +14 -2
  16. package/dist/cli-register-maintenance.d.ts.map +1 -1
  17. package/dist/cli-register-maintenance.js +33 -4
  18. package/dist/cli-register-proof.d.ts +3 -0
  19. package/dist/cli-register-proof.d.ts.map +1 -0
  20. package/dist/cli-register-proof.js +103 -0
  21. package/dist/cli-register-reporting.d.ts.map +1 -1
  22. package/dist/cli-register-reporting.js +11 -0
  23. package/dist/cli.d.ts +4 -0
  24. package/dist/cli.d.ts.map +1 -1
  25. package/dist/cli.js +17 -8
  26. package/dist/commands/aggregated-checks.d.ts +1 -2
  27. package/dist/commands/aggregated-checks.d.ts.map +1 -1
  28. package/dist/commands/aggregated-checks.js +14 -9
  29. package/dist/commands/branch.d.ts +37 -0
  30. package/dist/commands/branch.d.ts.map +1 -1
  31. package/dist/commands/branch.js +375 -40
  32. package/dist/commands/check.d.ts +14 -0
  33. package/dist/commands/check.d.ts.map +1 -1
  34. package/dist/commands/check.js +209 -110
  35. package/dist/commands/coverage.d.ts +1 -0
  36. package/dist/commands/coverage.d.ts.map +1 -1
  37. package/dist/commands/coverage.js +6 -0
  38. package/dist/commands/discovery-shared.d.ts.map +1 -1
  39. package/dist/commands/discovery-shared.js +10 -19
  40. package/dist/commands/doctor.d.ts +26 -1
  41. package/dist/commands/doctor.d.ts.map +1 -1
  42. package/dist/commands/doctor.js +291 -30
  43. package/dist/commands/engine.d.ts +12 -0
  44. package/dist/commands/engine.d.ts.map +1 -1
  45. package/dist/commands/engine.js +50 -7
  46. package/dist/commands/gc.d.ts +5 -2
  47. package/dist/commands/gc.d.ts.map +1 -1
  48. package/dist/commands/gc.js +140 -71
  49. package/dist/commands/github-init.d.ts +57 -0
  50. package/dist/commands/github-init.d.ts.map +1 -0
  51. package/dist/commands/github-init.js +314 -0
  52. package/dist/commands/init-helpers.d.ts +1 -1
  53. package/dist/commands/init-helpers.d.ts.map +1 -1
  54. package/dist/commands/init-helpers.js +109 -28
  55. package/dist/commands/init.d.ts +2 -0
  56. package/dist/commands/init.d.ts.map +1 -1
  57. package/dist/commands/init.js +79 -24
  58. package/dist/commands/legacy-storage-migration.d.ts +54 -0
  59. package/dist/commands/legacy-storage-migration.d.ts.map +1 -0
  60. package/dist/commands/legacy-storage-migration.js +277 -0
  61. package/dist/commands/migrate.d.ts +11 -0
  62. package/dist/commands/migrate.d.ts.map +1 -1
  63. package/dist/commands/migrate.js +249 -96
  64. package/dist/commands/proof-migrate-legacy.d.ts +7 -0
  65. package/dist/commands/proof-migrate-legacy.d.ts.map +1 -0
  66. package/dist/commands/proof-migrate-legacy.js +45 -0
  67. package/dist/commands/proof-prune.d.ts +8 -0
  68. package/dist/commands/proof-prune.d.ts.map +1 -0
  69. package/dist/commands/proof-prune.js +53 -0
  70. package/dist/commands/prove.d.ts +37 -0
  71. package/dist/commands/prove.d.ts.map +1 -0
  72. package/dist/commands/prove.js +470 -0
  73. package/dist/commands/report.d.ts +24 -0
  74. package/dist/commands/report.d.ts.map +1 -0
  75. package/dist/commands/report.js +191 -0
  76. package/dist/commands/sync/cache.d.ts +16 -3
  77. package/dist/commands/sync/cache.d.ts.map +1 -1
  78. package/dist/commands/sync/cache.js +111 -4
  79. package/dist/commands/sync/discovery.d.ts +26 -2
  80. package/dist/commands/sync/discovery.d.ts.map +1 -1
  81. package/dist/commands/sync/discovery.js +204 -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 +9 -6
  86. package/dist/commands/sync/manifest.d.ts.map +1 -1
  87. package/dist/commands/sync/manifest.js +195 -60
  88. package/dist/commands/sync/persistence.d.ts +4 -1
  89. package/dist/commands/sync/persistence.d.ts.map +1 -1
  90. package/dist/commands/sync/persistence.js +26 -12
  91. package/dist/commands/sync/staging.d.ts +1 -0
  92. package/dist/commands/sync/staging.d.ts.map +1 -1
  93. package/dist/commands/sync/staging.js +5 -2
  94. package/dist/commands/sync/untracked-targets.d.ts +24 -0
  95. package/dist/commands/sync/untracked-targets.d.ts.map +1 -0
  96. package/dist/commands/sync/untracked-targets.js +108 -0
  97. package/dist/commands/sync.d.ts +17 -1
  98. package/dist/commands/sync.d.ts.map +1 -1
  99. package/dist/commands/sync.js +375 -106
  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 -1
  103. package/dist/engine-daemon.d.ts.map +1 -1
  104. package/dist/engine-daemon.js +49 -20
  105. package/dist/engine.d.ts +34 -3
  106. package/dist/engine.d.ts.map +1 -1
  107. package/dist/engine.js +578 -42
  108. package/dist/env.d.ts.map +1 -1
  109. package/dist/env.js +5 -6
  110. package/dist/extractors/manifest.d.ts +13 -1
  111. package/dist/extractors/manifest.d.ts.map +1 -1
  112. package/dist/extractors/manifest.js +97 -10
  113. package/dist/extractors/markdown.d.ts +5 -2
  114. package/dist/extractors/markdown.d.ts.map +1 -1
  115. package/dist/extractors/markdown.js +47 -12
  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 +6 -0
  120. package/dist/extractors/relationships.d.ts.map +1 -1
  121. package/dist/extractors/relationships.js +2 -1
  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/extractors/symbols-ts.d.ts +1 -0
  127. package/dist/extractors/symbols-ts.d.ts.map +1 -1
  128. package/dist/extractors/symbols-ts.js +142 -67
  129. package/dist/intent-search.d.ts +61 -0
  130. package/dist/intent-search.d.ts.map +1 -0
  131. package/dist/intent-search.js +437 -0
  132. package/dist/logic/ir.d.ts +1 -0
  133. package/dist/logic/ir.d.ts.map +1 -1
  134. package/dist/logic/ir.js +1 -1
  135. package/dist/operations/bootstrap/activation.d.ts +5 -0
  136. package/dist/operations/bootstrap/activation.d.ts.map +1 -0
  137. package/dist/operations/{autopilot → bootstrap}/activation.js +58 -33
  138. package/dist/operations/{autopilot → bootstrap}/candidate-helpers.d.ts.map +1 -1
  139. package/dist/operations/bootstrap/candidates.d.ts +4 -0
  140. package/dist/operations/{autopilot → bootstrap}/candidates.d.ts.map +1 -1
  141. package/dist/operations/{autopilot → bootstrap}/candidates.js +22 -8
  142. package/dist/operations/{autopilot → bootstrap}/discovery-evidence.d.ts +2 -2
  143. package/dist/operations/{autopilot → bootstrap}/discovery-evidence.d.ts.map +1 -1
  144. package/dist/operations/{autopilot → bootstrap}/discovery-evidence.js +46 -6
  145. package/dist/operations/{autopilot → bootstrap}/discovery.d.ts +1 -1
  146. package/dist/operations/bootstrap/discovery.d.ts.map +1 -0
  147. package/dist/operations/{autopilot → bootstrap}/discovery.js +21 -14
  148. package/dist/operations/bootstrap/generate.d.ts +9 -0
  149. package/dist/operations/bootstrap/generate.d.ts.map +1 -0
  150. package/dist/operations/bootstrap/generate.js +207 -0
  151. package/dist/operations/{autopilot → bootstrap}/guidance-actions.d.ts +2 -2
  152. package/dist/operations/{autopilot → bootstrap}/guidance-actions.d.ts.map +1 -1
  153. package/dist/operations/{autopilot → bootstrap}/guidance-actions.js +4 -4
  154. package/dist/operations/{autopilot → bootstrap}/guidance.d.ts +3 -2
  155. package/dist/operations/bootstrap/guidance.d.ts.map +1 -0
  156. package/dist/operations/{autopilot → bootstrap}/guidance.js +3 -1
  157. package/dist/operations/{autopilot → bootstrap}/markdown-candidates.d.ts +2 -2
  158. package/dist/operations/{autopilot → bootstrap}/markdown-candidates.d.ts.map +1 -1
  159. package/dist/operations/{autopilot → bootstrap}/markdown-candidates.js +4 -3
  160. package/dist/operations/bootstrap/presentation.d.ts +15 -0
  161. package/dist/operations/bootstrap/presentation.d.ts.map +1 -0
  162. package/dist/operations/bootstrap/presentation.js +177 -0
  163. package/dist/operations/{autopilot → bootstrap}/requirement-claims.d.ts.map +1 -1
  164. package/dist/operations/{autopilot → bootstrap}/types.d.ts +63 -21
  165. package/dist/operations/bootstrap/types.d.ts.map +1 -0
  166. package/dist/operations/bootstrap/types.js +25 -0
  167. package/dist/operations/modeling/model-requirement.d.ts +5 -0
  168. package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
  169. package/dist/operations/modeling/model-requirement.js +57 -63
  170. package/dist/operations/modeling/predicate-applicability.d.ts +16 -0
  171. package/dist/operations/modeling/predicate-applicability.d.ts.map +1 -0
  172. package/dist/operations/modeling/predicate-applicability.js +375 -0
  173. package/dist/operations/modeling/predicate-applyplan.d.ts +13 -2
  174. package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
  175. package/dist/operations/modeling/predicate-applyplan.js +100 -3
  176. package/dist/operations/modeling/predicate-bindings.d.ts +6 -0
  177. package/dist/operations/modeling/predicate-bindings.d.ts.map +1 -0
  178. package/dist/operations/modeling/predicate-bindings.js +122 -0
  179. package/dist/operations/modeling/predicate-catalog-2.d.ts.map +1 -1
  180. package/dist/operations/modeling/predicate-catalog-2.js +18 -2
  181. package/dist/operations/modeling/predicate-catalog-3.d.ts.map +1 -1
  182. package/dist/operations/modeling/predicate-catalog-3.js +17 -1
  183. package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -1
  184. package/dist/operations/modeling/predicate-catalog-4.js +155 -0
  185. package/dist/operations/modeling/predicate-catalog-5.d.ts +10 -0
  186. package/dist/operations/modeling/predicate-catalog-5.d.ts.map +1 -0
  187. package/dist/operations/modeling/predicate-catalog-5.js +291 -0
  188. package/dist/operations/modeling/predicate-catalog.d.ts.map +1 -1
  189. package/dist/operations/modeling/predicate-catalog.js +4 -0
  190. package/dist/operations/modeling/predicate-inference-1.d.ts.map +1 -1
  191. package/dist/operations/modeling/predicate-inference-1.js +8 -0
  192. package/dist/operations/modeling/predicate-inference-launcher.d.ts +10 -0
  193. package/dist/operations/modeling/predicate-inference-launcher.d.ts.map +1 -0
  194. package/dist/operations/modeling/predicate-inference-launcher.js +13 -0
  195. package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
  196. package/dist/operations/modeling/predicate-inference.js +4 -0
  197. package/dist/operations/modeling/predicate-loader.d.ts +1 -0
  198. package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
  199. package/dist/operations/modeling/predicate-loader.js +11 -3
  200. package/dist/operations/modeling/predicate-ranker.d.ts +8 -1
  201. package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -1
  202. package/dist/operations/modeling/predicate-ranker.js +159 -24
  203. package/dist/operations/modeling/predicate-score-3.d.ts.map +1 -1
  204. package/dist/operations/modeling/predicate-score-3.js +6 -0
  205. package/dist/operations/modeling/predicate-types.d.ts +35 -1
  206. package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
  207. package/dist/operations/modeling/predicate-usage-hints-3.d.ts.map +1 -1
  208. package/dist/operations/modeling/predicate-usage-hints-3.js +40 -0
  209. package/dist/operations/modeling/predicate-usage-hints-4.d.ts +3 -0
  210. package/dist/operations/modeling/predicate-usage-hints-4.d.ts.map +1 -0
  211. package/dist/operations/modeling/predicate-usage-hints-4.js +84 -0
  212. package/dist/operations/modeling/predicate-utils.d.ts.map +1 -1
  213. package/dist/operations/modeling/predicate-utils.js +2 -0
  214. package/dist/operations/modeling/suggest-predicates.d.ts +4 -2
  215. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
  216. package/dist/operations/modeling/suggest-predicates.js +203 -32
  217. package/dist/operations/mutation/contradictions.d.ts +2 -1
  218. package/dist/operations/mutation/contradictions.d.ts.map +1 -1
  219. package/dist/operations/mutation/contradictions.js +26 -5
  220. package/dist/operations/mutation/delete.d.ts +3 -0
  221. package/dist/operations/mutation/delete.d.ts.map +1 -1
  222. package/dist/operations/mutation/delete.js +483 -19
  223. package/dist/operations/mutation/entity-projection.d.ts +11 -0
  224. package/dist/operations/mutation/entity-projection.d.ts.map +1 -0
  225. package/dist/operations/mutation/entity-projection.js +14 -0
  226. package/dist/operations/mutation/relationships.d.ts +11 -0
  227. package/dist/operations/mutation/relationships.d.ts.map +1 -1
  228. package/dist/operations/mutation/relationships.js +77 -5
  229. package/dist/operations/mutation/saga.d.ts +51 -0
  230. package/dist/operations/mutation/saga.d.ts.map +1 -0
  231. package/dist/operations/mutation/saga.js +67 -0
  232. package/dist/operations/mutation/serialization.d.ts.map +1 -1
  233. package/dist/operations/mutation/serialization.js +3 -1
  234. package/dist/operations/mutation/source-authoring.d.ts +65 -0
  235. package/dist/operations/mutation/source-authoring.d.ts.map +1 -0
  236. package/dist/operations/mutation/source-authoring.js +576 -0
  237. package/dist/operations/mutation/strict-fact.d.ts +1 -0
  238. package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
  239. package/dist/operations/mutation/strict-fact.js +8 -5
  240. package/dist/operations/mutation/symbol-compiler-lock.d.ts +54 -0
  241. package/dist/operations/mutation/symbol-compiler-lock.d.ts.map +1 -0
  242. package/dist/operations/mutation/symbol-compiler-lock.js +337 -0
  243. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
  244. package/dist/operations/mutation/symbol-granularity.js +35 -4
  245. package/dist/operations/mutation/symbol-refresh.d.ts +19 -1
  246. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
  247. package/dist/operations/mutation/symbol-refresh.js +227 -63
  248. package/dist/operations/mutation/types.d.ts +57 -1
  249. package/dist/operations/mutation/types.d.ts.map +1 -1
  250. package/dist/operations/mutation/upsert.d.ts +18 -2
  251. package/dist/operations/mutation/upsert.d.ts.map +1 -1
  252. package/dist/operations/mutation/upsert.js +403 -32
  253. package/dist/operations/mutation/validate-upsert.js +2 -2
  254. package/dist/operations/mutation/validation.d.ts.map +1 -1
  255. package/dist/operations/mutation/validation.js +47 -4
  256. package/dist/operations/mutation/warnings.d.ts +1 -0
  257. package/dist/operations/mutation/warnings.d.ts.map +1 -1
  258. package/dist/operations/mutation/warnings.js +7 -5
  259. package/dist/operations/mutation/workspace-mutation-lock.d.ts +60 -0
  260. package/dist/operations/mutation/workspace-mutation-lock.d.ts.map +1 -0
  261. package/dist/operations/mutation/workspace-mutation-lock.js +362 -0
  262. package/dist/operations/planning/apply-plan.d.ts +19 -0
  263. package/dist/operations/planning/apply-plan.d.ts.map +1 -0
  264. package/dist/operations/planning/apply-plan.js +1514 -0
  265. package/dist/operations/planning/compile-intent.d.ts +108 -0
  266. package/dist/operations/planning/compile-intent.d.ts.map +1 -0
  267. package/dist/operations/planning/compile-intent.js +618 -0
  268. package/dist/operations/proof/ingest-proof.d.ts +34 -0
  269. package/dist/operations/proof/ingest-proof.d.ts.map +1 -0
  270. package/dist/operations/proof/ingest-proof.js +307 -0
  271. package/dist/operations/proof/migrate-legacy-receipts.d.ts +30 -0
  272. package/dist/operations/proof/migrate-legacy-receipts.d.ts.map +1 -0
  273. package/dist/operations/proof/migrate-legacy-receipts.js +88 -0
  274. package/dist/operations/proof/prune-receipts.d.ts +35 -0
  275. package/dist/operations/proof/prune-receipts.d.ts.map +1 -0
  276. package/dist/operations/proof/prune-receipts.js +91 -0
  277. package/dist/operations/proof/receipt-document.d.ts +29 -0
  278. package/dist/operations/proof/receipt-document.d.ts.map +1 -0
  279. package/dist/operations/proof/receipt-document.js +117 -0
  280. package/dist/operations/semantic-advisor/analyze-prose.d.ts +1 -0
  281. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
  282. package/dist/operations/semantic-advisor/analyze-prose.js +52 -28
  283. package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
  284. package/dist/operations/semantic-advisor/clauses.js +35 -9
  285. package/dist/operations/semantic-advisor/ingestion-boundary.d.ts.map +1 -1
  286. package/dist/operations/semantic-advisor/ingestion-boundary.js +7 -3
  287. package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts +51 -0
  288. package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts.map +1 -0
  289. package/dist/operations/semantic-advisor/predicate-rules-launcher.js +96 -0
  290. package/dist/operations/semantic-advisor/strict-count-rules.d.ts +2 -0
  291. package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -1
  292. package/dist/operations/semantic-advisor/strict-count-rules.js +40 -25
  293. package/dist/operations/semantic-advisor/types.d.ts +13 -5
  294. package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
  295. package/dist/prolog/codec.d.ts +13 -1
  296. package/dist/prolog/codec.d.ts.map +1 -1
  297. package/dist/prolog/codec.js +269 -153
  298. package/dist/prolog/error-terms.d.ts +47 -0
  299. package/dist/prolog/error-terms.d.ts.map +1 -0
  300. package/dist/prolog/error-terms.js +334 -0
  301. package/dist/prolog/janitor.d.ts +50 -0
  302. package/dist/prolog/janitor.d.ts.map +1 -0
  303. package/dist/prolog/janitor.js +154 -0
  304. package/dist/prolog/store-lock.d.ts +45 -0
  305. package/dist/prolog/store-lock.d.ts.map +1 -0
  306. package/dist/prolog/store-lock.js +195 -0
  307. package/dist/prolog.d.ts +7 -0
  308. package/dist/prolog.d.ts.map +1 -1
  309. package/dist/prolog.js +82 -25
  310. package/dist/proof/evaluate.d.ts +27 -0
  311. package/dist/proof/evaluate.d.ts.map +1 -0
  312. package/dist/proof/evaluate.js +151 -0
  313. package/dist/proof/inspect.d.ts +12 -0
  314. package/dist/proof/inspect.d.ts.map +1 -0
  315. package/dist/proof/inspect.js +236 -0
  316. package/dist/proof/integrations.d.ts +35 -0
  317. package/dist/proof/integrations.d.ts.map +1 -0
  318. package/dist/proof/integrations.js +123 -0
  319. package/dist/proof/producers/junit-adapter.d.ts +26 -0
  320. package/dist/proof/producers/junit-adapter.d.ts.map +1 -0
  321. package/dist/proof/producers/junit-adapter.js +186 -0
  322. package/dist/proof/producers/playwright-case-id.d.ts +8 -0
  323. package/dist/proof/producers/playwright-case-id.d.ts.map +1 -0
  324. package/dist/proof/producers/playwright-case-id.js +25 -0
  325. package/dist/proof/producers/playwright-reporter.d.ts +27 -0
  326. package/dist/proof/producers/playwright-reporter.d.ts.map +1 -0
  327. package/dist/proof/producers/playwright-reporter.js +138 -0
  328. package/dist/proof/producers/tap-adapter.d.ts +10 -0
  329. package/dist/proof/producers/tap-adapter.d.ts.map +1 -0
  330. package/dist/proof/producers/tap-adapter.js +200 -0
  331. package/dist/proof/receipt-outcome.d.ts +2 -0
  332. package/dist/proof/receipt-outcome.d.ts.map +1 -0
  333. package/dist/proof/receipt-outcome.js +1 -0
  334. package/dist/public/branch-resolver.d.ts +1 -0
  335. package/dist/public/branch-resolver.d.ts.map +1 -1
  336. package/dist/public/branch-resolver.js +1 -0
  337. package/dist/public/check-types.d.ts +2 -2
  338. package/dist/public/check-types.d.ts.map +1 -1
  339. package/dist/public/check-types.js +16 -16
  340. package/dist/public/diagnostic-usage.d.ts.map +1 -1
  341. package/dist/public/diagnostic-usage.js +74 -6
  342. package/dist/public/distribution-parity.d.ts +7 -1
  343. package/dist/public/distribution-parity.d.ts.map +1 -1
  344. package/dist/public/distribution-parity.js +15 -9
  345. package/dist/public/ignore-policy.d.ts.map +1 -1
  346. package/dist/public/ignore-policy.js +16 -4
  347. package/dist/public/impact/coverage-depth-quality.d.ts +7 -1
  348. package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
  349. package/dist/public/impact/coverage-depth-quality.js +22 -4
  350. package/dist/public/impact/diagnostics.d.ts.map +1 -1
  351. package/dist/public/impact/diagnostics.js +2 -2
  352. package/dist/public/impact/diff-meaning.d.ts +1 -0
  353. package/dist/public/impact/diff-meaning.d.ts.map +1 -1
  354. package/dist/public/impact/diff-meaning.js +5 -2
  355. package/dist/public/impact/full-kb-quality.d.ts +7 -2
  356. package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
  357. package/dist/public/impact/full-kb-quality.js +364 -39
  358. package/dist/public/impact/manifest.d.ts.map +1 -1
  359. package/dist/public/impact/manifest.js +2 -5
  360. package/dist/public/operational-artifacts.d.ts.map +1 -1
  361. package/dist/public/operational-artifacts.js +7 -1
  362. package/dist/public/operations/catalog.d.ts +900 -34
  363. package/dist/public/operations/catalog.d.ts.map +1 -1
  364. package/dist/public/operations/catalog.js +130 -6
  365. package/dist/public/operations/check-executor.d.ts +2 -2
  366. package/dist/public/operations/check-executor.d.ts.map +1 -1
  367. package/dist/public/operations/check-executor.js +68 -13
  368. package/dist/public/operations/check-format-shared.d.ts +3 -0
  369. package/dist/public/operations/check-format-shared.d.ts.map +1 -1
  370. package/dist/public/operations/check-format-shared.js +3 -0
  371. package/dist/public/operations/check-helpers.d.ts +27 -2
  372. package/dist/public/operations/check-helpers.d.ts.map +1 -1
  373. package/dist/public/operations/check-helpers.js +62 -26
  374. package/dist/public/operations/contracts.d.ts +18 -0
  375. package/dist/public/operations/contracts.d.ts.map +1 -0
  376. package/dist/public/operations/contracts.js +334 -0
  377. package/dist/public/operations/discovery-entities.d.ts +3 -0
  378. package/dist/public/operations/discovery-entities.d.ts.map +1 -1
  379. package/dist/public/operations/discovery-entities.js +4 -0
  380. package/dist/public/operations/discovery-executors.d.ts +43 -7
  381. package/dist/public/operations/discovery-executors.d.ts.map +1 -1
  382. package/dist/public/operations/discovery-executors.js +216 -13
  383. package/dist/public/operations/index.d.ts +9 -4
  384. package/dist/public/operations/index.d.ts.map +1 -1
  385. package/dist/public/operations/index.js +8 -3
  386. package/dist/public/operations/migration-plan.d.ts +102 -0
  387. package/dist/public/operations/migration-plan.d.ts.map +1 -0
  388. package/dist/public/operations/migration-plan.js +539 -0
  389. package/dist/public/operations/node-ports.d.ts.map +1 -1
  390. package/dist/public/operations/node-ports.js +71 -11
  391. package/dist/public/operations/prolog-json.d.ts +14 -0
  392. package/dist/public/operations/prolog-json.d.ts.map +1 -1
  393. package/dist/public/operations/prolog-json.js +44 -5
  394. package/dist/public/operations/repair-plan.d.ts +3 -3
  395. package/dist/public/operations/repair-plan.d.ts.map +1 -1
  396. package/dist/public/operations/repair-plan.js +49 -18
  397. package/dist/public/operations/result-envelope.d.ts +14 -0
  398. package/dist/public/operations/result-envelope.d.ts.map +1 -0
  399. package/dist/public/operations/result-envelope.js +106 -0
  400. package/dist/public/operations/runtime-types.d.ts +102 -7
  401. package/dist/public/operations/runtime-types.d.ts.map +1 -1
  402. package/dist/public/operations/source-relationship-parity.d.ts +13 -0
  403. package/dist/public/operations/source-relationship-parity.d.ts.map +1 -0
  404. package/dist/public/operations/source-relationship-parity.js +162 -0
  405. package/dist/public/operations/specs/{autopilot.d.ts → bootstrap.d.ts} +9 -9
  406. package/dist/public/operations/specs/bootstrap.d.ts.map +1 -0
  407. package/dist/public/operations/specs/{autopilot.js → bootstrap.js} +8 -7
  408. package/dist/public/operations/specs/check-rules.generated.d.ts +5 -0
  409. package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -0
  410. package/dist/public/operations/specs/check-rules.generated.js +34 -0
  411. package/dist/public/operations/specs/check.d.ts +9 -4
  412. package/dist/public/operations/specs/check.d.ts.map +1 -1
  413. package/dist/public/operations/specs/check.js +10 -21
  414. package/dist/public/operations/specs/discovery.d.ts +87 -3
  415. package/dist/public/operations/specs/discovery.d.ts.map +1 -1
  416. package/dist/public/operations/specs/discovery.js +53 -3
  417. package/dist/public/operations/specs/modeling.d.ts +3 -3
  418. package/dist/public/operations/specs/modeling.js +3 -3
  419. package/dist/public/operations/specs/mutation-schemas.d.ts +251 -14
  420. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
  421. package/dist/public/operations/specs/mutation-schemas.js +16 -6
  422. package/dist/public/operations/specs/mutation.d.ts +42 -2
  423. package/dist/public/operations/specs/mutation.d.ts.map +1 -1
  424. package/dist/public/operations/specs/mutation.js +26 -2
  425. package/dist/public/operations/specs/planning.d.ts +279 -0
  426. package/dist/public/operations/specs/planning.d.ts.map +1 -0
  427. package/dist/public/operations/specs/planning.js +197 -0
  428. package/dist/public/operations/specs/proof.d.ts +212 -0
  429. package/dist/public/operations/specs/proof.d.ts.map +1 -0
  430. package/dist/public/operations/specs/proof.js +30 -0
  431. package/dist/public/operations/specs/reporting.d.ts +23 -1
  432. package/dist/public/operations/specs/reporting.d.ts.map +1 -1
  433. package/dist/public/operations/specs/reporting.js +156 -11
  434. package/dist/public/operations/specs/upsert.d.ts +265 -14
  435. package/dist/public/operations/specs/upsert.d.ts.map +1 -1
  436. package/dist/public/operations/specs/upsert.js +9 -0
  437. package/dist/public/operations/symbol-repair-plan.d.ts +22 -0
  438. package/dist/public/operations/symbol-repair-plan.d.ts.map +1 -0
  439. package/dist/public/operations/symbol-repair-plan.js +238 -0
  440. package/dist/public/operations/types.d.ts +52 -1
  441. package/dist/public/operations/types.d.ts.map +1 -1
  442. package/dist/public/proof-fingerprint.d.ts +54 -0
  443. package/dist/public/proof-fingerprint.d.ts.map +1 -0
  444. package/dist/public/proof-fingerprint.js +141 -0
  445. package/dist/public/proof-protocol.d.ts +354 -0
  446. package/dist/public/proof-protocol.d.ts.map +1 -0
  447. package/dist/public/proof-protocol.js +454 -0
  448. package/dist/public/proof-receipt.d.ts +279 -0
  449. package/dist/public/proof-receipt.d.ts.map +1 -0
  450. package/dist/public/proof-receipt.js +377 -0
  451. package/dist/public/schemas/entity.d.ts.map +1 -1
  452. package/dist/public/schemas/entity.js +22 -6
  453. package/dist/public/skills/kibi-bootstrap/SKILL.md +58 -0
  454. package/dist/public/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  455. package/dist/public/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  456. package/dist/public/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  457. package/dist/public/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  458. package/dist/public/skills/kibi-freshness/SKILL.md +39 -9
  459. package/dist/public/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  460. package/dist/public/skills/kibi-freshness/resources/operation-access.md +6 -0
  461. package/dist/public/skills/kibi-freshness/resources/source-authoring.md +7 -0
  462. package/dist/public/skills/kibi-traceability/SKILL.md +47 -47
  463. package/dist/public/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  464. package/dist/public/skills/kibi-traceability/resources/operation-access.md +5 -0
  465. package/dist/public/skills/kibi-traceability/resources/source-authoring.md +6 -0
  466. package/dist/public/skills/kibi-traceability/resources/traceability.md +8 -0
  467. package/dist/public/skills/kibi-usage/SKILL.md +136 -231
  468. package/dist/public/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  469. package/dist/public/skills/kibi-usage/resources/kb-improvement.md +38 -0
  470. package/dist/public/skills/kibi-usage/resources/operation-access.md +36 -38
  471. package/dist/public/skills/kibi-usage/resources/proof.md +105 -0
  472. package/dist/public/skills/kibi-usage/resources/relationship-directions.md +3 -3
  473. package/dist/public/skills/kibi-usage/resources/source-authoring.md +31 -0
  474. package/dist/public/skills/kibi-usage/resources/workflows.md +57 -4
  475. package/dist/public/symbol-granularity.d.ts +3 -14
  476. package/dist/public/symbol-granularity.d.ts.map +1 -1
  477. package/dist/public/symbol-granularity.generated.d.ts +16 -0
  478. package/dist/public/symbol-granularity.generated.d.ts.map +1 -0
  479. package/dist/public/symbol-granularity.generated.js +20 -0
  480. package/dist/public/symbol-granularity.js +6 -46
  481. package/dist/public/telemetry-acceptance.d.ts +3 -70
  482. package/dist/public/telemetry-acceptance.d.ts.map +1 -1
  483. package/dist/public/telemetry-acceptance.js +11 -2
  484. package/dist/public/telemetry-remediation.js +1 -1
  485. package/dist/relationships/shards.d.ts +16 -0
  486. package/dist/relationships/shards.d.ts.map +1 -1
  487. package/dist/relationships/shards.js +87 -2
  488. package/dist/report/brand.d.ts +19 -0
  489. package/dist/report/brand.d.ts.map +1 -0
  490. package/dist/report/brand.js +112 -0
  491. package/dist/report/html-report.css +282 -0
  492. package/dist/report/html-report.d.ts +21 -0
  493. package/dist/report/html-report.d.ts.map +1 -0
  494. package/dist/report/html-report.js +700 -0
  495. package/dist/report/relative-time.d.ts +4 -0
  496. package/dist/report/relative-time.d.ts.map +1 -0
  497. package/dist/report/relative-time.js +46 -0
  498. package/dist/report/report-view.d.ts +17 -0
  499. package/dist/report/report-view.d.ts.map +1 -0
  500. package/dist/report/report-view.js +33 -0
  501. package/dist/report/repository.d.ts +35 -0
  502. package/dist/report/repository.d.ts.map +1 -0
  503. package/dist/report/repository.js +151 -0
  504. package/dist/runtime/cli-runtime.d.ts +2 -0
  505. package/dist/runtime/cli-runtime.d.ts.map +1 -1
  506. package/dist/runtime/cli-runtime.js +90 -23
  507. package/dist/schemas/entity.schema.json +1254 -239
  508. package/dist/search-ranking.d.ts +1 -0
  509. package/dist/search-ranking.d.ts.map +1 -1
  510. package/dist/search-ranking.js +3 -0
  511. package/dist/traceability/evidence-model.d.ts +30 -2
  512. package/dist/traceability/evidence-model.d.ts.map +1 -1
  513. package/dist/traceability/evidence-model.js +2 -2
  514. package/dist/traceability/git-staged.d.ts +20 -0
  515. package/dist/traceability/git-staged.d.ts.map +1 -1
  516. package/dist/traceability/git-staged.js +156 -37
  517. package/dist/traceability/markdown-validate.d.ts.map +1 -1
  518. package/dist/traceability/markdown-validate.js +12 -7
  519. package/dist/traceability/staged-diagnostics.d.ts +7 -0
  520. package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
  521. package/dist/traceability/staged-diagnostics.js +78 -7
  522. package/dist/traceability/staged-file-coverage.d.ts +33 -0
  523. package/dist/traceability/staged-file-coverage.d.ts.map +1 -0
  524. package/dist/traceability/staged-file-coverage.js +284 -0
  525. package/dist/traceability/staged-impact-contract.d.ts +3 -3
  526. package/dist/traceability/staged-impact-contract.d.ts.map +1 -1
  527. package/dist/traceability/staged-impact-contract.js +12 -40
  528. package/dist/traceability/staged-symbols-manifest.d.ts +13 -0
  529. package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
  530. package/dist/traceability/staged-symbols-manifest.js +142 -26
  531. package/dist/traceability/symbol-extract.d.ts +5 -0
  532. package/dist/traceability/symbol-extract.d.ts.map +1 -1
  533. package/dist/traceability/symbol-extract.js +1 -1
  534. package/dist/traceability/temp-kb.d.ts +2 -0
  535. package/dist/traceability/temp-kb.d.ts.map +1 -1
  536. package/dist/traceability/temp-kb.js +14 -2
  537. package/dist/types/entities.d.ts +5 -0
  538. package/dist/types/entities.d.ts.map +1 -1
  539. package/dist/utils/branch-resolver.d.ts +25 -10
  540. package/dist/utils/branch-resolver.d.ts.map +1 -1
  541. package/dist/utils/branch-resolver.js +124 -38
  542. package/dist/utils/branch-store-locator.d.ts +23 -0
  543. package/dist/utils/branch-store-locator.d.ts.map +1 -0
  544. package/dist/utils/branch-store-locator.js +90 -0
  545. package/dist/utils/branch-store.d.ts +21 -0
  546. package/dist/utils/branch-store.d.ts.map +1 -0
  547. package/dist/utils/branch-store.js +157 -0
  548. package/dist/utils/config.d.ts +39 -37
  549. package/dist/utils/config.d.ts.map +1 -1
  550. package/dist/utils/config.js +107 -119
  551. package/dist/utils/kb-manifest.d.ts +35 -0
  552. package/dist/utils/kb-manifest.d.ts.map +1 -0
  553. package/dist/utils/kb-manifest.js +154 -0
  554. package/dist/utils/kb-paths.d.ts +54 -0
  555. package/dist/utils/kb-paths.d.ts.map +1 -0
  556. package/dist/utils/kb-paths.js +125 -0
  557. package/dist/utils/manifest-paths.d.ts +4 -4
  558. package/dist/utils/manifest-paths.d.ts.map +1 -1
  559. package/dist/utils/manifest-paths.js +8 -56
  560. package/dist/utils/rule-registry.d.ts +42 -24
  561. package/dist/utils/rule-registry.d.ts.map +1 -1
  562. package/dist/utils/rule-registry.generated.d.ts +97 -0
  563. package/dist/utils/rule-registry.generated.d.ts.map +1 -0
  564. package/dist/utils/rule-registry.generated.js +125 -0
  565. package/dist/utils/rule-registry.js +52 -148
  566. package/dist/utils/schema-version.d.ts +5 -5
  567. package/dist/utils/schema-version.d.ts.map +1 -1
  568. package/dist/utils/schema-version.js +26 -6
  569. package/dist/utils/strict-modeling.d.ts +1 -4
  570. package/dist/utils/strict-modeling.d.ts.map +1 -1
  571. package/dist/utils/strict-modeling.js +8 -9
  572. package/package.json +47 -11
  573. package/schema/config.json +2 -2
  574. package/schema/manifest.json +26 -0
  575. package/src/public/branch-resolver.ts +1 -0
  576. package/src/public/check-types.ts +22 -19
  577. package/src/public/diagnostic-usage.ts +84 -6
  578. package/src/public/distribution-parity.ts +17 -9
  579. package/src/public/ignore-policy.ts +16 -10
  580. package/src/public/impact/coverage-depth-quality.ts +37 -1
  581. package/src/public/impact/diagnostics.ts +2 -1
  582. package/src/public/impact/diff-meaning.ts +11 -4
  583. package/src/public/impact/full-kb-quality.ts +545 -41
  584. package/src/public/impact/manifest.ts +2 -4
  585. package/src/public/operational-artifacts.ts +9 -1
  586. package/src/public/operations/catalog.ts +153 -10
  587. package/src/public/operations/check-executor.ts +98 -15
  588. package/src/public/operations/check-format-shared.ts +6 -0
  589. package/src/public/operations/check-helpers.ts +74 -35
  590. package/src/public/operations/contracts.ts +382 -0
  591. package/src/public/operations/discovery-entities.ts +7 -0
  592. package/src/public/operations/discovery-executors.ts +315 -25
  593. package/src/public/operations/index.ts +9 -4
  594. package/src/public/operations/migration-plan.ts +747 -0
  595. package/src/public/operations/node-ports.ts +87 -13
  596. package/src/public/operations/prolog-json.ts +60 -5
  597. package/src/public/operations/repair-plan.ts +60 -22
  598. package/src/public/operations/result-envelope.ts +141 -0
  599. package/src/public/operations/runtime-types.ts +96 -5
  600. package/src/public/operations/source-relationship-parity.ts +226 -0
  601. package/src/public/operations/specs/{autopilot.ts → bootstrap.ts} +17 -16
  602. package/src/public/operations/specs/check-rules.generated.ts +37 -0
  603. package/src/public/operations/specs/check.ts +14 -22
  604. package/src/public/operations/specs/discovery.ts +57 -3
  605. package/src/public/operations/specs/modeling.ts +3 -3
  606. package/src/public/operations/specs/mutation-schemas.ts +24 -6
  607. package/src/public/operations/specs/mutation.ts +27 -2
  608. package/src/public/operations/specs/planning.ts +241 -0
  609. package/src/public/operations/specs/proof.ts +43 -0
  610. package/src/public/operations/specs/reporting.ts +193 -12
  611. package/src/public/operations/specs/upsert.ts +10 -0
  612. package/src/public/operations/symbol-repair-plan.ts +324 -0
  613. package/src/public/operations/types.ts +62 -1
  614. package/src/public/proof-fingerprint.ts +216 -0
  615. package/src/public/proof-protocol-types.d.ts +96 -0
  616. package/src/public/proof-protocol.ts +589 -0
  617. package/src/public/proof-receipt.ts +499 -0
  618. package/src/public/schemas/entity.ts +27 -6
  619. package/src/public/skills/kibi-bootstrap/SKILL.md +58 -0
  620. package/src/public/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
  621. package/src/public/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
  622. package/src/public/skills/kibi-bootstrap/resources/operation-access.md +5 -0
  623. package/src/public/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
  624. package/src/public/skills/kibi-freshness/SKILL.md +39 -9
  625. package/src/public/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
  626. package/src/public/skills/kibi-freshness/resources/operation-access.md +6 -0
  627. package/src/public/skills/kibi-freshness/resources/source-authoring.md +7 -0
  628. package/src/public/skills/kibi-traceability/SKILL.md +47 -47
  629. package/src/public/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
  630. package/src/public/skills/kibi-traceability/resources/operation-access.md +5 -0
  631. package/src/public/skills/kibi-traceability/resources/source-authoring.md +6 -0
  632. package/src/public/skills/kibi-traceability/resources/traceability.md +8 -0
  633. package/src/public/skills/kibi-usage/SKILL.md +136 -231
  634. package/src/public/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
  635. package/src/public/skills/kibi-usage/resources/kb-improvement.md +38 -0
  636. package/src/public/skills/kibi-usage/resources/operation-access.md +36 -38
  637. package/src/public/skills/kibi-usage/resources/proof.md +105 -0
  638. package/src/public/skills/kibi-usage/resources/relationship-directions.md +3 -3
  639. package/src/public/skills/kibi-usage/resources/source-authoring.md +31 -0
  640. package/src/public/skills/kibi-usage/resources/workflows.md +57 -4
  641. package/src/public/symbol-granularity.generated.ts +41 -0
  642. package/src/public/symbol-granularity.ts +35 -59
  643. package/src/public/telemetry-acceptance-types.d.ts +98 -0
  644. package/src/public/telemetry-acceptance.ts +30 -93
  645. package/src/public/telemetry-remediation.ts +1 -1
  646. package/src/schemas/entity.schema.json +1254 -239
  647. package/templates/github/kibi-badge.yml +86 -0
  648. package/templates/github/kibi-report.yml +84 -0
  649. package/dist/operations/autopilot/activation.d.ts +0 -4
  650. package/dist/operations/autopilot/activation.d.ts.map +0 -1
  651. package/dist/operations/autopilot/candidates.d.ts +0 -4
  652. package/dist/operations/autopilot/discovery.d.ts.map +0 -1
  653. package/dist/operations/autopilot/generate.d.ts +0 -8
  654. package/dist/operations/autopilot/generate.d.ts.map +0 -1
  655. package/dist/operations/autopilot/generate.js +0 -112
  656. package/dist/operations/autopilot/guidance.d.ts.map +0 -1
  657. package/dist/operations/autopilot/presentation.d.ts +0 -13
  658. package/dist/operations/autopilot/presentation.d.ts.map +0 -1
  659. package/dist/operations/autopilot/presentation.js +0 -91
  660. package/dist/operations/autopilot/types.d.ts.map +0 -1
  661. package/dist/operations/autopilot/types.js +0 -8
  662. package/dist/public/operations/specs/autopilot.d.ts.map +0 -1
  663. package/dist/public/skills/init-kibi/SKILL.md +0 -62
  664. package/dist/public/verification-receipt.d.ts +0 -75
  665. package/dist/public/verification-receipt.d.ts.map +0 -1
  666. package/dist/public/verification-receipt.js +0 -129
  667. package/src/public/skills/init-kibi/SKILL.md +0 -62
  668. package/src/public/verification-receipt.ts +0 -170
  669. /package/dist/operations/{autopilot → bootstrap}/candidate-helpers.d.ts +0 -0
  670. /package/dist/operations/{autopilot → bootstrap}/candidate-helpers.js +0 -0
  671. /package/dist/operations/{autopilot → bootstrap}/requirement-claims.d.ts +0 -0
  672. /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: {
@@ -214,6 +298,14 @@ export declare const OPERATION_CATALOG: readonly [{
214
298
  readonly type: "boolean";
215
299
  readonly default: false;
216
300
  };
301
+ readonly statuses: {
302
+ readonly type: "array";
303
+ readonly items: {
304
+ readonly type: "string";
305
+ readonly enum: readonly ["proven", "missing", "unresolved", "not_applicable"];
306
+ };
307
+ readonly description: "Requirement proof-status filter (req mode): include only rows whose proofStatus is listed. Selecting statuses implies include-passing; not_applicable rows carry their typed applicability reason in proofStages.applicability.reason. The summary always reflects the whole KB.";
308
+ };
217
309
  readonly includeTransitive: {
218
310
  readonly type: "boolean";
219
311
  readonly default: true;
@@ -401,7 +493,7 @@ export declare const OPERATION_CATALOG: readonly [{
401
493
  };
402
494
  readonly source: {
403
495
  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'.";
496
+ readonly description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: '.kb/requirements/customer-retention.md'.";
405
497
  };
406
498
  readonly sourceFiles: {
407
499
  readonly type: "array";
@@ -435,7 +527,7 @@ export declare const OPERATION_CATALOG: readonly [{
435
527
  };
436
528
  readonly provenance: {
437
529
  readonly type: "string";
438
- readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: 'documentation/requirements/customer-retention.md#L1'.";
530
+ readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: '.kb/requirements/customer-retention.md#L1'.";
439
531
  };
440
532
  readonly existingLogicClaims: {
441
533
  readonly type: "array";
@@ -470,7 +562,7 @@ export declare const OPERATION_CATALOG: readonly [{
470
562
  }, {
471
563
  readonly name: "kb_suggest_predicates";
472
564
  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.";
565
+ 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
566
  readonly businessInputSchema: {
475
567
  readonly type: "object";
476
568
  readonly required: readonly ["text"];
@@ -543,9 +635,9 @@ export declare const OPERATION_CATALOG: readonly [{
543
635
  readonly effects: readonly ["kb-read"];
544
636
  readonly execute: typeof import("../../operations/modeling/suggest-predicates.js").executeSuggestPredicates;
545
637
  }, {
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.";
638
+ readonly name: "kb_plan_bootstrap";
639
+ readonly cliName: "plan-bootstrap";
640
+ 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
641
  readonly businessInputSchema: {
550
642
  readonly type: "object";
551
643
  readonly properties: {
@@ -618,7 +710,7 @@ export declare const OPERATION_CATALOG: readonly [{
618
710
  };
619
711
  readonly requiresProlog: false;
620
712
  readonly effects: readonly ["workspace-read"];
621
- readonly execute: typeof import("./index.js").executeAutopilotGenerate;
713
+ readonly execute: typeof import("./index.js").executePlanBootstrap;
622
714
  }, {
623
715
  readonly name: "kb_validate_upsert";
624
716
  readonly cliName: "validate-upsert";
@@ -756,7 +848,7 @@ export declare const OPERATION_CATALOG: readonly [{
756
848
  };
757
849
  readonly granularity_reason: {
758
850
  readonly type: "string";
759
- readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link"];
851
+ readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link", "test-suite"];
760
852
  readonly description: "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist.";
761
853
  };
762
854
  readonly symbol_role: {
@@ -774,30 +866,101 @@ export declare const OPERATION_CATALOG: readonly [{
774
866
  readonly enum: readonly ["internal", "consumer"];
775
867
  readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
776
868
  };
777
- readonly verification_receipts: {
869
+ readonly proof_contract: {
870
+ readonly description: "Semantic proof contract binding this test to explicit proof obligations executed by one configured integration.";
871
+ readonly type: "object";
872
+ readonly required: readonly ["version", "integration", "required_proofs", "success_policy"];
873
+ readonly properties: {
874
+ readonly version: {
875
+ readonly type: "string";
876
+ readonly const: "kibi.proof-contract.v1";
877
+ };
878
+ readonly integration: {
879
+ readonly type: "string";
880
+ readonly minLength: 1;
881
+ };
882
+ readonly required_proofs: {
883
+ readonly type: "array";
884
+ readonly minItems: 1;
885
+ readonly maxItems: 1000;
886
+ readonly items: {
887
+ readonly type: "object";
888
+ readonly required: readonly ["symbol_id", "target"];
889
+ readonly properties: {
890
+ readonly symbol_id: {
891
+ readonly type: "string";
892
+ readonly minLength: 1;
893
+ };
894
+ readonly target: {
895
+ readonly type: "string";
896
+ readonly minLength: 1;
897
+ };
898
+ };
899
+ readonly additionalProperties: false;
900
+ };
901
+ };
902
+ readonly success_policy: {
903
+ readonly type: "string";
904
+ readonly enum: readonly ["all_required_first_attempt"];
905
+ };
906
+ };
907
+ readonly additionalProperties: false;
908
+ };
909
+ readonly proof_bindings: {
910
+ readonly description: "Optional native-runner bindings (native ids, aliases, source coordinates) for proof obligations. Bindings are provenance metadata and never replace the semantic contract.";
778
911
  readonly type: "array";
779
- readonly maxItems: 50;
780
912
  readonly items: {
781
913
  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"];
914
+ readonly required: readonly ["symbol_id", "target"];
783
915
  readonly properties: {
784
- readonly version: {
916
+ readonly symbol_id: {
785
917
  readonly type: "string";
786
- readonly const: "kibi.verification-receipt.v1";
918
+ readonly minLength: 1;
787
919
  };
788
- readonly receipt_id: {
920
+ readonly target: {
789
921
  readonly type: "string";
790
- readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
922
+ readonly minLength: 1;
791
923
  };
792
- readonly test_id: {
924
+ readonly native_id: {
793
925
  readonly type: "string";
794
926
  readonly minLength: 1;
795
927
  };
796
- readonly runner: {
928
+ readonly aliases: {
929
+ readonly type: "array";
930
+ readonly items: {
931
+ readonly type: "string";
932
+ readonly minLength: 1;
933
+ };
934
+ };
935
+ readonly source_file: {
797
936
  readonly type: "string";
798
937
  readonly minLength: 1;
799
938
  };
800
- readonly command: {
939
+ readonly line: {
940
+ readonly type: "integer";
941
+ readonly minimum: 1;
942
+ };
943
+ };
944
+ readonly additionalProperties: false;
945
+ };
946
+ };
947
+ readonly proof_receipts: {
948
+ readonly type: "array";
949
+ readonly maxItems: 50;
950
+ readonly items: {
951
+ readonly type: "object";
952
+ readonly description: "Kibi-derived kibi.proof-receipt.v1. Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.";
953
+ readonly required: readonly ["version", "receipt_id", "test_id", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest", "contract_hash", "fingerprint", "fingerprint_components", "integration_id", "producer", "command_argv", "run_outcome", "proof_results"];
954
+ readonly properties: {
955
+ readonly version: {
956
+ readonly type: "string";
957
+ readonly const: "kibi.proof-receipt.v1";
958
+ };
959
+ readonly receipt_id: {
960
+ readonly type: "string";
961
+ readonly pattern: "^PR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
962
+ };
963
+ readonly test_id: {
801
964
  readonly type: "string";
802
965
  readonly minLength: 1;
803
966
  };
@@ -807,7 +970,7 @@ export declare const OPERATION_CATALOG: readonly [{
807
970
  };
808
971
  readonly outcome: {
809
972
  readonly type: "string";
810
- readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped"];
973
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
811
974
  };
812
975
  readonly code_snapshot: {
813
976
  readonly type: "string";
@@ -829,10 +992,176 @@ export declare const OPERATION_CATALOG: readonly [{
829
992
  readonly type: "string";
830
993
  readonly pattern: "^[a-f0-9]{64}$";
831
994
  };
995
+ readonly contract_hash: {
996
+ readonly type: "string";
997
+ readonly pattern: "^[a-f0-9]{64}$";
998
+ };
999
+ readonly binding_hash: {
1000
+ readonly type: "string";
1001
+ readonly pattern: "^[a-f0-9]{64}$";
1002
+ };
1003
+ readonly fingerprint: {
1004
+ readonly type: "string";
1005
+ readonly pattern: "^[a-f0-9]{64}$";
1006
+ };
1007
+ readonly fingerprint_components: {
1008
+ readonly type: "object";
1009
+ readonly required: readonly ["contract", "integration", "command", "bindings", "producer"];
1010
+ readonly additionalProperties: false;
1011
+ readonly properties: {
1012
+ readonly contract: {
1013
+ readonly type: "string";
1014
+ readonly pattern: "^[a-f0-9]{64}$";
1015
+ };
1016
+ readonly integration: {
1017
+ readonly type: "string";
1018
+ readonly pattern: "^[a-f0-9]{64}$";
1019
+ };
1020
+ readonly command: {
1021
+ readonly type: "string";
1022
+ readonly pattern: "^[a-f0-9]{64}$";
1023
+ };
1024
+ readonly bindings: {
1025
+ readonly type: "string";
1026
+ readonly pattern: "^[a-f0-9]{64}$";
1027
+ };
1028
+ readonly producer: {
1029
+ readonly type: "string";
1030
+ readonly pattern: "^[a-f0-9]{64}$";
1031
+ };
1032
+ };
1033
+ };
1034
+ readonly integration_id: {
1035
+ readonly type: "string";
1036
+ readonly minLength: 1;
1037
+ };
1038
+ readonly producer: {
1039
+ readonly type: "object";
1040
+ readonly required: readonly ["name"];
1041
+ readonly properties: {
1042
+ readonly name: {
1043
+ readonly type: "string";
1044
+ readonly minLength: 1;
1045
+ };
1046
+ readonly version: {
1047
+ readonly type: "string";
1048
+ readonly minLength: 1;
1049
+ };
1050
+ };
1051
+ readonly additionalProperties: false;
1052
+ };
1053
+ readonly command_argv: {
1054
+ readonly type: "array";
1055
+ readonly minItems: 1;
1056
+ readonly items: {
1057
+ readonly type: "string";
1058
+ readonly minLength: 1;
1059
+ };
1060
+ };
1061
+ readonly run_outcome: {
1062
+ readonly type: "string";
1063
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "timed_out", "interrupted", "no_results"];
1064
+ };
1065
+ readonly proof_results: {
1066
+ readonly type: "array";
1067
+ readonly minItems: 0;
1068
+ readonly maxItems: 1000;
1069
+ readonly items: {
1070
+ readonly type: "object";
1071
+ readonly required: readonly ["symbol_id", "target", "outcome", "binding", "attempts"];
1072
+ readonly properties: {
1073
+ readonly symbol_id: {
1074
+ readonly type: "string";
1075
+ readonly minLength: 1;
1076
+ };
1077
+ readonly target: {
1078
+ readonly type: "string";
1079
+ readonly minLength: 1;
1080
+ };
1081
+ readonly outcome: {
1082
+ readonly type: "string";
1083
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1084
+ };
1085
+ readonly binding: {
1086
+ readonly type: "string";
1087
+ readonly enum: readonly ["native_case", "aggregate_run"];
1088
+ };
1089
+ readonly native_id: {
1090
+ readonly type: "string";
1091
+ readonly minLength: 1;
1092
+ };
1093
+ readonly attempts: {
1094
+ readonly oneOf: readonly [{
1095
+ readonly type: "object";
1096
+ readonly required: readonly ["status", "entries"];
1097
+ readonly properties: {
1098
+ readonly status: {
1099
+ readonly type: "string";
1100
+ readonly const: "complete";
1101
+ };
1102
+ readonly entries: {
1103
+ readonly type: "array";
1104
+ readonly minItems: 1;
1105
+ readonly items: {
1106
+ readonly type: "object";
1107
+ readonly required: readonly ["outcome"];
1108
+ readonly properties: {
1109
+ readonly outcome: {
1110
+ readonly type: "string";
1111
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1112
+ };
1113
+ readonly duration_ms: {
1114
+ readonly type: "number";
1115
+ readonly minimum: 0;
1116
+ };
1117
+ };
1118
+ readonly additionalProperties: false;
1119
+ };
1120
+ };
1121
+ };
1122
+ readonly additionalProperties: false;
1123
+ }, {
1124
+ readonly type: "object";
1125
+ readonly required: readonly ["status"];
1126
+ readonly properties: {
1127
+ readonly status: {
1128
+ readonly type: "string";
1129
+ readonly const: "unavailable";
1130
+ };
1131
+ };
1132
+ readonly additionalProperties: false;
1133
+ }];
1134
+ };
1135
+ };
1136
+ readonly additionalProperties: false;
1137
+ };
1138
+ };
1139
+ readonly gaps: {
1140
+ readonly type: "array";
1141
+ readonly items: {
1142
+ readonly type: "object";
1143
+ readonly required: readonly ["symbol_id", "target", "reason"];
1144
+ readonly properties: {
1145
+ readonly symbol_id: {
1146
+ readonly type: "string";
1147
+ readonly minLength: 1;
1148
+ };
1149
+ readonly target: {
1150
+ readonly type: "string";
1151
+ readonly minLength: 1;
1152
+ };
1153
+ readonly reason: {
1154
+ readonly type: "string";
1155
+ readonly minLength: 1;
1156
+ };
1157
+ };
1158
+ readonly additionalProperties: false;
1159
+ };
1160
+ };
832
1161
  };
833
1162
  readonly additionalProperties: false;
834
1163
  };
835
- 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.";
1164
+ readonly description: "Append-only proof evidence. Proof accepts only the newest valid passed receipt bound to the current code snapshot, current contract hash, and effective execution fingerprint within the seven-day freshness window. Ingest rotates the oldest entries at the cap.";
836
1165
  };
837
1166
  readonly fact_kind: {
838
1167
  readonly type: "string";
@@ -996,7 +1325,7 @@ export declare const OPERATION_CATALOG: readonly [{
996
1325
  };
997
1326
  readonly allOf: readonly [Record<string, unknown>, {
998
1327
  readonly if: {
999
- readonly required: readonly ["verification_receipts"];
1328
+ readonly required: readonly ["proof_receipts"];
1000
1329
  };
1001
1330
  readonly then: {
1002
1331
  readonly required: readonly ["verification_scope"];
@@ -1027,6 +1356,20 @@ export declare const OPERATION_CATALOG: readonly [{
1027
1356
  };
1028
1357
  };
1029
1358
  };
1359
+ readonly document: {
1360
+ readonly type: "object";
1361
+ readonly additionalProperties: false;
1362
+ readonly description: "Optional source-first document write. Paths are workspace-relative; omit body when updating to preserve the existing body bytes.";
1363
+ readonly properties: {
1364
+ readonly path: {
1365
+ readonly type: "string";
1366
+ readonly minLength: 1;
1367
+ };
1368
+ readonly body: {
1369
+ readonly type: "string";
1370
+ };
1371
+ };
1372
+ };
1030
1373
  };
1031
1374
  };
1032
1375
  readonly requiresProlog: true;
@@ -1038,14 +1381,54 @@ export declare const OPERATION_CATALOG: readonly [{
1038
1381
  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
1382
  readonly businessInputSchema: {
1040
1383
  readonly type: "object";
1041
- readonly required: readonly ["ids"];
1384
+ readonly oneOf: readonly [{
1385
+ readonly required: readonly ["ids"];
1386
+ readonly not: {
1387
+ readonly required: readonly ["relationships"];
1388
+ };
1389
+ }, {
1390
+ readonly required: readonly ["relationships"];
1391
+ readonly not: {
1392
+ readonly required: readonly ["ids"];
1393
+ };
1394
+ }];
1042
1395
  readonly properties: {
1043
1396
  readonly ids: {
1044
1397
  readonly type: "array";
1045
1398
  readonly items: {
1046
1399
  readonly type: "string";
1047
1400
  };
1048
- readonly description: "Required list of entity IDs to delete. Example: ['REQ-001','TEST-002']. At least one ID is required.";
1401
+ readonly minItems: 1;
1402
+ readonly description: "Entity IDs to delete after dependency checks.";
1403
+ };
1404
+ readonly relationships: {
1405
+ readonly type: "array";
1406
+ readonly minItems: 1;
1407
+ readonly items: {
1408
+ readonly type: "object";
1409
+ readonly required: readonly ["type", "from", "to"];
1410
+ readonly additionalProperties: false;
1411
+ readonly properties: {
1412
+ readonly type: {
1413
+ readonly type: "string";
1414
+ readonly minLength: 1;
1415
+ };
1416
+ readonly from: {
1417
+ readonly type: "string";
1418
+ readonly minLength: 1;
1419
+ };
1420
+ readonly to: {
1421
+ readonly type: "string";
1422
+ readonly minLength: 1;
1423
+ };
1424
+ };
1425
+ };
1426
+ readonly description: "Exact relationship triples to retract, including legacy shard records.";
1427
+ };
1428
+ readonly approvedPlanHash: {
1429
+ readonly type: "string";
1430
+ readonly pattern: "^[a-fA-F0-9]{64}$";
1431
+ readonly description: "Exact hash returned by a prior authored-entity deletion plan.";
1049
1432
  };
1050
1433
  };
1051
1434
  };
@@ -1055,7 +1438,7 @@ export declare const OPERATION_CATALOG: readonly [{
1055
1438
  }, {
1056
1439
  readonly name: "kb_check";
1057
1440
  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.";
1441
+ 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
1442
  readonly businessInputSchema: {
1060
1443
  readonly type: "object";
1061
1444
  readonly properties: {
@@ -1063,9 +1446,9 @@ export declare const OPERATION_CATALOG: readonly [{
1063
1446
  readonly type: "array";
1064
1447
  readonly items: {
1065
1448
  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"];
1449
+ readonly enum: readonly string[];
1067
1450
  };
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.";
1451
+ 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, logic-coverage, rule-safety, rule-verifiability, query-plan-safety, req-status-vocabulary, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, strict-readiness, semantic-completeness. 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
1452
  };
1070
1453
  readonly sourceFiles: {
1071
1454
  readonly type: "array";
@@ -1093,7 +1476,12 @@ export declare const OPERATION_CATALOG: readonly [{
1093
1476
  };
1094
1477
  readonly workspaceRoot: {
1095
1478
  readonly type: "string";
1096
- readonly description: "Optional workspace root for impact diagnostics and .kb/config.json lookup. Defaults to the MCP server workspace.";
1479
+ readonly description: "Optional workspace root for impact diagnostics. Defaults to the MCP server workspace.";
1480
+ };
1481
+ readonly async: {
1482
+ readonly type: "boolean";
1483
+ readonly default: false;
1484
+ readonly description: "When true, start the check as a background job and return a kibi.job.v1 receipt immediately instead of holding the request until the tool timeout. Poll kb_job_status with the returned jobId. Use for full checks on large KBs that exceed the configured tool timeout.";
1097
1485
  };
1098
1486
  };
1099
1487
  };
@@ -1125,7 +1513,485 @@ export declare const OPERATION_CATALOG: readonly [{
1125
1513
  readonly requiresProlog: false;
1126
1514
  readonly effects: readonly ["network-read"];
1127
1515
  readonly execute: (input: import("./index.js").SparqlRemoteInput, context: import("./runtime-types.js").OperationContext) => Promise<import("./types.js").OperationResult<import("./index.js").SparqlRemoteOutput>>;
1516
+ }, {
1517
+ readonly name: "kb_compile_intent";
1518
+ readonly cliName: "compile-intent";
1519
+ 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.";
1520
+ readonly businessInputSchema: {
1521
+ readonly type: "object";
1522
+ readonly required: readonly ["intent", "mode"];
1523
+ readonly properties: {
1524
+ readonly intent: {
1525
+ readonly type: "string";
1526
+ readonly minLength: 1;
1527
+ readonly maxLength: 10000;
1528
+ readonly description: "Complete post-change normative intent. Send the desired behavior, not a patch fragment.";
1529
+ };
1530
+ readonly mode: {
1531
+ readonly type: "string";
1532
+ readonly enum: readonly ["create", "update"];
1533
+ readonly description: "Create a new requirement or update an existing one. Update auto-selection is allowed only with a high-confidence, well-separated candidate.";
1534
+ };
1535
+ readonly requirementId: {
1536
+ readonly type: "string";
1537
+ readonly description: "Optional exact requirement ID. Required for an update when automatic selection is below the confidence and margin gates.";
1538
+ };
1539
+ readonly title: {
1540
+ readonly type: "string";
1541
+ readonly description: "Optional requirement title; existing title is preserved for updates when omitted.";
1542
+ };
1543
+ readonly clauses: {
1544
+ readonly type: "array";
1545
+ readonly items: {
1546
+ readonly type: "string";
1547
+ readonly minLength: 1;
1548
+ };
1549
+ readonly maxItems: 64;
1550
+ readonly description: "Optional complete atomic clause decomposition. Each assertive clause receives independent proposition accounting.";
1551
+ };
1552
+ readonly semanticFacets: {
1553
+ readonly type: "object";
1554
+ readonly additionalProperties: false;
1555
+ readonly properties: {
1556
+ readonly actors: {
1557
+ readonly type: "array";
1558
+ readonly items: {
1559
+ readonly type: "string";
1560
+ };
1561
+ readonly maxItems: 20;
1562
+ };
1563
+ readonly actions: {
1564
+ readonly type: "array";
1565
+ readonly items: {
1566
+ readonly type: "string";
1567
+ };
1568
+ readonly maxItems: 20;
1569
+ };
1570
+ readonly objects: {
1571
+ readonly type: "array";
1572
+ readonly items: {
1573
+ readonly type: "string";
1574
+ };
1575
+ readonly maxItems: 20;
1576
+ };
1577
+ readonly constraints: {
1578
+ readonly type: "array";
1579
+ readonly items: {
1580
+ readonly type: "string";
1581
+ };
1582
+ readonly maxItems: 20;
1583
+ };
1584
+ readonly aliases: {
1585
+ readonly type: "array";
1586
+ readonly items: {
1587
+ readonly type: "string";
1588
+ };
1589
+ readonly maxItems: 20;
1590
+ };
1591
+ };
1592
+ readonly description: "Host-agent facets forwarded to deterministic intent-v1 discovery.";
1593
+ };
1594
+ readonly sourceLocations: {
1595
+ readonly type: "array";
1596
+ readonly maxItems: 20;
1597
+ readonly items: {
1598
+ readonly type: "object";
1599
+ readonly required: readonly ["path"];
1600
+ readonly additionalProperties: false;
1601
+ readonly properties: {
1602
+ readonly path: {
1603
+ readonly type: "string";
1604
+ readonly minLength: 1;
1605
+ };
1606
+ readonly line: {
1607
+ readonly type: "integer";
1608
+ readonly minimum: 1;
1609
+ };
1610
+ readonly column: {
1611
+ readonly type: "integer";
1612
+ readonly minimum: 1;
1613
+ };
1614
+ readonly symbol: {
1615
+ readonly type: "string";
1616
+ readonly minLength: 1;
1617
+ };
1618
+ };
1619
+ };
1620
+ readonly description: "Workspace-relative source coordinates used for discovery and before-hash binding.";
1621
+ };
1622
+ readonly interpretations: {
1623
+ readonly type: "array";
1624
+ readonly maxItems: 3;
1625
+ readonly items: {
1626
+ readonly type: "object";
1627
+ readonly required: readonly ["claim_key", "claim_text", "ir"];
1628
+ readonly properties: {
1629
+ readonly claim_key: {
1630
+ readonly type: "string";
1631
+ };
1632
+ readonly claim_text: {
1633
+ readonly type: "string";
1634
+ };
1635
+ readonly confidence: {
1636
+ readonly type: "number";
1637
+ readonly minimum: 0;
1638
+ readonly maximum: 1;
1639
+ };
1640
+ readonly span: {
1641
+ readonly type: "object";
1642
+ };
1643
+ readonly ir: {
1644
+ readonly type: "object";
1645
+ };
1646
+ };
1647
+ };
1648
+ readonly description: "Optional host-supplied typed kibi.logic.v1 interpretations; Kibi validates them before including rule steps.";
1649
+ };
1650
+ readonly scenarioDrafts: {
1651
+ readonly type: "array";
1652
+ readonly maxItems: 20;
1653
+ readonly items: {
1654
+ readonly type: "object";
1655
+ readonly required: readonly ["title", "body"];
1656
+ readonly properties: {
1657
+ readonly id: {
1658
+ readonly type: "string";
1659
+ };
1660
+ readonly title: {
1661
+ readonly type: "string";
1662
+ readonly minLength: 1;
1663
+ };
1664
+ readonly body: {
1665
+ readonly type: "string";
1666
+ readonly minLength: 1;
1667
+ };
1668
+ };
1669
+ };
1670
+ readonly description: "Optional scenario drafts. Each is linked requirement -> scenario with specified_by.";
1671
+ };
1672
+ readonly testDrafts: {
1673
+ readonly type: "array";
1674
+ readonly maxItems: 20;
1675
+ readonly items: {
1676
+ readonly type: "object";
1677
+ readonly required: readonly ["title", "body"];
1678
+ readonly properties: {
1679
+ readonly id: {
1680
+ readonly type: "string";
1681
+ };
1682
+ readonly title: {
1683
+ readonly type: "string";
1684
+ readonly minLength: 1;
1685
+ };
1686
+ readonly body: {
1687
+ readonly type: "string";
1688
+ readonly minLength: 1;
1689
+ };
1690
+ readonly scenarioIds: {
1691
+ readonly type: "array";
1692
+ readonly items: {
1693
+ readonly type: "string";
1694
+ readonly minLength: 1;
1695
+ };
1696
+ readonly maxItems: 20;
1697
+ readonly description: "Stable scenario draft IDs verified by this test. Required when multiple scenario drafts are supplied.";
1698
+ };
1699
+ readonly verificationScope: {
1700
+ readonly type: "string";
1701
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
1702
+ };
1703
+ readonly verificationPerspective: {
1704
+ readonly type: "string";
1705
+ readonly enum: readonly ["internal", "consumer"];
1706
+ };
1707
+ };
1708
+ };
1709
+ readonly description: "Optional test drafts. Tests are attached to scenarios with verified_by; direct req -> test proof links are not emitted.";
1710
+ };
1711
+ readonly proposalDecisions: {
1712
+ readonly type: "array";
1713
+ readonly maxItems: 20;
1714
+ readonly items: {
1715
+ readonly type: "object";
1716
+ readonly required: readonly ["proposalId", "decision"];
1717
+ readonly properties: {
1718
+ readonly proposalId: {
1719
+ readonly type: "string";
1720
+ readonly minLength: 1;
1721
+ };
1722
+ readonly decision: {
1723
+ readonly type: "string";
1724
+ readonly enum: readonly ["accept", "reject"];
1725
+ };
1726
+ };
1727
+ };
1728
+ readonly description: "Explicit decisions for deterministic traceability proposals. Pending proposals never enter steps.";
1729
+ };
1730
+ };
1731
+ };
1732
+ readonly requiresProlog: true;
1733
+ readonly effects: readonly ["kb-read", "workspace-read"];
1734
+ readonly execute: typeof import("./index.js").executeCompileIntent;
1735
+ }, {
1736
+ readonly name: "kb_apply_plan";
1737
+ readonly cliName: "apply-plan";
1738
+ 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.";
1739
+ readonly businessInputSchema: {
1740
+ readonly type: "object";
1741
+ readonly oneOf: readonly [{
1742
+ readonly required: readonly ["plan", "approvedPlanHash"];
1743
+ readonly not: {
1744
+ readonly required: readonly ["recoveryJournalId"];
1745
+ };
1746
+ }, {
1747
+ readonly required: readonly ["recoveryJournalId"];
1748
+ readonly not: {
1749
+ readonly anyOf: readonly [{
1750
+ readonly required: readonly ["plan"];
1751
+ }, {
1752
+ readonly required: readonly ["approvedPlanHash"];
1753
+ }];
1754
+ };
1755
+ }];
1756
+ readonly properties: {
1757
+ readonly approvedPlanHash: {
1758
+ readonly type: "string";
1759
+ readonly pattern: "^[a-fA-F0-9]{64}$";
1760
+ readonly description: "Exact SHA-256 planHash returned by kb_plan_bootstrap, kb_compile_intent, or another approved plan after human review.";
1761
+ };
1762
+ readonly plan: {
1763
+ readonly type: "object";
1764
+ readonly required: readonly ["version", "planHash"];
1765
+ 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.";
1766
+ };
1767
+ readonly approvedActionIds: {
1768
+ readonly type: "array";
1769
+ readonly items: {
1770
+ readonly type: "string";
1771
+ readonly minLength: 1;
1772
+ };
1773
+ readonly description: "Required for migration-plan.v2. Exact automatic action IDs explicitly approved for this application.";
1774
+ };
1775
+ readonly recoveryJournalId: {
1776
+ readonly type: "string";
1777
+ readonly pattern: "^[A-Za-z0-9._-]+$";
1778
+ 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.";
1779
+ };
1780
+ };
1781
+ };
1782
+ readonly requiresProlog: true;
1783
+ readonly effects: readonly ["kb-read", "kb-write", "workspace-read", "workspace-write"];
1784
+ readonly execute: typeof import("./index.js").executeApplyPlan;
1785
+ }, {
1786
+ readonly name: "kb_ingest_proof";
1787
+ readonly cliName: "ingest-proof";
1788
+ readonly description: "Ingest a producer-emitted kibi.proof-run.v1 artifact and evaluate it against each selected test's kibi.proof-contract.v1 proof obligations. Revalidates the live workspace snapshot, integration command binding, run-level outcome, attempt history, success policy, and append-only proof-receipt history before deriving and appending idempotent kibi.proof-receipt.v1 receipts. Producers report what happened; Kibi evaluates proof. Prefer `kibi prove` so the configured producer runs automatically; direct ingestion is an integration path for custom producers and agents.";
1789
+ readonly businessInputSchema: {
1790
+ readonly type: "object";
1791
+ readonly required: readonly ["snapshot", "artifact"];
1792
+ readonly properties: {
1793
+ readonly snapshot: {
1794
+ readonly type: "string";
1795
+ readonly pattern: "^[a-f0-9]{64}$";
1796
+ readonly description: "Workspace snapshot captured immediately before the run.";
1797
+ };
1798
+ readonly artifact: {
1799
+ readonly type: "object";
1800
+ readonly description: "Producer-emitted kibi.proof-run.v1 proof artifact. Producers report what happened; Kibi evaluates proof obligations and policies. Produce it via `kibi prove` or direct kb_ingest_proof calls.";
1801
+ readonly required: readonly ["version", "producer", "command_argv", "code_snapshot", "environment", "run", "proof_results"];
1802
+ readonly properties: {
1803
+ readonly version: {
1804
+ readonly type: "string";
1805
+ readonly const: "kibi.proof-run.v1";
1806
+ };
1807
+ readonly producer: {
1808
+ readonly type: "object";
1809
+ readonly required: readonly ["name"];
1810
+ readonly properties: {
1811
+ readonly name: {
1812
+ readonly type: "string";
1813
+ readonly minLength: 1;
1814
+ };
1815
+ readonly version: {
1816
+ readonly type: "string";
1817
+ readonly minLength: 1;
1818
+ };
1819
+ };
1820
+ readonly additionalProperties: false;
1821
+ };
1822
+ readonly executor: {
1823
+ readonly type: "object";
1824
+ readonly required: readonly ["name"];
1825
+ readonly properties: {
1826
+ readonly name: {
1827
+ readonly type: "string";
1828
+ readonly minLength: 1;
1829
+ };
1830
+ readonly version: {
1831
+ readonly type: "string";
1832
+ readonly minLength: 1;
1833
+ };
1834
+ };
1835
+ readonly additionalProperties: false;
1836
+ };
1837
+ readonly command_argv: {
1838
+ readonly type: "array";
1839
+ readonly minItems: 1;
1840
+ readonly items: {
1841
+ readonly type: "string";
1842
+ readonly minLength: 1;
1843
+ };
1844
+ };
1845
+ readonly code_snapshot: {
1846
+ readonly type: "string";
1847
+ readonly pattern: "^[a-f0-9]{64}$";
1848
+ };
1849
+ readonly environment: {
1850
+ readonly type: "object";
1851
+ readonly additionalProperties: true;
1852
+ };
1853
+ readonly run: {
1854
+ readonly type: "object";
1855
+ readonly required: readonly ["outcome", "exit_code", "started_at", "finished_at"];
1856
+ readonly properties: {
1857
+ readonly outcome: {
1858
+ readonly type: "string";
1859
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "timed_out", "interrupted", "no_results"];
1860
+ };
1861
+ readonly exit_code: {
1862
+ readonly type: "integer";
1863
+ };
1864
+ readonly started_at: {
1865
+ readonly type: "string";
1866
+ readonly minLength: 1;
1867
+ };
1868
+ readonly finished_at: {
1869
+ readonly type: "string";
1870
+ readonly minLength: 1;
1871
+ };
1872
+ readonly failure_phase: {
1873
+ readonly type: "string";
1874
+ readonly enum: readonly ["setup", "collection", "execution", "teardown", "infrastructure"];
1875
+ };
1876
+ };
1877
+ readonly additionalProperties: false;
1878
+ };
1879
+ readonly proof_results: {
1880
+ readonly type: "array";
1881
+ readonly minItems: 1;
1882
+ readonly maxItems: 1000;
1883
+ readonly items: {
1884
+ readonly type: "object";
1885
+ readonly description: "One observed proof result. binding distinguishes native-case observations from aggregate-run bindings; attempts must report facts only.";
1886
+ readonly required: readonly ["symbol_id", "target", "outcome", "binding", "attempts"];
1887
+ readonly properties: {
1888
+ readonly symbol_id: {
1889
+ readonly type: "string";
1890
+ readonly minLength: 1;
1891
+ readonly description: "Stable proof symbol ID (SYM-*).";
1892
+ };
1893
+ readonly target: {
1894
+ readonly type: "string";
1895
+ readonly minLength: 1;
1896
+ readonly description: "Ecosystem-neutral execution target (browser, runtime, database, device, deployment, or default).";
1897
+ };
1898
+ readonly outcome: {
1899
+ readonly type: "string";
1900
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1901
+ };
1902
+ readonly binding: {
1903
+ readonly type: "string";
1904
+ readonly enum: readonly ["native_case", "aggregate_run"];
1905
+ };
1906
+ readonly native_id: {
1907
+ readonly type: "string";
1908
+ readonly minLength: 1;
1909
+ };
1910
+ readonly attempts: {
1911
+ readonly oneOf: readonly [{
1912
+ readonly type: "object";
1913
+ readonly required: readonly ["status", "entries"];
1914
+ readonly properties: {
1915
+ readonly status: {
1916
+ readonly type: "string";
1917
+ readonly const: "complete";
1918
+ };
1919
+ readonly entries: {
1920
+ readonly type: "array";
1921
+ readonly minItems: 1;
1922
+ readonly maxItems: 100;
1923
+ readonly items: {
1924
+ readonly type: "object";
1925
+ readonly required: readonly ["outcome"];
1926
+ readonly properties: {
1927
+ readonly outcome: {
1928
+ readonly type: "string";
1929
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1930
+ };
1931
+ readonly duration_ms: {
1932
+ readonly type: "number";
1933
+ readonly minimum: 0;
1934
+ };
1935
+ };
1936
+ readonly additionalProperties: false;
1937
+ };
1938
+ };
1939
+ };
1940
+ readonly additionalProperties: false;
1941
+ }, {
1942
+ readonly type: "object";
1943
+ readonly required: readonly ["status"];
1944
+ readonly properties: {
1945
+ readonly status: {
1946
+ readonly type: "string";
1947
+ readonly const: "unavailable";
1948
+ };
1949
+ };
1950
+ readonly additionalProperties: false;
1951
+ }];
1952
+ };
1953
+ readonly diagnostics: {
1954
+ readonly type: "array";
1955
+ readonly items: {
1956
+ readonly type: "string";
1957
+ readonly minLength: 1;
1958
+ };
1959
+ };
1960
+ };
1961
+ readonly additionalProperties: false;
1962
+ };
1963
+ };
1964
+ readonly integration: {
1965
+ readonly type: "string";
1966
+ readonly minLength: 1;
1967
+ };
1968
+ readonly diagnostics: {
1969
+ readonly type: "array";
1970
+ readonly items: {
1971
+ readonly type: "string";
1972
+ readonly minLength: 1;
1973
+ };
1974
+ };
1975
+ };
1976
+ readonly additionalProperties: false;
1977
+ };
1978
+ readonly testIds: {
1979
+ readonly type: "array";
1980
+ readonly minItems: 1;
1981
+ readonly items: {
1982
+ readonly type: "string";
1983
+ readonly minLength: 1;
1984
+ };
1985
+ readonly description: "Existing test entities with proof_contract.v1. Omit to evaluate every test contracted to the artifact's integration.";
1986
+ };
1987
+ };
1988
+ };
1989
+ readonly requiresProlog: true;
1990
+ readonly effects: readonly ["kb-read", "kb-write", "workspace-read"];
1991
+ readonly execute: typeof import("./index.js").executeIngestProof;
1128
1992
  }];
1129
- export declare function getSpec(name: OperationName): OperationSpec;
1130
- export declare function listSpecs(): readonly OperationSpec[];
1993
+ export declare function withContractDefaults(spec: OperationSpec): ResolvedOperationSpec;
1994
+ export declare function requireKnownSpec(spec: ResolvedOperationSpec | undefined, name: OperationName): ResolvedOperationSpec;
1995
+ export declare function getSpec(name: OperationName): ResolvedOperationSpec;
1996
+ export declare function listSpecs(): readonly ResolvedOperationSpec[];
1131
1997
  //# sourceMappingURL=catalog.d.ts.map