Skip to main content

Module facts

Module facts 

Source
Expand description

Fact states (C0 1.9, section 3).

A fact is current until an engine finds a reason to doubt it: one of its anchors no longer matches the code (anchor_changed), the symbol moved to another path (anchor_moved), the anchored path or symbol is gone (anchor_missing), or another fact contradicts it (contradiction). The engine reports states with POST /v1/vaults/{vault_id}/facts/states (FactStateReportV1, right knowledge.read); Cloud answers FactStateAckV1 and lists the non-current states with the revision (KnowledgeRevisionV1::fact_states). A report replaces the reporting engine’s earlier states for that revision; a fact is current again when no engine reports it.

A state never changes the document. Fixing a fact is a proposal; a contradiction with no proposal after 24 hours becomes a task (origin contradiction).

Structs§

FactStateAckV1
FactStateReportV1
POST /v1/vaults/{vault_id}/facts/states.
FactStateV1
The state of one fact, as an engine reports it.

Enums§

FactStateKind
FactStateReason

Constants§

FACT_STATE_ACK_SCHEMA
FACT_STATE_REPORT_SCHEMA
MAX_CONTRADICTED_BY
MAX_FACT_STATES
Facts per report (a document holds at most MAX_FACTS).
MAX_STATE_REASONS