Skip to main content

KnowledgeStoreError

Type Alias KnowledgeStoreError 

Source
pub type KnowledgeStoreError = KnowledgeBaseError;
๐Ÿ‘ŽDeprecated:

use KnowledgeBaseError

Expand description

Compatibility alias for KnowledgeBaseError.

Aliased Typeยง

pub enum KnowledgeStoreError {
    SnapshotAuthorityMismatch {
        subject: EntityId,
    },
    IdentityConflict {
        kind: KnowledgeRecordKind,
        id: String,
    },
    RelationEvidenceMismatch {
        relation_id: String,
        evidence_id: String,
    },
    RelationSubjectMismatch {
        relation_id: String,
        evidence_subject: String,
        relation_from: String,
    },
    RelationLimitExceeded {
        field: &'static str,
        actual: usize,
        maximum: usize,
    },
    StaleSnapshot {
        subject: EntityId,
        expected_subject_revision: u64,
        actual_subject_revision: u64,
        expected_ontology_revision: u64,
        actual_ontology_revision: u64,
    },
    ReasoningSubjectMismatch {
        hypothesis_id: String,
        expected: EntityId,
        actual: EntityId,
    },
    MissingDerivationParent {
        child: String,
        parent: String,
    },
    SelfDerivation {
        evidence_id: String,
    },
    DerivationSubjectMismatch {
        child: String,
        parent: String,
    },
    DerivationCycle {
        evidence_id: String,
    },
}

Variantsยง

ยง

SnapshotAuthorityMismatch

A snapshot or commit token was minted by another knowledge-base instance.

Fields

ยงsubject: EntityId

Subject whose snapshot authority did not match this knowledge base.

ยง

IdentityConflict

The identity exists, but its immutable claim or graph identity differs.

Fields

ยงkind: KnowledgeRecordKind

Category of the conflicting record.

ยงid: String

Reused stable identifier.

ยง

RelationEvidenceMismatch

An atomic relation bundle did not reference exactly its supplied evidence.

Fields

ยงrelation_id: String

Relation whose provenance was inconsistent.

ยงevidence_id: String

Evidence expected to be the relationโ€™s sole provenance record.

ยง

RelationSubjectMismatch

An atomic relation did not originate at its evidence subject.

Fields

ยงrelation_id: String

Relation whose source entity was inconsistent.

ยงevidence_subject: String

Subject described by the evidence.

ยงrelation_from: String

Source entity declared by the relation.

ยง

RelationLimitExceeded

A relation field or provenance collection exceeded its storage ceiling.

Fields

ยงfield: &'static str

Stable field name (id, from, to, kind, evidence_ids, or evidence_id).

ยงactual: usize

Rejected byte or item count.

ยงmaximum: usize

Inclusive compiled ceiling.

ยง

StaleSnapshot

A reasoning batch was evaluated against knowledge that has since changed.

Fields

ยงsubject: EntityId

Subject captured by the stale snapshot.

ยงexpected_subject_revision: u64

Subject revision captured by the snapshot.

ยงactual_subject_revision: u64

Current subject revision.

ยงexpected_ontology_revision: u64

Ontology revision captured by the snapshot.

ยงactual_ontology_revision: u64

Current ontology revision.

ยง

ReasoningSubjectMismatch

A reasoning batch contained a conclusion for another subject.

Fields

ยงhypothesis_id: String

Hypothesis whose subject violated the batch boundary.

ยงexpected: EntityId

Subject captured by the reasoning snapshot.

ยงactual: EntityId

Subject declared by the hypothesis.

ยง

MissingDerivationParent

A derived evidence record referenced a parent that neither already exists nor appears in the same atomic batch.

Fields

ยงchild: String

Derived child evidence ID.

ยงparent: String

Referenced parent evidence ID that could not be resolved.

ยง

SelfDerivation

A derived evidence record referenced itself as a parent.

Fields

ยงevidence_id: String

Evidence ID that referenced itself.

ยง

DerivationSubjectMismatch

A derived evidence record referenced a parent recorded for a different subject.

Fields

ยงchild: String

Derived child evidence ID.

ยงparent: String

Referenced parent evidence ID.

ยง

DerivationCycle

The derivation edges in one atomic batch formed a cycle.

Fields

ยงevidence_id: String

One evidence ID participating in the detected cycle.