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§
- Consolidated
Insight - Contradiction
- Fact
Capture - 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=. - Fact
Review - Why a fact needs a person’s look again (C0 1.9 fact states).
- Fidelity
Score - Import
Result - Judged
Pair - Knowledge
Fact - Knowledge
Index - Knowledge
Query - Filters understood by portable Knowledge Hub stores.
- Procedure
Command - A command of a procedure: data only, never executed by the engine.
- Project
Knowledge - Project
Pattern - Similar
Fact - Simple
Fact Entry - Community-compatible simple fact format for import/export interop.
- Solution
Decision Meta
Enums§
- Admission
Result - 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”. - Contradiction
Severity - Evidence
Level - How a captured claim is backed.
- Fact
Origin - Fact
Review Reason - The contract’s reasons;
source_removedis an imported fact whose source section is gone (K1). - Fact
Review State - Fact
Status - Whether a fact rests on a source (V01):
verifiedwhen a provider or a derivation from sourced facts backs it,assumptionotherwise — what an agent or a person wrote down without evidence. - Fact
Validity - Validity class of a fact (AP01 §4, D04): what its reuse is bound to.
- Import
Merge - Knowledge
Archetype - Node
Type - Node types a fact can be captured as.
- Solution
Decision Kind - Solution
Status
Constants§
- COGNITION_
SYNTHESIS_ SOURCE source_sessionmarker for facts written by the cognition loop’s observation synthesis step (#802). Lets recall distinguish synthesized entity-summaries from user-supplied findings (both areObservationarchetype).- COMPACTION_
DIGEST_ SOURCE source_sessionmarker 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
ProjectKnowledgefirst, then simple[{...}]array.