Interface: RejectedBulkItem
@kortexya/reasoninglayer / RejectedBulkItem
Interface: RejectedBulkItem
Section titled “Interface: RejectedBulkItem”Defined in: src/types/inference.ts:1473
One item a bulk rule or fact write refused, named by its position in the request.
Properties
Section titled “Properties”
optionalcode?:GovernanceRefusalCode
Defined in: src/types/inference.ts:1492
The closed refusal code of an item a write denial refused: the code
every write route answers that denial with, or
constraint_over_unread_data for an item a bound constraint over data
the writer may not read refused (reasoninglayer#1238). Absent for an
item that did not resolve, broke its sort’s declarations, or broke a
bound constraint that names its bound.
index:
number
Defined in: src/types/inference.ts:1475
Zero-based index of the refused item in the submitted array.
reason
Section titled “reason”reason:
string
Defined in: src/types/inference.ts:1483
Why the engine refused it, in words. For a rule it is the exact text the
single-rule route answers with 422, prefixed rule rejected: — e.g.
rule rejected: a rule needs at least one antecedent; a term with no antecedents is a fact — write it through POST /api/v1/terms. Prose, not
a code: do not match on it.