kibi-cli 1.0.1 → 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 (450) 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 +103 -0
  17. package/dist/cli-register-reporting.d.ts.map +1 -1
  18. package/dist/cli-register-reporting.js +1 -0
  19. package/dist/cli.d.ts +4 -0
  20. package/dist/cli.d.ts.map +1 -1
  21. package/dist/cli.js +17 -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.d.ts +14 -0
  26. package/dist/commands/check.d.ts.map +1 -1
  27. package/dist/commands/check.js +190 -44
  28. package/dist/commands/coverage.d.ts +1 -0
  29. package/dist/commands/coverage.d.ts.map +1 -1
  30. package/dist/commands/coverage.js +6 -0
  31. package/dist/commands/doctor.d.ts +22 -0
  32. package/dist/commands/doctor.d.ts.map +1 -1
  33. package/dist/commands/doctor.js +48 -22
  34. package/dist/commands/engine.d.ts +12 -0
  35. package/dist/commands/engine.d.ts.map +1 -1
  36. package/dist/commands/engine.js +40 -0
  37. package/dist/commands/github-init.d.ts +1 -0
  38. package/dist/commands/github-init.d.ts.map +1 -1
  39. package/dist/commands/github-init.js +9 -5
  40. package/dist/commands/init-helpers.d.ts.map +1 -1
  41. package/dist/commands/init-helpers.js +38 -5
  42. package/dist/commands/migrate.d.ts +4 -0
  43. package/dist/commands/migrate.d.ts.map +1 -1
  44. package/dist/commands/migrate.js +7 -7
  45. package/dist/commands/proof-migrate-legacy.d.ts +7 -0
  46. package/dist/commands/proof-migrate-legacy.d.ts.map +1 -0
  47. package/dist/commands/proof-migrate-legacy.js +45 -0
  48. package/dist/commands/proof-prune.d.ts +8 -0
  49. package/dist/commands/proof-prune.d.ts.map +1 -0
  50. package/dist/commands/proof-prune.js +53 -0
  51. package/dist/commands/prove.d.ts +37 -0
  52. package/dist/commands/prove.d.ts.map +1 -0
  53. package/dist/commands/prove.js +470 -0
  54. package/dist/commands/report.js +1 -1
  55. package/dist/commands/sync/discovery.d.ts +3 -0
  56. package/dist/commands/sync/discovery.d.ts.map +1 -1
  57. package/dist/commands/sync/discovery.js +36 -28
  58. package/dist/commands/sync/manifest.d.ts +1 -1
  59. package/dist/commands/sync/manifest.d.ts.map +1 -1
  60. package/dist/commands/sync/manifest.js +53 -21
  61. package/dist/commands/sync/persistence.d.ts +4 -1
  62. package/dist/commands/sync/persistence.d.ts.map +1 -1
  63. package/dist/commands/sync/persistence.js +25 -14
  64. package/dist/commands/sync/staging.d.ts +1 -0
  65. package/dist/commands/sync/staging.d.ts.map +1 -1
  66. package/dist/commands/sync/staging.js +5 -2
  67. package/dist/commands/sync/untracked-targets.d.ts +24 -0
  68. package/dist/commands/sync/untracked-targets.d.ts.map +1 -0
  69. package/dist/commands/sync/untracked-targets.js +108 -0
  70. package/dist/commands/sync.d.ts +11 -1
  71. package/dist/commands/sync.d.ts.map +1 -1
  72. package/dist/commands/sync.js +74 -30
  73. package/dist/engine-daemon.d.ts +3 -1
  74. package/dist/engine-daemon.d.ts.map +1 -1
  75. package/dist/engine-daemon.js +49 -20
  76. package/dist/engine.d.ts +14 -76
  77. package/dist/engine.d.ts.map +1 -1
  78. package/dist/engine.js +197 -30
  79. package/dist/extractors/manifest.d.ts +5 -0
  80. package/dist/extractors/manifest.d.ts.map +1 -1
  81. package/dist/extractors/manifest.js +46 -1
  82. package/dist/extractors/markdown.d.ts +5 -3
  83. package/dist/extractors/markdown.d.ts.map +1 -1
  84. package/dist/extractors/markdown.js +41 -24
  85. package/dist/extractors/playwright-cases.js +1 -1
  86. package/dist/extractors/relationships.d.ts +6 -0
  87. package/dist/extractors/relationships.d.ts.map +1 -1
  88. package/dist/extractors/relationships.js +1 -1
  89. package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
  90. package/dist/extractors/symbols-ts.d.ts +1 -0
  91. package/dist/extractors/symbols-ts.d.ts.map +1 -1
  92. package/dist/extractors/symbols-ts.js +142 -67
  93. package/dist/intent-search.d.ts +1 -0
  94. package/dist/intent-search.d.ts.map +1 -1
  95. package/dist/intent-search.js +7 -3
  96. package/dist/logic/ir.d.ts +1 -0
  97. package/dist/logic/ir.d.ts.map +1 -1
  98. package/dist/logic/ir.js +1 -1
  99. package/dist/operations/bootstrap/activation.d.ts +2 -1
  100. package/dist/operations/bootstrap/activation.d.ts.map +1 -1
  101. package/dist/operations/bootstrap/activation.js +11 -3
  102. package/dist/operations/bootstrap/generate.d.ts +2 -1
  103. package/dist/operations/bootstrap/generate.d.ts.map +1 -1
  104. package/dist/operations/bootstrap/generate.js +6 -3
  105. package/dist/operations/bootstrap/guidance.d.ts +1 -0
  106. package/dist/operations/bootstrap/guidance.d.ts.map +1 -1
  107. package/dist/operations/bootstrap/guidance.js +1 -1
  108. package/dist/operations/modeling/model-requirement.d.ts +5 -0
  109. package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
  110. package/dist/operations/modeling/model-requirement.js +53 -46
  111. package/dist/operations/modeling/predicate-applicability.d.ts.map +1 -1
  112. package/dist/operations/modeling/predicate-applicability.js +103 -4
  113. package/dist/operations/modeling/predicate-catalog-2.d.ts.map +1 -1
  114. package/dist/operations/modeling/predicate-catalog-2.js +18 -2
  115. package/dist/operations/modeling/predicate-catalog-3.d.ts.map +1 -1
  116. package/dist/operations/modeling/predicate-catalog-3.js +17 -1
  117. package/dist/operations/modeling/predicate-catalog-5.d.ts +10 -0
  118. package/dist/operations/modeling/predicate-catalog-5.d.ts.map +1 -0
  119. package/dist/operations/modeling/predicate-catalog-5.js +291 -0
  120. package/dist/operations/modeling/predicate-catalog.d.ts.map +1 -1
  121. package/dist/operations/modeling/predicate-catalog.js +4 -0
  122. package/dist/operations/modeling/predicate-loader.d.ts +1 -0
  123. package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
  124. package/dist/operations/modeling/predicate-loader.js +4 -3
  125. package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -1
  126. package/dist/operations/modeling/predicate-ranker.js +4 -1
  127. package/dist/operations/modeling/predicate-types.d.ts +1 -1
  128. package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
  129. package/dist/operations/modeling/predicate-usage-hints-4.d.ts +3 -0
  130. package/dist/operations/modeling/predicate-usage-hints-4.d.ts.map +1 -0
  131. package/dist/operations/modeling/predicate-usage-hints-4.js +84 -0
  132. package/dist/operations/modeling/suggest-predicates.d.ts +3 -1
  133. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
  134. package/dist/operations/modeling/suggest-predicates.js +52 -19
  135. package/dist/operations/mutation/contradictions.d.ts +2 -1
  136. package/dist/operations/mutation/contradictions.d.ts.map +1 -1
  137. package/dist/operations/mutation/contradictions.js +26 -5
  138. package/dist/operations/mutation/delete.d.ts +3 -0
  139. package/dist/operations/mutation/delete.d.ts.map +1 -1
  140. package/dist/operations/mutation/delete.js +100 -32
  141. package/dist/operations/mutation/relationships.d.ts +1 -0
  142. package/dist/operations/mutation/relationships.d.ts.map +1 -1
  143. package/dist/operations/mutation/relationships.js +6 -4
  144. package/dist/operations/mutation/saga.d.ts +51 -0
  145. package/dist/operations/mutation/saga.d.ts.map +1 -0
  146. package/dist/operations/mutation/saga.js +67 -0
  147. package/dist/operations/mutation/serialization.d.ts.map +1 -1
  148. package/dist/operations/mutation/serialization.js +3 -2
  149. package/dist/operations/mutation/source-authoring.d.ts +5 -1
  150. package/dist/operations/mutation/source-authoring.d.ts.map +1 -1
  151. package/dist/operations/mutation/source-authoring.js +79 -46
  152. package/dist/operations/mutation/strict-fact.d.ts +1 -0
  153. package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
  154. package/dist/operations/mutation/strict-fact.js +8 -5
  155. package/dist/operations/mutation/symbol-compiler-lock.d.ts +5 -2
  156. package/dist/operations/mutation/symbol-compiler-lock.d.ts.map +1 -1
  157. package/dist/operations/mutation/symbol-compiler-lock.js +65 -2
  158. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
  159. package/dist/operations/mutation/symbol-granularity.js +2 -2
  160. package/dist/operations/mutation/symbol-refresh.d.ts +1 -0
  161. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
  162. package/dist/operations/mutation/symbol-refresh.js +10 -8
  163. package/dist/operations/mutation/upsert.d.ts +18 -2
  164. package/dist/operations/mutation/upsert.d.ts.map +1 -1
  165. package/dist/operations/mutation/upsert.js +86 -54
  166. package/dist/operations/mutation/validate-upsert.js +2 -2
  167. package/dist/operations/mutation/validation.d.ts.map +1 -1
  168. package/dist/operations/mutation/validation.js +46 -4
  169. package/dist/operations/mutation/warnings.d.ts +1 -0
  170. package/dist/operations/mutation/warnings.d.ts.map +1 -1
  171. package/dist/operations/mutation/warnings.js +7 -5
  172. package/dist/operations/mutation/workspace-mutation-lock.d.ts +60 -0
  173. package/dist/operations/mutation/workspace-mutation-lock.d.ts.map +1 -0
  174. package/dist/operations/mutation/workspace-mutation-lock.js +362 -0
  175. package/dist/operations/planning/apply-plan.d.ts +8 -106
  176. package/dist/operations/planning/apply-plan.d.ts.map +1 -1
  177. package/dist/operations/planning/apply-plan.js +113 -36
  178. package/dist/operations/planning/compile-intent.d.ts +2 -0
  179. package/dist/operations/planning/compile-intent.d.ts.map +1 -1
  180. package/dist/operations/planning/compile-intent.js +70 -14
  181. package/dist/operations/proof/ingest-proof.d.ts +34 -0
  182. package/dist/operations/proof/ingest-proof.d.ts.map +1 -0
  183. package/dist/operations/proof/ingest-proof.js +307 -0
  184. package/dist/operations/proof/migrate-legacy-receipts.d.ts +30 -0
  185. package/dist/operations/proof/migrate-legacy-receipts.d.ts.map +1 -0
  186. package/dist/operations/proof/migrate-legacy-receipts.js +88 -0
  187. package/dist/operations/proof/prune-receipts.d.ts +35 -0
  188. package/dist/operations/proof/prune-receipts.d.ts.map +1 -0
  189. package/dist/operations/proof/prune-receipts.js +91 -0
  190. package/dist/operations/proof/receipt-document.d.ts +29 -0
  191. package/dist/operations/proof/receipt-document.d.ts.map +1 -0
  192. package/dist/operations/proof/receipt-document.js +117 -0
  193. package/dist/operations/semantic-advisor/analyze-prose.d.ts +1 -0
  194. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
  195. package/dist/operations/semantic-advisor/analyze-prose.js +46 -26
  196. package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
  197. package/dist/operations/semantic-advisor/clauses.js +20 -7
  198. package/dist/operations/semantic-advisor/strict-count-rules.d.ts +2 -0
  199. package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -1
  200. package/dist/operations/semantic-advisor/strict-count-rules.js +40 -25
  201. package/dist/prolog/codec.d.ts +13 -1
  202. package/dist/prolog/codec.d.ts.map +1 -1
  203. package/dist/prolog/codec.js +269 -154
  204. package/dist/prolog/error-terms.d.ts +47 -0
  205. package/dist/prolog/error-terms.d.ts.map +1 -0
  206. package/dist/prolog/error-terms.js +334 -0
  207. package/dist/prolog/janitor.d.ts +50 -0
  208. package/dist/prolog/janitor.d.ts.map +1 -0
  209. package/dist/prolog/janitor.js +154 -0
  210. package/dist/prolog/store-lock.d.ts +45 -0
  211. package/dist/prolog/store-lock.d.ts.map +1 -0
  212. package/dist/prolog/store-lock.js +195 -0
  213. package/dist/prolog.d.ts +7 -0
  214. package/dist/prolog.d.ts.map +1 -1
  215. package/dist/prolog.js +55 -17
  216. package/dist/proof/evaluate.d.ts +27 -0
  217. package/dist/proof/evaluate.d.ts.map +1 -0
  218. package/dist/proof/evaluate.js +151 -0
  219. package/dist/proof/inspect.d.ts +12 -0
  220. package/dist/proof/inspect.d.ts.map +1 -0
  221. package/dist/proof/inspect.js +236 -0
  222. package/dist/proof/integrations.d.ts +35 -0
  223. package/dist/proof/integrations.d.ts.map +1 -0
  224. package/dist/proof/integrations.js +123 -0
  225. package/dist/proof/producers/junit-adapter.d.ts +26 -0
  226. package/dist/proof/producers/junit-adapter.d.ts.map +1 -0
  227. package/dist/proof/producers/junit-adapter.js +186 -0
  228. package/dist/{public → proof/producers}/playwright-case-id.d.ts +1 -1
  229. package/dist/proof/producers/playwright-case-id.d.ts.map +1 -0
  230. package/dist/{public → proof/producers}/playwright-case-id.js +3 -3
  231. package/dist/proof/producers/playwright-reporter.d.ts +27 -0
  232. package/dist/proof/producers/playwright-reporter.d.ts.map +1 -0
  233. package/dist/proof/producers/playwright-reporter.js +138 -0
  234. package/dist/proof/producers/tap-adapter.d.ts +10 -0
  235. package/dist/proof/producers/tap-adapter.d.ts.map +1 -0
  236. package/dist/proof/producers/tap-adapter.js +200 -0
  237. package/dist/proof/receipt-outcome.d.ts +2 -0
  238. package/dist/proof/receipt-outcome.d.ts.map +1 -0
  239. package/dist/proof/receipt-outcome.js +1 -0
  240. package/dist/public/diagnostic-usage.js +6 -6
  241. package/dist/public/distribution-parity.d.ts +7 -1
  242. package/dist/public/distribution-parity.d.ts.map +1 -1
  243. package/dist/public/distribution-parity.js +15 -10
  244. package/dist/public/impact/coverage-depth-quality.d.ts +1 -0
  245. package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
  246. package/dist/public/impact/coverage-depth-quality.js +1 -1
  247. package/dist/public/impact/diagnostics.d.ts.map +1 -1
  248. package/dist/public/impact/diagnostics.js +2 -2
  249. package/dist/public/impact/diff-meaning.d.ts +1 -0
  250. package/dist/public/impact/diff-meaning.d.ts.map +1 -1
  251. package/dist/public/impact/diff-meaning.js +5 -2
  252. package/dist/public/impact/full-kb-quality.d.ts +5 -2
  253. package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
  254. package/dist/public/impact/full-kb-quality.js +329 -64
  255. package/dist/public/operations/catalog.d.ts +447 -196
  256. package/dist/public/operations/catalog.d.ts.map +1 -1
  257. package/dist/public/operations/catalog.js +6 -4
  258. package/dist/public/operations/check-executor.d.ts.map +1 -1
  259. package/dist/public/operations/check-executor.js +3 -7
  260. package/dist/public/operations/contracts.d.ts +7 -0
  261. package/dist/public/operations/contracts.d.ts.map +1 -1
  262. package/dist/public/operations/contracts.js +31 -22
  263. package/dist/public/operations/discovery-entities.d.ts +3 -0
  264. package/dist/public/operations/discovery-entities.d.ts.map +1 -1
  265. package/dist/public/operations/discovery-entities.js +4 -0
  266. package/dist/public/operations/discovery-executors.d.ts +9 -9
  267. package/dist/public/operations/discovery-executors.d.ts.map +1 -1
  268. package/dist/public/operations/discovery-executors.js +17 -14
  269. package/dist/public/operations/index.d.ts +1 -1
  270. package/dist/public/operations/index.d.ts.map +1 -1
  271. package/dist/public/operations/index.js +1 -1
  272. package/dist/public/operations/migration-plan.d.ts +4 -3
  273. package/dist/public/operations/migration-plan.d.ts.map +1 -1
  274. package/dist/public/operations/migration-plan.js +23 -21
  275. package/dist/public/operations/node-ports.js +6 -6
  276. package/dist/public/operations/repair-plan.d.ts +3 -3
  277. package/dist/public/operations/repair-plan.d.ts.map +1 -1
  278. package/dist/public/operations/repair-plan.js +49 -19
  279. package/dist/public/operations/result-envelope.d.ts +1 -0
  280. package/dist/public/operations/result-envelope.d.ts.map +1 -1
  281. package/dist/public/operations/result-envelope.js +12 -10
  282. package/dist/public/operations/runtime-types.d.ts +5 -0
  283. package/dist/public/operations/runtime-types.d.ts.map +1 -1
  284. package/dist/public/operations/specs/check-rules.generated.d.ts +5 -0
  285. package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -0
  286. package/dist/public/operations/specs/check-rules.generated.js +34 -0
  287. package/dist/public/operations/specs/check.d.ts +7 -2
  288. package/dist/public/operations/specs/check.d.ts.map +1 -1
  289. package/dist/public/operations/specs/check.js +8 -20
  290. package/dist/public/operations/specs/mutation-schemas.d.ts +257 -163
  291. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
  292. package/dist/public/operations/specs/mutation-schemas.js +15 -7
  293. package/dist/public/operations/specs/planning.d.ts +9 -0
  294. package/dist/public/operations/specs/planning.d.ts.map +1 -1
  295. package/dist/public/operations/specs/planning.js +6 -0
  296. package/dist/public/operations/specs/proof.d.ts +212 -0
  297. package/dist/public/operations/specs/proof.d.ts.map +1 -0
  298. package/dist/public/operations/specs/proof.js +30 -0
  299. package/dist/public/operations/specs/reporting.d.ts +19 -0
  300. package/dist/public/operations/specs/reporting.d.ts.map +1 -1
  301. package/dist/public/operations/specs/reporting.js +112 -12
  302. package/dist/public/operations/specs/upsert.d.ts +257 -163
  303. package/dist/public/operations/specs/upsert.d.ts.map +1 -1
  304. package/dist/public/operations/symbol-repair-plan.d.ts +11 -0
  305. package/dist/public/operations/symbol-repair-plan.d.ts.map +1 -1
  306. package/dist/public/operations/symbol-repair-plan.js +118 -3
  307. package/dist/public/operations/types.d.ts +1 -1
  308. package/dist/public/operations/types.d.ts.map +1 -1
  309. package/dist/public/proof-fingerprint.d.ts +54 -0
  310. package/dist/public/proof-fingerprint.d.ts.map +1 -0
  311. package/dist/public/proof-fingerprint.js +141 -0
  312. package/dist/public/proof-protocol.d.ts +354 -0
  313. package/dist/public/proof-protocol.d.ts.map +1 -0
  314. package/dist/public/proof-protocol.js +454 -0
  315. package/dist/public/proof-receipt.d.ts +279 -0
  316. package/dist/public/proof-receipt.d.ts.map +1 -0
  317. package/dist/public/proof-receipt.js +377 -0
  318. package/dist/public/schemas/entity.d.ts.map +1 -1
  319. package/dist/public/schemas/entity.js +21 -7
  320. package/dist/public/skills/kibi-freshness/SKILL.md +1 -1
  321. package/dist/public/skills/kibi-usage/SKILL.md +41 -12
  322. package/dist/public/skills/kibi-usage/resources/operation-access.md +1 -1
  323. package/dist/public/skills/kibi-usage/resources/proof.md +105 -0
  324. package/dist/public/skills/kibi-usage/resources/workflows.md +6 -6
  325. package/dist/public/symbol-granularity.d.ts +3 -14
  326. package/dist/public/symbol-granularity.d.ts.map +1 -1
  327. package/dist/public/symbol-granularity.generated.d.ts +16 -0
  328. package/dist/public/symbol-granularity.generated.d.ts.map +1 -0
  329. package/dist/public/symbol-granularity.generated.js +20 -0
  330. package/dist/public/symbol-granularity.js +6 -47
  331. package/dist/public/telemetry-acceptance.d.ts +3 -77
  332. package/dist/public/telemetry-acceptance.d.ts.map +1 -1
  333. package/dist/public/telemetry-acceptance.js +4 -2
  334. package/dist/public/telemetry-remediation.js +1 -1
  335. package/dist/report/html-report.css +282 -0
  336. package/dist/report/html-report.d.ts +4 -2
  337. package/dist/report/html-report.d.ts.map +1 -1
  338. package/dist/report/html-report.js +37 -300
  339. package/dist/runtime/cli-runtime.d.ts +2 -0
  340. package/dist/runtime/cli-runtime.d.ts.map +1 -1
  341. package/dist/runtime/cli-runtime.js +14 -7
  342. package/dist/schemas/entity.schema.json +355 -215
  343. package/dist/search-ranking.d.ts +1 -0
  344. package/dist/search-ranking.d.ts.map +1 -1
  345. package/dist/search-ranking.js +3 -0
  346. package/dist/traceability/evidence-model.d.ts +28 -0
  347. package/dist/traceability/evidence-model.d.ts.map +1 -1
  348. package/dist/traceability/git-staged.d.ts +20 -0
  349. package/dist/traceability/git-staged.d.ts.map +1 -1
  350. package/dist/traceability/git-staged.js +145 -1
  351. package/dist/traceability/staged-diagnostics.d.ts +7 -0
  352. package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
  353. package/dist/traceability/staged-diagnostics.js +78 -7
  354. package/dist/traceability/staged-file-coverage.d.ts +33 -0
  355. package/dist/traceability/staged-file-coverage.d.ts.map +1 -0
  356. package/dist/traceability/staged-file-coverage.js +284 -0
  357. package/dist/traceability/staged-impact-contract.js +4 -4
  358. package/dist/traceability/staged-symbols-manifest.d.ts +13 -0
  359. package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
  360. package/dist/traceability/staged-symbols-manifest.js +138 -27
  361. package/dist/traceability/symbol-extract.d.ts +5 -0
  362. package/dist/traceability/symbol-extract.d.ts.map +1 -1
  363. package/dist/traceability/symbol-extract.js +1 -1
  364. package/dist/traceability/temp-kb.d.ts +2 -0
  365. package/dist/traceability/temp-kb.d.ts.map +1 -1
  366. package/dist/traceability/temp-kb.js +13 -4
  367. package/dist/types/entities.d.ts +5 -3
  368. package/dist/types/entities.d.ts.map +1 -1
  369. package/dist/utils/branch-resolver.d.ts +1 -0
  370. package/dist/utils/branch-resolver.d.ts.map +1 -1
  371. package/dist/utils/branch-resolver.js +7 -4
  372. package/dist/utils/branch-store.d.ts +6 -0
  373. package/dist/utils/branch-store.d.ts.map +1 -1
  374. package/dist/utils/branch-store.js +27 -0
  375. package/dist/utils/kb-paths.d.ts +1 -1
  376. package/dist/utils/kb-paths.d.ts.map +1 -1
  377. package/dist/utils/kb-paths.js +1 -1
  378. package/dist/utils/rule-registry.d.ts +1 -11
  379. package/dist/utils/rule-registry.d.ts.map +1 -1
  380. package/dist/utils/rule-registry.generated.d.ts +97 -0
  381. package/dist/utils/rule-registry.generated.d.ts.map +1 -0
  382. package/dist/utils/rule-registry.generated.js +125 -0
  383. package/dist/utils/rule-registry.js +12 -113
  384. package/dist/utils/strict-modeling.d.ts +1 -0
  385. package/dist/utils/strict-modeling.d.ts.map +1 -1
  386. package/dist/utils/strict-modeling.js +1 -1
  387. package/package.json +8 -11
  388. package/src/public/diagnostic-usage.ts +6 -6
  389. package/src/public/distribution-parity.ts +17 -10
  390. package/src/public/impact/coverage-depth-quality.ts +1 -1
  391. package/src/public/impact/diagnostics.ts +2 -1
  392. package/src/public/impact/diff-meaning.ts +11 -4
  393. package/src/public/impact/full-kb-quality.ts +463 -72
  394. package/src/public/operations/catalog.ts +10 -4
  395. package/src/public/operations/check-executor.ts +3 -7
  396. package/src/public/operations/contracts.ts +38 -22
  397. package/src/public/operations/discovery-entities.ts +7 -0
  398. package/src/public/operations/discovery-executors.ts +26 -23
  399. package/src/public/operations/index.ts +1 -1
  400. package/src/public/operations/migration-plan.ts +32 -25
  401. package/src/public/operations/node-ports.ts +6 -6
  402. package/src/public/operations/repair-plan.ts +60 -23
  403. package/src/public/operations/result-envelope.ts +15 -10
  404. package/src/public/operations/runtime-types.ts +5 -0
  405. package/src/public/operations/specs/check-rules.generated.ts +37 -0
  406. package/src/public/operations/specs/check.ts +12 -21
  407. package/src/public/operations/specs/mutation-schemas.ts +22 -9
  408. package/src/public/operations/specs/planning.ts +7 -0
  409. package/src/public/operations/specs/proof.ts +43 -0
  410. package/src/public/operations/specs/reporting.ts +140 -13
  411. package/src/public/operations/symbol-repair-plan.ts +163 -3
  412. package/src/public/operations/types.ts +1 -1
  413. package/src/public/proof-fingerprint.ts +216 -0
  414. package/src/public/proof-protocol-types.d.ts +96 -0
  415. package/src/public/proof-protocol.ts +589 -0
  416. package/src/public/proof-receipt.ts +499 -0
  417. package/src/public/schemas/entity.ts +26 -10
  418. package/src/public/skills/kibi-freshness/SKILL.md +1 -1
  419. package/src/public/skills/kibi-usage/SKILL.md +41 -12
  420. package/src/public/skills/kibi-usage/resources/operation-access.md +1 -1
  421. package/src/public/skills/kibi-usage/resources/proof.md +105 -0
  422. package/src/public/skills/kibi-usage/resources/workflows.md +6 -6
  423. package/src/public/symbol-granularity.generated.ts +41 -0
  424. package/src/public/symbol-granularity.ts +35 -60
  425. package/src/public/telemetry-acceptance-types.d.ts +98 -0
  426. package/src/public/telemetry-acceptance.ts +22 -100
  427. package/src/public/telemetry-remediation.ts +1 -1
  428. package/src/schemas/entity.schema.json +355 -215
  429. package/dist/cli-register-verification.d.ts +0 -3
  430. package/dist/cli-register-verification.d.ts.map +0 -1
  431. package/dist/cli-register-verification.js +0 -16
  432. package/dist/commands/verify.d.ts +0 -10
  433. package/dist/commands/verify.d.ts.map +0 -1
  434. package/dist/commands/verify.js +0 -126
  435. package/dist/operations/verification/ingest-verification.d.ts +0 -29
  436. package/dist/operations/verification/ingest-verification.d.ts.map +0 -1
  437. package/dist/operations/verification/ingest-verification.js +0 -192
  438. package/dist/public/operations/specs/verification.d.ts +0 -78
  439. package/dist/public/operations/specs/verification.d.ts.map +0 -1
  440. package/dist/public/operations/specs/verification.js +0 -62
  441. package/dist/public/playwright-case-id.d.ts.map +0 -1
  442. package/dist/public/verification-receipt.d.ts +0 -242
  443. package/dist/public/verification-receipt.d.ts.map +0 -1
  444. package/dist/public/verification-receipt.js +0 -296
  445. package/dist/verification/playwright-reporter.d.ts +0 -21
  446. package/dist/verification/playwright-reporter.d.ts.map +0 -1
  447. package/dist/verification/playwright-reporter.js +0 -114
  448. package/src/public/operations/specs/verification.ts +0 -78
  449. package/src/public/playwright-case-id.ts +0 -35
  450. package/src/public/verification-receipt.ts +0 -412
