kibi-cli 2.38.0 → 2.40.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 (222) hide show
  1. package/dist/cli-json-command.d.ts.map +1 -1
  2. package/dist/cli-json-command.js +4 -0
  3. package/dist/cli-register-foundation.js +2 -2
  4. package/dist/cli-register-reporting.d.ts.map +1 -1
  5. package/dist/cli-register-reporting.js +1 -0
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +3 -0
  8. package/dist/commands/check.d.ts.map +1 -1
  9. package/dist/commands/check.js +33 -9
  10. package/dist/commands/coverage.d.ts +1 -0
  11. package/dist/commands/coverage.d.ts.map +1 -1
  12. package/dist/commands/coverage.js +40 -0
  13. package/dist/commands/doctor.d.ts +5 -0
  14. package/dist/commands/doctor.d.ts.map +1 -1
  15. package/dist/commands/doctor.js +29 -0
  16. package/dist/commands/init.d.ts.map +1 -1
  17. package/dist/commands/init.js +4 -0
  18. package/dist/commands/migrate-plan-record.d.ts +18 -0
  19. package/dist/commands/migrate-plan-record.d.ts.map +1 -0
  20. package/dist/commands/migrate-plan-record.js +112 -0
  21. package/dist/commands/migrate.d.ts +11 -2
  22. package/dist/commands/migrate.d.ts.map +1 -1
  23. package/dist/commands/migrate.js +60 -8
  24. package/dist/commands/prove.d.ts.map +1 -1
  25. package/dist/commands/prove.js +18 -3
  26. package/dist/commands/sync/manifest.d.ts.map +1 -1
  27. package/dist/commands/sync/manifest.js +17 -4
  28. package/dist/commands/sync/persistence.d.ts.map +1 -1
  29. package/dist/commands/sync/persistence.js +6 -0
  30. package/dist/commands/sync.d.ts.map +1 -1
  31. package/dist/commands/sync.js +8 -0
  32. package/dist/commands/telemetry.d.ts.map +1 -1
  33. package/dist/commands/telemetry.js +12 -2
  34. package/dist/extractors/markdown.d.ts +6 -0
  35. package/dist/extractors/markdown.d.ts.map +1 -1
  36. package/dist/extractors/markdown.js +21 -0
  37. package/dist/extractors/symbol-title-match.d.ts +31 -0
  38. package/dist/extractors/symbol-title-match.d.ts.map +1 -0
  39. package/dist/extractors/symbol-title-match.js +133 -0
  40. package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
  41. package/dist/extractors/symbols-coordinator.js +81 -12
  42. package/dist/operations/bootstrap/discovery-evidence.d.ts.map +1 -1
  43. package/dist/operations/bootstrap/discovery-evidence.js +44 -2
  44. package/dist/operations/bootstrap/discovery.d.ts.map +1 -1
  45. package/dist/operations/bootstrap/discovery.js +1 -0
  46. package/dist/operations/bootstrap/guidance-actions.d.ts.map +1 -1
  47. package/dist/operations/bootstrap/guidance-actions.js +12 -1
  48. package/dist/operations/bootstrap/plugin-offers.d.ts +7 -1
  49. package/dist/operations/bootstrap/plugin-offers.d.ts.map +1 -1
  50. package/dist/operations/bootstrap/plugin-offers.js +73 -3
  51. package/dist/operations/modeling/logic-modeling.d.ts.map +1 -1
  52. package/dist/operations/modeling/logic-modeling.js +2 -1
  53. package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
  54. package/dist/operations/modeling/model-requirement.js +2 -1
  55. package/dist/operations/mutation/symbol-refresh.d.ts +2 -0
  56. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
  57. package/dist/operations/mutation/symbol-refresh.js +6 -1
  58. package/dist/operations/mutation/upsert.d.ts.map +1 -1
  59. package/dist/operations/mutation/upsert.js +7 -0
  60. package/dist/operations/planning/compile-intent.d.ts.map +1 -1
  61. package/dist/operations/planning/compile-intent.js +2 -1
  62. package/dist/operations/proof/claim-bindings.d.ts +11 -0
  63. package/dist/operations/proof/claim-bindings.d.ts.map +1 -1
  64. package/dist/operations/proof/claim-bindings.js +144 -1
  65. package/dist/operations/proof/code-certificates.d.ts +10 -3
  66. package/dist/operations/proof/code-certificates.d.ts.map +1 -1
  67. package/dist/operations/proof/code-certificates.js +65 -13
  68. package/dist/operations/proof/code-languages.d.ts +104 -0
  69. package/dist/operations/proof/code-languages.d.ts.map +1 -0
  70. package/dist/operations/proof/code-languages.js +119 -0
  71. package/dist/operations/proof/code-models.d.ts +2 -0
  72. package/dist/operations/proof/code-models.d.ts.map +1 -1
  73. package/dist/operations/proof/code-models.js +11 -5
  74. package/dist/operations/proof/code-runner.d.ts +12 -9
  75. package/dist/operations/proof/code-runner.d.ts.map +1 -1
  76. package/dist/operations/proof/code-runner.js +81 -38
  77. package/dist/operations/proof/code-scope.d.ts +8 -0
  78. package/dist/operations/proof/code-scope.d.ts.map +1 -1
  79. package/dist/operations/proof/code-scope.js +30 -1
  80. package/dist/operations/proof/explain.d.ts +76 -0
  81. package/dist/operations/proof/explain.d.ts.map +1 -1
  82. package/dist/operations/proof/explain.js +228 -0
  83. package/dist/operations/proof/ingest-proof.d.ts +2 -0
  84. package/dist/operations/proof/ingest-proof.d.ts.map +1 -1
  85. package/dist/operations/proof/ingest-proof.js +1 -0
  86. package/dist/operations/proof/java-package-shadow.d.ts +14 -0
  87. package/dist/operations/proof/java-package-shadow.d.ts.map +1 -0
  88. package/dist/operations/proof/java-package-shadow.js +389 -0
  89. package/dist/operations/proof/prolog-evaluator.d.ts +14 -0
  90. package/dist/operations/proof/prolog-evaluator.d.ts.map +1 -0
  91. package/dist/operations/proof/prolog-evaluator.js +247 -0
  92. package/dist/operations/proof/prolog-source-reader.d.ts +20 -0
  93. package/dist/operations/proof/prolog-source-reader.d.ts.map +1 -0
  94. package/dist/operations/proof/prolog-source-reader.js +1123 -0
  95. package/dist/operations/proof/source-code-readers.d.ts +6 -0
  96. package/dist/operations/proof/source-code-readers.d.ts.map +1 -1
  97. package/dist/operations/proof/source-code-readers.js +879 -75
  98. package/dist/operations/semantic-advisor/analyze-prose.d.ts +9 -1
  99. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
  100. package/dist/operations/semantic-advisor/analyze-prose.js +21 -0
  101. package/dist/operations/semantic-advisor/case-preview.d.ts +24 -0
  102. package/dist/operations/semantic-advisor/case-preview.d.ts.map +1 -0
  103. package/dist/operations/semantic-advisor/case-preview.js +216 -0
  104. package/dist/operations/semantic-advisor/shared.d.ts.map +1 -1
  105. package/dist/operations/semantic-advisor/shared.js +3 -0
  106. package/dist/operations/semantic-advisor/types.d.ts +23 -0
  107. package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
  108. package/dist/plugins/approved-source-analyzers.generated.d.ts +15 -34
  109. package/dist/plugins/approved-source-analyzers.generated.d.ts.map +1 -1
  110. package/dist/plugins/approved-source-analyzers.generated.js +15 -34
  111. package/dist/plugins/plugin-install-check.d.ts +21 -0
  112. package/dist/plugins/plugin-install-check.d.ts.map +1 -0
  113. package/dist/plugins/plugin-install-check.js +62 -0
  114. package/dist/plugins/proof-reference-extractors.d.ts +20 -0
  115. package/dist/plugins/proof-reference-extractors.d.ts.map +1 -0
  116. package/dist/plugins/proof-reference-extractors.js +104 -0
  117. package/dist/plugins/reference-language-suggestion.d.ts +51 -0
  118. package/dist/plugins/reference-language-suggestion.d.ts.map +1 -0
  119. package/dist/plugins/reference-language-suggestion.js +277 -0
  120. package/dist/plugins/registry.d.ts.map +1 -1
  121. package/dist/plugins/registry.js +3 -1
  122. package/dist/plugins/source-analysis-service.d.ts.map +1 -1
  123. package/dist/plugins/source-analysis-service.js +4 -0
  124. package/dist/plugins/source-change-analysis.d.ts +26 -1
  125. package/dist/plugins/source-change-analysis.d.ts.map +1 -1
  126. package/dist/plugins/source-change-analysis.js +77 -5
  127. package/dist/plugins/source-classification.d.ts +2 -2
  128. package/dist/plugins/source-classification.d.ts.map +1 -1
  129. package/dist/plugins/source-classification.js +45 -1
  130. package/dist/public/operations/catalog.d.ts +62 -7
  131. package/dist/public/operations/catalog.d.ts.map +1 -1
  132. package/dist/public/operations/check-executor.d.ts.map +1 -1
  133. package/dist/public/operations/check-executor.js +3 -0
  134. package/dist/public/operations/evidence-floor.d.ts +8 -0
  135. package/dist/public/operations/evidence-floor.d.ts.map +1 -1
  136. package/dist/public/operations/evidence-floor.js +19 -1
  137. package/dist/public/operations/repair-plan.d.ts +46 -0
  138. package/dist/public/operations/repair-plan.d.ts.map +1 -1
  139. package/dist/public/operations/repair-plan.js +110 -1
  140. package/dist/public/operations/schema6-check-actions.js +1 -1
  141. package/dist/public/operations/specs/check-rules.generated.d.ts +1 -1
  142. package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -1
  143. package/dist/public/operations/specs/check-rules.generated.js +3 -1
  144. package/dist/public/operations/specs/check.d.ts +1 -1
  145. package/dist/public/operations/specs/mutation-schemas.d.ts +61 -6
  146. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
  147. package/dist/public/operations/specs/mutation-schemas.js +30 -0
  148. package/dist/public/operations/specs/reporting.d.ts +8 -0
  149. package/dist/public/operations/specs/reporting.d.ts.map +1 -1
  150. package/dist/public/operations/specs/reporting.js +26 -3
  151. package/dist/public/operations/specs/semantic.d.ts.map +1 -1
  152. package/dist/public/operations/specs/semantic.js +2 -1
  153. package/dist/public/operations/specs/upsert.d.ts +61 -6
  154. package/dist/public/operations/specs/upsert.d.ts.map +1 -1
  155. package/dist/public/operations/symbol-coordinates-check.d.ts +11 -0
  156. package/dist/public/operations/symbol-coordinates-check.d.ts.map +1 -0
  157. package/dist/public/operations/symbol-coordinates-check.js +66 -0
  158. package/dist/public/proof-protocol.d.ts +31 -6
  159. package/dist/public/proof-protocol.d.ts.map +1 -1
  160. package/dist/public/proof-protocol.js +45 -15
  161. package/dist/public/proof-sources.d.ts +4 -2
  162. package/dist/public/proof-sources.d.ts.map +1 -1
  163. package/dist/public/proof-sources.js +43 -4
  164. package/dist/public/schemas/entity.d.ts.map +1 -1
  165. package/dist/public/schemas/entity.js +59 -0
  166. package/dist/public/skills/kibi-commit-review/SKILL.md +6 -2
  167. package/dist/public/skills/kibi-decisions/SKILL.md +7 -2
  168. package/dist/public/skills/kibi-decisions/resources/signoff-views.md +3 -1
  169. package/dist/public/skills/kibi-usage/SKILL.md +14 -3
  170. package/dist/public/skills/kibi-usage/resources/prolog-proofs.md +207 -0
  171. package/dist/public/skills/kibi-usage/resources/proof.md +44 -3
  172. package/dist/schemas/entity.schema.json +126 -6
  173. package/dist/search-answer.d.ts +3 -2
  174. package/dist/search-answer.d.ts.map +1 -1
  175. package/dist/search-answer.js +56 -3
  176. package/dist/traceability/analysis-gate.d.ts +3 -1
  177. package/dist/traceability/analysis-gate.d.ts.map +1 -1
  178. package/dist/traceability/analysis-gate.js +9 -1
  179. package/dist/traceability/impact-knowledge.d.ts.map +1 -1
  180. package/dist/traceability/impact-knowledge.js +2 -0
  181. package/dist/traceability/staged-file-coverage.d.ts.map +1 -1
  182. package/dist/traceability/staged-file-coverage.js +7 -2
  183. package/dist/traceability/symbol-extract.d.ts +17 -0
  184. package/dist/traceability/symbol-extract.d.ts.map +1 -1
  185. package/dist/traceability/symbol-extract.js +69 -15
  186. package/dist/traceability/temp-kb.d.ts.map +1 -1
  187. package/dist/traceability/temp-kb.js +11 -1
  188. package/dist/traceability/validate.d.ts.map +1 -1
  189. package/dist/traceability/validate.js +5 -7
  190. package/dist/types/entities.d.ts +12 -0
  191. package/dist/types/entities.d.ts.map +1 -1
  192. package/dist/usage-telemetry.d.ts +9 -0
  193. package/dist/usage-telemetry.d.ts.map +1 -1
  194. package/dist/usage-telemetry.js +50 -4
  195. package/dist/utils/first-sentence.d.ts +9 -0
  196. package/dist/utils/first-sentence.d.ts.map +1 -0
  197. package/dist/utils/first-sentence.js +52 -0
  198. package/dist/utils/rule-registry.generated.d.ts +11 -0
  199. package/dist/utils/rule-registry.generated.d.ts.map +1 -1
  200. package/dist/utils/rule-registry.generated.js +13 -0
  201. package/package.json +5 -5
  202. package/schema/entities.pl +12 -0
  203. package/src/public/operations/check-executor.ts +8 -0
  204. package/src/public/operations/evidence-floor.ts +29 -1
  205. package/src/public/operations/repair-plan.ts +152 -1
  206. package/src/public/operations/schema6-check-actions.ts +1 -1
  207. package/src/public/operations/specs/check-rules.generated.ts +3 -1
  208. package/src/public/operations/specs/mutation-schemas.ts +34 -0
  209. package/src/public/operations/specs/reporting.ts +38 -3
  210. package/src/public/operations/specs/semantic.ts +2 -1
  211. package/src/public/operations/symbol-coordinates-check.ts +79 -0
  212. package/src/public/proof-protocol-types.d.ts +22 -5
  213. package/src/public/proof-protocol.ts +78 -19
  214. package/src/public/proof-sources.ts +51 -3
  215. package/src/public/schemas/entity.ts +65 -0
  216. package/src/public/skills/kibi-commit-review/SKILL.md +6 -2
  217. package/src/public/skills/kibi-decisions/SKILL.md +7 -2
  218. package/src/public/skills/kibi-decisions/resources/signoff-views.md +3 -1
  219. package/src/public/skills/kibi-usage/SKILL.md +14 -3
  220. package/src/public/skills/kibi-usage/resources/prolog-proofs.md +207 -0
  221. package/src/public/skills/kibi-usage/resources/proof.md +44 -3
  222. package/src/schemas/entity.schema.json +126 -6
