Skip to content

Interface: NafProveResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / NafProveResponse

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

Response from NAF proof search.

The backend returns a BackwardChainResponse for NAF prove. This type mirrors that structure.

optional completedProofCount?: number

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

Discharged witness count only when the native route explicitly reports it.


optional derivationComplete?: boolean

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

Whether every negation in the answer was established.

A NAF literal whose sub-proof hit a depth, time or lookup bound “succeeds” as not-provable. Only derivationComplete: true says that each such negation was established; false means a solution may rest on a bounded, not an exhausted, sub-proof.


optional goalId?: string | null

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

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.


queryTimeMs: number

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

Query execution time in milliseconds.


solutions: SolutionDto[]

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

Solutions found.


optional validBefore?: string

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

The instant at which this answer may stop being true without any write: the earliest end, after the engine’s clock when the proof started, of a governed authority relation fact (valid_until) or of a materialised conclusion resting on one that the proof could read. A caller that keeps the answer must not reuse it at or after this instant. Omitted when no such fact ends.