Skip to content

Interface: RuleRefusal

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RuleRefusal

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

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:1556

The stable code.


optional derivations?: number

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

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:1568

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


message: string

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

The refusal in words.


ruleId: string

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

The rule the refusal is about.


status: number

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

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