Interface: CoherenceAnalyzeRequest
@kortexya/reasoninglayer / Coherence / CoherenceAnalyzeRequest
Interface: CoherenceAnalyzeRequest
Defined in: src/types/coherence.ts:56
Request to analyze the coherence of a set of claims.
Remarks
The claims are sourced by exactly one of, in descending precedence:
termIds (explicit claim Ψ-term ids, in reading order), documentId
(an already-ingested document), or document (inline content to ingest first).
Any rulesOsfql is compiled into an ephemeral analysis KB — never into the
tenant KB.
Example
const request: CoherenceAnalyzeRequest = { documentId: '3f2b1c00-0000-0000-0000-000000000000', enableDerivation: true, matchThreshold: 0.7,};Properties
document?
optionaldocument:CoherenceInlineDocumentDto|null
Defined in: src/types/coherence.ts:60
…or inline content to ingest first (clause extraction needs an LLM).
documentId?
optionaldocumentId:string|null
Defined in: src/types/coherence.ts:58
Already-ingested document id whose clause Ψ-terms are analyzed.
enableDerivation?
optionalenableDerivation:boolean
Defined in: src/types/coherence.ts:72
Run the rule-derivation layer (chains and proofs).
Default Value
truematchThreshold?
optionalmatchThreshold:number|null
Defined in: src/types/coherence.ts:67
Pairwise co-reference threshold (clamped server-side to 0.1..=1.0).
Default Value
0.7rulesOsfql?
optionalrulesOsfql:string|null
Defined in: src/types/coherence.ts:77
Extra inline OSFQL (DERIVE … WHEN …;, optional DEFINE/INSERT), compiled
into the ephemeral analysis KB — never into the tenant KB.
termIds?
optionaltermIds:string[] |null
Defined in: src/types/coherence.ts:62
Explicit claim term ids, in reading order (highest precedence).
useTenantRules?
optionaluseTenantRules:boolean
Defined in: src/types/coherence.ts:83
Consult the tenant KB’s homoiconic rules in the derivation layer. Rules ARE the tenant’s declared constraints; an empty rule set degrades gracefully.
Default Value
truewithEmbeddings?
optionalwithEmbeddings:boolean
Defined in: src/types/coherence.ts:89
Compute claim embeddings server-side for the ADVISORY layer (cosine scores on
links; never certifying). Costs one embed_batch call.
Default Value
false