Expand description
Thread-safe in-memory knowledge base for evidence-driven reasoning.
§Runtime scope
- Build: always/default.
- Execution: Surface B uses the base as deterministic reasoning state. Surface A’s opt-in legacy runner also records bounded probe receipts and verifier-owned manual-review outcomes from phases 5, 7, 8, and 9.
- Default
termivar scan: yes, through Surface B; legacy knowledge writes require the explicitlegacy-scanpath and its acknowledgement flag. - Support: implemented and tested.
See docs/internals/runtime-map.md.
The base owns ontology, instance relationships, evidence, facts, and hypotheses, but deliberately contains no detection, scoring, planning, or persistence behavior. Producers can write observations in any order; referential integrity is therefore eventual so discovery modules remain independent from one another.
Structs§
- Knowledge
Base - Thread-safe, indexed knowledge shared by evidence and decision engines.
- Knowledge
Base Stats - Counts of records currently held by a
KnowledgeBase. - Knowledge
Snapshot - Consistent, immutable knowledge for one subject at one point in time.
Enums§
- Knowledge
Base Error - Errors raised when a knowledge record violates storage or identity invariants.
- Knowledge
Record Kind - Record categories used in identity-conflict diagnostics.
- Knowledge
Write - Result of an idempotent write to the knowledge base.
Constants§
- MAX_
KNOWLEDGE_ RELATION_ ENTITY_ ID_ BYTES - Hard byte ceiling for either entity identifier on a stored relation.
- MAX_
KNOWLEDGE_ RELATION_ EVIDENCE_ IDS - Hard ceiling for distinct evidence records backing one stored relation.
- MAX_
KNOWLEDGE_ RELATION_ EVIDENCE_ ID_ BYTES - Hard byte ceiling for each evidence identifier backing a stored relation.
- MAX_
KNOWLEDGE_ RELATION_ ID_ BYTES - Hard byte ceiling for one stored knowledge-relation identifier.
- MAX_
KNOWLEDGE_ RELATION_ KIND_ BYTES - Hard byte ceiling for a stored custom relation-kind identifier.
Type Aliases§
- Knowledge
Store Deprecated - Compatibility alias for the original storage-oriented name.
- Knowledge
Store Error Deprecated - Compatibility alias for
KnowledgeBaseError. - Knowledge
Store Stats Deprecated - Compatibility alias for
KnowledgeBaseStats.