Skip to content

Interface: RuleRefusal

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RuleRefusal

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

A rule-lifecycle refusal, read out of the error a rule write threw.

Read by ruleRefusalOf. code is the contract; the prose of message is not.

code: RuleRefusalCode

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

The stable code.


optional derivations?: number

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

How many derivations the rule currently proves: derived_facts rows and resident conclusions, one conclusion held in both counted once (rule_holds_derivations only).


optional derivationsAtLeast?: boolean

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

true when derivations hit the counting cap and is a lower bound.


message: string

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

The refusal in words.


ruleId: string

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

The rule the refusal is about.


status: number

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

HTTP status of the refusal (400, 403 or 404).