@@ -1,4 +1,5 @@
1
1
  import { analysisObligation, } from "../traceability/analysis-gate.js";
2
+ import { partialAnalysisSymbolsUsable } from "../traceability/symbol-extract.js";
2
3
  /** Files analyzed at once; pooled providers bound their own worker count. */
3
4
  const SOURCE_ANALYSIS_CONCURRENCY = 4;
4
5
  /** Analyze both versions without changing the complete inventory or assigning proof. */
@@ -37,18 +38,89 @@ export function gateAnalysis(result) {
37
38
  }
38
39
  : null;
39
40
  }
40
- /** Enforce the shared analysis gate when no impact policy accepts reviews. */
41
+ /**
42
+ * The after-side gaps a staged change touches outside every declaration the
43
+ * analyzer placed. A changed line inside a placed declaration is validated
44
+ * against that symbol instead.
45
+ */
46
+ // implements REQ-source-analysis-v2
47
+ export function partialAnalysisReviews(inventory, analyses) {
48
+ const reviews = [];
49
+ for (const file of inventory) {
50
+ const after = analyses.get(file.path)?.after ?? null;
51
+ const obligation = analysisObligation("after", gateAnalysis(after), file.hunkRanges);
52
+ if (obligation.kind !== "partial_review" || !after)
53
+ continue;
54
+ const placed = partialAnalysisSymbolsUsable(after) ? after.symbols : [];
55
+ const ranges = obligation.ranges.filter((range) => file.hunkRanges.some((hunk) => linesOutside(Math.max(range.startLine, hunk.start), Math.min(range.endLine, hunk.end), placed).length > 0));
56
+ if (ranges.length === 0)
57
+ continue;
58
+ const lines = mergeLineRanges(ranges.flatMap((range) => file.hunkRanges.flatMap((hunk) => linesOutside(Math.max(range.startLine, hunk.start), Math.min(range.endLine, hunk.end), placed))));
59
+ const detail = [
60
+ ...new Set(after.diagnostics
61
+ .filter((item) => item.range === undefined ||
62
+ ranges.some((range) => item.range !== undefined &&
63
+ item.range.startLine <= range.endLine &&
64
+ range.startLine <= item.range.endLine))
65
+ .map((item) => item.message)),
66
+ ].join(" ");
67
+ reviews.push({
68
+ path: file.path,
69
+ lines,
70
+ ranges: ranges.map((range) => ({
71
+ startLine: range.startLine,
72
+ endLine: range.endLine,
73
+ reason: range.reason,
74
+ })),
75
+ detail: detail || [...new Set(ranges.map((range) => range.reason))].join(", "),
76
+ });
77
+ }
78
+ return reviews;
79
+ }
80
+ /** The parts of the lines [start, end] that no span contains. */
81
+ function linesOutside(start, end, spans) {
82
+ const out = [];
83
+ let line = start;
84
+ while (line <= end) {
85
+ const cover = spans.find((span) => span.startLine <= line && line <= span.endLine);
86
+ if (cover) {
87
+ line = cover.endLine + 1;
88
+ continue;
89
+ }
90
+ const next = Math.min(end + 1, ...spans
91
+ .filter((span) => span.startLine > line)
92
+ .map((span) => span.startLine));
93
+ out.push({ startLine: line, endLine: next - 1 });
94
+ line = next;
95
+ }
96
+ return out;
97
+ }
98
+ function mergeLineRanges(ranges) {
99
+ const sorted = [...ranges].sort((a, b) => a.startLine - b.startLine);
100
+ const merged = [];
101
+ for (const range of sorted) {
102
+ const last = merged.at(-1);
103
+ if (last && range.startLine <= last.endLine + 1)
104
+ last.endLine = Math.max(last.endLine, range.endLine);
105
+ else
106
+ merged.push({ ...range });
107
+ }
108
+ return merged;
109
+ }
110
+ /**
111
+ * Enforce the shared analysis gate when no impact policy accepts reviews:
112
+ * failed analysis and non-local gaps block; a local gap is left to
113
+ * {@link partialAnalysisReviews}.
114
+ */
41
115
  // implements REQ-source-analysis-v2
