Skip to content

Interface: FuzzyProveResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FuzzyProveResponse

Defined in: src/types/inference.ts:1119

Response from fuzzy proof search.

optional certificate?: DiagnosisCertificate

Defined in: src/types/inference.ts:1142

The sealed diagnosis certificate. Present only when the request set FuzzyProveRequest.seal on an open-world query.

Kept in the engine’s own encoding (snake_case keys, not camelCased) on purpose: the certificate is re-verified by deserializing it verbatim, so any translation would break that. Absent also when the payload does not match the documented encoding (see DiagnosisCertificate.version).


optional derivationComplete?: boolean

Defined in: src/types/inference.ts:1169

Whether the closed-world derivation exhausted its search with no pending constraints. false includes depth, work and solution limits. Only true permits reading an empty solution set as a completed refutation. Absent for open-world evidence ranking, which has no such verdict.


optional goalId?: string | null

Defined in: src/types/inference.ts:1131

Goal ID if the goal was saved (when saveGoal is true).

The engine stores the saved goal apart from the tenant’s facts: it is not visible to MATCH or to getFacts, and it is reached through listGoals / getGoal / deleteGoal.


optional logoddsCoverageBonus?: number | null

Defined in: src/types/inference.ts:1162

The log-odds coverage term λ in effect for this query. Present whenever solutions were computed.

The companion input to the calibration term above and to the +λ·credited coverage reward.


optional logoddsObservationCount?: number | null

Defined in: src/types/inference.ts:1153

Observation count k the log-odds null calibration used for THIS query (the number of scope-consistent facts). Present only for scoped queries.

With FuzzyProveResponse.logoddsCoverageBonus, lets a caller that renders the additive score decomposition reproduce the engine’s − k·(null_llr_rate + λ·null_hit_rate) term exactly, without shared configuration.


optional nextQuestions?: NextQuestion[]

Defined in: src/types/inference.ts:1180

What to ask next, ranked by expected information gain over the engine’s own differential. Present when the request set FuzzyProveRequest.nextQuestions (open-world log-odds queries only).


optional openWorldSearch?: OpenWorldSearchCompletion

Defined in: src/types/inference.ts:1174

Whether the open-world ranking traversal was exhaustive. Present only on an open-world query; never a closed-world negative verdict.


queryTimeMs: number

Defined in: src/types/inference.ts:1123

Query execution time in milliseconds.


solutions: SolutionDto[]

Defined in: src/types/inference.ts:1121

Solutions with fuzzy certainty scores.