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
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
export declare const PROOF_RUN_VERSION: "kibi.proof-run.v1";
|
|
2
2
|
export declare const PROOF_CONTRACT_VERSION: "kibi.proof-contract.v1";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Receipts Kibi writes. v2 adds the contract's kind, the evidence level the
|
|
5
|
+
* receipt supports, and for certificate kinds the re-checked certificate.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PROOF_RECEIPT_VERSION: "kibi.proof-receipt.v2";
|
|
8
|
+
/** Receipts written before v2; still read, as e2e evidence at tested. */
|
|
9
|
+
export declare const PROOF_RECEIPT_V1_VERSION: "kibi.proof-receipt.v1";
|
|
10
|
+
export declare const PROOF_RECEIPT_VERSIONS: readonly ["kibi.proof-receipt.v1", "kibi.proof-receipt.v2"];
|
|
11
|
+
/** The certificate a certificate-kind proof leaves for Kibi to re-check. */
|
|
12
|
+
export declare const CODE_CERTIFICATE_VERSION: "kibi.code-certificate.v1";
|
|
4
13
|
export declare const PROOF_INTEGRATION_VERSION: "kibi.proof-integration.v1";
|
|
5
14
|
export declare const PROOF_RUN_OUTCOMES: readonly ["passed", "failed", "errored", "cancelled", "timed_out", "interrupted", "no_results"];
|
|
6
15
|
export declare const PROOF_RESULT_OUTCOMES: readonly ["passed", "failed", "timed_out", "skipped", "interrupted", "errored"];
|
|
7
16
|
export declare const PROOF_BINDING_KINDS: readonly ["native_case", "aggregate_run"];
|
|
8
17
|
export declare const ATTEMPTS_STATUS: readonly ["complete", "unavailable"];
|
|
9
18
|
export declare const RUN_FAILURE_PHASES: readonly ["setup", "collection", "execution", "teardown", "infrastructure"];
|
|
10
|
-
|
|
19
|
+
/**
|
|
20
|
+
* `all_required_first_attempt`: the whole run must pass and every obligation's
|
|
21
|
+
* own result must pass on its first attempt.
|
|
22
|
+
* `own_results_first_attempt`: a run whose only failures are other test cases
|
|
23
|
+
* (outcome `failed` in the execution phase) still proves an obligation whose
|
|
24
|
+
* own native-case result passed on its first attempt, so one unrelated
|
|
25
|
+
* failing case does not erase a suite's evidence. Aggregate-run obligations
|
|
26
|
+
* still need the whole run to pass.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SUCCESS_POLICIES: readonly ["all_required_first_attempt", "own_results_first_attempt"];
|
|
29
|
+
/**
|
|
30
|
+
* What a proof contract's checker establishes. Runner kinds (e2e, example,
|
|
31
|
+
* property) sample cases and support tested evidence; certificate kinds
|
|
32
|
+
* (exhaustive, typecheck, arithmetic, smt, rule, state_machine, regex,
|
|
33
|
+
* source) cover every case and support proved evidence once Kibi re-checks
|
|
34
|
+
* the certificate the run left. A source certificate is Kibi's own read of a
|
|
35
|
+
* project source (a JSON or YAML file, a glob, an OpenAPI document, the
|
|
36
|
+
* references the code makes, a data schema, a route table, a validator).
|
|
37
|
+
*/
|
|
38
|
+
export declare const PROOF_KINDS: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
39
|
+
export declare const CERTIFICATE_PROOF_KINDS: readonly ["exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
40
|
+
export type ProofKind = (typeof PROOF_KINDS)[number];
|
|
41
|
+
export declare function isCertificateProofKind(kind: unknown): boolean;
|
|
11
42
|
export type { AttemptsStatus, ProducerProvenance, ProofAttempt, ProofAttempts, ProofBinding, ProofBindingKind, ProofContract, ProofEnvironment, ProofObligation, ProofResult, ProofResultOutcome, ProofRun, ProofRunArtifact, ProofRunOutcome, RunFailurePhase, SuccessPolicy, } from "./proof-protocol-types.js";
|
|
43
|
+
import type { ProofContract } from "./proof-protocol-types.js";
|
|
12
44
|
export declare const PROOF_RESULT_SCHEMA: {
|
|
13
45
|
readonly type: "object";
|
|
14
46
|
readonly description: "One observed proof result. binding distinguishes native-case observations from aggregate-run bindings; attempts must report facts only.";
|
|
@@ -266,6 +298,15 @@ export declare const PROOF_RUN_ARTIFACT_SCHEMA: {
|
|
|
266
298
|
readonly minLength: 1;
|
|
267
299
|
};
|
|
268
300
|
};
|
|
301
|
+
readonly certificates: {
|
|
302
|
+
readonly type: "array";
|
|
303
|
+
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.";
|
|
304
|
+
readonly maxItems: 1000;
|
|
305
|
+
readonly items: {
|
|
306
|
+
readonly type: "object";
|
|
307
|
+
readonly required: readonly ["version", "kind", "test_id"];
|
|
308
|
+
};
|
|
309
|
+
};
|
|
269
310
|
};
|
|
270
311
|
readonly additionalProperties: false;
|
|
271
312
|
};
|
|
@@ -304,7 +345,217 @@ export declare const PROOF_CONTRACT_SCHEMA: {
|
|
|
304
345
|
};
|
|
305
346
|
readonly success_policy: {
|
|
306
347
|
readonly type: "string";
|
|
307
|
-
readonly enum: readonly ["all_required_first_attempt"];
|
|
348
|
+
readonly enum: readonly ["all_required_first_attempt", "own_results_first_attempt"];
|
|
349
|
+
};
|
|
350
|
+
readonly kind: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly enum: readonly ["e2e", "example", "property", "exhaustive", "typecheck", "arithmetic", "smt", "rule", "state_machine", "regex", "source"];
|
|
353
|
+
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.";
|
|
354
|
+
};
|
|
355
|
+
readonly source: {
|
|
356
|
+
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.";
|
|
357
|
+
readonly type: "object";
|
|
358
|
+
readonly required: readonly ["reader"];
|
|
359
|
+
readonly properties: {
|
|
360
|
+
readonly reader: {
|
|
361
|
+
readonly type: "string";
|
|
362
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
readonly additionalProperties: true;
|
|
366
|
+
};
|
|
367
|
+
readonly domain_source: {
|
|
368
|
+
readonly type: "object";
|
|
369
|
+
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.";
|
|
370
|
+
readonly required: readonly ["symbol_id"];
|
|
371
|
+
readonly properties: {
|
|
372
|
+
readonly symbol_id: {
|
|
373
|
+
readonly type: "string";
|
|
374
|
+
readonly minLength: 1;
|
|
375
|
+
};
|
|
376
|
+
readonly export: {
|
|
377
|
+
readonly type: "string";
|
|
378
|
+
readonly minLength: 1;
|
|
379
|
+
readonly description: "The name the domain is exported under in the symbol's source file, when the symbol's title is not that name.";
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
readonly additionalProperties: false;
|
|
383
|
+
};
|
|
384
|
+
readonly witness: {
|
|
385
|
+
readonly type: "object";
|
|
386
|
+
readonly description: "typecheck: the repository-relative witness file Kibi compiles (an exhaustive switch ending in never, or a mapped type over the domain).";
|
|
387
|
+
readonly required: readonly ["path"];
|
|
388
|
+
readonly properties: {
|
|
389
|
+
readonly path: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly minLength: 1;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly additionalProperties: false;
|
|
395
|
+
};
|
|
396
|
+
readonly proves: {
|
|
397
|
+
readonly type: "array";
|
|
398
|
+
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.";
|
|
399
|
+
readonly minItems: 1;
|
|
400
|
+
readonly items: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly pattern: "^CLAIM-";
|
|
403
|
+
};
|
|
404
|
+
readonly uniqueItems: true;
|
|
405
|
+
};
|
|
406
|
+
readonly value_source: {
|
|
407
|
+
readonly type: "array";
|
|
408
|
+
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).";
|
|
409
|
+
readonly minItems: 1;
|
|
410
|
+
readonly items: {
|
|
411
|
+
readonly type: "object";
|
|
412
|
+
readonly properties: {
|
|
413
|
+
readonly symbol_id: {
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
readonly minLength: 1;
|
|
416
|
+
};
|
|
417
|
+
readonly export: {
|
|
418
|
+
readonly type: "string";
|
|
419
|
+
readonly minLength: 1;
|
|
420
|
+
};
|
|
421
|
+
readonly source: {
|
|
422
|
+
readonly type: "object";
|
|
423
|
+
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.";
|
|
424
|
+
readonly required: readonly ["reader"];
|
|
425
|
+
readonly properties: {
|
|
426
|
+
readonly reader: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly additionalProperties: true;
|
|
432
|
+
};
|
|
433
|
+
readonly measure: {
|
|
434
|
+
readonly type: "string";
|
|
435
|
+
readonly enum: readonly ["value", "count"];
|
|
436
|
+
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.";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly additionalProperties: false;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly predicate_source: {
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
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.";
|
|
445
|
+
readonly minProperties: 1;
|
|
446
|
+
readonly additionalProperties: {
|
|
447
|
+
readonly type: "object";
|
|
448
|
+
readonly required: readonly ["symbol_id"];
|
|
449
|
+
readonly properties: {
|
|
450
|
+
readonly symbol_id: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly minLength: 1;
|
|
453
|
+
};
|
|
454
|
+
readonly export: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly minLength: 1;
|
|
457
|
+
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.";
|
|
458
|
+
};
|
|
459
|
+
readonly harness_for: {
|
|
460
|
+
readonly type: "array";
|
|
461
|
+
readonly minItems: 1;
|
|
462
|
+
readonly items: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
readonly minLength: 1;
|
|
465
|
+
};
|
|
466
|
+
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.";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
readonly additionalProperties: false;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly domains: {
|
|
473
|
+
readonly type: "object";
|
|
474
|
+
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.";
|
|
475
|
+
readonly minProperties: 1;
|
|
476
|
+
readonly additionalProperties: {
|
|
477
|
+
readonly anyOf: readonly [{
|
|
478
|
+
readonly type: "object";
|
|
479
|
+
readonly required: readonly ["symbol_id"];
|
|
480
|
+
readonly properties: {
|
|
481
|
+
readonly symbol_id: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
readonly minLength: 1;
|
|
484
|
+
};
|
|
485
|
+
readonly export: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly minLength: 1;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
readonly additionalProperties: false;
|
|
491
|
+
}, {
|
|
492
|
+
readonly type: "object";
|
|
493
|
+
readonly required: readonly ["source"];
|
|
494
|
+
readonly properties: {
|
|
495
|
+
readonly source: {
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
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.";
|
|
498
|
+
readonly required: readonly ["reader"];
|
|
499
|
+
readonly properties: {
|
|
500
|
+
readonly reader: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly enum: readonly ["json", "yaml", "glob", "openapi", "references", "schema", "routes", "validator"];
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
readonly additionalProperties: true;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
readonly additionalProperties: false;
|
|
509
|
+
}];
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
readonly initial_source: {
|
|
513
|
+
readonly description: "state_machine: the export holding the initial state (or states), needed for initial_states and reachable_states facts.";
|
|
514
|
+
readonly type: "object";
|
|
515
|
+
readonly required: readonly ["symbol_id"];
|
|
516
|
+
readonly properties: {
|
|
517
|
+
readonly symbol_id: {
|
|
518
|
+
readonly type: "string";
|
|
519
|
+
readonly minLength: 1;
|
|
520
|
+
};
|
|
521
|
+
readonly export: {
|
|
522
|
+
readonly type: "string";
|
|
523
|
+
readonly minLength: 1;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
readonly additionalProperties: false;
|
|
527
|
+
};
|
|
528
|
+
readonly pattern_source: {
|
|
529
|
+
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.";
|
|
530
|
+
readonly type: "object";
|
|
531
|
+
readonly required: readonly ["symbol_id"];
|
|
532
|
+
readonly properties: {
|
|
533
|
+
readonly symbol_id: {
|
|
534
|
+
readonly type: "string";
|
|
535
|
+
readonly minLength: 1;
|
|
536
|
+
};
|
|
537
|
+
readonly export: {
|
|
538
|
+
readonly type: "string";
|
|
539
|
+
readonly minLength: 1;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly additionalProperties: false;
|
|
543
|
+
};
|
|
544
|
+
readonly constraint_source: {
|
|
545
|
+
readonly type: "object";
|
|
546
|
+
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.";
|
|
547
|
+
readonly required: readonly ["fact_ids"];
|
|
548
|
+
readonly properties: {
|
|
549
|
+
readonly fact_ids: {
|
|
550
|
+
readonly type: "array";
|
|
551
|
+
readonly minItems: 1;
|
|
552
|
+
readonly items: {
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
readonly minLength: 1;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
readonly additionalProperties: false;
|
|
308
559
|
};
|
|
309
560
|
};
|
|
310
561
|
readonly additionalProperties: false;
|
|
@@ -350,5 +601,10 @@ export declare const PROOF_BINDINGS_SCHEMA: {
|
|
|
350
601
|
export declare function proofResultErrors(value: unknown, label: string): string[];
|
|
351
602
|
export declare function proofRunArtifactErrors(value: unknown): string[];
|
|
352
603
|
export declare function proofContractErrors(value: unknown): string[];
|
|
604
|
+
/**
|
|
605
|
+
* The optional contract fields beyond the v1 core, copied only when present
|
|
606
|
+
* so existing contracts keep their hash.
|
|
607
|
+
*/
|
|
608
|
+
export declare function optionalProofContractFields(contract: Record<string, unknown>): Pick<ProofContract, "kind" | "domain_source" | "witness" | "constraint_source" | "value_source" | "proves" | "predicate_source" | "domains" | "initial_source" | "pattern_source" | "source">;
|
|
353
609
|
export declare function proofBindingsErrors(value: unknown): string[];
|
|
354
610
|
//# sourceMappingURL=proof-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof-protocol.d.ts","sourceRoot":"","sources":["../../src/public/proof-protocol.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,EAAG,mBAA4B,CAAC;AAE9D,eAAO,MAAM,sBAAsB,EAAG,wBAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"proof-protocol.d.ts","sourceRoot":"","sources":["../../src/public/proof-protocol.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,EAAG,mBA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