Skip to main content

Crate scone_core

Crate scone_core 

Source
Expand description

Scone core: a local-first episodic + semantic memory engine.

This crate performs no stdout I/O and touches the network only through provider traits. SQLite is the single source of truth (spec §5).

Re-exports§

pub use distill::ApplyReport;
pub use distill::DistillReport;
pub use distill::ProvenanceItem;
pub use profile::Profile;

Modules§

auth
The single authorization chokepoint (spec invariant I5).
chunker
Structure-aware chunking over immutable episode content.
distill
Lane 2 fact application (spec §6): entity resolution, provenance, contradiction closure.
embed
Embedding providers (spec §9).
index
Derived indexes (spec §5): rebuildable caches over SQLite truth.
llm
LLM providers (spec §9): the semantic lane’s only model dependency.
profile
Two-tier profiles (spec §7 via memory/lessons.md L-11): the predecessor validated the shape — stable identity facts plus recent activity, one cheap call (their “~50ms profiles”; ours is a pair of indexed queries).
rerank
Cross-encoder reranking (spec §7 refinement, 2026-08-27): reads the query and each candidate together, scoring true relevance — the precision lever bi-encoders can’t reach. Opt-in: the model is a sizeable one-time download, so surfaces enable it explicitly.

Structs§

ContextPack
DoctorReport
Engine
FactItem
ImportReport
RecallItem
RecallOpts
ScanReport
Result of one directory scan.
SpaceStatus
StatusReport

Enums§

IngestInput
IngestOutcome
SconeError
Errors surfaced by the Scone engine.

Type Aliases§

Result