Skip to main content

Module knowledge

Module knowledge 

Source

Re-exports§

pub use snapshot::KnowledgeSnapshot;

Modules§

chunking
Theta-gamma chunking for wakeup facts (#543, EFF-6).
local_store
In-memory Knowledge Hub store for local sessions and tests.
maintenance
Maintenance for the on-disk knowledge stores.
okf
Open Knowledge Format (OKF) rendering for lean-ctx project knowledge.
retrieval
Retrieval contract and the local reference implementation.
snapshot
KnowledgeSnapshot — the single in-memory view of a project’s durable knowledge that every outbound rendering shares.
store
Storage contract for portable local knowledge objects.
supersession
Local supersession helpers.

Structs§

ConsolidatedInsight
Contradiction
FidelityScore
ImportResult
JudgedPair
KnowledgeFact
KnowledgeIndex
KnowledgeQuery
Filters understood by portable Knowledge Hub stores.
ProjectKnowledge
ProjectPattern
SimilarFact
SimpleFactEntry
Community-compatible simple fact format for import/export interop.
SolutionDecisionMeta

Enums§

AdmissionResult
Outcome of a write-time admission decision (#970), returned by ProjectKnowledge::remember_admitted. It is the difference between “the agent asked to store X” and “what lean-ctx actually persisted”.
ContradictionSeverity
ImportMerge
KnowledgeArchetype
SolutionDecisionKind
SolutionStatus

Constants§

COGNITION_SYNTHESIS_SOURCE
source_session marker for facts written by the cognition loop’s observation synthesis step (#802). Lets recall distinguish synthesized entity-summaries from user-supplied findings (both are Observation archetype).
COMPACTION_DIGEST_SOURCE
source_session marker for digest facts written by the cognition loop’s cluster-compaction step (#971). A digest replaces a cluster of low-value, mutually-similar facts; the originals are archived (recoverable). Excluded from being compacted again so digests never cannibalize each other.

Functions§

find_cross_key_similar
parse_import_data
Parse import data: tries native ProjectKnowledge first, then simple [{...}] array.