@@ -298,6 +298,14 @@ export declare const OPERATION_CATALOG: readonly [{
298
298
  readonly type: "boolean";
299
299
  readonly default: false;
300
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
+ };
301
309
  readonly includeTransitive: {
302
310
  readonly type: "boolean";
303
311
  readonly default: true;
@@ -858,208 +866,302 @@ export declare const OPERATION_CATALOG: readonly [{
858
866
  readonly enum: readonly ["internal", "consumer"];
859
867
  readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
860
868
  };
861
- readonly verification_contract: {
869
+ readonly proof_contract: {
870
+ readonly description: "Semantic proof contract binding this test to explicit proof obligations executed by one configured integration.";
862
871
  readonly type: "object";
863
- readonly required: readonly ["version", "runner", "command_argv", "required_case_symbols", "required_projects", "success_policy"];
872
+ readonly required: readonly ["version", "integration", "required_proofs", "success_policy"];
864
873
  readonly properties: {
865
874
  readonly version: {
866
875
  readonly type: "string";
867
- readonly const: "kibi.verification-contract.v1";
876
+ readonly const: "kibi.proof-contract.v1";
868
877
  };
869
- readonly runner: {
878
+ readonly integration: {
870
879
  readonly type: "string";
871
880
  readonly minLength: 1;
872
881
  };
873
- readonly command_argv: {
882
+ readonly required_proofs: {
874
883
  readonly type: "array";
875
884
  readonly minItems: 1;
885
+ readonly maxItems: 1000;
876
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.";
911
+ readonly type: "array";
912
+ readonly items: {
913
+ readonly type: "object";
914
+ readonly required: readonly ["symbol_id", "target"];
915
+ readonly properties: {
916
+ readonly symbol_id: {
877
917
  readonly type: "string";
878
918
  readonly minLength: 1;
879
919
  };
880
- };
881
- readonly required_case_symbols: {
882
- readonly type: "array";
883
- readonly items: {
920
+ readonly target: {
884
921
  readonly type: "string";
885
922
  readonly minLength: 1;
886
923
  };
887
- readonly uniqueItems: true;
888
- };
889
- readonly required_projects: {
890
- readonly type: "array";
891
- readonly items: {
924
+ readonly native_id: {
892
925
  readonly type: "string";
893
926
  readonly minLength: 1;
894
927
  };
895
- readonly uniqueItems: true;
896
- };
897
- readonly success_policy: {
898
- readonly type: "string";
899
- readonly const: "all_required_cases_first_attempt";
928
+ readonly aliases: {
929
+ readonly type: "array";
930
+ readonly items: {
931
+ readonly type: "string";
932
+ readonly minLength: 1;
933
+ };
934
+ };
935
+ readonly source_file: {
936
+ readonly type: "string";
937
+ readonly minLength: 1;
938
+ };
939
+ readonly line: {
940
+ readonly type: "integer";
941
+ readonly minimum: 1;
942
+ };
900
943
  };
944
+ readonly additionalProperties: false;
901
945
  };
902
- readonly additionalProperties: false;
903
946
  };
904
- readonly verification_receipts: {
947
+ readonly proof_receipts: {
905
948
  readonly type: "array";
906
949
  readonly maxItems: 50;
907
950
  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
- };
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";
960
958
  };
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";
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: {
964
+ readonly type: "string";
965
+ readonly minLength: 1;
966
+ };
967
+ readonly scope: {
968
+ readonly type: "string";
969
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
970
+ };
971
+ readonly outcome: {
972
+ readonly type: "string";
973
+ readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped", "timed_out", "interrupted"];
974
+ };
975
+ readonly code_snapshot: {
976
+ readonly type: "string";
977
+ readonly pattern: "^[a-f0-9]{64}$";
978
+ };
979
+ readonly environment_hash: {
980
+ readonly type: "string";
981
+ readonly pattern: "^[a-f0-9]{64}$";
982
+ };
983
+ readonly started_at: {
984
+ readonly type: "string";
985
+ readonly minLength: 1;
986
+ };
987
+ readonly finished_at: {
988
+ readonly type: "string";
989
+ readonly minLength: 1;
990
+ };
991
+ readonly artifact_digest: {
992
+ readonly type: "string";
993
+ readonly pattern: "^[a-f0-9]{64}$";
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
+ };
968
1032
  };
969
- readonly command_argv: {
970
- readonly type: "array";
971
- readonly minItems: 1;
972
- readonly items: {
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: {
973
1043
  readonly type: "string";
974
1044
  readonly minLength: 1;
975
1045
  };
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;
1046
+ readonly version: {
1047
+ readonly type: "string";
1048
+ readonly minLength: 1;
1011
1049
  };
1012
1050
  };
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: {
1051
+ readonly additionalProperties: false;
1052
+ };
1053
+ readonly command_argv: {
1054
+ readonly type: "array";
1055
+ readonly minItems: 1;
1056
+ readonly items: {
1046
1057
  readonly type: "string";
1047
1058
  readonly minLength: 1;
1048
1059
  };
1049
- readonly finished_at: {
1050
- readonly type: "string";
1051
- readonly minLength: 1;
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;
1052
1137
  };
1053
- readonly artifact_digest: {
1054
- readonly type: "string";
1055
- readonly pattern: "^[a-f0-9]{64}$";
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;
1056
1159
  };
1057
1160
  };
1058
- readonly type: "object";
1059
- readonly additionalProperties: false;
1060
- }];
1161
+ };
1162
+ readonly additionalProperties: false;
1061
1163
  };
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.";
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.";
1063
1165
  };
1064
1166
  readonly fact_kind: {
1065
1167
  readonly type: "string";
@@ -1223,7 +1325,7 @@ export declare const OPERATION_CATALOG: readonly [{
1223
1325
  };
1224
1326
  readonly allOf: readonly [Record<string, unknown>, {
1225
1327
  readonly if: {
1226
- readonly required: readonly ["verification_receipts"];
1328
+ readonly required: readonly ["proof_receipts"];
1227
1329
  };
1228
1330
  readonly then: {
1229
1331
  readonly required: readonly ["verification_scope"];
@@ -1344,9 +1446,9 @@ export declare const OPERATION_CATALOG: readonly [{
1344
1446
  readonly type: "array";
1345
1447
  readonly items: {
1346
1448
  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"];
1449
+ readonly enum: readonly string[];
1348
1450
  };
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.";
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.";
1350
1452
  };
1351
1453
  readonly sourceFiles: {
1352
1454
  readonly type: "array";
@@ -1376,6 +1478,11 @@ export declare const OPERATION_CATALOG: readonly [{
1376
1478
  readonly type: "string";
1377
1479
  readonly description: "Optional workspace root for impact diagnostics. Defaults to the MCP server workspace.";
1378
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.";
1485
+ };
1379
1486
  };
1380
1487
  };
1381
1488
  readonly requiresProlog: true;
@@ -1580,6 +1687,15 @@ export declare const OPERATION_CATALOG: readonly [{
1580
1687
  readonly type: "string";
1581
1688
  readonly minLength: 1;
1582
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
+ };
1583
1699
  readonly verificationScope: {
1584
1700
  readonly type: "string";
1585
1701
  readonly enum: readonly ["unit", "integration", "end_to_end"];
@@ -1667,34 +1783,56 @@ export declare const OPERATION_CATALOG: readonly [{
1667
1783
  readonly effects: readonly ["kb-read", "kb-write", "workspace-read", "workspace-write"];
1668
1784
  readonly execute: typeof import("./index.js").executeApplyPlan;
1669
1785
  }, {
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.";
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.";
1673
1789
  readonly businessInputSchema: {
1674
1790
  readonly type: "object";
1675
- readonly required: readonly ["testId", "snapshot", "artifact"];
1791
+ readonly required: readonly ["snapshot", "artifact"];
1676
1792
  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
1793
  readonly snapshot: {
1683
1794
  readonly type: "string";
1684
1795
  readonly pattern: "^[a-f0-9]{64}$";
1685
- readonly description: "Workspace verification snapshot captured immediately before the run.";
1796
+ readonly description: "Workspace snapshot captured immediately before the run.";
1686
1797
  };
1687
1798
  readonly artifact: {
1688
1799
  readonly type: "object";
1689
- readonly required: readonly ["version", "runner", "command_argv", "code_snapshot", "environment_hash", "started_at", "finished_at", "process_exit_code", "cases"];
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"];
1690
1802
  readonly properties: {
1691
1803
  readonly version: {
1692
1804
  readonly type: "string";
1693
- readonly const: "kibi.playwright-run.v1";
1805
+ readonly const: "kibi.proof-run.v1";
1694
1806
  };
1695
- readonly runner: {
1696
- readonly type: "string";
1697
- readonly minLength: 1;
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;
1698
1836
  };
1699
1837
  readonly command_argv: {
1700
1838
  readonly type: "array";
@@ -1708,39 +1846,152 @@ export declare const OPERATION_CATALOG: readonly [{
1708
1846
  readonly type: "string";
1709
1847
  readonly pattern: "^[a-f0-9]{64}$";
1710
1848
  };
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;
1849
+ readonly environment: {
1850
+ readonly type: "object";
1851
+ readonly additionalProperties: true;
1722
1852
  };
1723
- readonly process_exit_code: {
1724
- readonly type: "integer";
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;
1725
1878
  };
1726
- readonly cases: {
1879
+ readonly proof_results: {
1727
1880
  readonly type: "array";
1728
1881
  readonly minItems: 1;
1729
1882
  readonly maxItems: 1000;
1730
1883
  readonly items: {
1731
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;
1732
1962
  };
1733
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;
1734
1984
  };
1735
- readonly additionalProperties: true;
1985
+ readonly description: "Existing test entities with proof_contract.v1. Omit to evaluate every test contracted to the artifact's integration.";
1736
1986
  };
1737
1987
  };
1738
1988
  };
1739
1989
  readonly requiresProlog: true;
1740
1990
  readonly effects: readonly ["kb-read", "kb-write", "workspace-read"];
1741
- readonly execute: typeof import("./index.js").executeIngestVerification;
1991
+ readonly execute: typeof import("./index.js").executeIngestProof;
1742
1992
  }];
1743
1993
  export declare function withContractDefaults(spec: OperationSpec): ResolvedOperationSpec;
1994
+ export declare function requireKnownSpec(spec: ResolvedOperationSpec | undefined, name: OperationName): ResolvedOperationSpec;
1744
1995
  export declare function getSpec(name: OperationName): ResolvedOperationSpec;
1745
1996
  export declare function listSpecs(): readonly ResolvedOperationSpec[];
1746
1997
  //# sourceMappingURL=catalog.d.ts.map