kibi-cli 1.0.1 → 2.1.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 (548) 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.js +3 -3
  8. package/dist/cli-operation-metadata.d.ts +4 -3
  9. package/dist/cli-operation-metadata.d.ts.map +1 -1
  10. package/dist/cli-operation-metadata.js +7 -5
  11. package/dist/cli-protocol.js +1 -1
  12. package/dist/cli-register-maintenance.d.ts.map +1 -1
  13. package/dist/cli-register-maintenance.js +7 -0
  14. package/dist/cli-register-proof.d.ts +3 -0
  15. package/dist/cli-register-proof.d.ts.map +1 -0
  16. package/dist/cli-register-proof.js +127 -0
  17. package/dist/cli-register-reporting.d.ts.map +1 -1
  18. package/dist/cli-register-reporting.js +7 -0
  19. package/dist/cli.d.ts +4 -0
  20. package/dist/cli.d.ts.map +1 -1
  21. package/dist/cli.js +19 -10
  22. package/dist/commands/branch.d.ts +1 -0
  23. package/dist/commands/branch.d.ts.map +1 -1
  24. package/dist/commands/branch.js +8 -4
  25. package/dist/commands/check-generated.d.ts +7 -0
  26. package/dist/commands/check-generated.d.ts.map +1 -0
  27. package/dist/commands/check-generated.js +192 -0
  28. package/dist/commands/check.d.ts +14 -0
  29. package/dist/commands/check.d.ts.map +1 -1
  30. package/dist/commands/check.js +193 -46
  31. package/dist/commands/coverage.d.ts +1 -0
  32. package/dist/commands/coverage.d.ts.map +1 -1
  33. package/dist/commands/coverage.js +6 -0
  34. package/dist/commands/doctor.d.ts +22 -0
  35. package/dist/commands/doctor.d.ts.map +1 -1
  36. package/dist/commands/doctor.js +170 -23
  37. package/dist/commands/engine.d.ts +12 -0
  38. package/dist/commands/engine.d.ts.map +1 -1
  39. package/dist/commands/engine.js +42 -0
  40. package/dist/commands/github-init.d.ts +1 -0
  41. package/dist/commands/github-init.d.ts.map +1 -1
  42. package/dist/commands/github-init.js +9 -5
  43. package/dist/commands/init-helpers.d.ts.map +1 -1
  44. package/dist/commands/init-helpers.js +49 -10
  45. package/dist/commands/migrate.d.ts +4 -0
  46. package/dist/commands/migrate.d.ts.map +1 -1
  47. package/dist/commands/migrate.js +7 -7
  48. package/dist/commands/proof-explain.d.ts +10 -0
  49. package/dist/commands/proof-explain.d.ts.map +1 -0
  50. package/dist/commands/proof-explain.js +45 -0
  51. package/dist/commands/proof-impact.d.ts +7 -0
  52. package/dist/commands/proof-impact.d.ts.map +1 -0
  53. package/dist/commands/proof-impact.js +39 -0
  54. package/dist/commands/proof-migrate-legacy.d.ts +7 -0
  55. package/dist/commands/proof-migrate-legacy.d.ts.map +1 -0
  56. package/dist/commands/proof-migrate-legacy.js +45 -0
  57. package/dist/commands/proof-prune.d.ts +8 -0
  58. package/dist/commands/proof-prune.d.ts.map +1 -0
  59. package/dist/commands/proof-prune.js +53 -0
  60. package/dist/commands/prove.d.ts +37 -0
  61. package/dist/commands/prove.d.ts.map +1 -0
  62. package/dist/commands/prove.js +470 -0
  63. package/dist/commands/report.d.ts.map +1 -1
  64. package/dist/commands/report.js +18 -3
  65. package/dist/commands/sync/discovery.d.ts +3 -0
  66. package/dist/commands/sync/discovery.d.ts.map +1 -1
  67. package/dist/commands/sync/discovery.js +36 -28
  68. package/dist/commands/sync/manifest.d.ts +2 -1
  69. package/dist/commands/sync/manifest.d.ts.map +1 -1
  70. package/dist/commands/sync/manifest.js +55 -21
  71. package/dist/commands/sync/persistence.d.ts +4 -1
  72. package/dist/commands/sync/persistence.d.ts.map +1 -1
  73. package/dist/commands/sync/persistence.js +31 -14
  74. package/dist/commands/sync/staging.d.ts +1 -0
  75. package/dist/commands/sync/staging.d.ts.map +1 -1
  76. package/dist/commands/sync/staging.js +5 -2
  77. package/dist/commands/sync/untracked-targets.d.ts +24 -0
  78. package/dist/commands/sync/untracked-targets.d.ts.map +1 -0
  79. package/dist/commands/sync/untracked-targets.js +108 -0
  80. package/dist/commands/sync.d.ts +11 -1
  81. package/dist/commands/sync.d.ts.map +1 -1
  82. package/dist/commands/sync.js +74 -30
  83. package/dist/engine-daemon.d.ts +3 -1
  84. package/dist/engine-daemon.d.ts.map +1 -1
  85. package/dist/engine-daemon.js +49 -20
  86. package/dist/engine.d.ts +17 -77
  87. package/dist/engine.d.ts.map +1 -1
  88. package/dist/engine.js +331 -91
  89. package/dist/env/bootstrap.d.ts +84 -0
  90. package/dist/env/bootstrap.d.ts.map +1 -0
  91. package/dist/env/bootstrap.js +310 -0
  92. package/dist/extractors/manifest.d.ts +5 -0
  93. package/dist/extractors/manifest.d.ts.map +1 -1
  94. package/dist/extractors/manifest.js +46 -1
  95. package/dist/extractors/markdown.d.ts +7 -3
  96. package/dist/extractors/markdown.d.ts.map +1 -1
  97. package/dist/extractors/markdown.js +60 -24
  98. package/dist/extractors/playwright-cases.js +1 -1
  99. package/dist/extractors/relationships.d.ts +6 -0
  100. package/dist/extractors/relationships.d.ts.map +1 -1
  101. package/dist/extractors/relationships.js +1 -1
  102. package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
  103. package/dist/extractors/symbols-coordinator.d.ts +8 -0
  104. package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
  105. package/dist/extractors/symbols-coordinator.js +40 -0
  106. package/dist/extractors/symbols-ts.d.ts +9 -19
  107. package/dist/extractors/symbols-ts.d.ts.map +1 -1
  108. package/dist/extractors/symbols-ts.js +34 -429
  109. package/dist/intent-search.d.ts +1 -0
  110. package/dist/intent-search.d.ts.map +1 -1
  111. package/dist/intent-search.js +11 -8
  112. package/dist/logic/ir.d.ts +1 -0
  113. package/dist/logic/ir.d.ts.map +1 -1
  114. package/dist/logic/ir.js +1 -1
  115. package/dist/operations/bootstrap/activation.d.ts +2 -1
  116. package/dist/operations/bootstrap/activation.d.ts.map +1 -1
  117. package/dist/operations/bootstrap/activation.js +11 -3
  118. package/dist/operations/bootstrap/generate.d.ts +2 -1
  119. package/dist/operations/bootstrap/generate.d.ts.map +1 -1
  120. package/dist/operations/bootstrap/generate.js +6 -3
  121. package/dist/operations/bootstrap/guidance.d.ts +1 -0
  122. package/dist/operations/bootstrap/guidance.d.ts.map +1 -1
  123. package/dist/operations/bootstrap/guidance.js +1 -1
  124. package/dist/operations/modeling/model-requirement.d.ts +5 -0
  125. package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
  126. package/dist/operations/modeling/model-requirement.js +57 -46
  127. package/dist/operations/modeling/predicate-applicability.d.ts.map +1 -1
  128. package/dist/operations/modeling/predicate-applicability.js +103 -4
  129. package/dist/operations/modeling/predicate-catalog-2.d.ts.map +1 -1
  130. package/dist/operations/modeling/predicate-catalog-2.js +18 -2
  131. package/dist/operations/modeling/predicate-catalog-3.d.ts.map +1 -1
  132. package/dist/operations/modeling/predicate-catalog-3.js +17 -1
  133. package/dist/operations/modeling/predicate-catalog-5.d.ts +10 -0
  134. package/dist/operations/modeling/predicate-catalog-5.d.ts.map +1 -0
  135. package/dist/operations/modeling/predicate-catalog-5.js +291 -0
  136. package/dist/operations/modeling/predicate-catalog.d.ts.map +1 -1
  137. package/dist/operations/modeling/predicate-catalog.js +4 -0
  138. package/dist/operations/modeling/predicate-loader.d.ts +1 -0
  139. package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
  140. package/dist/operations/modeling/predicate-loader.js +4 -3
  141. package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -1
  142. package/dist/operations/modeling/predicate-ranker.js +4 -1
  143. package/dist/operations/modeling/predicate-types.d.ts +1 -1
  144. package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
  145. package/dist/operations/modeling/predicate-usage-hints-4.d.ts +3 -0
  146. package/dist/operations/modeling/predicate-usage-hints-4.d.ts.map +1 -0
  147. package/dist/operations/modeling/predicate-usage-hints-4.js +84 -0
  148. package/dist/operations/modeling/suggest-predicates.d.ts +4 -2
  149. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
  150. package/dist/operations/modeling/suggest-predicates.js +82 -22
  151. package/dist/operations/mutation/contradictions.d.ts +2 -1
  152. package/dist/operations/mutation/contradictions.d.ts.map +1 -1
  153. package/dist/operations/mutation/contradictions.js +26 -5
  154. package/dist/operations/mutation/delete.d.ts +3 -0
  155. package/dist/operations/mutation/delete.d.ts.map +1 -1
  156. package/dist/operations/mutation/delete.js +100 -32
  157. package/dist/operations/mutation/relationships.d.ts +1 -0
  158. package/dist/operations/mutation/relationships.d.ts.map +1 -1
  159. package/dist/operations/mutation/relationships.js +6 -4
  160. package/dist/operations/mutation/saga.d.ts +51 -0
  161. package/dist/operations/mutation/saga.d.ts.map +1 -0
  162. package/dist/operations/mutation/saga.js +67 -0
  163. package/dist/operations/mutation/serialization.d.ts.map +1 -1
  164. package/dist/operations/mutation/serialization.js +3 -2
  165. package/dist/operations/mutation/source-authoring.d.ts +5 -1
  166. package/dist/operations/mutation/source-authoring.d.ts.map +1 -1
  167. package/dist/operations/mutation/source-authoring.js +79 -46
  168. package/dist/operations/mutation/strict-fact.d.ts +1 -0
  169. package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
  170. package/dist/operations/mutation/strict-fact.js +8 -5
  171. package/dist/operations/mutation/symbol-compiler-lock.d.ts +5 -2
  172. package/dist/operations/mutation/symbol-compiler-lock.d.ts.map +1 -1
  173. package/dist/operations/mutation/symbol-compiler-lock.js +65 -2
  174. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
  175. package/dist/operations/mutation/symbol-granularity.js +11 -89
  176. package/dist/operations/mutation/symbol-refresh.d.ts +1 -0
  177. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
  178. package/dist/operations/mutation/symbol-refresh.js +10 -8
  179. package/dist/operations/mutation/upsert.d.ts +18 -2
  180. package/dist/operations/mutation/upsert.d.ts.map +1 -1
  181. package/dist/operations/mutation/upsert.js +86 -54
  182. package/dist/operations/mutation/validate-upsert.js +2 -2
  183. package/dist/operations/mutation/validation.d.ts.map +1 -1
  184. package/dist/operations/mutation/validation.js +46 -4
  185. package/dist/operations/mutation/warnings.d.ts +1 -0
  186. package/dist/operations/mutation/warnings.d.ts.map +1 -1
  187. package/dist/operations/mutation/warnings.js +7 -5
  188. package/dist/operations/mutation/workspace-mutation-lock.d.ts +60 -0
  189. package/dist/operations/mutation/workspace-mutation-lock.d.ts.map +1 -0
  190. package/dist/operations/mutation/workspace-mutation-lock.js +362 -0
  191. package/dist/operations/planning/apply-plan.d.ts +8 -106
  192. package/dist/operations/planning/apply-plan.d.ts.map +1 -1
  193. package/dist/operations/planning/apply-plan.js +113 -36
  194. package/dist/operations/planning/compile-intent.d.ts +51 -0
  195. package/dist/operations/planning/compile-intent.d.ts.map +1 -1
  196. package/dist/operations/planning/compile-intent.js +133 -17
  197. package/dist/operations/proof/baseline-diff.d.ts +41 -0
  198. package/dist/operations/proof/baseline-diff.d.ts.map +1 -0
  199. package/dist/operations/proof/baseline-diff.js +153 -0
  200. package/dist/operations/proof/explain.d.ts +75 -0
  201. package/dist/operations/proof/explain.d.ts.map +1 -0
  202. package/dist/operations/proof/explain.js +294 -0
  203. package/dist/operations/proof/impact.d.ts +45 -0
  204. package/dist/operations/proof/impact.d.ts.map +1 -0
  205. package/dist/operations/proof/impact.js +118 -0
  206. package/dist/operations/proof/ingest-proof.d.ts +34 -0
  207. package/dist/operations/proof/ingest-proof.d.ts.map +1 -0
  208. package/dist/operations/proof/ingest-proof.js +348 -0
  209. package/dist/operations/proof/migrate-legacy-receipts.d.ts +30 -0
  210. package/dist/operations/proof/migrate-legacy-receipts.d.ts.map +1 -0
  211. package/dist/operations/proof/migrate-legacy-receipts.js +92 -0
  212. package/dist/operations/proof/prune-receipts.d.ts +35 -0
  213. package/dist/operations/proof/prune-receipts.d.ts.map +1 -0
  214. package/dist/operations/proof/prune-receipts.js +91 -0
  215. package/dist/operations/proof/receipt-document.d.ts +29 -0
  216. package/dist/operations/proof/receipt-document.d.ts.map +1 -0
  217. package/dist/operations/proof/receipt-document.js +117 -0
  218. package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -1
  219. package/dist/operations/semantic-advisor/analysis-receipt.js +3 -9
  220. package/dist/operations/semantic-advisor/analyze-prose.d.ts +1 -0
  221. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
  222. package/dist/operations/semantic-advisor/analyze-prose.js +64 -93
  223. package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
  224. package/dist/operations/semantic-advisor/clauses.js +20 -7
  225. package/dist/operations/semantic-advisor/plugin-orchestration.d.ts +63 -0
  226. package/dist/operations/semantic-advisor/plugin-orchestration.d.ts.map +1 -0
  227. package/dist/operations/semantic-advisor/plugin-orchestration.js +489 -0
  228. package/dist/operations/semantic-advisor/predicate-rules-core.d.ts +15 -2
  229. package/dist/operations/semantic-advisor/predicate-rules-core.d.ts.map +1 -1
  230. package/dist/operations/semantic-advisor/predicate-rules-core.js +7 -140
  231. package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts +11 -12
  232. package/dist/operations/semantic-advisor/predicate-rules-launcher.d.ts.map +1 -1
  233. package/dist/operations/semantic-advisor/predicate-rules-launcher.js +6 -94
  234. package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts +16 -0
  235. package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts.map +1 -1
  236. package/dist/operations/semantic-advisor/predicate-rules-policy.js +7 -150
  237. package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts +9 -0
  238. package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts.map +1 -1
  239. package/dist/operations/semantic-advisor/predicate-rules-product-tail.js +7 -102
  240. package/dist/operations/semantic-advisor/predicate-rules-product.d.ts +13 -0
  241. package/dist/operations/semantic-advisor/predicate-rules-product.d.ts.map +1 -1
  242. package/dist/operations/semantic-advisor/predicate-rules-product.js +7 -133
  243. package/dist/operations/semantic-advisor/strict-count-rules.d.ts +2 -0
  244. package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -1
  245. package/dist/operations/semantic-advisor/strict-count-rules.js +40 -25
  246. package/dist/operations/semantic-advisor/types.d.ts +1 -0
  247. package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
  248. package/dist/plugins/compose-ontology-packs.d.ts +51 -0
  249. package/dist/plugins/compose-ontology-packs.d.ts.map +1 -0
  250. package/dist/plugins/compose-ontology-packs.js +257 -0
  251. package/dist/plugins/compose-semantic-classifier.d.ts +42 -0
  252. package/dist/plugins/compose-semantic-classifier.d.ts.map +1 -0
  253. package/dist/plugins/compose-semantic-classifier.js +211 -0
  254. package/dist/plugins/external-allowlist.d.ts +10 -0
  255. package/dist/plugins/external-allowlist.d.ts.map +1 -0
  256. package/dist/plugins/external-allowlist.js +16 -0
  257. package/dist/plugins/index.d.ts +9 -0
  258. package/dist/plugins/index.d.ts.map +1 -0
  259. package/dist/plugins/index.js +33 -0
  260. package/dist/plugins/load-plugin.d.ts +19 -0
  261. package/dist/plugins/load-plugin.d.ts.map +1 -0
  262. package/dist/plugins/load-plugin.js +59 -0
  263. package/dist/plugins/project-config.d.ts +28 -0
  264. package/dist/plugins/project-config.d.ts.map +1 -0
  265. package/dist/plugins/project-config.js +90 -0
  266. package/dist/plugins/registry.d.ts +93 -0
  267. package/dist/plugins/registry.d.ts.map +1 -0
  268. package/dist/plugins/registry.js +338 -0
  269. package/dist/plugins/resolve-package.d.ts +47 -0
  270. package/dist/plugins/resolve-package.d.ts.map +1 -0
  271. package/dist/plugins/resolve-package.js +262 -0
  272. package/dist/plugins/source-analysis-service.d.ts +44 -0
  273. package/dist/plugins/source-analysis-service.d.ts.map +1 -0
  274. package/dist/plugins/source-analysis-service.js +232 -0
  275. package/dist/prolog/codec.d.ts +13 -1
  276. package/dist/prolog/codec.d.ts.map +1 -1
  277. package/dist/prolog/codec.js +269 -154
  278. package/dist/prolog/error-terms.d.ts +47 -0
  279. package/dist/prolog/error-terms.d.ts.map +1 -0
  280. package/dist/prolog/error-terms.js +334 -0
  281. package/dist/prolog/janitor.d.ts +50 -0
  282. package/dist/prolog/janitor.d.ts.map +1 -0
  283. package/dist/prolog/janitor.js +154 -0
  284. package/dist/prolog/store-lock.d.ts +45 -0
  285. package/dist/prolog/store-lock.d.ts.map +1 -0
  286. package/dist/prolog/store-lock.js +195 -0
  287. package/dist/prolog.d.ts +7 -0
  288. package/dist/prolog.d.ts.map +1 -1
  289. package/dist/prolog.js +55 -17
  290. package/dist/proof/evaluate.d.ts +27 -0
  291. package/dist/proof/evaluate.d.ts.map +1 -0
  292. package/dist/proof/evaluate.js +151 -0
  293. package/dist/proof/inspect.d.ts +12 -0
  294. package/dist/proof/inspect.d.ts.map +1 -0
  295. package/dist/proof/inspect.js +236 -0
  296. package/dist/proof/integrations.d.ts +35 -0
  297. package/dist/proof/integrations.d.ts.map +1 -0
  298. package/dist/proof/integrations.js +123 -0
  299. package/dist/proof/producers/junit-adapter.d.ts +26 -0
  300. package/dist/proof/producers/junit-adapter.d.ts.map +1 -0
  301. package/dist/proof/producers/junit-adapter.js +186 -0
  302. package/dist/{public → proof/producers}/playwright-case-id.d.ts +1 -1
  303. package/dist/proof/producers/playwright-case-id.d.ts.map +1 -0
  304. package/dist/{public → proof/producers}/playwright-case-id.js +1 -1
  305. package/dist/proof/producers/playwright-reporter.d.ts +27 -0
  306. package/dist/proof/producers/playwright-reporter.d.ts.map +1 -0
  307. package/dist/proof/producers/playwright-reporter.js +138 -0
  308. package/dist/proof/producers/tap-adapter.d.ts +10 -0
  309. package/dist/proof/producers/tap-adapter.d.ts.map +1 -0
  310. package/dist/proof/producers/tap-adapter.js +200 -0
  311. package/dist/proof/receipt-outcome.d.ts +2 -0
  312. package/dist/proof/receipt-outcome.d.ts.map +1 -0
  313. package/dist/proof/receipt-outcome.js +1 -0
  314. package/dist/public/diagnostic-usage.js +6 -6
  315. package/dist/public/distribution-parity.d.ts +7 -1
  316. package/dist/public/distribution-parity.d.ts.map +1 -1
  317. package/dist/public/distribution-parity.js +15 -10
  318. package/dist/public/extractors/symbols-coordinator.d.ts +1 -1
  319. package/dist/public/extractors/symbols-coordinator.d.ts.map +1 -1
  320. package/dist/public/extractors/symbols-coordinator.js +1 -1
  321. package/dist/public/impact/analyzer.d.ts +1 -1
  322. package/dist/public/impact/analyzer.d.ts.map +1 -1
  323. package/dist/public/impact/analyzer.js +6 -4
  324. package/dist/public/impact/coverage-depth-quality.d.ts +1 -0
  325. package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
  326. package/dist/public/impact/coverage-depth-quality.js +1 -1
  327. package/dist/public/impact/diagnostics.d.ts.map +1 -1
  328. package/dist/public/impact/diagnostics.js +2 -2
  329. package/dist/public/impact/diff-meaning.d.ts +1 -0
  330. package/dist/public/impact/diff-meaning.d.ts.map +1 -1
  331. package/dist/public/impact/diff-meaning.js +5 -2
  332. package/dist/public/impact/full-kb-quality.d.ts +5 -2
  333. package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
  334. package/dist/public/impact/full-kb-quality.js +329 -64
  335. package/dist/public/operations/catalog.d.ts +450 -196
  336. package/dist/public/operations/catalog.d.ts.map +1 -1
  337. package/dist/public/operations/catalog.js +6 -4
  338. package/dist/public/operations/check-executor.d.ts.map +1 -1
  339. package/dist/public/operations/check-executor.js +4 -8
  340. package/dist/public/operations/check-helpers.d.ts +1 -1
  341. package/dist/public/operations/check-helpers.d.ts.map +1 -1
  342. package/dist/public/operations/check-helpers.js +1 -1
  343. package/dist/public/operations/contracts.d.ts +7 -0
  344. package/dist/public/operations/contracts.d.ts.map +1 -1
  345. package/dist/public/operations/contracts.js +66 -34
  346. package/dist/public/operations/discovery-entities.d.ts +15 -0
  347. package/dist/public/operations/discovery-entities.d.ts.map +1 -1
  348. package/dist/public/operations/discovery-entities.js +38 -0
  349. package/dist/public/operations/discovery-executors.d.ts +9 -9
  350. package/dist/public/operations/discovery-executors.d.ts.map +1 -1
  351. package/dist/public/operations/discovery-executors.js +39 -31
  352. package/dist/public/operations/index.d.ts +1 -1
  353. package/dist/public/operations/index.d.ts.map +1 -1
  354. package/dist/public/operations/index.js +1 -1
  355. package/dist/public/operations/migration-plan.d.ts +4 -3
  356. package/dist/public/operations/migration-plan.d.ts.map +1 -1
  357. package/dist/public/operations/migration-plan.js +23 -21
  358. package/dist/public/operations/node-ports.js +6 -6
  359. package/dist/public/operations/prolog-json.d.ts +1 -1
  360. package/dist/public/operations/prolog-json.d.ts.map +1 -1
  361. package/dist/public/operations/prolog-json.js +7 -7
  362. package/dist/public/operations/repair-plan.d.ts +3 -3
  363. package/dist/public/operations/repair-plan.d.ts.map +1 -1
  364. package/dist/public/operations/repair-plan.js +49 -19
  365. package/dist/public/operations/result-envelope.d.ts +1 -0
  366. package/dist/public/operations/result-envelope.d.ts.map +1 -1
  367. package/dist/public/operations/result-envelope.js +12 -10
  368. package/dist/public/operations/runtime-types.d.ts +21 -1
  369. package/dist/public/operations/runtime-types.d.ts.map +1 -1
  370. package/dist/public/operations/specs/check-rules.generated.d.ts +5 -0
  371. package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -0
  372. package/dist/public/operations/specs/check-rules.generated.js +35 -0
  373. package/dist/public/operations/specs/check.d.ts +7 -2
  374. package/dist/public/operations/specs/check.d.ts.map +1 -1
  375. package/dist/public/operations/specs/check.js +8 -20
  376. package/dist/public/operations/specs/discovery.d.ts +3 -0
  377. package/dist/public/operations/specs/discovery.d.ts.map +1 -1
  378. package/dist/public/operations/specs/discovery.js +3 -0
  379. package/dist/public/operations/specs/mutation-schemas.d.ts +257 -163
  380. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
  381. package/dist/public/operations/specs/mutation-schemas.js +15 -7
  382. package/dist/public/operations/specs/planning.d.ts +9 -0
  383. package/dist/public/operations/specs/planning.d.ts.map +1 -1
  384. package/dist/public/operations/specs/planning.js +6 -0
  385. package/dist/public/operations/specs/proof.d.ts +212 -0
  386. package/dist/public/operations/specs/proof.d.ts.map +1 -0
  387. package/dist/public/operations/specs/proof.js +30 -0
  388. package/dist/public/operations/specs/reporting.d.ts +20 -0
  389. package/dist/public/operations/specs/reporting.d.ts.map +1 -1
  390. package/dist/public/operations/specs/reporting.js +112 -12
  391. package/dist/public/operations/specs/semantic.d.ts +1 -1
  392. package/dist/public/operations/specs/semantic.d.ts.map +1 -1
  393. package/dist/public/operations/specs/semantic.js +54 -4
  394. package/dist/public/operations/specs/upsert.d.ts +257 -163
  395. package/dist/public/operations/specs/upsert.d.ts.map +1 -1
  396. package/dist/public/operations/symbol-repair-plan.d.ts +11 -0
  397. package/dist/public/operations/symbol-repair-plan.d.ts.map +1 -1
  398. package/dist/public/operations/symbol-repair-plan.js +121 -4
  399. package/dist/public/operations/types.d.ts +6 -1
  400. package/dist/public/operations/types.d.ts.map +1 -1
  401. package/dist/public/proof-fingerprint.d.ts +54 -0
  402. package/dist/public/proof-fingerprint.d.ts.map +1 -0
  403. package/dist/public/proof-fingerprint.js +141 -0
  404. package/dist/public/proof-protocol.d.ts +354 -0
  405. package/dist/public/proof-protocol.d.ts.map +1 -0
  406. package/dist/public/proof-protocol.js +454 -0
  407. package/dist/public/proof-receipt.d.ts +279 -0
  408. package/dist/public/proof-receipt.d.ts.map +1 -0
  409. package/dist/public/proof-receipt.js +377 -0
  410. package/dist/public/schemas/entity.d.ts.map +1 -1
  411. package/dist/public/schemas/entity.js +21 -7
  412. package/dist/public/skills/kibi-freshness/SKILL.md +1 -1
  413. package/dist/public/skills/kibi-usage/SKILL.md +44 -12
  414. package/dist/public/skills/kibi-usage/resources/operation-access.md +1 -1
  415. package/dist/public/skills/kibi-usage/resources/proof.md +150 -0
  416. package/dist/public/skills/kibi-usage/resources/workflows.md +6 -6
  417. package/dist/public/symbol-granularity.d.ts +3 -14
  418. package/dist/public/symbol-granularity.d.ts.map +1 -1
  419. package/dist/public/symbol-granularity.generated.d.ts +16 -0
  420. package/dist/public/symbol-granularity.generated.d.ts.map +1 -0
  421. package/dist/public/symbol-granularity.generated.js +53 -0
  422. package/dist/public/symbol-granularity.js +6 -47
  423. package/dist/public/telemetry-acceptance.d.ts +3 -77
  424. package/dist/public/telemetry-acceptance.d.ts.map +1 -1
  425. package/dist/public/telemetry-acceptance.js +4 -2
  426. package/dist/public/telemetry-remediation.js +1 -1
  427. package/dist/report/html-report.css +1240 -0
  428. package/dist/report/html-report.d.ts +4 -2
  429. package/dist/report/html-report.d.ts.map +1 -1
  430. package/dist/report/html-report.js +37 -300
  431. package/dist/runtime/cli-runtime.d.ts +2 -0
  432. package/dist/runtime/cli-runtime.d.ts.map +1 -1
  433. package/dist/runtime/cli-runtime.js +32 -7
  434. package/dist/schemas/entity.schema.json +355 -215
  435. package/dist/search-ranking.d.ts +1 -0
  436. package/dist/search-ranking.d.ts.map +1 -1
  437. package/dist/search-ranking.js +3 -0
  438. package/dist/traceability/evidence-model.d.ts +28 -0
  439. package/dist/traceability/evidence-model.d.ts.map +1 -1
  440. package/dist/traceability/git-staged.d.ts +20 -0
  441. package/dist/traceability/git-staged.d.ts.map +1 -1
  442. package/dist/traceability/git-staged.js +145 -1
  443. package/dist/traceability/staged-diagnostics.d.ts +7 -0
  444. package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
  445. package/dist/traceability/staged-diagnostics.js +78 -7
  446. package/dist/traceability/staged-file-coverage.d.ts +33 -0
  447. package/dist/traceability/staged-file-coverage.d.ts.map +1 -0
  448. package/dist/traceability/staged-file-coverage.js +284 -0
  449. package/dist/traceability/staged-impact-contract.js +4 -4
  450. package/dist/traceability/staged-symbols-manifest.d.ts +13 -0
  451. package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
  452. package/dist/traceability/staged-symbols-manifest.js +138 -27
  453. package/dist/traceability/symbol-extract.d.ts +24 -2
  454. package/dist/traceability/symbol-extract.d.ts.map +1 -1
  455. package/dist/traceability/symbol-extract.js +64 -208
  456. package/dist/traceability/temp-kb.d.ts +2 -0
  457. package/dist/traceability/temp-kb.d.ts.map +1 -1
  458. package/dist/traceability/temp-kb.js +13 -4
  459. package/dist/types/entities.d.ts +5 -3
  460. package/dist/types/entities.d.ts.map +1 -1
  461. package/dist/utils/branch-resolver.d.ts +1 -0
  462. package/dist/utils/branch-resolver.d.ts.map +1 -1
  463. package/dist/utils/branch-resolver.js +7 -4
  464. package/dist/utils/branch-store.d.ts +6 -0
  465. package/dist/utils/branch-store.d.ts.map +1 -1
  466. package/dist/utils/branch-store.js +27 -0
  467. package/dist/utils/kb-paths.d.ts +1 -1
  468. package/dist/utils/kb-paths.d.ts.map +1 -1
  469. package/dist/utils/kb-paths.js +1 -1
  470. package/dist/utils/rule-registry.d.ts +1 -11
  471. package/dist/utils/rule-registry.d.ts.map +1 -1
  472. package/dist/utils/rule-registry.generated.d.ts +102 -0
  473. package/dist/utils/rule-registry.generated.d.ts.map +1 -0
  474. package/dist/utils/rule-registry.generated.js +131 -0
  475. package/dist/utils/rule-registry.js +12 -113
  476. package/dist/utils/strict-modeling.d.ts +1 -0
  477. package/dist/utils/strict-modeling.d.ts.map +1 -1
  478. package/dist/utils/strict-modeling.js +1 -1
  479. package/package.json +20 -20
  480. package/src/public/diagnostic-usage.ts +6 -6
  481. package/src/public/distribution-parity.ts +17 -10
  482. package/src/public/extractors/symbols-coordinator.ts +1 -0
  483. package/src/public/impact/analyzer.ts +15 -12
  484. package/src/public/impact/coverage-depth-quality.ts +1 -1
  485. package/src/public/impact/diagnostics.ts +2 -1
  486. package/src/public/impact/diff-meaning.ts +11 -4
  487. package/src/public/impact/full-kb-quality.ts +463 -72
  488. package/src/public/operations/catalog.ts +10 -4
  489. package/src/public/operations/check-executor.ts +4 -8
  490. package/src/public/operations/check-helpers.ts +2 -2
  491. package/src/public/operations/contracts.ts +78 -34
  492. package/src/public/operations/discovery-entities.ts +53 -0
  493. package/src/public/operations/discovery-executors.ts +64 -48
  494. package/src/public/operations/index.ts +1 -1
  495. package/src/public/operations/migration-plan.ts +32 -25
  496. package/src/public/operations/node-ports.ts +6 -6
  497. package/src/public/operations/prolog-json.ts +13 -5
  498. package/src/public/operations/repair-plan.ts +60 -23
  499. package/src/public/operations/result-envelope.ts +15 -10
  500. package/src/public/operations/runtime-types.ts +26 -2
  501. package/src/public/operations/specs/check-rules.generated.ts +38 -0
  502. package/src/public/operations/specs/check.ts +12 -21
  503. package/src/public/operations/specs/discovery.ts +3 -0
  504. package/src/public/operations/specs/mutation-schemas.ts +22 -9
  505. package/src/public/operations/specs/planning.ts +7 -0
  506. package/src/public/operations/specs/proof.ts +43 -0
  507. package/src/public/operations/specs/reporting.ts +140 -13
  508. package/src/public/operations/specs/semantic.ts +79 -17
  509. package/src/public/operations/symbol-repair-plan.ts +166 -7
  510. package/src/public/operations/types.ts +6 -1
  511. package/src/public/proof-fingerprint.ts +216 -0
  512. package/src/public/proof-protocol-types.d.ts +96 -0
  513. package/src/public/proof-protocol.ts +589 -0
  514. package/src/public/proof-receipt.ts +499 -0
  515. package/src/public/schemas/entity.ts +26 -10
  516. package/src/public/skills/kibi-freshness/SKILL.md +1 -1
  517. package/src/public/skills/kibi-usage/SKILL.md +44 -12
  518. package/src/public/skills/kibi-usage/resources/operation-access.md +1 -1
  519. package/src/public/skills/kibi-usage/resources/proof.md +150 -0
  520. package/src/public/skills/kibi-usage/resources/workflows.md +6 -6
  521. package/src/public/symbol-granularity.generated.ts +74 -0
  522. package/src/public/symbol-granularity.ts +34 -59
  523. package/src/public/telemetry-acceptance-types.d.ts +98 -0
  524. package/src/public/telemetry-acceptance.ts +22 -100
  525. package/src/public/telemetry-remediation.ts +1 -1
  526. package/src/schemas/entity.schema.json +355 -215
  527. package/dist/cli-register-verification.d.ts +0 -3
  528. package/dist/cli-register-verification.d.ts.map +0 -1
  529. package/dist/cli-register-verification.js +0 -16
  530. package/dist/commands/verify.d.ts +0 -10
  531. package/dist/commands/verify.d.ts.map +0 -1
  532. package/dist/commands/verify.js +0 -126
  533. package/dist/operations/verification/ingest-verification.d.ts +0 -29
  534. package/dist/operations/verification/ingest-verification.d.ts.map +0 -1
  535. package/dist/operations/verification/ingest-verification.js +0 -192
  536. package/dist/public/operations/specs/verification.d.ts +0 -78
  537. package/dist/public/operations/specs/verification.d.ts.map +0 -1
  538. package/dist/public/operations/specs/verification.js +0 -62
  539. package/dist/public/playwright-case-id.d.ts.map +0 -1
  540. package/dist/public/verification-receipt.d.ts +0 -242
  541. package/dist/public/verification-receipt.d.ts.map +0 -1
  542. package/dist/public/verification-receipt.js +0 -296
  543. package/dist/verification/playwright-reporter.d.ts +0 -21
  544. package/dist/verification/playwright-reporter.d.ts.map +0 -1
  545. package/dist/verification/playwright-reporter.js +0 -114
  546. package/src/public/operations/specs/verification.ts +0 -78
  547. package/src/public/playwright-case-id.ts +0 -35
  548. package/src/public/verification-receipt.ts +0 -412
