kibi-cli 2.32.0 → 2.36.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.
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -1
- package/dist/commands/check-generated.d.ts +5 -1
- package/dist/commands/check-generated.d.ts.map +1 -1
- package/dist/commands/check-generated.js +24 -35
- package/dist/commands/init-helpers.d.ts.map +1 -1
- package/dist/commands/init-helpers.js +8 -5
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +23 -5
- package/dist/commands/sync/manifest.d.ts +10 -1
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +87 -14
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +19 -0
- package/dist/extractors/markdown.d.ts +1 -1
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/symbol-coordinates.js +2 -2
- package/dist/extractors/symbols-coordinator.d.ts +2 -4
- package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
- package/dist/extractors/symbols-coordinator.js +1 -2
- package/dist/operations/migration/proof-contract-claims.d.ts +23 -10
- package/dist/operations/migration/proof-contract-claims.d.ts.map +1 -1
- package/dist/operations/migration/proof-contract-claims.js +35 -2
- package/dist/operations/migration/schema6.d.ts.map +1 -1
- package/dist/operations/migration/schema6.js +2 -4
- package/dist/operations/migration/symbol-coordinates-refresh.d.ts +3 -2
- package/dist/operations/migration/symbol-coordinates-refresh.d.ts.map +1 -1
- package/dist/operations/migration/symbol-coordinates-refresh.js +4 -3
- package/dist/operations/migration/untrack-symbol-coordinates.d.ts +23 -0
- package/dist/operations/migration/untrack-symbol-coordinates.d.ts.map +1 -0
- package/dist/operations/migration/untrack-symbol-coordinates.js +67 -0
- package/dist/operations/modeling/requirement-modeler.d.ts.map +1 -1
- package/dist/operations/modeling/requirement-modeler.js +48 -1
- package/dist/operations/modeling/requirement-types.d.ts +2 -1
- package/dist/operations/modeling/requirement-types.d.ts.map +1 -1
- package/dist/operations/modeling/requirement-utils.d.ts +1 -1
- package/dist/operations/modeling/requirement-utils.d.ts.map +1 -1
- package/dist/operations/modeling/requirement-utils.js +8 -1
- package/dist/operations/mutation/source-authoring.d.ts.map +1 -1
- package/dist/operations/mutation/source-authoring.js +39 -20
- package/dist/operations/proof/claim-bindings.d.ts +18 -0
- package/dist/operations/proof/claim-bindings.d.ts.map +1 -1
- package/dist/operations/proof/claim-bindings.js +157 -4
- package/dist/operations/proof/code-certificates.d.ts +34 -14
- package/dist/operations/proof/code-certificates.d.ts.map +1 -1
- package/dist/operations/proof/code-certificates.js +266 -157
- package/dist/operations/proof/code-models.d.ts +96 -0
- package/dist/operations/proof/code-models.d.ts.map +1 -0
- package/dist/operations/proof/code-models.js +601 -0
- package/dist/operations/proof/code-runner.d.ts +40 -0
- package/dist/operations/proof/code-runner.d.ts.map +1 -0
- package/dist/operations/proof/code-runner.js +164 -0
- package/dist/operations/proof/code-scope.d.ts +3 -0
- package/dist/operations/proof/code-scope.d.ts.map +1 -1
- package/dist/operations/proof/code-scope.js +26 -2
- package/dist/operations/proof/ingest-proof.d.ts.map +1 -1
- package/dist/operations/proof/ingest-proof.js +2 -1
- package/dist/operations/proof/regular-language.d.ts +89 -0
- package/dist/operations/proof/regular-language.d.ts.map +1 -0
- package/dist/operations/proof/regular-language.js +943 -0
- package/dist/operations/proof/source-code-readers.d.ts +12 -0
- package/dist/operations/proof/source-code-readers.d.ts.map +1 -0
- package/dist/operations/proof/source-code-readers.js +699 -0
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.js +2 -1
- package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/strict-count-rules.js +8 -2
- package/dist/operations/semantic-advisor/strict-rules.d.ts +8 -0
- package/dist/operations/semantic-advisor/strict-rules.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/strict-rules.js +231 -1
- package/dist/operations/semantic-advisor/types.d.ts +1 -1
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +13 -3
- package/dist/public/operations/catalog.d.ts +156 -13
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/evidence-floor.js +1 -1
- package/dist/public/operations/proof-contract-claims.js +1 -1
- package/dist/public/operations/specs/composite.d.ts +16 -3
- package/dist/public/operations/specs/composite.d.ts.map +1 -1
- package/dist/public/operations/specs/modeling.d.ts +16 -3
- package/dist/public/operations/specs/modeling.d.ts.map +1 -1
- package/dist/public/operations/specs/modeling.js +22 -3
- package/dist/public/operations/specs/mutation-schemas.d.ts +140 -10
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +14 -3
- package/dist/public/operations/specs/upsert.d.ts +140 -10
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/proof-certificates.d.ts +75 -1
- package/dist/public/proof-certificates.d.ts.map +1 -1
- package/dist/public/proof-certificates.js +212 -0
- package/dist/public/proof-protocol.d.ts +143 -10
- package/dist/public/proof-protocol.d.ts.map +1 -1
- package/dist/public/proof-protocol.js +301 -16
- package/dist/public/proof-receipt.d.ts +4 -3
- package/dist/public/proof-receipt.d.ts.map +1 -1
- package/dist/public/proof-receipt.js +6 -1
- package/dist/public/proof-sources.d.ts +102 -0
- package/dist/public/proof-sources.d.ts.map +1 -0
- package/dist/public/proof-sources.js +1292 -0
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +21 -1
- package/dist/public/skills/kibi-commit-review/SKILL.md +8 -8
- package/dist/public/skills/kibi-commit-review/resources/staged-gate.md +6 -6
- package/dist/public/skills/kibi-decisions/SKILL.md +5 -2
- package/dist/public/skills/kibi-decisions/resources/decision-records.md +4 -1
- package/dist/public/skills/kibi-freshness/SKILL.md +2 -2
- package/dist/public/skills/kibi-traceability/SKILL.md +3 -2
- package/dist/public/skills/kibi-usage/SKILL.md +5 -3
- package/dist/public/skills/kibi-usage/resources/proof.md +105 -9
- package/dist/report/html-report.css +45 -10
- package/dist/report/html-report.d.ts.map +1 -1
- package/dist/report/html-report.js +74 -17
- package/dist/report/report-view.d.ts +1 -1
- package/dist/report/report-view.d.ts.map +1 -1
- package/dist/report/report-view.js +1 -0
- package/dist/schemas/entity.schema.json +199 -8
- package/dist/traceability/evidence-model.d.ts +13 -12
- package/dist/traceability/evidence-model.d.ts.map +1 -1
- package/dist/traceability/evidence-model.js +1 -1
- package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
- package/dist/traceability/staged-diagnostics.js +24 -20
- package/dist/traceability/staged-impact-contract.d.ts +4 -4
- package/dist/traceability/staged-impact-contract.js +9 -9
- package/dist/traceability/staged-symbols-manifest.d.ts +11 -3
- package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
- package/dist/traceability/staged-symbols-manifest.js +47 -140
- package/dist/types/entities.d.ts +1 -1
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/rule-registry.generated.d.ts +1 -1
- package/dist/utils/rule-registry.generated.js +1 -1
- package/dist/utils/schema-version.d.ts +1 -1
- package/dist/utils/schema-version.d.ts.map +1 -1
- package/dist/utils/schema-version.js +3 -1
- package/dist/utils/strict-modeling.d.ts +3 -2
- package/dist/utils/strict-modeling.d.ts.map +1 -1
- package/dist/utils/strict-modeling.js +37 -4
- package/dist/workspace-cwd.d.ts +15 -0
- package/dist/workspace-cwd.d.ts.map +1 -0
- package/dist/workspace-cwd.js +86 -0
- package/package.json +2 -2
- package/schema/validation.pl +3 -1
- package/src/public/operations/evidence-floor.ts +1 -1
- package/src/public/operations/proof-contract-claims.ts +1 -1
- package/src/public/operations/specs/modeling.ts +24 -5
- package/src/public/operations/specs/mutation-schemas.ts +14 -3
- package/src/public/proof-certificates.ts +296 -1
- package/src/public/proof-protocol-types.d.ts +54 -2
- package/src/public/proof-protocol.ts +396 -20
- package/src/public/proof-receipt.ts +8 -2
- package/src/public/proof-sources.ts +1656 -0
- package/src/public/schemas/entity.ts +32 -2
- package/src/public/skills/kibi-commit-review/SKILL.md +8 -8
- package/src/public/skills/kibi-commit-review/resources/staged-gate.md +6 -6
- package/src/public/skills/kibi-decisions/SKILL.md +5 -2
- package/src/public/skills/kibi-decisions/resources/decision-records.md +4 -1
- package/src/public/skills/kibi-freshness/SKILL.md +2 -2
- package/src/public/skills/kibi-traceability/SKILL.md +3 -2
- package/src/public/skills/kibi-usage/SKILL.md +5 -3
- package/src/public/skills/kibi-usage/resources/proof.md +105 -9
- package/src/schemas/entity.schema.json +199 -8
- package/dist/traceability/reviewed-coordinate-refresh.d.ts +0 -10
- package/dist/traceability/reviewed-coordinate-refresh.d.ts.map +0 -1
- package/dist/traceability/reviewed-coordinate-refresh.js +0 -49
|
@@ -625,11 +625,24 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
625
625
|
};
|
|
626
626
|
readonly operator: {
|
|
627
627
|
readonly type: "string";
|
|
628
|
-
readonly enum: readonly ["eq", "gt", "gte", "lt", "lte", "neq", "bool", "polarity"];
|
|
629
|
-
readonly description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). Example: 'eq'.";
|
|
628
|
+
readonly enum: readonly ["eq", "gt", "gte", "lt", "lte", "neq", "bool", "polarity", "matches", "includes", "subset_of", "excludes"];
|
|
629
|
+
readonly description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). A set claim takes a list value with eq (exactly these), includes (at least these), subset_of (only these) or excludes (none of these); matches takes a regular expression string. Example: 'eq'.";
|
|
630
630
|
};
|
|
631
631
|
readonly value: {
|
|
632
|
-
readonly
|
|
632
|
+
readonly anyOf: readonly [{
|
|
633
|
+
readonly type: "string";
|
|
634
|
+
}, {
|
|
635
|
+
readonly type: "number";
|
|
636
|
+
}, {
|
|
637
|
+
readonly type: "boolean";
|
|
638
|
+
}, {
|
|
639
|
+
readonly type: "array";
|
|
640
|
+
readonly items: {
|
|
641
|
+
readonly type: "string";
|
|
642
|
+
};
|
|
643
|
+
readonly minItems: 1;
|
|
644
|
+
}];
|
|
645
|
+
readonly description: "Optional extracted semantic claim value: a string, number or boolean, or a list of strings for a set claim. Example: ['requireAuth'] with operator includes.";
|
|
633
646
|
};
|
|
634
647
|
readonly provenance: {
|
|
635
648
|
readonly type: "string";
|
|
@@ -1235,12 +1248,24 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1235
1248
|
};
|
|
1236
1249
|
readonly kind: {
|
|
1237
1250
|
readonly type: "string";
|
|
1238
|
-
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt"];
|
|
1239
|
-
readonly description: "What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic and
|
|
1251
|
+
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
1252
|
+
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.";
|
|
1253
|
+
};
|
|
1254
|
+
readonly source: {
|
|
1255
|
+
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.";
|
|
1256
|
+
readonly type: "object";
|
|
1257
|
+
readonly required: readonly ["reader"];
|
|
1258
|
+
readonly properties: {
|
|
1259
|
+
readonly reader: {
|
|
1260
|
+
readonly type: "string";
|
|
1261
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
readonly additionalProperties: true;
|
|
1240
1265
|
};
|
|
1241
1266
|
readonly domain_source: {
|
|
1242
1267
|
readonly type: "object";
|
|
1243
|
-
readonly description: "exhaustive and typecheck: the symbol that defines the finite domain. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent.";
|
|
1268
|
+
readonly description: "exhaustive and typecheck: the symbol that defines the finite domain (typecheck: also the type whose fields a required_fields fact names). state_machine: the transition table or next-state function. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent.";
|
|
1244
1269
|
readonly required: readonly ["symbol_id"];
|
|
1245
1270
|
readonly properties: {
|
|
1246
1271
|
readonly symbol_id: {
|
|
@@ -1269,7 +1294,7 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1269
1294
|
};
|
|
1270
1295
|
readonly proves: {
|
|
1271
1296
|
readonly type: "array";
|
|
1272
|
-
readonly description: "Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt); a claim with no such derivation is only attested and never counts as proved.";
|
|
1297
|
+
readonly description: "Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt, a rule, predicate or set fact for rule and state_machine, a string fact for regex); a claim with no such derivation is only attested and never counts as proved.";
|
|
1273
1298
|
readonly minItems: 1;
|
|
1274
1299
|
readonly items: {
|
|
1275
1300
|
readonly type: "string";
|
|
@@ -1279,9 +1304,45 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1279
1304
|
};
|
|
1280
1305
|
readonly value_source: {
|
|
1281
1306
|
readonly type: "array";
|
|
1282
|
-
readonly description: "arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base.";
|
|
1307
|
+
readonly description: "arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base. With measure count the value is the size of a list, set, map or object export, so a count claim reads the collection itself. An entry {source, measure: count} counts the members Kibi reads from a project source (routes, tables, environment variables).";
|
|
1283
1308
|
readonly minItems: 1;
|
|
1284
1309
|
readonly items: {
|
|
1310
|
+
readonly type: "object";
|
|
1311
|
+
readonly properties: {
|
|
1312
|
+
readonly symbol_id: {
|
|
1313
|
+
readonly type: "string";
|
|
1314
|
+
readonly minLength: 1;
|
|
1315
|
+
};
|
|
1316
|
+
readonly export: {
|
|
1317
|
+
readonly type: "string";
|
|
1318
|
+
readonly minLength: 1;
|
|
1319
|
+
};
|
|
1320
|
+
readonly source: {
|
|
1321
|
+
readonly type: "object";
|
|
1322
|
+
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.";
|
|
1323
|
+
readonly required: readonly ["reader"];
|
|
1324
|
+
readonly properties: {
|
|
1325
|
+
readonly reader: {
|
|
1326
|
+
readonly type: "string";
|
|
1327
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
readonly additionalProperties: true;
|
|
1331
|
+
};
|
|
1332
|
+
readonly measure: {
|
|
1333
|
+
readonly type: "string";
|
|
1334
|
+
readonly enum: readonly ["value", "count"];
|
|
1335
|
+
readonly description: "value (default for an export): the export is a number. count (the only measure of a source): the number of members of a list, set, map or object export, or of a source.";
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
readonly additionalProperties: false;
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
readonly predicate_source: {
|
|
1342
|
+
readonly type: "object";
|
|
1343
|
+
readonly description: "rule: the code function behind each predicate a claim's rule, predicate or set fact names, keyed by predicate name. Each export takes the predicate's arguments in order and returns a boolean; Kibi calls it on every combination of its argument domains.";
|
|
1344
|
+
readonly minProperties: 1;
|
|
1345
|
+
readonly additionalProperties: {
|
|
1285
1346
|
readonly type: "object";
|
|
1286
1347
|
readonly required: readonly ["symbol_id"];
|
|
1287
1348
|
readonly properties: {
|
|
@@ -1292,11 +1353,93 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1292
1353
|
readonly export: {
|
|
1293
1354
|
readonly type: "string";
|
|
1294
1355
|
readonly minLength: 1;
|
|
1356
|
+
readonly description: "The exported function's name in the symbol's source file. Without it Kibi reads the export named by the symbol's title.";
|
|
1357
|
+
};
|
|
1358
|
+
readonly harness_for: {
|
|
1359
|
+
readonly type: "array";
|
|
1360
|
+
readonly minItems: 1;
|
|
1361
|
+
readonly items: {
|
|
1362
|
+
readonly type: "string";
|
|
1363
|
+
readonly minLength: 1;
|
|
1364
|
+
};
|
|
1365
|
+
readonly description: "The predicate is a test harness that decides the predicate by driving these code symbols (for example by calling the handler with each role). The symbols must be covered_by the test; a claim the harness proves is bound with scope harness.";
|
|
1295
1366
|
};
|
|
1296
1367
|
};
|
|
1297
1368
|
readonly additionalProperties: false;
|
|
1298
1369
|
};
|
|
1299
1370
|
};
|
|
1371
|
+
readonly domains: {
|
|
1372
|
+
readonly type: "object";
|
|
1373
|
+
readonly description: "rule: the finite domain of each argument type, keyed by type name (an array, Set, Map or object export, or a Python list, set, dict or Enum), or {source} for the members Kibi reads from a project source (every route, every table, every environment variable). state_machine with a next-state function: the `state` and `event` domains it is called on.";
|
|
1374
|
+
readonly minProperties: 1;
|
|
1375
|
+
readonly additionalProperties: {
|
|
1376
|
+
readonly anyOf: readonly [{
|
|
1377
|
+
readonly type: "object";
|
|
1378
|
+
readonly required: readonly ["symbol_id"];
|
|
1379
|
+
readonly properties: {
|
|
1380
|
+
readonly symbol_id: {
|
|
1381
|
+
readonly type: "string";
|
|
1382
|
+
readonly minLength: 1;
|
|
1383
|
+
};
|
|
1384
|
+
readonly export: {
|
|
1385
|
+
readonly type: "string";
|
|
1386
|
+
readonly minLength: 1;
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
readonly additionalProperties: false;
|
|
1390
|
+
}, {
|
|
1391
|
+
readonly type: "object";
|
|
1392
|
+
readonly required: readonly ["source"];
|
|
1393
|
+
readonly properties: {
|
|
1394
|
+
readonly source: {
|
|
1395
|
+
readonly type: "object";
|
|
1396
|
+
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.";
|
|
1397
|
+
readonly required: readonly ["reader"];
|
|
1398
|
+
readonly properties: {
|
|
1399
|
+
readonly reader: {
|
|
1400
|
+
readonly type: "string";
|
|
1401
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
readonly additionalProperties: true;
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
readonly additionalProperties: false;
|
|
1408
|
+
}];
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
readonly initial_source: {
|
|
1412
|
+
readonly description: "state_machine: the export holding the initial state (or states), needed for initial_states and reachable_states facts.";
|
|
1413
|
+
readonly type: "object";
|
|
1414
|
+
readonly required: readonly ["symbol_id"];
|
|
1415
|
+
readonly properties: {
|
|
1416
|
+
readonly symbol_id: {
|
|
1417
|
+
readonly type: "string";
|
|
1418
|
+
readonly minLength: 1;
|
|
1419
|
+
};
|
|
1420
|
+
readonly export: {
|
|
1421
|
+
readonly type: "string";
|
|
1422
|
+
readonly minLength: 1;
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
readonly additionalProperties: false;
|
|
1426
|
+
};
|
|
1427
|
+
readonly pattern_source: {
|
|
1428
|
+
readonly description: "regex: the export holding the code's pattern (a RegExp, or a Python re.Pattern) or string constant that a string fact is about.";
|
|
1429
|
+
readonly type: "object";
|
|
1430
|
+
readonly required: readonly ["symbol_id"];
|
|
1431
|
+
readonly properties: {
|
|
1432
|
+
readonly symbol_id: {
|
|
1433
|
+
readonly type: "string";
|
|
1434
|
+
readonly minLength: 1;
|
|
1435
|
+
};
|
|
1436
|
+
readonly export: {
|
|
1437
|
+
readonly type: "string";
|
|
1438
|
+
readonly minLength: 1;
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
readonly additionalProperties: false;
|
|
1442
|
+
};
|
|
1300
1443
|
readonly constraint_source: {
|
|
1301
1444
|
readonly type: "object";
|
|
1302
1445
|
readonly description: "arithmetic and smt: the typed numeric property_value facts the certificate's assumptions come from. Kibi checks the assumptions (or the query's assertions) are exactly these facts' constraints, so the proof is about the knowledge base, not numbers the test chose.";
|
|
@@ -1548,7 +1691,7 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1548
1691
|
};
|
|
1549
1692
|
readonly kind: {
|
|
1550
1693
|
readonly type: "string";
|
|
1551
|
-
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt"];
|
|
1694
|
+
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
1552
1695
|
};
|
|
1553
1696
|
readonly evidence_level: {
|
|
1554
1697
|
readonly type: "string";
|
|
@@ -1590,7 +1733,7 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1590
1733
|
};
|
|
1591
1734
|
readonly scope: {
|
|
1592
1735
|
readonly type: "string";
|
|
1593
|
-
readonly enum: readonly ["code", "intent"];
|
|
1736
|
+
readonly enum: readonly ["code", "source", "harness", "intent"];
|
|
1594
1737
|
};
|
|
1595
1738
|
readonly obligation: {
|
|
1596
1739
|
readonly type: "object";
|
|
@@ -1645,13 +1788,13 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
1645
1788
|
};
|
|
1646
1789
|
readonly operator: {
|
|
1647
1790
|
readonly type: "string";
|
|
1648
|
-
readonly enum: readonly ["eq", "neq", "lt", "lte", "gt", "gte"];
|
|
1649
|
-
readonly description: "Optional comparison operator for property_value facts. Example: 'eq'.";
|
|
1791
|
+
readonly enum: readonly ["eq", "neq", "lt", "lte", "gt", "gte", "matches", "includes", "subset_of", "excludes"];
|
|
1792
|
+
readonly description: "Optional comparison operator for property_value facts. Example: 'eq'. 'matches' (string facts only): value_string is a JavaScript regular expression (u flag) every value must match as a whole. Set facts only: 'includes' means every member of value_set has the property and other members may have it too; 'subset_of' means every member that has the property is in value_set ('every env var the server reads is one of ...'); 'excludes' means no member of value_set has it ('never imports md5'); 'eq' on a set means exactly those members.";
|
|
1650
1793
|
};
|
|
1651
1794
|
readonly value_type: {
|
|
1652
1795
|
readonly type: "string";
|
|
1653
1796
|
readonly enum: readonly ["string", "int", "number", "bool", "set"];
|
|
1654
|
-
readonly description: "Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, value_bool, or value_set (set:
|
|
1797
|
+
readonly description: "Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, value_bool, or value_set (set: a list of members, with operator eq, includes, subset_of or excludes); do not use generic value.";
|
|
1655
1798
|
};
|
|
1656
1799
|
readonly value_string: {
|
|
1657
1800
|
readonly type: "string";
|
|
@@ -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
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBe,CAAC;AAyF9C,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,aAAa,GAClB,qBAAqB,CA+BvB;AAQD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,qBAAqB,GAAG,SAAS,EACvC,IAAI,EAAE,aAAa,GAClB,qBAAqB,CAKvB;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,qBAAqB,CAElE;AAGD,wBAAgB,SAAS,IAAI,SAAS,qBAAqB,EAAE,CAE5D"}
|
|
@@ -60,7 +60,7 @@ function suggestionFor(row) {
|
|
|
60
60
|
return `Run kibi prove for the tests behind ${row.id} so its receipts match the current code, then rerun kibi check --fresh-evidence.`;
|
|
61
61
|
switch (row.requiredEvidence) {
|
|
62
62
|
case "proved":
|
|
63
|
-
return `Prove every applicable claim of ${row.id}${(row.gapDetails?.unprovedClaims ?? []).length > 0 ? ` (unproved: ${(row.gapDetails?.unprovedClaims ?? []).join(", ")})` : ""}: model each as a set fact (prove it with exhaustive or typecheck)
|
|
63
|
+
return `Prove every applicable claim of ${row.id}${(row.gapDetails?.unprovedClaims ?? []).length > 0 ? ` (unproved: ${(row.gapDetails?.unprovedClaims ?? []).join(", ")})` : ""}: model each as a set fact (prove it with exhaustive or typecheck), a numeric fact (arithmetic or smt), a rule, predicate or set fact about a predicate (rule or state_machine) or a string fact (regex), name it in a certificate test's proof_contract.proves, and run kibi prove; kibi proof explain ${row.id} shows each claim's bindings. A claim with no such fact can only be attested, so lower required_evidence to tested with the reason in the requirement if that is enough.`;
|
|
64
64
|
case "tested":
|
|
65
65
|
return `Link ${row.id} to a scenario with an end-to-end test that has a proof contract, run kibi prove, and fix its proof gaps (${row.proofGaps.join(", ") || "none listed"}${gapDetailLines(row).length > 0 ? `; ${gapDetailLines(row).join("; ")}` : ""}); kibi proof explain ${row.id} shows each one. Or lower required_evidence if a person decides it does not need tests.`;
|
|
66
66
|
default:
|
|
@@ -50,7 +50,7 @@ export function proofContractClaimViolations(issues) {
|
|
|
50
50
|
: `${issue.test_id} proves ${issue.claim_key}: ${issue.reason}`,
|
|
51
51
|
suggestion: issue.claim_key === undefined
|
|
52
52
|
? `Add proof_contract.proves to ${issue.test_id} with the claim keys (CLAIM-...) of the requirement its certificate establishes; kibi proof explain on the requirement lists its claims.`
|
|
53
|
-
: `Name a modeled claim of a requirement ${issue.test_id} reaches through its scenarios, grounded by a fact this proof kind can express (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt), or remove ${issue.claim_key} from proves.`,
|
|
53
|
+
: `Name a modeled claim of a requirement ${issue.test_id} reaches through its scenarios, grounded by a fact this proof kind can express (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt, a rule, predicate or set fact for rule or state_machine, a string fact for regex), or remove ${issue.claim_key} from proves.`,
|
|
54
54
|
evidence: {
|
|
55
55
|
testId: issue.test_id,
|
|
56
56
|
...(issue.claim_key === undefined ? {} : { claimKey: issue.claim_key }),
|
|
@@ -204,11 +204,24 @@ export declare const MODEL_ROUTES: {
|
|
|
204
204
|
};
|
|
205
205
|
readonly operator: {
|
|
206
206
|
readonly type: "string";
|
|
207
|
-
readonly enum: readonly ["eq", "gt", "gte", "lt", "lte", "neq", "bool", "polarity"];
|
|
208
|
-
readonly description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). Example: 'eq'.";
|
|
207
|
+
readonly enum: readonly ["eq", "gt", "gte", "lt", "lte", "neq", "bool", "polarity", "matches", "includes", "subset_of", "excludes"];
|
|
208
|
+
readonly description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). A set claim takes a list value with eq (exactly these), includes (at least these), subset_of (only these) or excludes (none of these); matches takes a regular expression string. Example: 'eq'.";
|
|
209
209
|
};
|
|
210
210
|
readonly value: {
|
|
211
|
-
readonly
|
|
211
|
+
readonly anyOf: readonly [{
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
}, {
|
|
214
|
+
readonly type: "number";
|
|
215
|
+
}, {
|
|
216
|
+
readonly type: "boolean";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "array";
|
|
219
|
+
readonly items: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
};
|
|
222
|
+
readonly minItems: 1;
|
|
223
|
+
}];
|
|
224
|
+
readonly description: "Optional extracted semantic claim value: a string, number or boolean, or a list of strings for a set claim. Example: ['requireAuth'] with operator includes.";
|
|
212
225
|
};
|
|
213
226
|
readonly provenance: {
|
|
214
227
|
readonly type: "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/composite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,aAAa,CAAC;AAMlE;;;;;GAKG;AACH,KAAK,QAAQ,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAkB9E,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,IAAI,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAqBW,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAwBY,CAAC"}
|
|
@@ -40,11 +40,24 @@ export declare const modelRequirementSpec: {
|
|
|
40
40
|
};
|
|
41
41
|
readonly operator: {
|
|
42
42
|
readonly type: "string";
|
|
43
|
-
readonly enum: readonly ["eq", "gt", "gte", "lt", "lte", "neq", "bool", "polarity"];
|
|
44
|
-
readonly description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). Example: 'eq'.";
|
|
43
|
+
readonly enum: readonly ["eq", "gt", "gte", "lt", "lte", "neq", "bool", "polarity", "matches", "includes", "subset_of", "excludes"];
|
|
44
|
+
readonly description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). A set claim takes a list value with eq (exactly these), includes (at least these), subset_of (only these) or excludes (none of these); matches takes a regular expression string. Example: 'eq'.";
|
|
45
45
|
};
|
|
46
46
|
readonly value: {
|
|
47
|
-
readonly
|
|
47
|
+
readonly anyOf: readonly [{
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "number";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "boolean";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "array";
|
|
55
|
+
readonly items: {
|
|
56
|
+
readonly type: "string";
|
|
57
|
+
};
|
|
58
|
+
readonly minItems: 1;
|
|
59
|
+
}];
|
|
60
|
+
readonly description: "Optional extracted semantic claim value: a string, number or boolean, or a list of strings for a set claim. Example: ['requireAuth'] with operator includes.";
|
|
48
61
|
};
|
|
49
62
|
readonly provenance: {
|
|
50
63
|
readonly type: "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modeling.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/modeling.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EACxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAGL,wBAAwB,EACzB,MAAM,oDAAoD,CAAC;AAG5D,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"modeling.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/modeling.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EACxB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAGL,wBAAwB,EACzB,MAAM,oDAAoD,CAAC;AAG5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFjC,CAAC"}
|
|
@@ -38,11 +38,30 @@ export const modelRequirementSpec = {
|
|
|
38
38
|
},
|
|
39
39
|
operator: {
|
|
40
40
|
type: "string",
|
|
41
|
-
enum: [
|
|
42
|
-
|
|
41
|
+
enum: [
|
|
42
|
+
"eq",
|
|
43
|
+
"gt",
|
|
44
|
+
"gte",
|
|
45
|
+
"lt",
|
|
46
|
+
"lte",
|
|
47
|
+
"neq",
|
|
48
|
+
"bool",
|
|
49
|
+
"polarity",
|
|
50
|
+
"matches",
|
|
51
|
+
"includes",
|
|
52
|
+
"subset_of",
|
|
53
|
+
"excludes",
|
|
54
|
+
],
|
|
55
|
+
description: "Optional extracted semantic claim operator. Use gt/lt for strict bounds ('greater than zero' is gt 0, not gte 0). A set claim takes a list value with eq (exactly these), includes (at least these), subset_of (only these) or excludes (none of these); matches takes a regular expression string. Example: 'eq'.",
|
|
43
56
|
},
|
|
44
57
|
value: {
|
|
45
|
-
|
|
58
|
+
anyOf: [
|
|
59
|
+
{ type: "string" },
|
|
60
|
+
{ type: "number" },
|
|
61
|
+
{ type: "boolean" },
|
|
62
|
+
{ type: "array", items: { type: "string" }, minItems: 1 },
|
|
63
|
+
],
|
|
64
|
+
description: "Optional extracted semantic claim value: a string, number or boolean, or a list of strings for a set claim. Example: ['requireAuth'] with operator includes.",
|
|
46
65
|
},
|
|
47
66
|
provenance: {
|
|
48
67
|
type: "string",
|