kibi-cli 0.17.0 → 0.19.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-json-command.d.ts +1 -2
- package/dist/cli-json-command.d.ts.map +1 -1
- package/dist/cli-json-command.js +88 -44
- package/dist/cli-operation-loader.d.ts +3 -0
- package/dist/cli-operation-loader.d.ts.map +1 -0
- package/dist/cli-operation-loader.js +58 -0
- package/dist/cli-operation-metadata.d.ts +82 -0
- package/dist/cli-operation-metadata.d.ts.map +1 -0
- package/dist/cli-operation-metadata.js +106 -0
- package/dist/cli-protocol.d.ts +1 -1
- package/dist/cli-protocol.d.ts.map +1 -1
- package/dist/cli-protocol.js +4 -3
- package/dist/cli-register-foundation.d.ts.map +1 -1
- package/dist/cli-register-foundation.js +14 -17
- package/dist/cli-register-json.d.ts +3 -0
- package/dist/cli-register-json.d.ts.map +1 -0
- package/dist/cli-register-json.js +35 -0
- package/dist/cli-register-maintenance.d.ts.map +1 -1
- package/dist/cli-register-maintenance.js +41 -8
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +18 -14
- package/dist/cli-register-skills.d.ts.map +1 -1
- package/dist/cli-register-skills.js +8 -6
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -2
- package/dist/commands/aggregated-checks.d.ts.map +1 -1
- package/dist/commands/aggregated-checks.js +1 -0
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +30 -12
- package/dist/commands/coverage.d.ts +5 -0
- package/dist/commands/coverage.d.ts.map +1 -1
- package/dist/commands/coverage.js +6 -1
- package/dist/commands/discovery-shared.d.ts +2 -1
- package/dist/commands/discovery-shared.d.ts.map +1 -1
- package/dist/commands/discovery-shared.js +35 -13
- package/dist/commands/discovery-table.d.ts.map +1 -1
- package/dist/commands/discovery-table.js +96 -5
- package/dist/commands/engine.d.ts +8 -0
- package/dist/commands/engine.d.ts.map +1 -0
- package/dist/commands/engine.js +100 -0
- package/dist/commands/gaps.js +1 -1
- package/dist/commands/graph.js +1 -1
- package/dist/commands/query.d.ts.map +1 -1
- package/dist/commands/query.js +3 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +3 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +2 -1
- package/dist/commands/sync/cache.d.ts +12 -0
- package/dist/commands/sync/cache.d.ts.map +1 -1
- package/dist/commands/sync/cache.js +38 -1
- package/dist/commands/sync/persistence.d.ts +10 -1
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +276 -43
- package/dist/commands/sync/staging.d.ts +10 -1
- package/dist/commands/sync/staging.d.ts.map +1 -1
- package/dist/commands/sync/staging.js +84 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +521 -27
- package/dist/commands/usage-metrics.d.ts +66 -2
- package/dist/commands/usage-metrics.d.ts.map +1 -1
- package/dist/commands/usage-metrics.js +34 -24
- package/dist/commands/usage-remediation.d.ts +9 -0
- package/dist/commands/usage-remediation.d.ts.map +1 -0
- package/dist/commands/usage-remediation.js +52 -0
- package/dist/engine-daemon.d.ts +3 -0
- package/dist/engine-daemon.d.ts.map +1 -0
- package/dist/engine-daemon.js +34 -0
- package/dist/engine.d.ts +63 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +1256 -0
- package/dist/extractors/markdown.d.ts +8 -0
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +69 -2
- package/dist/extractors/relationships.d.ts +2 -0
- package/dist/extractors/relationships.d.ts.map +1 -1
- package/dist/extractors/relationships.js +15 -17
- package/dist/operations/modeling/logic-modeling.d.ts.map +1 -1
- package/dist/operations/modeling/logic-modeling.js +14 -5
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
- package/dist/operations/modeling/model-requirement.js +27 -2
- package/dist/operations/modeling/predicate-applyplan.d.ts +1 -1
- package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-applyplan.js +18 -6
- package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-inference.js +5 -17
- package/dist/operations/modeling/predicate-loader.js +1 -1
- package/dist/operations/modeling/predicate-types.d.ts +9 -1
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
- package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
- package/dist/operations/modeling/suggest-predicates.js +35 -11
- package/dist/operations/mutation/audit.js +1 -1
- package/dist/operations/mutation/contradictions.d.ts +1 -1
- package/dist/operations/mutation/contradictions.d.ts.map +1 -1
- package/dist/operations/mutation/contradictions.js +23 -18
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +6 -3
- package/dist/operations/mutation/upsert.d.ts +3 -1
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +51 -12
- package/dist/operations/mutation/validate-upsert.d.ts.map +1 -1
- package/dist/operations/mutation/validate-upsert.js +18 -2
- package/dist/operations/mutation/validation.d.ts.map +1 -1
- package/dist/operations/mutation/validation.js +8 -0
- package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analysis-receipt.js +7 -1
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.js +76 -61
- package/dist/operations/semantic-advisor/clauses.d.ts +1 -0
- package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/clauses.js +7 -7
- package/dist/operations/semantic-advisor/ingestion-boundary.d.ts +18 -0
- package/dist/operations/semantic-advisor/ingestion-boundary.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/ingestion-boundary.js +167 -0
- package/dist/operations/semantic-advisor/shared.d.ts +8 -0
- package/dist/operations/semantic-advisor/shared.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/shared.js +37 -3
- package/dist/operations/semantic-advisor/types.d.ts +5 -0
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/prolog/codec.d.ts.map +1 -1
- package/dist/prolog/codec.js +9 -2
- package/dist/prolog.d.ts +14 -0
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +279 -69
- package/dist/public/diagnostic-usage.d.ts +17 -0
- package/dist/public/diagnostic-usage.d.ts.map +1 -0
- package/dist/public/diagnostic-usage.js +152 -0
- package/dist/public/distribution-parity.d.ts +90 -0
- package/dist/public/distribution-parity.d.ts.map +1 -0
- package/dist/public/distribution-parity.js +367 -0
- package/dist/public/impact/full-kb-quality.d.ts +2 -0
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +53 -1
- package/dist/public/impact-diagnostics.d.ts +2 -0
- package/dist/public/impact-diagnostics.d.ts.map +1 -1
- package/dist/public/impact-diagnostics.js +1 -0
- package/dist/public/operations/catalog.d.ts +151 -6
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +4 -0
- package/dist/public/operations/discovery-entities.d.ts.map +1 -1
- package/dist/public/operations/discovery-entities.js +3 -2
- package/dist/public/operations/discovery-executors.d.ts +6 -0
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +58 -5
- package/dist/public/operations/index.d.ts +4 -0
- package/dist/public/operations/index.d.ts.map +1 -1
- package/dist/public/operations/index.js +4 -0
- package/dist/public/operations/legacy-migration-plan.d.ts +113 -0
- package/dist/public/operations/legacy-migration-plan.d.ts.map +1 -0
- package/dist/public/operations/legacy-migration-plan.js +409 -0
- package/dist/public/operations/node-ports.d.ts.map +1 -1
- package/dist/public/operations/node-ports.js +90 -0
- package/dist/public/operations/prolog-json.d.ts.map +1 -1
- package/dist/public/operations/prolog-json.js +14 -4
- package/dist/public/operations/repair-plan.d.ts +184 -0
- package/dist/public/operations/repair-plan.d.ts.map +1 -0
- package/dist/public/operations/repair-plan.js +397 -0
- package/dist/public/operations/runtime-types.d.ts +38 -0
- package/dist/public/operations/runtime-types.d.ts.map +1 -1
- package/dist/public/operations/specs/check.d.ts +2 -2
- package/dist/public/operations/specs/check.js +2 -2
- package/dist/public/operations/specs/discovery.d.ts +1 -1
- package/dist/public/operations/specs/discovery.js +1 -1
- package/dist/public/operations/specs/modeling.d.ts +19 -1
- package/dist/public/operations/specs/modeling.d.ts.map +1 -1
- package/dist/public/operations/specs/modeling.js +16 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts +96 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +40 -1
- package/dist/public/operations/specs/reporting.d.ts +42 -1
- package/dist/public/operations/specs/reporting.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.js +70 -6
- package/dist/public/operations/specs/semantic.js +1 -1
- package/dist/public/operations/specs/upsert.d.ts +96 -1
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/operations/workspace-snapshot.d.ts +10 -0
- package/dist/public/operations/workspace-snapshot.d.ts.map +1 -0
- package/dist/public/operations/workspace-snapshot.js +20 -0
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +43 -1
- package/dist/public/skills/init-kibi/SKILL.md +2 -2
- package/dist/public/skills/kibi-freshness/SKILL.md +2 -2
- package/dist/public/skills/kibi-traceability/SKILL.md +8 -2
- package/dist/public/skills/kibi-usage/SKILL.md +12 -6
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +1 -1
- package/dist/public/skills/kibi-usage/resources/logic-ir.md +1 -1
- package/dist/public/skills/kibi-usage/resources/operation-access.md +1 -1
- package/dist/public/skills/kibi-usage/resources/workflows.md +19 -2
- package/dist/public/telemetry-acceptance.d.ts +89 -0
- package/dist/public/telemetry-acceptance.d.ts.map +1 -0
- package/dist/public/telemetry-acceptance.js +597 -0
- package/dist/public/telemetry-remediation.d.ts +33 -0
- package/dist/public/telemetry-remediation.d.ts.map +1 -0
- package/dist/public/telemetry-remediation.js +257 -0
- package/dist/public/verification-receipt.d.ts +75 -0
- package/dist/public/verification-receipt.d.ts.map +1 -0
- package/dist/public/verification-receipt.js +129 -0
- package/dist/runtime/cli-runtime.d.ts.map +1 -1
- package/dist/runtime/cli-runtime.js +33 -37
- package/dist/schemas/entity.schema.json +96 -2
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +36 -3
- package/dist/types/entities.d.ts +1 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/rule-registry.d.ts +2 -0
- package/dist/utils/rule-registry.d.ts.map +1 -1
- package/package.json +36 -4
- package/src/public/diagnostic-usage.ts +206 -0
- package/src/public/distribution-parity.ts +580 -0
- package/src/public/impact/full-kb-quality.ts +74 -1
- package/src/public/impact-diagnostics.ts +16 -0
- package/src/public/operations/check-executor.ts +4 -0
- package/src/public/operations/discovery-entities.ts +3 -2
- package/src/public/operations/discovery-executors.ts +68 -5
- package/src/public/operations/index.ts +4 -0
- package/src/public/operations/legacy-migration-plan.ts +688 -0
- package/src/public/operations/node-ports.ts +109 -0
- package/src/public/operations/prolog-json.ts +15 -3
- package/src/public/operations/repair-plan.ts +562 -0
- package/src/public/operations/runtime-types.ts +47 -0
- package/src/public/operations/specs/check.ts +2 -2
- package/src/public/operations/specs/discovery.ts +1 -1
- package/src/public/operations/specs/modeling.ts +19 -1
- package/src/public/operations/specs/mutation-schemas.ts +47 -1
- package/src/public/operations/specs/reporting.ts +91 -6
- package/src/public/operations/specs/semantic.ts +1 -1
- package/src/public/operations/workspace-snapshot.ts +28 -0
- package/src/public/schemas/entity.ts +44 -1
- package/src/public/skills/init-kibi/SKILL.md +2 -2
- package/src/public/skills/kibi-freshness/SKILL.md +2 -2
- package/src/public/skills/kibi-traceability/SKILL.md +8 -2
- package/src/public/skills/kibi-usage/SKILL.md +12 -6
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +1 -1
- package/src/public/skills/kibi-usage/resources/logic-ir.md +1 -1
- package/src/public/skills/kibi-usage/resources/operation-access.md +1 -1
- package/src/public/skills/kibi-usage/resources/workflows.md +19 -2
- package/src/public/telemetry-acceptance.ts +859 -0
- package/src/public/telemetry-remediation.ts +462 -0
- package/src/public/verification-receipt.ts +170 -0
- package/src/schemas/entity.schema.json +96 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-types.d.ts","sourceRoot":"","sources":["../../../src/public/operations/runtime-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-types.d.ts","sourceRoot":"","sources":["../../../src/public/operations/runtime-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAA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CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAG1D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CACF,IAAI,EAAE,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC5C,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B,YAAY,CACV,IAAI,EAAE,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC5C,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E;AAGD,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,OAAO,EACpD,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3C,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,OAAO,CAAC,CAclB"}
|
|
@@ -2,7 +2,7 @@ import { executeCheck } from "../check-executor.js";
|
|
|
2
2
|
export declare const checkSpec: {
|
|
3
3
|
readonly name: "kb_check";
|
|
4
4
|
readonly cliName: "check";
|
|
5
|
-
readonly description: "Run KB validation rules and return violations. Use before or after mutations, and after meaningful source edits with impact options to surface symbol granularity and semantic-review diagnostics. Do not use for point lookups. No write side effects. Prefer explicit rules for faster iteration; omit rules for final full validation plus full-KB qualityDiagnostics review.";
|
|
5
|
+
readonly description: "Run KB validation rules and return violations. Use before or after mutations, and after meaningful source edits with impact options to surface symbol granularity and semantic-review diagnostics. Do not use for point lookups. No write side effects. Prefer explicit rules for faster iteration; omit rules for final full validation plus full-KB qualityDiagnostics review, including telemetry acceptance when .kb/usage.log exists.";
|
|
6
6
|
readonly businessInputSchema: {
|
|
7
7
|
readonly type: "object";
|
|
8
8
|
readonly properties: {
|
|
@@ -12,7 +12,7 @@ export declare const checkSpec: {
|
|
|
12
12
|
readonly type: "string";
|
|
13
13
|
readonly enum: readonly ["must-priority-coverage", "symbol-coverage", "symbol-traceability", "no-dangling-refs", "no-cycles", "required-fields", "deprecated-adr-no-successor", "domain-contradictions", "strict-fact-shape", "strict-req-fact-pairing", "predicate-verifiability", "logic-coverage", "rule-safety", "rule-verifiability", "semantic-completeness", "query-plan-safety"];
|
|
14
14
|
};
|
|
15
|
-
readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs all rules plus the full-KB qualityDiagnostics audit scan; if supplied, server preserves scoped validation and skips the full-KB advisory scan.";
|
|
15
|
+
readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs all rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; if supplied, server preserves scoped validation and skips the full-KB advisory scan.";
|
|
16
16
|
};
|
|
17
17
|
readonly sourceFiles: {
|
|
18
18
|
readonly type: "array";
|
|
@@ -2,7 +2,7 @@ import { executeCheck } from "../check-executor.js";
|
|
|
2
2
|
export const checkSpec = {
|
|
3
3
|
name: "kb_check",
|
|
4
4
|
cliName: "check",
|
|
5
|
-
description: "Run KB validation rules and return violations. Use before or after mutations, and after meaningful source edits with impact options to surface symbol granularity and semantic-review diagnostics. Do not use for point lookups. No write side effects. Prefer explicit rules for faster iteration; omit rules for final full validation plus full-KB qualityDiagnostics review.",
|
|
5
|
+
description: "Run KB validation rules and return violations. Use before or after mutations, and after meaningful source edits with impact options to surface symbol granularity and semantic-review diagnostics. Do not use for point lookups. No write side effects. Prefer explicit rules for faster iteration; omit rules for final full validation plus full-KB qualityDiagnostics review, including telemetry acceptance when .kb/usage.log exists.",
|
|
6
6
|
businessInputSchema: {
|
|
7
7
|
type: "object",
|
|
8
8
|
properties: {
|
|
@@ -29,7 +29,7 @@ export const checkSpec = {
|
|
|
29
29
|
"query-plan-safety",
|
|
30
30
|
],
|
|
31
31
|
},
|
|
32
|
-
description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs all rules plus the full-KB qualityDiagnostics audit scan; if supplied, server preserves scoped validation and skips the full-KB advisory scan.",
|
|
32
|
+
description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, rule-safety, rule-verifiability, semantic-completeness, query-plan-safety. If omitted, server runs all rules plus the full-KB qualityDiagnostics audit scan, including usage telemetry acceptance when evidence exists; if supplied, server preserves scoped validation and skips the full-KB advisory scan.",
|
|
33
33
|
},
|
|
34
34
|
sourceFiles: {
|
|
35
35
|
type: "array",
|
|
@@ -82,7 +82,7 @@ export declare const searchSpec: {
|
|
|
82
82
|
export declare const statusSpec: {
|
|
83
83
|
readonly name: "kb_status";
|
|
84
84
|
readonly cliName: "status";
|
|
85
|
-
readonly description: "Report current branch, snapshot
|
|
85
|
+
readonly description: "Report current branch, KB snapshot and freshness metadata, plus the deterministic workspace snapshot used to validate execution receipts. Read-only status inspection with no mutation side effects.";
|
|
86
86
|
readonly businessInputSchema: {
|
|
87
87
|
readonly type: "object";
|
|
88
88
|
readonly properties: {};
|
|
@@ -90,7 +90,7 @@ export const searchSpec = {
|
|
|
90
90
|
export const statusSpec = {
|
|
91
91
|
name: "kb_status",
|
|
92
92
|
cliName: "status",
|
|
93
|
-
description: "Report current branch, snapshot
|
|
93
|
+
description: "Report current branch, KB snapshot and freshness metadata, plus the deterministic workspace snapshot used to validate execution receipts. Read-only status inspection with no mutation side effects.",
|
|
94
94
|
businessInputSchema: { type: "object", properties: {} },
|
|
95
95
|
requiresProlog: true,
|
|
96
96
|
effects: ["kb-read", "workspace-read"],
|
|
@@ -84,7 +84,7 @@ export declare const modelRequirementSpec: {
|
|
|
84
84
|
export declare const suggestPredicatesSpec: {
|
|
85
85
|
readonly name: "kb_suggest_predicates";
|
|
86
86
|
readonly cliName: "suggest-predicates";
|
|
87
|
-
readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns ranked candidates,
|
|
87
|
+
readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns ranked candidates, an applicable predicate-fact plan only when every ordered argument is bound, a separate requires_predicate relationship plan when a requirement ID is supplied, or an explicit ontology-gap observation when no predicate fits.";
|
|
88
88
|
readonly businessInputSchema: {
|
|
89
89
|
readonly type: "object";
|
|
90
90
|
readonly required: readonly ["text"];
|
|
@@ -124,6 +124,24 @@ export declare const suggestPredicatesSpec: {
|
|
|
124
124
|
readonly default: true;
|
|
125
125
|
readonly description: "Whether to include existing KB fact_kind=predicate_schema facts alongside Kibi's built-in predicate catalog. Default: true.";
|
|
126
126
|
};
|
|
127
|
+
readonly schemaId: {
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
readonly minLength: 1;
|
|
130
|
+
readonly description: "Optional exact reviewed predicate schema ID. When supplied, Kibi selects that schema instead of lexical rank order and fails closed if it is unavailable.";
|
|
131
|
+
};
|
|
132
|
+
readonly argumentBindings: {
|
|
133
|
+
readonly type: "object";
|
|
134
|
+
readonly additionalProperties: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly minLength: 1;
|
|
137
|
+
};
|
|
138
|
+
readonly description: "Optional exact predicate argument values keyed by a candidate schema's argument_names. Required before applying a candidate whose binding_status is incomplete; Kibi never substitutes guessed values for unbound arguments.";
|
|
139
|
+
};
|
|
140
|
+
readonly polarityHint: {
|
|
141
|
+
readonly type: "string";
|
|
142
|
+
readonly enum: readonly ["assert", "deny"];
|
|
143
|
+
readonly description: "Optional reviewed polarity override for claims whose surface negation does not express predicate denial. Use only after reviewing the selected schema and full claim scope.";
|
|
144
|
+
};
|
|
127
145
|
readonly existingLogicClaims: {
|
|
128
146
|
readonly type: "array";
|
|
129
147
|
readonly items: {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FhC,CAAC;AAEF,eAAO,MAAM,qBAAqB
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFjC,CAAC"}
|
|
@@ -79,7 +79,7 @@ export const modelRequirementSpec = {
|
|
|
79
79
|
export const suggestPredicatesSpec = {
|
|
80
80
|
name: "kb_suggest_predicates",
|
|
81
81
|
cliName: "suggest-predicates",
|
|
82
|
-
description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns ranked candidates,
|
|
82
|
+
description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns ranked candidates, an applicable predicate-fact plan only when every ordered argument is bound, a separate requires_predicate relationship plan when a requirement ID is supplied, or an explicit ontology-gap observation when no predicate fits.",
|
|
83
83
|
businessInputSchema: {
|
|
84
84
|
type: "object",
|
|
85
85
|
required: ["text"],
|
|
@@ -119,6 +119,21 @@ export const suggestPredicatesSpec = {
|
|
|
119
119
|
default: true,
|
|
120
120
|
description: "Whether to include existing KB fact_kind=predicate_schema facts alongside Kibi's built-in predicate catalog. Default: true.",
|
|
121
121
|
},
|
|
122
|
+
schemaId: {
|
|
123
|
+
type: "string",
|
|
124
|
+
minLength: 1,
|
|
125
|
+
description: "Optional exact reviewed predicate schema ID. When supplied, Kibi selects that schema instead of lexical rank order and fails closed if it is unavailable.",
|
|
126
|
+
},
|
|
127
|
+
argumentBindings: {
|
|
128
|
+
type: "object",
|
|
129
|
+
additionalProperties: { type: "string", minLength: 1 },
|
|
130
|
+
description: "Optional exact predicate argument values keyed by a candidate schema's argument_names. Required before applying a candidate whose binding_status is incomplete; Kibi never substitutes guessed values for unbound arguments.",
|
|
131
|
+
},
|
|
132
|
+
polarityHint: {
|
|
133
|
+
type: "string",
|
|
134
|
+
enum: ["assert", "deny"],
|
|
135
|
+
description: "Optional reviewed polarity override for claims whose surface negation does not express predicate denial. Use only after reviewing the selected schema and full claim scope.",
|
|
136
|
+
},
|
|
122
137
|
existingLogicClaims: {
|
|
123
138
|
type: "array",
|
|
124
139
|
items: { type: "string", pattern: "^CLAIM-[A-F0-9]{16}$" },
|
|
@@ -45,6 +45,10 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
45
45
|
readonly type: "string";
|
|
46
46
|
readonly description: "Optional text anchor/reference. Example: 'requirements.md#L40'.";
|
|
47
47
|
};
|
|
48
|
+
readonly semantic_text: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly description: "Requirement-only authored prose used for semantic inventory hashes and UTF-8 spans. Keep text_ref available for independent document or code evidence.";
|
|
51
|
+
};
|
|
48
52
|
readonly logic_claims: {
|
|
49
53
|
readonly type: "array";
|
|
50
54
|
readonly minItems: 1;
|
|
@@ -55,6 +59,30 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
55
59
|
};
|
|
56
60
|
readonly description: "Requirement-only manifest of every atomic normative claim key returned by kb_semantic_advisor. A requirement is logic-complete only when every key is grounded by a linked property_value or predicate fact with the same claim_key.";
|
|
57
61
|
};
|
|
62
|
+
readonly semantic_clauses: {
|
|
63
|
+
readonly type: "array";
|
|
64
|
+
readonly minItems: 1;
|
|
65
|
+
readonly items: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly minLength: 1;
|
|
68
|
+
};
|
|
69
|
+
readonly description: "Optional complete atomic decomposition used by kb_semantic_advisor and proposition-complete ingestion. Preserve it when automatic sentence splitting needs a reviewed override.";
|
|
70
|
+
};
|
|
71
|
+
readonly semantic_inventory_version: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly const: "kibi.semantic-inventory.v1";
|
|
74
|
+
readonly description: "Requirement-only proposition ledger contract version returned by kb_semantic_advisor.";
|
|
75
|
+
};
|
|
76
|
+
readonly semantic_source_field: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly enum: readonly ["semantic_text", "text_ref", "title"];
|
|
79
|
+
readonly description: "Requirement field whose exact UTF-8 bytes anchor semantic_inventory spans.";
|
|
80
|
+
};
|
|
81
|
+
readonly semantic_source_hash: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
84
|
+
readonly description: "SHA-256 of the exact semantic source text returned in the advisor inventory contract.";
|
|
85
|
+
};
|
|
58
86
|
readonly sourceFile: {
|
|
59
87
|
readonly type: "string";
|
|
60
88
|
readonly description: "Optional code source file for symbol entities. Example: 'src/auth/login.ts'.";
|
|
@@ -79,6 +107,66 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
79
107
|
readonly enum: readonly ["internal", "consumer"];
|
|
80
108
|
readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
|
|
81
109
|
};
|
|
110
|
+
readonly verification_receipts: {
|
|
111
|
+
readonly type: "array";
|
|
112
|
+
readonly maxItems: 50;
|
|
113
|
+
readonly items: {
|
|
114
|
+
readonly type: "object";
|
|
115
|
+
readonly required: readonly ["version", "receipt_id", "test_id", "runner", "command", "scope", "outcome", "code_snapshot", "environment_hash", "started_at", "finished_at", "artifact_digest"];
|
|
116
|
+
readonly properties: {
|
|
117
|
+
readonly version: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly const: "kibi.verification-receipt.v1";
|
|
120
|
+
};
|
|
121
|
+
readonly receipt_id: {
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
readonly pattern: "^VR-[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$";
|
|
124
|
+
};
|
|
125
|
+
readonly test_id: {
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
readonly minLength: 1;
|
|
128
|
+
};
|
|
129
|
+
readonly runner: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly minLength: 1;
|
|
132
|
+
};
|
|
133
|
+
readonly command: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly minLength: 1;
|
|
136
|
+
};
|
|
137
|
+
readonly scope: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly enum: readonly ["unit", "integration", "end_to_end"];
|
|
140
|
+
};
|
|
141
|
+
readonly outcome: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly enum: readonly ["passed", "failed", "errored", "cancelled", "skipped"];
|
|
144
|
+
};
|
|
145
|
+
readonly code_snapshot: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
148
|
+
};
|
|
149
|
+
readonly environment_hash: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
152
|
+
};
|
|
153
|
+
readonly started_at: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly minLength: 1;
|
|
156
|
+
};
|
|
157
|
+
readonly finished_at: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly minLength: 1;
|
|
160
|
+
};
|
|
161
|
+
readonly artifact_digest: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly additionalProperties: false;
|
|
167
|
+
};
|
|
168
|
+
readonly description: "Append-only test execution evidence. Proof accepts only the newest valid passed receipt bound to the current code snapshot and within the seven-day freshness window.";
|
|
169
|
+
};
|
|
82
170
|
readonly fact_kind: {
|
|
83
171
|
readonly type: "string";
|
|
84
172
|
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate", "rule_schema", "rule"];
|
|
@@ -239,7 +327,14 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
239
327
|
readonly minimum: 0;
|
|
240
328
|
};
|
|
241
329
|
};
|
|
242
|
-
readonly allOf: readonly [Record<string, unknown
|
|
330
|
+
readonly allOf: readonly [Record<string, unknown>, {
|
|
331
|
+
readonly if: {
|
|
332
|
+
readonly required: readonly ["verification_receipts"];
|
|
333
|
+
};
|
|
334
|
+
readonly then: {
|
|
335
|
+
readonly required: readonly ["verification_scope"];
|
|
336
|
+
};
|
|
337
|
+
}];
|
|
243
338
|
readonly required: readonly ["title", "status"];
|
|
244
339
|
};
|
|
245
340
|
export declare const RELATIONSHIPS_SCHEMA: {
|
|
@@ -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":"AAEA,eAAO,MAAM,YAAY,gFASf,CAAC;AAYX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+S3B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;CA2CvB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VERIFICATION_RECEIPT_SCHEMA } from "../../verification-receipt.js";
|
|
1
2
|
export const ENTITY_TYPES = [
|
|
2
3
|
"req",
|
|
3
4
|
"scenario",
|
|
@@ -59,6 +60,10 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
59
60
|
type: "string",
|
|
60
61
|
description: "Optional text anchor/reference. Example: 'requirements.md#L40'.",
|
|
61
62
|
},
|
|
63
|
+
semantic_text: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "Requirement-only authored prose used for semantic inventory hashes and UTF-8 spans. Keep text_ref available for independent document or code evidence.",
|
|
66
|
+
},
|
|
62
67
|
logic_claims: {
|
|
63
68
|
type: "array",
|
|
64
69
|
minItems: 1,
|
|
@@ -66,6 +71,27 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
66
71
|
items: { type: "string", pattern: "^CLAIM-[A-F0-9]{16}$" },
|
|
67
72
|
description: "Requirement-only manifest of every atomic normative claim key returned by kb_semantic_advisor. A requirement is logic-complete only when every key is grounded by a linked property_value or predicate fact with the same claim_key.",
|
|
68
73
|
},
|
|
74
|
+
semantic_clauses: {
|
|
75
|
+
type: "array",
|
|
76
|
+
minItems: 1,
|
|
77
|
+
items: { type: "string", minLength: 1 },
|
|
78
|
+
description: "Optional complete atomic decomposition used by kb_semantic_advisor and proposition-complete ingestion. Preserve it when automatic sentence splitting needs a reviewed override.",
|
|
79
|
+
},
|
|
80
|
+
semantic_inventory_version: {
|
|
81
|
+
type: "string",
|
|
82
|
+
const: "kibi.semantic-inventory.v1",
|
|
83
|
+
description: "Requirement-only proposition ledger contract version returned by kb_semantic_advisor.",
|
|
84
|
+
},
|
|
85
|
+
semantic_source_field: {
|
|
86
|
+
type: "string",
|
|
87
|
+
enum: ["semantic_text", "text_ref", "title"],
|
|
88
|
+
description: "Requirement field whose exact UTF-8 bytes anchor semantic_inventory spans.",
|
|
89
|
+
},
|
|
90
|
+
semantic_source_hash: {
|
|
91
|
+
type: "string",
|
|
92
|
+
pattern: "^[a-f0-9]{64}$",
|
|
93
|
+
description: "SHA-256 of the exact semantic source text returned in the advisor inventory contract.",
|
|
94
|
+
},
|
|
69
95
|
sourceFile: {
|
|
70
96
|
type: "string",
|
|
71
97
|
description: "Optional code source file for symbol entities. Example: 'src/auth/login.ts'.",
|
|
@@ -102,6 +128,12 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
102
128
|
enum: ["internal", "consumer"],
|
|
103
129
|
description: "Optional typed verification perspective for test entities. Example: 'consumer'.",
|
|
104
130
|
},
|
|
131
|
+
verification_receipts: {
|
|
132
|
+
type: "array",
|
|
133
|
+
maxItems: 50,
|
|
134
|
+
items: VERIFICATION_RECEIPT_SCHEMA,
|
|
135
|
+
description: "Append-only test execution evidence. Proof accepts only the newest valid passed receipt bound to the current code snapshot and within the seven-day freshness window.",
|
|
136
|
+
},
|
|
105
137
|
fact_kind: {
|
|
106
138
|
type: "string",
|
|
107
139
|
enum: [
|
|
@@ -248,7 +280,14 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
248
280
|
claim_span_start: { type: "integer", minimum: 0 },
|
|
249
281
|
claim_span_end: { type: "integer", minimum: 0 },
|
|
250
282
|
},
|
|
251
|
-
allOf: [
|
|
283
|
+
allOf: [
|
|
284
|
+
CLAIM_PROVENANCE_CONDITIONAL,
|
|
285
|
+
{
|
|
286
|
+
if: { required: ["verification_receipts"] },
|
|
287
|
+
// biome-ignore lint/suspicious/noThenProperty: JSON Schema conditional keyword.
|
|
288
|
+
then: { required: ["verification_scope"] },
|
|
289
|
+
},
|
|
290
|
+
],
|
|
252
291
|
required: ["title", "status"],
|
|
253
292
|
};
|
|
254
293
|
export const RELATIONSHIPS_SCHEMA = {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type LegacyMigrationPlan } from "../legacy-migration-plan.js";
|
|
2
|
+
import { type RepairPlan } from "../repair-plan.js";
|
|
1
3
|
import type { OperationContext } from "../runtime-types.js";
|
|
2
4
|
import type { OperationResult } from "../types.js";
|
|
3
5
|
export type FindGapsInput = {
|
|
@@ -21,10 +23,17 @@ export type CoverageInput = {
|
|
|
21
23
|
readonly includeTransitive?: boolean;
|
|
22
24
|
readonly limit?: number;
|
|
23
25
|
readonly offset?: number;
|
|
26
|
+
readonly includeMigrationPreview?: boolean;
|
|
27
|
+
readonly migrationLimit?: number;
|
|
28
|
+
readonly migrationOffset?: number;
|
|
29
|
+
readonly migrationPredicateLimit?: number;
|
|
30
|
+
readonly migrationPredicateMinScore?: number;
|
|
24
31
|
};
|
|
25
32
|
export type CoveragePayload = {
|
|
26
33
|
readonly summary: Readonly<Record<string, number>>;
|
|
27
34
|
readonly rows: readonly Readonly<Record<string, unknown>>[];
|
|
35
|
+
readonly repairPlan?: RepairPlan;
|
|
36
|
+
readonly legacyMigrationPlan?: LegacyMigrationPlan;
|
|
28
37
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
29
38
|
};
|
|
30
39
|
export type GraphInput = {
|
|
@@ -93,7 +102,7 @@ export declare function executeCoverage(input: CoverageInput, context: Operation
|
|
|
93
102
|
export declare const coverageSpec: {
|
|
94
103
|
readonly name: "kb_coverage";
|
|
95
104
|
readonly cliName: "coverage";
|
|
96
|
-
readonly description: "Generate curated coverage reports for requirements, symbols, or grouped types.
|
|
105
|
+
readonly description: "Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types. Requirement reports include a deterministic, dependency-ordered, read-only repair plan; optional legacy migration previews reconstruct authored proposition inventories and rank exact schema candidates without producing executable writes. Paginated plans identify incomplete scope. Requirement rows keep coverageStatus separate from proofStatus and require fresh snapshot-bound E2E receipts before proof. No mutation side effects.";
|
|
97
106
|
readonly businessInputSchema: {
|
|
98
107
|
readonly type: "object";
|
|
99
108
|
readonly properties: {
|
|
@@ -124,6 +133,38 @@ export declare const coverageSpec: {
|
|
|
124
133
|
readonly type: "integer";
|
|
125
134
|
readonly default: 0;
|
|
126
135
|
};
|
|
136
|
+
readonly includeMigrationPreview: {
|
|
137
|
+
readonly type: "boolean";
|
|
138
|
+
readonly default: false;
|
|
139
|
+
readonly description: "Opt in to a deterministic, read-only kibi.legacy-migration-plan.v1 preview for ready semantic-inventory repair batches.";
|
|
140
|
+
};
|
|
141
|
+
readonly migrationLimit: {
|
|
142
|
+
readonly type: "integer";
|
|
143
|
+
readonly minimum: 1;
|
|
144
|
+
readonly maximum: 10;
|
|
145
|
+
readonly default: 1;
|
|
146
|
+
readonly description: "Maximum requirement migration batches to preview. Defaults to one review batch.";
|
|
147
|
+
};
|
|
148
|
+
readonly migrationOffset: {
|
|
149
|
+
readonly type: "integer";
|
|
150
|
+
readonly minimum: 0;
|
|
151
|
+
readonly default: 0;
|
|
152
|
+
readonly description: "Zero-based offset into ready semantic-inventory batches.";
|
|
153
|
+
};
|
|
154
|
+
readonly migrationPredicateLimit: {
|
|
155
|
+
readonly type: "integer";
|
|
156
|
+
readonly minimum: 1;
|
|
157
|
+
readonly maximum: 20;
|
|
158
|
+
readonly default: 5;
|
|
159
|
+
readonly description: "Maximum exact predicate-schema candidates retained per assertive proposition.";
|
|
160
|
+
};
|
|
161
|
+
readonly migrationPredicateMinScore: {
|
|
162
|
+
readonly type: "number";
|
|
163
|
+
readonly minimum: 0;
|
|
164
|
+
readonly maximum: 1;
|
|
165
|
+
readonly default: 0.35;
|
|
166
|
+
readonly description: "Minimum deterministic predicate-schema rank score retained in migration previews.";
|
|
167
|
+
};
|
|
127
168
|
};
|
|
128
169
|
};
|
|
129
170
|
readonly requiresProlog: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporting.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/reporting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reporting.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/reporting.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,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,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,C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AED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuByC,CAAC;AAEnE,wBAAsB,eAAe,CACnC,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CA0D3C;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDyC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBsC,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { VERIFICATION_RECEIPT_MAX_AGE_SECONDS } from "../../verification-receipt.js";
|
|
2
|
+
import { buildLegacyMigrationPlanFromContext, } from "../legacy-migration-plan.js";
|
|
1
3
|
import { runOperationJsonQuery, toPrologAtom, toPrologList, } from "../prolog-json.js";
|
|
4
|
+
import { buildRepairPlan } from "../repair-plan.js";
|
|
5
|
+
import { readWorkspaceSnapshot } from "../workspace-snapshot.js";
|
|
2
6
|
const ENTITY_TYPES = [
|
|
3
7
|
"req",
|
|
4
8
|
"scenario",
|
|
@@ -68,17 +72,45 @@ export const findGapsSpec = {
|
|
|
68
72
|
};
|
|
69
73
|
export async function executeCoverage(input, context) {
|
|
70
74
|
try {
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
|
|
75
|
+
const snapshotEvidence = await readWorkspaceSnapshot(context);
|
|
76
|
+
const codeSnapshot = snapshotEvidence.available
|
|
77
|
+
? snapshotEvidence.snapshot.hash
|
|
78
|
+
: "unknown";
|
|
79
|
+
const checkedAt = context.clock().toISOString();
|
|
80
|
+
const payload = await runOperationJsonQuery(requireProlog(context), "discovery.pl", `discovery:coverage_report_json('${input.by ?? "req"}', ${toPrologList(input.tags)}, ${input.includePassing ?? false}, ${input.includeTransitive ?? true}, ${input.limit ?? 100}, ${input.offset ?? 0}, ${toPrologAtom(codeSnapshot)}, ${toPrologAtom(checkedAt)}, ${VERIFICATION_RECEIPT_MAX_AGE_SECONDS}, JsonString)`, "Coverage execution");
|
|
81
|
+
const repairPlan = buildRepairPlan(payload, input, codeSnapshot);
|
|
82
|
+
const legacyMigrationPlan = input.includeMigrationPreview === true && repairPlan !== undefined
|
|
83
|
+
? await buildLegacyMigrationPlanFromContext(repairPlan, input, codeSnapshot, context)
|
|
84
|
+
: undefined;
|
|
85
|
+
const enrichedPayload = {
|
|
86
|
+
...payload,
|
|
87
|
+
...(repairPlan !== undefined ? { repairPlan } : {}),
|
|
88
|
+
...(legacyMigrationPlan !== undefined ? { legacyMigrationPlan } : {}),
|
|
89
|
+
meta: {
|
|
90
|
+
...(payload.meta ?? {}),
|
|
91
|
+
verificationReceiptMaxAgeSeconds: VERIFICATION_RECEIPT_MAX_AGE_SECONDS,
|
|
92
|
+
verificationSnapshot: codeSnapshot,
|
|
93
|
+
verificationSnapshotAvailable: snapshotEvidence.available,
|
|
94
|
+
...(snapshotEvidence.available
|
|
95
|
+
? {
|
|
96
|
+
verificationSnapshotDirty: snapshotEvidence.snapshot.dirty,
|
|
97
|
+
verificationSnapshotFileCount: snapshotEvidence.snapshot.fileCount,
|
|
98
|
+
verificationSnapshotVersion: snapshotEvidence.snapshot.version,
|
|
99
|
+
}
|
|
100
|
+
: { verificationSnapshotError: snapshotEvidence.error }),
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
const fullyCovered = Number(enrichedPayload.summary?.fullyCovered ?? 0);
|
|
104
|
+
const proofProven = Number(enrichedPayload.summary?.proofProven ?? 0);
|
|
105
|
+
const total = Number(enrichedPayload.summary?.total ?? 0);
|
|
74
106
|
return {
|
|
75
107
|
content: [
|
|
76
108
|
{
|
|
77
109
|
type: "text",
|
|
78
|
-
text: `Coverage summary: ${fullyCovered}
|
|
110
|
+
text: `Coverage summary: ${fullyCovered} structurally covered and ${proofProven} proven out of ${total}.`,
|
|
79
111
|
},
|
|
80
112
|
],
|
|
81
|
-
structuredContent:
|
|
113
|
+
structuredContent: enrichedPayload,
|
|
82
114
|
};
|
|
83
115
|
}
|
|
84
116
|
catch (error) {
|
|
@@ -89,7 +121,7 @@ export async function executeCoverage(input, context) {
|
|
|
89
121
|
export const coverageSpec = {
|
|
90
122
|
name: "kb_coverage",
|
|
91
123
|
cliName: "coverage",
|
|
92
|
-
description: "Generate curated coverage reports for requirements, symbols, or grouped types.
|
|
124
|
+
description: "Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types. Requirement reports include a deterministic, dependency-ordered, read-only repair plan; optional legacy migration previews reconstruct authored proposition inventories and rank exact schema candidates without producing executable writes. Paginated plans identify incomplete scope. Requirement rows keep coverageStatus separate from proofStatus and require fresh snapshot-bound E2E receipts before proof. No mutation side effects.",
|
|
93
125
|
businessInputSchema: {
|
|
94
126
|
type: "object",
|
|
95
127
|
properties: {
|
|
@@ -99,6 +131,38 @@ export const coverageSpec = {
|
|
|
99
131
|
includeTransitive: { type: "boolean", default: true },
|
|
100
132
|
limit: { type: "integer", default: 100 },
|
|
101
133
|
offset: { type: "integer", default: 0 },
|
|
134
|
+
includeMigrationPreview: {
|
|
135
|
+
type: "boolean",
|
|
136
|
+
default: false,
|
|
137
|
+
description: "Opt in to a deterministic, read-only kibi.legacy-migration-plan.v1 preview for ready semantic-inventory repair batches.",
|
|
138
|
+
},
|
|
139
|
+
migrationLimit: {
|
|
140
|
+
type: "integer",
|
|
141
|
+
minimum: 1,
|
|
142
|
+
maximum: 10,
|
|
143
|
+
default: 1,
|
|
144
|
+
description: "Maximum requirement migration batches to preview. Defaults to one review batch.",
|
|
145
|
+
},
|
|
146
|
+
migrationOffset: {
|
|
147
|
+
type: "integer",
|
|
148
|
+
minimum: 0,
|
|
149
|
+
default: 0,
|
|
150
|
+
description: "Zero-based offset into ready semantic-inventory batches.",
|
|
151
|
+
},
|
|
152
|
+
migrationPredicateLimit: {
|
|
153
|
+
type: "integer",
|
|
154
|
+
minimum: 1,
|
|
155
|
+
maximum: 20,
|
|
156
|
+
default: 5,
|
|
157
|
+
description: "Maximum exact predicate-schema candidates retained per assertive proposition.",
|
|
158
|
+
},
|
|
159
|
+
migrationPredicateMinScore: {
|
|
160
|
+
type: "number",
|
|
161
|
+
minimum: 0,
|
|
162
|
+
maximum: 1,
|
|
163
|
+
default: 0.35,
|
|
164
|
+
description: "Minimum deterministic predicate-schema rank score retained in migration previews.",
|
|
165
|
+
},
|
|
102
166
|
},
|
|
103
167
|
},
|
|
104
168
|
requiresProlog: true,
|