Type Alias: SessionDocumentFailureCode
@kortexya/reasoninglayer / SessionDocumentFailureCode
Type Alias: SessionDocumentFailureCode
Section titled “Type Alias: SessionDocumentFailureCode”SessionDocumentFailureCode =
"previous_document_not_found"|"duplicate_document_version_conflict"|"duplicate_version_without_registry"|"not_attempted"|"ingestion_failed"|"bound_constraint_violated"|"constraint_over_unread_data"|"dependant_not_writable"|"dependants_exceed_commit_budget"|"dependant_changed_concurrently"|"governed_sort_write_refused"|"reserved_sort_write_refused"|"sort_write_not_granted"|"filing_term_unread"|"operational_authority_denied"|"operational_authority_undetermined"|"operational_rule_conclusion"|"authz_rule_shape"|"authz_parent_of_sort_refused"|"authz_relation_derived"|"term_changed_concurrently"
Defined in: src/types/ingestion.ts:1805
Why one document of an ingestion session failed.
Remarks
Section titled “Remarks”The three version refusals are the same code the synchronous upload
answers for the same refusal. not_attempted and ingestion_failed exist
only on a session document; the synchronous upload answers those failures
with no code. ingestion_failed covers both unparseable content and an
engine fault, and SessionDocument.error says which.
Since engine 62c752370f (reasoninglayer#1253) a document a bound
constraint refuses carries bound_constraint_violated for a named
refusal (its synchronous 409 has no code), or the code of its
synchronous 409: constraint_over_unread_data, dependant_not_writable,
dependants_exceed_commit_budget or dependant_changed_concurrently. Its
details are SessionDocument.errorRefusal. A write the caller may
not make carries the closed write-refusal code the synchronous 403
answers (sort_write_not_granted, reserved_sort_write_refused, …). A
read premise another writer broke carries term_changed_concurrently
(#1263). Nothing of such a document is committed.