42
116
  export function assertSourceAnalysisGate(inventory, analyses) {
43
117
  for (const file of inventory) {
44
118
  const analysis = analyses.get(file.path);
45
119
  const after = analysis?.after ?? null;
46
120
  const obligation = analysisObligation("after", gateAnalysis(after), file.hunkRanges);
47
- if (obligation.kind !== "blocked" && obligation.kind !== "partial_review")
121
+ if (obligation.kind !== "blocked")
48
122
  continue;
49
123
  const detail = after?.diagnostics.map((d) => d.message).join("; ") ?? "";
50
- throw new Error(obligation.kind === "blocked"
51
- ? `Source analysis ${after?.status} for ${file.path}: ${detail}`
52
- : `Source analysis partial for ${file.path} where the staged change touches uncovered lines (${obligation.ranges.map((range) => `${range.startLine}-${range.endLine}`).join(", ")}): ${detail}`);
124
+ throw new Error(`Source analysis ${after?.status} for ${file.path}: ${detail}`);
53
125
  }
54
126
  }
@@ -1,11 +1,11 @@
1
1
  export type SourceClassification = Readonly<{
2
2
  kind: "language";
3
3
  language: string;
4
- source: "extension" | "shebang" | "explicit";
4
+ source: "extension" | "shebang" | "explicit" | "content";
5
5
  }> | Readonly<{
6
6
  kind: "file-level";
7
7
  language: string;
8
- source: "extension" | "shebang" | "explicit";
8
+ source: "extension" | "shebang" | "explicit" | "content";
9
9
  reason: string;
10
10
  }> | Readonly<{
11
11
  kind: "ambiguous";
@@ -1 +1 @@
1
- {"version":3,"file":"source-classification.d.ts","sourceRoot":"","sources":["../../src/plugins/source-classification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,CAAC;IACP,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;CAC9C,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,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FF_LENGTH = 65_536;
2
3
  const MAX_SHEBANG_TOKENS = 16;
3
4
  const MAX_TOKEN_LENGTH = 128;
4
5
  const EXTENSIONS = {
@@ -33,6 +34,7 @@ const EXTENSIONS = {
33
34
  ".mjs": { kind: "language", language: "javascript" },
34
35
  ".mts": { kind: "language", language: "typescript" },
35
36
  ".php": { kind: "language", language: "php" },
37
+ ".plt": { kind: "language", language: "prolog" },
36
38
  ".pl": {
37
39
  kind: "ambiguous",
38
40
  language: "perl-or-prolog",
@@ -112,7 +114,6 @@ const FILE_LEVEL_LANGUAGES = new Set([
112
114
  "html",
113
115
  "json",
114
116
  "perl",
115
- "prolog",
116
117
  "shell",
117
118
  "sql",
118
119
  "yaml",
@@ -341,6 +342,40 @@ function shebangFor(content) {
341
342
  }
342
343
  return interpreterFor(words[0]);
343
344
  }
345
+ // Lines only Prolog source starts with: a directive, a clause or DCG rule
346
+ // whose head is an atom or compound term, or a one-line fact.
347
+ const PROLOG_LINE = /^(?::-\s|[a-z][A-Za-z0-9_]*(?:\([^\n]*\))?\s*(?::-|-->)(?:\s|$)|[a-z][A-Za-z0-9_]*\([^\n;]*\)\.[ \t]*(?:%[^\n]*)?$)/m;
348
+ // Lines only Perl source starts with.
349
+ const PERL_LINE = /^(?:\s*use\s+(?:strict|warnings|utf8|[A-Z][\w:]*)\b[^\n]*;|\s*package\s+[A-Za-z_][\w:]*\s*;|\s*sub\s+[A-Za-z_]\w*\s*\{|\s*my\s+[$@%]|=(?:pod|head1)\b|__(?:END|DATA)__$)/m;
350
+ /**
351
+ * Resolves a `.pl` file without a shebang to Prolog or Perl when only one of
352
+ * them matches its leading content. Both or neither leaves it ambiguous.
353
+ */
354
+ // implements REQ-multilingual-language-catalog
355
+ function perlOrPrologByContent(content) {
356
+ const prefix = content.slice(0, MAX_CONTENT_SNIFF_LENGTH);
357
+ const prolog = PROLOG_LINE.test(prefix);
358
+ const perl = PERL_LINE.test(prefix);
359
+ if (prolog === perl)
360
+ return undefined;
361
+ return prolog ? "prolog" : "perl";
362
+ }
363
+ // C++-only constructs; `extern "C"` guards and C23 attributes are not among them.
364
+ const CPP_ONLY = /^\s*(?:class|namespace|template\s*<|using\s+namespace)\b|^\s*(?:public|private|protected)\s*:|\b(?:virtual|constexpr|nullptr|operator\s*[^\w\s]|static_cast|dynamic_cast|reinterpret_cast|noexcept)\b|\bstd::|[A-Za-z_]\w*::[A-Za-z_~]/m;
365
+ /**
366
+ * Resolves a `.h` header without a shebang: C++ when its code uses a
367
+ * construct only C++ has, otherwise C (a C header also parses as C++, but
368
+ * the reverse does not hold, so C is the reading that stays exact).
369
+ */
370
+ // implements REQ-multilingual-language-catalog
371
+ function cOrCppByContent(content) {
372
+ const code = content
373
+ .slice(0, MAX_CONTENT_SNIFF_LENGTH)
374
+ .replace(/\/\*[\s\S]*?\*\//g, " ")
375
+ .replace(/\/\/[^\n]*/g, " ")
376
+ .replace(/"(?:[^"\\\n]|\\.)*"/g, '""');
377
+ return CPP_ONLY.test(code) ? "cpp" : "c";
378
+ }
344
379
  function classificationForLanguage(language, source) {
345
380
  if (FILE_LEVEL_LANGUAGES.has(language)) {
346
381
  return {
@@ -398,6 +433,15 @@ export function classifySource(filePath, content, explicitLanguageHint) {
398
433
  return classificationForLanguage(explicit, "explicit");
399
434
  }
400
435
  if (extension?.kind === "ambiguous") {
436
+ const contentLanguage = shebang !== undefined
437
+ ? undefined
438
+ : extension.language === "perl-or-prolog"
439
+ ? perlOrPrologByContent(content)
440
+ : extension.language === "c-or-cpp"
441
+ ? cOrCppByContent(content)
442
+ : undefined;
443
+ if (contentLanguage !== undefined)
444
+ return classificationForLanguage(contentLanguage, "content");
401
445
  if (shebang === undefined) {
402
446
  return {
403
447
  kind: "ambiguous",
@@ -1160,6 +1160,16 @@ export declare const OPERATION_CATALOG: readonly [{
1160
1160
  readonly minLength: 1;
1161
1161
  readonly description: "Requirement-only. Optional reference to the exception's approval decision record.";
1162
1162
  };
1163
+ readonly failure_side_waiver: {
1164
+ readonly type: "string";
1165
+ readonly minLength: 1;
1166
+ readonly description: "Requirement-only. Why the requirement has no failure side to test (its claims state a capability or output shape). Waives happy_path_only once failure_side_waiver_approved_by is set.";
1167
+ };
1168
+ readonly failure_side_waiver_approved_by: {
1169
+ readonly type: "string";
1170
+ readonly minLength: 1;
1171
+ readonly description: "Requirement-only. The person who accepted failure_side_waiver.";
1172
+ };
1163
1173
  readonly firmness: {
1164
1174
  readonly type: "string";
1165
1175
  readonly enum: readonly ["firm", "default", "exploratory"];
@@ -1257,13 +1267,13 @@ export declare const OPERATION_CATALOG: readonly [{
1257
1267
  readonly description: "What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic, smt, rule, state_machine and regex must leave a kibi.code-certificate.v1 that Kibi re-checks before the receipt counts as proved. source reads the contract's source itself: the run may leave {version, kind: source, test_id, source} or nothing, and Kibi stores its own read as the certificate.";
1258
1268
  };
1259
1269
  readonly source: {
1260
- readonly description: "source: the project source a source proof reads. A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.";
1270
+ readonly description: "source: the project source a source proof reads. A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.";
1261
1271
  readonly type: "object";
1262
1272
  readonly required: readonly ["reader"];
1263
1273
  readonly properties: {
1264
1274
  readonly reader: {
1265
1275
  readonly type: "string";
1266
- readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
1276
+ readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator", "prolog"];
1267
1277
  };
1268
1278
  };
1269
1279
  readonly additionalProperties: true;
@@ -1287,6 +1297,11 @@ export declare const OPERATION_CATALOG: readonly [{
1287
1297
  readonly minLength: 1;
1288
1298
  readonly description: "exhaustive: when the export is a list of records, the field of each record that names a domain member (a catalog's name).";
1289
1299
  };
1300
+ readonly arg: {
1301
+ readonly type: "integer";
1302
+ readonly minimum: 1;
1303
+ readonly description: "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).";
1304
+ };
1290
1305
  };
1291
1306
  readonly additionalProperties: false;
1292
1307
  };
@@ -1327,14 +1342,19 @@ export declare const OPERATION_CATALOG: readonly [{
1327
1342
  readonly type: "string";
1328
1343
  readonly minLength: 1;
1329
1344
  };
1345
+ readonly arg: {
1346
+ readonly type: "integer";
1347
+ readonly minimum: 1;
1348
+ readonly description: "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).";
1349
+ };
1330
1350
  readonly source: {
1331
1351
  readonly type: "object";
1332
- readonly description: "A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.";
1352
+ readonly description: "A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.";
1333
1353
  readonly required: readonly ["reader"];
1334
1354
  readonly properties: {
1335
1355
  readonly reader: {
1336
1356
  readonly type: "string";
1337
- readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
1357
+ readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator", "prolog"];
1338
1358
  };
1339
1359
  };
1340
1360
  readonly additionalProperties: true;
@@ -1395,6 +1415,11 @@ export declare const OPERATION_CATALOG: readonly [{
1395
1415
  readonly type: "string";
1396
1416
  readonly minLength: 1;
1397
1417
  };
1418
+ readonly arg: {
1419
+ readonly type: "integer";
1420
+ readonly minimum: 1;
1421
+ readonly description: "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).";
1422
+ };
1398
1423
  };
1399
1424
  readonly additionalProperties: false;
1400
1425
  }, {
@@ -1403,12 +1428,12 @@ export declare const OPERATION_CATALOG: readonly [{
1403
1428
  readonly properties: {
1404
1429
  readonly source: {
1405
1430
  readonly type: "object";
1406
- readonly description: "A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?}. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.";
1431
+ readonly description: "A project source Kibi reads by itself. reader json or yaml: {file, path?, select?: keys|values|items}. glob: {pattern, capture?, ignore?} (capture true reads what each * matched). openapi: {file, select?: operations|unsecured_operations|security_schemes|responses}. references: {files, extract: env|imports|calls|string_args|thrown|property, callee?, key?, ignore?} over TypeScript, JavaScript, Python and SWI-Prolog files. schema: {format: drizzle|prisma|sql, file (drizzle, prisma) or files (sql migrations), exports?, table?, select?: tables|columns|required_columns|nullable_columns|foreign_keys}. routes: {file, export, framework?: hono|express, path_prefix?, names_from?, select?: routes|middleware}. validator: {file, export, select?: fields|required_fields|optional_fields}. prolog: {file, functor: Name/Arity, arg?} reads one argument of every fact with that functor in a SWI-Prolog file (requires/1 in pack.pl), without running it. Paths are repository-relative. A member Kibi cannot read statically fails the read with its location.";
1407
1432
  readonly required: readonly ["reader"];
1408
1433
  readonly properties: {
1409
1434
  readonly reader: {
1410
1435
  readonly type: "string";
1411
- readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
1436
+ readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator", "prolog"];
1412
1437
  };
1413
1438
  };
1414
1439
  readonly additionalProperties: true;
@@ -1431,6 +1456,11 @@ export declare const OPERATION_CATALOG: readonly [{
1431
1456
  readonly type: "string";
1432
1457
  readonly minLength: 1;
1433
1458
  };
1459
+ readonly arg: {
1460
+ readonly type: "integer";
1461
+ readonly minimum: 1;
1462
+ readonly description: "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).";
1463
+ };
1434
1464
  };
1435
1465
  readonly additionalProperties: false;
1436
1466
  };
@@ -1447,6 +1477,11 @@ export declare const OPERATION_CATALOG: readonly [{
1447
1477
  readonly type: "string";
1448
1478
  readonly minLength: 1;
1449
1479
  };
1480
+ readonly arg: {
1481
+ readonly type: "integer";
1482
+ readonly minimum: 1;
1483
+ readonly description: "A SWI-Prolog predicate's argument (1-based) whose solutions Kibi reads, when the predicate takes more than one argument (operator/2 with arg 1 lists each operator's name).";
1484
+ };
1450
1485
  };
1451
1486
  readonly additionalProperties: false;
1452
1487
  };
@@ -1862,6 +1897,26 @@ export declare const OPERATION_CATALOG: readonly [{
1862
1897
  readonly type: "string";
1863
1898
  readonly description: "Exact atomic requirement clause represented by this fact, retained for human audit. On a grounding fact Kibi derives claim_key from it; an observation or meta fact quotes the clause it is about without a key.";
1864
1899
  };
1900
+ readonly dimension_waiver: {
1901
+ readonly type: "string";
1902
+ readonly minLength: 1;
1903
+ readonly description: "Fact-only. Why the quantifier word in claim_text ranges over nothing, so the claim needs no count, set or rule. Waives dimension_unrepresented once dimension_waiver_approved_by is set.";
1904
+ };
1905
+ readonly dimension_waiver_approved_by: {
1906
+ readonly type: "string";
1907
+ readonly minLength: 1;
1908
+ readonly description: "Fact-only. The person who accepted dimension_waiver.";
1909
+ };
1910
+ readonly case_waiver: {
1911
+ readonly type: "string";
1912
+ readonly minLength: 1;
1913
+ readonly description: "Fact-only. Why the edge cases derived from this fact are covered some other way or cannot occur. Waives uncovered_case once case_waiver_approved_by is set.";
1914
+ };
1915
+ readonly case_waiver_approved_by: {
1916
+ readonly type: "string";
1917
+ readonly minLength: 1;
1918
+ readonly description: "Fact-only. The person who accepted case_waiver.";
1919
+ };
1865
1920
  readonly predicate_name: {
1866
1921
  readonly type: "string";
1867
1922
  readonly description: "Optional predicate name for ontology predicate facts. Prefer kb_model mode predicates before hand-writing predicate_name.";
@@ -2164,7 +2219,7 @@ export declare const OPERATION_CATALOG: readonly [{
2164
2219
  readonly type: "string";
2165
2220
  readonly enum: readonly string[];
2166
2221
  };
2167
- readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, symbol-granularity, no-dangling-refs, source-relationship-parity, branch-store-not-compiled, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, 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, related-requirement-unmodeled, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged, decision-firm-unreferenced, decision-firm-superseded, decision-firm-edited, supersedes-reason-missing, supersedes-reason-acknowledged, policy-ownership, policy-markers, kb-consistency, kb-consistency-unresolved, evidence-floor, proof-contract-claims. 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.";
2222
+ readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, symbol-granularity, symbol-coordinates-missing, no-dangling-refs, source-relationship-parity, branch-store-not-compiled, source-path-dangling, no-cycles, required-fields, deprecated-adr-no-successor, superseded-requirement-open, scenario-feasibility, scenario-feasibility-unknown, scenario-outcome-mismatch, exception-claim-keys, numeric-string-value, rule-key-arguments-missing, 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, related-requirement-unmodeled, proof-contract-symbols, entity-id-style, domain-redundancy, domain-implication, subject-key-identity, subject-key-shape, ontology-quality, exception-unapproved, exception-approval-self-attested, agent-requirement-unapproved, requirement-rationale-missing, symbol-owner-superseded, adr-unlinked, adr-proposed, predicate-schema-conformance, entity-context-missing, entity-context-acknowledged, decision-firm-unreferenced, decision-firm-superseded, decision-firm-edited, supersedes-reason-missing, supersedes-reason-acknowledged, policy-ownership, policy-markers, kb-consistency, kb-consistency-unresolved, evidence-floor, proof-contract-claims. 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.";
2168
2223
  };
2169
2224
  readonly sourceFiles: {
2170
2225
  readonly type: "array";
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/public/operations/catalog.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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sB,CAAC,EAAE,OAAO,CAAC;IAC1C,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAC;AACxE,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,GAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,6CAA6C,CAAC,EAAE,OAAO,CAAC;IACjE;;;;;;OAMG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAoFF;;;;;GAKG;AAEH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,MAAM,GACpB,SAAS,GAAG,IAAI,CAgClB;AAED;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,GAC7B,MAAM,GAAG,SAAS,CAiBpB;AAGD,wBAAsB,YAAY,CAChC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,gBAAgB,EACzB,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CA0RxC"}
@@ -15,6 +15,7 @@ import { collectPredicateSchemaConformanceViolations } from "./predicate-schema-
15
15
  import { collectProofContractClaimViolations } from "./proof-contract-claims.js";
16
16
  import { SOURCE_PATH_DANGLING_RULE, collectSourcePathDanglingViolations, } from "./source-path-dangling.js";
17
17
  import { collectSourceRelationshipParityViolations } from "./source-relationship-parity.js";
18
+ import { collectSymbolCoordinatesMissingViolations } from "./symbol-coordinates-check.js";
18
19
  import { collectSymbolGranularityViolations } from "./symbol-granularity-check.js";
19
20
  import { readWorkspaceSnapshot } from "./workspace-snapshot.js";
20
21
  export { buildStructuredContent, buildSummary, getEffectiveRules, resolveCheckRules, };
@@ -267,6 +268,7 @@ export async function executeCheck(args, context, options = {}) {
267
268
  ? collectSourcePathDanglingViolations(workspaceRoot)
268
269
  : [];
269
270
  const symbolGranularityFindings = await collectSymbolGranularityViolations(prolog, workspaceRoot, rulesAllowlist, analysisCacheDir(context, workspaceRoot, options));
271
+ const symbolCoordinateFindings = await collectSymbolCoordinatesMissingViolations(prolog, workspaceRoot, rulesAllowlist);
270
272
  const originReviewFindings = await collectOriginReviewViolations(prolog, rulesAllowlist, workspaceRoot);
271
273
  const entityContextFindings = collectEntityContextViolations(rulesAllowlist, workspaceRoot);
272
274
  const decisionFirmnessFindings = collectDecisionFirmnessViolations(rulesAllowlist, workspaceRoot);
@@ -283,6 +285,7 @@ export async function executeCheck(args, context, options = {}) {
283
285
  ...sourceRelationshipParityViolations,
284
286
  ...sourcePathFindings,
285
287
  ...symbolGranularityFindings,
288
+ ...symbolCoordinateFindings,
286
289
  ...predicateConformanceFindings,
287
290
  ...originReviewFindings,
288
291
  ...entityContextFindings,
@@ -19,6 +19,12 @@ export type EvidenceFloorRow = Readonly<{
19
19
  proofGaps: readonly string[];
20
20
  /** The tests and symbols behind the gaps; empty lists are left out. */
21
21
  gapDetails?: Readonly<Record<string, readonly string[]>>;
22
+ /** Claims a proof refuted: the test, the claim and what the test read. */
23
+ refutations?: readonly Readonly<{
24
+ test: string;
25
+ claimKey: string;
26
+ reason: string;
27
+ }>[];
22
28
  }>;
23
29
  export type EvidenceFloorOptions = Readonly<{
24
30
  /**
@@ -37,6 +43,8 @@ export type EvidenceFloorOptions = Readonly<{
37
43
  }>;
38
44
  /** The entities behind the gaps, for a person reading kibi check's text. */
39
45
  export declare function gapDetailLines(row: EvidenceFloorRow): string[];
46
+ /** Each refuted claim in plain words: which test refutes it and why. */
47
+ export declare function refutationText(row: EvidenceFloorRow): string | undefined;
40
48
  /** One finding per current requirement whose evidence is below its floor. */
41
49
  export declare function evidenceFloorViolations(rows: readonly EvidenceFloorRow[], options?: EvidenceFloorOptions): Violation[];
42
50
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"evidence-floor.d.ts","sourceRoot":"","sources":["../../../src/public/operations/evidence-floor.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;GAIG;AAEH,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,mEAAmE;AAEnE,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAGpD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,OAAO,GAAG,iBAAiB,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,uEAAuE;IACvE,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CAC1D,CAAC,CAAC;AAOH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC;IAC1C;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;CACtE,CAAC,CAAC;AAqBH,4E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AAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,SAAS,EAAE,CAAC,CAiCtB"}
@@ -55,7 +55,24 @@ export function gapDetailLines(row) {
55
55
  `${GAP_DETAIL_LABELS[key] ?? key}: ${ids.slice(0, 8).join(", ")}${ids.length > 8 ? ` (+${ids.length - 8} more)` : ""}`,
56
56
  ]);
57
57
  }
58
+ /** Gaps a refuted claim leaves that a derived proof would have covered. */
59
+ const REFUTATION_GAPS = new Set(["happy_path_only", "uncovered_case"]);
60
+ /** Each refuted claim in plain words: which test refutes it and why. */
61
+ // implements REQ-kibi-claim-bound-proofs
62
+ export function refutationText(row) {
63
+ const refutations = row.refutations ?? [];
64
+ if (refutations.length === 0)
65
+ return undefined;
66
+ return refutations
67
+ .map((refutation) => `${refutation.test} refutes ${refutation.claimKey}: ${refutation.reason}`)
68
+ .join("; ");
69
+ }
58
70
  function suggestionFor(row) {
71
+ const refuted = refutationText(row);
72
+ if (refuted !== undefined) {
73
+ const following = row.proofGaps.filter((gap) => REFUTATION_GAPS.has(gap));
74
+ return `The code breaks a claim of ${row.id} (${refuted}). Fix the code so it keeps the claim, or, with the person who owns the rule, change the requirement, then run kibi prove${following.length > 0 ? `; ${following.join(" and ")} ${following.length > 1 ? "clear" : "clears"} once the proof derives the claim` : ""}. kibi proof explain ${row.id} shows each claim's bindings.`;
75
+ }
59
76
  if (row.status === "pending_reproof")
60
77
  return `Run kibi prove for the tests behind ${row.id} so its receipts match the current code, then rerun kibi check --fresh-evidence.`;
61
78
  switch (row.requiredEvidence) {
@@ -77,7 +94,7 @@ export function evidenceFloorViolations(rows, options = {}) {
77
94
  entityId: row.id,
78
95
  description: row.status === "pending_reproof"
79
96
  ? `${row.id} is ${row.evidenceLevel} but needs ${row.requiredEvidence} (${floorSource(row)}); its receipts are older than the code`
80
- : `${row.id} is ${row.evidenceLevel} but needs ${row.requiredEvidence} (${floorSource(row)})`,
97
+ : `${row.id} is ${row.evidenceLevel} but needs ${row.requiredEvidence} (${floorSource(row)})${refutationText(row) === undefined ? "" : `; its proof refutes a claim: ${refutationText(row)}`}`,
81
98
  suggestion: suggestionFor(row),
82
99
  evidence: {
83
100
  evidenceLevel: row.evidenceLevel,
@@ -87,6 +104,7 @@ export function evidenceFloorViolations(rows, options = {}) {
87
104
  proofStatus: row.proofStatus,
88
105
  proofGaps: row.proofGaps,
89
106
  ...(row.gapDetails === undefined ? {} : { gapDetails: row.gapDetails }),
107
+ ...(row.refutations?.length ? { refutations: row.refutations } : {}),
90
108
  },
91
109
  }));
92
110
  }
@@ -56,6 +56,27 @@ declare const REPAIR_PHASES: {
56
56
  readonly validationRules: readonly ["must-priority-coverage", "no-dangling-refs"];
57
57
  readonly writePolicy: "sequential_upsert";
58
58
  };
59
+ readonly dimension_grounding: {
60
+ readonly order: 64;
61
+ readonly objective: "Ground each quantified claim (each, every, all, or a cardinality bound) on what varies: an integer count or bound, a set of members, a rule over a variable, or a state machine. If the quantifier ranges over nothing, record a dimension_waiver on the grounding fact for a person to approve, and record their approval in the same pull request.";
62
+ readonly workflowSteps: readonly ["kb_model_requirement", "kb_validate_upsert", "kb_upsert", "kb_check"];
63
+ readonly validationRules: readonly ["no-dangling-refs"];
64
+ readonly writePolicy: "sequential_upsert";
65
+ };
66
+ readonly case_scenarios: {
67
+ readonly order: 66;
68
+ readonly objective: "Cover each uncovered rejection case: add a scenario whose assumes fact states the case's assumption (a value past the bound, a value outside the set), expects rejection or error, is linked with specified_by and is verified by a passing end-to-end test. Each repair lists caseSkeletons, upsert-ready draft scenarios and their assumed facts: fill in the placeholders, verify the scenario by a test, then set its status to active (a draft never covers a case). If a person accepts the cases as covered another way, record a case_waiver on the grounding fact for them to approve, and record their approval in the same pull request.";
69
+ readonly workflowSteps: readonly ["kb_coverage", "kb_validate_upsert", "kb_upsert", "kb_check"];
70
+ readonly validationRules: readonly ["scenario-outcome-mismatch", "no-dangling-refs"];
71
+ readonly writePolicy: "sequential_upsert";
72
+ };
73
+ readonly negative_scenarios: {
74
+ readonly order: 65;
75
+ readonly objective: "Add a scenario that expects rejection or error and assumes a value the requirement forbids (see suggestedNegatives), link it with specified_by and verify it with a passing end-to-end test.";
76
+ readonly workflowSteps: readonly ["kb_query", "kb_validate_upsert", "kb_upsert", "kb_check"];
77
+ readonly validationRules: readonly ["scenario-outcome-mismatch", "no-dangling-refs"];
78
+ readonly writePolicy: "sequential_upsert";
79
+ };
59
80
  readonly scenario_tests: {
60
81
  readonly order: 70;
61
82
  readonly objective: "Create or select a test endpoint and link it through the requirement scenario.";
@@ -121,6 +142,31 @@ export type RepairPlanRepair = {
121
142
  readonly proofStage: string;
122
143
  readonly action: string;
123
144
  readonly evidence: Readonly<Record<string, unknown>>;
145
+ /** Draft scenarios for an uncovered_case repair, one per uncovered case. */
146
+ readonly caseSkeletons?: readonly CaseSkeleton[];
147
+ };
148
+ type SkeletonEntity = {
149
+ readonly type: "fact" | "scenario";
150
+ readonly id: string;
151
+ readonly properties: Readonly<Record<string, unknown>>;
152
+ readonly relationships: readonly {
153
+ readonly type: string;
154
+ readonly from: string;
155
+ readonly to: string;
156
+ }[];
157
+ };
158
+ /**
159
+ * An upsert-ready draft scenario for one uncovered case: the fact it assumes
160
+ * (the case's value class) and the scenario that expects the predicted
161
+ * outcome. Drafts never count as coverage, so writing one changes no gap
162
+ * until it is verified and made active. placeholder is true when the value
163
+ * must be chosen by the author (a value outside a set).
164
+ */
165
+ export type CaseSkeleton = {
166
+ readonly caseId: string;
167
+ readonly constraint: string;
168
+ readonly placeholder: boolean;
169
+ readonly entities: readonly [SkeletonEntity, SkeletonEntity];
124
170
  };
125
171
  export type RepairPlanBatch = {
126
172
  readonly id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"repair-plan.d.ts","sourceRoot":"","sources":["../../../src/public/operations/repair-plan.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,EAAG,qBAA8B,CAAC;AAElE,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;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