@@ -99,6 +99,7 @@ export declare const OPERATION_CATALOG: readonly [{
99
99
  };
100
100
  readonly requiresProlog: true;
101
101
  readonly effects: readonly ["kb-read"];
102
+ readonly agentVisibleStructuredData: true;
102
103
  readonly execute: typeof import("./discovery-executors.js").executeQuery;
103
104
  }, {
104
105
  readonly name: "kb_search";
@@ -219,6 +220,7 @@ export declare const OPERATION_CATALOG: readonly [{
219
220
  };
220
221
  readonly requiresProlog: true;
221
222
  readonly effects: readonly ["kb-read"];
223
+ readonly agentVisibleStructuredData: true;
222
224
  readonly execute: typeof import("./discovery-executors.js").executeSearch;
223
225
  }, {
224
226
  readonly name: "kb_status";
@@ -230,6 +232,7 @@ export declare const OPERATION_CATALOG: readonly [{
230
232
  };
231
233
  readonly requiresProlog: false;
232
234
  readonly effects: readonly ["kb-read", "workspace-read"];
235
+ readonly agentVisibleStructuredData: true;
233
236
  readonly execute: typeof import("./discovery-executors.js").executeStatus;
234
237
  }, {
235
238
  readonly name: "kb_find_gaps";
@@ -298,6 +301,14 @@ export declare const OPERATION_CATALOG: readonly [{
298
301
  readonly type: "boolean";
299
302
  readonly default: false;
300
303
  };
304
+ readonly statuses: {
305
+ readonly type: "array";
306
+ readonly items: {
307
+ readonly type: "string";
308
+ readonly enum: readonly ["proven", "missing", "unresolved", "not_applicable"];
309
+ };
310
+ 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.";
311
+ };
301
312
  readonly includeTransitive: {
302
313
  readonly type: "boolean";
303
314
  readonly default: true;
@@ -858,208 +869,302 @@ export declare const OPERATION_CATALOG: readonly [{
858
869
  readonly enum: readonly ["internal", "consumer"];
859
870
  readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
860
871
  };
861
- readonly verification_contract: {
872
+ readonly proof_contract: {
873
+ readonly description: "Semantic proof contract binding this test to explicit proof obligations executed by one configured integration.";
862
874
  readonly type: "object";
863
- readonly required: readonly ["version", "runner", "command_argv", "required_case_symbols", "required_projects", "success_policy"];
875
+ readonly required: readonly ["version", "integration", "required_proofs", "success_policy"];
864
876
  readonly properties: {
865
877
  readonly version: {
866
878
  readonly type: "string";
867
- readonly const: "kibi.verification-contract.v1";
879
+ readonly const: "kibi.proof-contract.v1";
868
880
  };
869
- readonly runner: {
881
+ readonly integration: {
870
882
  readonly type: "string";
871
883
  readonly minLength: 1;
872
884
  };
873
- readonly command_argv: {
885
+ readonly required_proofs: {
874
886
  readonly type: "array";
875
887
  readonly minItems: 1;
888
+ readonly maxItems: 1000;
876
889
  readonly items: {
890
+ readonly type: "object";
891
+ readonly required: readonly ["symbol_id", "target"];
892
+ readonly properties: {
893
+ readonly symbol_id: {
894
+ readonly type: "string";
895
+ readonly minLength: 1;
896
+ };
897
+ readonly target: {
898
+ readonly type: "string";
899
+ readonly minLength: 1;
900
+ };
901
+ };
902
+ readonly additionalProperties: false;
903
+ };
904
+ };
905
+ readonly success_policy: {
906
+ readonly type: "string";
907
+ readonly enum: readonly ["all_required_first_attempt"];
908
+ };
909
+ };
910
+ readonly additionalProperties: false;
911
+ };
912
+ readonly proof_bindings: {
913
+ readonly description: "Optional native-runner bindings (native ids, aliases, source coordinates) for proof obligations. Bindings are provenance metadata and never replace the semantic contract.";
914
+ readonly type: "array";
915
+ readonly items: {
916
+ readonly type: "object";
917
+ readonly required: readonly ["symbol_id", "target"];
918
+ readonly properties: {
919
+ readonly symbol_id: {
877
920
  readonly type: "string";
878
921
  readonly minLength: 1;
879
922
  };
880
- };
881
- readonly required_case_symbols: {
882
- readonly type: "array";
883
- readonly items: {
923
+ readonly target: {
884
924
  readonly type: "string";
885
925
  readonly minLength: 1;
886
926
  };
887
- readonly uniqueItems: true;
888
- };
889
- readonly required_projects: {
890
- readonly type: "array";
891
- readonly items: {
927
+ readonly native_id: {
892
928
  readonly type: "string";
893
929
  readonly minLength: 1;
894
930
  };
895
- readonly uniqueItems: true;
896
- };
897
- readonly success_policy: {
898
- readonly type: "string";
899
- readonly const: "all_required_cases_first_attempt";
931
+ readonly aliases: {
932
+ readonly type: "array";
933
+ readonly items: {
934
+ readonly type: "string";
935
+ readonly minLength: 1;
936
+ };
937
+ };
938
+ readonly source_file: {
939
+ readonly type: "string";
940
+ readonly minLength: 1;
941
+ };
942
+ readonly line: {
943
+ readonly type: "integer";
944
+ readonly minimum: 1;
945
+ };
900
946
  };
947
+ readonly additionalProperties: false;
901
948
  };
902
- readonly additionalProperties: false;
903
949
  };
904
- readonly verification_receipts: {
950
+ readonly proof_receipts: {
905
951
  readonly type: "array";
906
952
  readonly maxItems: 50;
907
953
  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
- };
954
+ readonly type: "object";
955
+ readonly description: "Kibi-derived kibi.proof-receipt.v1. Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.";
956
+ 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"];
957
+ readonly properties: {
958
+ readonly version: {
959
+ readonly type: "string";
960
+ readonly const: "kibi.proof-receipt.v1";
960
961
  };
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";
962
+ readonly receipt_id: {
963
+ readonly type: "string";
964
+ readonly pattern: "^PR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
965
+ };
966
+ readonly test_id: {
967
+ readonly type: "string";
968
+ readonly minLength: 1;
969
+ };
970
+ readonly scope: {
971
+ readonly type: "string";
972
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
973
+ };
974
+ readonly outcome: {
975
+ readonly type: "string";
976
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
977
+ };
978
+ readonly code_snapshot: {
979
+ readonly type: "string";
980
+ readonly pattern: "^[a-f0-9]{64}$";
981
+ };
982
+ readonly environment_hash: {
983
+ readonly type: "string";
984
+ readonly pattern: "^[a-f0-9]{64}$";
985
+ };
986
+ readonly started_at: {
987
+ readonly type: "string";
988
+ readonly minLength: 1;
989
+ };
990
+ readonly finished_at: {
991
+ readonly type: "string";
992
+ readonly minLength: 1;
993
+ };
994
+ readonly artifact_digest: {
995
+ readonly type: "string";
996
+ readonly pattern: "^[a-f0-9]{64}$";
997
+ };
998
+ readonly contract_hash: {
999
+ readonly type: "string";
1000
+ readonly pattern: "^[a-f0-9]{64}$";
1001
+ };
1002
+ readonly binding_hash: {
1003
+ readonly type: "string";
1004
+ readonly pattern: "^[a-f0-9]{64}$";
1005
+ };
1006
+ readonly fingerprint: {
1007
+ readonly type: "string";
1008
+ readonly pattern: "^[a-f0-9]{64}$";
1009
+ };
1010
+ readonly fingerprint_components: {
1011
+ readonly type: "object";
1012
+ readonly required: readonly ["contract", "integration", "command", "bindings", "producer"];
1013
+ readonly additionalProperties: false;
1014
+ readonly properties: {
1015
+ readonly contract: {
1016
+ readonly type: "string";
1017
+ readonly pattern: "^[a-f0-9]{64}$";
1018
+ };
1019
+ readonly integration: {
1020
+ readonly type: "string";
1021
+ readonly pattern: "^[a-f0-9]{64}$";
1022
+ };
1023
+ readonly command: {
1024
+ readonly type: "string";
1025
+ readonly pattern: "^[a-f0-9]{64}$";
1026
+ };
1027
+ readonly bindings: {
1028
+ readonly type: "string";
1029
+ readonly pattern: "^[a-f0-9]{64}$";
1030
+ };
1031
+ readonly producer: {
1032
+ readonly type: "string";
1033
+ readonly pattern: "^[a-f0-9]{64}$";
1034
+ };
968
1035
  };
969
- readonly command_argv: {
970
- readonly type: "array";
971
- readonly minItems: 1;
972
- readonly items: {
1036
+ };
1037
+ readonly integration_id: {
1038
+ readonly type: "string";
1039
+ readonly minLength: 1;
1040
+ };
1041
+ readonly producer: {
1042
+ readonly type: "object";
1043
+ readonly required: readonly ["name"];
1044
+ readonly properties: {
1045
+ readonly name: {
973
1046
  readonly type: "string";
974
1047
  readonly minLength: 1;
975
1048
  };
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;
1049
+ readonly version: {
1050
+ readonly type: "string";
1051
+ readonly minLength: 1;
1011
1052
  };
1012
1053
  };
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: {
1054
+ readonly additionalProperties: false;
1055
+ };
1056
+ readonly command_argv: {
1057
+ readonly type: "array";
1058
+ readonly minItems: 1;
1059
+ readonly items: {
1046
1060
  readonly type: "string";
1047
1061
  readonly minLength: 1;
1048
1062
  };
1049
- readonly finished_at: {
1050
- readonly type: "string";
1051
- readonly minLength: 1;
1063
+ };
1064
+ readonly run_outcome: {
1065
+ readonly type: "string";
1066
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "timed_out", "interrupted", "no_results"];
1067
+ };
1068
+ readonly proof_results: {
1069
+ readonly type: "array";
1070
+ readonly minItems: 0;
1071
+ readonly maxItems: 1000;
1072
+ readonly items: {
1073
+ readonly type: "object";
1074
+ readonly required: readonly ["symbol_id", "target", "outcome", "binding", "attempts"];
1075
+ readonly properties: {
1076
+ readonly symbol_id: {
1077
+ readonly type: "string";
1078
+ readonly minLength: 1;
1079
+ };
1080
+ readonly target: {
1081
+ readonly type: "string";
1082
+ readonly minLength: 1;
1083
+ };
1084
+ readonly outcome: {
1085
+ readonly type: "string";
1086
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1087
+ };
1088
+ readonly binding: {
1089
+ readonly type: "string";
1090
+ readonly enum: readonly ["native_case", "aggregate_run"];
1091
+ };
1092
+ readonly native_id: {
1093
+ readonly type: "string";
1094
+ readonly minLength: 1;
1095
+ };
1096
+ readonly attempts: {
1097
+ readonly oneOf: readonly [{
1098
+ readonly type: "object";
1099
+ readonly required: readonly ["status", "entries"];
1100
+ readonly properties: {
1101
+ readonly status: {
1102
+ readonly type: "string";
1103
+ readonly const: "complete";
1104
+ };
1105
+ readonly entries: {
1106
+ readonly type: "array";
1107
+ readonly minItems: 1;
1108
+ readonly items: {
1109
+ readonly type: "object";
1110
+ readonly required: readonly ["outcome"];
1111
+ readonly properties: {
1112
+ readonly outcome: {
1113
+ readonly type: "string";
1114
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1115
+ };
1116
+ readonly duration_ms: {
1117
+ readonly type: "number";
1118
+ readonly minimum: 0;
1119
+ };
1120
+ };
1121
+ readonly additionalProperties: false;
1122
+ };
1123
+ };
1124
+ };
1125
+ readonly additionalProperties: false;
1126
+ }, {
1127
+ readonly type: "object";
1128
+ readonly required: readonly ["status"];
1129
+ readonly properties: {
1130
+ readonly status: {
1131
+ readonly type: "string";
1132
+ readonly const: "unavailable";
1133
+ };
1134
+ };
1135
+ readonly additionalProperties: false;
1136
+ }];
1137
+ };
1138
+ };
1139
+ readonly additionalProperties: false;
1052
1140
  };
1053
- readonly artifact_digest: {
1054
- readonly type: "string";
1055
- readonly pattern: "^[a-f0-9]{64}$";
1141
+ };
1142
+ readonly gaps: {
1143
+ readonly type: "array";
1144
+ readonly items: {
1145
+ readonly type: "object";
1146
+ readonly required: readonly ["symbol_id", "target", "reason"];
1147
+ readonly properties: {
1148
+ readonly symbol_id: {
1149
+ readonly type: "string";
1150
+ readonly minLength: 1;
1151
+ };
1152
+ readonly target: {
1153
+ readonly type: "string";
1154
+ readonly minLength: 1;
1155
+ };
1156
+ readonly reason: {
1157
+ readonly type: "string";
1158
+ readonly minLength: 1;
1159
+ };
1160
+ };
1161
+ readonly additionalProperties: false;
1056
1162
  };
1057
1163
  };
1058
- readonly type: "object";
1059
- readonly additionalProperties: false;
1060
- }];
1164
+ };
1165
+ readonly additionalProperties: false;
1061
1166
  };
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.";
1167
+ 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.";
1063
1168
  };
1064
1169
  readonly fact_kind: {
1065
1170
  readonly type: "string";
@@ -1223,7 +1328,7 @@ export declare const OPERATION_CATALOG: readonly [{
1223
1328
  };
1224
1329
  readonly allOf: readonly [Record<string, unknown>, {
1225
1330
  readonly if: {
1226
- readonly required: readonly ["verification_receipts"];
1331
+ readonly required: readonly ["proof_receipts"];
1227
1332
  };
1228
1333
  readonly then: {
1229
1334
  readonly required: readonly ["verification_scope"];
@@ -1344,9 +1449,9 @@ export declare const OPERATION_CATALOG: readonly [{
1344
1449
  readonly type: "array";
1345
1450
  readonly items: {
1346
1451
  readonly type: "string";
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"];
1452
+ readonly enum: readonly string[];
1348
1453
  };
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.";
1454
+ 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, proof-contract-symbols. 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.";
1350
1455
  };
1351
1456
  readonly sourceFiles: {
1352
1457
  readonly type: "array";
@@ -1376,6 +1481,11 @@ export declare const OPERATION_CATALOG: readonly [{
1376
1481
  readonly type: "string";
1377
1482
  readonly description: "Optional workspace root for impact diagnostics. Defaults to the MCP server workspace.";
1378
1483
  };
1484
+ readonly async: {
1485
+ readonly type: "boolean";
1486
+ readonly default: false;
1487
+ 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.";
1488
+ };
1379
1489
  };
1380
1490
  };
1381
1491
  readonly requiresProlog: true;
@@ -1580,6 +1690,15 @@ export declare const OPERATION_CATALOG: readonly [{
1580
1690
  readonly type: "string";
1581
1691
  readonly minLength: 1;
1582
1692
  };
1693
+ readonly scenarioIds: {
1694
+ readonly type: "array";
1695
+ readonly items: {
1696
+ readonly type: "string";
1697
+ readonly minLength: 1;
1698
+ };
1699
+ readonly maxItems: 20;
1700
+ readonly description: "Stable scenario draft IDs verified by this test. Required when multiple scenario drafts are supplied.";
1701
+ };
1583
1702
  readonly verificationScope: {
1584
1703
  readonly type: "string";
1585
1704
  readonly enum: readonly ["unit", "integration", "end_to_end"];
@@ -1667,34 +1786,56 @@ export declare const OPERATION_CATALOG: readonly [{
1667
1786
  readonly effects: readonly ["kb-read", "kb-write", "workspace-read", "workspace-write"];
1668
1787
  readonly execute: typeof import("./index.js").executeApplyPlan;
1669
1788
  }, {
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.";
1789
+ readonly name: "kb_ingest_proof";
1790
+ readonly cliName: "ingest-proof";
1791
+ 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.";
1673
1792
  readonly businessInputSchema: {
1674
1793
  readonly type: "object";
1675
- readonly required: readonly ["testId", "snapshot", "artifact"];
1794
+ readonly required: readonly ["snapshot", "artifact"];
1676
1795
  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
1796
  readonly snapshot: {
1683
1797
  readonly type: "string";
1684
1798
  readonly pattern: "^[a-f0-9]{64}$";
1685
- readonly description: "Workspace verification snapshot captured immediately before the run.";
1799
+ readonly description: "Workspace snapshot captured immediately before the run.";
1686
1800
  };
1687
1801
  readonly artifact: {
1688
1802
  readonly type: "object";
1689
- readonly required: readonly ["version", "runner", "command_argv", "code_snapshot", "environment_hash", "started_at", "finished_at", "process_exit_code", "cases"];
1803
+ 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.";
1804
+ readonly required: readonly ["version", "producer", "command_argv", "code_snapshot", "environment", "run", "proof_results"];
1690
1805
  readonly properties: {
1691
1806
  readonly version: {
1692
1807
  readonly type: "string";
1693
- readonly const: "kibi.playwright-run.v1";
1808
+ readonly const: "kibi.proof-run.v1";
1694
1809
  };
1695
- readonly runner: {
1696
- readonly type: "string";
1697
- readonly minLength: 1;
1810
+ readonly producer: {
1811
+ readonly type: "object";
1812
+ readonly required: readonly ["name"];
1813
+ readonly properties: {
1814
+ readonly name: {
1815
+ readonly type: "string";
1816
+ readonly minLength: 1;
1817
+ };
1818
+ readonly version: {
1819
+ readonly type: "string";
1820
+ readonly minLength: 1;
1821
+ };
1822
+ };
1823
+ readonly additionalProperties: false;
1824
+ };
1825
+ readonly executor: {
1826
+ readonly type: "object";
1827
+ readonly required: readonly ["name"];
1828
+ readonly properties: {
1829
+ readonly name: {
1830
+ readonly type: "string";
1831
+ readonly minLength: 1;
1832
+ };
1833
+ readonly version: {
1834
+ readonly type: "string";
1835
+ readonly minLength: 1;
1836
+ };
1837
+ };
1838
+ readonly additionalProperties: false;
1698
1839
  };
1699
1840
  readonly command_argv: {
1700
1841
  readonly type: "array";
@@ -1708,39 +1849,152 @@ export declare const OPERATION_CATALOG: readonly [{
1708
1849
  readonly type: "string";
1709
1850
  readonly pattern: "^[a-f0-9]{64}$";
1710
1851
  };
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;
1852
+ readonly environment: {
1853
+ readonly type: "object";
1854
+ readonly additionalProperties: true;
1722
1855
  };
1723
- readonly process_exit_code: {
1724
- readonly type: "integer";
1856
+ readonly run: {
1857
+ readonly type: "object";
1858
+ readonly required: readonly ["outcome", "exit_code", "started_at", "finished_at"];
1859
+ readonly properties: {
1860
+ readonly outcome: {
1861
+ readonly type: "string";
1862
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "timed_out", "interrupted", "no_results"];
1863
+ };
1864
+ readonly exit_code: {
1865
+ readonly type: "integer";
1866
+ };
1867
+ readonly started_at: {
1868
+ readonly type: "string";
1869
+ readonly minLength: 1;
1870
+ };
1871
+ readonly finished_at: {
1872
+ readonly type: "string";
1873
+ readonly minLength: 1;
1874
+ };
1875
+ readonly failure_phase: {
1876
+ readonly type: "string";
1877
+ readonly enum: readonly ["setup", "collection", "execution", "teardown", "infrastructure"];
1878
+ };
1879
+ };
1880
+ readonly additionalProperties: false;
1725
1881
  };
1726
- readonly cases: {
1882
+ readonly proof_results: {
1727
1883
  readonly type: "array";
1728
1884
  readonly minItems: 1;
1729
1885
  readonly maxItems: 1000;
1730
1886
  readonly items: {
1731
1887
  readonly type: "object";
1888
+ readonly description: "One observed proof result. binding distinguishes native-case observations from aggregate-run bindings; attempts must report facts only.";
1889
+ readonly required: readonly ["symbol_id", "target", "outcome", "binding", "attempts"];
1890
+ readonly properties: {
1891
+ readonly symbol_id: {
1892
+ readonly type: "string";
1893
+ readonly minLength: 1;
1894
+ readonly description: "Stable proof symbol ID (SYM-*).";
1895
+ };
1896
+ readonly target: {
1897
+ readonly type: "string";
1898
+ readonly minLength: 1;
1899
+ readonly description: "Ecosystem-neutral execution target (browser, runtime, database, device, deployment, or default).";
1900
+ };
1901
+ readonly outcome: {
1902
+ readonly type: "string";
1903
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1904
+ };
1905
+ readonly binding: {
1906
+ readonly type: "string";
1907
+ readonly enum: readonly ["native_case", "aggregate_run"];
1908
+ };
1909
+ readonly native_id: {
1910
+ readonly type: "string";
1911
+ readonly minLength: 1;
1912
+ };
1913
+ readonly attempts: {
1914
+ readonly oneOf: readonly [{
1915
+ readonly type: "object";
1916
+ readonly required: readonly ["status", "entries"];
1917
+ readonly properties: {
1918
+ readonly status: {
1919
+ readonly type: "string";
1920
+ readonly const: "complete";
1921
+ };
1922
+ readonly entries: {
1923
+ readonly type: "array";
1924
+ readonly minItems: 1;
1925
+ readonly maxItems: 100;
1926
+ readonly items: {
1927
+ readonly type: "object";
1928
+ readonly required: readonly ["outcome"];
1929
+ readonly properties: {
1930
+ readonly outcome: {
1931
+ readonly type: "string";
1932
+ readonly enum: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
1933
+ };
1934
+ readonly duration_ms: {
1935
+ readonly type: "number";
1936
+ readonly minimum: 0;
1937
+ };
1938
+ };
1939
+ readonly additionalProperties: false;
1940
+ };
1941
+ };
1942
+ };
1943
+ readonly additionalProperties: false;
1944
+ }, {
1945
+ readonly type: "object";
1946
+ readonly required: readonly ["status"];
1947
+ readonly properties: {
1948
+ readonly status: {
1949
+ readonly type: "string";
1950
+ readonly const: "unavailable";
1951
+ };
1952
+ };
1953
+ readonly additionalProperties: false;
1954
+ }];
1955
+ };
1956
+ readonly diagnostics: {
1957
+ readonly type: "array";
1958
+ readonly items: {
1959
+ readonly type: "string";
1960
+ readonly minLength: 1;
1961
+ };
1962
+ };
1963
+ };
1964
+ readonly additionalProperties: false;
1732
1965
  };
1733
1966
  };
1967
+ readonly integration: {
1968
+ readonly type: "string";
1969
+ readonly minLength: 1;
1970
+ };
1971
+ readonly diagnostics: {
1972
+ readonly type: "array";
1973
+ readonly items: {
1974
+ readonly type: "string";
1975
+ readonly minLength: 1;
1976
+ };
1977
+ };
1978
+ };
1979
+ readonly additionalProperties: false;
1980
+ };
1981
+ readonly testIds: {
1982
+ readonly type: "array";
1983
+ readonly minItems: 1;
1984
+ readonly items: {
1985
+ readonly type: "string";
1986
+ readonly minLength: 1;
1734
1987
  };
1735
- readonly additionalProperties: true;
1988
+ readonly description: "Existing test entities with proof_contract.v1. Omit to evaluate every test contracted to the artifact's integration.";
1736
1989
  };
1737
1990
  };
1738
1991
  };
1739
1992
  readonly requiresProlog: true;
1740
1993
  readonly effects: readonly ["kb-read", "kb-write", "workspace-read"];
1741
- readonly execute: typeof import("./index.js").executeIngestVerification;
1994
+ readonly execute: typeof import("./index.js").executeIngestProof;
1742
1995
  }];
1743
1996
  export declare function withContractDefaults(spec: OperationSpec): ResolvedOperationSpec;
1997
+ export declare function requireKnownSpec(spec: ResolvedOperationSpec | undefined, name: OperationName): ResolvedOperationSpec;
1744
1998
  export declare function getSpec(name: OperationName): ResolvedOperationSpec;
1745
1999
  export declare function listSpecs(): readonly ResolvedOperationSpec[];
1746
2000
  //# sourceMappingURL=catalog.d.ts.map