kibi-cli 0.16.1 → 0.18.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-json-command.d.ts.map +1 -1
- package/dist/cli-json-command.js +87 -11
- package/dist/cli-register-maintenance.d.ts.map +1 -1
- package/dist/cli-register-maintenance.js +8 -0
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +5 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -1
- 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 +1 -1
- package/dist/commands/coverage.d.ts +5 -0
- package/dist/commands/coverage.d.ts.map +1 -1
- package/dist/commands/coverage.js +5 -0
- package/dist/commands/discovery-table.d.ts.map +1 -1
- package/dist/commands/discovery-table.js +96 -5
- package/dist/commands/sync/cache.d.ts +2 -0
- package/dist/commands/sync/cache.d.ts.map +1 -1
- package/dist/commands/sync/cache.js +8 -0
- package/dist/commands/sync/manifest.d.ts +12 -1
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +22 -5
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +76 -2
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +72 -15
- 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/extractors/markdown.d.ts +17 -1
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +81 -2
- package/dist/logic/ir.d.ts +112 -0
- package/dist/logic/ir.d.ts.map +1 -0
- package/dist/logic/ir.js +729 -0
- package/dist/operations/modeling/logic-modeling.d.ts +22 -0
- package/dist/operations/modeling/logic-modeling.d.ts.map +1 -0
- package/dist/operations/modeling/logic-modeling.js +120 -0
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
- package/dist/operations/modeling/model-requirement.js +83 -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 +29 -4
- package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-inference.js +3 -0
- package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-loader.js +7 -1
- package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-ranker.js +40 -2
- package/dist/operations/modeling/predicate-types.d.ts +12 -1
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
- package/dist/operations/modeling/requirement-types.d.ts +12 -0
- package/dist/operations/modeling/requirement-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/relationships.d.ts.map +1 -1
- package/dist/operations/mutation/relationships.js +8 -0
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +6 -0
- package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
- package/dist/operations/mutation/strict-fact.js +68 -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 +2 -2
- package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analysis-receipt.js +30 -16
- package/dist/operations/semantic-advisor/analyze-prose.d.ts +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.js +464 -27
- 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/observation-plan.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/observation-plan.js +15 -3
- package/dist/operations/semantic-advisor/shared.d.ts +9 -0
- package/dist/operations/semantic-advisor/shared.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/shared.js +38 -4
- package/dist/operations/semantic-advisor/types.d.ts +66 -1
- 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 +19 -2
- package/dist/prolog.d.ts +6 -0
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +247 -63
- 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 +235 -11
- 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-executors.d.ts +6 -0
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +18 -2
- package/dist/public/operations/index.d.ts +5 -0
- package/dist/public/operations/index.d.ts.map +1 -1
- package/dist/public/operations/index.js +5 -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/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 +7 -0
- package/dist/public/operations/runtime-types.d.ts.map +1 -1
- package/dist/public/operations/specs/check.d.ts +3 -3
- package/dist/public/operations/specs/check.d.ts.map +1 -1
- package/dist/public/operations/specs/check.js +5 -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 +35 -1
- package/dist/public/operations/specs/modeling.d.ts.map +1 -1
- package/dist/public/operations/specs/modeling.js +32 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts +133 -3
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +67 -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.d.ts +30 -2
- package/dist/public/operations/specs/semantic.d.ts.map +1 -1
- package/dist/public/operations/specs/semantic.js +35 -3
- package/dist/public/operations/specs/upsert.d.ts +133 -3
- 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 +332 -0
- package/dist/public/schemas/relationship.d.ts.map +1 -1
- package/dist/public/schemas/relationship.js +1 -0
- package/dist/public/skills/kibi-traceability/SKILL.md +7 -1
- package/dist/public/skills/kibi-usage/SKILL.md +44 -12
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +12 -2
- package/dist/public/skills/kibi-usage/resources/logic-ir.md +43 -0
- package/dist/public/skills/kibi-usage/resources/operation-access.md +19 -19
- package/dist/public/skills/kibi-usage/resources/ui-requirements.md +96 -0
- package/dist/public/skills/kibi-usage/resources/workflows.md +40 -8
- package/dist/public/symbol-granularity.d.ts +9 -0
- package/dist/public/symbol-granularity.d.ts.map +1 -1
- package/dist/public/symbol-granularity.js +16 -0
- 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/schemas/entity.schema.json +401 -4
- package/dist/traceability/staged-diagnostics.d.ts +1 -1
- package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
- package/dist/traceability/staged-diagnostics.js +17 -10
- package/dist/traceability/staged-impact-contract.js +1 -1
- package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
- package/dist/traceability/staged-symbols-manifest.js +28 -10
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +49 -3
- package/dist/types/entities.d.ts +1 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/types/relationships.d.ts +1 -1
- package/dist/types/relationships.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/dist/utils/rule-registry.js +18 -0
- package/dist/utils/schema-version.d.ts +1 -1
- package/dist/utils/schema-version.js +1 -1
- package/package.json +34 -2
- 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-executors.ts +24 -2
- package/src/public/operations/index.ts +5 -0
- package/src/public/operations/legacy-migration-plan.ts +688 -0
- package/src/public/operations/node-ports.ts +109 -0
- package/src/public/operations/repair-plan.ts +562 -0
- package/src/public/operations/runtime-types.ts +8 -0
- package/src/public/operations/specs/check.ts +5 -2
- package/src/public/operations/specs/discovery.ts +1 -1
- package/src/public/operations/specs/modeling.ts +39 -1
- package/src/public/operations/specs/mutation-schemas.ts +77 -1
- package/src/public/operations/specs/reporting.ts +91 -6
- package/src/public/operations/specs/semantic.ts +42 -3
- package/src/public/operations/workspace-snapshot.ts +28 -0
- package/src/public/schemas/entity.ts +340 -1
- package/src/public/schemas/relationship.ts +1 -0
- package/src/public/skills/kibi-traceability/SKILL.md +7 -1
- package/src/public/skills/kibi-usage/SKILL.md +44 -12
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +12 -2
- package/src/public/skills/kibi-usage/resources/logic-ir.md +43 -0
- package/src/public/skills/kibi-usage/resources/operation-access.md +19 -19
- package/src/public/skills/kibi-usage/resources/ui-requirements.md +96 -0
- package/src/public/skills/kibi-usage/resources/workflows.md +40 -8
- package/src/public/symbol-granularity.ts +25 -0
- 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 +401 -4
- package/src/schemas/relationship.schema.json +1 -0
|
@@ -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: {
|
|
@@ -23,10 +23,13 @@ export const checkSpec = {
|
|
|
23
23
|
"strict-req-fact-pairing",
|
|
24
24
|
"predicate-verifiability",
|
|
25
25
|
"logic-coverage",
|
|
26
|
+
"rule-safety",
|
|
27
|
+
"rule-verifiability",
|
|
28
|
+
"semantic-completeness",
|
|
26
29
|
"query-plan-safety",
|
|
27
30
|
],
|
|
28
31
|
},
|
|
29
|
-
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, 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.",
|
|
30
33
|
},
|
|
31
34
|
sourceFiles: {
|
|
32
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"],
|
|
@@ -59,6 +59,22 @@ export declare const modelRequirementSpec: {
|
|
|
59
59
|
readonly uniqueItems: true;
|
|
60
60
|
readonly description: "Existing requirement logic_claims values. The returned requirement update merges the new atomic claim key into this manifest instead of replacing prior claims.";
|
|
61
61
|
};
|
|
62
|
+
readonly requirementId: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly description: "Optional existing requirement ID to receive the requires_rule relationship.";
|
|
65
|
+
};
|
|
66
|
+
readonly claimKey: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly description: "Optional advisor-issued claim key for the exact proposition represented by logic.";
|
|
69
|
+
};
|
|
70
|
+
readonly claimText: {
|
|
71
|
+
readonly type: "string";
|
|
72
|
+
readonly description: "Optional exact proposition text represented by logic; defaults to text.";
|
|
73
|
+
};
|
|
74
|
+
readonly logic: {
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
readonly description: "Optional typed kibi.logic.v1 IR. Kibi validates and canonicalizes it into a rule fact; raw Prolog is rejected.";
|
|
77
|
+
};
|
|
62
78
|
};
|
|
63
79
|
};
|
|
64
80
|
readonly requiresProlog: true;
|
|
@@ -68,7 +84,7 @@ export declare const modelRequirementSpec: {
|
|
|
68
84
|
export declare const suggestPredicatesSpec: {
|
|
69
85
|
readonly name: "kb_suggest_predicates";
|
|
70
86
|
readonly cliName: "suggest-predicates";
|
|
71
|
-
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.";
|
|
72
88
|
readonly businessInputSchema: {
|
|
73
89
|
readonly type: "object";
|
|
74
90
|
readonly required: readonly ["text"];
|
|
@@ -108,6 +124,24 @@ export declare const suggestPredicatesSpec: {
|
|
|
108
124
|
readonly default: true;
|
|
109
125
|
readonly description: "Whether to include existing KB fact_kind=predicate_schema facts alongside Kibi's built-in predicate catalog. Default: true.";
|
|
110
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
|
+
};
|
|
111
145
|
readonly existingLogicClaims: {
|
|
112
146
|
readonly type: "array";
|
|
113
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
|
|
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"}
|
|
@@ -54,6 +54,22 @@ export const modelRequirementSpec = {
|
|
|
54
54
|
uniqueItems: true,
|
|
55
55
|
description: "Existing requirement logic_claims values. The returned requirement update merges the new atomic claim key into this manifest instead of replacing prior claims.",
|
|
56
56
|
},
|
|
57
|
+
requirementId: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "Optional existing requirement ID to receive the requires_rule relationship.",
|
|
60
|
+
},
|
|
61
|
+
claimKey: {
|
|
62
|
+
type: "string",
|
|
63
|
+
description: "Optional advisor-issued claim key for the exact proposition represented by logic.",
|
|
64
|
+
},
|
|
65
|
+
claimText: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "Optional exact proposition text represented by logic; defaults to text.",
|
|
68
|
+
},
|
|
69
|
+
logic: {
|
|
70
|
+
type: "object",
|
|
71
|
+
description: "Optional typed kibi.logic.v1 IR. Kibi validates and canonicalizes it into a rule fact; raw Prolog is rejected.",
|
|
72
|
+
},
|
|
57
73
|
},
|
|
58
74
|
},
|
|
59
75
|
requiresProlog: true,
|
|
@@ -63,7 +79,7 @@ export const modelRequirementSpec = {
|
|
|
63
79
|
export const suggestPredicatesSpec = {
|
|
64
80
|
name: "kb_suggest_predicates",
|
|
65
81
|
cliName: "suggest-predicates",
|
|
66
|
-
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.",
|
|
67
83
|
businessInputSchema: {
|
|
68
84
|
type: "object",
|
|
69
85
|
required: ["text"],
|
|
@@ -103,6 +119,21 @@ export const suggestPredicatesSpec = {
|
|
|
103
119
|
default: true,
|
|
104
120
|
description: "Whether to include existing KB fact_kind=predicate_schema facts alongside Kibi's built-in predicate catalog. Default: true.",
|
|
105
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
|
+
},
|
|
106
137
|
existingLogicClaims: {
|
|
107
138
|
type: "array",
|
|
108
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,9 +107,69 @@ 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
|
-
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate"];
|
|
172
|
+
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate", "rule_schema", "rule"];
|
|
85
173
|
readonly description: "Optional fact lane kind for fact entities. Strict lane uses 'subject' and 'property_value'; context lane uses 'observation' or 'meta'; ontology lane uses 'predicate_schema' or 'predicate'. Use kb_model_requirement or kb_suggest_predicates when starting from prose.";
|
|
86
174
|
};
|
|
87
175
|
readonly subject_key: {
|
|
@@ -203,8 +291,50 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
203
291
|
};
|
|
204
292
|
readonly description: "Optional ground-term examples for a predicate schema.";
|
|
205
293
|
};
|
|
294
|
+
readonly semantic_inventory: {
|
|
295
|
+
readonly type: "array";
|
|
296
|
+
readonly description: "Requirement proposition ledger returned by kb_semantic_advisor; preserve entries while modeling each assertive span.";
|
|
297
|
+
readonly items: {
|
|
298
|
+
readonly type: "object";
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
readonly rule_ir: {
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly description: "Schema-validated kibi.logic.v1 rule IR. It is persisted as data and never executed as caller-supplied Prolog.";
|
|
304
|
+
};
|
|
305
|
+
readonly rule_hash: {
|
|
306
|
+
readonly type: "string";
|
|
307
|
+
readonly description: "Deterministic hash of canonical rule_ir.";
|
|
308
|
+
};
|
|
309
|
+
readonly rule_schema_id: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
readonly description: "Rule schema fact ID used to validate this rule.";
|
|
312
|
+
};
|
|
313
|
+
readonly rule_name: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly description: "Stable rule schema name.";
|
|
316
|
+
};
|
|
317
|
+
readonly semantic_key: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
readonly description: "Canonical semantic identity of the normalized logical model.";
|
|
320
|
+
};
|
|
321
|
+
readonly claim_span_start: {
|
|
322
|
+
readonly type: "integer";
|
|
323
|
+
readonly minimum: 0;
|
|
324
|
+
};
|
|
325
|
+
readonly claim_span_end: {
|
|
326
|
+
readonly type: "integer";
|
|
327
|
+
readonly minimum: 0;
|
|
328
|
+
};
|
|
206
329
|
};
|
|
207
|
-
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
|
+
}];
|
|
208
338
|
readonly required: readonly ["title", "status"];
|
|
209
339
|
};
|
|
210
340
|
export declare const RELATIONSHIPS_SCHEMA: {
|
|
@@ -216,7 +346,7 @@ export declare const RELATIONSHIPS_SCHEMA: {
|
|
|
216
346
|
readonly properties: {
|
|
217
347
|
readonly type: {
|
|
218
348
|
readonly type: "string";
|
|
219
|
-
readonly enum: readonly ["depends_on", "specified_by", "verified_by", "validates", "implements", "covered_by", "executable_for", "constrained_by", "constrains", "requires_property", "requires_predicate", "guards", "publishes", "consumes", "supersedes", "relates_to"];
|
|
349
|
+
readonly enum: readonly ["depends_on", "specified_by", "verified_by", "validates", "implements", "covered_by", "executable_for", "constrained_by", "constrains", "requires_property", "requires_predicate", "requires_rule", "guards", "publishes", "consumes", "supersedes", "relates_to"];
|
|
220
350
|
readonly description: "Relationship type enum. Use only supported values. Direction semantics follow KB model (e.g., implements symbol->req, verified_by req/scenario->test, executable_for symbol->test).";
|
|
221
351
|
};
|
|
222
352
|
readonly from: {
|
|
@@ -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: [
|
|
@@ -111,6 +143,8 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
111
143
|
"meta",
|
|
112
144
|
"predicate_schema",
|
|
113
145
|
"predicate",
|
|
146
|
+
"rule_schema",
|
|
147
|
+
"rule",
|
|
114
148
|
],
|
|
115
149
|
description: "Optional fact lane kind for fact entities. Strict lane uses 'subject' and 'property_value'; context lane uses 'observation' or 'meta'; ontology lane uses 'predicate_schema' or 'predicate'. Use kb_model_requirement or kb_suggest_predicates when starting from prose.",
|
|
116
150
|
},
|
|
@@ -221,8 +255,39 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
221
255
|
items: { type: "string" },
|
|
222
256
|
description: "Optional ground-term examples for a predicate schema.",
|
|
223
257
|
},
|
|
258
|
+
semantic_inventory: {
|
|
259
|
+
type: "array",
|
|
260
|
+
description: "Requirement proposition ledger returned by kb_semantic_advisor; preserve entries while modeling each assertive span.",
|
|
261
|
+
items: { type: "object" },
|
|
262
|
+
},
|
|
263
|
+
rule_ir: {
|
|
264
|
+
type: "object",
|
|
265
|
+
description: "Schema-validated kibi.logic.v1 rule IR. It is persisted as data and never executed as caller-supplied Prolog.",
|
|
266
|
+
},
|
|
267
|
+
rule_hash: {
|
|
268
|
+
type: "string",
|
|
269
|
+
description: "Deterministic hash of canonical rule_ir.",
|
|
270
|
+
},
|
|
271
|
+
rule_schema_id: {
|
|
272
|
+
type: "string",
|
|
273
|
+
description: "Rule schema fact ID used to validate this rule.",
|
|
274
|
+
},
|
|
275
|
+
rule_name: { type: "string", description: "Stable rule schema name." },
|
|
276
|
+
semantic_key: {
|
|
277
|
+
type: "string",
|
|
278
|
+
description: "Canonical semantic identity of the normalized logical model.",
|
|
279
|
+
},
|
|
280
|
+
claim_span_start: { type: "integer", minimum: 0 },
|
|
281
|
+
claim_span_end: { type: "integer", minimum: 0 },
|
|
224
282
|
},
|
|
225
|
-
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
|
+
],
|
|
226
291
|
required: ["title", "status"],
|
|
227
292
|
};
|
|
228
293
|
export const RELATIONSHIPS_SCHEMA = {
|
|
@@ -246,6 +311,7 @@ export const RELATIONSHIPS_SCHEMA = {
|
|
|
246
311
|
"constrains",
|
|
247
312
|
"requires_property",
|
|
248
313
|
"requires_predicate",
|
|
314
|
+
"requires_rule",
|
|
249
315
|
"guards",
|
|
250
316
|
"publishes",
|
|
251
317
|
"consumes",
|
|
@@ -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":"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"}
|