kibi-cli 2.31.1 → 2.35.1
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-register-proof.d.ts.map +1 -1
- package/dist/cli-register-proof.js +19 -7
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +2 -0
- 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/check.d.ts +1 -0
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +14 -5
- package/dist/commands/discovery-table.d.ts.map +1 -1
- package/dist/commands/discovery-table.js +51 -4
- package/dist/commands/doctor.js +19 -4
- 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 +109 -5
- package/dist/commands/prove.d.ts +48 -1
- package/dist/commands/prove.d.ts.map +1 -1
- package/dist/commands/prove.js +293 -8
- package/dist/commands/report.d.ts +1 -0
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +70 -5
- package/dist/commands/signoff.d.ts.map +1 -1
- package/dist/commands/signoff.js +20 -1
- 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 +106 -17
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +16 -5
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +19 -0
- package/dist/diagnostics.js +1 -1
- package/dist/engine.js +1 -1
- package/dist/extractors/markdown.d.ts +4 -2
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +17 -0
- 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/bootstrap/candidate-helpers.d.ts +3 -0
- package/dist/operations/bootstrap/candidate-helpers.d.ts.map +1 -1
- package/dist/operations/bootstrap/candidate-helpers.js +4 -0
- package/dist/operations/migration/evidence-floor.d.ts +41 -0
- package/dist/operations/migration/evidence-floor.d.ts.map +1 -0
- package/dist/operations/migration/evidence-floor.js +230 -0
- package/dist/operations/migration/proof-contract-claims.d.ts +72 -0
- package/dist/operations/migration/proof-contract-claims.d.ts.map +1 -0
- package/dist/operations/migration/proof-contract-claims.js +215 -0
- package/dist/operations/migration/schema6.d.ts +6 -0
- package/dist/operations/migration/schema6.d.ts.map +1 -1
- package/dist/operations/migration/schema6.js +92 -0
- 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/omitted-properties.d.ts +11 -0
- package/dist/operations/mutation/omitted-properties.d.ts.map +1 -0
- package/dist/operations/mutation/omitted-properties.js +76 -0
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +1 -0
- package/dist/operations/mutation/source-authoring.d.ts.map +1 -1
- package/dist/operations/mutation/source-authoring.js +39 -20
- package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
- package/dist/operations/mutation/strict-fact.js +6 -2
- package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-granularity.js +5 -3
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +7 -1
- package/dist/operations/mutation/validation.d.ts +2 -0
- package/dist/operations/mutation/validation.d.ts.map +1 -1
- package/dist/operations/mutation/validation.js +4 -0
- package/dist/operations/proof/claim-bindings.d.ts +41 -0
- package/dist/operations/proof/claim-bindings.d.ts.map +1 -0
- package/dist/operations/proof/claim-bindings.js +364 -0
- package/dist/operations/proof/code-certificates.d.ts +155 -0
- package/dist/operations/proof/code-certificates.d.ts.map +1 -0
- package/dist/operations/proof/code-certificates.js +894 -0
- 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 +14 -1
- package/dist/operations/proof/code-scope.d.ts.map +1 -1
- package/dist/operations/proof/code-scope.js +44 -2
- package/dist/operations/proof/compact-receipts.d.ts.map +1 -1
- package/dist/operations/proof/compact-receipts.js +4 -3
- package/dist/operations/proof/explain.d.ts +32 -0
- package/dist/operations/proof/explain.d.ts.map +1 -1
- package/dist/operations/proof/explain.js +91 -0
- package/dist/operations/proof/ingest-proof.d.ts +9 -1
- package/dist/operations/proof/ingest-proof.d.ts.map +1 -1
- package/dist/operations/proof/ingest-proof.js +42 -2
- package/dist/operations/proof/receipt-compaction.d.ts +2 -0
- package/dist/operations/proof/receipt-compaction.d.ts.map +1 -1
- package/dist/operations/proof/receipt-compaction.js +6 -2
- 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/shared.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/shared.js +4 -0
- 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 +234 -4
- package/dist/operations/semantic-advisor/types.d.ts +3 -2
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/plugins/approved-source-analyzers.generated.d.ts +6 -6
- package/dist/plugins/approved-source-analyzers.generated.js +6 -6
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +13 -3
- package/dist/proof/command-test-report.d.ts +4 -3
- package/dist/proof/command-test-report.d.ts.map +1 -1
- package/dist/proof/command-test-report.js +4 -10
- package/dist/proof/evaluate.d.ts.map +1 -1
- package/dist/proof/evaluate.js +18 -2
- package/dist/proof/inspect.d.ts.map +1 -1
- package/dist/proof/inspect.js +58 -0
- package/dist/proof/producers/playwright-reporter.d.ts +3 -0
- package/dist/proof/producers/playwright-reporter.d.ts.map +1 -1
- package/dist/proof/producers/playwright-reporter.js +25 -2
- package/dist/proof/step-runner.d.ts +36 -0
- package/dist/proof/step-runner.d.ts.map +1 -0
- package/dist/proof/step-runner.js +234 -0
- package/dist/public/evidence-levels.d.ts +12 -0
- package/dist/public/evidence-levels.d.ts.map +1 -0
- package/dist/public/evidence-levels.js +19 -0
- package/dist/public/impact/coverage-depth-quality.d.ts +7 -0
- package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
- package/dist/public/impact/coverage-depth-quality.js +59 -0
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +3 -1
- package/dist/public/operations/catalog.d.ts +315 -11
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/check-executor.d.ts +2 -0
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +6 -0
- package/dist/public/operations/evidence-floor.d.ts +48 -0
- package/dist/public/operations/evidence-floor.d.ts.map +1 -0
- package/dist/public/operations/evidence-floor.js +143 -0
- package/dist/public/operations/migration-plan.d.ts +19 -5
- package/dist/public/operations/migration-plan.d.ts.map +1 -1
- package/dist/public/operations/migration-plan.js +22 -5
- package/dist/public/operations/node-ports.d.ts.map +1 -1
- package/dist/public/operations/node-ports.js +4 -1
- package/dist/public/operations/proof-contract-claims.d.ts +26 -0
- package/dist/public/operations/proof-contract-claims.d.ts.map +1 -0
- package/dist/public/operations/proof-contract-claims.js +71 -0
- package/dist/public/operations/specs/check-rules.generated.d.ts +1 -1
- package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -1
- package/dist/public/operations/specs/check-rules.generated.js +3 -1
- package/dist/public/operations/specs/check.d.ts +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 +289 -7
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +28 -4
- package/dist/public/operations/specs/proof.d.ts +9 -0
- package/dist/public/operations/specs/proof.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.js +19 -10
- package/dist/public/operations/specs/upsert.d.ts +289 -7
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/proof-certificates.d.ts +163 -0
- package/dist/public/proof-certificates.d.ts.map +1 -0
- package/dist/public/proof-certificates.js +419 -0
- package/dist/public/proof-protocol.d.ts +259 -3
- package/dist/public/proof-protocol.d.ts.map +1 -1
- package/dist/public/proof-protocol.js +524 -3
- package/dist/public/proof-receipt.d.ts +90 -6
- package/dist/public/proof-receipt.d.ts.map +1 -1
- package/dist/public/proof-receipt.js +88 -7
- 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 +39 -2
- package/dist/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/dist/public/skills/kibi-commit-review/SKILL.md +8 -8
- package/dist/public/skills/kibi-commit-review/resources/staged-gate.md +12 -7
- package/dist/public/skills/kibi-decisions/SKILL.md +13 -2
- package/dist/public/skills/kibi-decisions/resources/decision-records.md +9 -1
- package/dist/public/skills/kibi-freshness/SKILL.md +5 -1
- package/dist/public/skills/kibi-traceability/SKILL.md +12 -1
- package/dist/public/skills/kibi-usage/SKILL.md +8 -4
- package/dist/public/skills/kibi-usage/resources/proof.md +221 -20
- package/dist/public/skills/kibi-usage/resources/workflows.md +4 -4
- package/dist/report/html-report.css +83 -11
- package/dist/report/html-report.d.ts +8 -0
- package/dist/report/html-report.d.ts.map +1 -1
- package/dist/report/html-report.js +214 -22
- package/dist/report/report-view.d.ts +2 -2
- package/dist/report/report-view.d.ts.map +1 -1
- package/dist/report/report-view.js +8 -0
- package/dist/schemas/entity.schema.json +404 -5
- package/dist/search-answer.d.ts.map +1 -1
- package/dist/search-answer.js +1 -0
- package/dist/signoff/html.d.ts.map +1 -1
- package/dist/signoff/html.js +3 -0
- package/dist/signoff/markdown.d.ts.map +1 -1
- package/dist/signoff/markdown.js +3 -0
- package/dist/signoff/model.d.ts +20 -0
- package/dist/signoff/model.d.ts.map +1 -1
- package/dist/signoff/model.js +20 -1
- 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/impact-knowledge.d.ts.map +1 -1
- package/dist/traceability/impact-knowledge.js +1 -0
- 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/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +1 -0
- package/dist/types/entities.d.ts +5 -2
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/merge-driver-setup.d.ts +8 -1
- package/dist/utils/merge-driver-setup.d.ts.map +1 -1
- package/dist/utils/merge-driver-setup.js +23 -2
- package/dist/utils/rule-registry.generated.d.ts +10 -0
- package/dist/utils/rule-registry.generated.d.ts.map +1 -1
- package/dist/utils/rule-registry.generated.js +12 -0
- 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 +7 -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 +6 -2
- package/schema/entities.pl +6 -0
- package/schema/validation.pl +7 -2
- package/src/public/evidence-levels.ts +23 -0
- package/src/public/impact/coverage-depth-quality.ts +73 -0
- package/src/public/impact/full-kb-quality.ts +6 -1
- package/src/public/operations/check-executor.ts +13 -0
- package/src/public/operations/evidence-floor.ts +203 -0
- package/src/public/operations/migration-plan.ts +39 -6
- package/src/public/operations/node-ports.ts +3 -1
- package/src/public/operations/proof-contract-claims.ts +103 -0
- package/src/public/operations/specs/check-rules.generated.ts +3 -1
- package/src/public/operations/specs/modeling.ts +24 -5
- package/src/public/operations/specs/mutation-schemas.ts +30 -4
- package/src/public/operations/specs/reporting.ts +20 -10
- package/src/public/proof-certificates.ts +566 -0
- package/src/public/proof-protocol-types.d.ts +69 -1
- package/src/public/proof-protocol.ts +694 -3
- package/src/public/proof-receipt.ts +133 -7
- package/src/public/proof-sources.ts +1656 -0
- package/src/public/schemas/entity.ts +51 -3
- package/src/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/src/public/skills/kibi-commit-review/SKILL.md +8 -8
- package/src/public/skills/kibi-commit-review/resources/staged-gate.md +12 -7
- package/src/public/skills/kibi-decisions/SKILL.md +13 -2
- package/src/public/skills/kibi-decisions/resources/decision-records.md +9 -1
- package/src/public/skills/kibi-freshness/SKILL.md +5 -1
- package/src/public/skills/kibi-traceability/SKILL.md +12 -1
- package/src/public/skills/kibi-usage/SKILL.md +8 -4
- package/src/public/skills/kibi-usage/resources/proof.md +221 -20
- package/src/public/skills/kibi-usage/resources/workflows.md +4 -4
- package/src/schemas/entity.schema.json +404 -5
- package/dist/commands/proof-impact.d.ts +0 -7
- package/dist/commands/proof-impact.d.ts.map +0 -1
- package/dist/commands/proof-impact.js +0 -39
- package/dist/operations/proof/baseline-diff.d.ts +0 -41
- package/dist/operations/proof/baseline-diff.d.ts.map +0 -1
- package/dist/operations/proof/baseline-diff.js +0 -153
- package/dist/operations/proof/impact.d.ts +0 -51
- package/dist/operations/proof/impact.d.ts.map +0 -1
- package/dist/operations/proof/impact.js +0 -138
- 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
|
@@ -123,6 +123,11 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
123
123
|
readonly enum: readonly ["firm", "default", "exploratory"];
|
|
124
124
|
readonly description: "req/adr only. firm = a human stated it as a rule (needs origin.ref to their words); its title, meaning or firmness changes only with new human words (a new origin.ref) or by supersede. default = delegated or agent choice; exploratory = flagged guess. Absent = default if an agent wrote it, else firm.";
|
|
125
125
|
};
|
|
126
|
+
readonly required_evidence: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly enum: readonly ["proved", "tested", "asserted", "unverified"];
|
|
129
|
+
readonly description: "Requirement-only. Weakest evidence level it accepts; the evidence-floor rule fails below it. Absent = tested if firm, else unverified.";
|
|
130
|
+
};
|
|
126
131
|
readonly rationale: {
|
|
127
132
|
readonly type: "string";
|
|
128
133
|
readonly minLength: 1;
|
|
@@ -202,7 +207,217 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
202
207
|
};
|
|
203
208
|
readonly success_policy: {
|
|
204
209
|
readonly type: "string";
|
|
205
|
-
readonly enum: readonly ["all_required_first_attempt"];
|
|
210
|
+
readonly enum: readonly ["all_required_first_attempt", "own_results_first_attempt"];
|
|
211
|
+
};
|
|
212
|
+
readonly kind: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
215
|
+
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.";
|
|
216
|
+
};
|
|
217
|
+
readonly source: {
|
|
218
|
+
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.";
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly required: readonly ["reader"];
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly reader: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
readonly additionalProperties: true;
|
|
228
|
+
};
|
|
229
|
+
readonly domain_source: {
|
|
230
|
+
readonly type: "object";
|
|
231
|
+
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.";
|
|
232
|
+
readonly required: readonly ["symbol_id"];
|
|
233
|
+
readonly properties: {
|
|
234
|
+
readonly symbol_id: {
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
readonly minLength: 1;
|
|
237
|
+
};
|
|
238
|
+
readonly export: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly minLength: 1;
|
|
241
|
+
readonly description: "The name the domain is exported under in the symbol's source file, when the symbol's title is not that name.";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly additionalProperties: false;
|
|
245
|
+
};
|
|
246
|
+
readonly witness: {
|
|
247
|
+
readonly type: "object";
|
|
248
|
+
readonly description: "typecheck: the repository-relative witness file Kibi compiles (an exhaustive switch ending in never, or a mapped type over the domain).";
|
|
249
|
+
readonly required: readonly ["path"];
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly path: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly minLength: 1;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly additionalProperties: false;
|
|
257
|
+
};
|
|
258
|
+
readonly proves: {
|
|
259
|
+
readonly type: "array";
|
|
260
|
+
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.";
|
|
261
|
+
readonly minItems: 1;
|
|
262
|
+
readonly items: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly pattern: "^CLAIM-";
|
|
265
|
+
};
|
|
266
|
+
readonly uniqueItems: true;
|
|
267
|
+
};
|
|
268
|
+
readonly value_source: {
|
|
269
|
+
readonly type: "array";
|
|
270
|
+
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).";
|
|
271
|
+
readonly minItems: 1;
|
|
272
|
+
readonly items: {
|
|
273
|
+
readonly type: "object";
|
|
274
|
+
readonly properties: {
|
|
275
|
+
readonly symbol_id: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly minLength: 1;
|
|
278
|
+
};
|
|
279
|
+
readonly export: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly minLength: 1;
|
|
282
|
+
};
|
|
283
|
+
readonly source: {
|
|
284
|
+
readonly type: "object";
|
|
285
|
+
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.";
|
|
286
|
+
readonly required: readonly ["reader"];
|
|
287
|
+
readonly properties: {
|
|
288
|
+
readonly reader: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
readonly additionalProperties: true;
|
|
294
|
+
};
|
|
295
|
+
readonly measure: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly enum: readonly ["value", "count"];
|
|
298
|
+
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.";
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
readonly additionalProperties: false;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly predicate_source: {
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
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.";
|
|
307
|
+
readonly minProperties: 1;
|
|
308
|
+
readonly additionalProperties: {
|
|
309
|
+
readonly type: "object";
|
|
310
|
+
readonly required: readonly ["symbol_id"];
|
|
311
|
+
readonly properties: {
|
|
312
|
+
readonly symbol_id: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly minLength: 1;
|
|
315
|
+
};
|
|
316
|
+
readonly export: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly minLength: 1;
|
|
319
|
+
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.";
|
|
320
|
+
};
|
|
321
|
+
readonly harness_for: {
|
|
322
|
+
readonly type: "array";
|
|
323
|
+
readonly minItems: 1;
|
|
324
|
+
readonly items: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly minLength: 1;
|
|
327
|
+
};
|
|
328
|
+
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.";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
readonly additionalProperties: false;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
readonly domains: {
|
|
335
|
+
readonly type: "object";
|
|
336
|
+
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.";
|
|
337
|
+
readonly minProperties: 1;
|
|
338
|
+
readonly additionalProperties: {
|
|
339
|
+
readonly anyOf: readonly [{
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly required: readonly ["symbol_id"];
|
|
342
|
+
readonly properties: {
|
|
343
|
+
readonly symbol_id: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly minLength: 1;
|
|
346
|
+
};
|
|
347
|
+
readonly export: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly minLength: 1;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly additionalProperties: false;
|
|
353
|
+
}, {
|
|
354
|
+
readonly type: "object";
|
|
355
|
+
readonly required: readonly ["source"];
|
|
356
|
+
readonly properties: {
|
|
357
|
+
readonly source: {
|
|
358
|
+
readonly type: "object";
|
|
359
|
+
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.";
|
|
360
|
+
readonly required: readonly ["reader"];
|
|
361
|
+
readonly properties: {
|
|
362
|
+
readonly reader: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly additionalProperties: true;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
readonly additionalProperties: false;
|
|
371
|
+
}];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly initial_source: {
|
|
375
|
+
readonly description: "state_machine: the export holding the initial state (or states), needed for initial_states and reachable_states facts.";
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
readonly required: readonly ["symbol_id"];
|
|
378
|
+
readonly properties: {
|
|
379
|
+
readonly symbol_id: {
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
readonly minLength: 1;
|
|
382
|
+
};
|
|
383
|
+
readonly export: {
|
|
384
|
+
readonly type: "string";
|
|
385
|
+
readonly minLength: 1;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly additionalProperties: false;
|
|
389
|
+
};
|
|
390
|
+
readonly pattern_source: {
|
|
391
|
+
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.";
|
|
392
|
+
readonly type: "object";
|
|
393
|
+
readonly required: readonly ["symbol_id"];
|
|
394
|
+
readonly properties: {
|
|
395
|
+
readonly symbol_id: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly minLength: 1;
|
|
398
|
+
};
|
|
399
|
+
readonly export: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
readonly minLength: 1;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly additionalProperties: false;
|
|
405
|
+
};
|
|
406
|
+
readonly constraint_source: {
|
|
407
|
+
readonly type: "object";
|
|
408
|
+
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.";
|
|
409
|
+
readonly required: readonly ["fact_ids"];
|
|
410
|
+
readonly properties: {
|
|
411
|
+
readonly fact_ids: {
|
|
412
|
+
readonly type: "array";
|
|
413
|
+
readonly minItems: 1;
|
|
414
|
+
readonly items: {
|
|
415
|
+
readonly type: "string";
|
|
416
|
+
readonly minLength: 1;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
readonly additionalProperties: false;
|
|
206
421
|
};
|
|
207
422
|
};
|
|
208
423
|
readonly additionalProperties: false;
|
|
@@ -250,12 +465,12 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
250
465
|
readonly maxItems: 50;
|
|
251
466
|
readonly items: {
|
|
252
467
|
readonly type: "object";
|
|
253
|
-
readonly description: "Kibi-derived kibi.proof-receipt.v1. Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.";
|
|
468
|
+
readonly description: "Kibi-derived kibi.proof-receipt.v2 (kibi.proof-receipt.v1 entries are still read). Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.";
|
|
254
469
|
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"];
|
|
255
470
|
readonly properties: {
|
|
256
471
|
readonly version: {
|
|
257
472
|
readonly type: "string";
|
|
258
|
-
readonly
|
|
473
|
+
readonly enum: readonly ["kibi.proof-receipt.v1", "kibi.proof-receipt.v2"];
|
|
259
474
|
};
|
|
260
475
|
readonly receipt_id: {
|
|
261
476
|
readonly type: "string";
|
|
@@ -437,6 +652,63 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
437
652
|
readonly additionalProperties: false;
|
|
438
653
|
};
|
|
439
654
|
};
|
|
655
|
+
readonly kind: {
|
|
656
|
+
readonly type: "string";
|
|
657
|
+
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
658
|
+
};
|
|
659
|
+
readonly evidence_level: {
|
|
660
|
+
readonly type: "string";
|
|
661
|
+
readonly enum: readonly ["proved", "tested"];
|
|
662
|
+
};
|
|
663
|
+
readonly certificate: {
|
|
664
|
+
readonly type: "object";
|
|
665
|
+
};
|
|
666
|
+
readonly certificate_digest: {
|
|
667
|
+
readonly type: "string";
|
|
668
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
669
|
+
};
|
|
670
|
+
readonly certificate_rejection: {
|
|
671
|
+
readonly type: "string";
|
|
672
|
+
readonly minLength: 1;
|
|
673
|
+
};
|
|
674
|
+
readonly claim_bindings: {
|
|
675
|
+
readonly type: "array";
|
|
676
|
+
readonly description: "Certificate kinds: how the certificate binds to each claim its contract names in proves, judged at ingest. derived means Kibi derived the certificate's obligation from the claim's grounding fact and the certificate satisfies it; attested means no derivation exists and the author vouches for it (never proved); rejected names why.";
|
|
677
|
+
readonly items: {
|
|
678
|
+
readonly type: "object";
|
|
679
|
+
readonly required: readonly ["claim_key", "binding"];
|
|
680
|
+
readonly properties: {
|
|
681
|
+
readonly claim_key: {
|
|
682
|
+
readonly type: "string";
|
|
683
|
+
readonly minLength: 1;
|
|
684
|
+
};
|
|
685
|
+
readonly requirement_id: {
|
|
686
|
+
readonly type: "string";
|
|
687
|
+
readonly minLength: 1;
|
|
688
|
+
};
|
|
689
|
+
readonly fact_id: {
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
readonly minLength: 1;
|
|
692
|
+
};
|
|
693
|
+
readonly binding: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
readonly enum: readonly ["derived", "attested", "rejected"];
|
|
696
|
+
};
|
|
697
|
+
readonly scope: {
|
|
698
|
+
readonly type: "string";
|
|
699
|
+
readonly enum: readonly ["code", "source", "harness", "intent"];
|
|
700
|
+
};
|
|
701
|
+
readonly obligation: {
|
|
702
|
+
readonly type: "object";
|
|
703
|
+
};
|
|
704
|
+
readonly reason: {
|
|
705
|
+
readonly type: "string";
|
|
706
|
+
readonly minLength: 1;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
readonly additionalProperties: false;
|
|
710
|
+
};
|
|
711
|
+
};
|
|
440
712
|
readonly gaps: {
|
|
441
713
|
readonly type: "array";
|
|
442
714
|
readonly items: {
|
|
@@ -479,13 +751,13 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
479
751
|
};
|
|
480
752
|
readonly operator: {
|
|
481
753
|
readonly type: "string";
|
|
482
|
-
readonly enum: readonly ["eq", "neq", "lt", "lte", "gt", "gte"];
|
|
483
|
-
readonly description: "Optional comparison operator for property_value facts. Example: 'eq'.";
|
|
754
|
+
readonly enum: readonly ["eq", "neq", "lt", "lte", "gt", "gte", "matches", "includes", "subset_of", "excludes"];
|
|
755
|
+
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.";
|
|
484
756
|
};
|
|
485
757
|
readonly value_type: {
|
|
486
758
|
readonly type: "string";
|
|
487
|
-
readonly enum: readonly ["string", "int", "number", "bool"];
|
|
488
|
-
readonly description: "Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, or
|
|
759
|
+
readonly enum: readonly ["string", "int", "number", "bool", "set"];
|
|
760
|
+
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.";
|
|
489
761
|
};
|
|
490
762
|
readonly value_string: {
|
|
491
763
|
readonly type: "string";
|
|
@@ -503,6 +775,16 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
503
775
|
readonly type: "boolean";
|
|
504
776
|
readonly description: "Optional boolean value for property_value facts.";
|
|
505
777
|
};
|
|
778
|
+
readonly value_set: {
|
|
779
|
+
readonly type: "array";
|
|
780
|
+
readonly items: {
|
|
781
|
+
readonly type: "string";
|
|
782
|
+
readonly minLength: 1;
|
|
783
|
+
};
|
|
784
|
+
readonly minItems: 1;
|
|
785
|
+
readonly uniqueItems: true;
|
|
786
|
+
readonly description: "Optional exact set of values for property_value facts with value_type set, such as the members a domain must have.";
|
|
787
|
+
};
|
|
506
788
|
readonly unit: {
|
|
507
789
|
readonly type: "string";
|
|
508
790
|
readonly description: "Optional unit for numeric property_value facts.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-schemas.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/mutation-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutation-schemas.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/mutation-schemas.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,gFASf,CAAC;AAWX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmZ3B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;CA8CvB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ENTITY_ORIGIN_SCHEMA } from "../../entity-origin.js";
|
|
2
|
+
import { EVIDENCE_LEVELS } from "../../evidence-levels.js";
|
|
2
3
|
import { PROOF_BINDINGS_SCHEMA, PROOF_CONTRACT_SCHEMA, } from "../../proof-protocol.js";
|
|
3
4
|
import { MAX_PROOF_RECEIPTS, PROOF_RECEIPT_SCHEMA, } from "../../proof-receipt.js";
|
|
4
5
|
export const ENTITY_TYPES = [
|
|
@@ -107,6 +108,11 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
107
108
|
enum: ["firm", "default", "exploratory"],
|
|
108
109
|
description: "req/adr only. firm = a human stated it as a rule (needs origin.ref to their words); its title, meaning or firmness changes only with new human words (a new origin.ref) or by supersede. default = delegated or agent choice; exploratory = flagged guess. Absent = default if an agent wrote it, else firm.",
|
|
109
110
|
},
|
|
111
|
+
required_evidence: {
|
|
112
|
+
type: "string",
|
|
113
|
+
enum: [...EVIDENCE_LEVELS],
|
|
114
|
+
description: "Requirement-only. Weakest evidence level it accepts; the evidence-floor rule fails below it. Absent = tested if firm, else unverified.",
|
|
115
|
+
},
|
|
110
116
|
rationale: {
|
|
111
117
|
type: "string",
|
|
112
118
|
minLength: 1,
|
|
@@ -199,13 +205,24 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
199
205
|
},
|
|
200
206
|
operator: {
|
|
201
207
|
type: "string",
|
|
202
|
-
enum: [
|
|
203
|
-
|
|
208
|
+
enum: [
|
|
209
|
+
"eq",
|
|
210
|
+
"neq",
|
|
211
|
+
"lt",
|
|
212
|
+
"lte",
|
|
213
|
+
"gt",
|
|
214
|
+
"gte",
|
|
215
|
+
"matches",
|
|
216
|
+
"includes",
|
|
217
|
+
"subset_of",
|
|
218
|
+
"excludes",
|
|
219
|
+
],
|
|
220
|
+
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.",
|
|
204
221
|
},
|
|
205
222
|
value_type: {
|
|
206
223
|
type: "string",
|
|
207
|
-
enum: ["string", "int", "number", "bool"],
|
|
208
|
-
description: "Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, or
|
|
224
|
+
enum: ["string", "int", "number", "bool", "set"],
|
|
225
|
+
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.",
|
|
209
226
|
},
|
|
210
227
|
value_string: {
|
|
211
228
|
type: "string",
|
|
@@ -223,6 +240,13 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
223
240
|
type: "boolean",
|
|
224
241
|
description: "Optional boolean value for property_value facts.",
|
|
225
242
|
},
|
|
243
|
+
value_set: {
|
|
244
|
+
type: "array",
|
|
245
|
+
items: { type: "string", minLength: 1 },
|
|
246
|
+
minItems: 1,
|
|
247
|
+
uniqueItems: true,
|
|
248
|
+
description: "Optional exact set of values for property_value facts with value_type set, such as the members a domain must have.",
|
|
249
|
+
},
|
|
226
250
|
unit: {
|
|
227
251
|
type: "string",
|
|
228
252
|
description: "Optional unit for numeric property_value facts.",
|
|
@@ -191,6 +191,15 @@ export declare const ingestProofSpec: {
|
|
|
191
191
|
readonly minLength: 1;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
+
readonly certificates: {
|
|
195
|
+
readonly type: "array";
|
|
196
|
+
readonly description: "kibi.code-certificate.v1 objects the run left for certificate-kind contracts, one per test. Kibi re-checks each before a receipt counts as proved.";
|
|
197
|
+
readonly maxItems: 1000;
|
|
198
|
+
readonly items: {
|
|
199
|
+
readonly type: "object";
|
|
200
|
+
readonly required: readonly ["version", "kind", "test_id"];
|
|
201
|
+
};
|
|
202
|
+
};
|
|
194
203
|
};
|
|
195
204
|
readonly additionalProperties: false;
|
|
196
205
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/proof.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAInD,YAAY,EACV,eAAe,EACf,iBAAiB,GAClB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAG/E,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"proof.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/proof.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAInD,YAAY,EACV,eAAe,EACf,iBAAiB,GAClB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAG/E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporting.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/reporting.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK5D,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,aAAa,CAAC;AAelE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,QAAQ,CAAC,IAAI,CAA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eAAe,CAAC,CAAC,CAiI3C;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FyC,CAAC;AAEnE,wBAAsB,YAAY,CAChC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CA8BxC;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDsC,CAAC"}
|
|
@@ -133,7 +133,7 @@ export async function perContractTestBindings(context) {
|
|
|
133
133
|
if (currentProofBindingMode() !== "per_contract")
|
|
134
134
|
return null;
|
|
135
135
|
const { loadEntities } = await import("../discovery-entities.js");
|
|
136
|
-
const {
|
|
136
|
+
const { currentReceiptBindingHashes, loadCoveredBySymbolsByTest } = await import("../../../operations/proof/code-scope.js");
|
|
137
137
|
// Only the contract, scoped code, and authored source feed the binding
|
|
138
138
|
// hash. The paged projection never materializes receipt histories, which
|
|
139
139
|
// grow without bound and previously overflowed the bounded Prolog output
|
|
@@ -161,14 +161,18 @@ export async function perContractTestBindings(context) {
|
|
|
161
161
|
continue;
|
|
162
162
|
// The same computation ingest uses to write binding_hash. Unreadable or
|
|
163
163
|
// non-markdown documents keep strict snapshot semantics for that test.
|
|
164
|
-
const
|
|
164
|
+
const bindings = await currentReceiptBindingHashes({
|
|
165
165
|
workspaceRoot: context.workspaceRoot,
|
|
166
166
|
readFile: (absolute) => fs.readFile(absolute),
|
|
167
167
|
test,
|
|
168
168
|
coveredBySymbols: coveredBy.get(testId) ?? [],
|
|
169
169
|
});
|
|
170
|
-
if (
|
|
171
|
-
|
|
170
|
+
if (bindings !== undefined) {
|
|
171
|
+
// One hash, or the current and the earlier binding a receipt may carry.
|
|
172
|
+
const value = bindings.length === 1
|
|
173
|
+
? toPrologAtom(bindings[0])
|
|
174
|
+
: `[${bindings.map(toPrologAtom).join(", ")}]`;
|
|
175
|
+
entries.push(`${toPrologAtom(testId)}: ${value}`);
|
|
172
176
|
}
|
|
173
177
|
}
|
|
174
178
|
if (entries.length === 0)
|
|
@@ -207,14 +211,19 @@ export async function executeCoverage(input, context) {
|
|
|
207
211
|
: "unknown";
|
|
208
212
|
const checkedAt = context.clock().toISOString();
|
|
209
213
|
const statuses = (input.statuses ?? []).map((status) => validateCoverageStatus(status));
|
|
210
|
-
|
|
214
|
+
// A status filter judges receipts with the same per-contract binding as
|
|
215
|
+
// the unfiltered report; otherwise its rows and summary disagree with
|
|
216
|
+
// every other proof view.
|
|
217
|
+
const bindingsDict = (input.by ?? "req") === "req"
|
|
211
218
|
? await perContractTestBindings(context)
|
|
212
219
|
: null;
|
|
213
|
-
const goalFor = (limit, offset) => bindingsDict !== null
|
|
214
|
-
? `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, per_contract, ${bindingsDict}, ${input.includeTransitive ?? true}, ${limit}, ${offset}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${PROOF_RECEIPT_MAX_AGE_SECONDS}, JsonString)`
|
|
215
|
-
:
|
|
216
|
-
? `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, ${
|
|
217
|
-
:
|
|
220
|
+
const goalFor = (limit, offset) => bindingsDict !== null && statuses.length > 0
|
|
221
|
+
? `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, ${toPrologList(statuses)}, per_contract, ${bindingsDict}, ${input.includeTransitive ?? true}, ${limit}, ${offset}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${PROOF_RECEIPT_MAX_AGE_SECONDS}, JsonString)`
|
|
222
|
+
: bindingsDict !== null
|
|
223
|
+
? `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, per_contract, ${bindingsDict}, ${input.includeTransitive ?? true}, ${limit}, ${offset}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${PROOF_RECEIPT_MAX_AGE_SECONDS}, JsonString)`
|
|
224
|
+
: statuses.length > 0
|
|
225
|
+
? `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, ${toPrologList(statuses)}, ${input.includeTransitive ?? true}, ${limit}, ${offset}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${PROOF_RECEIPT_MAX_AGE_SECONDS}, JsonString)`
|
|
226
|
+
: `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, ${input.includeTransitive ?? true}, ${limit}, ${offset}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${PROOF_RECEIPT_MAX_AGE_SECONDS}, JsonString)`;
|
|
218
227
|
const payload = await readCoveragePages(requireProlog(context), goalFor, input.limit ?? 100, input.offset ?? 0);
|
|
219
228
|
const rows = (input.by ?? "req") === "req"
|
|
220
229
|
? await addCoordinateRepairEvidence(payload.rows, context)
|