kibi-cli 0.16.1 → 0.17.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/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +1 -1
- 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 +18 -1
- package/dist/extractors/markdown.d.ts +9 -1
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +12 -0
- 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 +111 -0
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
- package/dist/operations/modeling/model-requirement.js +56 -0
- package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-applyplan.js +15 -2
- package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-inference.js +17 -2
- package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-loader.js +6 -0
- 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 +3 -0
- 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/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 +3 -0
- package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
- package/dist/operations/mutation/strict-fact.js +68 -3
- 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 +23 -15
- 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 +435 -13
- 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 +1 -0
- package/dist/operations/semantic-advisor/shared.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/shared.js +1 -1
- package/dist/operations/semantic-advisor/types.d.ts +61 -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 +11 -1
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +7 -2
- package/dist/public/operations/catalog.d.ts +85 -6
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/index.d.ts +1 -0
- package/dist/public/operations/index.d.ts.map +1 -1
- package/dist/public/operations/index.js +1 -0
- package/dist/public/operations/specs/check.d.ts +2 -2
- package/dist/public/operations/specs/check.d.ts.map +1 -1
- package/dist/public/operations/specs/check.js +4 -1
- package/dist/public/operations/specs/modeling.d.ts +16 -0
- package/dist/public/operations/specs/modeling.d.ts.map +1 -1
- package/dist/public/operations/specs/modeling.js +16 -0
- package/dist/public/operations/specs/mutation-schemas.d.ts +37 -2
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +27 -0
- 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 +34 -2
- package/dist/public/operations/specs/upsert.d.ts +37 -2
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +290 -0
- package/dist/public/schemas/relationship.d.ts.map +1 -1
- package/dist/public/schemas/relationship.js +1 -0
- package/dist/public/skills/kibi-usage/SKILL.md +35 -9
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +11 -1
- 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 +21 -6
- 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/schemas/entity.schema.json +306 -3
- 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 +13 -0
- package/dist/types/relationships.d.ts +1 -1
- package/dist/types/relationships.d.ts.map +1 -1
- 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 +6 -2
- package/src/public/operations/index.ts +1 -0
- package/src/public/operations/specs/check.ts +4 -1
- package/src/public/operations/specs/modeling.ts +20 -0
- package/src/public/operations/specs/mutation-schemas.ts +30 -0
- package/src/public/operations/specs/semantic.ts +41 -2
- package/src/public/schemas/entity.ts +297 -1
- package/src/public/schemas/relationship.ts +1 -0
- package/src/public/skills/kibi-usage/SKILL.md +35 -9
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +11 -1
- 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 +21 -6
- package/src/public/symbol-granularity.ts +25 -0
- package/src/schemas/entity.schema.json +306 -3
- package/src/schemas/relationship.schema.json +1 -0
|
@@ -13,6 +13,7 @@ export declare function normalizeKey(value: string): string;
|
|
|
13
13
|
export declare function normalizePredicateToken(value: string): string;
|
|
14
14
|
export declare function singularize(value: string): string;
|
|
15
15
|
export declare function normalizeSubjectKey(value: string): string;
|
|
16
|
+
export declare function relationship(from: string, to: string, type: string): Record<string, unknown>;
|
|
16
17
|
export declare function strictSuggestion(payload: Payload, evidence: string, claim: SemanticStrictPropertyClaim, rationale: string, confidence?: number): SemanticModelingSuggestion;
|
|
17
18
|
export declare function predicateSuggestion(payload: Payload, evidence: string, name: string, args: readonly string[], rationale: string, polarity?: "assert" | "deny"): SemanticModelingSuggestion;
|
|
18
19
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/operations/semantic-advisor/shared.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,0BAA0B,EAE1B,2BAA2B,EAC5B,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;AAGvE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG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|
export function normalizeSubjectKey(value) {
|
|
72
72
|
return normalizeKey(value).split("_").map(singularize).join(".");
|
|
73
73
|
}
|
|
74
|
-
function relationship(from, to, type) {
|
|
74
|
+
export function relationship(from, to, type) {
|
|
75
75
|
return { type, from, to };
|
|
76
76
|
}
|
|
77
77
|
// implements REQ-mcp-semantic-advisor-preflight
|
|
@@ -1,6 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LogicRuleIR } from "../../logic/ir.js";
|
|
2
|
+
export type SemanticAdvisorLane = "strict_property" | "predicate" | "rule" | "observation_review" | "none";
|
|
2
3
|
export type SemanticAdvisorReadiness = "modeled" | "needs_modeling" | "not_applicable";
|
|
3
4
|
export type SemanticLogicCoverageStatus = "complete" | "partial" | "unverified" | "not_applicable";
|
|
5
|
+
export type SemanticPropositionRole = "normative" | "definition" | "descriptive" | "condition" | "exception" | "rationale" | "example" | "subjective";
|
|
6
|
+
export type SemanticPropositionStatus = "modeled" | "ambiguous" | "ontology_gap" | "nonlogical" | "missing";
|
|
7
|
+
export interface SemanticPropositionSpan {
|
|
8
|
+
readonly start: number;
|
|
9
|
+
readonly end: number;
|
|
10
|
+
}
|
|
11
|
+
export interface SemanticProposition {
|
|
12
|
+
readonly claim_key: string;
|
|
13
|
+
readonly claim_text: string;
|
|
14
|
+
readonly role: SemanticPropositionRole;
|
|
15
|
+
readonly status: SemanticPropositionStatus;
|
|
16
|
+
readonly span: SemanticPropositionSpan;
|
|
17
|
+
readonly payload_hash?: string;
|
|
18
|
+
readonly semantic_key?: string;
|
|
19
|
+
readonly reason?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SemanticInterpretationInput {
|
|
22
|
+
readonly claim_key: string;
|
|
23
|
+
readonly claim_text: string;
|
|
24
|
+
readonly ir: LogicRuleIR;
|
|
25
|
+
readonly confidence?: number;
|
|
26
|
+
readonly span?: SemanticPropositionSpan;
|
|
27
|
+
}
|
|
28
|
+
export interface SemanticInterpretationResult {
|
|
29
|
+
readonly claim_key: string;
|
|
30
|
+
readonly semantic_key?: string;
|
|
31
|
+
/** Canonical, schema-validated IR for inspection; never executable source. */
|
|
32
|
+
readonly normalized_ir?: LogicRuleIR;
|
|
33
|
+
readonly valid: boolean;
|
|
34
|
+
readonly confidence: number;
|
|
35
|
+
readonly errors: readonly string[];
|
|
36
|
+
readonly warnings: readonly string[];
|
|
37
|
+
readonly rendered_prolog?: string;
|
|
38
|
+
}
|
|
39
|
+
export type SemanticShadowCueKind = "modal" | "polarity" | "passive_voice" | "nominalization" | "conditional" | "causal" | "prerequisite" | "exception" | "temporal" | "quantifier" | "numeric" | "negation_scope" | "directionality";
|
|
40
|
+
export interface SemanticShadowCue {
|
|
41
|
+
readonly kind: SemanticShadowCueKind;
|
|
42
|
+
readonly evidence: string;
|
|
43
|
+
readonly represented: boolean;
|
|
44
|
+
}
|
|
4
45
|
export type SemanticSignalKind = "normative_modal" | "numeric_cardinality" | "numeric_threshold" | "conditional" | "permission" | "state_or_default";
|
|
5
46
|
export interface SemanticSignal {
|
|
6
47
|
readonly kind: SemanticSignalKind;
|
|
@@ -54,6 +95,20 @@ export type SemanticModelingSuggestion = {
|
|
|
54
95
|
readonly rejected_alternatives: readonly string[];
|
|
55
96
|
readonly applyPlan: readonly Readonly<Record<string, unknown>>[];
|
|
56
97
|
readonly relationshipPlan: Readonly<Record<string, unknown>> | null;
|
|
98
|
+
} | {
|
|
99
|
+
readonly kind: "rule";
|
|
100
|
+
readonly claim_key: string;
|
|
101
|
+
readonly claim_text: string;
|
|
102
|
+
readonly confidence: number;
|
|
103
|
+
readonly evidence: string;
|
|
104
|
+
readonly rationale: string;
|
|
105
|
+
readonly suggested_next_tool: "kb_model_requirement";
|
|
106
|
+
readonly rule: LogicRuleIR;
|
|
107
|
+
readonly semantic_key: string;
|
|
108
|
+
readonly rendered_prolog: string;
|
|
109
|
+
readonly rejected_alternatives: readonly string[];
|
|
110
|
+
readonly applyPlan: readonly Readonly<Record<string, unknown>>[];
|
|
111
|
+
readonly relationshipPlan: Readonly<Record<string, unknown>> | null;
|
|
57
112
|
} | {
|
|
58
113
|
readonly kind: "ambiguity_observation";
|
|
59
114
|
readonly claim_key: string;
|
|
@@ -86,6 +141,9 @@ export interface SemanticAdvisorReceipt {
|
|
|
86
141
|
readonly candidate_lane: SemanticAdvisorLane;
|
|
87
142
|
readonly signals: readonly SemanticSignal[];
|
|
88
143
|
readonly ambiguity_witnesses: readonly SemanticAmbiguityWitness[];
|
|
144
|
+
readonly propositions: readonly SemanticProposition[];
|
|
145
|
+
readonly interpretations: readonly SemanticInterpretationResult[];
|
|
146
|
+
readonly shadow_analysis: readonly SemanticShadowCue[];
|
|
89
147
|
readonly suggestions: readonly SemanticModelingSuggestion[];
|
|
90
148
|
readonly clauses: readonly {
|
|
91
149
|
readonly claim_key: string;
|
|
@@ -108,6 +166,7 @@ export interface SemanticAdvisorReceipt {
|
|
|
108
166
|
export interface SemanticAdvisorInput {
|
|
109
167
|
readonly payload: Readonly<Record<string, unknown>>;
|
|
110
168
|
readonly clauses?: readonly string[];
|
|
169
|
+
readonly interpretations?: readonly SemanticInterpretationInput[];
|
|
111
170
|
}
|
|
112
171
|
export interface SemanticAdvisorAnalysisResult {
|
|
113
172
|
readonly receipt: SemanticAdvisorReceipt;
|
|
@@ -121,6 +180,7 @@ export interface SemanticAdvisorArgs {
|
|
|
121
180
|
readonly title?: string;
|
|
122
181
|
readonly source?: string;
|
|
123
182
|
readonly status?: string;
|
|
183
|
+
readonly interpretations?: readonly SemanticInterpretationInput[];
|
|
124
184
|
}
|
|
125
185
|
export interface SemanticAdvisorOperationResult {
|
|
126
186
|
readonly content: readonly {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/operations/semantic-advisor/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC3B,iBAAiB,GACjB,WAAW,GACX,oBAAoB,GACpB,MAAM,CAAC;AAEX,MAAM,MAAM,wBAAwB,GA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CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAenD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAmBlE;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAoBzE;AAuDD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,EAAE,CA6DjE"}
|
package/dist/prolog/codec.js
CHANGED
|
@@ -157,7 +157,17 @@ export function parsePropertyList(propsStr) {
|
|
|
157
157
|
if (key === "..." || value === "..." || value === "...|...") {
|
|
158
158
|
continue;
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
let parsed = parsePrologValue(value);
|
|
161
|
+
if ((key === "rule_ir" || key === "semantic_inventory") &&
|
|
162
|
+
typeof parsed === "string") {
|
|
163
|
+
try {
|
|
164
|
+
parsed = JSON.parse(parsed);
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
// Keep malformed structured fields as strings so the schema validator
|
|
168
|
+
// can report the precise payload problem instead of losing evidence.
|
|
169
|
+
}
|
|
170
|
+
}
|
|
161
171
|
if (!Object.hasOwn(props, key)) {
|
|
162
172
|
props[key] = parsed;
|
|
163
173
|
continue;
|
package/dist/prolog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prolog.d.ts","sourceRoot":"","sources":["../src/prolog.ts"],"names":[],"mappings":"AAgCA,wBAAgB,eAAe,IAAI,MAAM,CAsCxC;AACD,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ult = await this.queryOneShot(goal);
|
|
153
|
-
|
|
153
|
+
// Compound goals are read-after-write sensitive, so keep them out of the
|
|
154
|
+
// cache to mirror the interactive path and let later reads observe
|
|
155
|
+
// same-session writes (e.g. kb_status freshness after a file lands).
|
|
156
|
+
const isBatchGoal = isSingleGoal && /^\s*\(/.test(this.normalizeGoal(goal));
|
|
157
|
+
const shouldCache = cacheable && !isBatchGoal;
|
|
158
|
+
if (!shouldCache && oneShotResult.success) {
|
|
154
159
|
this.invalidateCache();
|
|
155
160
|
}
|
|
156
|
-
if (
|
|
161
|
+
if (shouldCache && oneShotResult.success) {
|
|
157
162
|
this.cache.set(goalKey, oneShotResult);
|
|
158
163
|
}
|
|
159
164
|
return oneShotResult;
|
|
@@ -300,11 +300,39 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
300
300
|
};
|
|
301
301
|
readonly description: "Optional complete list of atomic requirement clauses supplied by the caller. Use this for compound prose so every normative clause receives a stable claim key and independent grounding review.";
|
|
302
302
|
};
|
|
303
|
+
readonly interpretations: {
|
|
304
|
+
readonly type: "array";
|
|
305
|
+
readonly maxItems: 3;
|
|
306
|
+
readonly description: "Optional host-LLM typed kibi.logic.v1 interpretations. Kibi validates and canonicalizes them; raw Prolog is not accepted.";
|
|
307
|
+
readonly items: {
|
|
308
|
+
readonly type: "object";
|
|
309
|
+
readonly required: readonly ["claim_key", "claim_text", "ir"];
|
|
310
|
+
readonly properties: {
|
|
311
|
+
readonly claim_key: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
};
|
|
314
|
+
readonly claim_text: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
};
|
|
317
|
+
readonly confidence: {
|
|
318
|
+
readonly type: "number";
|
|
319
|
+
readonly minimum: 0;
|
|
320
|
+
readonly maximum: 1;
|
|
321
|
+
};
|
|
322
|
+
readonly span: {
|
|
323
|
+
readonly type: "object";
|
|
324
|
+
};
|
|
325
|
+
readonly ir: {
|
|
326
|
+
readonly type: "object";
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
303
331
|
readonly type: {
|
|
304
332
|
readonly type: "string";
|
|
305
|
-
readonly enum: readonly ["req"];
|
|
333
|
+
readonly enum: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
|
|
306
334
|
readonly default: "req";
|
|
307
|
-
readonly description: "Entity type context for analysis.
|
|
335
|
+
readonly description: "Entity type context for analysis. Requirement, domain-fact, and supporting prose all receive a proposition ledger; only requirements receive deterministic modeling suggestions.";
|
|
308
336
|
};
|
|
309
337
|
readonly id: {
|
|
310
338
|
readonly type: "string";
|
|
@@ -386,6 +414,22 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
386
414
|
readonly uniqueItems: true;
|
|
387
415
|
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.";
|
|
388
416
|
};
|
|
417
|
+
readonly requirementId: {
|
|
418
|
+
readonly type: "string";
|
|
419
|
+
readonly description: "Optional existing requirement ID to receive the requires_rule relationship.";
|
|
420
|
+
};
|
|
421
|
+
readonly claimKey: {
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
readonly description: "Optional advisor-issued claim key for the exact proposition represented by logic.";
|
|
424
|
+
};
|
|
425
|
+
readonly claimText: {
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
readonly description: "Optional exact proposition text represented by logic; defaults to text.";
|
|
428
|
+
};
|
|
429
|
+
readonly logic: {
|
|
430
|
+
readonly type: "object";
|
|
431
|
+
readonly description: "Optional typed kibi.logic.v1 IR. Kibi validates and canonicalizes it into a rule fact; raw Prolog is rejected.";
|
|
432
|
+
};
|
|
389
433
|
};
|
|
390
434
|
};
|
|
391
435
|
readonly requiresProlog: true;
|
|
@@ -654,7 +698,7 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
654
698
|
};
|
|
655
699
|
readonly fact_kind: {
|
|
656
700
|
readonly type: "string";
|
|
657
|
-
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate"];
|
|
701
|
+
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate", "rule_schema", "rule"];
|
|
658
702
|
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.";
|
|
659
703
|
};
|
|
660
704
|
readonly subject_key: {
|
|
@@ -776,6 +820,41 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
776
820
|
};
|
|
777
821
|
readonly description: "Optional ground-term examples for a predicate schema.";
|
|
778
822
|
};
|
|
823
|
+
readonly semantic_inventory: {
|
|
824
|
+
readonly type: "array";
|
|
825
|
+
readonly description: "Requirement proposition ledger returned by kb_semantic_advisor; preserve entries while modeling each assertive span.";
|
|
826
|
+
readonly items: {
|
|
827
|
+
readonly type: "object";
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
readonly rule_ir: {
|
|
831
|
+
readonly type: "object";
|
|
832
|
+
readonly description: "Schema-validated kibi.logic.v1 rule IR. It is persisted as data and never executed as caller-supplied Prolog.";
|
|
833
|
+
};
|
|
834
|
+
readonly rule_hash: {
|
|
835
|
+
readonly type: "string";
|
|
836
|
+
readonly description: "Deterministic hash of canonical rule_ir.";
|
|
837
|
+
};
|
|
838
|
+
readonly rule_schema_id: {
|
|
839
|
+
readonly type: "string";
|
|
840
|
+
readonly description: "Rule schema fact ID used to validate this rule.";
|
|
841
|
+
};
|
|
842
|
+
readonly rule_name: {
|
|
843
|
+
readonly type: "string";
|
|
844
|
+
readonly description: "Stable rule schema name.";
|
|
845
|
+
};
|
|
846
|
+
readonly semantic_key: {
|
|
847
|
+
readonly type: "string";
|
|
848
|
+
readonly description: "Canonical semantic identity of the normalized logical model.";
|
|
849
|
+
};
|
|
850
|
+
readonly claim_span_start: {
|
|
851
|
+
readonly type: "integer";
|
|
852
|
+
readonly minimum: 0;
|
|
853
|
+
};
|
|
854
|
+
readonly claim_span_end: {
|
|
855
|
+
readonly type: "integer";
|
|
856
|
+
readonly minimum: 0;
|
|
857
|
+
};
|
|
779
858
|
};
|
|
780
859
|
readonly allOf: readonly [Record<string, unknown>];
|
|
781
860
|
readonly required: readonly ["title", "status"];
|
|
@@ -789,7 +868,7 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
789
868
|
readonly properties: {
|
|
790
869
|
readonly type: {
|
|
791
870
|
readonly type: "string";
|
|
792
|
-
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"];
|
|
871
|
+
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"];
|
|
793
872
|
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).";
|
|
794
873
|
};
|
|
795
874
|
readonly from: {
|
|
@@ -839,9 +918,9 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
839
918
|
readonly type: "array";
|
|
840
919
|
readonly items: {
|
|
841
920
|
readonly type: "string";
|
|
842
|
-
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", "query-plan-safety"];
|
|
921
|
+
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"];
|
|
843
922
|
};
|
|
844
|
-
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, 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.";
|
|
923
|
+
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.";
|
|
845
924
|
};
|
|
846
925
|
readonly sourceFiles: {
|
|
847
926
|
readonly type: "array";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/public/operations/catalog.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/public/operations/catalog.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBe,CAAC;AAO9C,wBAAgB,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa,CAM1D;AAGD,wBAAgB,SAAS,IAAI,SAAS,aAAa,EAAE,CAEpD"}
|
|
@@ -17,4 +17,5 @@ export * from "./types.js";
|
|
|
17
17
|
export * from "../../operations/autopilot/generate.js";
|
|
18
18
|
export * from "../../operations/autopilot/presentation.js";
|
|
19
19
|
export type * from "../../operations/autopilot/types.js";
|
|
20
|
+
export * from "../../logic/ir.js";
|
|
20
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/public/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,mBAAmB,qCAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/public/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,mBAAmB,qCAAqC,CAAC;AACzD,cAAc,mBAAmB,CAAC"}
|
|
@@ -10,9 +10,9 @@ export declare const checkSpec: {
|
|
|
10
10
|
readonly type: "array";
|
|
11
11
|
readonly items: {
|
|
12
12
|
readonly type: "string";
|
|
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", "query-plan-safety"];
|
|
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, 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; if supplied, server preserves scoped validation and skips the full-KB advisory scan.";
|
|
16
16
|
};
|
|
17
17
|
readonly sourceFiles: {
|
|
18
18
|
readonly type: "array";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGpD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEY,CAAC"}
|
|
@@ -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; if supplied, server preserves scoped validation and skips the full-KB advisory scan.",
|
|
30
33
|
},
|
|
31
34
|
sourceFiles: {
|
|
32
35
|
type: "array",
|
|
@@ -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;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEjC,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,
|
|
@@ -81,7 +81,7 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
81
81
|
};
|
|
82
82
|
readonly fact_kind: {
|
|
83
83
|
readonly type: "string";
|
|
84
|
-
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate"];
|
|
84
|
+
readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate", "rule_schema", "rule"];
|
|
85
85
|
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
86
|
};
|
|
87
87
|
readonly subject_key: {
|
|
@@ -203,6 +203,41 @@ export declare const ENTITY_PROPERTIES_SCHEMA: {
|
|
|
203
203
|
};
|
|
204
204
|
readonly description: "Optional ground-term examples for a predicate schema.";
|
|
205
205
|
};
|
|
206
|
+
readonly semantic_inventory: {
|
|
207
|
+
readonly type: "array";
|
|
208
|
+
readonly description: "Requirement proposition ledger returned by kb_semantic_advisor; preserve entries while modeling each assertive span.";
|
|
209
|
+
readonly items: {
|
|
210
|
+
readonly type: "object";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly rule_ir: {
|
|
214
|
+
readonly type: "object";
|
|
215
|
+
readonly description: "Schema-validated kibi.logic.v1 rule IR. It is persisted as data and never executed as caller-supplied Prolog.";
|
|
216
|
+
};
|
|
217
|
+
readonly rule_hash: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly description: "Deterministic hash of canonical rule_ir.";
|
|
220
|
+
};
|
|
221
|
+
readonly rule_schema_id: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly description: "Rule schema fact ID used to validate this rule.";
|
|
224
|
+
};
|
|
225
|
+
readonly rule_name: {
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
readonly description: "Stable rule schema name.";
|
|
228
|
+
};
|
|
229
|
+
readonly semantic_key: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly description: "Canonical semantic identity of the normalized logical model.";
|
|
232
|
+
};
|
|
233
|
+
readonly claim_span_start: {
|
|
234
|
+
readonly type: "integer";
|
|
235
|
+
readonly minimum: 0;
|
|
236
|
+
};
|
|
237
|
+
readonly claim_span_end: {
|
|
238
|
+
readonly type: "integer";
|
|
239
|
+
readonly minimum: 0;
|
|
240
|
+
};
|
|
206
241
|
};
|
|
207
242
|
readonly allOf: readonly [Record<string, unknown>];
|
|
208
243
|
readonly required: readonly ["title", "status"];
|
|
@@ -216,7 +251,7 @@ export declare const RELATIONSHIPS_SCHEMA: {
|
|
|
216
251
|
readonly properties: {
|
|
217
252
|
readonly type: {
|
|
218
253
|
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"];
|
|
254
|
+
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
255
|
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
256
|
};
|
|
222
257
|
readonly from: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-schemas.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/mutation-schemas.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gFASf,CAAC;AAYX,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"mutation-schemas.d.ts","sourceRoot":"","sources":["../../../../src/public/operations/specs/mutation-schemas.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gFASf,CAAC;AAYX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmQ3B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;CA2CvB,CAAC"}
|
|
@@ -111,6 +111,8 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
111
111
|
"meta",
|
|
112
112
|
"predicate_schema",
|
|
113
113
|
"predicate",
|
|
114
|
+
"rule_schema",
|
|
115
|
+
"rule",
|
|
114
116
|
],
|
|
115
117
|
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
118
|
},
|
|
@@ -221,6 +223,30 @@ export const ENTITY_PROPERTIES_SCHEMA = {
|
|
|
221
223
|
items: { type: "string" },
|
|
222
224
|
description: "Optional ground-term examples for a predicate schema.",
|
|
223
225
|
},
|
|
226
|
+
semantic_inventory: {
|
|
227
|
+
type: "array",
|
|
228
|
+
description: "Requirement proposition ledger returned by kb_semantic_advisor; preserve entries while modeling each assertive span.",
|
|
229
|
+
items: { type: "object" },
|
|
230
|
+
},
|
|
231
|
+
rule_ir: {
|
|
232
|
+
type: "object",
|
|
233
|
+
description: "Schema-validated kibi.logic.v1 rule IR. It is persisted as data and never executed as caller-supplied Prolog.",
|
|
234
|
+
},
|
|
235
|
+
rule_hash: {
|
|
236
|
+
type: "string",
|
|
237
|
+
description: "Deterministic hash of canonical rule_ir.",
|
|
238
|
+
},
|
|
239
|
+
rule_schema_id: {
|
|
240
|
+
type: "string",
|
|
241
|
+
description: "Rule schema fact ID used to validate this rule.",
|
|
242
|
+
},
|
|
243
|
+
rule_name: { type: "string", description: "Stable rule schema name." },
|
|
244
|
+
semantic_key: {
|
|
245
|
+
type: "string",
|
|
246
|
+
description: "Canonical semantic identity of the normalized logical model.",
|
|
247
|
+
},
|
|
248
|
+
claim_span_start: { type: "integer", minimum: 0 },
|
|
249
|
+
claim_span_end: { type: "integer", minimum: 0 },
|
|
224
250
|
},
|
|
225
251
|
allOf: [CLAIM_PROVENANCE_CONDITIONAL],
|
|
226
252
|
required: ["title", "status"],
|
|
@@ -246,6 +272,7 @@ export const RELATIONSHIPS_SCHEMA = {
|
|
|
246
272
|
"constrains",
|
|
247
273
|
"requires_property",
|
|
248
274
|
"requires_predicate",
|
|
275
|
+
"requires_rule",
|
|
249
276
|
"guards",
|
|
250
277
|
"publishes",
|
|
251
278
|
"consumes",
|