Skip to main content

Module knowledge

Module knowledge 

Source

Re-exports§

pub use snapshot::KnowledgeSnapshot;

Modules§

agents_md
Project knowledge → a section of AGENTS.md (K1 export).
anchors
Code anchors of knowledge facts (Hive plan v3 J2; C0 1.9 section 3, CodeAnchorV1).
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
FactCapture
Structured fields of a fact for the Hive capture gate (SPEC-ENGINE §3.1.3), written by ctx_knowledge remember type= steps= commands= refs= evidence=.
FactReview
Why a fact needs a person’s look again (C0 1.9 fact states).
FidelityScore
ImportResult
JudgedPair
KnowledgeFact
KnowledgeIndex
KnowledgeQuery
Filters understood by portable Knowledge Hub stores.
ProcedureCommand
A command of a procedure: data only, never executed by the engine.
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
EvidenceLevel
How a captured claim is backed.
FactOrigin
FactReviewReason
The contract’s reasons; source_removed is an imported fact whose source section is gone (K1).
FactReviewState
FactStatus
Whether a fact rests on a source (V01): verified when a provider or a derivation from sourced facts backs it, assumption otherwise — what an agent or a person wrote down without evidence.
FactValidity
Validity class of a fact (AP01 §4, D04): what its reuse is bound to.
ImportMerge
KnowledgeArchetype
NodeType
Node types a fact can be captured as.
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.